Skip to content

Commit

Permalink
Overload xor operator for BoolRef (#7043)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyilo committed Dec 5, 2023
1 parent 4d4359f commit 764f0d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,9 @@ def __and__(self, other):

def __or__(self, other):
return Or(self, other)

def __xor__(self, other):
return Xor(self, other)

def __invert__(self):
return Not(self)
Expand Down

0 comments on commit 764f0d5

Please sign in to comment.