Implement W,M removal for Spin output.
* src/ltlvisit/wmunabbrev.hh, src/ltlvisit/wmunabbrev.cc: New files. * src/ltlvisit/Makefile.am: Add them. * src/ltlvisit/tostring.cc (to_spin_string): Use the new rewriting. * wrap/python/ajax/spot.in: Warn when a "Spin" still contain PSL operators. * wrap/python/ajax/ltl2tgba.html: Adjust help text. * doc/tl/tl.tex, NEWS: Document the new rewriting.
This commit is contained in:
parent
e64a1bf565
commit
a09ad6b4c6
8 changed files with 176 additions and 15 deletions
|
|
@ -402,11 +402,11 @@ an identifier: <span class="formula">aUb</span> is an atomic proposition, unlike
|
|||
<div>
|
||||
<div id="tabs-of">
|
||||
Output the (simplified) formula as:<br>
|
||||
<label class="rtip" title="Use letter operators (such as <span class='formula'>G</span> or <span class='formula'>F</span>) when possible.">
|
||||
<label class="rtip" title="Use letter operators (such as <span class='formula'>G</span> or <span class='formula'>F</span>) when possible, and unless UTF-8 output is activated.">
|
||||
<INPUT type="radio" name="ff" value="o" checked>
|
||||
text in Spot's syntax
|
||||
</label><br>
|
||||
<label class="rtip" title="This output can be given to Spin or any other tool using a similar syntax. Spot can also read it back.">
|
||||
<label class="rtip" title="This output can be given to Spin or any other tool using a similar syntax. Spot can also read it back. Operators such as such as <span class='formula'>M</span> and <span class='formula'>W</span>, which are not supported by Spin are rewritten away.">
|
||||
<INPUT type="radio" name="ff" value="i">
|
||||
text in Spin's syntax
|
||||
</label><br>
|
||||
|
|
|
|||
|
|
@ -395,6 +395,11 @@ if output_type == 'f':
|
|||
elif formula_format == 'i':
|
||||
unbufprint('<div class="formula spin-format">'
|
||||
+ spot.to_spin_string(f) + '</div>')
|
||||
if f.is_psl_formula() and not f.is_ltl_formula():
|
||||
s = ''
|
||||
if simpopt.reduce_size_strictly:
|
||||
s = '<br><b>Try enabling larger formula rewritings.</b>'
|
||||
unbufprint('<div class="error">The above formula contains PSL operators that Spin will not understand.%s</div>' % s)
|
||||
elif formula_format == 'g':
|
||||
render_formula(f)
|
||||
elif formula_format == 'p':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue