X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b1ee8633a381a8704b7cb0b7c9c47d3e24d5f7a..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/src/mc/explo/DFSExplorer.hpp diff --git a/src/mc/explo/DFSExplorer.hpp b/src/mc/explo/DFSExplorer.hpp index 161781bfc1..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(RemoteApp& remote_app); + 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_;