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
[mc] Use std::shared_ptr for State in LivenessChecker
[simgrid.git]
/
src
/
mc
/
mc_safety.h
diff --git
a/src/mc/mc_safety.h
b/src/mc/mc_safety.h
index
8e7503f
..
60c177f
100644
(file)
--- a/
src/mc/mc_safety.h
+++ b/
src/mc/mc_safety.h
@@
-32,7
+32,7
@@
enum class ReductionMode {
extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode;
struct XBT_PRIVATE VisitedState {
extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode;
struct XBT_PRIVATE VisitedState {
- s
imgrid::mc::Snapshot*
system_state = nullptr;
+ s
td::shared_ptr<simgrid::mc::Snapshot>
system_state = nullptr;
size_t heap_bytes_used = 0;
int nb_processes = 0;
int num = 0;
size_t heap_bytes_used = 0;
int nb_processes = 0;
int num = 0;
@@
-43,7
+43,7
@@
struct XBT_PRIVATE VisitedState {
};
extern XBT_PRIVATE std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
};
extern XBT_PRIVATE std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
-XBT_PRIVATE std::unique_ptr<simgrid::mc::VisitedState> is_visited_state(
mc_state_t graph_state
);
+XBT_PRIVATE std::unique_ptr<simgrid::mc::VisitedState> is_visited_state(
simgrid::mc::State* graph_state, bool compare_snpashots
);
}
}
}
}