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
a375972f
Commit
a375972f
authored
May 28, 2009
by
Alexandre Duret-Lutz
Browse files
* src/tgbaalgos/scc.cc (dump_scc_dot): Use a bit vector instead of
a map to track visited SCC since they are sequentially numbered.
parent
15b3b9e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
a375972f
2009-05-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbaalgos/scc.cc (dump_scc_dot): Use a bit vector instead of
a map to track visited SCC since they are sequentially numbered.
2009-05-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Number states using negative values and SCCs using nonnegative
...
...
src/tgbaalgos/scc.cc
View file @
a375972f
...
...
@@ -360,9 +360,8 @@ namespace spot
int
start
=
m
.
initial
();
out
<<
" i -> "
<<
start
<<
std
::
endl
;
typedef
std
::
set
<
int
>
seen_map
;
seen_map
seen
;
seen
.
insert
(
start
);
std
::
vector
<
bool
>
seen
(
m
.
scc_count
());
seen
[
start
]
=
true
;
std
::
queue
<
int
>
q
;
q
.
push
(
start
);
...
...
@@ -412,11 +411,10 @@ namespace spot
bdd_print_formula
(
out
,
m
.
get_aut
()
->
get_dict
(),
label
);
out
<<
"
\"
]"
<<
std
::
endl
;
seen_map
::
const_iterator
it
=
seen
.
find
(
dest
);
if
(
it
!=
seen
.
end
())
if
(
seen
[
dest
])
continue
;
seen
.
insert
(
dest
)
;
seen
[
dest
]
=
true
;
q
.
push
(
dest
);
}
}
...
...
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