forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
O.txt
56 lines (56 loc) · 1.23 KB
/
O.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
(module
(type $0 (func (result i32)))
(type $1 (func (param i64)))
(type $2 (func (param i32) (result i32)))
(export "ret" (func $ret))
(export "waka" (func $if-0-unreachable-to-none))
(export "many-selects" (func $many-selects))
(export "end-if-else" (func $end-if-else))
(export "end-if-else-call" (func $end-if-else-call))
(func $ret (; 0 ;) (; has Stack IR ;) (type $0) (result i32)
(drop
(call $ret)
)
(if
(call $ret)
(return
(i32.const 1)
)
)
(i32.const 999)
)
(func $if-0-unreachable-to-none (; 1 ;) (; has Stack IR ;) (type $1) (param $0 i64)
(unreachable)
)
(func $many-selects (; 2 ;) (; has Stack IR ;) (type $2) (param $0 i32) (result i32)
(select
(i32.const -1073741824)
(select
(i32.const 1073741823)
(local.get $0)
(i32.gt_s
(local.get $0)
(i32.const 1073741823)
)
)
(i32.lt_s
(local.get $0)
(i32.const -1073741824)
)
)
)
(func $end-if-else (; 3 ;) (; has Stack IR ;) (type $2) (param $0 i32) (result i32)
(select
(i32.const 1)
(local.get $0)
(local.get $0)
)
)
(func $end-if-else-call (; 4 ;) (; has Stack IR ;) (type $2) (param $0 i32) (result i32)
(if (result i32)
(local.get $0)
(call $ret)
(local.get $0)
)
)
)