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
32
bench/gspn-ssp/tools/runbench
Executable file
32
bench/gspn-ssp/tools/runbench
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
formula=`sed -n "$2{p;q}" $1`
|
||||
check=$3
|
||||
model=$4
|
||||
|
||||
. ./defs
|
||||
|
||||
cp -r models/$model tmp-$$
|
||||
cd tmp-$$
|
||||
case $model in
|
||||
*.rg)
|
||||
if [ ! -f $model.snow ]; then
|
||||
$TIME $LTLGSPNSRG $check $model "$formula" `cat $model.ap` 2>&1
|
||||
else
|
||||
PROPS=`echo $formula | sed 's/P[0-9]/&,\n/g' | sed 's/.*P/P/' |
|
||||
grep P | sort -u | tr -d '\n' | sed 's/,$//'`
|
||||
$SNOW -m $model.cami -p $model.snow -f "$PROPS"
|
||||
$TRANS2PL model
|
||||
mv model.nettmp model.net
|
||||
$TIME $LTLGSPNSRG $check $model "$formula" \
|
||||
`echo $PROPS | tr ',' ' '` 2>&1
|
||||
fi;;
|
||||
*)
|
||||
$TIME $LTLGSPNSSP $check $model "$formula" "$model.con" `cat $model.ap` 2>&1 ;;
|
||||
esac
|
||||
test -f $model.mark || touch $model.mark
|
||||
test -f $model.event || touch $model.event
|
||||
du -b *.mark *.event | cut -f 1
|
||||
|
||||
cd ..
|
||||
rm -rf tmp-$$
|
||||
Loading…
Add table
Add a link
Reference in a new issue