cgi: force transition-based acceptance output for TGBA
* wrap/python/ajax/spotcgi.in: Force transition-based acceptance in the output when a TGBA is required, even if the WDBA-minimization return a BA.
This commit is contained in:
parent
254910ed7c
commit
7efe8c1c6c
1 changed files with 5 additions and 3 deletions
|
|
@ -295,7 +295,7 @@ def render_automaton(automaton, dont_run_dot):
|
||||||
elif hasattr(automaton, 'get_ta'): # TGTA
|
elif hasattr(automaton, 'get_ta'): # TGTA
|
||||||
spot.print_dot(dotsrc, automaton.get_ta())
|
spot.print_dot(dotsrc, automaton.get_ta())
|
||||||
else: # TGBA
|
else: # TGBA
|
||||||
spot.print_dot(dotsrc, automaton)
|
spot.print_dot(dotsrc, automaton, '.t' if buchi_type == 't' else '.')
|
||||||
render_dot_maybe(dotsrc.str(), dont_run_dot)
|
render_dot_maybe(dotsrc.str(), dont_run_dot)
|
||||||
|
|
||||||
def render_formula(f):
|
def render_formula(f):
|
||||||
|
|
@ -332,7 +332,8 @@ def print_stats(automaton, detinfo = False, ta = False):
|
||||||
's' if stats.sub_transitions > 1 else ''))
|
's' if stats.sub_transitions > 1 else ''))
|
||||||
if hasattr(automaton, 'get_acceptance'):
|
if hasattr(automaton, 'get_acceptance'):
|
||||||
acc = automaton.get_acceptance()
|
acc = automaton.get_acceptance()
|
||||||
if automaton.is_sba() and automaton.acc().is_buchi():
|
if (automaton.is_sba() and automaton.acc().is_buchi() and
|
||||||
|
buchi_type != 't'):
|
||||||
unbufprint(", acceptance condition: Büchi")
|
unbufprint(", acceptance condition: Büchi")
|
||||||
else:
|
else:
|
||||||
unbufprint(", acceptance condition: " + str(acc))
|
unbufprint(", acceptance condition: " + str(acc))
|
||||||
|
|
@ -615,6 +616,8 @@ else:
|
||||||
unbufprint('''<div class="error">unsupported translator</div>''')
|
unbufprint('''<div class="error">unsupported translator</div>''')
|
||||||
finish()
|
finish()
|
||||||
|
|
||||||
|
buchi_type = None
|
||||||
|
|
||||||
# Monitor output
|
# Monitor output
|
||||||
if output_type == 'm':
|
if output_type == 'm':
|
||||||
issba = True
|
issba = True
|
||||||
|
|
@ -652,7 +655,6 @@ for s in form.getlist('as'):
|
||||||
iterated_simul = True
|
iterated_simul = True
|
||||||
|
|
||||||
ta_type = None
|
ta_type = None
|
||||||
buchi_type = None
|
|
||||||
|
|
||||||
if output_type == 'a':
|
if output_type == 'a':
|
||||||
buchi_type = form.getfirst('af', 't')
|
buchi_type = form.getfirst('af', 't')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue