Add support to load GAL models.

* spot/ltsmin/ltsmin.cc: Handle GAL models.
* tests/Makefile.am: Test the new feature.
* tests/ltsmin/check.test: Also check GAL.
* tests/ltsmin/beem-peterson.4.gal: A new GAL model for tests.
* tests/ltsmin/finite.gal: A new GAL model for tests.
* tests/ltsmin/finite3.test: A new test for GAL.
This commit is contained in:
Maximilien Colange 2016-11-22 10:44:20 +01:00
parent ec83e60bb9
commit c9aabcddab
6 changed files with 268 additions and 9 deletions

View file

@ -35,6 +35,11 @@ if ! test -x "$(which spins)"; then
exit 77
fi
if ! test -x "$(which gal2c)"; then
echo "gal2c not installed."
exit 77
fi
set -e
# Promela
@ -65,6 +70,18 @@ for opt in '' '-z'; do
run 0 ../modelcheck $opt -e $srcdir/beem-peterson.4.dve '!G("pos[1] < 3")'
done
# gal
# TODO also compare gal and dve results
for opt in '' '-z'; do
# The three examples from the README.
# (Don't run the first one using "run 0" because it would take too much
# time with valgrind.).
run 0 ../modelcheck $opt -e $srcdir/beem-peterson.4.gal \
'!G("P_0.state==2" -> F "P_0.state==1")'
run 0 ../modelcheck $opt -e $srcdir/beem-peterson.4.gal '!G("pos[1] < 3")'a
done
# Now check some error messages.
run 1 ../modelcheck foo.dve "F(P_0.CS)" 2>stderr
cat stderr