mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
add API for setting variable activity
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e4c6dcd84c
commit
89bf2d4368
22 changed files with 125 additions and 1 deletions
|
@ -6744,6 +6744,12 @@ class Solver(Z3PPObject):
|
|||
"""
|
||||
return AstVector(Z3_solver_get_trail(self.ctx.ref(), self.solver), self.ctx)
|
||||
|
||||
def set_activity(self, lit, act):
|
||||
"""Set activity of literal on solver object.
|
||||
This influences the case split order of the variable.
|
||||
"""
|
||||
Z3_solver_set_activity(self.ctx.ref(), self.solver, lit.ast, act)
|
||||
|
||||
def statistics(self):
|
||||
"""Return statistics for the last `check()`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue