Adding ipython notebook to visualize stutter-invariance benchmarks.

* bench/stutter/stutter_bench.sh: Collect benchmarks for different
number of atomic propositions in a single csv file.
* bench/stutter/stutter.ipynb: Visualize benchmarks generated by
stutter_bench.sh.
This commit is contained in:
Thibaud Michaud 2014-11-14 14:33:13 +01:00 committed by Alexandre Duret-Lutz
parent 0250a32747
commit 94854ac7be
2 changed files with 341 additions and 0 deletions

318
bench/stutter/stutter.ipynb Normal file

File diff suppressed because one or more lines are too long

23
bench/stutter/stutter_bench.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
OUTPUT=bench_formulas.csv
RANDLTL=../../src/bin/randltl
LTLFILT=../../src/bin/ltlfilt
if test -f bench_formulas.csv; then
echo -n "$OUTPUT already exists. [a]ppend, [r]emove it or [q]uit?"
read ans
if test "$ans" = "r"; then
rm "$OUTPUT"
else if test "$ans" = "q" -o "$ans" != "a"; then
echo "abort."
exit 0
fi
fi
fi
for ap in 1 2 3 4; do
echo "Generating benchmarks for formulas with $ap atomic propositions..."
$RANDLTL $ap --tree-size=..30 -n 20000 | $LTLFILT --ap=$ap |
./stutter_invariance_formulas -F- >> "$OUTPUT"
done