{
DEBUG("+++ Resetting to initial state +++\n");
std::map<thread_id_t, class Thread *>::iterator it;
- for (it = thread_map.begin(); it != thread_map.end(); it++) {
+ for (it = thread_map.begin(); it != thread_map.end(); it++)
delete (*it).second;
- }
thread_map.clear();
action_trace = new action_list_t();
currentNode = rootNode;
/* scheduler reset ? */
}
-int ModelChecker::get_next_id()
+thread_id_t ModelChecker::get_next_id()
{
return ++used_thread_id;
}
type_str = "unknown type";
}
- printf("Thread: %d\tAction: %s\tMO: %d\tLoc: %#014zx\tValue: %d\n", tid, type_str, order, (size_t)location, value);
+ printf("Thread: %d\tAction: %s\tMO: %d\tLoc: %#014zx\tValue: %d\n", id_to_int(tid), type_str, order, (size_t)location, value);
}