Fix a case caught by the random formula generator.

* src/ltlvisit/simplify.cc (ltl_simplifier): Since we are processing
the formula bottom-up, don't assume all trivial simplification have
been done.
* src/ltltest/reduccmp.test: More tests.
This commit is contained in:
Alexandre Duret-Lutz 2011-08-22 22:14:36 +02:00
parent ca2fe4f3f8
commit ca686cb07e
2 changed files with 35 additions and 8 deletions

View file

@ -66,7 +66,7 @@ for x in ../reduccmp ../reductaustr; do
run 0 $x 'a | (b U a) | a' '(b U a)'
run 0 $x 'a U (b U a)' '(b U a)'
# Basics reduction
# Basic reductions
run 0 $x 'X(true)' 'true'
run 0 $x 'X(false)' 'false'
run 0 $x 'F(true)' 'true'
@ -147,6 +147,11 @@ for x in ../reduccmp ../reductaustr; do
run 0 $x 'b R Ga' 'Ga'
run 0 $x 'b R FGa' 'FGa'
run 0 $x 'G(!a M a) M 1' '0'
run 0 $x 'G(!a M a) U 1' '1'
run 0 $x 'a R (!a M a)' '0'
run 0 $x 'a W (!a M a)' 'Ga'
# Syntactic implication
run 0 $x '(a & b) R (a R c)' '(a & b)R c'
run 0 $x 'a R ((a & b) R c)' '(a & b)R c'