| (module |
| (type $none_=>_none (func)) |
| (type $i32_=>_i32 (func (param i32) (result i32))) |
| (type $none_=>_i32 (func (result i32))) |
| (import "env" "memory" (memory $mimport$0 1)) |
| (import "env" "__indirect_function_table" (table $timport$0 0 funcref)) |
| (import "env" "__memory_base" (global $__memory_base i32)) |
| (import "env" "__table_base" (global $__table_base i32)) |
| (import "GOT.mem" "external_var" (global $external_var (mut i32))) |
| (import "GOT.func" "puts" (global $puts (mut i32))) |
| (import "GOT.func" "_Z13print_messagev" (global $print_message\28\29 (mut i32))) |
| (import "env" "puts" (func $puts (param i32) (result i32))) |
| (global $global$0 i32 (i32.const 16)) |
| (global $global$1 i32 (i32.const 20)) |
| (data $.data (global.get $__memory_base) "Hello, world\00\00\00\00\00\00\00\00\00\00\00\00") |
| (export "__wasm_call_ctors" (func $__wasm_call_ctors)) |
| (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) |
| (export "_Z13print_messagev" (func $print_message\28\29)) |
| (export "ptr_puts" (global $global$0)) |
| (export "ptr_local_func" (global $global$1)) |
| (func $__wasm_call_ctors |
| ) |
| (func $__wasm_apply_data_relocs |
| (i32.store |
| (i32.add |
| (i32.const 16) |
| (global.get $__memory_base) |
| ) |
| (global.get $puts) |
| ) |
| (i32.store |
| (i32.add |
| (i32.const 20) |
| (global.get $__memory_base) |
| ) |
| (global.get $print_message\28\29) |
| ) |
| ) |
| (func $print_message\28\29 (result i32) |
| (drop |
| (call $puts |
| (i32.add |
| (global.get $__memory_base) |
| (i32.const 0) |
| ) |
| ) |
| ) |
| (i32.load |
| (global.get $external_var) |
| ) |
| ) |
| ;; dylink section |
| ;; memorysize: 24 |
| ;; memoryalignment: 2 |
| ;; tablesize: 0 |
| ;; tablealignment: 0 |
| ;; custom section "producers", size 112 |
| ;; features section: mutable-globals |
| ) |
| |