diff options
author | Tim King <taking@cs.nyu.edu> | 2011-04-04 20:42:23 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2011-04-04 20:42:23 +0000 |
commit | 41dddac33ba0332a2ab52983b94044cbdc9e762e (patch) | |
tree | 21c938e9fc5c8967e34e087293d441821ab19fd6 /src/theory/registrar.h | |
parent | 2935af06e3fae46418c10450df9e02465f0a8038 (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.h | 31 |
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 */ |