diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-08-16 09:11:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 16:11:18 +0000 |
commit | 11b6d67d32160681d4495fd92930ffb6ddb79abe (patch) | |
tree | e03474a3be09a3be7d041e315767854ee331f415 /src/theory/ext_theory.h | |
parent | 5e31ee3a34388d6d44129e898897bdb1297009de (diff) |
Use InferenceManager in ExtTheory (#7006)
This PR refactors the ExtTheory class to use a given inference manager instead of a given output channel.
Diffstat (limited to 'src/theory/ext_theory.h')
-rw-r--r-- | src/theory/ext_theory.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/theory/ext_theory.h b/src/theory/ext_theory.h index f5e08e2f5..01b191e0a 100644 --- a/src/theory/ext_theory.h +++ b/src/theory/ext_theory.h @@ -41,6 +41,7 @@ #include "context/cdo.h" #include "context/context.h" #include "expr/node.h" +#include "theory/theory_inference_manager.h" namespace cvc5 { namespace theory { @@ -176,7 +177,7 @@ class ExtTheory ExtTheory(ExtTheoryCallback& p, context::Context* c, context::UserContext* u, - OutputChannel& out); + TheoryInferenceManager& im); virtual ~ExtTheory() {} /** Tells this class to treat terms with Kind k as extended functions */ void addFunctionKind(Kind k) { d_extf_kind[k] = true; } @@ -291,11 +292,11 @@ class ExtTheory bool batch, bool isRed); /** send lemma on the output channel */ - bool sendLemma(Node lem, bool preprocess = false); + bool sendLemma(Node lem, InferenceId id, bool preprocess = false); /** reference to the callback */ ExtTheoryCallback& d_parent; - /** Reference to the output channel we are using */ - OutputChannel& d_out; + /** inference manager used to send lemmas */ + TheoryInferenceManager& d_im; /** the true node */ Node d_true; /** extended function terms, map to whether they are active */ |