mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
wip - updates to proof logging and self-checking
move self-checking functionality to inside sat/smt so it can be used on-line and not just off-line. when self-validation fails, use vs, not clause, to check. It allows self-validation without checking and maintaining RUP validation. new options sat.smt.proof.check_rup, sat.smt.proof.check for online validation. z3 sat.smt.proof.check=true sat.euf=true /v:1 sat.smt.proof.check_rup=true /st file.smt2 sat.smt.proof=p.smt2
This commit is contained in:
parent
993ff40826
commit
ac1552d194
40 changed files with 539 additions and 419 deletions
|
@ -225,6 +225,20 @@ struct model::top_sort : public ::top_sort<func_decl> {
|
|||
}
|
||||
};
|
||||
|
||||
void model::evaluate_constants() {
|
||||
for (auto& [k, p] : m_interp) {
|
||||
auto & [i, e] = p;
|
||||
if (m.is_value(e))
|
||||
continue;
|
||||
expr_ref val(m);
|
||||
val = (*this)(e);
|
||||
m.dec_ref(e);
|
||||
m.inc_ref(val);
|
||||
p.second = val;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void model::compress(bool force_inline) {
|
||||
if (m_cleaned) return;
|
||||
|
||||
|
|
|
@ -94,6 +94,8 @@ public:
|
|||
|
||||
void compress(bool force_inline = false);
|
||||
|
||||
void evaluate_constants();
|
||||
|
||||
void set_model_completion(bool f) { m_mev.set_model_completion(f); }
|
||||
void updt_params(params_ref const & p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue