Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : use only structure (mc_pair_t) for the verification of liveness prope...
[simgrid.git] / src / mc / mc_pair.c
index bd686f9..0dc7f1d 100644 (file)
@@ -5,21 +5,18 @@
 
 #include "mc_private.h"
 
-mc_pair_t MC_pair_new(mc_state_t gs, xbt_automaton_state_t as, int r){
+mc_pair_t MC_pair_new(){
   mc_pair_t p = NULL;
   p = xbt_new0(s_mc_pair_t, 1);
-  p->automaton_state = as;
-  p->graph_state = gs;
-  p->system_state = NULL;
-  p->requests = r;
+  p->heap_bytes_used = mmalloc_get_bytes_used(std_heap);
+  p->nb_processes = xbt_swag_size(simix_global->process_list);
   p->num = ++mc_stats->expanded_pairs;
   return p;
 }
 
 void MC_pair_delete(mc_pair_t p){
   p->automaton_state = NULL;
-  if(p->system_state)
-    MC_free_snapshot(p->system_state);
   MC_state_delete(p->graph_state);
+  xbt_dynar_free(&(p->atomic_propositions));
   xbt_free(p);
 }