Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : update examples with new function MSG_init
[simgrid.git] / examples / msg / mc / bugged1.c
index b83efd7..82bb266 100644 (file)
@@ -4,7 +4,7 @@
 /******************************************************************************/
 
 #include <msg/msg.h>
-#include <mc/modelchecker.h>
+#include <simgrid/modelchecker.h>
 #define N 3
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(example, "this example");
@@ -26,7 +26,7 @@ int server(int argc, char *argv[])
   }
   MC_assert(atoi(MSG_task_get_name(task)) == 3);
 
-  INFO0("OK");
+  XBT_INFO("OK");
   return 0;
 }
 
@@ -39,14 +39,14 @@ int client(int argc, char *argv[])
 
   MSG_task_send(task, "mymailbox");
 
-  INFO0("Sent!");
+  XBT_INFO("Sent!");
   return 0;
 }
 
 int main(int argc, char *argv[])
 {
 
-  MSG_global_init(&argc, argv);
+  MSG_init(&argc, argv);
 
   MSG_create_environment("platform.xml");
 
@@ -58,6 +58,8 @@ int main(int argc, char *argv[])
 
   MSG_main();
 
+  MSG_clean();
+
   return 0;
 
 }