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
model-checker : correction of dfs algorithm for liveness properties
[simgrid.git]
/
examples
/
msg
/
mc
/
example_automaton.c
diff --git
a/examples/msg/mc/example_automaton.c
b/examples/msg/mc/example_automaton.c
index
8780f17
..
cfd0651
100644
(file)
--- a/
examples/msg/mc/example_automaton.c
+++ b/
examples/msg/mc/example_automaton.c
@@
-55,9
+55,9
@@
int server(int argc, char *argv[])
}
MSG_task_receive(&task, "mymailbox");
count++;
}
MSG_task_receive(&task, "mymailbox");
count++;
- r=(r+1)%
3
;
+ r=(r+1)%
2
;
//d=(d+1)%2;
//d=(d+1)%2;
- XBT_INFO("r (server) = %d", r);
+
//
XBT_INFO("r (server) = %d", r);
}
MC_assert_pair(atoi(MSG_task_get_name(task)) == 3);
}
MC_assert_pair(atoi(MSG_task_get_name(task)) == 3);
@@
-78,7
+78,7
@@
int client(int argc, char *argv[])
XBT_INFO("Sent!");
//r=(r+1)%3;
XBT_INFO("Sent!");
//r=(r+1)%3;
- XBT_INFO("r (client) = %d", r);
+
//
XBT_INFO("r (client) = %d", r);
return 0;
}
return 0;
}
@@
-107,7
+107,7
@@
int main(int argc, char **argv){
MSG_launch_application("deploy_bugged1.xml");
MSG_launch_application("deploy_bugged1.xml");
- XBT_INFO("r=%d", r);
+
//
XBT_INFO("r=%d", r);
MSG_main_with_automaton(automaton);
MSG_main_with_automaton(automaton);