Inheritance diagram for AstVector:Public Member Functions | |
| def | __init__ |
| 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 | __copy__ (self) |
| def | __deepcopy__ |
| 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 __getitem__ | ( | self, | |
| i | |||
| ) |
| def __len__ | ( | self | ) |
Return the size of the vector `self`.
>>> A = AstVector()
>>> len(A)
0
>>> A.push(Int('x'))
>>> A.push(Int('x'))
>>> len(A)
2
Definition at line 5805 of file z3py.py.
Referenced by AstVector.__getitem__().
| 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 5847 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 5936 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 5911 of file z3py.py.
Referenced by AstVector.__copy__(), and AstVector.__deepcopy__().
| ctx |
Definition at line 5793 of file z3py.py.
Referenced by AstVector.__copy__(), AstVector.__deepcopy__(), AstMap.__deepcopy__(), Fixedpoint.__deepcopy__(), Optimize.__deepcopy__(), ApplyResult.__deepcopy__(), Tactic.__deepcopy__(), Probe.__deepcopy__(), Probe.__eq__(), Probe.__ge__(), AstVector.__getitem__(), AstMap.__getitem__(), 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(), 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(), AstMap.keys(), 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(), Optimize.set_on_model(), Tactic.solver(), Fixedpoint.statistics(), Optimize.statistics(), Solver.to_smt2(), Optimize.unsat_core(), and Fixedpoint.update_rule().
| vector |
Definition at line 5791 of file z3py.py.
Referenced by AstVector.__del__(), AstVector.__getitem__(), AstVector.__len__(), AstVector.__setitem__(), AstVector.push(), AstVector.resize(), AstVector.sexpr(), and AstVector.translate().
1.8.10