Skip to content

Commit 7597396

Browse files
fix #4080
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 6ff61d1 commit 7597396

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/smt/seq_ne_solver.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ bool theory_seq::reduce_ne(unsigned idx) {
225225
}
226226

227227

228-
TRACE("seq", display_disequation(tout << "updated: " << updated << "\n", n);
229-
230-
);
228+
TRACE("seq", display_disequation(tout << "updated: " << updated << "\n", n););
231229

232230
if (updated) {
233231
auto new_n(ne(n.l(), n.r(), new_eqs, new_lits, new_deps));
@@ -247,10 +245,10 @@ bool theory_seq::branch_nqs() {
247245
case l_undef: // needs assignment to a literal.
248246
return true;
249247
case l_true: // disequality is satisfied.
250-
m_nqs.erase_and_swap(i);
248+
m_nqs.erase_and_swap(i--);
251249
break;
252250
case l_false: // needs to be expanded.
253-
m_nqs.erase_and_swap(i);
251+
m_nqs.erase_and_swap(i--);
254252
return true;
255253
}
256254
}
@@ -264,7 +262,9 @@ lbool theory_seq::branch_nq(ne const& n) {
264262
ctx.mark_as_relevant(eq_len);
265263
switch (ctx.get_assignment(eq_len)) {
266264
case l_false:
267-
TRACE("seq", ctx.display_literal_smt2(tout << "lengths are different: ", eq_len) << "\n";);
265+
TRACE("seq",
266+
display_disequation(tout, n);
267+
ctx.display_literal_smt2(tout << "lengths are different: ", eq_len) << "\n";);
268268
return l_true;
269269
case l_undef:
270270
return l_undef;

0 commit comments

Comments
 (0)