Speedup is_weak_scc() if all transitions in the SCC are accepting.
* src/tgbaalgos/isweakscc.cc, src/tgbaalgos/isweakscc.hh: Speedup when all transitions are accepting.
This commit is contained in:
parent
d228784c39
commit
3c17c418a2
2 changed files with 9 additions and 3 deletions
|
|
@ -35,9 +35,11 @@ namespace spot
|
|||
///
|
||||
/// The scc_map \a map should have been built already. The absence
|
||||
/// of accepting cycle is easy to check (the scc_map can tell
|
||||
/// 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).
|
||||
/// whether the SCC is non-accepting already). Similarly, an SCC in
|
||||
/// which all transitions belong to all acceptance sets is
|
||||
/// necessarily weak.
|
||||
/// For other accepting SCCs, this function enumerates all cycles in
|
||||
/// the given SCC (it stops if it find a non-accepting cycle).
|
||||
bool is_weak_scc(scc_map& map, unsigned scc);
|
||||
|
||||
/// @}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue