3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-12 02:04:43 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-04-29 10:12:33 -07:00
parent 60972de562
commit 622b2d3b39
3 changed files with 156 additions and 88 deletions

View file

@ -111,9 +111,9 @@ namespace polysat {
// TODO: other conditions (e.g. when forbidden interval would be full)
VERIFY(!is_undef());
if (is_positive())
return lhs.is_val() && rhs.is_val() && !(lhs.val() <= rhs.val());
return lhs.is_val() && rhs.is_val() && lhs.val() > rhs.val();
else
return lhs.is_val() && rhs.is_val() && !(lhs.val() > rhs.val());
return lhs.is_val() && rhs.is_val() && lhs.val() <= rhs.val();
}
bool ule_constraint::is_always_false() {