X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff673c35e3a4c59f37040d6ae02ae49458301839..37dc8526fc8f952bd56ab72b4d58b657d34cbbbd:/src/mc/mc_dpor.c diff --git a/src/mc/mc_dpor.c b/src/mc/mc_dpor.c index 555144c33f..1768a12a5d 100644 --- a/src/mc/mc_dpor.c +++ b/src/mc/mc_dpor.c @@ -80,6 +80,7 @@ static int is_visited_state(){ if(snapshot_compare(new_state->system_state, state_test->system_state) == 0){ xbt_dynar_remove_at(visited_states, cursor, NULL); xbt_dynar_insert_at(visited_states, cursor, &new_state); + XBT_DEBUG("State %d already visited ! (equal to state %d)", new_state->num, state_test->num); if(raw_mem_set) MC_SET_RAW_MEM; else @@ -96,6 +97,7 @@ static int is_visited_state(){ if(snapshot_compare(new_state->system_state, state_test->system_state) == 0){ xbt_dynar_remove_at(visited_states, previous_cursor, NULL); xbt_dynar_insert_at(visited_states, previous_cursor, &new_state); + XBT_DEBUG("State %d already visited ! (equal to state %d)", new_state->num, state_test->num); if(raw_mem_set) MC_SET_RAW_MEM; else @@ -113,6 +115,7 @@ static int is_visited_state(){ if(snapshot_compare(new_state->system_state, state_test->system_state) == 0){ xbt_dynar_remove_at(visited_states, next_cursor, NULL); xbt_dynar_insert_at(visited_states, next_cursor, &new_state); + XBT_DEBUG("State %d already visited ! (equal to state %d)", new_state->num, state_test->num); if(raw_mem_set) MC_SET_RAW_MEM; else @@ -306,10 +309,6 @@ void MC_dpor(void) next_state->system_state = MC_take_snapshot(); } - }else{ - - XBT_DEBUG("State already visited !"); - } xbt_fifo_unshift(mc_stack_safety, next_state);