Skip to content

Commit dcfaf09

Browse files
authored
Merge pull request #896 from Tragicus/bugtc
Fix bug in tc.compile.goal.decompile-problematic-term
2 parents c177533 + 73af7f1 commit dcfaf09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/tc/elpi/ho_compile.elpi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ namespace tc {
369369
decompile-problematic-term A L A L :- var A, !.
370370

371371
decompile-problematic-term (fun N Ty Bo) L (fun N Ty' Bo') L3 :-
372+
fold-map Ty L Ty' L1,
372373
(pi x\ fold-map (Bo x) [] (Bo' x) (Lx x)),
373-
close-term-no-prune-ty Lx Ty L1,
374-
fold-map Ty L Ty' L2,
375-
std.append L2 L1 L3.
374+
close-term-no-prune-ty Lx Ty' L2,
375+
std.append L1 L2 L3.
376376

377377
decompile-problematic-term (prod N Ty Bo) L (prod N Ty' Bo') L3 :-
378378
(pi x\ fold-map (Bo x) [] (Bo' x) (Lx x)),
@@ -422,4 +422,4 @@ namespace tc {
422422
std.assert!(goal.compile GoalPrecomp EtaLinks Goal' Links) "[TC] cannot compile goal"
423423
).
424424
}
425-
}
425+
}

0 commit comments

Comments
 (0)