Skip to content

Question about mechanism of blocking current assignments in theory_seq.cpp (final_check_eh()) #5662

Discussion options

You must be logged in to vote

Keep in mind that whatever is asserted by add_axiom is global. It is not scope dependent. The assertion should be valid regardless of scope. So if you add_axiom(false), then you are basically saying false was implied at base level of search.

There are other weird things with your code. It uses m.mk_not(...) all over the place. YOu will likely run into reference counting bugs. You can negate literals using ~. So use

literal l = ~mk_literal(e);
instead of
literal l = mk_literal(m.mk_not(e));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alan23273850
Comment options

Answer selected by alan23273850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5661 on November 12, 2021 16:22.