X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8bcc1dbe28f658ea786ba234a679601edd30758a..ab9a2d2c7dca2b08750d70ef5769fc2c14350ab6:/src/mc/mc_safety.h diff --git a/src/mc/mc_safety.h b/src/mc/mc_safety.h index 14bcd4fe5c..2aa3902498 100644 --- a/src/mc/mc_safety.h +++ b/src/mc/mc_safety.h @@ -1,5 +1,4 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -9,37 +8,27 @@ #include -#include -#include -#include -#include "mc_forward.hpp" -#include "mc_state.h" +#include -SG_BEGIN_DECL() +#include -typedef enum { - e_mc_reduce_unset, - e_mc_reduce_none, - e_mc_reduce_dpor -} e_mc_reduce_t; +#include -extern XBT_PRIVATE e_mc_reduce_t mc_reduce_kind; +#include "src/mc/mc_forward.hpp" +#include "src/mc/mc_state.h" -void MC_modelcheck_safety(void); +namespace simgrid { +namespace mc { -typedef struct XBT_PRIVATE s_mc_visited_state{ - mc_snapshot_t system_state; - size_t heap_bytes_used; - int nb_processes; - int num; - int other_num; // dot_output for -}s_mc_visited_state_t, *mc_visited_state_t; +enum class ReductionMode { + unset, + none, + dpor, +}; -extern XBT_PRIVATE xbt_dynar_t visited_states; -XBT_PRIVATE mc_visited_state_t is_visited_state(mc_state_t graph_state); -XBT_PRIVATE void visited_state_free(mc_visited_state_t state); -XBT_PRIVATE void visited_state_free_voidp(void *s); +extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode; -SG_END_DECL() +} +} #endif