Public Member Functions | |
def | as_ast |
def | get_id |
def | kind |
def | subsort |
def | cast |
def | name |
def | __eq__ |
def | __ne__ |
def | __hash__ |
![]() | |
def | __init__ |
def | __del__ |
def | __deepcopy__ |
def | __str__ |
def | __repr__ |
def | __eq__ |
def | __hash__ |
def | __nonzero__ |
def | __bool__ |
def | sexpr |
def | as_ast |
def | get_id |
def | ctx_ref |
def | eq |
def | translate |
def | __copy__ |
def | hash |
![]() | |
def | use_pp |
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 558 of file z3py.py.
Referenced by CheckSatResult.__ne__(), and Probe.__ne__().
def __hash__ | ( | self | ) |
Hash code.
def __ne__ | ( | self, | |
other | |||
) |
def as_ast | ( | self | ) |
def cast | ( | self, | |
val | |||
) |
def get_id | ( | self | ) |
Definition at line 506 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 509 of file z3py.py.
Referenced by ArithSortRef.is_int(), and ArithSortRef.is_real().
def name | ( | self | ) |
def subsort | ( | self, | |
other | |||
) |