Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b8aa3b4a0536c4545bd9d24da5ea879affc95dbf
[simgrid.git] / src / mc / mc_safety.h
1 /* Copyright (c) 2007-2014. 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 MC_SAFETY_H
8 #define MC_SAFETY_H
9
10 #include <stdint.h>
11
12 #include <simgrid_config.h>
13 #include <xbt/dict.h>
14 #include "mc_interface.h"
15
16 SG_BEGIN_DECL()
17
18 typedef enum {
19   e_mc_reduce_unset,
20   e_mc_reduce_none,
21   e_mc_reduce_dpor
22 } e_mc_reduce_t;
23
24 extern e_mc_reduce_t mc_reduce_kind;
25 extern xbt_dict_t first_enabled_state;
26
27 void MC_pre_modelcheck_safety(void);
28 void MC_modelcheck_safety(void);
29
30 typedef struct 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_dynar_t visited_states;
39 mc_visited_state_t is_visited_state(void);
40 void visited_state_free(mc_visited_state_t state);
41 void visited_state_free_voidp(void *s);
42
43 SG_END_DECL()
44
45 #endif