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) 2012 Laboratoire de Recherche et Développement
|
||||
# Copyright (C) 2012, 2015 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -22,28 +22,46 @@
|
|||
set -e
|
||||
|
||||
cat >file <<EOF
|
||||
acc = "IOP.clear_interrupts";
|
||||
"1", "2", "a & b",;
|
||||
"1", "3", "(!a & !b & !c) | (c & a)",;
|
||||
"1", "1", "(!a & !b & !c) | (c & a)", "IOP.clear_interrupts";
|
||||
"1", "4", "!a & !c",;
|
||||
"1", "5", "!a & !c", "IOP.clear_interrupts";
|
||||
"1", "6", "a & b",;
|
||||
"2", "2", "a & b",;
|
||||
"2", "3", "c & a",;
|
||||
"2", "1", "c & a", "IOP.clear_interrupts";
|
||||
"2", "6", "a & b",;
|
||||
"3", "8", "1",;
|
||||
"4", "10", "!c",;
|
||||
"4", "8", "!b & !c",;
|
||||
"5", "3", "!a & !b & !c",;
|
||||
"5", "1", "!a & !b & !c", "IOP.clear_interrupts";
|
||||
"5", "4", "!a & !c",;
|
||||
"5", "5", "!a & !c", "IOP.clear_interrupts";
|
||||
"6", "7", "b",;
|
||||
"6", "8", "c",;
|
||||
"7", "9", "b & !c & !d",;
|
||||
"9", "9", "b & !c",;
|
||||
HOA: v1
|
||||
States: 10
|
||||
Start: 0
|
||||
AP: 4 "a" "b" "c" "d"
|
||||
acc-name: Buchi
|
||||
Acceptance: 1 Inf(0)
|
||||
properties: trans-labels explicit-labels trans-acc
|
||||
--BODY--
|
||||
State: 0
|
||||
[!0&!1&!2 | 0&2] 0 {0}
|
||||
[0&1] 1
|
||||
[!0&!1&!2 | 0&2] 2
|
||||
[!0&!2] 3
|
||||
[!0&!2] 4 {0}
|
||||
[0&1] 5
|
||||
State: 1
|
||||
[0&2] 0 {0}
|
||||
[0&1] 1
|
||||
[0&2] 2
|
||||
[0&1] 5
|
||||
State: 2
|
||||
[t] 6
|
||||
State: 3
|
||||
[!1&!2] 6
|
||||
[!2] 7
|
||||
State: 4
|
||||
[!0&!1&!2] 0 {0}
|
||||
[!0&!1&!2] 2
|
||||
[!0&!2] 3
|
||||
[!0&!2] 4 {0}
|
||||
State: 5
|
||||
[2] 6
|
||||
[1] 8
|
||||
State: 6
|
||||
State: 7
|
||||
State: 8
|
||||
[1&!2&!3] 9
|
||||
State: 9
|
||||
[1&!2] 9
|
||||
--END--
|
||||
EOF
|
||||
|
||||
cat >outexp <<EOF
|
||||
|
|
@ -51,6 +69,6 @@ transitions: 12
|
|||
states: 6
|
||||
EOF
|
||||
|
||||
run 0 ../ltl2tgba -X -ks -RDS file > out
|
||||
run 0 ../ltl2tgba -XH -ks -RDS file > out
|
||||
|
||||
cmp out outexp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue