Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : add size of stack in parameter of the function MC_new_stack_area
[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_mc_stack_ignore_variable{
29   char *var_name;
30   char *frame;
31 }s_mc_stack_ignore_variable_t, *mc_stack_ignore_variable_t;
32
33 typedef struct s_stack_region{
34   void *address;
35   char *process_name;
36   void *context;
37   size_t size;
38 }s_stack_region_t, *stack_region_t;
39
40 typedef struct s_heap_equality{
41   void *address1;
42   void *address2;
43 }s_heap_equality_t, *heap_equality_t;
44
45 void heap_equality_free_voidp(void *e);
46 void stack_region_free_voidp(void *s);
47
48 SG_END_DECL()
49 #endif                          /* _MC_MC_H */