twa_run: keep a pointer to the automaton
This simplify all laters invocations, because we do not have to pass the automaton the run was generated on. This fixes #113 by allowing the __str__ function to be implemented on runs. * src/twaalgos/emptiness.cc, src/twaalgos/emptiness.hh (twa_run): Store the automaton. (prin_twa_run): Rewrite as an overloaded <<. * src/twaalgos/reducerun.cc, src/twaalgos/reducerun.hh (reduce_run): Do not like the automaton as a parameter. * src/twaalgos/replayrun.cc, src/twaalgos/replayrun.hh (replay_twa_run): Likewise. * src/bin/common_aoutput.hh, src/bin/ltlcross.cc, src/tests/complementation.cc, src/tests/ikwiad.cc, src/tests/randtgba.cc, src/twaalgos/gtec/ce.cc, src/twaalgos/gv04.cc, src/twaalgos/magic.cc, src/twaalgos/ndfs_result.hxx, src/twaalgos/se05.cc, src/twaalgos/projrun.cc: Adjust. * wrap/python/ajax/spotcgi.in: Add a __str__ function to twa_run_ptr. * wrap/python/spot_impl.i: Adjust.
This commit is contained in:
parent
e7cc89264a
commit
63917def2d
19 changed files with 85 additions and 97 deletions
|
|
@ -840,11 +840,8 @@ if output_type == 'r':
|
|||
unbufprint('<div class="ec">An accepting run was found.<br/>')
|
||||
if ec_run:
|
||||
if print_acc_run:
|
||||
s = spot.ostringstream()
|
||||
spot.print_twa_run(s, ec_a, ec_run)
|
||||
unbufprint('<div class="accrun">%s</div>' %
|
||||
cgi.escape(s.str()))
|
||||
del s
|
||||
cgi.escape(str(ec_run)))
|
||||
if draw_acc_run:
|
||||
render_automaton(spot.twa_run_to_tgba(ec_a, ec_run), False)
|
||||
del ec_run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue