X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8537338624562dcd7725a9df6cad401bd7fd23ab..9303a93b4bbd12f4d20f674577b2e10c3eb21eea:/src/mc/checker/LivenessChecker.cpp diff --git a/src/mc/checker/LivenessChecker.cpp b/src/mc/checker/LivenessChecker.cpp index 910006b3ae..d1dac4b715 100644 --- a/src/mc/checker/LivenessChecker.cpp +++ b/src/mc/checker/LivenessChecker.cpp @@ -122,7 +122,6 @@ void LivenessChecker::replay() std::shared_ptr state = pair->graph_state; if (pair->exploration_started) { - int req_num = state->transition_.times_considered_; const s_smx_simcall* saved_req = &state->executed_req_; smx_simcall_t req = nullptr; @@ -133,7 +132,8 @@ void LivenessChecker::replay() req = &issuer->simcall_; /* Debug information */ - XBT_DEBUG("Replay (depth = %d) : %s (%p)", depth, api::get().request_to_string(req, req_num).c_str(), + XBT_DEBUG("Replay (depth = %d) : %s (%p)", depth, + api::get().request_to_string(state->transition_.aid_, state->transition_.times_considered_).c_str(), state.get()); api::get().execute(state->transition_, req); @@ -230,10 +230,10 @@ std::vector LivenessChecker::get_textual_trace() // override { std::vector trace; for (std::shared_ptr const& pair : exploration_stack_) { - int req_num = pair->graph_state->transition_.times_considered_; smx_simcall_t req = &pair->graph_state->executed_req_; if (req->call_ != simix::Simcall::NONE) - trace.push_back(api::get().request_to_string(req, req_num)); + trace.push_back(api::get().request_to_string(pair->graph_state->transition_.aid_, + pair->graph_state->transition_.times_considered_)); } return trace; } @@ -352,7 +352,8 @@ void LivenessChecker::run() } } - smx_simcall_t req = api::get().mc_state_choose_request(current_pair->graph_state.get()); + api::get().mc_state_choose_request(current_pair->graph_state.get()); + aid_t aid = current_pair->graph_state->transition_.aid_; int req_num = current_pair->graph_state->transition_.times_considered_; if (dot_output != nullptr) { @@ -362,13 +363,13 @@ void LivenessChecker::run() this->previous_request_.clear(); } this->previous_pair_ = current_pair->num; - this->previous_request_ = api::get().request_get_dot_output(req, req_num); + this->previous_request_ = api::get().request_get_dot_output(aid, req_num); if (current_pair->search_cycle) fprintf(dot_output, "%d [shape=doublecircle];\n", current_pair->num); fflush(dot_output); } - XBT_DEBUG("Execute: %s", api::get().request_to_string(req, req_num).c_str()); + XBT_DEBUG("Execute: %s", api::get().request_to_string(aid, req_num).c_str()); /* Update stats */ api::get().mc_inc_executed_trans();