A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Flush output of energy tests.
[simgrid.git]
/
src
/
mc
/
mc_safety.h
diff --git
a/src/mc/mc_safety.h
b/src/mc/mc_safety.h
index
d6c907d
..
2aa3902
100644
(file)
--- 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. */
/* 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 <stdint.h>
#include <stdint.h>
+#include <memory>
+
#include <simgrid_config.h>
#include <simgrid_config.h>
+
#include <xbt/base.h>
#include <xbt/base.h>
-#include <xbt/dict.h>
+
#include "src/mc/mc_forward.hpp"
#include "src/mc/mc_state.h"
#include "src/mc/mc_forward.hpp"
#include "src/mc/mc_state.h"
-SG_BEGIN_DECL()
-
-typedef enum {
- e_mc_reduce_unset,
- e_mc_reduce_none,
- e_mc_reduce_dpor
-} e_mc_reduce_t;
-
-extern XBT_PRIVATE e_mc_reduce_t mc_reduce_kind;
-
-int 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
#endif