mirror of
https://github.com/Z3Prover/z3
synced 2025-11-13 09:31:14 +00:00
fixup comparison with bounds
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6ba4ba142f
commit
706aff74ff
1 changed files with 7 additions and 0 deletions
|
|
@ -57,6 +57,13 @@ namespace nla {
|
|||
return false;
|
||||
if (c().var_is_fixed(j))
|
||||
return false;
|
||||
u_dependency *d = nullptr;
|
||||
lp::mpq bound;
|
||||
bool is_strict;
|
||||
if (c().has_lower_bound(j, d, bound, is_strict) && (bound > value || (bound == value && is_strict)))
|
||||
return false;
|
||||
if (c().has_upper_bound(j, d, bound, is_strict) && (bound < value || (bound == value && is_strict)))
|
||||
return false;
|
||||
// fix a bound that hasn't already been fixed.
|
||||
if (c().has_lower_bound(j) && c().get_lower_bound(j) == value) {
|
||||
auto i(ineq(j, lp::lconstraint_kind::LE, rational(value)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue