Skip to content

Commit cb480df

Browse files
committed
Add file cleaner for benchs due to other tools generated
1 parent 150c26c commit cb480df

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

scripts/benchs_popl21.sh

+25-20
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,45 @@ echo "Start benchmark running..."
88

99
TOOLS=" dsolve mochi r_type " #
1010
SOLVER=" z3 hoice "
11+
TESTDIR="../tests/benchmarks"
1112

1213
echo "<<----Start experiment 1---->>..."
1314
DOMAIN=" Oct Polka_st Polka_ls "
1415
SEN=""
1516
for i in $(seq 2 $END); do
16-
if [ $i = 1 ]; then
17-
echo "Result for context insensitive..."
18-
else
19-
echo "Result for one context sensitive..."
20-
SEN="-sen"
21-
fi
22-
for domain in ${DOMAIN}; do
23-
echo "./runit.sh -set unv -domain ${domain} ${SEN}"
24-
./runit.sh -set unv -domain ${domain} ${SEN}
25-
echo "./runit.sh -set unv -domain ${domain} -thold ${SEN}"
26-
./runit.sh -set unv -domain ${domain} -thold ${SEN}
27-
done
17+
if [ $i = 1 ]; then
18+
echo "Result for context insensitive..."
19+
else
20+
echo "Result for one context sensitive..."
21+
SEN="-sen"
22+
fi
23+
for domain in ${DOMAIN}; do
24+
echo "./runit.sh -set unv -domain ${domain} ${SEN}"
25+
./runit.sh -set unv -domain ${domain} ${SEN}
26+
echo "./runit.sh -set unv -domain ${domain} -thold ${SEN}"
27+
./runit.sh -set unv -domain ${domain} -thold ${SEN}
28+
done
2829
done
2930

3031
echo "<<----Start experiment 2---->>..."
3132
echo "cp ../result/1-sensitive/unv/res1-polka_ls-thowid.csv ../result/comp_tools/unv/"
3233
cp ../result/1-sensitive/unv/res1-polka_ls-thowid.csv ../result/comp_tools/unv/
3334

3435
for tool in ${TOOLS}; do
36+
echo "Clean benchmarks..."
37+
pushd ${TESTDIR}
38+
find . -type f -not -name '*.ml' -delete
39+
popd
3540
echo "Start running for ${tool}"
3641
if [[ $tool = "mochi" || $tool = "r_type" ]]; then
37-
for solver in ${SOLVER}; do
38-
echo "./${tool}_runit.sh -set unv -${solver}"
39-
./${tool}_runit.sh -set unv -${solver}
40-
done
41-
else
42-
echo "./${tool}_runit.sh -set unv"
43-
./${tool}_runit.sh -set unv
44-
fi
42+
for solver in ${SOLVER}; do
43+
echo "./${tool}_runit.sh -set unv -${solver}"
44+
./${tool}_runit.sh -set unv -${solver}
45+
done
46+
else
47+
echo "./${tool}_runit.sh -set unv"
48+
./${tool}_runit.sh -set unv
49+
fi
4550
done
4651

4752
echo "<<----Generating results---->>..."

0 commit comments

Comments
 (0)