mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 04:26:00 +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
|
@ -32,13 +32,13 @@ TODOs:
|
|||
namespace tseitin {
|
||||
|
||||
|
||||
expr_ref_vector proof_checker::clause(app* jst) {
|
||||
expr_ref_vector theory_checker::clause(app* jst) {
|
||||
expr_ref_vector result(m);
|
||||
result.append(jst->get_num_args(), jst->get_args());
|
||||
return result;
|
||||
}
|
||||
|
||||
bool proof_checker::check(app* jst) {
|
||||
bool theory_checker::check(app* jst) {
|
||||
expr* main_expr = nullptr;
|
||||
unsigned max_depth = 0;
|
||||
for (expr* arg : *jst) {
|
||||
|
@ -231,7 +231,7 @@ namespace tseitin {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool proof_checker::equiv(expr* a, expr* b) {
|
||||
bool theory_checker::equiv(expr* a, expr* b) {
|
||||
if (a == b)
|
||||
return true;
|
||||
if (!is_app(a) || !is_app(b))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue