summaryrefslogtreecommitdiff
path: root/src/theory/builtin/theory_builtin.h
diff options
context:
space:
mode:
authorHaniel Barbosa <hanielbbarbosa@gmail.com>2021-04-05 15:47:40 -0300
committerGitHub <noreply@github.com>2021-04-05 18:47:40 +0000
commitb75f48683c08e66e0d47d29c5262f32f33b36c49 (patch)
tree0a76b276add9a8d0acd3a52167747e5664f12569 /src/theory/builtin/theory_builtin.h
parentca5fd891038a93bd63b3863faa8c5e39fff88ed0 (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/builtin/theory_builtin.h')
-rw-r--r--src/theory/builtin/theory_builtin.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/theory/builtin/theory_builtin.h b/src/theory/builtin/theory_builtin.h
index b4de83c02..fca05d7ff 100644
--- a/src/theory/builtin/theory_builtin.h
+++ b/src/theory/builtin/theory_builtin.h
@@ -37,7 +37,10 @@ class TheoryBuiltin : public Theory
const LogicInfo& logicInfo,
ProofNodeManager* pnm = nullptr);
- TheoryRewriter* getTheoryRewriter() override { return &d_rewriter; }
+ /** get the official theory rewriter of this theory */
+ TheoryRewriter* getTheoryRewriter() override;
+ /** get the proof checker of this theory */
+ ProofRuleChecker* getProofChecker() override;
std::string identify() const override;
@@ -48,7 +51,7 @@ class TheoryBuiltin : public Theory
/** The theory rewriter for this theory. */
TheoryBuiltinRewriter d_rewriter;
/** Proof rule checker */
- BuiltinProofRuleChecker d_bProofChecker;
+ BuiltinProofRuleChecker d_checker;
}; /* class TheoryBuiltin */
} // namespace builtin
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback