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 : new example bugged1 for stateful dpor
[simgrid.git]
/
src
/
msg
/
global.c
diff --git
a/src/msg/global.c
b/src/msg/global.c
index
386057b
..
f17edf0
100644
(file)
--- a/
src/msg/global.c
+++ b/
src/msg/global.c
@@
-153,6
+153,21
@@
MSG_error_t MSG_main(void)
return MSG_OK;
}
return MSG_OK;
}
+MSG_error_t MSG_main_stateful(void)
+{
+ /* Clean IO before the run */
+ fflush(stdout);
+ fflush(stderr);
+
+ if (MC_IS_ENABLED) {
+ MC_modelcheck_stateful();
+ }
+ else {
+ SIMIX_run();
+ }
+ return MSG_OK;
+}
+
MSG_error_t MSG_main_with_automaton(xbt_automaton_t a)
{
/* Clean IO before the run */
MSG_error_t MSG_main_with_automaton(xbt_automaton_t a)
{
/* Clean IO before the run */