This debug message depends on 'exploring' still being a valid reference.
However, we immediately explore one step via get_next_replay_thread(), which
could discard this Backtrack object. So print the debug message before doing
any exploration of the next execution stage.
print_summary();
if ((exploring = model->get_next_backtrack()) == NULL)
return false;
- model->reset_to_initial_state();
- nextThread = get_next_replay_thread();
if (DBG_ENABLED()) {
printf("Next execution will diverge at:\n");
exploring->get_diverge()->print();
print_list(exploring->get_trace());
}
+
+ model->reset_to_initial_state();
+ nextThread = get_next_replay_thread();
return true;
}