1 /* Copyright (c) 2013-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "mc_liveness.h"
9 #include "mc_private.h"
11 mc_pair_t MC_pair_new()
14 p = xbt_new0(s_mc_pair_t, 1);
15 p->num = ++mc_stats->expanded_pairs;
20 void MC_pair_delete(mc_pair_t p)
22 p->automaton_state = NULL;
23 MC_state_delete(p->graph_state);
24 xbt_dynar_free(&(p->atomic_propositions));
29 void mc_pair_free_voidp(void *p)
31 MC_pair_delete((mc_pair_t) * (void **) p);