-
Notifications
You must be signed in to change notification settings - Fork 0
/
test
106 lines (90 loc) · 1.17 KB
/
test
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
int x, y, z;
int boo(int input[]) {
-- Some sort of compound statement
{
int t;
t := 42;
; -- Check out this null statement. AH YEAH
}
input[1] := readint();
if(input[1] = 4) {
writeint(input[1]);
return 3;
}
branch (input[0])
case 4:
return input[0] * 2;
default:
return input[0] * 500;
/*case 4:
return input[0] - 4;*/
end;
return 5;
}
/*int readint(void) {
return 6;
}*/
void foo(void) {
return;
}
int main(void) {
int x[4], y;
int bad[1*3];
bool yourFace;
bool youSuck;
int meaning_of_life;
x[0] := 0+1;
x[1] := boo(x);
/*y := foo();
boo(x);*/
if(y < 3) {
;
}
if(x[y-1]=0){
yourFace := not true;
youSuck := true;
}
else{
x:=-5;
}
-- Dangling else
if(yourFace)
if(x[0] = 1)
x[0] := 2;
else
x[1] := 1;
if(youSuck)
if(x[0] = 1)
x[2] := 2;
else
x[3] := 1;
else
youSuck := true;
loop x:=x*(1+2);
if(x>=10)
exit;
if(y = 4) {
continue;
}
end;
loop x:=x+1;
loop y:=y+1;
exit;
end;
if(y = 7) {
int xyz;
loop x:=x-1;
exit;
end;
}
continue;
end;
if(true && true){
youSuck := readbool();
}
if(true || false){
writebool(youSuck);
}
meaning_of_life := 42;
return 3;
}