runbench 868 Bytes
Newer Older
1
2
3
4
5
6
#!/bin/sh

formula=`sed -n "$2{p;q}" $1`
check=$3
model=$4

7
. ./defs || exit 1
8

9
10
11
12
cp -r models/$model $TMPDIR/tmp-$$ || exit 1
cd $TMPDIR/tmp-$$ || exit 1

(
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
32
)
33

34
rm -rf $TMPDIR/tmp-$$