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:
parent
40de47f159
commit
d228784c39
5 changed files with 17 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue