mirror of
https://github.com/Z3Prover/z3
synced 2025-06-08 23:23:23 +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
|
@ -431,6 +431,15 @@ extern "C" {
|
|||
Z3_CATCH;
|
||||
}
|
||||
|
||||
void Z3_API Z3_solver_set_activity(Z3_context c, Z3_solver s, Z3_ast a, double activity) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_solver_set_activity(c, s, a, activity);
|
||||
RESET_ERROR_CODE();
|
||||
init_solver(c, s);
|
||||
to_solver_ref(s)->set_activity(to_expr(a), activity);
|
||||
Z3_CATCH;
|
||||
}
|
||||
|
||||
Z3_ast_vector Z3_API Z3_solver_get_trail(Z3_context c, Z3_solver s) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_solver_get_trail(c, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue