Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : init var
[simgrid.git] / src / include / mc / datatypes.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_DATATYPE_H
7 #define MC_DATATYPE_H
8 #include "xbt/misc.h"
9 #include "xbt/swag.h"
10 #include "xbt/fifo.h"
11
12 SG_BEGIN_DECL()
13
14 /******************************* Transitions **********************************/
15
16 typedef struct s_mc_transition *mc_transition_t;
17
18
19 /*********** Structures for snapshot comparison **************************/
20
21 typedef struct s_mc_heap_ignore_region{
22   int block;
23   int fragment;
24   void *address;
25   size_t size;
26 }s_mc_heap_ignore_region_t, *mc_heap_ignore_region_t;
27
28 typedef struct s_stack_region{
29   void *address;
30   char *process_name;
31   void *context;
32   size_t size;
33   int block;
34 }s_stack_region_t, *stack_region_t;
35
36 void heap_ignore_region_free(mc_heap_ignore_region_t r);
37 void heap_ignore_region_free_voidp(void *r);
38
39 /************ DWARF structures *************/
40
41 typedef enum{
42   e_dw_base_type = 0,
43   e_dw_enumeration_type,
44   e_dw_enumerator,
45   e_dw_typedef,
46   e_dw_const_type,
47   e_dw_array_type,
48   e_dw_pointer_type,
49   e_dw_structure_type,
50   e_dw_union_type,
51   e_dw_subroutine_type,
52   e_dw_volatile_type
53 }e_dw_type_type;
54
55 typedef struct s_dw_type{
56   e_dw_type_type type;
57   void *id;
58   char *name;
59   int size;
60   char *dw_type_id;
61   xbt_dynar_t members; /* if DW_TAG_structure_type */
62   int is_pointer_type;
63   int offset;
64 }s_dw_type_t, *dw_type_t;
65
66 char* get_type_description(xbt_dict_t types, char *type_name);
67
68 SG_END_DECL()
69 #endif                          /* _MC_MC_H */