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
5841af02
Commit
5841af02
authored
Nov 30, 2016
by
Alexandre Duret-Lutz
Browse files
sccinfo: simplify initial code
* spot/twaalgos/sccinfo.cc: We do not need to care about 0 states anymore.
parent
5ca1281e
Changes
1
Hide whitespace changes
Inline
Side-by-side
spot/twaalgos/sccinfo.cc
View file @
5841af02
...
...
@@ -73,17 +73,13 @@ namespace spot
// but STATE should not because
// it is used as a key in H.
// Setup depth-first search from the initial state.
if
(
n
>
0
)
{
unsigned
init
=
aut
->
get_init_state_number
();
num_
=
-
1
;
h_
[
init
]
=
num_
;
root_
.
emplace_back
(
num_
,
0U
);
todo_
.
emplace
(
init
,
aut
->
out
(
init
).
begin
());
live
.
emplace_back
(
init
);
}
unsigned
init
=
aut
->
get_init_state_number
();
num_
=
-
1
;
h_
[
init
]
=
num_
;
root_
.
emplace_back
(
num_
,
0U
);
todo_
.
emplace
(
init
,
aut
->
out
(
init
).
begin
());
live
.
emplace_back
(
init
);
while
(
!
todo_
.
empty
())
{
...
...
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