Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fja
eval
Commits
d008f682
Commit
d008f682
authored
Apr 02, 2021
by
Vladimír Štill
Browse files
checker: Don't canonise too eagerly
parent
96271653
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/checker.py
View file @
d008f682
...
...
@@ -79,6 +79,7 @@ def check_task(automaton: Union[reg.DFA, reg.NFA], task: str) -> str:
if
task
==
"MIN"
and
not
automaton
.
is_minimal
():
output
=
"DFA není minimální."
if
task
in
{
"CAN"
,
"TOC"
,
"MIC"
}:
canonical
=
automaton
.
is_canonical
()
if
task
==
"CAN"
and
not
canonical
:
output
=
"DFA není kanonický."
...
...
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