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
2d0ac3eb
Commit
2d0ac3eb
authored
May 10, 2012
by
Alexandre Duret-Lutz
Browse files
* src/tgbaalgos/simulation.cc (get_state): Do not lookup the map twice.
parent
ebe2362b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tgbaalgos/simulation.cc
View file @
2d0ac3eb
...
...
@@ -121,24 +121,21 @@ namespace spot
inline
unsigned
get_state
(
const
state
*
s
)
{
if
(
state2int
.
find
(
s
)
==
state2int
.
end
())
map_state_unsigned
::
const_iterator
i
=
state2int
.
find
(
s
);
if
(
i
==
state2int
.
end
())
{
state2int
[
s
]
=
++
current_max
;
i
=
state2int
.
insert
(
std
::
make_pair
(
s
,
++
current_max
)).
first
;
previous_class_
[
out_
->
add_state
(
current_max
)]
=
bddfalse
;
}
return
state2int
[
s
];
return
i
->
second
;
}
void
process_link
(
const
state
*
in_s
,
int
in
,
int
,
const
state
*
out_s
,
int
out
,
int
,
const
tgba_succ_iterator
*
si
)
{
(
void
)
in
;
(
void
)
out
;
int
src
=
get_state
(
in_s
);
int
dst
=
get_state
(
out_s
);
...
...
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