You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got this assertion failure anomaly while I was using coq-elpi.
Anomaly "File "src/compiler/compiler.ml", line 1712, characters 52-58: Assertion failed."
This is the code.
Elpi Accumulate LamTri lp:{{
% iterate until failure
pred iterate i:(pred i:A, o:A), i:A, o:(list A).
iterate F X [X|XS] :- iterate F {F X} XS ; XS = [].
%%% no Anomaly without spilling like below
% iterate F X [X|XS] :- F X Y, iterate F Y XS ; XS = [].
}}.
Elpi Query LamTri lp:{{
iterate (x\ y\ if (x < 10) (y is (x + 1)) fail) 1 L,
coq.say "L = " L
}}.