forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dce_vacuum.wast
51 lines (49 loc) · 848 Bytes
/
dce_vacuum.wast
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
(module
(func $__Z12serveroptionPc (result i32)
(block $switch$0
(return
(i32.const 0)
)
(br $switch$0)
)
(return
(i32.const 0)
)
)
(func $drop-unreachable (param $var$0 f32) (param $var$1 f32) (result f32)
(block $label$0 (result f32)
(loop $label$2
(drop
(unreachable)
)
(unreachable)
)
(local.get $var$1)
)
)
(func $set-unreachable (param $var$0 i64) (result i64)
(local $var$1 i64)
(local $var$2 i64)
(block $label$0 (result i64)
(block $label$1
(loop $label$2
(if
(i64.eq
(local.get $var$1)
(i64.const 0)
)
(unreachable)
(local.set $var$2
(i64.mul
(unreachable)
(local.get $var$2)
)
)
)
(br $label$2)
)
)
(local.get $var$2)
)
)
)