test: simplify scc.test
Fixes #49. * src/tgbatest/scc.test: Rewrite using ltl2tgba --stats.
This commit is contained in:
parent
1411fa6063
commit
5b74160abb
1 changed files with 8 additions and 47 deletions
|
|
@ -22,52 +22,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cat >formulas<<EOF
|
||||||
run 0 ../ltl2tgba -f -k '(a U c) U b & (b U c)' >stdout
|
((a U c) U b) & (b U c),15,6,5
|
||||||
cat >expected <<EOF
|
b U a,3,2,2
|
||||||
transitions: 15
|
0,0,1,1
|
||||||
states: 6
|
(Gb | F!a) W GFc,22,6,5
|
||||||
total SCCs: 5
|
|
||||||
accepting SCCs: 1
|
|
||||||
dead SCCs: 0
|
|
||||||
accepting paths: 4
|
|
||||||
dead paths: 0
|
|
||||||
EOF
|
EOF
|
||||||
diff stdout expected
|
|
||||||
|
|
||||||
|
run 0 ../../bin/ltl2tgba --low --any --stats='%f,%e,%s,%c' -F formulas/1 >out
|
||||||
run 0 ../ltl2tgba -f -k '(b U a) | (GFa & XG!a)' >stdout
|
cat out
|
||||||
cat >expected <<EOF
|
diff out formulas
|
||||||
transitions: 7
|
|
||||||
states: 4
|
|
||||||
total SCCs: 4
|
|
||||||
accepting SCCs: 1
|
|
||||||
dead SCCs: 1
|
|
||||||
accepting paths: 2
|
|
||||||
dead paths: 1
|
|
||||||
EOF
|
|
||||||
diff stdout expected
|
|
||||||
|
|
||||||
run 0 ../ltl2tgba -f -R3 -k '(b U a) | (GFa & XG!a)' >stdout
|
|
||||||
cat >expected <<EOF
|
|
||||||
transitions: 5
|
|
||||||
states: 3
|
|
||||||
total SCCs: 3
|
|
||||||
accepting SCCs: 1
|
|
||||||
dead SCCs: 0
|
|
||||||
accepting paths: 2
|
|
||||||
dead paths: 0
|
|
||||||
EOF
|
|
||||||
diff stdout expected
|
|
||||||
|
|
||||||
run 0 ../ltl2tgba -f -R3 -k 'XXXX(0)' >stdout
|
|
||||||
cat >expected <<EOF
|
|
||||||
transitions: 0
|
|
||||||
states: 1
|
|
||||||
total SCCs: 1
|
|
||||||
accepting SCCs: 0
|
|
||||||
dead SCCs: 1
|
|
||||||
accepting paths: 0
|
|
||||||
dead paths: 1
|
|
||||||
EOF
|
|
||||||
diff stdout expected
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue