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
15 #include <simgrid_config.h>
18 #include <xbt/dynar.h>
20 #include "src/mc/mc_forward.hpp"
21 #include "src/mc/mc_state.h"
26 enum class ReductionMode {
32 extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode;
34 struct XBT_PRIVATE VisitedState {
35 simgrid::mc::Snapshot* system_state = nullptr;
36 size_t heap_bytes_used = 0;
39 int other_num = 0; // dot_output for
45 extern XBT_PRIVATE std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
46 XBT_PRIVATE std::unique_ptr<simgrid::mc::VisitedState> is_visited_state(mc_state_t graph_state);