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"
23 enum class ReductionMode {
29 extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode;
31 int modelcheck_safety(void);
33 struct XBT_PRIVATE VisitedState {
34 mc_snapshot_t system_state;
35 size_t heap_bytes_used;
38 int other_num; // dot_output for
44 extern XBT_PRIVATE xbt_dynar_t visited_states;
45 XBT_PRIVATE simgrid::mc::VisitedState* is_visited_state(mc_state_t graph_state);