spot/bench/stutter/user.sh
Alexandre Duret-Lutz 9e959cdc7e 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.
2015-04-17 15:18:47 +02:00

23 lines
680 B
Bash
Executable file

#!/bin/sh
RANDLTL=../../src/bin/randltl
LTLFILT=../../src/bin/ltlfilt
LTLDO=../../src/bin/ltldo
set -e -x
(
must_exit=false
echo ap,algo,time,matched,exit.status
for ap in 1 2 3; do
$RANDLTL $ap --tree-size=..30 -n -1 | $LTLFILT --ap=$ap | $LTLFILT -v --nox -n 500 > formulas
for algo in 1 2 3 4 5 6 7 8 0 9; do
es=0
SPOT_STUTTER_CHECK=$algo /usr/bin/time -o user-$ap-$algo.csv -f "$ap,$algo,%e" $LTLFILT --stutter-invariant formulas > matched-$ap-$algo.ltl || must_exit=true es=$?
matched=`wc -l < matched-$ap-$algo.ltl`
csv=`tail -n 1 user-$ap-$algo.csv`
echo $csv,$matched,$es
rm -f user-$ap-$algo.csv
$must_exit && exit 0
done
done
) > ltl-user-bench.csv