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] Register symbols as pointers in the examples
[simgrid.git]
/
examples
/
smpi
/
mc
/
bugged1_liveness.c
diff --git
a/examples/smpi/mc/bugged1_liveness.c
b/examples/smpi/mc/bugged1_liveness.c
index
68a5ef4
..
b92f4e3
100644
(file)
--- a/
examples/smpi/mc/bugged1_liveness.c
+++ b/
examples/smpi/mc/bugged1_liveness.c
@@
-23,15
+23,6
@@
int r, cs;
int r, cs;
-static int predR(){
- return r;
-}
-
-static int predCS(){
- return cs;
-}
-
-
int main(int argc, char **argv){
int err, size, rank;
int main(int argc, char **argv){
int err, size, rank;
@@
-47,8
+38,8
@@
int main(int argc, char **argv){
exit(1);
}
exit(1);
}
- MC_automaton_new_propositional_symbol
("r", &predR
);
- MC_automaton_new_propositional_symbol
("cs", &predCS
);
+ MC_automaton_new_propositional_symbol
_pointer("r", &r
);
+ MC_automaton_new_propositional_symbol
_pointer("cs", &cs
);
MC_ignore(&(status.count), sizeof(status.count));
MC_ignore(&(status.count), sizeof(status.count));