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

View file

@ -1,5 +1,5 @@
## Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et Développement
## de l'Epita (LRDE).
## Copyright (C) 2009, 2010, 2011, 2012 Laboratoire de Recherche et
## Développement de l'Epita (LRDE).
## Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique de
## Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
## Université Pierre et Marie Curie.
@ -29,6 +29,7 @@ check_SCRIPTS = defs
# Keep this sorted alphabetically.
check_PROGRAMS = \
equals \
length \
ltl2dot \
ltl2text \
lunabbrev \
@ -48,6 +49,7 @@ noinst_PROGRAMS = \
equals_SOURCES = equals.cc
genltl_SOURCES = genltl.cc
length_SOURCES = length.cc
ltl2dot_SOURCES = readltl.cc
ltl2dot_CPPFLAGS = $(AM_CPPFLAGS) -DDOTTY
ltl2text_SOURCES = readltl.cc
@ -77,6 +79,7 @@ EXTRA_DIST = $(TESTS)
TESTS = \
parse.test \
parseerr.test \
length.test \
equals.test \
tostring.test \
lunabbrev.test \