CCTLib
Calling-context and data-object attribution library for Intel Pin
test2.c
Go to the documentation of this file.
1 /* This is the test for div instructions */
2 
3 #include <stdio.h>
4 
5 #define MAX 5010
6 
7 int devide(int num, int divider){
8 
9  int result = num/divider;
10  int a , b ,c, d, i;
11  double e, f, g, h;
12 
13  for(i=0;i < MAX; ++i){
14  a = 10;
15  b = 5;
16  c = a/b;
17  d = 5;
18  a = d/a;
19  e = 20.23;
20  f = 10.12;
21  g = e/f;
22  h = e;
23  f = f/h;
24  }
25 
26  return result;
27 }
28 
29 
30 void main(){
31  devide(1,2);
32 }
void h()
Definition: test2.c:15
void g()
Definition: test2.c:9
void f()
Definition: test2.c:21
int main()
Definition: test2.c:26
int a[1000]
Definition: testArray.c:5
#define MAX
Definition: test2.c:5
int devide(int num, int divider)
Definition: test2.c:7