Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
c345af7a645d8a475ef71bd8795fc7c7402df3e2
[simgrid.git] / src / mc / CommunicationDeterminismChecker.hpp
1 /* Copyright (c) 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #include <list>
8
9 #include "src/mc/mc_forward.hpp"
10 #include "src/mc/Checker.hpp"
11 #include "src/mc/VisitedState.hpp"
12
13 #ifndef SIMGRID_MC_COMMUNICATION_DETERMINISM_CHECKER_HPP
14 #define SIMGRID_MC_COMMUNICATION_DETERMINISM_CHECKER_HPP
15
16 namespace simgrid {
17 namespace mc {
18
19 class CommunicationDeterminismChecker : public Checker {
20 public:
21   CommunicationDeterminismChecker(Session& session);
22   ~CommunicationDeterminismChecker();
23   int run() override;
24   RecordTrace getRecordTrace() override;
25   std::vector<std::string> getTextualTrace() override;
26 private:
27   void prepare();
28   int main();
29 private:
30   /** Stack representing the position in the exploration graph */
31   std::list<simgrid::mc::State*> stack_;
32   simgrid::mc::VisitedStates visitedStates_;
33 };
34
35 #endif
36
37 }
38 }