Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8e47e8951d0117527e2ecf92b40376edbf401f10
[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 SIMGRID_MC_SAFETY_H
8 #define SIMGRID_MC_SAFETY_H
9
10 #include <stdint.h>
11
12 #include <simgrid_config.h>
13 #include <xbt/dict.h>
14 #include "mc_forward.hpp"
15 #include "mc_state.h"
16
17 SG_BEGIN_DECL()
18
19 typedef enum {
20   e_mc_reduce_unset,
21   e_mc_reduce_none,
22   e_mc_reduce_dpor
23 } e_mc_reduce_t;
24
25 extern XBT_INTERNAL e_mc_reduce_t mc_reduce_kind;
26
27 void MC_modelcheck_safety(void);
28
29 typedef struct s_mc_visited_state{
30   mc_snapshot_t system_state;
31   size_t heap_bytes_used;
32   int nb_processes;
33   int num;
34   int other_num; // dot_output for
35 }s_mc_visited_state_t, *mc_visited_state_t;
36
37 extern XBT_INTERNAL xbt_dynar_t visited_states;
38 XBT_INTERNAL mc_visited_state_t is_visited_state(mc_state_t graph_state);
39 XBT_INTERNAL void visited_state_free(mc_visited_state_t state);
40 XBT_INTERNAL void visited_state_free_voidp(void *s);
41
42 SG_END_DECL()
43
44 #endif