3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

saved params work

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-11-29 17:19:12 -08:00
parent c3055207ed
commit cf28cbab0a
130 changed files with 1469 additions and 948 deletions

View file

@ -60,10 +60,10 @@ struct evaluator_cfg : public default_rewriter_cfg {
}
void updt_params(params_ref const & p) {
m_max_memory = megabytes_to_bytes(p.get_uint(":max-memory", UINT_MAX));
m_max_steps = p.get_uint(":max-steps", UINT_MAX);
m_model_completion = p.get_bool(":model-completion", false);
m_cache = p.get_bool(":cache", true);
m_max_memory = megabytes_to_bytes(p.get_uint("max_memory", UINT_MAX));
m_max_steps = p.get_uint("max_steps", UINT_MAX);
m_model_completion = p.get_bool("model_completion", false);
m_cache = p.get_bool("cache", true);
}
ast_manager & m() const { return m_model.get_manager(); }
@ -232,8 +232,8 @@ void model_evaluator::updt_params(params_ref const & p) {
void model_evaluator::get_param_descrs(param_descrs & r) {
insert_max_memory(r);
insert_max_steps(r);
r.insert(":model-completion", CPK_BOOL, "(default: false) assigns an interpretation to symbols that are not intepreted by the model.");
r.insert(":cache", CPK_BOOL, "(default: true) cache intermediate results.");
r.insert("model_completion", CPK_BOOL, "(default: false) assigns an interpretation to symbols that are not intepreted by the model.");
r.insert("cache", CPK_BOOL, "(default: true) cache intermediate results.");
}
void model_evaluator::set_model_completion(bool f) {