-/* Copyright (c) 2008-2020. The SimGrid Team.
+/* Copyright (c) 2008-2022. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
namespace mc {
class XBT_PRIVATE SafetyChecker : public Checker {
- simgrid::mc::ReductionMode reductionMode_ = simgrid::mc::ReductionMode::unset;
+ ReductionMode reductionMode_ = ReductionMode::unset;
+ long backtrack_count_ = 0;
+
public:
- explicit SafetyChecker(Session& session);
- ~SafetyChecker() = default;
+ explicit SafetyChecker(Session* session);
void run() override;
RecordTrace get_record_trace() override;
std::vector<std::string> get_textual_trace() override;
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_;
- unsigned long expanded_states_count_ = 0;
+ std::list<std::unique_ptr<State>> stack_;
+ VisitedStates visited_states_;
+ std::unique_ptr<VisitedState> visited_state_;
};
-}
-}
+} // namespace mc
+} // namespace simgrid
#endif