Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
5749fe6f
Commit
5749fe6f
authored
Feb 27, 2015
by
Alexandre Duret-Lutz
Browse files
* src/tgbaalgos/isweakscc.cc (is_inherently_weak_scc): Allow Fin.
parent
b396f373
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tgbaalgos/isweakscc.cc
View file @
5749fe6f
...
...
@@ -67,12 +67,8 @@ namespace spot
bool
is_inherently_weak_scc
(
scc_info
&
map
,
unsigned
scc
)
{
if
(
!
map
.
get_aut
()
->
acc
().
uses_fin_acceptance
())
throw
std
::
runtime_error
(
"is_inherently_weak_scc() cannot work with Fin acceptance"
);
// If no cycle is accepting, the SCC is weak.
if
(
!
map
.
is_accepting_scc
(
scc
))
// Weak SCCs are inherently weak.
if
(
is_weak_scc
(
map
,
scc
))
return
true
;
// If the SCC is accepting, but one cycle is not, the SCC is not
// weak.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment