blob: aa2a91528fd64f1697b0259765e057dd1d3a3159 (
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
|
$stacky-help:
0 const (i32)
1 call (i32)
2 const (i32)
3 call (i32)
4 set_local (none)
5 const (i32)
6 call (i32)
7 drop (none)
8 get_local (i32)
9 unary (i32)
10 binary (i32)
(module
(type $0 (func (param i32) (result i32)))
(export "stacky-help" (func $stacky-help))
(func $stacky-help (; 0 ;) (; has Stack IR ;) (type $0) (param $0 i32) (result i32)
(local $1 i32)
(i32.add
(call $stacky-help
(i32.const 0)
)
(block (result i32)
(set_local $1
(call $stacky-help
(i32.const 1)
)
)
(drop
(call $stacky-help
(i32.const 2)
)
)
(i32.eqz
(get_local $1)
)
)
)
)
)
|