Very basic initialization...
this->scheduler = new Scheduler();
this->current_action = NULL;
+
+ rootNode = new TreeNode(NULL);
+ currentNode = rootNode;
}
ModelChecker::~ModelChecker()
{
delete this->scheduler;
+ delete rootNode;
}
void ModelChecker::assign_id(Thread *t)
#include "libthreads.h"
#include "libatomic.h"
#include "threads.h"
+#include "tree.h"
#define VALUE_NONE -1
class ModelAction *current_action;
std::list<class ModelAction *> action_trace;
std::map<thread_id_t, class Thread *> thread_map;
+ class TreeNode *rootNode, *currentNode;
};
extern ModelChecker *model;