Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : separate informations for safety stateful/stateless and liveness...
[simgrid.git] / src / msg / global.c
index f17edf0..2122c9e 100644 (file)
@@ -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();