Improve simplification of expr[*0..1]

Fixes #108.

* spot/tl/simplify.cc: Implement the reduction.
* doc/tl/tl.tex, NEWS: Document it.
* tests/core/reduccmp.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2017-09-02 16:35:18 +02:00
parent 190d4cfaf1
commit e8527d5ae9
4 changed files with 10 additions and 2 deletions

View file

@ -1362,6 +1362,8 @@ namespace spot
if (!f.accepts_eword())
return f;
formula h = f[0];
if (f.max() == 1 && h.accepts_eword())
return h;
auto min = 0;
if (f.max() == formula::unbounded())
{