Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-check : show stack when property not valid
[simgrid.git] / examples / msg / mc / example_automaton.c
index 67f5f87..fbf546a 100644 (file)
@@ -2,6 +2,7 @@
 #include "xbt/automatonparse_promela.h"
 #include "example_automaton.h"
 #include "msg/msg.h"
+#include "mc/mc.h"
 
 #include "y.tab.c"
 
@@ -39,10 +40,10 @@ int server(int argc, char *argv[])
     }
     MSG_task_receive(&task, "mymailbox");
     count++;
-    //e++;
-    //e=e%2;
+    //r=(r+1)%4;
+     
   }
-  //MC_assert(atoi(MSG_task_get_name(task)) == 3);
+  MC_assert_pair(atoi(MSG_task_get_name(task)) == 3);
 
   XBT_INFO("OK");
   return 0;
@@ -58,6 +59,7 @@ int client(int argc, char *argv[])
   MSG_task_send(task, "mymailbox");
   
   XBT_INFO("Sent!");
+   //r=(r+1)%4;
   return 0;
 }