diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-09-03 18:31:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 18:31:36 -0500 |
commit | 0fe081a56db369372584a5fcd35a4c4e4fb1c23f (patch) | |
tree | a24f9f3dbb0ede1faf09a276d96c2714d3bf75c0 /src/theory/theory_inference_manager.cpp | |
parent | 19ff08d652de2890eee4674d2a6debe10e879f1f (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.cpp | 6 |
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()) |