Skip to content

Fix =!=> for runtime hypotheses - #431

Open
VojtechStep wants to merge 1 commit into
LPCIC:masterfrom
VojtechStep:fix/runtime-implbang
Open

Fix =!=> for runtime hypotheses#431
VojtechStep wants to merge 1 commit into
LPCIC:masterfrom
VojtechStep:fix/runtime-implbang

Conversation

@VojtechStep

Copy link
Copy Markdown
Contributor

When the LHS of =!=> was not comptime-known, the runtime implementation added a head cut instead of a tail cut.

Before the patch, running the new test with dune exec elpi -- -test tests/sources/implbang_runtime.elpi -trace-on -trace-at run 1 4 -trace-only user:new-hyps would give user:new-hyps = (p A0) :- !, (A0 = 2)., while the analogous implbang.elpi with comptime-known LHS gives the expected user:new-hyps = (p A0) :- (A0 = 2), !.

When the LHS of =!=> was not comptime known, the runtime
implementation added a head cut instead of a tail cut.
@VojtechStep
VojtechStep force-pushed the fix/runtime-implbang branch from b3301ca to 1dd7662 Compare July 31, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant