]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/api/State.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce scope for variables (sonar).
[simgrid.git] / src / mc / api / State.hpp
index ad39ec5e5dbfd527a1e2178eac0a76733cbd2969..6d984370d21d2ca1bf7adb35e25cdbea2ea4c668 100644 (file)
@@ -11,7 +11,7 @@
 #include "src/mc/api/strategy/Strategy.hpp"
 #include "src/mc/transition/Transition.hpp"
 
-#if SIMGRID_HAVE_MC
+#if SIMGRID_HAVE_STATEFUL_MC
 #include "src/mc/sosp/Snapshot.hpp"
 #endif
 
@@ -62,9 +62,9 @@ public:
   /* Returns a positive number if there is another transition to pick, or -1 if not */
   aid_t next_transition() const; // this function should disapear as it is redundant with the next one
 
-  /* Same as next_transition, but choice is now guided, and a double corresponding to the
+  /* Same as next_transition, but choice is now guided, and an integer corresponding to the
    internal cost of the transition is returned */
-  std::pair<aid_t, double> next_transition_guided() const;
+  std::pair<aid_t, int> next_transition_guided() const;
 
   /* Explore a new path on the remote app; the parameter 'next' must be the result of a previous call to
    * next_transition() */