X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b9e565aa02922f38f81c9c48c4161962170a241..310175b532dcdbb84e22c345dafc5a5e8ce599b4:/src/mc/explo/DFSExplorer.hpp diff --git a/src/mc/explo/DFSExplorer.hpp b/src/mc/explo/DFSExplorer.hpp index 1434add869..0a0d51e53d 100644 --- a/src/mc/explo/DFSExplorer.hpp +++ b/src/mc/explo/DFSExplorer.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-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. */ @@ -8,7 +8,6 @@ #include "src/mc/VisitedState.hpp" #include "src/mc/explo/Exploration.hpp" -#include "src/mc/mc_safety.hpp" #include #include @@ -18,7 +17,9 @@ namespace simgrid::mc { class XBT_PRIVATE DFSExplorer : public Exploration { - ReductionMode reductionMode_ = ReductionMode::unset; + XBT_DECLARE_ENUM_CLASS(ReductionMode, none, dpor); + + ReductionMode reduction_mode_; long backtrack_count_ = 0; static xbt::signal on_exploration_start_signal; @@ -34,7 +35,7 @@ class XBT_PRIVATE DFSExplorer : public Exploration { static xbt::signal on_log_state_signal; public: - explicit DFSExplorer(const std::vector& args); + explicit DFSExplorer(const std::vector& args, bool with_dpor); void run() override; RecordTrace get_record_trace() override; std::vector get_textual_trace() override; @@ -82,7 +83,6 @@ public: private: void check_non_termination(const State* current_state); void backtrack(); - void restore_state(); /** Stack representing the position in the exploration graph */ std::list> stack_;