extend HOA I/O to preserve the state-player property

* spot/parseaut/parseaut.yy, spot/parseaut/scanaut.ll,
spot/twaalgos/hoa.cc: Add input and output support.
* doc/org/hoa.org: Document the HOA extension.
* bin/ltlsynt.cc: Add a --print-game-hoa option to
produce such format.
* tests/core/gamehoa.test: New file to test this.
* tests/Makefile.am: Add it.
* NEWS: Mention this new feature.
This commit is contained in:
Alexandre Duret-Lutz 2020-09-08 16:25:36 +02:00
parent 25c75c55b1
commit ea9384dd4b
8 changed files with 209 additions and 5 deletions

9
NEWS
View file

@ -8,6 +8,11 @@ New in spot 2.9.4.dev (not yet released)
problem. There is also an --enable-c++20 option to configure in
case you want to force a build of Spot in C++20 mode.
Command-line tools:
- ltlsynt learned --print-game-hoa to output its internal parity
game in the HOA format (with an extension described below).
Library:
- Historically, Spot labels automata by Boolean formulas over
@ -67,6 +72,10 @@ New in spot 2.9.4.dev (not yet released)
has a parity max odd acceptance and a "state-player" property is
considered to be a parity game.
- the "state-player" property is output by the HOA printer, and read
back by the automaton parser, which means that games can be saved
and loaded.
New in spot 2.9.4 (2020-09-07)
Bugs fixed: