Inheritance diagram for SortRef:Public Member Functions | |
| def | as_ast |
| def | get_id |
| def | kind |
| def | subsort |
| def | cast |
| def | name |
| def | __eq__ |
| def | __ne__ |
Public Member Functions inherited from AstRef | |
| def | __init__ |
| def | __del__ |
| def | __str__ |
| def | __repr__ |
| def | sexpr |
| def | as_ast |
| def | get_id |
| def | ctx_ref |
| def | eq |
| def | translate |
| def | hash |
Public Member Functions inherited from Z3PPObject | |
| def | use_pp |
Additional Inherited Members | |
Data Fields inherited from AstRef | |
| 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 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
| def name | ( | self | ) |
| def subsort | ( | self, | |
| other | |||
| ) |
1.8.5