diff --git a/ChangeLog b/ChangeLog
index 15f6cf1cb..7bf014a90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2004-02-20 Alexandre Duret-Lutz '; sys.stdout.flush()
- s = spot.ostringstream()
- spot.bdd_print_dot(s, dict, what)
- print cgi.escape(s.str())
- del s
- print '
'; sys.stdout.flush()
-
def escaped_print_set(dict, what):
print ''; sys.stdout.flush()
s = spot.ostringstream()
@@ -135,21 +127,35 @@ def print_stats(automaton):
print "no acceptance condition (all cycles are accepting)"
print "
'
+ b = cgi.escape(basename)
+ print '
' + dont_run_dot + ''' to be rendered on-line. However +you may download the source in dot format en render it yourself.') + else: + render_dot(basename) def render_bdd(basename, dictionary, bdd): - outfile = spot.ofstream(basename + '.dot') + outfile = spot.ofstream(basename + '.txt') spot.bdd_print_dot(outfile, dictionary, bdd) del outfile render_dot(basename) @@ -166,24 +172,17 @@ options = [ ('opt_symb_merge', 'merge states with same symbolic successor representation (FM only)', 1), ('show_parse', 'show traces during parsing', 0), - ('show_formula_dot', 'print the formula as .dot', 0), - ('show_formula_gif', 'draw the formula', 0), - ('show_automaton_dot', 'print Büchi automaton as .dot', 0), - ('show_automaton_gif', 'draw Büchi automaton', 1), - ('show_degen_dot', 'print degeneralized Büchi automaton as .dot', 0), - ('show_degen_gif', 'draw degeneralized Büchi automaton', 0), + ('show_formula_png', 'draw the formula', 0), + ('show_automaton_png', 'draw Büchi automaton', 1), + ('show_degen_png', 'draw degeneralized Büchi automaton', 0), ('show_dictionnay', 'print BDD dictionary', 0), - ('show_relation_dot', - 'print the transition relation as .dot (LaCIM only)', 0), ('show_relation_set', 'print the transition relation as a BDD set (LaCIM only)', 0), - ('show_relation_gif', + ('show_relation_png', 'draw the transition relation (LaCIM only)', 0), - ('show_acceptance_dot', - 'print the acceptance relation as .dot (LaCIM only)' , 0), ('show_acceptance_set', 'print the acceptance relation as a BDD set (LaCIM only)', 0), - ('show_acceptance_gif', + ('show_acceptance_png', 'draw the acceptance relation (LaCIM only)', 0), ('show_lbtt', 'convert automaton for LBTT', 0), ] @@ -321,15 +320,8 @@ if err: print "
Formula is", f, "
'; sys.stdout.flush() - s = spot.ostringstream() - spot.dotty(s, f) - print cgi.escape(s.str()) - del s - print ''; sys.stdout.flush() -if show_formula_gif: - outfile = spot.ofstream(imgprefix + '-f.dot') +if show_formula_png: + outfile = spot.ofstream(imgprefix + '-f.txt') spot.dotty(outfile, f) del outfile render_dot(imgprefix + '-f') @@ -358,32 +350,16 @@ elif trans_fm: print 'done.' sys.stdout.flush() -print_stats(automaton) +dont_run_dot = print_stats(automaton) -if show_automaton_dot: - print '
'; sys.stdout.flush() - s = spot.ostringstream() - spot.dotty_reachable(s, automaton) - print cgi.escape(s.str()) - del s - print ''; sys.stdout.flush() +if show_automaton_png: + render_automaton(imgprefix + '-a', automaton, dont_run_dot) -if show_automaton_gif: - render_automaton(imgprefix + '-a', automaton) - -if show_degen_dot or show_degen_gif: +if show_degen_png: print '
'; sys.stdout.flush() - s = spot.ostringstream() - spot.dotty_reachable(s, degen) - print cgi.escape(s.str()) - del s - print ''; sys.stdout.flush() - if show_degen_gif: - render_automaton(imgprefix + '-d', degen) + dont_run_dot = print_stats(degen) + render_automaton(imgprefix + '-d', degen, dont_run_dot) else: degen = 0 @@ -395,28 +371,22 @@ if show_dictionnay: print '' if (type(automaton) == spot.tgba_bdd_concretePtr - and (show_relation_dot or show_relation_set or show_relation_gif)): + and (show_relation_set or show_relation_png)): print '