Skip to content
GitLab
Menu
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
0792fb74
Commit
0792fb74
authored
Mar 04, 2011
by
Alexandre Duret-Lutz
Browse files
* wrap/python/ajax/spot.in: Use the degeneralized automaton if
available while computing the emptiness check.
parent
de4166f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
0792fb74
2011-03-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* wrap/python/ajax/spot.in: Use the degeneralized automaton if
available while computing the emptiness check.
2011-03-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
2011-03-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Speedup build_result() called by minimize_dfa().
Speedup build_result() called by minimize_dfa().
...
...
wrap/python/ajax/spot.in
View file @
0792fb74
...
@@ -347,22 +347,22 @@ if output_type == 'r':
...
@@ -347,22 +347,22 @@ if output_type == 'r':
print_acc_run
=
True
print_acc_run
=
True
elif
s
==
'd'
:
elif
s
==
'd'
:
draw_acc_run
=
True
draw_acc_run
=
True
err
=
""
err
=
""
opt
=
(
form
.
getfirst
(
'ec'
,
'Cou99'
)
+
"("
+
opt
=
(
form
.
getfirst
(
'ec'
,
'Cou99'
)
+
"("
+
form
.
getfirst
(
'eo'
,
''
)
+
")"
)
form
.
getfirst
(
'eo'
,
''
)
+
")"
)
eci
,
err
=
spot
.
emptiness_check_instantiator
.
construct
(
opt
)
eci
,
err
=
spot
.
emptiness_check_instantiator
.
construct
(
opt
)
if
not
eci
:
if
not
eci
:
print
(
'<div class="parse-error">Cannot parse "'
+
opt
+
'" near "'
print
(
'<div class="parse-error">Cannot parse "'
+
opt
+
'" near "'
+
err
+
'".</div>'
)
+
err
+
'".</div>'
)
else
:
else
:
ec_a
=
0
ec_a
=
0
n_acc
=
degen
.
number_of_acceptance_conditions
()
n_acc
=
degen
.
number_of_acceptance_conditions
()
n_max
=
eci
.
max_acceptance_conditions
()
n_max
=
eci
.
max_acceptance_conditions
()
if
(
n_acc
<=
n_max
):
if
(
n_acc
<=
n_max
):
ec_a
=
automato
n
ec_a
=
dege
n
else
:
else
:
print
(
'<div class="ec-error">Cannot run '
+
opt
print
(
'<div class="ec-error">Cannot run '
+
opt
+
' on automata with more than '
+
str
(
n_max
)
+
' on automata with more than '
+
str
(
n_max
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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