blob: f8897ff09f7ff8358750983e2b3f1a91c6de3fb5 [file] [log] [blame] [edit]
(module
(type $none_=>_i32 (func (result i32)))
(type $i32_=>_i32 (func (param i32) (result i32)))
(type $none_=>_none (func))
(type $i32_=>_none (func (param i32)))
(import "env" "memory" (memory $0 0))
(data (global.get $gimport$2) "Hello, world\00\00\00\00\00\00\00\00\00\00\00\00")
(import "env" "table" (table $0 1 funcref))
(elem (global.get $gimport$3) $print_message\28\29)
(import "env" "__stack_pointer" (global $sp_import i32))
(import "env" "__memory_base" (global $gimport$2 i32))
(import "env" "__table_base" (global $gimport$3 i32))
(import "env" "puts" (func $puts (param i32) (result i32)))
(import "env" "g$external_var" (func $g$external_var (result i32)))
(import "env" "fp$puts$ii" (func $fp$puts$ii (result i32)))
(global $gimport$5 (mut i32) (i32.const 0))
(global $gimport$6 (mut i32) (i32.const 0))
(global $gimport$7 (mut i32) (i32.const 0))
(global $global$0 i32 (i32.const 16))
(global $global$1 i32 (i32.const 20))
(global $global i32 (i32.const 42))
(global $sp (mut i32) (global.get $sp_import))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "_Z13print_messagev" (func $print_message\28\29))
(export "ptr_puts" (global $global$0))
(export "ptr_local_func" (global $global$1))
(export "__data_end" (global $global))
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "__growWasmMemory" (func $__growWasmMemory))
(export "__assign_got_enties" (func $__assign_got_enties))
(export "dynCall_i" (func $dynCall_i))
(func $__wasm_call_ctors
(call $__wasm_apply_relocs)
)
(func $__wasm_apply_relocs
(i32.store
(i32.add
(global.get $gimport$2)
(i32.const 16)
)
(global.get $gimport$6)
)
(i32.store
(i32.add
(global.get $gimport$2)
(i32.const 20)
)
(global.get $gimport$7)
)
)
(func $print_message\28\29 (result i32)
(drop
(call $puts
(i32.add
(global.get $gimport$2)
(i32.const 0)
)
)
)
(i32.load
(global.get $gimport$5)
)
)
(func $stackSave (result i32)
(global.get $sp)
)
(func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(global.set $sp
(local.tee $1
(i32.and
(i32.sub
(global.get $sp)
(local.get $0)
)
(i32.const -16)
)
)
)
(local.get $1)
)
(func $stackRestore (param $0 i32)
(global.set $sp
(local.get $0)
)
)
(func $__growWasmMemory (param $newSize i32) (result i32)
(memory.grow
(local.get $newSize)
)
)
(func $__assign_got_enties
(global.set $gimport$5
(call $g$external_var)
)
(global.set $gimport$6
(call $fp$puts$ii)
)
(global.set $gimport$7
(i32.add
(global.get $gimport$3)
(i32.const 0)
)
)
)
(func $dynCall_i (param $fptr i32) (result i32)
(call_indirect (type $none_=>_i32)
(local.get $fptr)
)
)
)
(;
--BEGIN METADATA --
{
"staticBump": 4294966770,
"tableSize": 1,
"initializers": [
"__assign_got_enties",
"__wasm_call_ctors"
],
"declares": [
"puts",
"g$external_var",
"fp$puts$ii"
],
"externs": [
"___stack_pointer",
"___memory_base",
"___table_base"
],
"implementedFunctions": [
"___wasm_call_ctors",
"__Z13print_messagev",
"_stackSave",
"_stackAlloc",
"_stackRestore",
"___growWasmMemory",
"___assign_got_enties",
"_dynCall_i"
],
"exports": [
"__wasm_call_ctors",
"_Z13print_messagev",
"stackSave",
"stackAlloc",
"stackRestore",
"__growWasmMemory",
"__assign_got_enties",
"dynCall_i"
],
"namedGlobals": {
"ptr_puts" : "16",
"ptr_local_func" : "20",
"__data_end" : "42"
},
"invokeFuncs": [
],
"features": [
],
"mainReadsParams": 0
}
-- END METADATA --
;)