Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Type consistency.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 26 Aug 2022 13:52:46 +0000 (15:52 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 26 Aug 2022 13:52:46 +0000 (15:52 +0200)
src/mc/api/State.hpp
src/mc/explo/DFSExplorer.cpp

index 31ce756..92164cf 100644 (file)
@@ -47,7 +47,7 @@ public:
   std::map<aid_t, ActorState> const& get_actors_list() const { return actors_to_run_; }
 
   unsigned long get_actor_count() const { return actors_to_run_.size(); }
-  bool is_actor_enabled(int actor) { return actors_to_run_.at(actor).is_enabled(); }
+  bool is_actor_enabled(aid_t actor) { return actors_to_run_.at(actor).is_enabled(); }
 
   Snapshot* get_system_state() const { return system_state_.get(); }
   void set_system_state(std::shared_ptr<Snapshot> state) { system_state_ = std::move(state); }
index 373d6e8..03122f3 100644 (file)
@@ -123,7 +123,7 @@ void DFSExplorer::run()
     }
 
     // Search for the next transition
-    int next = state->next_transition();
+    aid_t next = state->next_transition();
 
     if (next < 0) { // If there is no more transition in the current state, backtrack.
       XBT_DEBUG("There remains %lu actors, but none to interleave (depth %zu).", state->get_actor_count(),