monitor: fix -MD/-M difference in property output

Fixes #241.

* spot/twaalgos/postproc.cc: Use the deterministic monitor if it
has as many states as the non-deterministic one.
* spot/twaalgos/minimize.cc (minimize_monitor): Quickly check
for terminal automata.
* spot/twaalgos/stripacc.cc: Set the weak property.
* spot/twaalgos/stripacc.hh: Improve documentation.
* tests/core/monitor.test, tests/core/sbacc.test: Update.
* NEWS: Mention the issue.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-03 18:23:57 +01:00
parent 3699e6cd0c
commit a66e7704d8
7 changed files with 37 additions and 8 deletions

5
NEWS
View file

@ -30,6 +30,11 @@ New in spot 2.3.1.dev (not yet released)
- 'ltl2tgba --any -C -M ...' would not complete automata.
- while not incorrect, the HOA properties output by 'ltl2tgba -M'
could be 'inherently-weak' or 'terminal', while 'ltl2tgba -M -D'
would always report 'weak' automata. Both variants now report the
most precise between 'weak' or 'terminal'.
Deprecation notices:
- Using --format=%a to print the number of atomic propositions in