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 "src/mc/mc_forward.hpp"
16 #include "src/mc/mc_state.h"
26 extern XBT_PRIVATE e_mc_reduce_t mc_reduce_kind;
28 int MC_modelcheck_safety(void);
30 typedef struct XBT_PRIVATE s_mc_visited_state{
31 mc_snapshot_t system_state;
32 size_t heap_bytes_used;
35 int other_num; // dot_output for
36 }s_mc_visited_state_t, *mc_visited_state_t;
38 extern XBT_PRIVATE xbt_dynar_t visited_states;
39 XBT_PRIVATE mc_visited_state_t is_visited_state(mc_state_t graph_state);
40 XBT_PRIVATE void visited_state_free(mc_visited_state_t state);
41 XBT_PRIVATE void visited_state_free_voidp(void *s);