Skip to content

Commit 5d673ef

Browse files
committed
simplify: rewrite bitxnor on booleans to equal
This adds the rewrite (a xnor b) --> (a = b) for booleans a, b to the simplifier.
1 parent 0fc8a49 commit 5d673ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/simplify_expr_int.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ simplify_exprt::simplify_bitwise(const multi_ary_exprt &expr)
696696
new_expr.id(ID_or);
697697
else if(expr.id()==ID_bitxor)
698698
new_expr.id(ID_xor);
699+
else if(expr.id() == ID_bitxnor)
700+
new_expr.id(ID_equal);
699701
else
700702
UNREACHABLE;
701703

0 commit comments

Comments
 (0)