Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use Session::execute() in LivenessChecker as well
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 13 Apr 2016 10:05:32 +0000 (12:05 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 13 Apr 2016 10:07:30 +0000 (12:07 +0200)
src/mc/Checker.hpp
src/mc/LivenessChecker.cpp

index 6259678..8f7e0cc 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/mc_record.h"
 
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/mc_record.h"
+#include "src/mc/Session.hpp"
 
 namespace simgrid {
 namespace mc {
 
 namespace simgrid {
 namespace mc {
index e33db3a..537dd9b 100644 (file)
@@ -30,6 +30,7 @@
 #include "src/mc/mc_safety.h"
 #include "src/mc/mc_exit.h"
 #include "src/mc/Transition.hpp"
 #include "src/mc/mc_safety.h"
 #include "src/mc/mc_exit.h"
 #include "src/mc/Transition.hpp"
+#include "src/mc/Session.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_liveness, mc,
                                 "Logging specific to algorithms for liveness properties verification");
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_liveness, mc,
                                 "Logging specific to algorithms for liveness properties verification");
@@ -218,8 +219,7 @@ void LivenessChecker::replay()
           state.get());
       }
 
           state.get());
       }
 
-      mc_model_checker->handle_simcall(state->transition);
-      mc_model_checker->wait_for_requests();
+      this->getSession().execute(state->transition);
     }
 
     /* Update statistics */
     }
 
     /* Update statistics */