1 /* Copyright (c) 2008-2012. Da SimGrid Team. All rights reserved. */
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. */
12 #include "xbt/function_types.h"
13 #include "mc/datatypes.h"
14 #include "simgrid/simix.h"
15 #include "simgrid/modelchecker.h" /* our public interface (and definition of HAVE_MC) */
16 #include "xbt/automaton.h"
18 #define STD_HEAP_SIZE 20480000 /* Maximum size of the system's heap */
22 extern char*_surf_mc_property_file; /* fixme: better location? */
24 /********************************* Global *************************************/
25 void _mc_cfg_cb_reduce(const char *name, int pos);
26 void _mc_cfg_cb_checkpoint(const char *name, int pos);
27 void _mc_cfg_cb_property(const char *name, int pos);
29 XBT_PUBLIC(void) MC_do_the_modelcheck_for_real(void);
31 XBT_PUBLIC(void) MC_init_safety(void);
32 XBT_PUBLIC(void) MC_exit(void);
33 XBT_PUBLIC(void) MC_exit_liveness(void);
34 XBT_PUBLIC(void) MC_modelcheck(void);
35 XBT_PUBLIC(void) MC_modelcheck_liveness(void);
36 XBT_PUBLIC(void) MC_process_clock_add(smx_process_t, double);
37 XBT_PUBLIC(double) MC_process_clock_get(smx_process_t);
38 void MC_automaton_load(const char *file);
40 void MC_ignore_init(void);
41 XBT_PUBLIC(void) MC_ignore(void *address, size_t size);
43 /********************************* Memory *************************************/
44 XBT_PUBLIC(void) MC_memory_init(void); /* Initialize the memory subsystem */
45 XBT_PUBLIC(void) MC_memory_exit(void);
47 /********************************* Snapshot comparison test *************************************/
48 void MC_test_snapshot_comparison(void);
50 /* Trigger for state equality detection (check potential cycle in application) */
51 void MC_compare(void);