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
git checkout hypervisor
[simgrid.git]
/
src
/
mc
/
mc_dpor.c
diff --git
a/src/mc/mc_dpor.c
b/src/mc/mc_dpor.c
index
3e1b700
..
38ec8a7
100644
(file)
--- a/
src/mc/mc_dpor.c
+++ b/
src/mc/mc_dpor.c
@@
-254,7
+254,7
@@
void MC_dpor(void)
xbt_fifo_item_t item = NULL;
int pos;
int visited_state;
xbt_fifo_item_t item = NULL;
int pos;
int visited_state;
- int max_depth_reached = 0;
+ int
enabled = 0,
max_depth_reached = 0;
while (xbt_fifo_size(mc_stack_safety) > 0) {
while (xbt_fifo_size(mc_stack_safety) > 0) {
@@
-282,7
+282,8
@@
void MC_dpor(void)
xbt_free(req_str);
}
xbt_free(req_str);
}
- req_str = MC_request_get_dot_output(req, value);
+ if(dot_output != NULL)
+ req_str = MC_request_get_dot_output(req, value);
MC_state_set_executed_request(state, req, value);
mc_stats->executed_transitions++;
MC_state_set_executed_request(state, req, value);
mc_stats->executed_transitions++;
@@
-345,7
+346,8
@@
void MC_dpor(void)
MC_UNSET_RAW_MEM;
MC_UNSET_RAW_MEM;
- xbt_free(req_str);
+ if(dot_output != NULL)
+ xbt_free(req_str);
/* Let's loop again */
/* Let's loop again */