nodestack: push 'create_cv' functionality responsibility back to ModelChecker
[model-checker.git] / nodestack.h
index 3a0ee74cf0c47a3717997d7a47c04d0a9b824b4f..cf3c6db146675c0cb7f41d994f988925209fc976 100644 (file)
@@ -11,7 +11,7 @@ class ModelAction;
 
 class Node {
 public:
-       Node(ModelAction *act = NULL, Node *parent = NULL);
+       Node(ModelAction *act = NULL, int nthreads = 1);
        ~Node();
        /* return true = thread choice has already been explored */
        bool has_been_explored(thread_id_t tid);
@@ -35,11 +35,11 @@ private:
        static int total_nodes;
        ModelAction *action;
        int num_threads;
-       std::vector<bool> explored_children;
-       std::vector<bool> backtrack;
+       std::vector< bool, MyAlloc<bool> > explored_children;
+       std::vector< bool, MyAlloc<bool> > backtrack;
 };
 
-typedef std::list<class Node *> node_list_t;
+typedef std::list<class Node *, MyAlloc< class Node * > > node_list_t;
 
 class NodeStack {
 public: