Z3
Public Member Functions
BoolRef Class Reference
+ Inheritance diagram for BoolRef:

Public Member Functions

def sort (self)
 
def __rmul__ (self, other)
 
def __mul__ (self, other)
 
- Public Member Functions inherited from ExprRef
def as_ast (self)
 
def get_id (self)
 
def sort (self)
 
def sort_kind (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __ne__ (self, other)
 
def params (self)
 
def decl (self)
 
def num_args (self)
 
def arg (self, idx)
 
def children (self)
 
def from_string (self, s)
 
def serialize (self)
 
- Public Member Functions inherited from AstRef
def __init__
 
def __del__ (self)
 
def __deepcopy__
 
def __str__ (self)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __nonzero__ (self)
 
def __bool__ (self)
 
def sexpr (self)
 
def as_ast (self)
 
def get_id (self)
 
def ctx_ref (self)
 
def eq (self, other)
 
def translate (self, target)
 
def __copy__ (self)
 
def hash (self)
 
- Public Member Functions inherited from Z3PPObject
def use_pp (self)
 

Additional Inherited Members

- Data Fields inherited from AstRef
 ast
 
 ctx
 

Detailed Description

All Boolean expressions are instances of this class.

Definition at line 1546 of file z3py.py.

Member Function Documentation

def __mul__ (   self,
  other 
)
Create the Z3 expression `self * other`.

Definition at line 1555 of file z3py.py.

1555  def __mul__(self, other):
1556  """Create the Z3 expression `self * other`.
1557  """
1558  if isinstance(other, int) and other == 1:
1559  return If(self, 1, 0)
1560  if isinstance(other, int) and other == 0:
1561  return IntVal(0, self.ctx)
1562  if isinstance(other, BoolRef):
1563  other = If(other, 1, 0)
1564  return If(self, other, 0)
1565 
def If
Definition: z3py.py:1377
def __mul__(self, other)
Definition: z3py.py:1555
def IntVal
Definition: z3py.py:3180
def __rmul__ (   self,
  other 
)

Definition at line 1552 of file z3py.py.

1552  def __rmul__(self, other):
1553  return self * other
1554 
def __rmul__(self, other)
Definition: z3py.py:1552
def sort (   self)

Definition at line 1549 of file z3py.py.

1549  def sort(self):
1550  return BoolSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
1551 
Booleans.
Definition: z3py.py:1510
def as_ast(self)
Definition: z3py.py:392
def sort(self)
Definition: z3py.py:1549
def ctx_ref(self)
Definition: z3py.py:400
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.