Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Add std:: namespace for some types
[simgrid.git] / src / mc / mc_safety.h
1 /* Copyright (c) 2007-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_MC_SAFETY_H
8 #define SIMGRID_MC_SAFETY_H
9
10 #include <stdint.h>
11
12 #include <simgrid_config.h>
13 #include <xbt/base.h>
14 #include <xbt/dict.h>
15 #include "mc_forward.hpp"
16 #include "mc_state.h"
17
18 SG_BEGIN_DECL()
19
20 typedef enum {
21   e_mc_reduce_unset,
22   e_mc_reduce_none,
23   e_mc_reduce_dpor
24 } e_mc_reduce_t;
25
26 extern XBT_PRIVATE e_mc_reduce_t mc_reduce_kind;
27
28 void MC_modelcheck_safety(void);
29
30 typedef struct XBT_PRIVATE s_mc_visited_state{
31   mc_snapshot_t system_state;
32   size_t heap_bytes_used;
33   int nb_processes;
34   int num;
35   int other_num; // dot_output for
36 }s_mc_visited_state_t, *mc_visited_state_t;
37
38 extern XBT_PRIVATE xbt_dynar_t visited_states;
39 XBT_PRIVATE mc_visited_state_t is_visited_state(mc_state_t graph_state);
40 XBT_PRIVATE void visited_state_free(mc_visited_state_t state);
41 XBT_PRIVATE void visited_state_free_voidp(void *s);
42
43 SG_END_DECL()
44
45 #endif