-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript
More file actions
51 lines (38 loc) · 775 Bytes
/
script
File metadata and controls
51 lines (38 loc) · 775 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
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
C=17
c=15
v=4
count=0
B=8
while [ "$B" -le "$C" ]
do
S=0
while [ "$S" -le "$C" ]
do
first=$(($B + $S))
if [ "$first" -gt "$C" ]
then
break
fi
b=8
while [ "$b" -le "$B" ]
do
s=0
while [ "$s" -le 4 ]
do
second=$(($b + $s))
if [ "$second" -gt "$c" ]
then
break
fi
./cachesim -C "$C" -B "$B" -S "$S" -c "$c" -b "$b" -s "$s" -v "$v" < traces/astar.trace
let count=count+1
echo $count
let s=s+1
done
let b=b+1
done
let S=S+1
done
let B=B+1
done