stutter: new variant of Etessami's check
* src/tgbaalgos/stutter.cc: Add a new variant of Etessami's check, closer to his original paper in IPL. * src/ltltest/stutter.test: Add more tests. * bench/stutter/user.sh: Include this new variant in the benchmark.
This commit is contained in:
parent
ecfd9b7776
commit
9e959cdc7e
3 changed files with 45 additions and 8 deletions
|
|
@ -42,7 +42,7 @@ for i in 10 12 14 16 18 20; do
|
|||
$randltl --seed 100 --tree-size $i a b c d e f -n 100 >> $FILE
|
||||
done
|
||||
|
||||
# We do not check i=0, it is too slow.
|
||||
# We do not check i=0 and i=9, as they are too slow.
|
||||
for i in 1 2 3 4 5 6 7 8; do
|
||||
SPOT_STUTTER_CHECK=$i
|
||||
export SPOT_STUTTER_CHECK
|
||||
|
|
@ -53,3 +53,26 @@ done
|
|||
for i in 2 3 4 5 6 7 8; do
|
||||
diff res.1 res.$i
|
||||
done
|
||||
|
||||
|
||||
# Do a similar test on fewer formulas, so we can cover 0 and 9.
|
||||
cat >$FILE <<EOF
|
||||
F(a & X(!a & b))
|
||||
F(a & X(!a & Xb))
|
||||
F(a & X!a & Xb)
|
||||
F(a & X(a & Xb))
|
||||
F(a & Xb)
|
||||
Xa
|
||||
EOF
|
||||
|
||||
# We do not check i=0 and i=9, as they are too slow.
|
||||
for i in 0 1 2 3 4 5 6 7 8 9; do
|
||||
SPOT_STUTTER_CHECK=$i
|
||||
export SPOT_STUTTER_CHECK
|
||||
$time $ltlfilt --stutter-invariant -F $FILE > res.$i
|
||||
done
|
||||
|
||||
# All results should be equal
|
||||
for i in 1 2 3 4 5 6 7 8 9; do
|
||||
diff res.0 res.$i
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue