Booleans. More...
Public Member Functions | |
cast (self, val) | |
subsort (self, other) | |
is_int (self) | |
is_bool (self) | |
![]() | |
as_ast (self) | |
get_id (self) | |
kind (self) | |
name (self) | |
__eq__ (self, other) | |
__ne__ (self, other) | |
__hash__ (self) | |
![]() | |
__init__ (self, ast, ctx=None) | |
__del__ (self) | |
__deepcopy__ (self, memo={}) | |
__str__ (self) | |
__repr__ (self) | |
__eq__ (self, other) | |
__hash__ (self) | |
__nonzero__ (self) | |
__bool__ (self) | |
sexpr (self) | |
ctx_ref (self) | |
eq (self, other) | |
translate (self, target) | |
__copy__ (self) | |
hash (self) | |
py_value (self) | |
![]() | |
use_pp (self) | |
Additional Inherited Members | |
![]() | |
ast = ast | |
ctx = _get_ctx(ctx) | |
![]() | |
_repr_html_ (self) | |
cast | ( | self, | |
val ) |
Try to cast `val` as a Boolean. >>> x = BoolSort().cast(True) >>> x True >>> is_expr(x) True >>> is_expr(True) False >>> x.sort() Bool
Reimplemented from SortRef.
Definition at line 1559 of file z3py.py.
is_bool | ( | self | ) |
is_int | ( | self | ) |
Definition at line 1585 of file z3py.py.
Referenced by IntNumRef.as_long(), and ArithSortRef.subsort().