Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the storage content update after a write action + remove useless loop
[simgrid.git] / src / mc / mc_pair.c
index 0dc7f1d..ca6678b 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) 2013 Da SimGrid Team. All rights reserved.            */
+/* Copyright (c) 2013. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -8,15 +9,24 @@
 mc_pair_t MC_pair_new(){
   mc_pair_t p = NULL;
   p = xbt_new0(s_mc_pair_t, 1);
-  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;
+  p->search_cycle = 0;
+  p->other_num = -1;
   return p;
 }
 
 void MC_pair_delete(mc_pair_t p){
   p->automaton_state = NULL;
   MC_state_delete(p->graph_state);
+  p->stack_removed = 0;
+  p->visited_removed = 0;
+  p->acceptance_removed = 0;
   xbt_dynar_free(&(p->atomic_propositions));
   xbt_free(p);
+  p = NULL;
+}
+
+void mc_pair_free_voidp(void *p){
+  MC_pair_delete((mc_pair_t) * (void **)p);
 }