X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/251bbe5068a2a7b23a23a4df11fc1b785dce6ff4..43c98702056fac491ffe054cdba3f36e4c8dbf3a:/src/mc/mc_safety.c diff --git a/src/mc/mc_safety.c b/src/mc/mc_safety.c index 6f671f2bdf..2a1df9b471 100644 --- a/src/mc/mc_safety.c +++ b/src/mc/mc_safety.c @@ -117,17 +117,13 @@ void MC_modelcheck_safety(void) if (xbt_fifo_size(mc_stack) <= _sg_mc_max_depth && !user_max_depth_reached && (req = MC_state_get_request(state, &value)) && visited_state == NULL) { - /* Debug information */ - if (XBT_LOG_ISENABLED(mc_safety, xbt_log_priority_debug)) { - req_str = MC_request_to_string(req, value); - XBT_DEBUG("Execute: %s", req_str); - xbt_free(req_str); - } + MC_LOG_REQUEST(mc_safety, req, value); - MC_SET_MC_HEAP; - if (dot_output != NULL) + if (dot_output != NULL) { + MC_SET_MC_HEAP; req_str = MC_request_get_dot_output(req, value); - MC_SET_STD_HEAP; + MC_SET_STD_HEAP; + } MC_state_set_executed_request(state, req, value); mc_stats->executed_transitions++; @@ -141,7 +137,7 @@ void MC_modelcheck_safety(void) } /* Answer the request */ - SIMIX_simcall_pre(req, value); + SIMIX_simcall_enter(req, value); /* Wait for requests (schedules processes) */ MC_wait_for_requests();