length_boolone: fix inconsistency

* src/ltlvisit/length.cc: Consider length of all Boolean
expressions combined in a multop as one.
* src/ltltest/length.test: Test it.
This commit is contained in:
Alexandre Lewkowicz 2014-01-15 00:43:19 +01:00 committed by Alexandre Duret-Lutz
parent b6e5ce7e15
commit 02334867da
2 changed files with 20 additions and 2 deletions

View file

@ -34,3 +34,5 @@ len 'a|b|c' 5 1
len '!a|b|!c' 7 1
len '!(!a|b|!c)' 8 1
len '!X(!a|b|!c)' 9 3
len 'Xa|(b|c)' 6 4
len 'Xa&(b|c)' 6 4