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/sets | |
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/sets')
-rw-r--r-- | src/theory/sets/theory_sets.cpp | 2 | ||||
-rw-r--r-- | src/theory/sets/theory_sets.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/theory/sets/theory_sets.cpp b/src/theory/sets/theory_sets.cpp index bd682ca57..eb2363eb7 100644 --- a/src/theory/sets/theory_sets.cpp +++ b/src/theory/sets/theory_sets.cpp @@ -55,6 +55,8 @@ TheoryRewriter* TheorySets::getTheoryRewriter() return d_internal->getTheoryRewriter(); } +ProofRuleChecker* TheorySets::getProofChecker() { return nullptr; } + bool TheorySets::needsEqualityEngine(EeSetupInfo& esi) { esi.d_notify = &d_notify; diff --git a/src/theory/sets/theory_sets.h b/src/theory/sets/theory_sets.h index 16829bc6d..14f4b5699 100644 --- a/src/theory/sets/theory_sets.h +++ b/src/theory/sets/theory_sets.h @@ -53,6 +53,8 @@ class TheorySets : public Theory //--------------------------------- initialization /** get the official theory rewriter of this theory */ TheoryRewriter* getTheoryRewriter() override; + /** get the proof checker of this theory */ + ProofRuleChecker* getProofChecker() override; /** * Returns true if we need an equality engine. If so, we initialize the * information regarding how it should be setup. For details, see the @@ -102,7 +104,7 @@ class TheorySets : public Theory void eqNotifyNewClass(TNode t) override; void eqNotifyMerge(TNode t1, TNode t2) override; void eqNotifyDisequal(TNode t1, TNode t2, TNode reason) override; - + private: TheorySetsPrivate& d_theory; }; |