A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model-checker : new examples (with tesh) for verification of liveness properties...
[simgrid.git]
/
examples
/
msg
/
mc
/
bugged1_liveness.c
diff --git
a/examples/msg/mc/bugged1_liveness.c
b/examples/msg/mc/bugged1_liveness.c
index
378ede3
..
7fc5066
100644
(file)
--- a/
examples/msg/mc/bugged1_liveness.c
+++ b/
examples/msg/mc/bugged1_liveness.c
@@
-51,6
+51,7
@@
int coordinator(int argc, char *argv[])
}
MSG_task_destroy(task);
task = NULL;
}
MSG_task_destroy(task);
task = NULL;
+ kind = NULL;
}
return 0;
}
return 0;
@@
-60,7
+61,7
@@
int client(int argc, char *argv[])
{
int my_pid = MSG_process_get_PID(MSG_process_self());
{
int my_pid = MSG_process_get_PID(MSG_process_self());
- char *my_mailbox =
bprintf("%s",
argv[1]);
+ char *my_mailbox =
xbt_strdup(
argv[1]);
msg_task_t grant = NULL, release = NULL;
msg_task_t grant = NULL, release = NULL;
@@
-86,6
+87,7
@@
int client(int argc, char *argv[])
MSG_task_destroy(grant);
grant = NULL;
MSG_task_destroy(grant);
grant = NULL;
+ kind = NULL;
XBT_INFO("%s got the answer. Sleep a bit and release it", argv[1]);
XBT_INFO("%s got the answer. Sleep a bit and release it", argv[1]);
@@
-114,7
+116,7
@@
int main(int argc, char *argv[])
MSG_init(&argc, argv);
MSG_init(&argc, argv);
- MSG_config("model-check/property","promela
1
_bugged1_liveness");
+ MSG_config("model-check/property","promela_bugged1_liveness");
MC_automaton_new_propositional_symbol("r", &predR);
MC_automaton_new_propositional_symbol("cs", &predCS);
MC_automaton_new_propositional_symbol("r", &predR);
MC_automaton_new_propositional_symbol("cs", &predCS);