3
0
Fork 0
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:
Nikolaj Bjorner 2019-01-14 13:50:17 -08:00
parent a686aa7f56
commit e954f59052
4 changed files with 18 additions and 3 deletions

View file

@ -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) {