blob: 0e118dc13dd90f7821c6d0812b72d9ce44bb66ab (
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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
(module
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $none_=>_none (func))
(type $none_=>_i32 (func (result i32)))
(type $i32_=>_i32 (func (param i32) (result i32)))
(import "env" "iprintf" (func $iprintf (param i32 i32) (result i32)))
(memory $0 2)
(data (i32.const 568) "%d:%d\n\00Result: %d\n\00")
(table $0 1 1 funcref)
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 587))
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
(export "__data_end" (global $global$1))
(export "__growWasmMemory" (func $__growWasmMemory))
(func $__wasm_call_ctors
(nop)
)
(func $foo (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(global.set $global$0
(local.tee $2
(i32.sub
(global.get $global$0)
(i32.const 16)
)
)
)
(i32.store offset=4
(local.get $2)
(local.get $1)
)
(i32.store
(local.get $2)
(local.get $0)
)
(drop
(call $iprintf
(i32.const 568)
(local.get $2)
)
)
(global.set $global$0
(i32.add
(local.get $2)
(i32.const 16)
)
)
(i32.add
(local.get $1)
(local.get $0)
)
)
(func $__original_main (result i32)
(local $0 i32)
(global.set $global$0
(local.tee $0
(i32.sub
(global.get $global$0)
(i32.const 16)
)
)
)
(i32.store
(local.get $0)
(call $foo
(i32.const 1)
(i32.const 2)
)
)
(drop
(call $iprintf
(i32.const 575)
(local.get $0)
)
)
(global.set $global$0
(i32.add
(local.get $0)
(i32.const 16)
)
)
(i32.const 0)
)
(func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
(func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
)
(;
--BEGIN METADATA --
{
"staticBump": 19,
"tableSize": 1,
"initializers": [
"__wasm_call_ctors"
],
"declares": [
"iprintf"
],
"externs": [
],
"exports": [
"__wasm_call_ctors",
"main",
"__growWasmMemory"
],
"namedGlobals": {
"__data_end" : "587"
},
"invokeFuncs": [
],
"mainReadsParams": 0,
"features": [
]
}
-- END METADATA --
;)
|