1 /* simgrid/modelchecker.h - Formal Verification made possible in SimGrid */
3 /* Copyright (c) 2008-2012. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include <simgrid_config.h> /* HAVE_MC ? */
11 #ifndef SIMGRID_MODELCHECKER_H
12 #define SIMGRID_MODELCHECKER_H
16 extern int _surf_do_model_check;
17 #define MC_IS_ENABLED _surf_do_model_check
19 XBT_PUBLIC(void) MC_assert(int);
20 XBT_PUBLIC(void) MC_assert_stateful(int);
21 XBT_PUBLIC(int) MC_random(int min, int max);
22 XBT_PUBLIC(void) MC_diff(void);
26 #define MC_IS_ENABLED 0
27 #define MC_assert(a) xbt_assert(a)
28 #define MC_assert_stateful(a) xbt_assert(a)
34 #endif /* SIMGRID_MODELCHECKER_H */