| (module |
| (type $0 (func (param i32) (result i32))) |
| (type $1 (func)) |
| (type $2 (func (result i32))) |
| (type $3 (func (param i32 i32) (result i32))) |
| (type $FUNCSIG$ii (func (param i32) (result i32))) |
| (import "env" "puts" (func $puts (param i32) (result i32))) |
| (memory $0 2) |
| (table $0 1 1 funcref) |
| (global $global$0 (mut i32) (i32.const 16384)) |
| (global $global$1 i32 (i32.const 66128)) |
| (global $global$2 i32 (i32.const 581)) |
| (export "memory" (memory $0)) |
| (export "__wasm_call_ctors" (func $__wasm_call_ctors)) |
| (export "__heap_base" (global $global$1)) |
| (export "__data_end" (global $global$2)) |
| (export "main" (func $main)) |
| (export "stackSave" (func $stackSave)) |
| (export "stackAlloc" (func $stackAlloc)) |
| (export "stackRestore" (func $stackRestore)) |
| (export "__growWasmMemory" (func $__growWasmMemory)) |
| (func $__wasm_call_ctors (; 1 ;) (type $1) |
| (nop) |
| ) |
| (func $__original_main (; 2 ;) (type $2) (result i32) |
| (drop |
| (call $puts |
| (i32.const 568) |
| ) |
| ) |
| (i32.const 0) |
| ) |
| (func $main (; 3 ;) (type $3) (param $0 i32) (param $1 i32) (result i32) |
| (call $__original_main) |
| ) |
| (func $stackSave (; 4 ;) (result i32) |
| (global.get $global$0) |
| ) |
| (func $stackAlloc (; 5 ;) (param $0 i32) (result i32) |
| (local $1 i32) |
| (global.set $global$0 |
| (local.tee $1 |
| (i32.and |
| (i32.sub |
| (global.get $global$0) |
| (local.get $0) |
| ) |
| (i32.const -16) |
| ) |
| ) |
| ) |
| (local.get $1) |
| ) |
| (func $stackRestore (; 6 ;) (param $0 i32) |
| (global.set $global$0 |
| (local.get $0) |
| ) |
| ) |
| (func $__growWasmMemory (; 7 ;) (param $newSize i32) (result i32) |
| (grow_memory |
| (local.get $newSize) |
| ) |
| ) |
| ) |
| (; |
| --BEGIN METADATA -- |
| { |
| "staticBump": 13, |
| "tableSize": 1, |
| "initializers": [ |
| "__wasm_call_ctors" |
| ], |
| "declares": [ |
| "puts" |
| ], |
| "externs": [ |
| ], |
| "implementedFunctions": [ |
| "___wasm_call_ctors", |
| "_main", |
| "_stackSave", |
| "_stackAlloc", |
| "_stackRestore", |
| "___growWasmMemory" |
| ], |
| "exports": [ |
| "__wasm_call_ctors", |
| "main", |
| "stackSave", |
| "stackAlloc", |
| "stackRestore", |
| "__growWasmMemory" |
| ], |
| "namedGlobals": { |
| "__heap_base" : "66128", |
| "__data_end" : "581" |
| }, |
| "invokeFuncs": [ |
| ] |
| "features": [ |
| "--mvp-features", |
| "--enable-threads", |
| "--enable-mutable-globals", |
| "--enable-nontrapping-float-to-int", |
| "--enable-simd", |
| "--enable-bulk-memory", |
| "--enable-sign-ext" |
| ] |
| } |
| -- END METADATA -- |
| ;) |