mc: rework and test conversion into twa
* spot/mc/Makefile.am, spot/mc/reachability.hh, spot/mc/utils.hh, tests/Makefile.am, tests/ltsmin/.gitignore, tests/ltsmin/testconvert.cc, tests/ltsmin/testconvert.test: Here.
This commit is contained in:
parent
568fcdfc9a
commit
17579ad9ad
7 changed files with 337 additions and 196 deletions
54
tests/ltsmin/testconvert.test
Normal file
54
tests/ltsmin/testconvert.test
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
#! /bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2020 Laboratoire de Recherche et Developpement
|
||||
# de l'Epita (LRDE)
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
# Spot is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Spot is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
|
||||
. ./defs
|
||||
|
||||
divine compile > output 2>&1
|
||||
|
||||
if grep -i 'ltsmin ' output; then
|
||||
:
|
||||
else
|
||||
echo "divine not installed, or no ltsmin interface"
|
||||
exit 77
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
run 0 ../testconvert $srcdir/finite.dve 'true' > output
|
||||
cat << EOF > expected
|
||||
[CUBE] Model: 15,24
|
||||
[BDD] Model: 15,24
|
||||
[CUBE] Product: not_empty,4,4
|
||||
[BDD] Product: not_empty,15,24
|
||||
EOF
|
||||
|
||||
cmp output expected
|
||||
|
||||
run 0 ../testconvert $srcdir/finite.dve 'G "P.a==5"' > output
|
||||
cat << EOF > expected
|
||||
[CUBE] Model: 15,24
|
||||
[BDD] Model: 15,24
|
||||
[CUBE] Product: empty,1,0
|
||||
[BDD] Product: empty,1,0
|
||||
EOF
|
||||
|
||||
cmp output expected
|
||||
Loading…
Add table
Add a link
Reference in a new issue