-
Notifications
You must be signed in to change notification settings - Fork 0
/
runclsl.sh
executable file
·56 lines (42 loc) · 1.39 KB
/
runclsl.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
#! /bin/bash
set -x
set -e
form=$1
#for form in INPUTS/*/LTLCardinality.?.xml INPUTS/*/LTLCardinality.??.xml INPUTS/*/LTLFireability.?.xml INPUTS/*/LTLFireability.??.xml ;
#do
echo "form=$form" ;
mod=$(echo $form | sed 's/LTL/model.LTL/' | sed 's/.xml/.pnml/');
echo "mod=$mod "
redform=$(echo $form | sed 's/.xml/.red.xml/') ;
echo "redform=$redform"
redmod=$(echo $mod | sed 's/.pnml/.red.pnml/');
echo "redmod=$redmod"
modname=$(echo $mod | sed 's/INPUTS\///' | sed 's/\/.*//g')
echo "modname=$modname"
exam=$(echo $form | sed 's/\..*//g' | sed 's/.*\///g');
echo "exam=$exam"
formname=$(echo $form | sed 's/\.xml//' | sed 's/.*\///g');
echo "formname=$formname"
echo "Treating:$modname-$formname"
mkdir INPUTS/$modname-$formname
cp $form INPUTS/$modname-$formname/$exam.xml
cp $mod INPUTS/$modname-$formname/model.pnml
mkdir INPUTS/$modname-$formname.red
cp $redform INPUTS/$modname-$formname.red/$exam.xml
cp $redmod INPUTS/$modname-$formname.red/model.pnml
export PATH=$PATH:/home/ythierry/usr/local/bin/
export BK_BIN_PATH=/home/ythierry/tapaal/MCC/
export BK_TIME_CONFINEMENT=960
export BK_TOOL=tapaal
export BK_EXAMINATION=$exam
export TEMPDIR=/tmp/
echo "NO REDUCTION"
cd INPUTS/$modname-$formname
$BK_BIN_PATH/BenchKit_head.sh
cd ../..
echo "REDUCTION"
cd INPUTS/$modname-$formname.red
$BK_BIN_PATH/BenchKit_head.sh
cd ../..
# break
#done ;