modelcheck: rewrite and use argp

* tests/Makefile.am, tests/ltsmin/check.test,
tests/ltsmin/finite.test, tests/ltsmin/finite2.test,
tests/ltsmin/kripke.test, tests/ltsmin/modelcheck.cc: here.
This commit is contained in:
Etienne Renault 2016-03-10 13:27:42 +01:00
parent b4bbf50794
commit 4337abc5a6
6 changed files with 355 additions and 335 deletions

View file

@ -31,28 +31,33 @@ else
fi
set -e
run 0 ../modelcheck -gm $srcdir/finite.dve '"P.a < 10"' > stdout
run 0 ../modelcheck --dot=model --model $srcdir/finite.dve \
--formula '"P.a < 10"' > stdout
test `grep ' -> ' stdout | wc -l` = 25
test `grep 'P.a=' stdout | wc -l` = 15
run 0 ../modelcheck -dtrue -gm $srcdir/finite.dve '"P.a < 10"' > stdout2
run 0 ../modelcheck --selfloopize true --dot=model --model $srcdir/finite.dve \
--formula '"P.a < 10"' > stdout2
cmp stdout stdout2
run 0 ../modelcheck -dfalse -gm $srcdir/finite.dve '"P.a < 10"' > stdout
run 0 ../modelcheck --selfloopize false --dot model --model $srcdir/finite.dve \
--formula '"P.a < 10"' > stdout
test `grep ' -> ' stdout | wc -l` = 19
test `grep 'P.a=' stdout | wc -l` = 15
# the same with compressed states
run 0 ../modelcheck -z -dfalse -gm $srcdir/finite.dve '"P.a < 10"' > stdout
run 0 ../modelcheck --compress 1 --selfloopize false \
--dot model --model $srcdir/finite.dve --formula '"P.a < 10"' > stdout
test `grep ' -> ' stdout | wc -l` = 19
test `grep 'P.a=' stdout | wc -l` = 15
run 0 ../modelcheck -ddead -E $srcdir/finite.dve \
'!(G(dead -> ("P.a==3" | "P.b==3")))'
run 0 ../modelcheck --is-empty --selfloopize dead --model $srcdir/finite.dve \
--formula '!(G(dead -> ("P.a==3" | "P.b==3")))'
run 0 ../modelcheck -ddead -e $srcdir/finite.dve \
'!(G(dead -> ("P.a==2" | "P.b==3")))'
run 1 ../modelcheck --is-empty --selfloopize dead --model $srcdir/finite.dve \
--formula '!(G(dead -> ("P.a==2" | "P.b==3")))'
# This used to segfault because of a bug in a
# function that do not exist anymore.
run 0 ../modelcheck -gp $srcdir/finite.dve true
run 0 ../modelcheck --dot product --model $srcdir/finite.dve \
--formula true