A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small comments improvements around a complex code
[simgrid.git]
/
src
/
mc
/
checker
/
SafetyChecker.hpp
diff --git
a/src/mc/checker/SafetyChecker.hpp
b/src/mc/checker/SafetyChecker.hpp
index
ffc27f1
..
1377934
100644
(file)
--- a/
src/mc/checker/SafetyChecker.hpp
+++ b/
src/mc/checker/SafetyChecker.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2008-201
6
. The SimGrid Team.
+/* Copyright (c) 2008-201
9
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-7,16
+7,15
@@
#ifndef SIMGRID_MC_SAFETY_CHECKER_HPP
#define SIMGRID_MC_SAFETY_CHECKER_HPP
#ifndef SIMGRID_MC_SAFETY_CHECKER_HPP
#define SIMGRID_MC_SAFETY_CHECKER_HPP
+#include "src/mc/VisitedState.hpp"
+#include "src/mc/checker/Checker.hpp"
+#include "src/mc/mc_safety.hpp"
+
#include <list>
#include <memory>
#include <string>
#include <vector>
#include <list>
#include <memory>
#include <string>
#include <vector>
-#include "src/mc/VisitedState.hpp"
-#include "src/mc/checker/Checker.hpp"
-#include "src/mc/mc_forward.hpp"
-#include "src/mc/mc_safety.h"
-
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
@@
-26,19
+25,20
@@
public:
explicit SafetyChecker(Session& session);
~SafetyChecker() = default;
void run() override;
explicit SafetyChecker(Session& session);
~SafetyChecker() = default;
void run() override;
- RecordTrace getRecordTrace() override;
- std::vector<std::string> getTextualTrace() override;
- void logState() override;
+ RecordTrace get_record_trace() override;
+ std::vector<std::string> get_textual_trace() override;
+ void log_state() override;
+
private:
private:
- void check
NonT
ermination(simgrid::mc::State* current_state);
+ void check
_non_t
ermination(simgrid::mc::State* current_state);
void backtrack();
void backtrack();
- void restore
S
tate();
-private:
+ void restore
_s
tate();
+
/** Stack representing the position in the exploration graph */
std::list<std::unique_ptr<simgrid::mc::State>> stack_;
/** Stack representing the position in the exploration graph */
std::list<std::unique_ptr<simgrid::mc::State>> stack_;
- simgrid::mc::VisitedStates visited
S
tates_;
- std::unique_ptr<simgrid::mc::VisitedState> visited
S
tate_;
- unsigned long expanded
StatesC
ount_ = 0;
+ simgrid::mc::VisitedStates visited
_s
tates_;
+ std::unique_ptr<simgrid::mc::VisitedState> visited
_s
tate_;
+ unsigned long expanded
_states_c
ount_ = 0;
};
}
};
}