X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b40c2e9bf3cf6e8b2fad15594852ce186bf99574..ed340fe9e2dc5b18c17e9db0545be99b7a2e3361:/src/mc/mc_pair.c diff --git a/src/mc/mc_pair.c b/src/mc/mc_pair.c index 29910e6cff..ee3ad5d3e5 100644 --- a/src/mc/mc_pair.c +++ b/src/mc/mc_pair.c @@ -4,6 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include +#include "mc_liveness.h" #include "mc_private.h" mc_pair_t MC_pair_new() @@ -11,14 +13,17 @@ mc_pair_t MC_pair_new() mc_pair_t p = NULL; p = xbt_new0(s_mc_pair_t, 1); p->num = ++mc_stats->expanded_pairs; + p->exploration_started = 0; p->search_cycle = 0; + p->visited_pair_removed = _sg_mc_visited > 0 ? 0 : 1; return p; } void MC_pair_delete(mc_pair_t p) { p->automaton_state = NULL; - MC_state_delete(p->graph_state); + if(p->visited_pair_removed) + MC_state_delete(p->graph_state, 1); xbt_dynar_free(&(p->atomic_propositions)); xbt_free(p); p = NULL;