Introduce cube data structure

* README, configure.ac, spot/Makefile.am,
spot/twacube/Makefile.am, spot/twacube/cube.cc,
spot/twacube/cube.hh, tests/Makefile.am,
tests/core/.gitignore, tests/core/cube.cc,
tests/core/cube.test: here.
This commit is contained in:
Etienne Renault 2015-11-30 15:31:17 +01:00
parent b7abe6f4b4
commit 7c3fdd6b97
10 changed files with 443 additions and 1 deletions

53
tests/core/cube.test Executable file
View file

@ -0,0 +1,53 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2015, 2016 Laboratoire de Recherche et Développement 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/>.
# While running some benchmark, Tomáš Babiak found that Spot took too
# much time (i.e. >1h) to translate those six formulae. It turns out
# that the WDBA minimization was performed after the degeneralization
# algorithm, while this is not necessary (WDBA will produce a BA, so
# we may as well skip degeneralization). Translating these formulae
# in the test-suite ensure that they don't take too much time (the
# buildfarm will timeout if it does).
. ./defs
set -e
run 0 ../cube > stdout
cat >expected <<EOF
size : 5
cube : a&!d
valid : 1
intersect(c,c) : 1
size : 5
cube : !a&b
valid : 1
intersect(c1,c1) : 1
intersect(c,c1) : 0
intersect(c1,c) : 0
size : 5
cube : b&d
valid : 1
intersect(c2,c1) : 1
intersect(c2,c) : 0
EOF
diff stdout expected