Inheritance diagram for AstVector:Public Member Functions | |
| def | __init__ (self, v=None, ctx=None) |
| def | __deepcopy__ (self, memo={}) |
| def | __del__ (self) |
| def | __len__ (self) |
| def | __getitem__ (self, i) |
| def | __setitem__ (self, i, v) |
| def | push (self, v) |
| def | resize (self, sz) |
| def | __contains__ (self, item) |
| def | translate (self, other_ctx) |
| def | __repr__ (self) |
| def | sexpr (self) |
Public Member Functions inherited from Z3PPObject | |
| def | use_pp (self) |
Data Fields | |
| vector | |
| ctx | |
| def __init__ | ( | self, | |
v = None, |
|||
ctx = None |
|||
| ) |
| def __del__ | ( | self | ) |
| def __contains__ | ( | self, | |
| item | |||
| ) |
| def __deepcopy__ | ( | self, | |
memo = {} |
|||
| ) |
| def __getitem__ | ( | self, | |
| i | |||
| ) |
| def __len__ | ( | self | ) |
| def __repr__ | ( | self | ) |
| def __setitem__ | ( | self, | |
| i, | |||
| v | |||
| ) |
Update AST at position `i`.
>>> A = AstVector()
>>> A.push(Int('x') + 1)
>>> A.push(Int('y'))
>>> A[0]
x + 1
>>> A[0] = Int('x')
>>> A[0]
x
Definition at line 5139 of file z3py.py.
| def push | ( | self, | |
| v | |||
| ) |
| def resize | ( | self, | |
| sz | |||
| ) |
| def sexpr | ( | self | ) |
Return a textual representation of the s-expression representing the vector.
Definition at line 5219 of file z3py.py.
Referenced by Fixedpoint.__repr__(), and Optimize.__repr__().
| def translate | ( | self, | |
| other_ctx | |||
| ) |
Copy vector `self` to context `other_ctx`.
>>> x = Int('x')
>>> A = AstVector()
>>> A.push(x)
>>> c2 = Context()
>>> B = A.translate(c2)
>>> B
[x]
Definition at line 5203 of file z3py.py.
| ctx |
Definition at line 5096 of file z3py.py.
Referenced by Probe.__call__(), Fixedpoint.__deepcopy__(), Optimize.__deepcopy__(), ApplyResult.__deepcopy__(), Tactic.__deepcopy__(), Probe.__deepcopy__(), Fixedpoint.__del__(), Optimize.__del__(), ApplyResult.__del__(), Tactic.__del__(), Probe.__del__(), Probe.__eq__(), Probe.__ge__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), ApplyResult.__len__(), Probe.__lt__(), Probe.__ne__(), Fixedpoint.add_cover(), Fixedpoint.add_rule(), Optimize.add_soft(), Tactic.apply(), ApplyResult.as_expr(), Fixedpoint.assert_exprs(), Optimize.assert_exprs(), Optimize.assertions(), Optimize.check(), ApplyResult.convert_model(), Optimize.from_file(), Optimize.from_string(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_ground_sat_answer(), Fixedpoint.get_num_levels(), Fixedpoint.get_rule_names_along_trace(), Fixedpoint.get_rules(), Fixedpoint.get_rules_along_trace(), Fixedpoint.help(), Optimize.help(), Tactic.help(), Optimize.maximize(), Optimize.minimize(), Optimize.model(), Optimize.objectives(), Fixedpoint.param_descrs(), Optimize.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Fixedpoint.pop(), Optimize.pop(), Fixedpoint.push(), Optimize.push(), Fixedpoint.query(), Fixedpoint.query_from_lvl(), Fixedpoint.reason_unknown(), Optimize.reason_unknown(), Fixedpoint.register_relation(), Fixedpoint.set(), Optimize.set(), Fixedpoint.set_predicate_representation(), Fixedpoint.sexpr(), Optimize.sexpr(), ApplyResult.sexpr(), Tactic.solver(), Fixedpoint.statistics(), Optimize.statistics(), Solver.to_smt2(), Fixedpoint.to_string(), and Fixedpoint.update_rule().
1.8.14