X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e4e4b7da7f6a6d04b659f0aa9c1de8733939096f..6cecccd687a1340319b003a760f3538eab5f6915:/src/mc/api/ActorState.hpp diff --git a/src/mc/api/ActorState.hpp b/src/mc/api/ActorState.hpp index e6be7ed76c..eda280894b 100644 --- a/src/mc/api/ActorState.hpp +++ b/src/mc/api/ActorState.hpp @@ -26,7 +26,6 @@ namespace simgrid::mc { * is important in cases */ class ActorState { - /** * @brief The transitions that the actor is allowed to execute from this * state, viz. those that are enabled for this actor @@ -54,7 +53,7 @@ class ActorState { * This means there may be a way to store the list once and apply differences * rather than repeating elements frequently. */ - std::vector> pending_transitions_; + std::vector> pending_transitions_; /* Possible exploration status of an actor transition in a state. * Either the checker did not consider the transition, or it was considered and still to do, or considered and @@ -87,7 +86,7 @@ class ActorState { public: ActorState(aid_t aid, bool enabled, unsigned int max_consider) : ActorState(aid, enabled, max_consider, {}) {} - ActorState(aid_t aid, bool enabled, unsigned int max_consider, std::vector> transitions) + ActorState(aid_t aid, bool enabled, unsigned int max_consider, std::vector> transitions) : pending_transitions_(std::move(transitions)), aid_(aid), max_consider_(max_consider), enabled_(enabled) { } @@ -118,7 +117,7 @@ public: inline Transition* get_transition(unsigned times_considered) { xbt_assert(times_considered < this->pending_transitions_.size(), - "Actor %lu does not have a state available transition with `times_considered = %d`,\n" + "Actor %ld does not have a state available transition with `times_considered = %u`,\n" "yet one was asked for", aid_, times_considered); return this->pending_transitions_[times_considered].get(); @@ -127,7 +126,7 @@ public: inline void set_transition(std::unique_ptr t, unsigned times_considered) { xbt_assert(times_considered < this->pending_transitions_.size(), - "Actor %lu does not have a state available transition with `times_considered = %d`, " + "Actor %ld does not have a state available transition with `times_considered = %u`, " "yet one was attempted to be set", aid_, times_considered); this->pending_transitions_[times_considered] = std::move(t);