CCTLib
Calling-context and data-object attribution library for Intel Pin
test4.c
Go to the documentation of this file.
1
/* This test is for bit shifting operations */
2
3
#include <stdio.h>
4
5
#define MAX 5010
6
7
int
logical
(
int
a
,
int
b){
8
9
int
c, d, e,
f
,
g
,
h
;
10
unsigned
long
long
cc, dd;
11
unsigned
long
ee, ff;
12
int
i;
13
14
for
(i = 0; i <
MAX
; ++i){
15
c =
a
& b;
16
cc = (
unsigned
long
long)c;
17
ee = cc >> 32;
18
ff = cc << 32;
19
ee = (
unsigned
long)c;
20
dd = ee | ff;
21
}
22
if
( cc == dd)
23
printf(
"cc and dd is the same!\n"
);
24
return
c;
25
}
26
27
void
main
(){
28
logical
(1,2);
29
}
30
h
void h()
Definition:
test4.c:18
g
void g()
Definition:
test4.c:7
f
void f()
Definition:
test4.c:24
main
int main()
Definition:
test4.c:29
a
int a[1000]
Definition:
testArray.c:5
logical
int logical(int a, int b)
Definition:
test4.c:7
MAX
#define MAX
Definition:
test4.c:5
clients
valueNum_test
test4.c
Generated on Wed Jul 15 2026 04:51:30 for CCTLib by
1.9.1