Skip to content

Fix =!=> for runtime hypotheses - #431

Merged
gares merged 1 commit into
LPCIC:masterfrom
VojtechStep:fix/runtime-implbang
Aug 1, 2026
Merged

Fix =!=> for runtime hypotheses#431
gares merged 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

@gares gares left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@gares
gares merged commit 99cf9d7 into LPCIC:master Aug 1, 2026
7 of 10 checks passed
@VojtechStep
VojtechStep deleted the fix/runtime-implbang branch August 4, 2026 13:48
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.

2 participants