remove twa::transition_annotation

Fixes #149.

* spot/twa/twa.hh, spot/twa/twa.cc, spot/kripke/fairkripke.hh,
spot/kripke/kripke.hh, spot/twa/twaproduct.cc, spot/twa/twaproduct.hh:
Remove this method.
* spot/twaalgos/emptiness.cc, spot/twaalgos/emptiness.hh,
tests/ltsmin/finite.test: Adjust.
* NEWS: Mention the removal.
This commit is contained in:
Alexandre Duret-Lutz 2016-02-15 10:27:37 +01:00
parent e1f5eb1fd6
commit 39b95474f8
10 changed files with 17 additions and 80 deletions

View file

@ -434,20 +434,6 @@ namespace spot
return res;
}
namespace
{
static void
print_annotation(std::ostream& os,
const const_twa_ptr& a,
const twa_succ_iterator* i)
{
std::string s = a->transition_annotation(i);
if (s == "")
return;
os << ' ' << s;
}
}
bool twa_run::replay(std::ostream& os, bool debug) const
{
const state* s = aut->get_init_state();
@ -579,9 +565,7 @@ namespace spot
do
{
const state* s2 = j->dst();
os << " *";
print_annotation(os, aut, j);
os << " label="
os << " * label="
<< bdd_format_formula(aut->get_dict(),
j->cond())
<< " and acc="
@ -598,9 +582,7 @@ namespace spot
}
if (debug)
{
os << "transition";
print_annotation(os, aut, j);
os << " with label="
os << "transition with label="
<< bdd_format_formula(aut->get_dict(), label)
<< " and acc=" << aut->acc().format(acc)
<< std::endl;
@ -608,7 +590,6 @@ namespace spot
else
{
os << " | ";
print_annotation(os, aut, j);
bdd_print_formula(os, aut->get_dict(), label);
os << '\t';
aut->acc().format(acc);

View file

@ -302,9 +302,7 @@ namespace spot
///
/// This is similar to <code>os << run;</code>, 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::twa::transition_annotation()). The output
/// will stop if the run cannot be completed.
/// The output will stop if the run cannot be completed.
///
/// \param os the stream on which the replay should be traced
/// \param debug if set the output will be more verbose and extra