3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Fix unsoundness in previous commit

This commit is contained in:
Jakob Rath 2022-12-13 15:26:22 +01:00
parent 7e7cea54f4
commit 1bc4313333

View file

@ -417,6 +417,9 @@ namespace polysat {
fi.coeff = 1;
fi.interval = eval_interval::proper(lo, lo_val, hi, hi_val);
// RHS == 0 is a precondition because we can only multiply with a^-1 in equations, not inequalities
if (b2 != e2)
fi.side_cond.push_back(s.eq(b2, e2));
return true;
}
return false;