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
Make sure that we never have a 0 transition at the end of the stack
[simgrid.git]
/
src
/
mc
/
explo
/
LivenessChecker.cpp
diff --git
a/src/mc/explo/LivenessChecker.cpp
b/src/mc/explo/LivenessChecker.cpp
index
071c1e4
..
1cd4388
100644
(file)
--- a/
src/mc/explo/LivenessChecker.cpp
+++ b/
src/mc/explo/LivenessChecker.cpp
@@
-289,7
+289,8
@@
std::vector<std::string> LivenessChecker::get_textual_trace() // override
{
std::vector<std::string> trace;
for (std::shared_ptr<Pair> const& pair : exploration_stack_)
- trace.push_back(pair->app_state_->get_transition()->to_string());
+ if (pair->app_state_->get_transition() != nullptr)
+ trace.push_back(pair->app_state_->get_transition()->to_string());
return trace;
}