blob: 8b2d82f64635a0a721cc29f84f118fac63e8c448 (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
(module
(type $0 (func (param i32)))
(type $1 (func (result i32)))
(type $2 (func))
(type $3 (func (result f64)))
(type $4 (func (result v128)))
(memory $0 0)
(global $global i32 (i32.const 1))
(global $global-mut (mut i32) (i32.const 2))
(func $x (; 0 ;) (type $0) (param $x i32)
(call $x
(i32.const 2300)
)
(nop)
(drop
(i32.add
(i32.const 1)
(local.get $x)
)
)
(nop)
(nop)
(nop)
(loop $in
(br $in)
)
(nop)
(block $c
(nop)
(call $x
(i32.const 4)
)
(br $c)
(br $c)
)
(drop
(block $val (result i32)
(nop)
(call $x
(i32.const 4)
)
(br $val
(i32.const 101)
)
(br $val
(i32.const 102)
)
)
)
(nop)
(drop
(block $d0 (result i32)
(call $x
(i32.const 5)
)
(nop)
(i32.const 1)
)
)
(drop
(block $d2 (result i32)
(call $x
(i32.const 6)
)
(nop)
(i32.const 1)
)
)
(drop
(block $d4 (result i32)
(call $x
(i32.const 7)
)
(nop)
(i32.const 2)
)
)
(call $x
(i32.const 2)
)
(call $x
(i32.const 1)
)
(call $x
(i32.const 0)
)
(call $x
(i32.const 0)
)
)
(func $ret (; 1 ;) (type $1) (result i32)
(if
(call $ret)
(return
(i32.const 0)
)
)
(if
(call $ret)
(return
(i32.const 1)
)
)
(i32.const 1)
)
(func $noret (; 2 ;) (type $2)
(if
(call $ret)
(return)
)
)
(func $refinalize-br-condition-unreachable (; 3 ;) (type $2)
(block $label$1
(drop
(br_if $label$1
(unreachable)
)
)
)
)
(func $br_if-condition-is-block-i32-but-unreachable-so-refinalize-tricky (; 4 ;) (type $2)
(drop
(block $label$1 (result i32)
(drop
(br_if $label$1
(i32.const 100)
(block $label$3
(unreachable)
)
)
)
(i32.const 0)
)
)
)
(func $reuse-br-value (; 5 ;) (type $3) (result f64)
(block $label$0 (result f64)
(i32.store8
(i32.const 1919623207)
(if (result i32)
(i32.const 1)
(block $label$2
(drop
(i64.and
(i64.trunc_f32_u
(f32.const 70847791997969805621592064)
)
(i64.const 729618461987467893)
)
)
(br $label$0
(f64.const 6.134856208230095e-154)
)
)
(i32.load offset=3 align=2
(i32.const 169901344)
)
)
)
(f64.const 4776014875438170098655851e156)
)
)
(func $refinalize-two-breaks-one-unreachable (; 6 ;) (type $2)
(drop
(block $label$0 (result i64)
(block
(select
(i64.const 1)
(block $block
(global.set $global-mut
(i32.const 1)
)
(br $label$0
(i64.const -22)
)
)
(i32.const 0)
)
(drop
(i32.const 1)
)
)
)
)
)
(func $one-break-value-and-it-is-unreachable (; 7 ;) (type $3) (result f64)
(local $var$0 i32)
(block $label$6
(block
(unreachable)
(drop
(i32.const 0)
)
)
)
)
(func $global-notprecomputable (; 8 ;) (type $1) (result i32)
(i32.add
(i32.const 1)
(global.get $global-mut)
)
)
(func $global-precomputable (; 9 ;) (type $1) (result i32)
(i32.const 2)
)
(func $global-partiallyprecomputable (; 10 ;) (type $1) (result i32)
(i32.sub
(i32.add
(i32.const 1)
(global.get $global-mut)
)
(i32.const 2)
)
)
(func $no-simd-precompute (; 11 ;) (type $4) (result v128)
(i32x4.splat
(i32.const 0)
)
)
)
|