nextThread(THREAD_ID_T_NONE),
action_trace(new action_list_t()),
thread_map(new std::map<int, Thread *>),
+ obj_map(new std::map<const void *, action_list_t>()),
obj_thrd_map(new std::map<void *, std::vector<action_list_t> >()),
thrd_last_action(new std::vector<ModelAction *>(1)),
node_stack(new NodeStack()),
delete thread_map;
delete obj_thrd_map;
+ delete obj_map;
delete action_trace;
delete thrd_last_action;
delete node_stack;
int tid = id_to_int(act->get_tid());
action_trace->push_back(act);
+ (*obj_map)[act->get_location()].push_back(act);
+
std::vector<action_list_t> *vec = &(*obj_thrd_map)[act->get_location()];
if (tid >= (int)vec->size())
vec->resize(next_thread_id);
ucontext_t *system_context;
action_list_t *action_trace;
std::map<int, Thread *> *thread_map;
+
+ /** Per-object list of actions. Maps an object (i.e., memory location)
+ * to a trace of all actions performed on the object. */
+ std::map<const void *, action_list_t> *obj_map;
+
std::map<void *, std::vector<action_list_t> > *obj_thrd_map;
std::vector<ModelAction *> *thrd_last_action;
NodeStack *node_stack;