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
124
125
126
127
128
129
130
131
132
|
(module
(type $none_=>_none (func))
(type $none_=>_i32 (func (result i32)))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
(import "env" "memory" (memory $mimport$0 0))
(data (global.get $gimport$3) "{ Module.print(\"Hello world\"); }\00\00{ return $0 + $1; }\00ii\00{ Module.print(\"Got \" + $0); }\00i\00")
(import "env" "__indirect_function_table" (table $timport$1 0 funcref))
(import "env" "__stack_pointer" (global $gimport$2 (mut i32)))
(import "env" "__memory_base" (global $gimport$3 i32))
(import "env" "__table_base" (global $gimport$4 i32))
(import "GOT.mem" "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJEEE6bufferE" (global $gimport$6 (mut i32)))
(import "GOT.mem" "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiiEEE6bufferE" (global $gimport$7 (mut i32)))
(import "GOT.mem" "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiEEE6bufferE" (global $gimport$8 (mut i32)))
(import "env" "emscripten_asm_const_int" (func $emscripten_asm_const_int (param i32 i32 i32) (result i32)))
(global $global$0 i32 (i32.const 33))
(global $global$1 i32 (i32.const 54))
(global $global$2 i32 (i32.const 88))
(export "__post_instantiate" (func $__wasm_call_ctors))
(export "__original_main" (func $__original_main))
(export "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJEEE6bufferE" (global $global$0))
(export "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiiEEE6bufferE" (global $global$1))
(export "_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiEEE6bufferE" (global $global$2))
(export "main" (func $main))
(func $__wasm_call_ctors
(call $__wasm_apply_relocs)
)
(func $__wasm_apply_relocs
(nop)
)
(func $__original_main (result i32)
(local $0 i32)
(local $1 i32)
(global.set $gimport$2
(local.tee $0
(i32.sub
(global.get $gimport$2)
(i32.const 32)
)
)
)
(drop
(call $emscripten_asm_const_int
(i32.add
(local.tee $1
(global.get $gimport$3)
)
(i32.const 0)
)
(global.get $gimport$6)
(i32.const 0)
)
)
(i64.store offset=16
(local.get $0)
(i64.const 115964117005)
)
(i32.store
(local.get $0)
(call $emscripten_asm_const_int
(i32.add
(local.get $1)
(i32.const 34)
)
(global.get $gimport$7)
(i32.add
(local.get $0)
(i32.const 16)
)
)
)
(drop
(call $emscripten_asm_const_int
(i32.add
(local.get $1)
(i32.const 57)
)
(global.get $gimport$8)
(local.get $0)
)
)
(global.set $gimport$2
(i32.add
(local.get $0)
(i32.const 32)
)
)
(i32.const 0)
)
(func $main (param $0 i32) (param $1 i32) (result i32)
(call $__original_main)
)
)
(;
--BEGIN METADATA --
{
"asmConsts": {
"0": ["{ Module.print(\"Hello world\"); }", ["iii"], [""]],
"34": ["{ return $0 + $1; }", ["iii"], [""]],
"57": ["{ Module.print(\"Got \" + $0); }", ["iii"], [""]]
},
"staticBump": 0,
"tableSize": 0,
"declares": [
"emscripten_asm_const_int"
],
"externs": [
"___stack_pointer",
"___memory_base",
"___table_base",
"__ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJEEE6bufferE",
"__ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiiEEE6bufferE",
"__ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiEEE6bufferE"
],
"exports": [
"__post_instantiate",
"__original_main",
"main"
],
"namedGlobals": {
"_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJEEE6bufferE" : "33",
"_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiiEEE6bufferE" : "54",
"_ZN20__em_asm_sig_builderI19__em_asm_type_tupleIJiEEE6bufferE" : "88"
},
"invokeFuncs": [
],
"mainReadsParams": 0,
"features": [
]
}
-- END METADATA --
;)
|