Simplify {b && {r1:...:rn}} as {b && r1 && ... && rn}.

* src/ltlvisit/simplify.cc (simplify_visitor): Do it.
* src/ltltest/reduccmp.test: Add a test.
* doc/tl/tl.tex: Document it.
* src/ltlast/multop.cc: Fix the computation of is.accepting_eword
for Fusion.  The Fusion operator never accepts [*0].
This commit is contained in:
Alexandre Duret-Lutz 2011-12-01 17:48:15 +01:00
parent 77084747b9
commit d0cfd44ba6
4 changed files with 28 additions and 2 deletions

View file

@ -43,8 +43,9 @@ namespace spot
switch (op)
{
case Concat:
case Fusion:
is.accepting_eword = false;
case Concat:
case AndNLM:
// Note: AndNLM(p1,p2) is a Boolean formula, but it is
// actually rewritten as And(p1,p2) by trivial identities