Simplify {b && r[*]} as {b && r}; likewise for [->] and [=].

* src/ltlvisit/simplify.cc (simplify_visitor): Do it.
* src/ltltest/reduccmp.test: Add more tests.
* doc/tl/tl.tex: Document it.
This commit is contained in:
Alexandre Duret-Lutz 2011-12-01 16:39:15 +01:00
parent e61c01b826
commit 77084747b9
3 changed files with 317 additions and 216 deletions

View file

@ -202,6 +202,14 @@ for x in ../reduccmp ../reductaustr; do
# without pruning the rational automaton.
run 0 $x '{(c&!c)[=2]}' '0'
run 0 $x '{a && b && c*} <>-> d' 'a&b&c&d'
run 0 $x '{a && b && c[*1..3]} <>-> d' 'a&b&c&d'
run 0 $x '{a && b && c[->0..2]} <>-> d' 'a&b&c&d'
run 0 $x '{a && b && c[+]} <>-> d' 'a&b&c&d'
run 0 $x '{a && b && c[=1]} <>-> d' 'a&b&c&d'
run 0 $x '{a && b && d[=2]} <>-> d' '0'
run 0 $x '{a && b && d[->2..4]} <>-> d' '0'
run 0 $x '{a && b && d[*2..]} <>-> d' '0'
;;
esac