Public Member Functions | |
def | __init__ (self, v=None, ctx=None) |
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) |
![]() | |
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 4879 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 4907 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 4987 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 4971 of file z3py.py.
ctx |
Definition at line 4867 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(), Optimize.add_soft(), 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(), Optimize.model(), 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(), and Fixedpoint.update_rule().
vector |
Definition at line 4865 of file z3py.py.
Referenced by AstVector.__del__(), AstVector.__getitem__(), AstVector.__len__(), AstVector.__setitem__(), AstVector.push(), AstVector.resize(), AstVector.sexpr(), and AstVector.translate().