]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/modelchecker.h
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use cat+here document, instead of non-portable echo -e.
[simgrid.git] / include / simgrid / modelchecker.h
index 2752cbd1ffa1b01622bb8f28272274a16f3c2e65..d5f8bca7001e30afc5a040ca91edecec7581afd8 100644 (file)
 
 #ifdef HAVE_MC
 
-extern int _surf_do_model_check;
-#define MC_IS_ENABLED _surf_do_model_check
+extern int _surf_do_model_check; /* please don't use directly: we inline MC_is_active, but that's what you should use */
+
+#define MC_is_active() _surf_do_model_check
 
 XBT_PUBLIC(void) MC_assert(int);
 XBT_PUBLIC(int) MC_random(int min, int max);
-XBT_PUBLIC(void) MC_diff(void);
-XBT_PUBLIC(xbt_automaton_t) MC_create_automaton(const char *file);
+XBT_PUBLIC(void) MC_automaton_new_propositional_symbol(const char* id, void* fct);
+XBT_PUBLIC(void *) MC_snapshot(void);
+XBT_PUBLIC(int) MC_compare_snapshots(void *s1, void *s2);
 
 #else
 
-#define MC_IS_ENABLED 0
 #define MC_assert(a) xbt_assert(a)
+#define MC_is_active() 0
 
 #endif