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/inference_manager_buffered.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/inference_manager_buffered.cpp')
-rw-r--r-- | src/theory/inference_manager_buffered.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/theory/inference_manager_buffered.cpp b/src/theory/inference_manager_buffered.cpp index 8a7713121..3ba41a431 100644 --- a/src/theory/inference_manager_buffered.cpp +++ b/src/theory/inference_manager_buffered.cpp @@ -29,10 +29,9 @@ InferenceManagerBuffered::InferenceManagerBuffered(Theory& t, { } -bool InferenceManagerBuffered::hasProcessed() const +bool InferenceManagerBuffered::hasPending() const { - return d_theoryState.isInConflict() || !d_pendingLem.empty() - || !d_pendingFact.empty(); + return hasPendingFact() || hasPendingLemma(); } bool InferenceManagerBuffered::hasPendingFact() const |