-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinput.c
62 lines (54 loc) · 1.27 KB
/
input.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <math.h>
#include <stdint.h>
int mm = 188;
struct A {
int a;
int b;
};
struct B {
int m;
struct A a;
};
__attribute((__annotate__(("bcf"))))
int bcftest(int* returunvalue, struct B *b){
printf("- :%f\n", 3.14);
*returunvalue = b->m;
int a = 1;
for(a = 0; a < 10; a++){
printf("%d\n", a);
}
printf("ref global: %d", mm);
return a;
}
__attribute((__annotate__(("fla"))))
int flatest(int* returunvalue, struct B *b){
printf("- :%f\n", 3.14);
*returunvalue = b->m;
int a = 1;
for(a = 0; a < 10; a++){
printf("%d\n", a);
}
printf("stack size ====== : %x\n", stacksize);
return 0;
}
int main(){
struct B bb;
bb.m = 0x99;
int returunvalue;
printf("==================================================================================\n");
bcftest(&returunvalue, &bb);
printf("hello: 0x%x\n", returunvalue);
printf("==================================================================================\n");
bb.m = 0x66;
int ret2 = flatest(&returunvalue, &bb);
printf("hello: 0x%x\n", returunvalue);
return 0;
}