Add the simulation in the Spot web interface.

* wrap/python/ajax/spot.in: Add the simulation.
* wrap/python/ajax/protocol.txt: Add the direct simulation in the
automaton simplifications section.
* wrap/python/spot.i (simulation_new): Create a function which
takes an automaton and a call to the simulation with the good
template parameter.
* wrap/python/ajax/ltl2tgba.html: Add the direct simulation
checkbox.
This commit is contained in:
Thomas Badie 2012-04-15 13:12:29 +02:00
parent 085ea52bf5
commit dfcaed034e
4 changed files with 16 additions and 1 deletions

View file

@ -411,11 +411,14 @@ if output_type == 'm':
# Automaton simplifications
prune_scc = False
wdba_minimize = False
simul_minimize = False
for s in form.getlist('as'):
if s == 'ps':
prune_scc = True
elif s == 'wd':
wdba_minimize = True
elif s == 'rs':
simul_minimize = True
if output_type == 'a':
buchi_type = form.getfirst('af', 't')
@ -447,6 +450,10 @@ if wdba_minimize:
minimized = 0
degen = False # No need to degeneralize anymore
issba = True
simul_minimize = False # No need to simulate anymore
if simul_minimize:
automaton = spot.simulation(automaton)
if degen or neverclaim:
degen = spot.tgba_sba_proxy(automaton)