decompose_scc: factor autfilt into decompose_acc_scc
Put what is done by `autfilt` in a new function, `decompose_acc_scc`. * bin/autfilt.cc: Move code from here... * spot/twaalgos/strength.cc, spot/twaalgos/strength.hh: To here. * tests/python/decompose_scc.py: Test python binding.
This commit is contained in:
parent
c0eeea2c5f
commit
5d143cc1f8
4 changed files with 79 additions and 14 deletions
|
|
@ -1197,20 +1197,7 @@ namespace
|
|||
|
||||
if (opt_decompose_scc != -1)
|
||||
{
|
||||
spot::scc_info si(aut);
|
||||
unsigned scc_num = 0;
|
||||
|
||||
for (; scc_num < si.scc_count(); ++scc_num)
|
||||
{
|
||||
if (si.is_accepting_scc(scc_num))
|
||||
{
|
||||
if (!opt_decompose_scc)
|
||||
break;
|
||||
--opt_decompose_scc;
|
||||
}
|
||||
}
|
||||
|
||||
aut = decompose_scc(si, scc_num);
|
||||
aut = decompose_acc_scc(aut, opt_decompose_scc);
|
||||
if (!aut)
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue