X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12cc56f2c5f8993698a07b19c37f845b175b420a..d4f9d0cf42605d96b91088c02ddfbf2411f89de1:/src/mc/SafetyChecker.hpp?ds=sidebyside diff --git a/src/mc/SafetyChecker.hpp b/src/mc/SafetyChecker.hpp index d7fe099f5d..9694a93d3a 100644 --- a/src/mc/SafetyChecker.hpp +++ b/src/mc/SafetyChecker.hpp @@ -7,21 +7,34 @@ #ifndef SIMGRID_MC_SAFETY_CHECKER_HPP #define SIMGRID_MC_SAFETY_CHECKER_HPP +#include +#include +#include +#include + #include "src/mc/mc_forward.hpp" #include "src/mc/Checker.hpp" +#include "src/mc/VisitedState.hpp" namespace simgrid { namespace mc { -class SafetyChecker : public Checker { +class XBT_PRIVATE SafetyChecker : public Checker { simgrid::mc::ReductionMode reductionMode_ = simgrid::mc::ReductionMode::unset; public: SafetyChecker(Session& session); ~SafetyChecker(); int run() override; + RecordTrace getRecordTrace() override; + std::vector getTextualTrace() override; private: // Temp void init(); + bool checkNonDeterminism(simgrid::mc::State* current_state); +private: + /** Stack representing the position in the exploration graph */ + std::list> stack_; + simgrid::mc::VisitedStates visitedStates_; }; }