-
Notifications
You must be signed in to change notification settings - Fork 2
/
mytest.c
80 lines (71 loc) · 894 Bytes
/
mytest.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
struct test
{
int a, b, c, d, e, f, g, h, i;
};
int global = 9;
int global2 = 10;
int MyTest( int a, unsigned char ll, unsigned char b, struct test t )
{
int r;
int k;
a+=353*4;
global +=5;
ll = ~ll;
r = a+ll+b;
r = r - 5;
r = 5 - r;
k = t.g * ll;
if( k == 36 )
{
int m = r * k;
r += m;
}
else
{
r+= 9;
}
r = t.a;
r += 9+a;
r += global;
return r * k;
}
int quickret( int a )
{
return a+5;
}
int strtest( const char * st )
{
int ret = 0;
int c;
while( (c = *(st++)) )
ret += c;
return ret;
}
void AnotherTest( int k )
{
int a;
int r;
for( a = 0; a < k; a++ )
{
r = r + 1;
}
//global = global + 5;
}
void VoidTest()
{
reglob:
global++;
if( global < 100 ) goto reglob;
}
int _start()
{
struct test t;
t.a = 4;
t.g = 6;
global++;
global2++;
VoidTest();
AnotherTest(1);
strtest( "hello, world" );
return MyTest( 0xdeadbeef, 9, 6, t );
}