]> AND Public Git Repository - simgrid.git/blobdiff - examples/msg/mc/example_automaton.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : update ddfs stateful model checking for liveness properties, bug...
[simgrid.git] / examples / msg / mc / example_automaton.c
index b9fb5d7cea92af8a7eb423bf722ee89e14beda9d..69a5629573f9d7169ece89d2723ec98e97a1fccd 100644 (file)
@@ -14,9 +14,9 @@ extern xbt_automaton_t automaton;
 
 
 int p=1;
-int r=0;
+int r=1;
 int q=1;
-int e=0;
+int e=1;
 int d=1;
 
 
@@ -55,12 +55,11 @@ int server(int argc, char *argv[])
     }
     MSG_task_receive(&task, "mymailbox");
     count++;
-    e=(e+1)%2;
-    //d=(d+1)%2;
+    r=(r+1)%2;
     //XBT_INFO("r (server) = %d", r);
      
   }
-  MC_assert_pair(atoi(MSG_task_get_name(task)) == 3);
+  MC_assert_pair_stateless(atoi(MSG_task_get_name(task)) == 3);
 
   XBT_INFO("OK");
   return 0;
@@ -109,7 +108,7 @@ int main(int argc, char **argv){
   
   //XBT_INFO("r=%d", r);
   
-  MSG_main_with_automaton(automaton);
+  MSG_main_liveness_stateless(automaton);
 
   MSG_clean();