mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
Normalize to 0 < 0 instead of 1 <= 0
This commit is contained in:
parent
e7c77a22ab
commit
eaf38abf17
1 changed files with 4 additions and 3 deletions
|
@ -84,7 +84,7 @@ namespace {
|
|||
if (lhs.val() <= rhs.val())
|
||||
lhs = 0, rhs = 0;
|
||||
else
|
||||
lhs = 1, rhs = 0;
|
||||
lhs = 0, rhs = 0, is_positive = !is_positive;
|
||||
return;
|
||||
}
|
||||
// k <= p --> p - k <= - k - 1
|
||||
|
@ -100,9 +100,10 @@ namespace {
|
|||
rhs = 0;
|
||||
is_positive = !is_positive;
|
||||
}
|
||||
// 2p + 1 <= 0 --> 1 <= 0
|
||||
// 2p + 1 <= 0 --> 0 < 0
|
||||
if (rhs.is_zero() && lhs.is_never_zero()) {
|
||||
lhs = 1;
|
||||
lhs = 0;
|
||||
is_positive = !is_positive;
|
||||
return;
|
||||
}
|
||||
// a*p + q <= 0 --> p + a^-1*q <= 0 for a odd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue