Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into MC_LTL
[simgrid.git] / src / include / mc / mc.h
1 /*      $Id: simix.h 5497 2008-05-26 12:19:15Z cristianrosa $    */
2
3 /* Copyright (c) 2008 Martin Quinson, Cristian Rosa.
4    All rights reserved.                                          */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef _MC_MC_H
10 #define _MC_MC_H
11
12 #include "xbt/misc.h"
13 #include "xbt/fifo.h"
14 #include "xbt/dict.h"
15 #include "xbt/function_types.h"
16 #include "mc/datatypes.h"
17 #include "simix/datatypes.h"
18 #include "gras_config.h" /* Definition of HAVE_MC */
19 #include "xbt/automaton.h"
20
21 #ifdef HAVE_MC
22 extern int _surf_do_model_check;
23 #define MC_IS_ENABLED _surf_do_model_check
24 #else
25 #define MC_IS_ENABLED 0
26 #endif
27
28 SG_BEGIN_DECL()
29
30 /********************************* Global *************************************/
31 XBT_PUBLIC(void) MC_init_safety_stateless(void);
32 XBT_PUBLIC(void) MC_init_safety_stateful(void);
33 XBT_PUBLIC(void) MC_init_liveness_stateful(xbt_automaton_t a);
34 XBT_PUBLIC(void) MC_init_liveness_stateless(xbt_automaton_t a, char *prgm);
35 XBT_PUBLIC(void) MC_exit(void);
36 XBT_PUBLIC(void) MC_exit_liveness(void);
37 XBT_PUBLIC(void) MC_assert(int);
38 XBT_PUBLIC(void) MC_assert_stateful(int);
39 XBT_PUBLIC(void) MC_assert_pair_stateful(int);
40 XBT_PUBLIC(void) MC_assert_pair_stateless(int);
41 XBT_PUBLIC(void) MC_modelcheck(void);
42 XBT_PUBLIC(void) MC_modelcheck_stateful(void);
43 XBT_PUBLIC(void) MC_modelcheck_liveness_stateful(xbt_automaton_t a);
44 XBT_PUBLIC(void) MC_modelcheck_liveness_stateless(xbt_automaton_t a, char *prgm);
45 XBT_PUBLIC(int) MC_random(int, int);
46 XBT_PUBLIC(void) MC_process_clock_add(smx_process_t, double);
47 XBT_PUBLIC(double) MC_process_clock_get(smx_process_t);
48
49 /********************************* Memory *************************************/
50 XBT_PUBLIC(void) MC_memory_init(void);  /* Initialize the memory subsystem */
51 XBT_PUBLIC(void) MC_memory_exit(void);
52
53 SG_END_DECL()
54
55 #endif                          /* _MC_MC_H */