3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

fix bugs reported by phan

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-12-17 04:20:24 +02:00
parent 1bcf5b8b5f
commit 56b9c4c8a2
2 changed files with 48 additions and 12 deletions

View file

@ -983,7 +983,9 @@ namespace smt {
tout << "\n";
display(tout, c, true););
resolve_conflict(c);
if ((c.m_num_propagations & 0xF) == 0) {
resolve_conflict(c);
}
justification* js = 0;
ctx.mk_clause(lits.size(), lits.c_ptr(), js, CLS_AUX_LEMMA, 0);
@ -1029,6 +1031,16 @@ namespace smt {
if (ctx.get_assignment(l) != l_false) {
m_lemma.m_k -= coeff;
if (false && is_marked(v)) {
SASSERT(ctx.get_assignment(l) == l_true);
numeral& lcoeff = m_lemma.m_args[m_conseq_index[v]].second;
lcoeff -= coeff;
if (!lcoeff.is_pos()) {
// perhaps let lemma simplification change coefficient
// when negative?
remove_from_lemma(m_lemma, m_conseq_index[v]);
}
}
}
else if (lvl > ctx.get_base_level()) {
if (is_marked(v)) {