-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathtest.c
More file actions
77 lines (66 loc) · 878 Bytes
/
test.c
File metadata and controls
77 lines (66 loc) · 878 Bytes
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
void f_land(int x, int y) {
if (x && y) {
x = 3;
}
}
void f_lor(int x, int y) {
if (x || y) {
x = 3;
}
}
void f_if_quest2(int x, int y) {
if (x ?: y) {
x = 3;
}
}
void f_if_quest3(int x, int y, int z) {
if (x ? y : z) {
x = 3;
}
}
void f_agg(void) {
int i[] = {1, 2 + 3, 4 + 5, 6};
}
void f_do_while(int i) {
do {
i--;
} while (i);
}
void f_computed_goto(void) {
int x;
void *ptr;
x = 10;
myLabel:
x--;
ptr = &&myLabel;
x--;
if (x) {
goto *ptr;
}
}
int odasa4753a(void) {
if (1) {
return 1;
}
return 0;
}
int odasa4753b(void) {
if (0) {
return 1;
}
return 0;
}
int odasa4762a(int b)
{
if(1 && b) {
return 1;
}
return 0;
}
int odasa4762b(int b)
{
if(0 || b) {
return 1;
}
return 0;
}