return t;
}
-/*
+/**
* get_next_replay_thread() - Choose the next thread in the replay sequence
*
* If we've reached the 'diverge' point, then we pick a thread from the
action_list_t::reverse_iterator rit;
for (rit = action_trace->rbegin(); rit != action_trace->rend(); rit++) {
ModelAction *prev = *rit;
- if (act->is_dependent(prev))
+ if (act->is_synchronizing(prev))
return prev;
}
return NULL;
return;
}
- curr = node_stack->explore_action(curr, get_parent_action(curr->get_tid()));
+ curr = node_stack->explore_action(curr);
+ curr->create_cv(get_parent_action(curr->get_tid()));
/* Assign 'creation' parent */
if (curr->get_type() == THREAD_CREATE) {
{
printf("\n");
printf("Number of executions: %d\n", num_executions);
- printf("Total nodes created: %d\n", Node::get_total_nodes());
+ printf("Total nodes created: %d\n", node_stack->get_total_nodes());
scheduler->print();