Skip to content

Commit

Permalink
fix saturation condition for bvor
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jan 11, 2024
1 parent 9fb86a4 commit 4a2217a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sat/smt/polysat/op_constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ namespace polysat {
bool rb = rv.val().get_bit(i);
if (rb == (pb || qb))
continue;
if (pb && !qb && rb)
if (pb && !rb)
add_conflict(c, "p[i] => (p|q)[i]", { ~C.bit(p, i), C.bit(r, i) });
else if (!pb && qb && rb)
else if (qb && !rb)
add_conflict(c, "q[i] => (p|q)[i]", { ~C.bit(q, i), C.bit(r, i) });
else if (!pb && !qb && rb)
add_conflict(c, "(p|q)[i] => p[i] or q[i]", { C.bit(p, i), C.bit(q, i), ~C.bit(r, i) });
Expand Down

0 comments on commit 4a2217a

Please # to comment.