add_executable(centralized centralized_mutex.c)
add_executable(bugged1 bugged1.c)
add_executable(bugged2 bugged2.c)
+add_executable(random_test random_test.c)
target_link_libraries(centralized simgrid m -fprofile-arcs)
target_link_libraries(bugged1 simgrid m -fprofile-arcs)
target_link_libraries(bugged2 simgrid m -fprofile-arcs)
+target_link_libraries(random_test simgrid m -fprofile-arcs)
\ No newline at end of file
--- /dev/null
+<?xml version='1.0'?>
+<!DOCTYPE platform SYSTEM "simgrid.dtd">
+<platform version="2">
+ <process host="HostA" function="server">
+ <argument value="0"/>
+ </process>
+ <process host="HostB" function="server">
+ <argument value="0"/>
+ </process>
+
+<!-- <process host="HostB" function="client">
+ <argument value="1"/>
+ </process>
+ <process host="HostC" function="client">
+ <argument value="2"/>
+ </process> -->
+</platform>
--- /dev/null
+#include <msg/msg.h>
+#include <mc/modelchecker.h>
+
+XBT_LOG_NEW_DEFAULT_CATEGORY(random_test,"Random Test");
+
+int server(int argc,char *argv[]);
+
+int server(int argc,char *argv[])
+{
+ int val;
+ val = MC_random(3,6);
+ INFO1("val=%d", val);
+ INFO0("OK");
+ return 0;
+}
+
+int main(int argc,char*argv[])
+{
+ MSG_global_init(&argc,argv);
+
+ MSG_create_environment("platform.xml");
+
+ MSG_function_register("server", server);
+
+// MSG_function_register("client", client);
+
+ MSG_launch_application("deploy_random_test.xml");
+
+ MSG_main();
+
+ return 0;
+}