From: Marion Guthmuller Date: Mon, 7 Oct 2013 20:38:40 +0000 (+0200) Subject: model-checker : avoid unnecessary snapshot restore X-Git-Tag: v3_9_90~38^2~12 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/472cf0c9125f4826985bb0a400086d83c3a9ebaa?ds=inline model-checker : avoid unnecessary snapshot restore --- diff --git a/src/mc/mc_liveness.c b/src/mc/mc_liveness.c index d0303b5cdf..f01b3c8904 100644 --- a/src/mc/mc_liveness.c +++ b/src/mc/mc_liveness.c @@ -465,7 +465,6 @@ void MC_ddfs(){ mc_pair_t next_pair = NULL; xbt_dynar_t prop_values = NULL; - int new_pair = 0; mc_visited_pair_t reached_pair = NULL; if(xbt_fifo_size(mc_stack_liveness) < _sg_mc_max_depth){ @@ -538,6 +537,8 @@ void MC_ddfs(){ MC_SET_RAW_MEM; prop_values = get_atomic_propositions_values(); MC_UNSET_RAW_MEM; + + int new_pair = 0; /* Evaluate enabled transition according to atomic propositions values */ cursor= 0;