mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
ensure that solver objects have timeout/rlimit/ctrl-c exposed as possible parameters
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a686aa7f56
commit
e954f59052
4 changed files with 18 additions and 3 deletions
|
@ -217,8 +217,17 @@ void solver::assert_expr(expr* f, expr* t) {
|
|||
assert_expr_core2(fml, a);
|
||||
}
|
||||
|
||||
static void insert_ctrl_c(param_descrs & r) {
|
||||
r.insert("ctrl_c", CPK_BOOL, "enable interrupts from ctrl-c", "false");
|
||||
}
|
||||
|
||||
|
||||
void solver::collect_param_descrs(param_descrs & r) {
|
||||
r.insert("solver.enforce_model_conversion", CPK_BOOL, "(default: false) enforce model conversion when asserting formulas");
|
||||
insert_timeout(r);
|
||||
insert_rlimit(r);
|
||||
insert_max_memory(r);
|
||||
insert_ctrl_c(r);
|
||||
}
|
||||
|
||||
void solver::reset_params(params_ref const & p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue