-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBenchKit_head.sh
70 lines (60 loc) · 1.58 KB
/
BenchKit_head.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# main for SMPT tool
# run from within execution dir
echoerr() { echo "$@" 1>&2; }
# We only compete in the Reachability category.
if [ "$BK_EXAMINATION" != "ReachabilityCardinality" ] && [ "$BK_EXAMINATION" != "ReachabilityFireability" ]
then echoerr Reachability False; echo DO_NOT_COMPETE; exit 0
else echoerr Reachability True
fi
if [ "$BK_EXAMINATION" == "ReachabilityFireability" ]
then fireability="--fireability"
else fireability=""
fi
# time confinement
total_time=$BK_TIME_CONFINEMENT
# set home
host=`hostname`
echoerr Host $host
home=/home/mcc/BenchKit
# set environment variables
if [ -f large_marking ]
then
echoerr large_marking
export PATH=/opt/python/3.11.2/bin:$home/bin:$home/bin/tina-int64/:$home/bin/latte/bin:$home/bin/z3/bin:$home/bin/Octant:$PATH
project=""
else
export PATH=/opt/python/3.11.2/bin:$home/bin:$home/bin/tina/:$home/bin/latte/bin:$home/bin/z3/bin:$home/bin/Octant:$PATH
project="--project"
fi
# set memory limit
MEM="15000000"
ulimit -v $MEM
# SMPT options
#
timeout="--global-timeout $total_time"
reduce="--auto-reduce"
methods="--methods DUMMY"
mcc="--mcc"
techniques="--show-techniques"
#
# colored option
if [ `cat iscolored` == "TRUE" ]
then
echoerr Colored True
colored="--colored"
else
echoerr Colored False
colored=""
fi
#
# input model
model="-n $(pwd)/model.pnml"
#
# properties
properties="--xml $(pwd)/$BK_EXAMINATION.xml"
# main
cd $home/bin/SMPT
while ! python3.11 -m smpt $model $colored $reduce $project $properties $fireability $timeout $methods $mcc $techniques ; do
echo "# RESTARTING SMPT"
done