Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cut some more includes
[simgrid.git] / src / mc / mc_safety.h
index 0c82769..22b0615 100644 (file)
@@ -1,44 +1,34 @@
-/* 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 <stdint.h>
 
-#include <simgrid_config.h>
-#include <xbt/dict.h>
-#include "mc_forward.h"
-#include "mc_state.h"
+#include <memory>
 
-SG_BEGIN_DECL()
+#include <simgrid_config.h>
 
-typedef enum {
-  e_mc_reduce_unset,
-  e_mc_reduce_none,
-  e_mc_reduce_dpor
-} e_mc_reduce_t;
+#include "xbt/base.h"
 
-extern 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 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_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);
+extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode;
 
-SG_END_DECL()
+}
+}
 
 #endif