summaryrefslogtreecommitdiff
path: root/src/theory/theory.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-09-17 17:21:26 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-09-18 16:39:42 -0400
commit066191d91d9f42f34a412162203be818e202aeba (patch)
tree10638c91da6e626c90e1a70e85b211852cbca4b5 /src/theory/theory.h
parentbd9b95170b21ad066e87a59db78fac8ab7f24629 (diff)
Fixes to theoryof-mode; no longer static in Theory class.
Diffstat (limited to 'src/theory/theory.h')
-rw-r--r--src/theory/theory.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/theory/theory.h b/src/theory/theory.h
index 6b1974bb8..d1734674d 100644
--- a/src/theory/theory.h
+++ b/src/theory/theory.h
@@ -26,6 +26,7 @@
#include "theory/substitutions.h"
#include "theory/output_channel.h"
#include "theory/logic_info.h"
+#include "theory/options.h"
#include "theory/theoryof_mode.h"
#include "context/context.h"
#include "context/cdlist.h"
@@ -298,9 +299,6 @@ protected:
void printFacts(std::ostream& os) const;
void debugPrintFacts() const;
- /** Mode of the theoryOf operation */
- static TheoryOfMode s_theoryOfMode;
-
public:
/**
@@ -333,12 +331,7 @@ public:
* Returns the ID of the theory responsible for the given node.
*/
static inline TheoryId theoryOf(TNode node) {
- return theoryOf(s_theoryOfMode, node);
- }
-
- /** Set the theoryOf mode */
- static void setTheoryOfMode(TheoryOfMode mode) {
- s_theoryOfMode = mode;
+ return theoryOf(options::theoryOfMode(), node);
}
/**
@@ -349,7 +342,7 @@ public:
}
/**
- * Set the owner of the uninterpreted sort.
+ * Get the owner of the uninterpreted sort.
*/
static TheoryId getUninterpretedSortOwner() {
return s_uninterpretedSortOwner;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback