Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
namespacing cosmetics
[simgrid.git] / src / mc / checker / SafetyChecker.hpp
index 1377934919fb95534a0268b5a3726410b2fa9bea..0167dda2333508d3d86c5c3dd5e0ea8bdb545088 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008-2019. The SimGrid Team.
+/* Copyright (c) 2008-2020. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -20,7 +20,8 @@ namespace simgrid {
 namespace mc {
 
 class XBT_PRIVATE SafetyChecker : public Checker {
-  simgrid::mc::ReductionMode reductionMode_ = simgrid::mc::ReductionMode::unset;
+  ReductionMode reductionMode_ = ReductionMode::unset;
+
 public:
   explicit SafetyChecker(Session& session);
   ~SafetyChecker() = default;
@@ -30,18 +31,18 @@ public:
   void log_state() override;
 
 private:
-  void check_non_termination(simgrid::mc::State* current_state);
+  void check_non_termination(const State* current_state);
   void backtrack();
   void restore_state();
 
   /** Stack representing the position in the exploration graph */
-  std::list<std::unique_ptr<simgrid::mc::State>> stack_;
-  simgrid::mc::VisitedStates visited_states_;
-  std::unique_ptr<simgrid::mc::VisitedState> visited_state_;
+  std::list<std::unique_ptr<State>> stack_;
+  VisitedStates visited_states_;
+  std::unique_ptr<VisitedState> visited_state_;
   unsigned long expanded_states_count_ = 0;
 };
 
-}
-}
+} // namespace mc
+} // namespace simgrid
 
 #endif