Do not assume that concatenation cannot accept the empty word.

For instance "(a+#e);(b+#e);(c*)" does.

* src/ltlvisit/consterm.cc: Fix handling of Concat operator.
* src/ltltest/consterm.test: Add more tests.
This commit is contained in:
Alexandre Duret-Lutz 2010-03-02 12:44:46 +01:00
parent bd9136a98e
commit ad519b8568
2 changed files with 4 additions and 9 deletions

View file

@ -37,3 +37,6 @@ run 1 ../consterm '((a ; b) + #e)'
run 0 ../consterm '((a ; b) + #e) & e'
run 1 ../consterm '((a ; b) + #e) & #e'
run 1 ../consterm '((a ; b) + #e) & (a* + b)'
run 1 ../consterm '(a + #e);(b + #e);(c + #e)'
run 0 ../consterm '(a + #e);(b + e);(c + #e)'
run 1 ../consterm '(a + #e);(b + e)*;(c + #e)'