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 | __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 | |||
| ) |
Return the AST at position `i`.
>>> A = AstVector()
>>> A.push(Int('x') + 1)
>>> A.push(Int('y'))
>>> A[0]
x + 1
>>> A[1]
y
Definition at line 4832 of file z3py.py.
| 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 4819 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 4847 of file z3py.py.
| def push | ( | self, | |
| v | |||
| ) |
Add `v` in the end of the vector.
>>> A = AstVector()
>>> len(A)
0
>>> A.push(Int('x'))
>>> len(A)
1
Definition at line 4863 of file z3py.py.
| def resize | ( | self, | |
| sz | |||
| ) |
| def sexpr | ( | self | ) |
Return a textual representation of the s-expression representing the vector.
Definition at line 4927 of file z3py.py.
Referenced by Fixedpoint.__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 4911 of file z3py.py.
| ctx |
Definition at line 4807 of file z3py.py.
Referenced by Probe.__eq__(), Probe.__ge__(), AstVector.__getitem__(), AstMap.__getitem__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), Probe.__lt__(), Probe.__ne__(), Fixedpoint.add_rule(), Tactic.apply(), ApplyResult.as_expr(), Fixedpoint.assert_exprs(), ApplyResult.convert_model(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_rules(), AstMap.keys(), Fixedpoint.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Fixedpoint.set(), Tactic.solver(), Fixedpoint.statistics(), Solver.to_smt2(), and Fixedpoint.update_rule().
| vector |
Definition at line 4805 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.9.1