CCTLib
Calling-context and data-object attribution library for Intel Pin
test6.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #define N (10000000)
3 int A[N];
4 int B[N/2];
5 
6 void g()
7 {
8  int i=0;
9  for (i = 1; i<N; i++){
10  A[i] = 2*B[i-1];
11  B[i] = 0.5;
12  }
13 }
14 
15 void h1()
16 {
17  int i;
18  for (i = 1; i<N/2; i++) B[i] = B[i-1];
19 }
20 
21 void f()
22 {
23  int i;
24  for (i = 1; i<N/2; i++) B[i-1] = B[i];
25 }
26 
27 int main()
28 {
29  f();
30  g();
31  h1();
32  return 0;
33 }
#define N
Definition: test6.c:2
void h1()
Definition: test6.c:15
void g()
Definition: test6.c:6
void f()
Definition: test6.c:21
int main()
Definition: test6.c:27