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

@ -1425,7 +1425,7 @@ main(int argc, char** argv)
{
spot::scc_map m(a);
m.build_map();
spot::enumerate_cycles c(a, m);
spot::enumerate_cycles c(m);
unsigned max = m.scc_count();
for (unsigned n = 0; n < max; ++n)
{
@ -1441,7 +1441,7 @@ main(int argc, char** argv)
unsigned max = m.scc_count();
for (unsigned n = 0; n < max; ++n)
{
bool w = spot::is_weak_scc(a, m, n);
bool w = spot::is_weak_scc(m, n);
std::cout << "SCC #" << n
<< (w ? " is weak" : " is not weak")
<< std::endl;