X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30cbad5558adbe624358be3b839ae57a0b034d9e..5a9c70d5dfe11c9c7660b795b00f49b4170da968:/src/msg/global.c?ds=sidebyside diff --git a/src/msg/global.c b/src/msg/global.c index f17edf031b..2122c9eff6 100644 --- a/src/msg/global.c +++ b/src/msg/global.c @@ -168,14 +168,29 @@ MSG_error_t MSG_main_stateful(void) return MSG_OK; } -MSG_error_t MSG_main_with_automaton(xbt_automaton_t a) +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_with_automaton(a); + MC_modelcheck_liveness_stateful(a); + } + else { + SIMIX_run(); + } + return MSG_OK; +} + +MSG_error_t MSG_main_liveness_stateless(xbt_automaton_t a) +{ + /* Clean IO before the run */ + fflush(stdout); + fflush(stderr); + + if (MC_IS_ENABLED) { + MC_modelcheck_liveness_stateless(a); } else { SIMIX_run();