mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Overload xor operator for BoolRef (#7043)
This commit is contained in:
parent
4d4359f78a
commit
764f0d54a4
|
@ -1594,6 +1594,9 @@ class BoolRef(ExprRef):
|
||||||
def __or__(self, other):
|
def __or__(self, other):
|
||||||
return Or(self, other)
|
return Or(self, other)
|
||||||
|
|
||||||
|
def __xor__(self, other):
|
||||||
|
return Xor(self, other)
|
||||||
|
|
||||||
def __invert__(self):
|
def __invert__(self):
|
||||||
return Not(self)
|
return Not(self)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue