Don't pass the automaton to enumerate_cycle and is_weak_scc.

The scc_map knows the automaton already.

* src/tgbaalgos/cycles.cc, src/tgbaalgos/cycles.hh,
src/tgbaalgos/isweakscc.cc, src/tgbaalgos/isweakscc.hh: Simplify the
interface.
* src/tgbatest/ltl2tgba.cc: Adjust calls.
This commit is contained in:
Alexandre Duret-Lutz 2012-09-21 14:30:34 +02:00
parent 40de47f159
commit d228784c39
5 changed files with 17 additions and 18 deletions

View file

@ -28,7 +28,7 @@ namespace spot
/// \addtogroup tgba_misc
/// @{
/// \brief Whether the SCC number \a scc in \a aut is weak.
/// \brief Whether the SCC number \a scc in \a map is weak.
///
/// An SCC is weak if either its cycles are all accepting, or they
/// are all non-accepting.
@ -38,7 +38,7 @@ namespace spot
/// whether the SCC is non-accepting already). For the accepting
/// SCCs, this function enumerates all cycles in the given SCC (it
/// stops if it find a non-accepting cycle).
bool is_weak_scc(const tgba* aut, scc_map& map, unsigned scc);
bool is_weak_scc(scc_map& map, unsigned scc);
/// @}
}