tl: new PSL trivial simplifications

Always rewrite {[*]}[]->0 as 0, and {[*]}<>->1 = 1.  Fixes #572.

* spot/tl/formula.cc: Implement them.
* doc/tl/tl.tex, NEWS: Document them.
* tests/core/equals.test: Test those.
This commit is contained in:
Alexandre Duret-Lutz 2024-05-13 22:15:15 +02:00
parent a826a4ae6f
commit ed91f59bbd
4 changed files with 13 additions and 2 deletions

5
NEWS
View file

@ -89,6 +89,11 @@ New in spot 2.11.6.dev (not yet released)
- b:b[*i..j] = b[*max(i,1)..j]
- b[*i..j]:b[*k..l] = b[*max(i,1)+max(k,1)-1, j+l-1]
- The following new trivial simplifications have been implemented
for PSL operators:
- {[*]}[]->0 = 0
- {[*]}<>->1 = 1
- The HOA parser is a bit smarter when merging multiple initial
states into a single initial state (Spot's automaton class
supports only one): it now reuses the edges leaving initial states