* spot/twaalgos/alternation.cc, spot/twaalgos/alternation.hh, spot/twaalgos/complement.cc, spot/twaalgos/complement.hh, spot/twaalgos/determinize.cc, spot/twaalgos/determinize.hh, spot/twaalgos/minimize.cc, spot/twaalgos/minimize.hh, spot/twaalgos/postproc.cc, spot/twaalgos/postproc.hh, spot/twaalgos/powerset.cc, spot/twaalgos/powerset.hh, spot/twaalgos/product.cc, spot/twaalgos/product.hh: Use an output_aborter argument to abort if the output is too large. * bin/ltlcross.cc: Use complement() with an output_aborter so that ltlcross will not attempt to build complement larger than 500 states or 5000 edges. Add --determinize-max-states and --determinize-max-edges options. * tests/core/ltlcross3.test, tests/core/ltlcrossce2.test, tests/core/sccsimpl.test, tests/core/wdba2.test, tests/python/stutter-inv.ipynb: Adjust test cases. * NEWS: Document this. * bin/spot-x.cc: Add documentation for postprocessor's det-max-states and det-max-edges arguments. * doc/org/ltlcross.org: Update description.
84 lines
1.7 KiB
Bash
Executable file
84 lines
1.7 KiB
Bash
Executable file
#!/bin/sh
|
|
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2012, 2014, 2015, 2018, 2019 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
|
|
|
|
cat >expected <<EOF
|
|
transitions: 16
|
|
edges: 8
|
|
states: 4
|
|
nondeterministic states: 0
|
|
EOF
|
|
|
|
# These two equivalent formulae used to produce
|
|
# minimized automata of different sizes...
|
|
run 0 ../ikwiad -Rm -kt 'a | X(Gd|Fa)' > out
|
|
run 0 ../ikwiad -Rm -kt 'Fa | XGd' > out2
|
|
|
|
cmp out expected
|
|
cmp out2 expected
|
|
|
|
cat >input <<EOF
|
|
HOA: v1
|
|
name: "XXFp1"
|
|
States: 5
|
|
Start: 4
|
|
AP: 1 "p1"
|
|
acc-name: Buchi
|
|
Acceptance: 1 Inf(0)
|
|
properties: implicit-labels state-acc complete deterministic
|
|
--BODY--
|
|
State: 0 {0}
|
|
0 0
|
|
State: 1 {0}
|
|
3 0
|
|
State: 2
|
|
1 1
|
|
State: 3
|
|
3 0
|
|
State: 4
|
|
2 2
|
|
--END--
|
|
EOF
|
|
|
|
cat >expected <<EOF
|
|
HOA: v1
|
|
States: 4
|
|
Start: 2
|
|
AP: 1 "p1"
|
|
acc-name: Buchi
|
|
Acceptance: 1 Inf(0)
|
|
properties: implicit-labels state-acc complete deterministic terminal
|
|
--BODY--
|
|
State: 0 {0}
|
|
0 0
|
|
State: 1
|
|
3 3
|
|
State: 2
|
|
1 1
|
|
State: 3
|
|
3 0
|
|
--END--
|
|
EOF
|
|
|
|
autfilt --small --high -C -Hi input > output
|
|
diff output expected
|