Fix acceptance check in scc_map: trivial SCCs are not accepting.

Also compute useless SCCs.

* src/tgbaalgos/scc.cc (scc_map::scc::trivial): New field.
(scc_stats::useless_scc_map): New field.
* src/tgbaalgos/scc.cc (scc_map::build_map): Mark SCCs that are
not trivial.
(scc_map::accepting): Always return false for trivial SCC.
(build_scc_stats): Fill in useless_scc_map.
This commit is contained in:
Alexandre Duret-Lutz 2009-11-18 15:18:40 +01:00
parent ac5dda1032
commit 99981153e6
3 changed files with 27 additions and 1 deletions

View file

@ -1,3 +1,15 @@
2009-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix acceptance check in scc_map: trivial SCCs are not accepting.
Also compute useless SCCs.
* src/tgbaalgos/scc.cc (scc_map::scc::trivial): New field.
(scc_stats::useless_scc_map): New field.
* src/tgbaalgos/scc.cc (scc_map::build_map): Mark SCCs that are
not trivial.
(scc_map::accepting): Always return false for trivial SCC.
(build_scc_stats): Fill in useless_scc_map.
2009-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Make it easy to filter states while iterating over an automaton.