summaryrefslogtreecommitdiff
path: root/src/theory/builtin/proof_checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/builtin/proof_checker.cpp')
-rw-r--r--src/theory/builtin/proof_checker.cpp96
1 files changed, 0 insertions, 96 deletions
diff --git a/src/theory/builtin/proof_checker.cpp b/src/theory/builtin/proof_checker.cpp
index 9dfc9418f..7ec0525c9 100644
--- a/src/theory/builtin/proof_checker.cpp
+++ b/src/theory/builtin/proof_checker.cpp
@@ -26,39 +26,6 @@ using namespace cvc5::kind;
namespace cvc5 {
namespace theory {
-
-const char* toString(MethodId id)
-{
- switch (id)
- {
- case MethodId::RW_REWRITE: return "RW_REWRITE";
- case MethodId::RW_EXT_REWRITE: return "RW_EXT_REWRITE";
- case MethodId::RW_REWRITE_EQ_EXT: return "RW_REWRITE_EQ_EXT";
- case MethodId::RW_EVALUATE: return "RW_EVALUATE";
- case MethodId::RW_IDENTITY: return "RW_IDENTITY";
- case MethodId::RW_REWRITE_THEORY_PRE: return "RW_REWRITE_THEORY_PRE";
- case MethodId::RW_REWRITE_THEORY_POST: return "RW_REWRITE_THEORY_POST";
- case MethodId::SB_DEFAULT: return "SB_DEFAULT";
- case MethodId::SB_LITERAL: return "SB_LITERAL";
- case MethodId::SB_FORMULA: return "SB_FORMULA";
- case MethodId::SBA_SEQUENTIAL: return "SBA_SEQUENTIAL";
- case MethodId::SBA_SIMUL: return "SBA_SIMUL";
- case MethodId::SBA_FIXPOINT: return "SBA_FIXPOINT";
- default: return "MethodId::Unknown";
- };
-}
-
-std::ostream& operator<<(std::ostream& out, MethodId id)
-{
- out << toString(id);
- return out;
-}
-
-Node mkMethodId(MethodId id)
-{
- return NodeManager::currentNM()->mkConst(Rational(static_cast<uint32_t>(id)));
-}
-
namespace builtin {
void BuiltinProofRuleChecker::registerTo(ProofChecker* pc)
@@ -250,17 +217,6 @@ Node BuiltinProofRuleChecker::applySubstitution(Node n,
return ns;
}
-bool BuiltinProofRuleChecker::getMethodId(TNode n, MethodId& i)
-{
- uint32_t index;
- if (!getUInt32(n, index))
- {
- return false;
- }
- i = static_cast<MethodId>(index);
- return true;
-}
-
Node BuiltinProofRuleChecker::checkInternal(PfRule id,
const std::vector<Node>& children,
const std::vector<Node>& args)
@@ -455,58 +411,6 @@ Node BuiltinProofRuleChecker::checkInternal(PfRule id,
return Node::null();
}
-bool BuiltinProofRuleChecker::getMethodIds(const std::vector<Node>& args,
- MethodId& ids,
- MethodId& ida,
- MethodId& idr,
- size_t index)
-{
- ids = MethodId::SB_DEFAULT;
- ida = MethodId::SBA_SEQUENTIAL;
- idr = MethodId::RW_REWRITE;
- for (size_t offset = 0; offset <= 2; offset++)
- {
- if (args.size() > index + offset)
- {
- MethodId& id = offset == 0 ? ids : (offset == 1 ? ida : idr);
- if (!getMethodId(args[index + offset], id))
- {
- Trace("builtin-pfcheck")
- << "Failed to get id from " << args[index + offset] << std::endl;
- return false;
- }
- }
- else
- {
- break;
- }
- }
- Trace("builtin-pfcheck") << "Got MethodIds ids/ida/idr: " << ids << " / "
- << ida << " / " << idr << "\n";
- return true;
-}
-
-void BuiltinProofRuleChecker::addMethodIds(std::vector<Node>& args,
- MethodId ids,
- MethodId ida,
- MethodId idr)
-{
- bool ndefRewriter = (idr != MethodId::RW_REWRITE);
- bool ndefApply = (ida != MethodId::SBA_SEQUENTIAL);
- if (ids != MethodId::SB_DEFAULT || ndefRewriter || ndefApply)
- {
- args.push_back(mkMethodId(ids));
- }
- if (ndefApply || ndefRewriter)
- {
- args.push_back(mkMethodId(ida));
- }
- if (ndefRewriter)
- {
- args.push_back(mkMethodId(idr));
- }
-}
-
bool BuiltinProofRuleChecker::getTheoryId(TNode n, TheoryId& tid)
{
uint32_t i;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback