X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6c12a132ca10eefd1d566e489e837e459db4d979..bcb5cde966bef9e174da1c93cdb2158c0880a613:/src/mc/mc_safety.h diff --git a/src/mc/mc_safety.h b/src/mc/mc_safety.h index 52ca5dabbe..2c31b5d76d 100644 --- a/src/mc/mc_safety.h +++ b/src/mc/mc_safety.h @@ -1,44 +1,25 @@ -/* Copyright (c) 2007-2014. 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. */ -#ifndef MC_SAFETY_H -#define MC_SAFETY_H +#ifndef SIMGRID_MC_SAFETY_H +#define SIMGRID_MC_SAFETY_H -#include +#include "xbt/base.h" -#include -#include -#include "mc_interface.h" -#include "mc_state.h" +namespace simgrid { +namespace mc { -SG_BEGIN_DECL() +enum class ReductionMode { + unset, + none, + dpor, +}; -typedef enum { - e_mc_reduce_unset, - e_mc_reduce_none, - e_mc_reduce_dpor -} e_mc_reduce_t; +extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode; -extern e_mc_reduce_t mc_reduce_kind; - -void MC_modelcheck_safety(void); - -typedef struct 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; - -extern xbt_dynar_t visited_states; -mc_visited_state_t is_visited_state(mc_state_t graph_state); -void visited_state_free(mc_visited_state_t state); -void visited_state_free_voidp(void *s); - -SG_END_DECL() +} +} #endif