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:
parent
b4bbf50794
commit
4337abc5a6
6 changed files with 355 additions and 335 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011, 2013, 2014 Laboratoire de Recherche et Développement
|
||||
# Copyright (C) 2011, 2013, 2014, 2016 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -28,27 +28,30 @@ if ! spins $srcdir/finite.pm; then
|
|||
exit 77
|
||||
fi
|
||||
|
||||
run 0 ../modelcheck -gm $srcdir/finite.pm '"P_0.a < 10"' > stdout
|
||||
run 0 ../modelcheck --dot model --model $srcdir/finite.pm \
|
||||
--formula '"P_0.a < 10"' > stdout
|
||||
test `grep ' -> ' stdout | wc -l` = 25
|
||||
test `grep 'P_0.a=' stdout | wc -l` = 15
|
||||
|
||||
run 0 ../modelcheck -dtrue -gm $srcdir/finite.pm '"P_0.a < 10"' > stdout2
|
||||
run 0 ../modelcheck --selfloopize true --dot model --model $srcdir/finite.pm \
|
||||
--formula '"P_0.a < 10"' > stdout2
|
||||
diff stdout stdout2
|
||||
|
||||
run 0 ../modelcheck -dfalse -gm $srcdir/finite.pm '"P_0.a < 10"' > stdout
|
||||
run 0 ../modelcheck --selfloopize dfalse --dot model --model $srcdir/finite.pm \
|
||||
--formula '"P_0.a < 10"' > stdout
|
||||
test `grep ' -> ' stdout | wc -l` = 19
|
||||
test `grep 'P_0.a=' stdout | wc -l` = 15
|
||||
|
||||
# the same with compressed states
|
||||
run 0 ../modelcheck -z -dfalse -gm $srcdir/finite.pm '"P_0.a < 10"' \
|
||||
> stdout
|
||||
run 0 ../modelcheck -compress --selfloopize false --dot model \
|
||||
--model $srcdir/finite.pm --formula '"P_0.a < 10"' > stdout
|
||||
test `grep ' -> ' stdout | wc -l` = 19
|
||||
test `grep 'P_0.a=' stdout | wc -l` = 15
|
||||
|
||||
run 0 ../modelcheck -ddead -E $srcdir/finite.pm \
|
||||
'!(G(dead -> ("P_0.a==3" | "P_0.b==3")))'
|
||||
run 0 ../modelcheck --is-empty --selfloopize dead --model $srcdir/finite.pm \
|
||||
--formula '!(G(dead -> ("P_0.a==3" | "P_0.b==3")))'
|
||||
|
||||
run 0 ../modelcheck -ddead -e $srcdir/finite.pm \
|
||||
'!(G(dead -> ("P_0.a==2" | "P_0.b==3")))'
|
||||
run 1 ../modelcheck --is-empty --selfloopize dead --model $srcdir/finite.pm \
|
||||
--formula '!(G(dead -> ("P_0.a==2" | "P_0.b==3")))'
|
||||
|
||||
run 0 ../modelcheck -gp $srcdir/finite.pm true
|
||||
run 0 ../modelcheck --dot product --model $srcdir/finite.pm --formula true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue