Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : unset raw heap after display of statistics if complete exploration...
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 11 Nov 2012 18:12:26 +0000 (19:12 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 11 Nov 2012 18:12:26 +0000 (19:12 +0100)
src/mc/mc_global.c

index a42b115..02600ef 100644 (file)
@@ -612,6 +612,9 @@ void MC_print_statistics_pairs(mc_stats_pair_t stats)
   //XBT_INFO("Executed transitions = %lu", stats->executed_transitions);
   XBT_INFO("Expanded / Visited = %lf",
            (double) stats->visited_pairs / stats->expanded_pairs);
+
+  if(mmalloc_get_current_heap() == raw_heap)
+    MC_UNSET_RAW_MEM;
 }
 
 void MC_assert(int prop)