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
b2c2411b
Commit
b2c2411b
authored
Jan 09, 2015
by
Alexandre Duret-Lutz
Browse files
degen: remove two useless casts
* src/tgbaalgos/degen.cc: Here.
parent
4f6f71fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tgbaalgos/degen.cc
View file @
b2c2411b
...
...
@@ -552,8 +552,7 @@ namespace spot
// If this already a degeneralized digraph, there is nothing we
// can improve.
if
(
a
->
is_sba
())
if
(
auto
d
=
std
::
dynamic_pointer_cast
<
const
tgba_digraph
>
(
a
))
return
std
::
const_pointer_cast
<
tgba_digraph
>
(
d
);
return
std
::
const_pointer_cast
<
tgba_digraph
>
(
a
);
return
degeneralize_aux
<
true
>
(
a
,
use_z_lvl
,
use_cust_acc_orders
,
use_lvl_cache
,
skip_levels
);
...
...
@@ -567,8 +566,7 @@ namespace spot
// If this already a degeneralized digraph, there is nothing we
// can improve.
if
(
a
->
has_single_acc_set
())
if
(
auto
d
=
std
::
dynamic_pointer_cast
<
const
tgba_digraph
>
(
a
))
return
std
::
const_pointer_cast
<
tgba_digraph
>
(
d
);
return
std
::
const_pointer_cast
<
tgba_digraph
>
(
a
);
return
degeneralize_aux
<
false
>
(
a
,
use_z_lvl
,
use_cust_acc_orders
,
use_lvl_cache
,
skip_levels
);
...
...
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