+void MC_init_with_automaton(xbt_automaton_t a){
+
+ XBT_DEBUG("Start init mc");
+
+ mc_time = xbt_new0(double, simix_process_maxpid);
+
+ /* Initialize the data structures that must be persistent across every
+ iteration of the model-checker (in RAW memory) */
+
+ MC_SET_RAW_MEM;
+
+ /* 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");
+
+ /* Create exploration stack */
+ mc_snapshot_stack = xbt_fifo_new();
+
+ MC_UNSET_RAW_MEM;
+
+ //MC_vddfs_with_restore_snapshot_init(a);
+ //MC_ddfs_with_restore_snapshot_init(a);
+ MC_dpor2_init(a);
+}
+
+