X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6cecccd687a1340319b003a760f3538eab5f6915..c312320c2e43da49b536c51a9d19b6ad6d66e489:/src/mc/mc_config.hpp diff --git a/src/mc/mc_config.hpp b/src/mc/mc_config.hpp index eaf2e20984..b544580d3c 100644 --- a/src/mc/mc_config.hpp +++ b/src/mc/mc_config.hpp @@ -10,9 +10,12 @@ /********************************** Configuration of MC **************************************/ namespace simgrid::mc { -bool cfg_use_DPOR(); // "model-check/reduction" == "DPOR" -extern XBT_PUBLIC bool cfg_do_model_check; -}; +XBT_DECLARE_ENUM_CLASS(ReductionMode, none, dpor, sdpor, odpor); +XBT_DECLARE_ENUM_CLASS(ModelCheckingMode, NONE, APP_SIDE, CHECKER_SIDE, REPLAY); +ReductionMode get_model_checking_reduction(); // "model-check/reduction" == "DPOR" +XBT_PUBLIC ModelCheckingMode get_model_checking_mode(); +XBT_PUBLIC void set_model_checking_mode(ModelCheckingMode mode); +}; // namespace simgrid::mc extern XBT_PUBLIC simgrid::config::Flag _sg_mc_buffering; extern XBT_PRIVATE simgrid::config::Flag _sg_mc_checkpoint; @@ -26,5 +29,6 @@ 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