blob: b7c8794d06c5b65978ae5565b50c94c504c0206d (
plain)
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
107
108
109
110
111
|
-- If pattern --
// block A
if (check == 10) {
atob();
// block B
btoc();
} else {
atoc();
}
// block C
-- If-else pattern --
// block A
if (check == 15) {
// block B
} else {
// block C
}
// block D
-- Loop + tail pattern --
while(1) {
// block A
var check = maybe();
// block B
if (!(check == 41)) {
break;
}
}
// block C
-- Loop with phi to head
// code 1
var $i_0 = 0;var $x_0 = 5;
while(1) {
// code 2
if (!($2)) {
var $x_1 = $x_0;
label = 19;
break;
}
// code 3
if ($6) {
break;
} else {
var $i_0 = $7;var $x_0 = $5;
}
}
if (label == 19) {
// code 7
}
// code 4
if ($10) {
// code 5
}
// code 6
var $x_1 = $13;
// code 7
-- phi on split dead ends --
// block A...................................................................................................
if (chak()) {
atob();
// block B...................................................................................................
btod();
// block D
} else {
atoc();
// block C...................................................................................................
ctod2();
// block D
}
-- Unbalanced with a dead end --
// block A
if (!(check == 10)) {
return C;
}
while(1) {
// block B
// block D
}
|