mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 11:37:54 +00:00
add new files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
35639c5ac0
commit
6796ea7e49
2 changed files with 120 additions and 0 deletions
60
src/sat/smt/q_proof_checker.h
Normal file
60
src/sat/smt/q_proof_checker.h
Normal file
|
@ -0,0 +1,60 @@
|
|||
/*++
|
||||
Copyright (c) 2022 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
q_proof_checker.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Plugin for checking quantifier instantiations
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2022-10-07
|
||||
|
||||
|
||||
--*/
|
||||
#pragma once
|
||||
|
||||
#include "util/obj_pair_set.h"
|
||||
#include "ast/ast_trail.h"
|
||||
#include "ast/ast_util.h"
|
||||
#include "sat/smt/euf_proof_checker.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace q {
|
||||
|
||||
class proof_checker : public euf::proof_checker_plugin {
|
||||
ast_manager& m;
|
||||
symbol m_inst;
|
||||
symbol m_bind;
|
||||
|
||||
expr_ref_vector binding(app* jst);
|
||||
|
||||
bool is_inst(expr* jst);
|
||||
|
||||
bool is_bind(expr* e);
|
||||
|
||||
public:
|
||||
proof_checker(ast_manager& m):
|
||||
m(m),
|
||||
m_inst("inst"),
|
||||
m_bind("bind") {
|
||||
}
|
||||
|
||||
~proof_checker() override {}
|
||||
|
||||
expr_ref_vector clause(app* jst) override;
|
||||
|
||||
bool check(app* jst) override { return false; }
|
||||
|
||||
void register_plugins(euf::proof_checker& pc) override {
|
||||
pc.register_plugin(symbol("inst"), this);
|
||||
}
|
||||
|
||||
void vc(app* jst, expr_ref_vector& clause) override;
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue