blob: 5533d4cae9a6ae025449c31b8736bc1d92cd6040 (
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
|
(module
(type $FUNCSIG$vii (func (param i32 i32)))
(import "env" "memory" (memory $0 256 256))
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "add" (func $add))
(export "ret" (func $ret))
(export "opts" (func $opts))
(func $add (param $0 i32) (param $1 i32) (result i32)
(i32.add
(get_local $1)
(get_local $1)
)
)
(func $ret (param $0 i32) (result i32)
(i32.add
(i32.shl
(get_local $0)
(i32.const 1)
)
(i32.const 1)
)
)
(func $opts (param $0 i32) (param $1 i32) (result i32)
;; even-opted.cpp:2
(set_local $1
(i32.shr_s
(get_local $1)
(tee_local $0
(i32.add
(get_local $0)
(get_local $1)
)
)
)
)
(i32.add
(i32.rem_s
(get_local $0)
(get_local $1)
)
(get_local $1)
)
)
)
|