3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 03:57:51 +00:00

find_upper_bound

This commit is contained in:
Jakob Rath 2021-09-08 18:40:29 +02:00
parent 64ce6cb5c1
commit 18411afda2
3 changed files with 29 additions and 12 deletions

View file

@ -90,8 +90,11 @@ namespace polysat {
// TODO: other conditions (e.g. when forbidden interval would be full)
if (is_positive)
return lhs.is_val() && rhs.is_val() && lhs.val() > rhs.val();
else
else {
if (lhs.is_zero())
return true; // 0 > ... is always false
return (lhs.is_val() && rhs.is_val() && lhs.val() <= rhs.val()) || (lhs == rhs);
}
}
bool ule_constraint::is_always_false(bool is_positive) {