3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-19 10:52:02 +00:00

propagate lineal monomial

This commit is contained in:
Lev Nachmanson 2023-09-01 11:18:03 -07:00
parent 5509b468e9
commit d3258e7084
3 changed files with 15 additions and 3 deletions

View file

@ -1056,6 +1056,17 @@ new_lemma& new_lemma::operator|=(ineq const& ineq) {
}
return *this;
}
// 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);
}
return *this;
}
new_lemma::~new_lemma() {