summaryrefslogtreecommitdiff
path: root/src/expr/node_manager.cpp
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-10-28 21:12:02 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-10-28 21:12:02 +0000
commitd2ff1974a7cd87d841e1bcaeb0d93665f70d9259 (patch)
tree6f35a4d1f191739fe9f1c2c237f6ede3ed5c99ab /src/expr/node_manager.cpp
parentc39254b98c010397fa5b2da9513d7b3451d682d7 (diff)
Changing NodeBuilder::debugCheckType() to maybeCheckType()
Changing NodeManager/ExprManager constructors to take Options
Diffstat (limited to 'src/expr/node_manager.cpp')
-rw-r--r--src/expr/node_manager.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/expr/node_manager.cpp b/src/expr/node_manager.cpp
index 5fc704cbc..28404005c 100644
--- a/src/expr/node_manager.cpp
+++ b/src/expr/node_manager.cpp
@@ -28,6 +28,7 @@
#include "theory/bv/theory_bv_type_rules.h"
#include "util/Assert.h"
+#include "util/options.h"
#include "util/tls.h"
#include <algorithm>
@@ -82,12 +83,23 @@ struct NVReclaim {
}
};
+NodeManager::NodeManager(context::Context* ctxt) :
+ d_attrManager(ctxt) {
+ Options options;
+ init(options);
+}
+
+
+NodeManager::NodeManager(context::Context* ctxt,
+ const Options& options) :
+ d_attrManager(ctxt) {
+ init(options);
+}
-NodeManager::NodeManager(context::Context* ctxt, bool earlyTypeChecking) :
- d_attrManager(ctxt),
- d_nodeUnderDeletion(NULL),
- d_inReclaimZombies(false),
- d_earlyTypeChecking(earlyTypeChecking) {
+inline void NodeManager::init(const Options& options) {
+ d_nodeUnderDeletion = NULL;
+ d_inReclaimZombies = false;
+ d_earlyTypeChecking = options.earlyTypeChecking;
poolInsert( &expr::NodeValue::s_null );
for(unsigned i = 0; i < unsigned(kind::LAST_KIND); ++i) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback