X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d873cd12522bb6334ee3acff89384c03645f00d..5a9c70d5dfe11c9c7660b795b00f49b4170da968:/src/msg/global.c diff --git a/src/msg/global.c b/src/msg/global.c index 0652b7eb85..2122c9eff6 100644 --- a/src/msg/global.c +++ b/src/msg/global.c @@ -153,6 +153,51 @@ MSG_error_t MSG_main(void) 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_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) +{ + /* Clean IO before the run */ + fflush(stdout); + fflush(stderr); + + if (MC_IS_ENABLED) { + MC_modelcheck_liveness_stateless(a); + } + else { + SIMIX_run(); + } + return MSG_OK; +} + /** \ingroup msg_simulation * \brief Kill all running process