summaryrefslogtreecommitdiff
path: root/src/theory/inference_manager_buffered.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-07-05 08:03:33 -0500
committerGitHub <noreply@github.com>2021-07-05 13:03:33 +0000
commitdbf823ab9c0fa1ed3b5ab6e165625c3d3993d65f (patch)
treeb848b3f0d44b2643a250c27c83a4f0014f9741ab /src/theory/inference_manager_buffered.h
parent698d244a00618a0399bce9e15eddef52f68b8c94 (diff)
Make buffered inference manager more robust to backtracking (#6833)
This makes TheoryEngine notify all theories when a theory sends a conflict. This means that buffered inference managers always clear their buffers when any theory sends a conflict. This is required for making theories robust to conflicts that may arise when using the central equality engine, where a different theory may raise a conflict during another theory's check.
Diffstat (limited to 'src/theory/inference_manager_buffered.h')
-rw-r--r--src/theory/inference_manager_buffered.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/theory/inference_manager_buffered.h b/src/theory/inference_manager_buffered.h
index 080033562..cc4bd7ba4 100644
--- a/src/theory/inference_manager_buffered.h
+++ b/src/theory/inference_manager_buffered.h
@@ -159,6 +159,14 @@ class InferenceManagerBuffered : public TheoryInferenceManager
*/
void assertInternalFactTheoryInference(TheoryInference* fact);
+ /**
+ * Notify this inference manager that a conflict was sent in this SAT context.
+ * This method is called via TheoryEngine when a conflict is sent. This
+ * method will clear all pending facts, lemmas, and phase requirements, as
+ * these will be stale after the solver backtracks.
+ */
+ void notifyInConflict() override;
+
protected:
/** A set of pending inferences to be processed as lemmas */
std::vector<std::unique_ptr<TheoryInference>> d_pendingLem;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback