autfilt: add a --product option
* src/bin/autfilt.cc: Implement the --product option. * src/tgbatest/explprod.cc, src/tgbatest/tripprod.cc: Delete. * src/tgbatest/Makefile.am: Adjust. * src/tgbatest/explpro2.test, src/tgbatest/explpro3.test, src/tgbatest/explpro4.test, src/tgbatest/explprod.test, src/tgbatest/tripprod.test: Rewrite using autfilt --product.
This commit is contained in:
parent
3e266a2a6c
commit
8014833ae3
9 changed files with 295 additions and 211 deletions
|
|
@ -26,37 +26,88 @@
|
|||
set -e
|
||||
|
||||
cat >input1 <<EOF
|
||||
acc = p1;
|
||||
s1, s3, "a", p1;
|
||||
s1, s2, "b", p1;
|
||||
s2, s1, "!a", p1;
|
||||
s2, s3, "c",;
|
||||
HOA: v1
|
||||
States: 3
|
||||
Start: 0
|
||||
AP: 3 "a" "b" "c"
|
||||
acc-name: Buchi
|
||||
Acceptance: 1 Inf(0)
|
||||
properties: trans-labels explicit-labels trans-acc
|
||||
--BODY--
|
||||
State: 0
|
||||
[0] 1 {0}
|
||||
[1] 2 {0}
|
||||
State: 1
|
||||
State: 2
|
||||
[!0] 0 {0}
|
||||
[2] 1
|
||||
--END--
|
||||
EOF
|
||||
|
||||
cat >input2 <<EOF
|
||||
acc = p2 p3;
|
||||
s1, s2, "b", p2;
|
||||
s2, s1, "a", p3;
|
||||
HOA: v1
|
||||
States: 2
|
||||
Start: 0
|
||||
AP: 2 "b" "a"
|
||||
acc-name: generalized-Buchi 2
|
||||
Acceptance: 2 Inf(0)&Inf(1)
|
||||
properties: trans-labels explicit-labels state-acc deterministic
|
||||
--BODY--
|
||||
State: 0 {0}
|
||||
[0] 1
|
||||
State: 1 {1}
|
||||
[1] 0
|
||||
--END--
|
||||
EOF
|
||||
|
||||
cat >input3 <<EOF
|
||||
acc = p4;
|
||||
s1, s2, "a",;
|
||||
s1, s3, "b",;
|
||||
s3, s2,, p4;
|
||||
s2, s3,, p4;
|
||||
HOA: v1
|
||||
States: 3
|
||||
Start: 0
|
||||
AP: 2 "a" "b"
|
||||
acc-name: Buchi
|
||||
Acceptance: 1 Inf(0)
|
||||
properties: trans-labels explicit-labels state-acc
|
||||
--BODY--
|
||||
State: 0
|
||||
[0] 1
|
||||
[1] 2
|
||||
State: 1 {0}
|
||||
[t] 2
|
||||
State: 2 {0}
|
||||
[t] 1
|
||||
--END--
|
||||
EOF
|
||||
|
||||
cat >expected <<EOF
|
||||
acc = "0" "1" "2" "3";
|
||||
"0 * 0 * 0", "1 * 1 * 1", "a & b", "0" "1";
|
||||
"0 * 0 * 0", "2 * 1 * 1", "a & b", "0" "1";
|
||||
"0 * 0 * 0", "1 * 1 * 2", "a & b", "0" "1";
|
||||
"0 * 0 * 0", "2 * 1 * 2", "b", "0" "1";
|
||||
"2 * 1 * 1", "1 * 0 * 2", "a & c", "2" "3";
|
||||
"2 * 1 * 2", "1 * 0 * 1", "a & c", "2" "3";
|
||||
HOA: v1
|
||||
States: 7
|
||||
Start: 0
|
||||
AP: 3 "b" "a" "c"
|
||||
acc-name: generalized-Buchi 4
|
||||
Acceptance: 4 Inf(0)&Inf(1)&Inf(2)&Inf(3)
|
||||
properties: trans-labels explicit-labels state-acc
|
||||
--BODY--
|
||||
State: 0 {0 1}
|
||||
[0&1] 1
|
||||
[0&1] 2
|
||||
[0&1] 3
|
||||
[0] 4
|
||||
State: 1
|
||||
State: 2
|
||||
State: 3 {2 3}
|
||||
[1&2] 5
|
||||
State: 4 {2 3}
|
||||
[1&2] 6
|
||||
State: 5
|
||||
State: 6
|
||||
--END--
|
||||
EOF
|
||||
|
||||
run 0 ../tripprod input1 input2 input3 | tee stdout
|
||||
run 0 ../../bin/autfilt input1 --product input2 --product input3 --hoa |
|
||||
tee stdout
|
||||
|
||||
# FIXME: Use are-isomorphic
|
||||
diff stdout expected
|
||||
|
||||
rm input1 input2 input3 stdout expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue