All Boolean expressions are instances of this class.
Definition at line 1568 of file z3py.py.
◆ __add__() def __add__ ( self, other )Definition at line 1574 of file z3py.py.
1574 def__add__(self, other):
1575 ifisinstance(other, BoolRef):
1576other =
If(other, 1, 0)
1577 return If(self, 1, 0) + other
def If(a, b, c, ctx=None)
◆ __and__() def __and__ ( self, other )Definition at line 1596 of file z3py.py.
1596 def__and__(self, other):
1597 return And(self, other)
◆ __invert__()Definition at line 1605 of file z3py.py.
1605 def__invert__(self):
◆ __mul__() def __mul__ ( self, other )Create the Z3 expression `self * other`.
Definition at line 1585 of file z3py.py.
1585 def__mul__(self, other):
1586 """Create the Z3 expression `self * other`. 1588 ifisinstance(other, int)
andother == 1:
1589 return If(self, 1, 0)
1590 ifisinstance(other, int)
andother == 0:
1591 return IntVal(0, self.ctx)
1592 ifisinstance(other, BoolRef):
1593other =
If(other, 1, 0)
1594 return If(self, other, 0)
def IntVal(val, ctx=None)
◆ __or__() def __or__ ( self, other )Definition at line 1599 of file z3py.py.
1599 def__or__(self, other):
1600 return Or(self, other)
◆ __radd__() def __radd__ ( self, other )Definition at line 1579 of file z3py.py.
1579 def__radd__(self, other):
◆ __rmul__() def __rmul__ ( self, other )Definition at line 1582 of file z3py.py.
1582 def__rmul__(self, other):
◆ __xor__() def __xor__ ( self, other )Definition at line 1602 of file z3py.py.
1602 def__xor__(self, other):
1603 return Xor(self, other)
◆ sort()Return the sort of expression `self`. >>> x = Int('x') >>> (x + 1).sort() Int >>> y = Real('y') >>> (x + y).sort() Real
Reimplemented from ExprRef.
Reimplemented in QuantifierRef.
Definition at line 1571 of file z3py.py.
1572 returnBoolSortRef(
Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.
Referenced by FPNumRef.as_string(), ArrayRef.domain(), ArrayRef.domain_n(), FPRef.ebits(), ArithRef.is_int(), ArithRef.is_real(), ArrayRef.range(), FPRef.sbits(), BitVecRef.size(), and ExprRef.sort_kind().
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4