mirror of
https://github.com/Z3Prover/z3
synced 2026-04-23 20:33:30 +00:00
adding band
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
45b0be3b37
commit
bbec72f0b3
9 changed files with 55 additions and 45 deletions
|
|
@ -343,22 +343,4 @@ namespace polysat {
|
|||
return eval(a.apply_to(lhs()), a.apply_to(rhs()));
|
||||
}
|
||||
|
||||
bool ule_constraint::is_always_true() const {
|
||||
if (lhs().is_zero())
|
||||
return true; // 0 <= p
|
||||
if (rhs().is_max())
|
||||
return true; // p <= -1
|
||||
if (lhs().is_val() && rhs().is_val())
|
||||
return lhs().val() <= rhs().val();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ule_constraint::is_always_false() const {
|
||||
if (lhs().is_never_zero() && rhs().is_zero())
|
||||
return true; // p > 0, q = 0
|
||||
if (lhs().is_val() && rhs().is_val())
|
||||
return lhs().val() > rhs().val();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue