mirror of
https://github.com/Z3Prover/z3
synced 2025-04-30 04:15:51 +00:00
wip - proof checker
This commit is contained in:
parent
ace727ee0f
commit
a2e0646eed
3 changed files with 16 additions and 13 deletions
|
@ -293,17 +293,13 @@ namespace euf {
|
|||
}
|
||||
|
||||
bool proof_checker::check(expr* e) {
|
||||
if (m_checked_clauses.contains(e))
|
||||
return true;
|
||||
if (!e || !is_app(e))
|
||||
return false;
|
||||
if (m_checked_clauses.contains(e))
|
||||
return true;
|
||||
app* a = to_app(e);
|
||||
proof_checker_plugin* p = nullptr;
|
||||
if (!m_map.find(a->get_decl()->get_name(), p))
|
||||
return false;
|
||||
if (!p->check(a))
|
||||
return false;
|
||||
return true;
|
||||
return m_map.find(a->get_decl()->get_name(), p) && p->check(a);
|
||||
}
|
||||
|
||||
expr_ref_vector proof_checker::clause(expr* e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue