3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

hunt bugs exposed by so.smt2

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-12-08 18:58:48 -08:00
parent 97b2fc9ee7
commit 0f0397b05f
2 changed files with 5 additions and 1 deletions

View file

@ -239,6 +239,7 @@ namespace opt {
terms[i] = m.mk_not(terms[i].get());
}
}
id = symbol(index);
return true;
}
if (is_maximize(fml, term, index) &&
@ -260,6 +261,7 @@ namespace opt {
offset += weights[i];
}
neg = true;
id = symbol(index);
return true;
}
return false;

View file

@ -1121,6 +1121,7 @@ namespace smt {
}
else {
if (lvl == m_conflict_lvl) {
TRACE("pb", tout << "add mark: " << l << " " << coeff << "\n";);
++m_num_marks;
}
set_mark(v, m_lemma.size());
@ -1285,7 +1286,8 @@ namespace smt {
justification& j = *js.get_justification();
// only process pb justifications.
if (j.get_from_theory() != get_id()) {
IF_VERBOSE(0, verbose_stream() << "skipping justification for " << conseq << "\n";);
IF_VERBOSE(0, verbose_stream() << "skipping justification for theory " << conseq << "\n";);
IF_VERBOSE(0, verbose_stream() << j.get_from_theory() << "\n";);
m_ineq_literals.push_back(conseq);
break;
}