Public Member Functions | |
def | as_ast (self) |
def | get_id (self) |
def | kind (self) |
def | subsort (self, other) |
def | cast (self, val) |
def | name (self) |
def | __eq__ (self, other) |
def | __ne__ (self, other) |
![]() | |
def | __init__ (self, ast, ctx=None) |
def | __del__ (self) |
def | __str__ (self) |
def | __repr__ (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 | hash (self) |
![]() | |
def | use_pp (self) |
Additional Inherited Members | |
![]() | |
ast | |
ctx | |
A Sort is essentially a type. Every Z3 expression has a sort. A sort is an AST node.
def __eq__ | ( | self, | |
other | |||
) |
Return `True` if `self` and `other` are the same Z3 sort. >>> p = Bool('p') >>> p.sort() == BoolSort() True >>> p.sort() == IntSort() False
Definition at line 506 of file z3py.py.
Referenced by CheckSatResult.__ne__(), and Probe.__ne__().
def __ne__ | ( | self, | |
other | |||
) |
def as_ast | ( | self | ) |
def cast | ( | self, | |
val | |||
) |
def get_id | ( | self | ) |
Definition at line 454 of file z3py.py.
def kind | ( | self | ) |
Return the Z3 internal kind of a sort. This method can be used to test if `self` is one of the Z3 builtin sorts. >>> b = BoolSort() >>> b.kind() == Z3_BOOL_SORT True >>> b.kind() == Z3_INT_SORT False >>> A = ArraySort(IntSort(), IntSort()) >>> A.kind() == Z3_ARRAY_SORT True >>> A.kind() == Z3_INT_SORT False
Definition at line 457 of file z3py.py.
Referenced by ArithSortRef.is_int(), and ArithSortRef.is_real().
def name | ( | self | ) |