X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a2e006ba859c6110478a89ba0cbd2babc5d15b6a..be647c10d0b1d760b036f1205f314002637d9876:/src/msg/msg_global.c diff --git a/src/msg/msg_global.c b/src/msg/msg_global.c index 681bdef8b9..9012803624 100644 --- a/src/msg/msg_global.c +++ b/src/msg/msg_global.c @@ -108,26 +108,9 @@ MSG_error_t MSG_main(void) fflush(stdout); fflush(stderr); - if (MC_IS_ENABLED) { - MC_modelcheck(); - } - else { - SIMIX_run(); - } - return MSG_OK; -} - - -MSG_error_t MSG_main_liveness() -{ - /* Clean IO before the run */ - fflush(stdout); - fflush(stderr); - - if (MC_IS_ENABLED) { - MC_modelcheck_liveness(); - } - else { + if (MC_IS_ENABLED && (_surf_do_model_check == 1)) { + MC_do_the_modelcheck_for_real(); + } else { SIMIX_run(); } return MSG_OK;