Skip to content

Commit

Permalink
pin expression passed to validate_eq
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jan 17, 2024
1 parent 4f75153 commit fef1596
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/smt/theory_lra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3499,7 +3499,8 @@ class theory_lra::imp {
flet<bool> _svalid(s_validating, true);
context nctx(m, ctx().get_fparams(), ctx().get_params());
add_background(nctx);
nctx.assert_expr(m.mk_not(m.mk_eq(x->get_expr(), y->get_expr())));
expr_ref neq(m.mk_not(m.mk_eq(x->get_expr(), y->get_expr())), m);
nctx.assert_expr(neq);
cancel_eh<reslimit> eh(m.limit());
scoped_timer timer(1000, &eh);
lbool r = nctx.check();
Expand Down

0 comments on commit fef1596

Please sign in to comment.