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
Factorize more code between DFSExplo and LivenessExplo, and UDPOR
[simgrid.git]
/
src
/
mc
/
explo
/
LivenessChecker.cpp
diff --git
a/src/mc/explo/LivenessChecker.cpp
b/src/mc/explo/LivenessChecker.cpp
index
e254683
..
3d60ef9
100644
(file)
--- a/
src/mc/explo/LivenessChecker.cpp
+++ b/
src/mc/explo/LivenessChecker.cpp
@@
-258,7
+258,8
@@
RecordTrace LivenessChecker::get_record_trace() // override
{
RecordTrace res;
for (std::shared_ptr<Pair> const& pair : exploration_stack_)
- res.push_back(pair->app_state_->get_transition_out().get());
+ if (pair->app_state_->get_transition_out() != nullptr)
+ res.push_back(pair->app_state_->get_transition_out().get());
return res;
}
@@
-285,16
+286,6
@@
void LivenessChecker::show_acceptance_cycle(std::size_t depth)
XBT_INFO("Counter-example depth: %zu", depth);
}
-std::vector<std::string> LivenessChecker::get_textual_trace() // override
-{
- std::vector<std::string> trace;
- for (std::shared_ptr<Pair> const& pair : exploration_stack_)
- if (pair->app_state_->get_transition_out() != nullptr)
- trace.push_back(pair->app_state_->get_transition_out()->to_string());
-
- return trace;
-}
-
std::shared_ptr<Pair> LivenessChecker::create_pair(const Pair* current_pair, xbt_automaton_state_t state,
std::shared_ptr<const std::vector<int>> propositions)
{