summaryrefslogtreecommitdiff
path: root/src/theory/registrar.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2011-04-04 20:42:23 +0000
committerTim King <taking@cs.nyu.edu>2011-04-04 20:42:23 +0000
commit41dddac33ba0332a2ab52983b94044cbdc9e762e (patch)
tree21c938e9fc5c8967e34e087293d441821ab19fd6 /src/theory/registrar.h
parent2935af06e3fae46418c10450df9e02465f0a8038 (diff)
Merging the satliteral-before-prereg branch into trunk. Theory preregistration is now called during the conversion to cnf. This fixes bug 257.
Diffstat (limited to 'src/theory/registrar.h')
-rw-r--r--src/theory/registrar.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/theory/registrar.h b/src/theory/registrar.h
new file mode 100644
index 000000000..ce3a301d7
--- /dev/null
+++ b/src/theory/registrar.h
@@ -0,0 +1,31 @@
+#include "cvc4_private.h"
+
+#ifndef __CVC4__THEORY_REGISTRAR_H
+#define __CVC4__THEORY_REGISTRAR_H
+#include "theory/theory_engine.h"
+
+namespace CVC4 {
+namespace theory {
+
+class Registrar {
+private:
+ TheoryEngine* d_theoryEngine;
+
+public:
+ Registrar() : d_theoryEngine(NULL){ }
+
+ Registrar(TheoryEngine* te) : d_theoryEngine(te){ }
+
+ void preRegister(Node n){
+ if(d_theoryEngine != NULL){
+ d_theoryEngine->preRegister(n);
+ }
+ }
+
+};/* class Registrar */
+
+
+}/* CVC4::theory namespace */
+}/* CVC4 namespace */
+
+#endif /* __CVC4__THEORY_REGISTRAR_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback