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
Convert simgrid::mc::snapshot_equal() into Snapshot::operator==()
[simgrid.git]
/
src
/
mc
/
VisitedState.cpp
diff --git
a/src/mc/VisitedState.cpp
b/src/mc/VisitedState.cpp
index
fa2302a
..
790d90a
100644
(file)
--- a/
src/mc/VisitedState.cpp
+++ b/
src/mc/VisitedState.cpp
@@
-52,7
+52,7
@@
VisitedStates::addVisitedState(unsigned long state_number, simgrid::mc::State* g
if (compare_snapshots)
for (auto i = range_begin; i != range_end; ++i) {
auto& visited_state = *i;
if (compare_snapshots)
for (auto i = range_begin; i != range_end; ++i) {
auto& visited_state = *i;
- if (
Api::get().snapshot_equal(visited_state->system_state.get(), new_state->system_state.get()
)) {
+ if (
*visited_state->system_state.get() == *new_state->system_state.get(
)) {
// The state has been visited:
std::unique_ptr<simgrid::mc::VisitedState> old_state =
// The state has been visited:
std::unique_ptr<simgrid::mc::VisitedState> old_state =