Public Member Functions | |
| def | __init__ |
| def | __del__ |
| def | ref |
| def | interrupt |
| def | set |
Data Fields | |
| lib | |
| ctx | |
A Context manages all other Z3 objects, global configuration options, etc. Z3Py uses a default global context. For most applications this is sufficient. An application may use multiple Z3 contexts. Objects created in one context cannot be used in another one. However, several objects may be "translated" from one context to another. It is not safe to access Z3 objects from multiple threads. The only exception is the method `interrupt()` that can be used to interrupt() a long computation. The initialization method receives global configuration options for the new context.
| def __del__ | ( | self | ) |
| def interrupt | ( | self | ) |
Interrupt a solver performing a satisfiability test, a tactic processing a goal, or simplify functions. This method can be invoked from a thread different from the one executing the interruptable procedure.
| def ref | ( | self | ) |
| def set | ( | self, | |
| args, | |||
| kws | |||
| ) |
Set global configuration options.
Z3 command line options can be set using this method.
The option names can be specified in different ways:
>>> ctx = Context()
>>> ctx.set('WELL_SORTED_CHECK', True)
>>> ctx.set(':well-sorted-check', True)
>>> ctx.set(well_sorted_check=True)
Definition at line 172 of file z3py.py.
| ctx |
Definition at line 150 of file z3py.py.
Referenced by Context.__del__(), ExprRef.__eq__(), Probe.__eq__(), Probe.__ge__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), Probe.__lt__(), ExprRef.__ne__(), Probe.__ne__(), Tactic.apply(), ExprRef.arg(), ApplyResult.as_expr(), BoolSortRef.cast(), ApplyResult.convert_model(), ExprRef.decl(), FuncDeclRef.domain(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_rules(), SortRef.kind(), SortRef.name(), FuncDeclRef.name(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), FuncDeclRef.range(), Context.ref(), Context.set(), Tactic.solver(), ExprRef.sort(), BoolRef.sort(), and Fixedpoint.statistics().
1.8.2