Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add proper copyright headers to the MC files
[simgrid.git] / src / include / mc / mc.h
1 /* Copyright (c) 2008-2012. Da SimGrid Team. All rights reserved.           */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef _MC_MC_H
7 #define _MC_MC_H
8
9 #include "xbt/misc.h"
10 #include "xbt/fifo.h"
11 #include "xbt/dict.h"
12 #include "xbt/function_types.h"
13 #include "mc/datatypes.h"
14 #include "simix/datatypes.h"
15 #include "gras_config.h" /* Definition of HAVE_MC */
16 #include "xbt/automaton.h"
17
18 #ifdef HAVE_MC
19 extern int _surf_do_model_check;
20 #define MC_IS_ENABLED _surf_do_model_check
21 #else
22 #define MC_IS_ENABLED 0
23 #endif
24
25 SG_BEGIN_DECL()
26
27 /********************************* Global *************************************/
28 XBT_PUBLIC(void) MC_init_safety_stateless(void);
29 XBT_PUBLIC(void) MC_init_safety_stateful(void);
30 XBT_PUBLIC(void) MC_exit(void);
31 XBT_PUBLIC(void) MC_exit_liveness(void);
32 XBT_PUBLIC(void) MC_assert(int);
33 XBT_PUBLIC(void) MC_assert_stateful(int);
34 XBT_PUBLIC(void) MC_modelcheck(void);
35 XBT_PUBLIC(void) MC_modelcheck_stateful(void);
36 XBT_PUBLIC(void) MC_modelcheck_liveness(xbt_automaton_t a, char *prgm);
37 XBT_PUBLIC(int) MC_random(int, int);
38 XBT_PUBLIC(void) MC_process_clock_add(smx_process_t, double);
39 XBT_PUBLIC(double) MC_process_clock_get(smx_process_t);
40 XBT_PUBLIC(void) MC_diff(void);
41
42 /********************************* Memory *************************************/
43 XBT_PUBLIC(void) MC_memory_init(void);  /* Initialize the memory subsystem */
44 XBT_PUBLIC(void) MC_memory_exit(void);
45
46 SG_END_DECL()
47
48 #endif                          /* _MC_MC_H */