X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e4a3f0cfb4cce8161d15bd2f531bff6007f3ce5..8449f8cd86a230453d0621072573d85c7ac611f4:/src/msg/global.c diff --git a/src/msg/global.c b/src/msg/global.c index 386057b4ce..1cb8503102 100644 --- a/src/msg/global.c +++ b/src/msg/global.c @@ -153,14 +153,44 @@ MSG_error_t MSG_main(void) return MSG_OK; } -MSG_error_t MSG_main_with_automaton(xbt_automaton_t a) +MSG_error_t MSG_main_stateful(void) { /* Clean IO before the run */ fflush(stdout); fflush(stderr); if (MC_IS_ENABLED) { - MC_modelcheck_with_automaton(a); + MC_modelcheck_stateful(); + } + else { + SIMIX_run(); + } + return MSG_OK; +} + +MSG_error_t MSG_main_liveness_stateful(xbt_automaton_t a) +{ + /* Clean IO before the run */ + fflush(stdout); + fflush(stderr); + + if (MC_IS_ENABLED) { + MC_modelcheck_liveness_stateful(a); + } + else { + SIMIX_run(); + } + return MSG_OK; +} + +MSG_error_t MSG_main_liveness_stateless(xbt_automaton_t a, char *prgm) +{ + /* Clean IO before the run */ + fflush(stdout); + fflush(stderr); + + if (MC_IS_ENABLED) { + MC_modelcheck_liveness_stateless(a, prgm); } else { SIMIX_run();