* bench/stutter/stutter_bench.sh: Add headers in the CSV files, and also run stutter_invariance_randomgraph. * bench/stutter/stutter_invariance_formulas.cc: Remove space from CSV output. * bench/stutter/stutter_invariance_randomgraph.cc: Likewise, plus fix the call to is_stutter_invariant(), and return an average time. * bench/stutter/stutter.ipynb: Adjust. * bench/stutter/README: Simplify. * bench/stutter/Makefile.am: Distribute the script and python notebook.
17 lines
537 B
Bash
Executable file
17 lines
537 B
Bash
Executable file
#!/bin/sh
|
|
|
|
RANDLTL=../../src/bin/randltl
|
|
LTLFILT=../../src/bin/ltlfilt
|
|
|
|
OUTPUT=bench_formulas.csv
|
|
echo 'formula,algo,ap,states,result,time' > "$OUTPUT"
|
|
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
|
|
|
|
echo "Generating benchmarks for random graphs..."
|
|
OUTPUT=bench_randgraph.csv
|
|
echo 'algo,ap,states,result,time' > "$OUTPUT"
|
|
./stutter_invariance_randomgraph >> "$OUTPUT"
|