Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Move the stack as field of SafetyChecker and CommDetChecker
[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
12 #ifndef SIMGRID_MC_COMMUNICATION_DETERMINISM_CHECKER_HPP
13 #define SIMGRID_MC_COMMUNICATION_DETERMINISM_CHECKER_HPP
14
15 namespace simgrid {
16 namespace mc {
17
18 class CommunicationDeterminismChecker : public Checker {
19 public:
20   CommunicationDeterminismChecker(Session& session);
21   ~CommunicationDeterminismChecker();
22   int run() override;
23   RecordTrace getRecordTrace() override;
24   std::vector<std::string> getTextualTrace() override;
25 private:
26   void prepare();
27   int main();
28 private:
29   /** Stack representing the position in the exploration graph */
30   std::list<simgrid::mc::State*> stack_;
31 };
32
33 #endif
34
35 }
36 }