* src/tgba/tgbagraph.hh: Remove the set_bprop/get_bprop interface. * src/tgba/tgba.cc, src/tgba/tgba.hh: Add a new interface for setting/querying/copying the following properties: single_acc_set, state_based_acc, inherently_weak, deterministic. * src/dstarparse/dra2ba.cc, src/dstarparse/nra2nba.cc, src/neverparse/neverclaimparse.yy, src/saba/sabacomplementtgba.cc, src/tgba/tgbagraph.cc, src/tgbaalgos/degen.cc, src/tgbaalgos/dotty.cc, src/tgbaalgos/isdet.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/minimize.cc, src/tgbaalgos/neverclaim.cc, src/tgbaalgos/postproc.cc, src/tgbaalgos/sccfilter.cc, src/tgbaalgos/simulation.cc, src/tgbatest/degenlskip.test, src/tgbatest/ltl2tgba.cc: Adjust to the new interface, or use it to bypass some useless work.
70 lines
1.8 KiB
Bash
Executable file
70 lines
1.8 KiB
Bash
Executable file
#!/bin/sh
|
|
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2013, 2014 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
|
|
|
|
# Make sure degen-skip=0 and degen-skip=1 produce the expected
|
|
# automata for 'GFa & GFb'
|
|
|
|
../../bin/ltl2tgba -B 'GFa & GFb' > out1
|
|
../../bin/ltl2tgba -B -x degen-lskip=1 'GFa & GFb' > out2
|
|
../../bin/ltl2tgba -B -x degen-lskip=0 'GFa & GFb' > out3
|
|
|
|
diff out1 out2
|
|
cmp out2 out3 && exit 1
|
|
|
|
cat <<EOF >expected2
|
|
digraph G {
|
|
0 [label="", style=invis, height=0]
|
|
0 -> 1
|
|
1 [label="0", peripheries=2]
|
|
1 -> 1 [label="a & b\n{Acc[1]}"]
|
|
1 -> 2 [label="!a & b\n{Acc[1]}"]
|
|
1 -> 3 [label="!b\n{Acc[1]}"]
|
|
2 [label="1"]
|
|
2 -> 1 [label="a\n"]
|
|
2 -> 2 [label="!a\n"]
|
|
3 [label="2"]
|
|
3 -> 1 [label="a & b\n"]
|
|
3 -> 2 [label="!a & b\n"]
|
|
3 -> 3 [label="!b\n"]
|
|
}
|
|
EOF
|
|
|
|
|
|
cat <<EOF >expected3
|
|
digraph G {
|
|
0 [label="", style=invis, height=0]
|
|
0 -> 1
|
|
1 [label="0", peripheries=2]
|
|
1 -> 2 [label="1\n{Acc[1]}"]
|
|
2 [label="2"]
|
|
2 -> 3 [label="b\n"]
|
|
2 -> 2 [label="!b\n"]
|
|
3 [label="1"]
|
|
3 -> 1 [label="a\n"]
|
|
3 -> 3 [label="!a\n"]
|
|
}
|
|
EOF
|
|
|
|
diff out2 expected2
|
|
diff out3 expected3
|