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

change to assertion

This commit is contained in:
Jakob Rath 2021-09-08 18:42:08 +02:00
parent 18411afda2
commit a5b7f9d77b

View file

@ -74,8 +74,10 @@ namespace polysat {
inequality bound = b.as_inequality();
if (is_x_l_Y(x, bound, y) && y.is_val()) {
rational value = y.val();
if (bound.is_strict && value > 0) // TODO: should we return something for "x < 0"? (is always false, should lead to conflict earlier)
if (bound.is_strict) {
SASSERT(value > 0); // "x < 0" is always false and should have led to a conflict earlier
value = value - 1;
}
if (value < best_bound) {
best_bound = value;
c = b;