Fix computation of length of LTL formulas.

* src/ltlvisit/length.cc: Fix computation for ltl::multop
operator. "a&b&c" was reported with length 3, ignoring the
"&" operators, because of a typo.
* src/ltlvisit/length.hh: Fix description to correctly
reflect this change intended since 2010-01-22.
* src/ltltest/length.test, src/ltltest/length.cc: New files.
* src/ltltest/Makefile.am: Add them.
This commit is contained in:
Alexandre Duret-Lutz 2012-01-05 18:34:23 +01:00
parent 93f1009b75
commit 984c715cc6
7 changed files with 111 additions and 8 deletions

4
NEWS
View file

@ -1,6 +1,8 @@
New in spot 0.8.1a:
* Nothing yet.
* Bug fixes:
- spot::ltl::length() forgot to count the '&' and '|' operators
in an LTL formula.
New in spot 0.8.1: