#include "src/mc/Client.hpp"
#include "src/mc/CommunicationDeterminismChecker.hpp"
#include "src/mc/mc_exit.h"
+#include "src/mc/VisitedState.hpp"
using simgrid::mc::remote;
#include "src/mc/mc_exit.h"
#include "src/mc/Checker.hpp"
#include "src/mc/SafetyChecker.hpp"
+#include "src/mc/VisitedState.hpp"
#include "src/xbt/mmalloc/mmprivate.h"
#include "src/mc/mc_private.h"
#include "src/mc/Process.hpp"
#include "src/mc/mc_smx.h"
+#include "src/mc/VisitedState.hpp"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_visited, mc,
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_VisitedState, mc,
"Logging specific to state equaity detection mechanisms");
namespace simgrid {
--- /dev/null
+/* Copyright (c) 2007-2016. 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. */
+
+#ifndef SIMGRID_MC_VISITED_STATE_HPP
+#define SIMGRID_MC_VISITED_STATE_HPP
+
+#include <cstddef>
+
+#include <memory>
+
+#include "src/mc/mc_snapshot.h"
+
+namespace simgrid {
+namespace mc {
+
+struct XBT_PRIVATE VisitedState {
+ std::shared_ptr<simgrid::mc::Snapshot> system_state = nullptr;
+ std::size_t heap_bytes_used = 0;
+ int nb_processes = 0;
+ int num = 0;
+ int other_num = 0; // dot_output for
+
+ VisitedState();
+ ~VisitedState();
+};
+
+extern XBT_PRIVATE std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
+XBT_PRIVATE std::unique_ptr<simgrid::mc::VisitedState> is_visited_state(simgrid::mc::State* graph_state, bool compare_snpashots);
+
+}
+}
+
+#endif
extern XBT_PRIVATE simgrid::mc::ReductionMode reduction_mode;
-struct XBT_PRIVATE VisitedState {
- std::shared_ptr<simgrid::mc::Snapshot> system_state = nullptr;
- size_t heap_bytes_used = 0;
- int nb_processes = 0;
- int num = 0;
- int other_num = 0; // dot_output for
-
- VisitedState();
- ~VisitedState();
-};
-
-extern XBT_PRIVATE std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
-XBT_PRIVATE std::unique_ptr<simgrid::mc::VisitedState> is_visited_state(simgrid::mc::State* graph_state, bool compare_snpashots);
-
}
}
XBT_LOG_CONNECT(mc_page_snapshot);
XBT_LOG_CONNECT(mc_request);
XBT_LOG_CONNECT(mc_safety);
- XBT_LOG_CONNECT(mc_visited);
+ XBT_LOG_CONNECT(mc_VisitedState);
XBT_LOG_CONNECT(mc_client);
XBT_LOG_CONNECT(mc_client_api);
XBT_LOG_CONNECT(mc_comm_pattern);
src/mc/mc_safety.h
src/mc/mc_state.h
src/mc/mc_state.cpp
- src/mc/mc_visited.cpp
+ src/mc/VisitedState.cpp
+ src/mc/VisitedState.hpp
src/mc/mc_client_api.cpp
src/mc/mc_protocol.h
src/mc/mc_protocol.cpp