-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstats.sh
More file actions
executable file
·41 lines (34 loc) · 913 Bytes
/
stats.sh
File metadata and controls
executable file
·41 lines (34 loc) · 913 Bytes
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
#!/bin/sh
FILE=$1
for i in YES NO MAYBE TIMEOUT; do
cat $FILE | grep ask | grep $i | awk '{print $2, $4}' > $FILE.$i
# echo 0 0 >> $FILE.$i
done
GNUPLOT=gnuplot
CMD="set terminal aqua\n"
CMD="$CMD set title \"AProVE times for $FILE\"\n"
CMD="$CMD set autoscale\n"
CMD="$CMD set xlabel \"Call number\"\n"
CMD="$CMD set ylabel \"Time (s)\"\n"
CMD="$CMD plot "
DIRTY=0
for i in YES NO MAYBE TIMEOUT; do
if [ "0" != `du $FILE.$i | awk '{print $1}'` ]; then
if [ 1 -eq $DIRTY ]; then
CMD="$CMD, "
fi
CMD="$CMD \"$FILE.$i\" using 1:2 title '$i' with linespoints"
case "$i" in
"YES" ) CMD="$CMD lt 2"
;;
"NO" ) CMD="$CMD lt 1"
;;
"MAYBE" ) CMD="$CMD lt 4"
;;
"TIMEOUT" ) CMD="$CMD lt 3"
;;
esac
DIRTY=1
fi
done
echo -e $CMD