mirror of
https://github.com/Z3Prover/z3
synced 2025-07-03 11:25:40 +00:00
change to assertion
This commit is contained in:
parent
18411afda2
commit
a5b7f9d77b
1 changed files with 3 additions and 1 deletions
|
@ -74,8 +74,10 @@ namespace polysat {
|
||||||
inequality bound = b.as_inequality();
|
inequality bound = b.as_inequality();
|
||||||
if (is_x_l_Y(x, bound, y) && y.is_val()) {
|
if (is_x_l_Y(x, bound, y) && y.is_val()) {
|
||||||
rational value = y.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;
|
value = value - 1;
|
||||||
|
}
|
||||||
if (value < best_bound) {
|
if (value < best_bound) {
|
||||||
best_bound = value;
|
best_bound = value;
|
||||||
c = b;
|
c = b;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue