1 /* Copyright (c) 2008-2016. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SIMGRID_MC_SAFETY_CHECKER_HPP
8 #define SIMGRID_MC_SAFETY_CHECKER_HPP
15 #include "src/mc/mc_forward.hpp"
16 #include "src/mc/Checker.hpp"
17 #include "src/mc/VisitedState.hpp"
22 class SafetyChecker : public Checker {
23 simgrid::mc::ReductionMode reductionMode_ = simgrid::mc::ReductionMode::unset;
25 SafetyChecker(Session& session);
28 RecordTrace getRecordTrace() override;
29 std::vector<std::string> getTextualTrace() override;
33 bool checkNonDeterminism(simgrid::mc::State* current_state);
35 /** Stack representing the position in the exploration graph */
36 std::list<std::unique_ptr<simgrid::mc::State>> stack_;
37 simgrid::mc::VisitedStates visitedStates_;