Some errors have been overlooked because they are not 'loud' enough. Use
ASSERT() macro to fail-stop.
/* Else, we are trying to replay an execution */
exploring->advance_state();
- if (exploring->get_state() == NULL)
- DEBUG("*** error: reached end of backtrack trace\n");
+
+ ASSERT(exploring->get_state() != NULL);
return get_next_replay_thread();
}
/* Stopped while running; i.e., completed */
curr->complete();
else
- DEBUG("ERROR: current thread in unexpected state??\n");
+ ASSERT(false);
}
next = model->scheduler->next_thread();
if (next)