CCTLib
Calling-context and data-object attribution library for Intel Pin
test4.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 int C[N];
6 
7 void g()
8 {
9  int i=0;
10  for (i = 0; i<N; i++) {
11  if (i < N/2)
12  A[i] ++;
13  else
14  C[i] ++;
15  }
16 }
17 
18 void h()
19 {
20  int i;
21  for (i = 0; i<N/2; i++) B[i]++;
22 }
23 
24 void f()
25 {
26  g();
27 }
28 
29 int main()
30 {
31  f();
32  h();
33  return 0;
34 }
#define N
Definition: test4.c:2
void h()
Definition: test4.c:18
void g()
Definition: test4.c:7
int C[N]
Definition: test4.c:5
void f()
Definition: test4.c:24
int main()
Definition: test4.c:29