X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b76ba4acd263f00d310287d7f891abfcda1c2f9..2568ec7bdc945fa4beebf200756910f8b5b7903a:/src/mc/mc_safety.h diff --git a/src/mc/mc_safety.h b/src/mc/mc_safety.h index b8aa3b4a05..90bc4e07ff 100644 --- a/src/mc/mc_safety.h +++ b/src/mc/mc_safety.h @@ -1,17 +1,18 @@ -/* Copyright (c) 2007-2014. The SimGrid Team. +/* Copyright (c) 2007-2015. 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 #include -#include "mc_interface.h" +#include "mc_forward.hpp" +#include "mc_state.h" SG_BEGIN_DECL() @@ -21,10 +22,8 @@ typedef enum { e_mc_reduce_dpor } e_mc_reduce_t; -extern e_mc_reduce_t mc_reduce_kind; -extern xbt_dict_t first_enabled_state; +extern XBT_INTERNAL e_mc_reduce_t mc_reduce_kind; -void MC_pre_modelcheck_safety(void); void MC_modelcheck_safety(void); typedef struct s_mc_visited_state{ @@ -35,10 +34,10 @@ typedef struct s_mc_visited_state{ 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(void); -void visited_state_free(mc_visited_state_t state); -void visited_state_free_voidp(void *s); +extern XBT_INTERNAL xbt_dynar_t visited_states; +XBT_INTERNAL mc_visited_state_t is_visited_state(mc_state_t graph_state); +XBT_INTERNAL void visited_state_free(mc_visited_state_t state); +XBT_INTERNAL void visited_state_free_voidp(void *s); SG_END_DECL()