tgbatest: drop support of Spot's legacy format from ltl2tgba
This is progress for #1. * src/tgbatest/ltl2tgba.cc: Remove options -b and -X. Change -P to read HOA files instead. * src/tgbatest/complementation.cc: Replace option -b by -H for HOA output, and read files in HOA. * src/tgbatest/complementation.test, src/tgbatest/cycles.test, src/tgbatest/dbacomp.test, src/tgbatest/degenid.test, src/tgbatest/dfs.test, src/tgbatest/emptchke.test, src/tgbatest/ltl2tgba.test, src/tgbatest/renault.test, src/tgbatest/satmin2.test, src/tgbatest/sccsimpl.test, src/tgbatest/sim2.test: Adjust.
This commit is contained in:
parent
5852292c9f
commit
33a944705c
13 changed files with 755 additions and 527 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2013 Laboratoire de Recherche et
|
||||
# Copyright (C) 2013, 2015 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -23,25 +23,37 @@ set -e
|
|||
|
||||
# This automaton used to trigger a bug in the complementation: its
|
||||
# intersection with the complement was not empty!
|
||||
cat >input.tgba <<EOF
|
||||
acc = "a" "b" "c";
|
||||
"1", "1", "(a & d) | (a & b)", "b" "c";
|
||||
"1", "2", "a & !d & !c & !b",;
|
||||
"1", "1", "(d & !a) | (b & !a)", "a" "b" "c";
|
||||
"1", "2", "!a & !d & !c & !b", "a";
|
||||
"2", "1", "a & c & b", "b" "c";
|
||||
"2", "3", "a & b & !c", "b";
|
||||
"2", "2", "a & !c & !b",;
|
||||
"2", "1", "c & b & !a", "a" "b" "c";
|
||||
"2", "3", "b & !a & !c", "a" "b";
|
||||
"2", "2", "!a & !c & !b", "a";
|
||||
"3", "1", "(a & d & c) | (a & c & b)", "b" "c";
|
||||
"3", "3", "(a & d & !c) | (a & b & !c)", "b";
|
||||
"3", "2", "a & !d & !c & !b",;
|
||||
"3", "1", "(d & c & !a) | (c & b & !a)", "a" "b" "c";
|
||||
"3", "3", "(d & !a & !c) | (b & !a & !c)", "a" "b";
|
||||
"3", "2", "!a & !d & !c & !b", "a";
|
||||
cat >input.hoa <<EOF
|
||||
HOA: v1
|
||||
States: 3
|
||||
Start: 0
|
||||
AP: 4 "a" "d" "b" "c"
|
||||
acc-name: generalized-Buchi 3
|
||||
Acceptance: 3 Inf(0)&Inf(1)&Inf(2)
|
||||
properties: trans-labels explicit-labels trans-acc deterministic
|
||||
--BODY--
|
||||
State: 0
|
||||
[0&1 | 0&2] 0 {1 2}
|
||||
[!0&1 | !0&2] 0 {0 1 2}
|
||||
[0&!1&!2&!3] 1
|
||||
[!0&!1&!2&!3] 1 {0}
|
||||
State: 1
|
||||
[0&2&3] 0 {1 2}
|
||||
[!0&2&3] 0 {0 1 2}
|
||||
[0&!2&!3] 1
|
||||
[!0&!2&!3] 1 {0}
|
||||
[0&2&!3] 2 {1}
|
||||
[!0&2&!3] 2 {0 1}
|
||||
State: 2
|
||||
[0&1&3 | 0&2&3] 0 {1 2}
|
||||
[!0&1&3 | !0&2&3] 0 {0 1 2}
|
||||
[0&!1&!2&!3] 1
|
||||
[!0&!1&!2&!3] 1 {0}
|
||||
[0&1&!3 | 0&2&!3] 2 {1}
|
||||
[!0&1&!3 | !0&2&!3] 2 {0 1}
|
||||
--END--
|
||||
EOF
|
||||
|
||||
# Check emptiness of product with complement.
|
||||
run 0 ../ltl2tgba -Pinput.tgba -DC -E -C -X input.tgba
|
||||
run 0 ../ltl2tgba -H -DC -C -XH input.hoa > output.hoa
|
||||
run 1 ../../bin/autfilt -q input.hoa --intersect output.hoa
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue