cgi: Display a message for weak TGBA.

* wrap/python/ajax/spotcgi.in: If a weak BA is output as a TGBA, add a
hint that this is pointless.
This commit is contained in:
Alexandre Duret-Lutz 2015-08-07 10:49:32 +02:00
parent 7efe8c1c6c
commit 33afd9f0e2

View file

@ -310,6 +310,11 @@ def print_stats(automaton, detinfo = False, ta = False):
stats = spot.stats_reachable(automaton)
detinfo = False
else:
if (buchi_type == 't' and automaton.is_inherently_weak() and
automaton.acc().is_buchi()):
unbufprint("Note: this is a weak automaton, using transition-based "
"or generalized acceptance does not bring any benefit."
"</br>")
stats = spot.sub_stats_reachable(automaton)
unbufprint("<p>%d state" % stats.states)
if stats.states > 1: