Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Modularise header files for MC
[simgrid.git] / src / mc / mc_model_checker.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 #include <simgrid_config.h>
8
9 #ifndef MC_MODEL_CHECKER_H
10 #define MC_MODEL_CHECKER_H
11
12 SG_BEGIN_DECL()
13
14 /** @brief State of the model-checker (global variables for the model checker)
15  *
16  *  Each part of the state of the model chercker represented as a global
17  *  variable prevents some sharing between snapshots and must be ignored.
18  *  By moving as much state as possible in this structure allocated
19  *  on the model-chercker heap, we avoid those issues.
20  */
21 typedef struct s_mc_model_checker {
22   // This is the parent snapshot of the current state:
23   mc_snapshot_t parent_snapshot;
24   mc_pages_store_t pages;
25   int fd_clear_refs;
26   int fd_pagemap;
27   xbt_dynar_t record;
28 } s_mc_model_checker_t, *mc_model_checker_t;
29
30 mc_model_checker_t MC_model_checker_new(void);
31 void MC_model_checker_delete(mc_model_checker_t mc);
32 extern mc_model_checker_t mc_model_checker;
33
34 SG_END_DECL()
35
36 #endif