forked from WebAssembly/binaryen
/
unreachable_blocks.wast
85 lines (85 loc) · 1.4 KB
/
unreachable_blocks.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
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
(module
(import "env" "memory" (memory $0 1))
(table 0 anyfunc)
(func $unreachable_block_void
(block $label$0
)
(return
(i32.const 1)
)
(block $label$1
)
)
(func $unreachable_block_i32 (result i32)
(return
(i32.const 2)
)
(block $label$0 i32
)
)
(func $unreachable_block_i64 (result i64)
(return
(i64.const 3)
)
(block $label$0 i64
)
)
(func $unreachable_block_f32 (result f32)
(return
(f32.const 4.5)
)
(block $label$0 f32
)
)
(func $unreachable_block_f64 (result f64)
(return
(f64.const 5.5)
)
(block $label$0 f64
)
)
(func $unreachable_loop_void
(loop $label$0
(br $label$0)
)
(return
(i32.const 6)
)
(loop $label$1
(br $label$1)
)
)
(func $unreachable_loop_i32 (result i32)
(return
(i32.const 7)
)
(loop $label$0 i32
(br $label$0)
)
)
(func $unreachable_loop_i64 (result i64)
(return
(i64.const 8)
)
(loop $label$0 i64
(br $label$0)
)
)
(func $unreachable_loop_f32 (result f32)
(return
(f32.const 9.5)
)
(loop $label$0 f32
(br $label$0)
)
)
(func $unreachable_loop_f64 (result f64)
(return
(f64.const 10.5)
)
(loop $label$0 f64
(br $label$0)
)
)
)
;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [] }