*/
thread_id_t ModelChecker::get_next_replay_thread()
{
- ModelAction *next;
thread_id_t tid;
/* Have we completed exploring the preselected path? */
return THREAD_ID_T_NONE;
/* Else, we are trying to replay an execution */
- next = node_stack->get_next()->get_action();
+ ModelAction * next = node_stack->get_next()->get_action();
if (next == diverge) {
Node *nextnode = next->get_node();
if (!already_added)
add_action_to_lists(curr);
- /* Do not split atomic actions. */
- if (curr->is_rmwr()) {
- nextThread = thread_current()->get_id();
- return;
- }
-
/* Is there a better interface for setting the next thread rather
than this field/convoluted approach? Perhaps like just returning
it or something? */
- nextThread = get_next_replay_thread();
+ /* Do not split atomic actions. */
+ if (curr->is_rmwr()) {
+ nextThread = thread_current()->get_id();
+ } else {
+ nextThread = get_next_replay_thread();
+ }
Node *currnode = curr->get_node();
Node *parnode = currnode->get_parent();