A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
mc
/
ModelChecker.hpp
diff --git
a/src/mc/ModelChecker.hpp
b/src/mc/ModelChecker.hpp
index
8ef6f80
..
f8b0982
100644
(file)
--- 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. */
/* 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
#ifndef SIMGRID_MC_MODEL_CHECKER_HPP
#define SIMGRID_MC_MODEL_CHECKER_HPP
@@
-11,10
+11,11
@@
#include <simgrid_config.h>
#include <xbt/dict.h>
#include <simgrid_config.h>
#include <xbt/dict.h>
+#include <xbt/base.h>
-#include "mc_forward.h"
-#include "mc
_process.h
"
-#include "PageStore.hpp"
+#include "mc_forward.h
pp
"
+#include "mc
/Process.hpp
"
+#include "
mc/
PageStore.hpp"
#include "mc_protocol.h"
namespace simgrid {
#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_;
// 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;
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);
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_;
+ }
};
}
};
}