2 #include <mc/modelchecker.h>
5 XBT_LOG_NEW_DEFAULT_CATEGORY(example,"this example");
7 int server(int argc,char *argv[]);
8 int client(int argc,char *argv[]);
10 int server(int argc,char *argv[]) {
15 MSG_task_destroy(task);
18 MSG_task_receive(&task,"mymailbox");
21 MC_assert(atoi(MSG_task_get_name(task)) == 3);
27 int client(int argc,char *argv[]) {
29 m_task_t task = MSG_task_create(argv[1], 0/*comp cost*/, 10000/*comm size*/, NULL /*arbitrary data*/);
31 MSG_task_send(task,"mymailbox");
37 int main(int argc,char*argv[]) {
39 MSG_global_init(&argc,argv);
41 MSG_create_environment("platform.xml");
43 MSG_function_register("server", server);
45 MSG_function_register("client", client);
47 MSG_launch_application("deploy.xml");