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.h | |
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.h')
-rw-r--r-- | src/theory/theory_inference_manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/theory_inference_manager.h b/src/theory/theory_inference_manager.h index 7e5ef6dec..080a09ba8 100644 --- a/src/theory/theory_inference_manager.h +++ b/src/theory/theory_inference_manager.h @@ -87,6 +87,11 @@ class TheoryInferenceManager * beginning of this loop and repeat its strategy while hasAddedFact is true. */ void reset(); + /** + * Returns true if we are in conflict, or if we have sent a lemma or fact + * since the last call to reset. + */ + bool hasProcessed() const; //--------------------------------------- propagations /** * T-propagate literal lit, possibly encountered by equality engine, |