summaryrefslogtreecommitdiff
path: root/test/unit/theory/theory_white.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-01-28 14:01:26 -0600
committerGitHub <noreply@github.com>2021-01-28 14:01:26 -0600
commite234ff58f561ac97642df15c698962faa9d1e5e4 (patch)
treecfac18adaeb0fccc348b81e84c854400d38a01fe /test/unit/theory/theory_white.h
parent3234db430074e278258e6d687c07146a59769a92 (diff)
Simplify lemma interface (#5819)
This makes it so that TheoryEngine::lemma returns void not LemmaStatus. Currently, there was only one use of LemmaStatus by theory solvers, which was CEGQI using it as a way of getting the preprocessed form of a lemma. This makes it so that there is an explicit method in Valuation for getting the preprocessed form of a term + its skolems and their definition assertions. It also simplifies a few things, e.g. Valuation calls are forwarded to PropEngine instead of going through TheoryEngine. It fixes a few issues in TermFormulaRemoval related to getSkolems.
Diffstat (limited to 'test/unit/theory/theory_white.h')
-rw-r--r--test/unit/theory/theory_white.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/unit/theory/theory_white.h b/test/unit/theory/theory_white.h
index 9f23dbad6..4b6c1a064 100644
--- a/test/unit/theory/theory_white.h
+++ b/test/unit/theory/theory_white.h
@@ -54,17 +54,12 @@ class TestOutputChannel : public OutputChannel {
return true;
}
- LemmaStatus lemma(TNode n,
- LemmaProperty p = LemmaProperty::NONE) override
+ void lemma(TNode n, LemmaProperty p = LemmaProperty::NONE) override
{
push(LEMMA, n);
- return LemmaStatus(Node::null(), 0);
}
- LemmaStatus splitLemma(TNode n, bool removable) override {
- push(LEMMA, n);
- return LemmaStatus(Node::null(), 0);
- }
+ void splitLemma(TNode n, bool removable) override { push(LEMMA, n); }
void requirePhase(TNode, bool) override { Unreachable(); }
void setIncomplete() override { Unreachable(); }
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback