3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-26 17:02:38 +00:00

omit adding rows for affine relations if it is true in the current model

This commit is contained in:
Nikolaj Bjorner 2026-07-23 09:43:32 -07:00
parent 1d83ecb9de
commit e0f978f7cd

View file

@ -283,6 +283,8 @@ namespace nla {
}
bool monomial_bounds::propagate_nonfixed(monic const& m, rational const& k, lpvar w) {
if (c().val(m.var()) == k * c().val(w))
return false;
vector<std::pair<lp::mpq, unsigned>> coeffs;
coeffs.push_back({-k, w});
coeffs.push_back({rational::one(), m.var()});