Commit 33afd9f0 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

cgi: Display a message for weak TGBA.

* wrap/python/ajax/ If a weak BA is output as a TGBA, add a
hint that this is pointless.
parent 7efe8c1c
......@@ -310,6 +310,11 @@ def print_stats(automaton, detinfo = False, ta = False):
stats = spot.stats_reachable(automaton)
detinfo = False
if (buchi_type == 't' and automaton.is_inherently_weak() and
unbufprint("Note: this is a weak automaton, using transition-based "
"or generalized acceptance does not bring any benefit."
stats = spot.sub_stats_reachable(automaton)
unbufprint("<p>%d state" % stats.states)
if stats.states > 1:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment