* src/tgba/tgbaexplicit.hh (state_is_accepting): Use all_acceptance_conditions(), not all_acceptance_conditions_, so that it works even when all_acceptance_conditions_ is not ready. * src/tgbatest/explicit2.cc, src/tgbatest/explicit2.test: Adjust test case.
46 lines
1.2 KiB
Bash
Executable file
46 lines
1.2 KiB
Bash
Executable file
#!/bin/sh
|
|
# Copyright (C) 2012 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/>.
|
|
|
|
. ./defs
|
|
|
|
set -e
|
|
|
|
run 0 ../explicit2 >stdout
|
|
cat stdout
|
|
cat >expected <<EOF
|
|
* TGBA explicit string
|
|
tata
|
|
* TGBA explicit number
|
|
69
|
|
* TGBA explicit formula
|
|
b
|
|
* SBA explicit string, 1 accepting state
|
|
S1 ACCEPTING? 1
|
|
S2 ACCEPTING? 0
|
|
S3 ACCEPTING? 0
|
|
* SBA explicit number, 1 accepting state
|
|
S1 ACCEPTING? 1
|
|
S2 ACCEPTING? 0
|
|
* SBA explicit formula, 1 accepting state
|
|
S1 ACCEPTING? 1
|
|
S2 ACCEPTING? 0
|
|
S3 ACCEPTING? 0
|
|
EOF
|
|
|
|
cmp expected stdout
|