X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bd11e68e17f60d1516d80ce8f8c7319542a15ae6..ac679d5e69b1eb25e3f82be198607593407e7fc5:/src/mc/ModelChecker.hpp diff --git a/src/mc/ModelChecker.hpp b/src/mc/ModelChecker.hpp index 8ef6f807b4..f8b0982139 100644 --- a/src/mc/ModelChecker.hpp +++ b/src/mc/ModelChecker.hpp @@ -3,7 +3,7 @@ /* 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_MODEL_CHECKER_HPP #define SIMGRID_MC_MODEL_CHECKER_HPP @@ -11,10 +11,11 @@ #include #include +#include -#include "mc_forward.h" -#include "mc_process.h" -#include "PageStore.hpp" +#include "mc_forward.hpp" +#include "mc/Process.hpp" +#include "mc/PageStore.hpp" #include "mc_protocol.h" namespace simgrid { @@ -34,6 +35,9 @@ class ModelChecker { // This is the parent snapshot of the current state: PageStore page_store_; Process process_; +public: + mc_snapshot_t parent_snapshot_; + public: ModelChecker(ModelChecker const&) = delete; ModelChecker& operator=(ModelChecker const&) = delete; @@ -48,6 +52,11 @@ public: return page_store_; } const char* get_host_name(const char* name); + + bool is_important_snapshot(Snapshot const& snapshot) const + { + return &snapshot == mc_model_checker->parent_snapshot_; + } }; }