File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ bool goto_symex_fault_localizert::check(
9595 }
9696
9797 // lock the failed assertion
98- assumptions.push_back (solver. handle ( not_exprt (failed_step.cond_handle ) ));
98+ assumptions.push_back (not_exprt (failed_step.cond_handle ));
9999
100100 solver.push (assumptions);
101101
Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ prop_conv_solvert::dec_solve(const exprt &assumption)
463463 if (assumption.is_nil ())
464464 push ();
465465 else
466- push ({literal_exprt ( convert ( assumption)) });
466+ push ({assumption});
467467
468468 auto prop_result = prop.prop_solve (assumption_stack);
469469
@@ -539,7 +539,12 @@ void prop_conv_solvert::push(const std::vector<exprt> &assumptions)
539539 // We push the given assumptions as a single context onto the stack.
540540 assumption_stack.reserve (assumption_stack.size () + assumptions.size ());
541541 for (const auto &assumption : assumptions)
542- assumption_stack.push_back (to_literal_expr (assumption).get_literal ());
542+ {
543+ auto literal = convert (assumption);
544+ if (!literal.is_constant ())
545+ set_frozen (literal);
546+ assumption_stack.push_back (literal);
547+ }
543548 context_size_stack.push_back (assumptions.size ());
544549}
545550
You can’t perform that action at this time.
0 commit comments