| (module $recursive.wasm | |
| (type $0 (func (param i32 i32) (result i32))) | |
| (type $1 (func)) | |
| (type $2 (func (result i32))) | |
| (import "env" "iprintf" (func $iprintf (param i32 i32) (result i32))) | |
| (global $__stack_pointer (mut i32) (i32.const 66128)) | |
| (memory $0 2) | |
| (data $.rodata (i32.const 568) "%d:%d\n\00Result: %d\n\00") | |
| (table $0 1 1 funcref) | |
| (export "memory" (memory $0)) | |
| (export "__wasm_call_ctors" (func $__wasm_call_ctors)) | |
| (export "main" (func $main)) | |
| (func $__wasm_call_ctors | |
| ) | |
| (func $foo (param $0 i32) (param $1 i32) (result i32) | |
| (local $2 i32) | |
| (global.set $__stack_pointer | |
| (local.tee $2 | |
| (i32.sub | |
| (global.get $__stack_pointer) | |
| (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 $__stack_pointer | |
| (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 $__stack_pointer | |
| (local.tee $0 | |
| (i32.sub | |
| (global.get $__stack_pointer) | |
| (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 $__stack_pointer | |
| (i32.add | |
| (local.get $0) | |
| (i32.const 16) | |
| ) | |
| ) | |
| (i32.const 0) | |
| ) | |
| (func $main (param $0 i32) (param $1 i32) (result i32) | |
| (call $__original_main) | |
| ) | |
| ;; custom section "producers", size 115 | |
| ;; features section: mutable-globals, nontrapping-float-to-int, bulk-memory, sign-ext, reference-types, multivalue, bulk-memory-opt, call-indirect-overlong | |
| ) | |