blob: 4f15dc9c020e1143e05a8f0c261f22ec31c1b9c4 (
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
|
(module
(memory 256 256)
(type $0 (func (param i32)))
(type $1 (func))
(type $2 (func (result i32)))
(func $b14 (type $2)
(drop
(if (result i32) ;; with shrinking, this can become a select
(i32.const 1)
(then
(block $block1 (result i32)
(i32.const 12)
)
)
(else
(block $block3 (result i32)
(i32.const 27)
)
)
)
)
(drop
(if (result i32)
(i32.const 1)
(then
(i32.load (i32.const 10)) ;; load may have side effects, unless ignored
)
(else
(i32.const 27)
)
)
)
(drop
(if (result i32)
(i32.const 1)
(then
(i32.rem_s (i32.const 11) (i32.const 12)) ;; rem may have side effects, unless ignored
)
(else
(i32.const 27)
)
)
)
(drop
(if (result i32)
(i32.const 1)
(then
(i32.trunc_f64_u (f64.const 12.34)) ;; float to int may have side effects, unless ignored
)
(else
(i32.const 27)
)
)
)
(i32.const 0)
)
(func $join-br_ifs
(block $out
(br_if $out (i32.const 1))
(br_if $out (i32.const 2))
(br_if $out (i32.const 3))
)
(block $out2
(block $out3
(br_if $out2 (i32.const 1))
(br_if $out3 (i32.const 2))
(br_if $out2 (i32.const 3))
)
(unreachable)
)
(block $out4
(block $out5
(br_if $out4 (i32.const 1))
(br_if $out5 (i32.const 2))
(br_if $out5 (i32.const 3))
)
(unreachable)
)
(block $out6
(block $out7
(br_if $out6 (i32.const 1))
(br_if $out6 (i32.const 2))
(br_if $out7 (i32.const 3))
)
(unreachable)
)
(block $out8
(br_if $out8 (call $b14)) ;; side effect
(br_if $out8 (i32.const 0))
)
(block $out8
(br_if $out8 (i32.const 1))
(br_if $out8 (call $b14)) ;; side effect
)
)
)
|