parse_aut: simplify the interface
* src/parseaut/public.hh, src/parseaut/parseaut.yy, src/parseaut/fmterror.cc: Add a raise_errors options. Remove the parse_strict() method. Store parse errors and filename in the output parsed_aut to simplify usage. * doc/org/tut20.org, doc/org/tut21.org, doc/org/tut30.org, src/bin/autfilt.cc, src/bin/common_hoaread.cc, src/bin/dstar2tgba.cc, src/bin/ltlcross.cc, src/bin/ltldo.cc, src/tests/complementation.cc, src/tests/ikwiad.cc, src/tests/ltlcross3.test, src/tests/ltldo.test, wrap/python/spot.py, wrap/python/tests/parsetgba.py: Adjust usage. * NEWS: Mention the changes.
This commit is contained in:
parent
3d5d160635
commit
dee73ee342
18 changed files with 228 additions and 215 deletions
25
NEWS
25
NEWS
|
|
@ -22,11 +22,11 @@ New in spot 1.99.4a (not yet released)
|
|||
|
||||
Library:
|
||||
|
||||
* Rename dtgba_complement() to dtwa_complement(), rename the header
|
||||
as complement.hh, and restrict the purpose of this function to
|
||||
just complete the automaton and complement its acceptance
|
||||
condition. Any further acceptance condition transformation
|
||||
can be done with to_generalized_buchi() or remove_fin().
|
||||
* dtgba_complement() was renamed to dtwa_complement(), moved to
|
||||
complement.hh, and its purpose was restricted to just completing
|
||||
the automaton and complementing its acceptance condition. Any
|
||||
further acceptance condition transformation can be done with
|
||||
to_generalized_buchi() or remove_fin().
|
||||
|
||||
* The remove_fin() has learnt how to better deal with automata that
|
||||
are declared as weak. This code was previously in
|
||||
|
|
@ -37,7 +37,7 @@ New in spot 1.99.4a (not yet released)
|
|||
acceptance. The most visible effect is in the output of "ltl2tgba
|
||||
-s XXXa": it used to have 5 accepting states, it now has only one.
|
||||
(Changing removing acceptance of those 4 states has no effect on
|
||||
the language, but it speedup some algorithms like NDFS-based
|
||||
the language, but it speeds up some algorithms like NDFS-based
|
||||
emptiness checks, as discussed in our Spin'15 paper.)
|
||||
|
||||
* The HOA parser will diagnose any version that is not v1, unless it
|
||||
|
|
@ -47,6 +47,12 @@ New in spot 1.99.4a (not yet released)
|
|||
make it easier to introduce new options. One such new option is
|
||||
"trust_hoa": when true (the default) supported properties declared
|
||||
in HOA files are trusted even if they cannot be easily be verified.
|
||||
Another option "raise_errors" now replaces the method
|
||||
automaton_stream_parser::parse_strict().
|
||||
|
||||
* The output of the automaton parser now include the list of parse
|
||||
errors (that does not have to be passed as a parameters) and the
|
||||
input filename (making the output of error message easier).
|
||||
|
||||
* renamings:
|
||||
ltl_simplifier -> tl_simplifier
|
||||
|
|
@ -54,9 +60,10 @@ New in spot 1.99.4a (not yet released)
|
|||
tgba_sub_statistics::sub_transitions -> twa_sub_statistics::transitions
|
||||
tgba_run -> twa_run
|
||||
reduce_run -> twa_run::reduce
|
||||
replay_twa_run -> twa_run::replay
|
||||
print_twa_run -> operator<<
|
||||
twa_run_to_tgba -> twa_run::as_twa
|
||||
replay_tgba_run -> twa_run::replay
|
||||
print_tgba_run -> operator<<
|
||||
tgba_run_to_tgba -> twa_run::as_twa
|
||||
format_parse_aut_errors -> parsed_aut::format_errors
|
||||
|
||||
Python:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue