summaryrefslogtreecommitdiff
path: root/src/theory/theory_inference_manager.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-09-03 18:31:36 -0500
committerGitHub <noreply@github.com>2020-09-03 18:31:36 -0500
commit0fe081a56db369372584a5fcd35a4c4e4fb1c23f (patch)
treea24f9f3dbb0ede1faf09a276d96c2714d3bf75c0 /src/theory/theory_inference_manager.cpp
parent19ff08d652de2890eee4674d2a6debe10e879f1f (diff)
Update sets inference manager to inherit from InferenceManagerBuffered (#5007)
This updates the inference manager of sets to inherit from the standard base class InferenceManagerBuffered. It matches that base class almost exactly, with cosmetic changes. Notice that sets currently has a design issue: the state object sends lemmas and hence currently requires a pointer to the theory. This will be untangled in a future PR. This PR makes a few very minor changes to the behavior, including not to use the "preprocess" property for subtype lemmas.
Diffstat (limited to 'src/theory/theory_inference_manager.cpp')
-rw-r--r--src/theory/theory_inference_manager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theory/theory_inference_manager.cpp b/src/theory/theory_inference_manager.cpp
index 9405a8162..330613e2e 100644
--- a/src/theory/theory_inference_manager.cpp
+++ b/src/theory/theory_inference_manager.cpp
@@ -56,6 +56,12 @@ void TheoryInferenceManager::reset()
d_numCurrentFacts = 0;
}
+bool TheoryInferenceManager::hasProcessed() const
+{
+ return d_theoryState.isInConflict() || d_numCurrentLemmas > 0
+ || d_numCurrentFacts > 0;
+}
+
void TheoryInferenceManager::conflictEqConstantMerge(TNode a, TNode b)
{
if (!d_theoryState.isInConflict())
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback