stats: allow counting complete SCCs
* bin/common_aoutput.cc, NEWS: Update documentation. * spot/twaalgos/stats.cc: Honor c and C. * tests/core/alternating.test: Test it.
This commit is contained in:
parent
223b0c6a9e
commit
1cf5778faa
4 changed files with 74 additions and 6 deletions
|
|
@ -1862,3 +1862,56 @@ EOF
|
|||
autfilt --tgba in 2>out && exit 1
|
||||
grep 'autfilt.*weak.*alternating' out
|
||||
test '2 0 2 2' = "`autfilt --stats='%[Wiw]c %[w]c %[iw]c %[W]c' in`"
|
||||
|
||||
|
||||
cat >in <<EOF
|
||||
HOA: v1
|
||||
States: 2
|
||||
AP: 1 "a"
|
||||
Start: 0
|
||||
Acceptance: 1 Inf(0)
|
||||
--BODY--
|
||||
State: 0
|
||||
[0] 1&0 {0}
|
||||
[!0] 0
|
||||
State: 1
|
||||
[t] 0&1
|
||||
--END--
|
||||
EOF
|
||||
test '0 1 1 0 0' = "`autfilt --stats='%[iw]c %[W]c %[c]c %[C]c %[t]c' in`"
|
||||
|
||||
cat >in <<EOF
|
||||
HOA: v1
|
||||
States: 3
|
||||
AP: 1 "a"
|
||||
Start: 0
|
||||
Acceptance: 1 Inf(0)
|
||||
--BODY--
|
||||
State: 0
|
||||
[t] 0&1
|
||||
State: 1
|
||||
[0] 1&2 {0}
|
||||
[!0] 1
|
||||
State: 2
|
||||
[t] 2&1
|
||||
--END--
|
||||
EOF
|
||||
test '1 1 1 1 0' = "`autfilt --stats='%[iw]c %[W]c %[c]c %[C]c %[t]c' in`"
|
||||
|
||||
cat >in <<EOF
|
||||
HOA: v1
|
||||
States: 3
|
||||
AP: 1 "a"
|
||||
Start: 0
|
||||
Acceptance: 1 Inf(0)
|
||||
--BODY--
|
||||
State: 0
|
||||
[t] 0&1
|
||||
State: 1 {0}
|
||||
[0] 1&2
|
||||
[!0] 1
|
||||
State: 2 {0}
|
||||
[t] 2&1
|
||||
--END--
|
||||
EOF
|
||||
test '2 0 1 1 1' = "`autfilt --stats='%[iw]c %[W]c %[c]c %[C]c %[t]c' in`"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue