Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Move the stack as field of SafetyChecker and CommDetChecker
[simgrid.git] / src / mc / SafetyChecker.hpp
index 3c559a7..b2aa138 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef SIMGRID_MC_SAFETY_CHECKER_HPP
 #define SIMGRID_MC_SAFETY_CHECKER_HPP
 
+#include <list>
+
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/Checker.hpp"
 
@@ -19,10 +21,15 @@ public:
   SafetyChecker(Session& session);
   ~SafetyChecker();
   int run() override;
+  RecordTrace getRecordTrace() override;
+  std::vector<std::string> getTextualTrace() override;
 private:
   // Temp
   void init();
-  void pre();
+  bool is_exploration_stack_state(simgrid::mc::State* current_state);
+private:
+  /** Stack representing the position in the exploration graph */
+  std::list<simgrid::mc::State*> stack_;
 };
 
 }