mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
add solver.timeout as another entry point #2354
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ed149ea449
commit
5122b2da7e
3 changed files with 8 additions and 3 deletions
|
@ -226,8 +226,8 @@ void solver::assert_expr(expr* f, expr* t) {
|
|||
|
||||
|
||||
void solver::collect_param_descrs(param_descrs & r) {
|
||||
r.insert("solver.enforce_model_conversion", CPK_BOOL, "(default: false) enforce model conversion when asserting formulas");
|
||||
r.insert("solver.smtlib2_log", CPK_SYMBOL, "(default: None) file to log solver interaction in smtlib2 format");
|
||||
solver_params sp(m_params);
|
||||
sp.collect_param_descrs(r);
|
||||
insert_timeout(r);
|
||||
insert_rlimit(r);
|
||||
insert_max_memory(r);
|
||||
|
|
|
@ -5,5 +5,6 @@ def_module_params('solver',
|
|||
params=(('enforce_model_conversion', BOOL, False, "apply model transformation on new assertions"),
|
||||
('smtlib2_log', SYMBOL, '', "file to save solver interaction"),
|
||||
('cancel_backup_file', SYMBOL, '', "file to save partial search state if search is canceled"),
|
||||
('timeout', UINT, UINT_MAX, "timeout on the solver object; overwrites a global timeout"),
|
||||
))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue