1 /* Copyright (c) 2013-2015. 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 <xbt/sysdep.h>
10 #include "src/mc/mc_liveness.h"
11 #include "src/mc/mc_private.h"
15 mc_pair_t MC_pair_new()
17 mc_pair_t p = nullptr;
18 p = xbt_new0(s_mc_pair_t, 1);
19 p->num = ++mc_stats->expanded_pairs;
20 p->exploration_started = 0;
22 p->visited_pair_removed = _sg_mc_visited > 0 ? 0 : 1;
26 void MC_pair_delete(mc_pair_t p)
28 p->automaton_state = nullptr;
29 if(p->visited_pair_removed)
30 MC_state_delete(p->graph_state, 1);
31 xbt_dynar_free(&(p->atomic_propositions));