Build the benchmark in bench/gspn-ssp/ using makefiles
This commit is contained in:
parent
b83349d416
commit
56d1dbc610
20 changed files with 8643 additions and 146 deletions
69
bench/gspn-ssp/tools/bench-create
Executable file
69
bench/gspn-ssp/tools/bench-create
Executable file
|
|
@ -0,0 +1,69 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test ! -d models; then
|
||||
echo "Error: this script should be run from the parent of the models/ directory." 2>&1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
out=bench.mk
|
||||
rm -f $out
|
||||
exec >$out
|
||||
|
||||
echo "# This file is automatically generated by bench-create, do not edit."
|
||||
echo
|
||||
|
||||
F=50
|
||||
|
||||
allres=
|
||||
|
||||
cd models
|
||||
for i in *; do
|
||||
|
||||
Ffile=models/$i/formulae
|
||||
echo "############################## $i ##############################"
|
||||
echo
|
||||
echo "models/$i/formulae: models/$i/stamp"
|
||||
echo " mkdir -p results"
|
||||
echo " \$(top_builddir)/src/ltltest/randltl -F $F -u -s 0 -f 10 -r 7 \`cat models/$i/$i.ap\` > \$@"
|
||||
echo
|
||||
|
||||
cd $i
|
||||
for ltl2tgba in -f; do
|
||||
case $i in
|
||||
*.rg) checks=e2;;
|
||||
*) checks='e4 e6 e5 e5L e5n e2 e45 e45n';;
|
||||
esac
|
||||
for check in $checks; do
|
||||
|
||||
case $check in
|
||||
*L) check="${check%L} -L";;
|
||||
*n) check="${check%n} -n";;
|
||||
esac
|
||||
check="${check## } $ltl2tgba"
|
||||
|
||||
resall=`echo results/$i.$check | tr -d ' ' `
|
||||
all=
|
||||
for fi in `seq 1 $F`; do
|
||||
res=`echo $resall-$fi.log | tr -d ' ' `
|
||||
echo "$res: $Ffile"
|
||||
echo " \$(run_bench) $Ffile $fi '-$check' $i > \$@.tmp"
|
||||
echo " mv \$@.tmp \$@"
|
||||
all="$all $res"
|
||||
done
|
||||
|
||||
echo
|
||||
echo "$resall.all: $all"
|
||||
echo " \$(collate) $all > \$@.tmp"
|
||||
echo " mv \$@.tmp \$@"
|
||||
echo
|
||||
|
||||
allres="$allres $resall.all"
|
||||
done
|
||||
done
|
||||
cd ..
|
||||
done
|
||||
|
||||
echo "RESULTS =$allres"
|
||||
|
||||
cd ..
|
||||
chmod -w $out
|
||||
Loading…
Add table
Add a link
Reference in a new issue