| (module |
| (type $0 (func (param i32 i32 i32) (result i32))) |
| (type $1 (func)) |
| (type $2 (func (result i32))) |
| (type $3 (func (param i32 i32 i32))) |
| (type $4 (func (param i32 i32))) |
| (type $5 (func (param i32) (result i32))) |
| (type $6 (func (param i32 i32) (result i32))) |
| (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) |
| (type $FUNCSIG$i (func (result i32))) |
| (type $FUNCSIG$vi (func (param i32))) |
| (import "env" "memory" (memory $0 0)) |
| (data (global.get $gimport$3) "{ Module.print(\"Hello world\"); }\00{ return $0 + $1; }\00{ Module.print(\"Got \" + $0); }\00") |
| (import "env" "table" (table $0 0 funcref)) |
| (import "env" "__memory_base" (global $gimport$3 i32)) |
| (import "env" "__table_base" (global $gimport$4 i32)) |
| (import "env" "stackSave" (func $stackSave (result i32))) |
| (import "env" "stackRestore" (func $stackRestore (param i32))) |
| (import "env" "emscripten_asm_const_iii" (func $emscripten_asm_const_iii (param i32 i32 i32) (result i32))) |
| (export "__original_main" (func $__original_main)) |
| (export "_ZN20__em_asm_sig_builder12__em_asm_sigIJEEEKNS_5innerIJDpT_EEES3_" (func $__em_asm_sig_builder::inner<>\20const\20__em_asm_sig_builder::__em_asm_sig<>\28\29)) |
| (export "_ZN20__em_asm_sig_builder12__em_asm_sigIJiiEEEKNS_5innerIJDpT_EEES3_" (func $__em_asm_sig_builder::inner<int\2c\20int>\20const\20__em_asm_sig_builder::__em_asm_sig<int\2c\20int>\28int\2c\20int\29)) |
| (export "_ZN20__em_asm_sig_builder12__em_asm_sigIJiEEEKNS_5innerIJDpT_EEES3_" (func $__em_asm_sig_builder::inner<int>\20const\20__em_asm_sig_builder::__em_asm_sig<int>\28int\29)) |
| (export "_ZN20__em_asm_sig_builder8sig_charEi" (func $__em_asm_sig_builder::sig_char\28int\29)) |
| (export "main" (func $main)) |
| (export "__post_instantiate" (func $__post_instantiate)) |
| (func $__wasm_call_ctors (; 3 ;) (type $1) |
| (call $__wasm_apply_relocs) |
| ) |
| (func $__wasm_apply_relocs (; 4 ;) (type $1) |
| (nop) |
| ) |
| (func $__original_main (; 5 ;) (type $2) (result i32) |
| (local $0 i32) |
| (local $1 i32) |
| (local $2 i32) |
| (call $stackRestore |
| (local.tee $0 |
| (i32.sub |
| (call $stackSave) |
| (i32.const 32) |
| ) |
| ) |
| ) |
| (i32.store8 offset=24 |
| (local.get $0) |
| (call $__em_asm_sig_builder::inner<>\20const\20__em_asm_sig_builder::__em_asm_sig<>\28\29) |
| ) |
| (drop |
| (call $emscripten_asm_const_iii |
| (i32.const 0) |
| (i32.add |
| (local.get $0) |
| (i32.const 24) |
| ) |
| (i32.const 0) |
| ) |
| ) |
| (call $__em_asm_sig_builder::inner<int\2c\20int>\20const\20__em_asm_sig_builder::__em_asm_sig<int\2c\20int>\28int\2c\20int\29 |
| (i32.add |
| (local.get $0) |
| (i32.const 24) |
| ) |
| (i32.const 13) |
| (i32.const 27) |
| ) |
| (i64.store offset=16 |
| (local.get $0) |
| (i64.const 115964117005) |
| ) |
| (call $__em_asm_sig_builder::inner<int>\20const\20__em_asm_sig_builder::__em_asm_sig<int>\28int\29 |
| (i32.add |
| (local.get $0) |
| (i32.const 24) |
| ) |
| (local.tee $2 |
| (call $emscripten_asm_const_iii |
| (i32.const 1) |
| (i32.add |
| (local.get $0) |
| (i32.const 24) |
| ) |
| (i32.add |
| (local.get $0) |
| (i32.const 16) |
| ) |
| ) |
| ) |
| ) |
| (i32.store |
| (local.get $0) |
| (local.get $2) |
| ) |
| (drop |
| (call $emscripten_asm_const_iii |
| (i32.const 2) |
| (i32.add |
| (local.get $0) |
| (i32.const 24) |
| ) |
| (local.get $0) |
| ) |
| ) |
| (call $stackRestore |
| (i32.add |
| (local.get $0) |
| (i32.const 32) |
| ) |
| ) |
| (i32.const 0) |
| ) |
| (func $__em_asm_sig_builder::inner<>\20const\20__em_asm_sig_builder::__em_asm_sig<>\28\29 (; 6 ;) (type $2) (result i32) |
| (i32.const 0) |
| ) |
| (func $__em_asm_sig_builder::inner<int\2c\20int>\20const\20__em_asm_sig_builder::__em_asm_sig<int\2c\20int>\28int\2c\20int\29 (; 7 ;) (type $3) (param $0 i32) (param $1 i32) (param $2 i32) |
| (local $3 i32) |
| (call $stackRestore |
| (local.tee $3 |
| (i32.sub |
| (call $stackSave) |
| (i32.const 16) |
| ) |
| ) |
| ) |
| (i32.store8 offset=13 |
| (local.get $3) |
| (call $__em_asm_sig_builder::sig_char\28int\29 |
| (local.get $1) |
| ) |
| ) |
| (local.set $2 |
| (call $__em_asm_sig_builder::sig_char\28int\29 |
| (local.get $2) |
| ) |
| ) |
| (i32.store8 |
| (i32.add |
| (local.get $0) |
| (i32.const 2) |
| ) |
| (i32.const 0) |
| ) |
| (i32.store8 offset=14 |
| (local.get $3) |
| (local.get $2) |
| ) |
| (i32.store16 align=1 |
| (local.get $0) |
| (i32.load16_u offset=13 align=1 |
| (local.get $3) |
| ) |
| ) |
| (call $stackRestore |
| (i32.add |
| (local.get $3) |
| (i32.const 16) |
| ) |
| ) |
| ) |
| (func $__em_asm_sig_builder::inner<int>\20const\20__em_asm_sig_builder::__em_asm_sig<int>\28int\29 (; 8 ;) (type $4) (param $0 i32) (param $1 i32) |
| (local $2 i32) |
| (call $stackRestore |
| (local.tee $2 |
| (i32.sub |
| (call $stackSave) |
| (i32.const 16) |
| ) |
| ) |
| ) |
| (local.set $1 |
| (call $__em_asm_sig_builder::sig_char\28int\29 |
| (local.get $1) |
| ) |
| ) |
| (i32.store8 offset=15 |
| (local.get $2) |
| (i32.const 0) |
| ) |
| (i32.store8 offset=14 |
| (local.get $2) |
| (local.get $1) |
| ) |
| (i32.store16 align=1 |
| (local.get $0) |
| (i32.load16_u offset=14 |
| (local.get $2) |
| ) |
| ) |
| (call $stackRestore |
| (i32.add |
| (local.get $2) |
| (i32.const 16) |
| ) |
| ) |
| ) |
| (func $__em_asm_sig_builder::sig_char\28int\29 (; 9 ;) (type $5) (param $0 i32) (result i32) |
| (i32.const 105) |
| ) |
| (func $main (; 10 ;) (type $6) (param $0 i32) (param $1 i32) (result i32) |
| (call $__original_main) |
| ) |
| (func $__post_instantiate (; 11 ;) |
| (call $__wasm_call_ctors) |
| ) |
| ) |
| (; |
| --BEGIN METADATA -- |
| { |
| "asmConsts": { |
| "2": ["{ Module.print(\"Got \" + $0); }", ["iii"], [""]], |
| "0": ["{ Module.print(\"Hello world\"); }", ["iii"], [""]], |
| "1": ["{ return $0 + $1; }", ["iii"], [""]] |
| }, |
| "staticBump": 0, |
| "tableSize": 0, |
| "declares": [ |
| "stackSave", |
| "stackRestore" |
| ], |
| "externs": [ |
| "___memory_base", |
| "___table_base" |
| ], |
| "implementedFunctions": [ |
| "___original_main", |
| "__ZN20__em_asm_sig_builder12__em_asm_sigIJEEEKNS_5innerIJDpT_EEES3_", |
| "__ZN20__em_asm_sig_builder12__em_asm_sigIJiiEEEKNS_5innerIJDpT_EEES3_", |
| "__ZN20__em_asm_sig_builder12__em_asm_sigIJiEEEKNS_5innerIJDpT_EEES3_", |
| "__ZN20__em_asm_sig_builder8sig_charEi", |
| "_main", |
| "___post_instantiate" |
| ], |
| "exports": [ |
| "__original_main", |
| "_ZN20__em_asm_sig_builder12__em_asm_sigIJEEEKNS_5innerIJDpT_EEES3_", |
| "_ZN20__em_asm_sig_builder12__em_asm_sigIJiiEEEKNS_5innerIJDpT_EEES3_", |
| "_ZN20__em_asm_sig_builder12__em_asm_sigIJiEEEKNS_5innerIJDpT_EEES3_", |
| "_ZN20__em_asm_sig_builder8sig_charEi", |
| "main", |
| "__post_instantiate" |
| ], |
| "namedGlobals": { |
| }, |
| "invokeFuncs": [ |
| ], |
| "features": [ |
| ] |
| } |
| -- END METADATA -- |
| ;) |