Skip to content

Commit

Permalink
fix #4080
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Apr 24, 2020
1 parent 6ff61d1 commit 7597396
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/smt/seq_ne_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ bool theory_seq::reduce_ne(unsigned idx) {
}


TRACE("seq", display_disequation(tout << "updated: " << updated << "\n", n);

);
TRACE("seq", display_disequation(tout << "updated: " << updated << "\n", n););

if (updated) {
auto new_n(ne(n.l(), n.r(), new_eqs, new_lits, new_deps));
Expand All @@ -247,10 +245,10 @@ bool theory_seq::branch_nqs() {
case l_undef: // needs assignment to a literal.
return true;
case l_true: // disequality is satisfied.
m_nqs.erase_and_swap(i);
m_nqs.erase_and_swap(i--);
break;
case l_false: // needs to be expanded.
m_nqs.erase_and_swap(i);
m_nqs.erase_and_swap(i--);
return true;
}
}
Expand All @@ -264,7 +262,9 @@ lbool theory_seq::branch_nq(ne const& n) {
ctx.mark_as_relevant(eq_len);
switch (ctx.get_assignment(eq_len)) {
case l_false:
TRACE("seq", ctx.display_literal_smt2(tout << "lengths are different: ", eq_len) << "\n";);
TRACE("seq",
display_disequation(tout, n);
ctx.display_literal_smt2(tout << "lengths are different: ", eq_len) << "\n";);
return l_true;
case l_undef:
return l_undef;
Expand Down

0 comments on commit 7597396

Please sign in to comment.