blob: 5f750a1a8cea803414b68c542b8453cf67a5baca (
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
|
(module
(type $0 (func (result i32)))
(type $1 (func))
(import "import" "import" (func $import (type $1)))
(global $global1 (mut i32) (i32.const 11))
(global $global2 (mut i32) (i32.const 12))
(global $global3 (mut i32) (i32.const 13))
(global $global4 (mut i32) (i32.const 14))
(global $global5 (mut i32) (i32.const 15))
(export "test1" (func $test1_7))
(export "test3" (func $test3_8))
(export "test5" (func $test5_9))
(export "keepalive" (func $keepalive))
(func $test1 (type $1)
(global.set $global1
(i32.const 11)
)
)
(func $test2 (type $1)
(global.set $global2
(i32.const 12)
)
)
(func $test3 (type $0) (result i32)
(global.set $global3
(i32.const 13)
)
(i32.const 42)
)
(func $test4 (type $0) (result i32)
(global.set $global4
(i32.const 14)
)
(i32.const 55)
)
(func $test5 (type $0) (result i32)
(global.set $global5
(i32.const 15)
)
(call $import)
(i32.const 100)
)
(func $keepalive (type $0) (result i32)
(call $test1)
(call $test2)
(drop
(call $test3)
)
(drop
(call $test4)
)
(drop
(call $test5)
)
(i32.add
(i32.add
(global.get $global1)
(global.get $global2)
)
(i32.add
(global.get $global3)
(i32.add
(global.get $global4)
(global.get $global5)
)
)
)
)
(func $test1_7 (type $1)
(nop)
)
(func $test3_8 (type $0) (result i32)
(i32.const 42)
)
(func $test5_9 (type $0) (result i32)
(call $import)
(i32.const 100)
)
)
|