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] Rename mc_process.{h,cpp} into Process.{h,c}pp
[simgrid.git]
/
src
/
mc
/
mc_visited.cpp
diff --git
a/src/mc/mc_visited.cpp
b/src/mc/mc_visited.cpp
index
59c43c5
..
6498965
100644
(file)
--- a/
src/mc/mc_visited.cpp
+++ b/
src/mc/mc_visited.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2011-201
4
. The SimGrid Team.
+/* Copyright (c) 2011-201
5
. 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
@@
-11,7
+11,7
@@
#include "mc_safety.h"
#include "mc_liveness.h"
#include "mc_private.h"
#include "mc_safety.h"
#include "mc_liveness.h"
#include "mc_private.h"
-#include "mc
_process.h
"
+#include "mc
/Process.hpp
"
#include "mc_smx.h"
extern "C" {
#include "mc_smx.h"
extern "C" {
@@
-349,7
+349,7
@@
mc_visited_state_t is_visited_state(mc_state_t graph_state)
unsigned int cursor2 = 0;
unsigned int index2 = 0;
xbt_dynar_foreach(visited_states, cursor2, state_test){
unsigned int cursor2 = 0;
unsigned int index2 = 0;
xbt_dynar_foreach(visited_states, cursor2, state_test){
- if (state_test->num < min2) {
+ if (
!MC_important_snapshot(state_test->system_state) &&
state_test->num < min2) {
index2 = cursor2;
min2 = state_test->num;
}
index2 = cursor2;
min2 = state_test->num;
}
@@
-466,7
+466,8
@@
int is_visited_pair(mc_visited_pair_t visited_pair, mc_pair_t pair) {
unsigned int cursor2 = 0;
unsigned int index2 = 0;
xbt_dynar_foreach(visited_pairs, cursor2, pair_test) {
unsigned int cursor2 = 0;
unsigned int index2 = 0;
xbt_dynar_foreach(visited_pairs, cursor2, pair_test) {
- if (pair_test->num < min2) {
+ if (!MC_important_snapshot(pair_test->graph_state->system_state)
+ && pair_test->num < min2) {
index2 = cursor2;
min2 = pair_test->num;
}
index2 = cursor2;
min2 = pair_test->num;
}