twaalgos: add a match_states variant with a formula argument

This is related to issue #591, reported by Blake C. Rawlings.

* spot/twaalgos/ltl2tgba_fm.cc, spot/twaalgos/ltl2tgba_fm.hh
(ltl_to_tgba_fm): Add option to keep LTL labels.
* spot/twaalgos/matchstates.cc, spot/twaalgos/matchstates.hh
(match_states): Add variant with a formula as second argument.
* tests/python/matchstates.py: Test it.
* NEWS: Mention it.
* THANKS: Add reporter.
This commit is contained in:
Alexandre Duret-Lutz 2024-08-29 11:16:35 +02:00
parent 5f1d00b858
commit 3d3e87948c
7 changed files with 89 additions and 4 deletions

6
NEWS
View file

@ -62,6 +62,12 @@ New in spot 2.12.0.dev (not yet released)
and B accept the same language, any word accepted by A from state
x can be accepted in B from some state in V[x].
That function also has a variant spot::match_states(A, f) where f
is an LTL formula. In this case it returns and array of
formulas. If f represents a superset of the language of A, then
any word accepted by A from state x satisfies V[x]. Related to
Issue #591.
Bug fixes:
- Generating random formulas without any unary opertor would very