org->aut,
+ /// but is no longer than \a org.
SPOT_API twa_run_ptr
- reduce_run(const const_twa_ptr& a, const const_twa_run_ptr& org);
+ reduce_run(const const_twa_run_ptr& org);
}
diff --git a/src/twaalgos/replayrun.cc b/src/twaalgos/replayrun.cc
index c9fcdc8a2..f330ded0e 100644
--- a/src/twaalgos/replayrun.cc
+++ b/src/twaalgos/replayrun.cc
@@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
-// Copyright (C) 2011, 2013, 2014 Laboratoire de Recherche et
+// Copyright (C) 2011, 2013, 2014, 2015 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
@@ -44,9 +44,10 @@ namespace spot
}
bool
- replay_twa_run(std::ostream& os, const const_twa_ptr& a,
+ replay_twa_run(std::ostream& os,
const const_twa_run_ptr& run, bool debug)
{
+ auto& a = run->aut;
const state* s = a->get_init_state();
int serial = 1;
const twa_run::steps* l;
diff --git a/src/twaalgos/replayrun.hh b/src/twaalgos/replayrun.hh
index 3fc86e646..b95ca342a 100644
--- a/src/twaalgos/replayrun.hh
+++ b/src/twaalgos/replayrun.hh
@@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
-// Copyright (C) 2013, 2014 Laboratoire de Recherche et Developpement
+// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et Developpement
// de l'Epita (LRDE).
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
@@ -34,21 +34,19 @@ namespace spot
/// \ingroup twa_run
/// \brief Replay a twa_run on a tgba.
///
- /// This is similar to print_twa_run(), except that the run is
+ /// This is similar to os << run;, except that the run is
/// actually replayed on the automaton while it is printed. Doing
/// so makes it possible to display transition annotations (returned
- /// by spot::tgba::transition_annotation()). The output will stop
+ /// by spot::twa::transition_annotation()). The output will stop
/// if the run cannot be completed.
///
/// \param run the run to replay
- /// \param a the automata on which to replay that run
/// \param os the stream on which the replay should be traced
/// \param debug if set the output will be more verbose and extra
/// debugging informations will be output on failure
/// \return true iff the run could be completed
SPOT_API bool
replay_twa_run(std::ostream& os,
- const const_twa_ptr& a,
- const const_twa_run_ptr& run,
- bool debug = false);
+ const const_twa_run_ptr& run,
+ bool debug = false);
}
diff --git a/src/twaalgos/se05.cc b/src/twaalgos/se05.cc
index 13f7841e8..b90182d3e 100644
--- a/src/twaalgos/se05.cc
+++ b/src/twaalgos/se05.cc
@@ -339,7 +339,7 @@ namespace spot
assert(!ms_->st_blue.empty());
assert(!ms_->st_red.empty());
- auto run = std::make_shared