Arithmetic. More...
Inheritance diagram for ArithSortRef:Public Member Functions | |
| def | is_real |
| def | is_int |
| def | subsort |
| def | cast |
Public Member Functions inherited from SortRef | |
| 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 |
Data Fields | |
| ctx | |
Data Fields inherited from AstRef | |
| ast | |
| ctx | |
| 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 1873 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 1859 of file z3py.py.
Referenced by ArithSortRef.cast().
| def subsort | ( | self, | |
| other | |||
| ) |
| ctx |
Definition at line 1907 of file z3py.py.
Referenced by Probe.__eq__(), Probe.__ge__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), Probe.__lt__(), Probe.__ne__(), Fixedpoint.add_rule(), Optimize.add_soft(), Tactic.apply(), ApplyResult.as_expr(), Fixedpoint.assert_exprs(), ApplyResult.convert_model(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_rules(), Optimize.model(), Fixedpoint.param_descrs(), Optimize.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Fixedpoint.query(), Fixedpoint.set(), Optimize.set(), Tactic.solver(), Fixedpoint.statistics(), Optimize.statistics(), Solver.to_smt2(), and Fixedpoint.update_rule().
1.8.5