diff options
author | Haniel Barbosa <hanielbbarbosa@gmail.com> | 2021-04-05 15:47:40 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 18:47:40 +0000 |
commit | b75f48683c08e66e0d47d29c5262f32f33b36c49 (patch) | |
tree | 0a76b276add9a8d0acd3a52167747e5664f12569 /src/theory/uf/theory_uf.cpp | |
parent | ca5fd891038a93bd63b3863faa8c5e39fff88ed0 (diff) |
[proof-new] Registering proof checkers uniformly from the SMT solver (#6275)
Each theory has its own proof checker, responsible for checking the rules pertaining to that theory. The main proof checker uses these specialized checkers. Previously the main proof checker (of the proof node manager used across the SMT solver) was connected to these theory proof checkers during initialization of the theory. This commit adds an interface to the theories for retrieving its proof checker (analogous to how one retrieves the rewriter of a theory) which is used by a new method in the theory engine to register a theory proof checker to a given proof checker according to a theory id.
This is in preparation for the new unsat cores based on proofs.
Diffstat (limited to 'src/theory/uf/theory_uf.cpp')
-rw-r--r-- | src/theory/uf/theory_uf.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/theory/uf/theory_uf.cpp b/src/theory/uf/theory_uf.cpp index f3c0a0ba0..e8ce7660a 100644 --- a/src/theory/uf/theory_uf.cpp +++ b/src/theory/uf/theory_uf.cpp @@ -57,12 +57,6 @@ TheoryUF::TheoryUF(context::Context* c, d_notify(d_im, *this) { d_true = NodeManager::currentNM()->mkConst( true ); - - ProofChecker* pc = pnm != nullptr ? pnm->getChecker() : nullptr; - if (pc != nullptr) - { - d_ufProofChecker.registerTo(pc); - } // indicate we are using the default theory state and inference managers d_theoryState = &d_state; d_inferManager = &d_im; @@ -73,6 +67,8 @@ TheoryUF::~TheoryUF() { TheoryRewriter* TheoryUF::getTheoryRewriter() { return &d_rewriter; } +ProofRuleChecker* TheoryUF::getProofChecker() { return &d_checker; } + bool TheoryUF::needsEqualityEngine(EeSetupInfo& esi) { esi.d_notify = &d_notify; |