3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-04-18 16:27:46 +02:00
parent 98c7069f75
commit df981666fd

View file

@ -882,10 +882,12 @@ public:
ncore.push_back(mk_not(m, f));
m_unfold_upper -= b.weight;
}
m_unfold_upper += rational(core.size() - 1) * weight;
if (core.size() > 1) {
m_unfold_upper += rational(core.size() - 2) * weight;
expr* am = mk_atmost(ncore, 1, weight);
new_assumption(am, weight);
}
}
// cs is a correction set (a complement of a (maximal) satisfying assignment).