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
0909c2fe
Commit
0909c2fe
authored
Aug 10, 2014
by
Alexandre Duret-Lutz
Browse files
* src/tgbaalgos/minimize.cc: Get rid of tgba_explicit_number.
parent
74e20a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tgbaalgos/minimize.cc
View file @
0909c2fe
...
...
@@ -223,22 +223,23 @@ namespace spot
(
void
)
reached
;
// Build an automaton representing this loop.
tgba_
explicit_number
loop_a
(
det_a
->
get_dict
());
tgba_
digraph
loop_a
(
det_a
->
get_dict
());
tgba_run
::
steps
::
const_iterator
i
;
int
loop_size
=
loop
.
size
();
loop_a
.
new_states
(
loop_size
);
int
n
;
for
(
n
=
1
,
i
=
loop
.
begin
();
n
<
loop_size
;
++
n
,
++
i
)
{
loop_a
.
create
_transition
(
n
-
1
,
n
)
->
condition
=
i
->
label
;
loop_a
.
new
_transition
(
n
-
1
,
n
,
i
->
label
)
;
i
->
s
->
destroy
();
}
assert
(
i
!=
loop
.
end
());
loop_a
.
create
_transition
(
n
-
1
,
0
)
->
condition
=
i
->
label
;
loop_a
.
new
_transition
(
n
-
1
,
0
,
i
->
label
)
;
i
->
s
->
destroy
();
assert
(
++
i
==
loop
.
end
());
loop_a
.
set_init_state
(
0U
);
const
state
*
loop_a_init
=
loop_a
.
get_init_state
();
assert
(
loop_a
.
get_label
(
loop_a_init
)
==
0
);
// Check if the loop is accepting in the original automaton.
bool
accepting
=
false
;
...
...
@@ -250,7 +251,7 @@ namespace spot
{
// Contrustruct a product between
// LOOP_A, and ORIG_A starting in *IT.
// FIXME: This could be sped up a lot!
tgba
*
p
=
new
tgba_product_init
(
&
loop_a
,
orig_a
,
loop_a_init
,
it
);
emptiness_check
*
ec
=
couvreur99
(
p
);
emptiness_check_result
*
res
=
ec
->
check
();
...
...
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