Public Member Functions | |
def | __init__ |
def | __deepcopy__ |
def | __del__ |
def | else_value |
def | num_entries |
def | arity |
def | entry |
def | translate |
def | __copy__ |
def | __deepcopy__ |
def | as_list |
def | __repr__ |
![]() | |
def | use_pp |
Data Fields | |
f | |
ctx | |
def __del__ | ( | self | ) |
def __copy__ | ( | self | ) |
def __deepcopy__ | ( | self, | |
memo = {} |
|||
) |
Definition at line 5829 of file z3py.py.
def __deepcopy__ | ( | self, | |
memo = {} |
|||
) |
def __repr__ | ( | self | ) |
def arity | ( | self | ) |
Return the number of arguments for each entry in the function interpretation `self`. >>> f = Function('f', IntSort(), IntSort()) >>> s = Solver() >>> s.add(f(0) == 1, f(1) == 1, f(2) == 0) >>> s.check() sat >>> m = s.model() >>> m[f].arity() 1
Definition at line 5875 of file z3py.py.
def as_list | ( | self | ) |
def else_value | ( | self | ) |
Return the `else` value for a function interpretation. Return None if Z3 did not specify the `else` value for this object. >>> f = Function('f', IntSort(), IntSort()) >>> s = Solver() >>> s.add(f(0) == 1, f(1) == 1, f(2) == 0) >>> s.check() sat >>> m = s.model() >>> m[f] [2 -> 0, else -> 1] >>> m[f].else_value() 1
Definition at line 5836 of file z3py.py.
Referenced by FuncInterp.as_list().
def entry | ( | self, | |
idx | |||
) |
Return an entry at position `idx < self.num_entries()` in the function interpretation `self`. >>> f = Function('f', IntSort(), IntSort()) >>> s = Solver() >>> s.add(f(0) == 1, f(1) == 1, f(2) == 0) >>> s.check() sat >>> m = s.model() >>> m[f] [2 -> 0, else -> 1] >>> m[f].num_entries() 1 >>> m[f].entry(0) [2, 0]
Definition at line 5889 of file z3py.py.
Referenced by FuncInterp.as_list().
def num_entries | ( | self | ) |
Return the number of entries/points in the function interpretation `self`. >>> f = Function('f', IntSort(), IntSort()) >>> s = Solver() >>> s.add(f(0) == 1, f(1) == 1, f(2) == 0) >>> s.check() sat >>> m = s.model() >>> m[f] [2 -> 0, else -> 1] >>> m[f].num_entries() 1
Definition at line 5859 of file z3py.py.
Referenced by FuncInterp.as_list(), and FuncInterp.entry().
def translate | ( | self, | |
other_ctx | |||
) |
Copy model 'self' to context 'other_ctx'.
Definition at line 5909 of file z3py.py.
Referenced by FuncInterp.__copy__(), and FuncInterp.__deepcopy__().
ctx |
Definition at line 5825 of file z3py.py.
Referenced by FuncInterp.__copy__(), FuncInterp.__deepcopy__(), Fixedpoint.__deepcopy__(), Optimize.__deepcopy__(), ApplyResult.__deepcopy__(), Tactic.__deepcopy__(), Probe.__deepcopy__(), 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(), Optimize.assert_and_track(), Fixedpoint.assert_exprs(), Optimize.assert_exprs(), Optimize.assertions(), FuncInterp.else_value(), FuncInterp.entry(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_ground_sat_answer(), Fixedpoint.get_rule_names_along_trace(), Fixedpoint.get_rules(), Fixedpoint.get_rules_along_trace(), Optimize.model(), Optimize.objectives(), 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(), Optimize.unsat_core(), and Fixedpoint.update_rule().
f |
Definition at line 5824 of file z3py.py.
Referenced by FuncInterp.__deepcopy__(), FuncInterp.__del__(), FuncInterp.arity(), FuncInterp.as_list(), FuncInterp.else_value(), FuncInterp.entry(), and FuncInterp.num_entries().