3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-29 09:28:45 +00:00

Add groovy R.U.Stan option to retrieve models even when they don't exist #4924

Usage:
z3 4924.smt2 smt.candidate_models=true
This commit is contained in:
Nikolaj Bjorner 2020-12-30 14:37:30 -08:00
parent 799de71a9f
commit f519c58ace
3 changed files with 10 additions and 8 deletions

View file

@ -72,7 +72,8 @@ public:
}
void updt_params_core(params_ref const & p) {
m_candidate_models = p.get_bool("candidate_models", false);
smt_params_helper _p(p);
m_candidate_models = _p.candidate_models();
m_fail_if_inconclusive = p.get_bool("fail_if_inconclusive", true);
}
@ -89,7 +90,6 @@ public:
}
void collect_param_descrs(param_descrs & r) override {
r.insert("candidate_models", CPK_BOOL, "(default: false) create candidate models even when quantifier or theory reasoning is incomplete.");
r.insert("fail_if_inconclusive", CPK_BOOL, "(default: true) fail if found unsat (sat) for under (over) approximated goal.");
smt_params_helper::collect_param_descrs(r);
}