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:
parent
190d4cfaf1
commit
e8527d5ae9
4 changed files with 10 additions and 2 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue