Public Member Functions | |
| def | __init__ |
| def | __del__ |
| def | __len__ |
| def | __contains__ |
| def | __getitem__ |
| def | __setitem__ |
| def | __repr__ |
| def | erase |
| def | reset |
| def | keys |
Data Fields | |
| map | |
| ctx | |
| def __del__ | ( | self | ) |
| def __contains__ | ( | self, | |
| key | |||
| ) |
| def __getitem__ | ( | self, | |
| key | |||
| ) |
| def __len__ | ( | self | ) |
| def __repr__ | ( | self | ) |
| def __setitem__ | ( | self, | |
| k, | |||
| v | |||
| ) |
Add/Update key `k` with value `v`.
>>> M = AstMap()
>>> x = Int('x')
>>> M[x] = x + 1
>>> len(M)
1
>>> M[x]
x + 1
>>> M[x] = IntVal(1)
>>> M[x]
1
Definition at line 5051 of file z3py.py.
| def erase | ( | self, | |
| k | |||
| ) |
| def keys | ( | self | ) |
Return an AstVector containing all keys in the map.
>>> M = AstMap()
>>> x = Int('x')
>>> M[x] = x + 1
>>> M[x+x] = IntVal(1)
>>> M.keys()
[x, x + x]
Definition at line 5099 of file z3py.py.
| def reset | ( | self | ) |
| ctx |
Definition at line 5002 of file z3py.py.
Referenced by Probe.__eq__(), Probe.__ge__(), 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().
| map |
Definition at line 5000 of file z3py.py.
Referenced by AstMap.__contains__(), AstMap.__del__(), AstMap.__getitem__(), AstMap.__len__(), AstMap.__repr__(), AstMap.__setitem__(), AstMap.erase(), AstMap.keys(), and AstMap.reset().
1.8.5