Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix dot output for liveness MC
[simgrid.git] / src / mc / mc_pair.c
1 /* Copyright (c) 2013 Da SimGrid Team. All rights reserved.            */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "mc_private.h"
7
8 mc_pair_t MC_pair_new(){
9   mc_pair_t p = NULL;
10   p = xbt_new0(s_mc_pair_t, 1);
11   p->nb_processes = xbt_swag_size(simix_global->process_list);
12   p->num = ++mc_stats->expanded_pairs;
13   p->search_cycle = 0;
14   p->other_num = -1;
15   return p;
16 }
17
18 void MC_pair_delete(mc_pair_t p){
19   p->automaton_state = NULL;
20   MC_state_delete(p->graph_state);
21   p->stack_removed = 0;
22   p->visited_removed = 0;
23   p->acceptance_removed = 0;
24   xbt_dynar_free(&(p->atomic_propositions));
25   xbt_free(p);
26   p = NULL;
27 }