forked from WebAssembly/binaryen
/
precompute.txt
108 lines (108 loc) · 1.2 KB
/
precompute.txt
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
(module
(type $0 (func (param i32)))
(type $1 (func (result i32)))
(type $2 (func))
(memory $0 0)
(func $x (type $0) (param $x i32)
(call $x
(i32.const 2300)
)
(nop)
(drop
(i32.add
(i32.const 1)
(get_local $x)
)
)
(nop)
(nop)
(nop)
(loop $in
(br $in)
)
(nop)
(block $c
(nop)
(call $x
(i32.const 4)
)
(br $c)
(br $c)
)
(drop
(block $val i32
(nop)
(call $x
(i32.const 4)
)
(br $val
(i32.const 101)
)
(br $val
(i32.const 102)
)
)
)
(nop)
(drop
(block $d0 i32
(call $x
(i32.const 5)
)
(nop)
(i32.const 1)
)
)
(drop
(block $d2 i32
(call $x
(i32.const 6)
)
(nop)
(i32.const 1)
)
)
(drop
(block $d4 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 (type $1) (result i32)
(if
(call $ret)
(return
(i32.const 0)
)
)
(if
(call $ret)
(return
(i32.const 1)
)
)
(i32.const 1)
)
(func $noret (type $2)
(if
(call $ret)
(return)
)
)
)