CCTLib
Calling-context and data-object attribution library for Intel Pin
test5.c
Go to the documentation of this file.
1 /* This test is for multiple movs and multiplications */
2 
3 #include <stdio.h>
4 
5 #define MAX 5010
6 
7 
8 int test5(int a){
9  int x, y, z;
10  int b, c, d, e;
11  int i = 0;
12 
13  for(i = 0; i < MAX; ++i){
14  y = x;
15  z = 3 + x;
16  z = x;
17  y = z;
18  b = a * x - c * y;
19  d = y * a;
20  e = c;
21  e = x * e;
22  }
23  return z;
24 }
25 
26 void main(){
27  test5(2);
28 }
int main()
Definition: test5.c:25
int a[1000]
Definition: testArray.c:5
#define MAX
Definition: test5.c:5
int test5(int a)
Definition: test5.c:8