mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 02:15:19 +00:00
fixes a bug
This commit is contained in:
parent
d3258e7084
commit
318d7d7564
|
@ -1058,10 +1058,7 @@ new_lemma& new_lemma::operator|=(ineq const& ineq) {
|
|||
}
|
||||
|
||||
// Contrary to new_lemma::operator|=, this method does not assert that the model does not satisfy the ineq.
|
||||
// If ineq holds then it is a nop.
|
||||
new_lemma& new_lemma::operator+=(ineq const& ineq) {
|
||||
if (c.ineq_holds(ineq)) return *this;
|
||||
|
||||
if (!c.explain_ineq(*this, ineq.term(), ineq.cmp(), ineq.rs())) {
|
||||
current().push_back(ineq);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue