1 /* Copyright (c) 2007-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. */
7 #ifndef SIMGRID_MC_SAFETY_H
8 #define SIMGRID_MC_SAFETY_H
12 #include <simgrid_config.h>
15 #include <xbt/dynar.h>
17 #include "src/mc/mc_forward.hpp"
18 #include "src/mc/mc_state.h"
28 extern XBT_PRIVATE e_mc_reduce_t mc_reduce_kind;
30 int MC_modelcheck_safety(void);
32 typedef struct XBT_PRIVATE s_mc_visited_state{
33 mc_snapshot_t system_state;
34 size_t heap_bytes_used;
37 int other_num; // dot_output for
38 }s_mc_visited_state_t, *mc_visited_state_t;
40 extern XBT_PRIVATE xbt_dynar_t visited_states;
41 XBT_PRIVATE mc_visited_state_t is_visited_state(mc_state_t graph_state);
42 XBT_PRIVATE void visited_state_free(mc_visited_state_t state);
43 XBT_PRIVATE void visited_state_free_voidp(void *s);