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:
parent
93f1009b75
commit
984c715cc6
7 changed files with 111 additions and 8 deletions
|
|
@ -53,7 +53,7 @@ namespace spot
|
|||
mo->nth(i)->accept(*this);
|
||||
// "a & b & c" should count for 5, even though it is
|
||||
// stored as And(a,b,c).
|
||||
mo += s - 1;
|
||||
result_ += s - 1;
|
||||
}
|
||||
|
||||
virtual void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue