summaryrefslogtreecommitdiff
path: root/src/theory/theory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/theory.h')
-rw-r--r--src/theory/theory.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/theory/theory.h b/src/theory/theory.h
index 5f4c80cf2..d17d97f97 100644
--- a/src/theory/theory.h
+++ b/src/theory/theory.h
@@ -34,6 +34,7 @@
#include "options/theory_options.h"
#include "options/theoryof_mode.h"
#include "smt/logic_request.h"
+#include "smt/smt_globals.h"
#include "smt_util/command.h"
#include "smt_util/dump.h"
#include "theory/logic_info.h"
@@ -245,7 +246,8 @@ protected:
* Construct a Theory.
*/
Theory(TheoryId id, context::Context* satContext, context::UserContext* userContext,
- OutputChannel& out, Valuation valuation, const LogicInfo& logicInfo) throw()
+ OutputChannel& out, Valuation valuation, const LogicInfo& logicInfo,
+ SmtGlobals* globals) throw()
: d_id(id)
, d_satContext(satContext)
, d_userContext(userContext)
@@ -261,6 +263,7 @@ protected:
, d_out(&out)
, d_valuation(valuation)
, d_proofEnabled(false)
+ , d_globals(globals)
{
StatisticsRegistry::registerStat(&d_checkTime);
StatisticsRegistry::registerStat(&d_computeCareGraphTime);
@@ -313,6 +316,8 @@ protected:
*/
bool d_proofEnabled;
+ SmtGlobals* d_globals;
+
public:
/**
@@ -870,6 +875,10 @@ public:
*/
virtual std::pair<bool, Node> entailmentCheck(TNode lit, const EntailmentCheckParameters* params = NULL, EntailmentCheckSideEffects* out = NULL);
+
+ /** Returns a pointer to the globals copy the theory is using. */
+ SmtGlobals* globals() { return d_globals; }
+
};/* class Theory */
std::ostream& operator<<(std::ostream& os, theory::Theory::Effort level);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback