Arithmetic. More...
Inheritance diagram for ArithSortRef:Public Member Functions | |
| def | is_real (self) |
| def | is_int (self) |
| def | subsort (self, other) |
| def | cast (self, val) |
Public Member Functions inherited from SortRef | |
| 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) |
Public Member Functions inherited from AstRef | |
| def | __init__ |
| 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) |
Public Member Functions inherited from Z3PPObject | |
| def | use_pp (self) |
Data Fields | |
| ctx | |
Data Fields inherited from AstRef | |
| ast | |
| ctx | |
| def cast | ( | self, | |
| val | |||
| ) |
Try to cast `val` as an Integer or Real. >>> IntSort().cast(10) 10 >>> is_int(IntSort().cast(10)) True >>> is_int(10) False >>> RealSort().cast(10) 10 >>> is_real(RealSort().cast(10)) True
| def is_int | ( | self | ) |
Return `True` if `self` is of the sort Integer.
>>> x = Int('x')
>>> x.is_int()
True
>>> (x + 1).is_int()
True
>>> x = Real('x')
>>> x.is_int()
False
Definition at line 1852 of file z3py.py.
Referenced by ArithSortRef.cast().
| def is_real | ( | self | ) |
Return `True` if `self` is of the sort Real.
>>> x = Real('x')
>>> x.is_real()
True
>>> (x + 1).is_real()
True
>>> x = Int('x')
>>> x.is_real()
False
Definition at line 1838 of file z3py.py.
Referenced by ArithSortRef.cast().
| def subsort | ( | self, | |
| other | |||
| ) |
| ctx |
Definition at line 1886 of file z3py.py.
Referenced by Probe.__eq__(), Probe.__ge__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), Probe.__lt__(), Probe.__ne__(), Fixedpoint.add_rule(), Tactic.apply(), ApplyResult.as_expr(), Fixedpoint.assert_exprs(), ApplyResult.convert_model(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_rules(), Fixedpoint.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Fixedpoint.set(), Tactic.solver(), Fixedpoint.statistics(), Solver.to_smt2(), and Fixedpoint.update_rule().
1.8.9.1