X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73e6287bc3e653e0fc2e0609532fcb15323de1c3..ab37e64645b3855e7abd79151e2884196b639fc4:/examples/msg/mc/bugged1_liveness.c?ds=sidebyside diff --git a/examples/msg/mc/bugged1_liveness.c b/examples/msg/mc/bugged1_liveness.c index 378ede355e..b646d82179 100644 --- a/examples/msg/mc/bugged1_liveness.c +++ b/examples/msg/mc/bugged1_liveness.c @@ -39,6 +39,7 @@ int coordinator(int argc, char *argv[]) } else { if(strcmp(req, "2") == 0){ XBT_INFO("CS idle. Grant immediatly"); + MC_compare(); answer = MSG_task_create("grant", 0, 1000, NULL); MSG_task_send(answer, req); CS_used = 1; @@ -51,6 +52,7 @@ int coordinator(int argc, char *argv[]) } MSG_task_destroy(task); task = NULL; + kind = NULL; } return 0; @@ -86,6 +88,7 @@ int client(int argc, char *argv[]) MSG_task_destroy(grant); grant = NULL; + kind = NULL; XBT_INFO("%s got the answer. Sleep a bit and release it", argv[1]); @@ -114,7 +117,7 @@ int main(int argc, char *argv[]) MSG_init(&argc, argv); - MSG_config("model-check/property","promela1_bugged1_liveness"); + MSG_config("model-check/property","promela_bugged1_liveness"); MC_automaton_new_propositional_symbol("r", &predR); MC_automaton_new_propositional_symbol("cs", &predCS);