Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : DPOR (independant transitions) algorithm for liveness properties
[simgrid.git] / src / mc / mc_global.c
index 6a46001..839c96b 100644 (file)
@@ -67,6 +67,7 @@ void MC_init_with_automaton(xbt_automaton_t a){
 
   /* Initialize statistics */
   mc_stats_pair = xbt_new0(s_mc_stats_pair_t, 1);
+  mc_stats = xbt_new0(s_mc_stats_t, 1);
   //mc_stats_pair->pair_size = 1;
 
   XBT_DEBUG("Creating snapshot_stack");
@@ -76,8 +77,9 @@ void MC_init_with_automaton(xbt_automaton_t a){
 
   MC_UNSET_RAW_MEM;
 
-  //MC_dfs_init(a);
-  MC_stateful_dpor_init(a);
+  //MC_vddfs_with_restore_snapshot_init(a);
+  //MC_ddfs_with_restore_snapshot_init(a);
+  MC_dpor2_init(a);
 }
 
 
@@ -268,7 +270,7 @@ void MC_print_statistics_pairs(mc_stats_pair_t stats)
 {
   XBT_INFO("Expanded pairs = %lu", stats->expanded_pairs);
   XBT_INFO("Visited pairs = %lu", stats->visited_pairs);
-  XBT_INFO("Executed transitions = %lu", stats->executed_transitions);
+  //XBT_INFO("Executed transitions = %lu", stats->executed_transitions);
   XBT_INFO("Expanded / Visited = %lf",
         (double) stats->visited_pairs / stats->expanded_pairs);
   /*XBT_INFO("Exploration coverage = %lf",