X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..8f3beaedaaa72be7f2af8e3a1f72552b5e3b78f3:/src/mc/mc_config.hpp diff --git a/src/mc/mc_config.hpp b/src/mc/mc_config.hpp index e5232f7b25..64acccc142 100644 --- a/src/mc/mc_config.hpp +++ b/src/mc/mc_config.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -9,7 +9,13 @@ #include /********************************** Configuration of MC **************************************/ -extern "C" XBT_PUBLIC int _sg_do_model_check; +namespace simgrid::mc { +bool cfg_use_DPOR(); // "model-check/reduction" == "DPOR" +XBT_DECLARE_ENUM_CLASS(ModelCheckingMode, NONE, APP_SIDE, CHECKER_SIDE, REPLAY); +XBT_PUBLIC ModelCheckingMode get_model_checking_mode(); +XBT_PUBLIC void set_model_checking_mode(ModelCheckingMode mode); +}; + extern XBT_PUBLIC simgrid::config::Flag _sg_mc_buffering; extern XBT_PRIVATE simgrid::config::Flag _sg_mc_checkpoint; extern XBT_PUBLIC simgrid::config::Flag _sg_mc_property_file; @@ -21,5 +27,7 @@ extern XBT_PRIVATE simgrid::config::Flag _sg_mc_max_depth; extern "C" XBT_PUBLIC int _sg_mc_max_visited_states; extern XBT_PRIVATE simgrid::config::Flag _sg_mc_dot_output_file; extern XBT_PRIVATE simgrid::config::Flag _sg_mc_termination; +extern XBT_PUBLIC simgrid::config::Flag _sg_mc_sleep_set; +extern XBT_PUBLIC simgrid::config::Flag _sg_mc_strategy; #endif