mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
Add solver::interrupt to Python's API. (#6739)
This commit is contained in:
parent
5e1869d8eb
commit
230306ddfc
1 changed files with 7 additions and 0 deletions
|
@ -7136,6 +7136,13 @@ class Solver(Z3PPObject):
|
|||
"""Import model converter from other into the current solver"""
|
||||
Z3_solver_import_model_converter(self.ctx.ref(), other.solver, self.solver)
|
||||
|
||||
def interrupt(self):
|
||||
"""Interrupt the execution of the solver object.
|
||||
Remarks: This ensures that the interrupt applies only
|
||||
to the given solver object and it applies only if it is running.
|
||||
"""
|
||||
Z3_solver_interrupt(self.ctx.ref(), self.solver)
|
||||
|
||||
def unsat_core(self):
|
||||
"""Return a subset (as an AST vector) of the assumptions provided to the last check().
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue