Public Member Functions | |
def | __init__ (self, f, ctx) |
def | __del__ (self) |
def | else_value (self) |
def | num_entries (self) |
def | arity (self) |
def | entry (self, idx) |
def | translate (self, other_ctx) |
def | __copy__ (self) |
def | __deepcopy__ |
def | as_list (self) |
def | __repr__ (self) |
![]() | |
def | use_pp (self) |
Data Fields | |
f | |
ctx | |
def __init__ | ( | self, | |
f, | |||
ctx | |||
) |
def __del__ | ( | 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 6347 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 6308 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 6361 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 6331 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 6381 of file z3py.py.
Referenced by FuncInterp.__copy__(), and FuncInterp.__deepcopy__().
ctx |
Definition at line 6300 of file z3py.py.
Referenced by FuncInterp.__copy__(), FuncInterp.__deepcopy__(), Fixedpoint.__deepcopy__(), Optimize.__deepcopy__(), ApplyResult.__deepcopy__(), Simplifier.__deepcopy__(), Tactic.__deepcopy__(), Probe.__deepcopy__(), Probe.__eq__(), Probe.__ge__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), Probe.__lt__(), Probe.__ne__(), Simplifier.add(), 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(), ParserContext.from_string(), 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(), Simplifier.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Fixedpoint.query(), Fixedpoint.set(), Optimize.set(), Optimize.set_on_model(), Tactic.solver(), Fixedpoint.statistics(), Optimize.statistics(), Solver.to_smt2(), Optimize.unsat_core(), Fixedpoint.update_rule(), and Simplifier.using_params().
f |
Definition at line 6299 of file z3py.py.
Referenced by FuncInterp.__del__(), FuncInterp.arity(), FuncInterp.as_list(), FuncInterp.else_value(), FuncInterp.entry(), and FuncInterp.num_entries().