summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/atomics.wast.from-wast8
-rw-r--r--test/atomics.wast.fromBinary8
-rw-r--r--test/atomics.wast.fromBinary.noDebugInfo8
-rw-r--r--test/break-to-return.wasm.fromBinary2
-rw-r--r--test/ctor-eval/bad-indirect-call.wast.out4
-rw-r--r--test/ctor-eval/bad-indirect-call2.wast.out4
-rw-r--r--test/ctor-eval/basics-flatten.wast.out10
-rw-r--r--test/ctor-eval/basics.wast.out10
-rw-r--r--test/ctor-eval/imported-min.wast.out6
-rw-r--r--test/ctor-eval/imported.wast.out6
-rw-r--r--test/ctor-eval/imported2.wast.out6
-rw-r--r--test/ctor-eval/imported3.wast.out2
-rw-r--r--test/ctor-eval/indirect-call3.wast.out4
-rw-r--r--test/ctor-eval/just_some.wast.out6
-rw-r--r--test/ctor-eval/no_partial.wast.out2
-rw-r--r--test/ctor-eval/unsafe_call.wast.out4
-rw-r--r--test/ctor-eval/unsafe_store.wast.out2
-rw-r--r--test/ctor-eval/unsafe_store2.wast.out2
-rw-r--r--test/ctor-eval/unsafe_store3.wast.out2
-rw-r--r--test/debugInfo.fromasm10
-rw-r--r--test/debugInfo.fromasm.clamp10
-rw-r--r--test/debugInfo.fromasm.clamp.no-opts12
-rw-r--r--test/debugInfo.fromasm.imprecise10
-rw-r--r--test/debugInfo.fromasm.imprecise.no-opts10
-rw-r--r--test/debugInfo.fromasm.no-opts12
-rw-r--r--test/dot_s/alias.wast14
-rw-r--r--test/dot_s/alternate-lcomm.wast6
-rw-r--r--test/dot_s/asm_const.wast8
-rw-r--r--test/dot_s/basics.wast12
-rw-r--r--test/dot_s/bcp-1.wast48
-rw-r--r--test/dot_s/data-offset-folding.wast6
-rw-r--r--test/dot_s/debug.wast8
-rw-r--r--test/dot_s/dso_handle.wast8
-rw-r--r--test/dot_s/dyncall.wast26
-rw-r--r--test/dot_s/exit.wast8
-rw-r--r--test/dot_s/export_malloc_free.wast18
-rw-r--r--test/dot_s/fix_em_ehsjlj_names.wast26
-rw-r--r--test/dot_s/function-data-sections.wast12
-rw-r--r--test/dot_s/globals.wast14
-rw-r--r--test/dot_s/hostFinalize.wast8
-rw-r--r--test/dot_s/indidx.wast20
-rw-r--r--test/dot_s/indirect-import.wast30
-rw-r--r--test/dot_s/initializers.wast12
-rw-r--r--test/dot_s/lcomm-in-text-segment.wast6
-rw-r--r--test/dot_s/local_align.wast10
-rw-r--r--test/dot_s/macClangMetaData.wast8
-rw-r--r--test/dot_s/memops.wast10
-rw-r--r--test/dot_s/minimal.wast8
-rw-r--r--test/dot_s/permute.wast6
-rw-r--r--test/dot_s/relocation.wast8
-rw-r--r--test/dot_s/return.wast12
-rw-r--r--test/dot_s/start_main0.wast10
-rw-r--r--test/dot_s/start_main2.wast10
-rw-r--r--test/dot_s/symbolic-offset.wast8
-rw-r--r--test/dot_s/text_before_type.wast10
-rw-r--r--test/dot_s/traps.clamp.wast14
-rw-r--r--test/dot_s/traps.js.wast10
-rw-r--r--test/dot_s/traps.wast8
-rw-r--r--test/dot_s/unreachable_blocks.wast26
-rw-r--r--test/dot_s/visibilities.wast12
-rw-r--r--test/dylib.wasm.fromBinary6
-rw-r--r--test/dynamicLibrary.fromasm6
-rw-r--r--test/dynamicLibrary.fromasm.clamp6
-rw-r--r--test/dynamicLibrary.fromasm.clamp.no-opts20
-rw-r--r--test/dynamicLibrary.fromasm.imprecise6
-rw-r--r--test/dynamicLibrary.fromasm.imprecise.no-opts20
-rw-r--r--test/dynamicLibrary.fromasm.no-opts20
-rw-r--r--test/emcc_O2_hello_world.fromasm72
-rw-r--r--test/emcc_O2_hello_world.fromasm.clamp72
-rw-r--r--test/emcc_O2_hello_world.fromasm.clamp.no-opts80
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise72
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise.no-opts78
-rw-r--r--test/emcc_O2_hello_world.fromasm.no-opts80
-rw-r--r--test/emcc_hello_world.fromasm106
-rw-r--r--test/emcc_hello_world.fromasm.clamp110
-rw-r--r--test/emcc_hello_world.fromasm.clamp.no-opts128
-rw-r--r--test/emcc_hello_world.fromasm.imprecise100
-rw-r--r--test/emcc_hello_world.fromasm.imprecise.no-opts116
-rw-r--r--test/emcc_hello_world.fromasm.no-opts124
-rw-r--r--test/example/c-api-hello-world.txt2
-rw-r--r--test/example/c-api-kitchen-sink.txt78
-rw-r--r--test/example/c-api-kitchen-sink.txt.txt34
-rw-r--r--test/example/c-api-unused-mem.txt8
-rw-r--r--test/example/relooper-fuzz.txt8
-rw-r--r--test/example/relooper-fuzz1.txt8
-rw-r--r--test/fib-dbg.wasm.fromBinary14
-rw-r--r--test/hello_world.fromasm2
-rw-r--r--test/hello_world.fromasm.clamp2
-rw-r--r--test/hello_world.fromasm.clamp.no-opts2
-rw-r--r--test/hello_world.fromasm.imprecise2
-rw-r--r--test/hello_world.fromasm.imprecise.no-opts2
-rw-r--r--test/hello_world.fromasm.no-opts2
-rw-r--r--test/hello_world.wast2
-rw-r--r--test/hello_world.wast.from-wast2
-rw-r--r--test/hello_world.wast.fromBinary2
-rw-r--r--test/hello_world.wast.fromBinary.noDebugInfo2
-rw-r--r--test/i64-setTempRet0.fromasm8
-rw-r--r--test/i64-setTempRet0.fromasm.clamp8
-rw-r--r--test/i64-setTempRet0.fromasm.clamp.no-opts8
-rw-r--r--test/i64-setTempRet0.fromasm.imprecise8
-rw-r--r--test/i64-setTempRet0.fromasm.imprecise.no-opts8
-rw-r--r--test/i64-setTempRet0.fromasm.no-opts8
-rw-r--r--test/importedSignCast.fromasm2
-rw-r--r--test/importedSignCast.fromasm.clamp2
-rw-r--r--test/importedSignCast.fromasm.clamp.no-opts2
-rw-r--r--test/importedSignCast.fromasm.imprecise2
-rw-r--r--test/importedSignCast.fromasm.imprecise.no-opts2
-rw-r--r--test/importedSignCast.fromasm.no-opts2
-rw-r--r--test/kitchen_sink.wast.from-wast2
-rw-r--r--test/kitchen_sink.wast.fromBinary2
-rw-r--r--test/kitchen_sink.wast.fromBinary.noDebugInfo2
-rw-r--r--test/llvm_autogenerated/byval.wast20
-rw-r--r--test/llvm_autogenerated/call.wast34
-rw-r--r--test/llvm_autogenerated/cfg-stackify.wast56
-rw-r--r--test/llvm_autogenerated/comparisons_f32.wast34
-rw-r--r--test/llvm_autogenerated/comparisons_f64.wast34
-rw-r--r--test/llvm_autogenerated/comparisons_i32.wast26
-rw-r--r--test/llvm_autogenerated/comparisons_i64.wast26
-rw-r--r--test/llvm_autogenerated/conv.wast58
-rw-r--r--test/llvm_autogenerated/copysign-casts.wast10
-rw-r--r--test/llvm_autogenerated/cpus.wast8
-rw-r--r--test/llvm_autogenerated/dead-vreg.wast8
-rw-r--r--test/llvm_autogenerated/divrem-constant.wast22
-rw-r--r--test/llvm_autogenerated/f32.wast38
-rw-r--r--test/llvm_autogenerated/f64.wast38
-rw-r--r--test/llvm_autogenerated/fast-isel-noreg.wast12
-rw-r--r--test/llvm_autogenerated/fast-isel.wast18
-rw-r--r--test/llvm_autogenerated/frem.wast10
-rw-r--r--test/llvm_autogenerated/func.wast18
-rw-r--r--test/llvm_autogenerated/global.wast10
-rw-r--r--test/llvm_autogenerated/globl.wast8
-rw-r--r--test/llvm_autogenerated/i128.wast52
-rw-r--r--test/llvm_autogenerated/i32-load-store-alignment.wast46
-rw-r--r--test/llvm_autogenerated/i32.wast52
-rw-r--r--test/llvm_autogenerated/i64-load-store-alignment.wast66
-rw-r--r--test/llvm_autogenerated/i64.wast52
-rw-r--r--test/llvm_autogenerated/ident.wast6
-rw-r--r--test/llvm_autogenerated/immediates.wast62
-rw-r--r--test/llvm_autogenerated/indirect-import.wast28
-rw-r--r--test/llvm_autogenerated/irreducible-cfg.wast10
-rw-r--r--test/llvm_autogenerated/legalize.wast18
-rw-r--r--test/llvm_autogenerated/load-ext.wast26
-rw-r--r--test/llvm_autogenerated/load-store-i1.wast18
-rw-r--r--test/llvm_autogenerated/load.wast14
-rw-r--r--test/llvm_autogenerated/lower-em-ehsjlj-options.wast20
-rw-r--r--test/llvm_autogenerated/mem-intrinsics.wast24
-rw-r--r--test/llvm_autogenerated/memory-addr32.wast10
-rw-r--r--test/llvm_autogenerated/negative-base-reg.wast8
-rw-r--r--test/llvm_autogenerated/non-executable-stack.wast6
-rw-r--r--test/llvm_autogenerated/offset.wast76
-rw-r--r--test/llvm_autogenerated/phi.wast10
-rw-r--r--test/llvm_autogenerated/reg-stackify.wast56
-rw-r--r--test/llvm_autogenerated/return-int32.wast10
-rw-r--r--test/llvm_autogenerated/return-void.wast10
-rw-r--r--test/llvm_autogenerated/select.wast30
-rw-r--r--test/llvm_autogenerated/signext-zeroext.wast14
-rw-r--r--test/llvm_autogenerated/store-trunc.wast16
-rw-r--r--test/llvm_autogenerated/store.wast14
-rw-r--r--test/llvm_autogenerated/switch.wast10
-rw-r--r--test/llvm_autogenerated/unreachable.wast12
-rw-r--r--test/llvm_autogenerated/unused-argument.wast12
-rw-r--r--test/llvm_autogenerated/userstack.wast34
-rw-r--r--test/llvm_autogenerated/varargs.wast24
-rw-r--r--test/memory-import.wast.from-wast2
-rw-r--r--test/memory-import.wast.fromBinary2
-rw-r--r--test/memory-import.wast.fromBinary.noDebugInfo2
-rw-r--r--test/memorygrowth.fromasm76
-rw-r--r--test/memorygrowth.fromasm.clamp76
-rw-r--r--test/memorygrowth.fromasm.clamp.no-opts84
-rw-r--r--test/memorygrowth.fromasm.imprecise76
-rw-r--r--test/memorygrowth.fromasm.imprecise.no-opts82
-rw-r--r--test/memorygrowth.fromasm.no-opts84
-rw-r--r--test/merge/basics.wast.combined8
-rw-r--r--test/merge/basics.wast.combined.finalized8
-rw-r--r--test/merge/basics.wast.combined.finalized.opt8
-rw-r--r--test/merge/basics.wast.combined.opt8
-rw-r--r--test/merge/dylib.wasm.combined12
-rw-r--r--test/merge/dylib.wasm.combined.finalized12
-rw-r--r--test/merge/dylib.wasm.combined.finalized.opt12
-rw-r--r--test/merge/dylib.wasm.combined.opt12
-rw-r--r--test/merge/fusing.wast.combined6
-rw-r--r--test/merge/fusing.wast.combined.finalized6
-rw-r--r--test/merge/fusing.wast.combined.finalized.opt4
-rw-r--r--test/merge/fusing.wast.combined.opt4
-rw-r--r--test/merge/main-lacks-segments.wast.combined2
-rw-r--r--test/merge/main-lacks-segments.wast.combined.finalized2
-rw-r--r--test/merge/main-lacks-segments.wast.combined.finalized.opt2
-rw-r--r--test/merge/main-lacks-segments.wast.combined.opt2
-rw-r--r--test/merge/post-instantiate-a.wast.combined4
-rw-r--r--test/merge/post-instantiate-a.wast.combined.finalized4
-rw-r--r--test/merge/post-instantiate-a.wast.combined.finalized.opt2
-rw-r--r--test/merge/post-instantiate-a.wast.combined.opt2
-rw-r--r--test/merge/post-instantiate-b.wast.combined4
-rw-r--r--test/merge/post-instantiate-b.wast.combined.finalized4
-rw-r--r--test/merge/post-instantiate-b.wast.combined.finalized.opt2
-rw-r--r--test/merge/post-instantiate-b.wast.combined.opt2
-rw-r--r--test/merge/printf.wast.combined4
-rw-r--r--test/merge/printf.wast.combined.finalized4
-rw-r--r--test/merge/printf.wast.combined.finalized.opt2
-rw-r--r--test/merge/printf.wast.combined.opt2
-rw-r--r--test/min.fromasm16
-rw-r--r--test/min.fromasm.clamp16
-rw-r--r--test/min.fromasm.clamp.no-opts16
-rw-r--r--test/min.fromasm.imprecise16
-rw-r--r--test/min.fromasm.imprecise.no-opts16
-rw-r--r--test/min.fromasm.no-opts16
-rw-r--r--test/min.wast.from-wast8
-rw-r--r--test/min.wast.fromBinary8
-rw-r--r--test/min.wast.fromBinary.noDebugInfo8
-rw-r--r--test/noffi_f32.fromasm4
-rw-r--r--test/noffi_f32.fromasm.clamp4
-rw-r--r--test/noffi_f32.fromasm.clamp.no-opts4
-rw-r--r--test/noffi_f32.fromasm.imprecise4
-rw-r--r--test/noffi_f32.fromasm.imprecise.no-opts4
-rw-r--r--test/noffi_f32.fromasm.no-opts4
-rw-r--r--test/noffi_i64.fromasm4
-rw-r--r--test/noffi_i64.fromasm.clamp4
-rw-r--r--test/noffi_i64.fromasm.clamp.no-opts4
-rw-r--r--test/noffi_i64.fromasm.imprecise4
-rw-r--r--test/noffi_i64.fromasm.imprecise.no-opts4
-rw-r--r--test/noffi_i64.fromasm.no-opts4
-rw-r--r--test/passes/O.bin.txt10
-rw-r--r--test/passes/O.txt4
-rw-r--r--test/passes/O3_inlining.txt2
-rw-r--r--test/passes/Oz.txt4
-rw-r--r--test/passes/coalesce-locals-learning.txt70
-rw-r--r--test/passes/coalesce-locals.txt98
-rw-r--r--test/passes/code-folding.txt8
-rw-r--r--test/passes/code-pushing_ignore-implicit-traps.txt50
-rw-r--r--test/passes/const-hoisting.txt20
-rw-r--r--test/passes/dce.txt60
-rw-r--r--test/passes/dce_vacuum.bin.txt4
-rw-r--r--test/passes/dce_vacuum.txt6
-rw-r--r--test/passes/duplicate-function-elimination.txt254
-rw-r--r--test/passes/emit-js-wrapper=a.js.txt12
-rw-r--r--test/passes/emit-spec-wrapper=a.wat.txt12
-rw-r--r--test/passes/flatten.bin.txt20
-rw-r--r--test/passes/flatten.txt82
-rw-r--r--test/passes/flatten_rereloop.txt2
-rw-r--r--test/passes/fuzz-exec_O.txt4
-rw-r--r--test/passes/inlining-optimizing.txt18
-rw-r--r--test/passes/inlining-optimizing_optimize-level=3.txt96
-rw-r--r--test/passes/inlining.txt22
-rw-r--r--test/passes/inlining_optimize-level=3.txt14
-rw-r--r--test/passes/instrument-locals.txt2
-rw-r--r--test/passes/instrument-memory.txt4
-rw-r--r--test/passes/local-cse.txt12
-rw-r--r--test/passes/local-cse_ignore-implicit-traps.txt2
-rw-r--r--test/passes/log-execution.txt10
-rw-r--r--test/passes/merge-blocks.txt18
-rw-r--r--test/passes/metrics.txt2
-rw-r--r--test/passes/nm.txt6
-rw-r--r--test/passes/optimize-instructions.txt110
-rw-r--r--test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.txt12
-rw-r--r--test/passes/pick-load-signs.txt30
-rw-r--r--test/passes/post-emscripten.txt8
-rw-r--r--test/passes/precompute-propagate.txt26
-rw-r--r--test/passes/precompute.txt16
-rw-r--r--test/passes/precompute_coalesce-locals_vacuum.txt2
-rw-r--r--test/passes/print-call-graph.txt66
-rw-r--r--test/passes/remove-imports.txt2
-rw-r--r--test/passes/remove-unused-brs.txt92
-rw-r--r--test/passes/remove-unused-brs_precompute_vacuum_remove-unused-brs.txt2
-rw-r--r--test/passes/remove-unused-brs_shrink-level=1.txt10
-rw-r--r--test/passes/remove-unused-brs_shrink-level=1_ignore-implicit-traps.txt4
-rw-r--r--test/passes/remove-unused-module-elements.txt32
-rw-r--r--test/passes/remove-unused-names.txt8
-rw-r--r--test/passes/remove-unused-names_code-folding.txt70
-rw-r--r--test/passes/remove-unused-names_merge-blocks.txt64
-rw-r--r--test/passes/remove-unused-names_precompute.txt2
-rw-r--r--test/passes/remove-unused-names_remove-unused-brs_vacuum.txt6
-rw-r--r--test/passes/remove-unused-names_vacuum.txt10
-rw-r--r--test/passes/reorder-functions.txt6
-rw-r--r--test/passes/reorder-locals.txt6
-rw-r--r--test/passes/rereloop.txt32
-rw-r--r--test/passes/rereloop_dce_remove-unused-brs_remove-unused-names_coalesce-locals_simplify-locals_reorder-locals_remove-unused-brs_merge-blocks_vacuum.txt26
-rw-r--r--test/passes/safe-heap.txt396
-rw-r--r--test/passes/simplify-locals-nostructure.txt8
-rw-r--r--test/passes/simplify-locals-notee-nostructure.txt2
-rw-r--r--test/passes/simplify-locals-notee.txt2
-rw-r--r--test/passes/simplify-locals.txt48
-rw-r--r--test/passes/ssa.txt30
-rw-r--r--test/passes/translate-to-fuzz.txt20
-rw-r--r--test/passes/trap-mode-clamp.txt40
-rw-r--r--test/passes/trap-mode-js.txt32
-rw-r--r--test/passes/untee.txt2
-rw-r--r--test/passes/vacuum.txt68
-rw-r--r--test/passes/vacuum_ignore-implicit-traps.txt4
-rw-r--r--test/passes/vacuum_remove-unused-names_merge-blocks.txt2
-rw-r--r--test/polymorphic_stack.wast.from-wast18
-rw-r--r--test/polymorphic_stack.wast.fromBinary18
-rw-r--r--test/polymorphic_stack.wast.fromBinary.noDebugInfo18
-rw-r--r--test/print/min.txt8
-rw-r--r--test/reduce/destructive.wast.txt2
-rw-r--r--test/reduce/memory_table.wast.txt8
-rw-r--r--test/reduce/simple.wast.txt2
-rw-r--r--test/reg_switch.wast.from-wast2
-rw-r--r--test/reg_switch.wast.fromBinary2
-rw-r--r--test/reg_switch.wast.fromBinary.noDebugInfo2
-rw-r--r--test/signext.wast.from-wast2
-rw-r--r--test/signext.wast.fromBinary2
-rw-r--r--test/signext.wast.fromBinary.noDebugInfo2
-rw-r--r--test/stacky.wasm.fromBinary2
-rw-r--r--test/table-import.wast.from-wast2
-rw-r--r--test/table-import.wast.fromBinary2
-rw-r--r--test/table-import.wast.fromBinary.noDebugInfo2
-rw-r--r--test/threads.fromasm2
-rw-r--r--test/threads.fromasm.clamp2
-rw-r--r--test/threads.fromasm.clamp.no-opts2
-rw-r--r--test/threads.fromasm.imprecise2
-rw-r--r--test/threads.fromasm.imprecise.no-opts2
-rw-r--r--test/threads.fromasm.no-opts2
-rw-r--r--test/two_sides.fromasm2
-rw-r--r--test/two_sides.fromasm.clamp4
-rw-r--r--test/two_sides.fromasm.clamp.no-opts4
-rw-r--r--test/two_sides.fromasm.imprecise2
-rw-r--r--test/two_sides.fromasm.imprecise.no-opts2
-rw-r--r--test/two_sides.fromasm.no-opts2
-rw-r--r--test/unit.fromasm122
-rw-r--r--test/unit.fromasm.clamp126
-rw-r--r--test/unit.fromasm.clamp.no-opts168
-rw-r--r--test/unit.fromasm.imprecise120
-rw-r--r--test/unit.fromasm.imprecise.no-opts158
-rw-r--r--test/unit.fromasm.no-opts162
-rw-r--r--test/unit.wast.from-wast74
-rw-r--r--test/unit.wast.fromBinary74
-rw-r--r--test/unit.wast.fromBinary.noDebugInfo74
-rw-r--r--test/unreachable-code.wast.from-wast20
-rw-r--r--test/unreachable-code.wast.fromBinary20
-rw-r--r--test/unreachable-code.wast.fromBinary.noDebugInfo20
-rw-r--r--test/unreachable-import_wasm-only.fromasm2
-rw-r--r--test/unreachable-import_wasm-only.fromasm.clamp2
-rw-r--r--test/unreachable-import_wasm-only.fromasm.clamp.no-opts2
-rw-r--r--test/unreachable-import_wasm-only.fromasm.imprecise2
-rw-r--r--test/unreachable-import_wasm-only.fromasm.imprecise.no-opts2
-rw-r--r--test/unreachable-import_wasm-only.fromasm.no-opts2
-rw-r--r--test/unreachable-pops.wasm.fromBinary2
-rw-r--r--test/untaken-br_if.wast.from-wast2
-rw-r--r--test/untaken-br_if.wast.fromBinary2
-rw-r--r--test/untaken-br_if.wast.fromBinary.noDebugInfo2
-rw-r--r--test/use-import-and-drop.fromasm.clamp.no-opts4
-rw-r--r--test/use-import-and-drop.fromasm.imprecise.no-opts4
-rw-r--r--test/use-import-and-drop.fromasm.no-opts4
-rw-r--r--test/wasm-only.fromasm60
-rw-r--r--test/wasm-only.fromasm.clamp60
-rw-r--r--test/wasm-only.fromasm.clamp.no-opts72
-rw-r--r--test/wasm-only.fromasm.imprecise50
-rw-r--r--test/wasm-only.fromasm.imprecise.no-opts56
-rw-r--r--test/wasm-only.fromasm.no-opts72
349 files changed, 4048 insertions, 4048 deletions
diff --git a/test/atomics.wast.from-wast b/test/atomics.wast.from-wast
index 6de863888..0a57a6143 100644
--- a/test/atomics.wast.from-wast
+++ b/test/atomics.wast.from-wast
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 (shared 23 256))
- (func $atomic-loadstore (type $0)
+ (func $atomic-loadstore (; 0 ;) (type $0)
(local $0 i32)
(local $1 i64)
(drop
@@ -68,7 +68,7 @@
(get_local $1)
)
)
- (func $atomic-rmw (type $0)
+ (func $atomic-rmw (; 1 ;) (type $0)
(local $0 i32)
(local $1 i64)
(drop
@@ -102,7 +102,7 @@
)
)
)
- (func $atomic-cmpxchg (type $0)
+ (func $atomic-cmpxchg (; 2 ;) (type $0)
(local $0 i32)
(local $1 i64)
(drop
@@ -134,7 +134,7 @@
)
)
)
- (func $atomic-wait-wake (type $0)
+ (func $atomic-wait-wake (; 3 ;) (type $0)
(local $0 i32)
(local $1 i64)
(drop
diff --git a/test/atomics.wast.fromBinary b/test/atomics.wast.fromBinary
index e9fd9f1dc..80e178cc2 100644
--- a/test/atomics.wast.fromBinary
+++ b/test/atomics.wast.fromBinary
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 (shared 23 256))
- (func $atomic-loadstore (type $0)
+ (func $atomic-loadstore (; 0 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
@@ -68,7 +68,7 @@
(get_local $var$1)
)
)
- (func $atomic-rmw (type $0)
+ (func $atomic-rmw (; 1 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
@@ -102,7 +102,7 @@
)
)
)
- (func $atomic-cmpxchg (type $0)
+ (func $atomic-cmpxchg (; 2 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
@@ -134,7 +134,7 @@
)
)
)
- (func $atomic-wait-wake (type $0)
+ (func $atomic-wait-wake (; 3 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
diff --git a/test/atomics.wast.fromBinary.noDebugInfo b/test/atomics.wast.fromBinary.noDebugInfo
index 6d6f81324..0bf843e6b 100644
--- a/test/atomics.wast.fromBinary.noDebugInfo
+++ b/test/atomics.wast.fromBinary.noDebugInfo
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 (shared 23 256))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
@@ -68,7 +68,7 @@
(get_local $var$1)
)
)
- (func $1 (type $0)
+ (func $1 (; 1 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
@@ -102,7 +102,7 @@
)
)
)
- (func $2 (type $0)
+ (func $2 (; 2 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
@@ -134,7 +134,7 @@
)
)
)
- (func $3 (type $0)
+ (func $3 (; 3 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
diff --git a/test/break-to-return.wasm.fromBinary b/test/break-to-return.wasm.fromBinary
index d030ca7f0..72588bead 100644
--- a/test/break-to-return.wasm.fromBinary
+++ b/test/break-to-return.wasm.fromBinary
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $0))
- (func $0 (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $0 (; 0 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
(block $label$0 (result i32)
(br $label$0
(i32.add
diff --git a/test/ctor-eval/bad-indirect-call.wast.out b/test/ctor-eval/bad-indirect-call.wast.out
index fc3d71e42..5cd7830f9 100644
--- a/test/ctor-eval/bad-indirect-call.wast.out
+++ b/test/ctor-eval/bad-indirect-call.wast.out
@@ -5,7 +5,7 @@
(memory $0 256 256)
(data (i32.const 10) "waka waka waka waka waka")
(export "test1" (func $test1))
- (func $test1 (type $v)
+ (func $test1 (; 0 ;) (type $v)
(call_indirect $v
(i32.const 1)
)
@@ -14,7 +14,7 @@
(i32.const 120)
)
)
- (func $call-indirect (type $v)
+ (func $call-indirect (; 1 ;) (type $v)
(i32.store8
(i32.const 40)
(i32.const 67)
diff --git a/test/ctor-eval/bad-indirect-call2.wast.out b/test/ctor-eval/bad-indirect-call2.wast.out
index d63f1a11e..dd3800a84 100644
--- a/test/ctor-eval/bad-indirect-call2.wast.out
+++ b/test/ctor-eval/bad-indirect-call2.wast.out
@@ -7,7 +7,7 @@
(memory $0 256 256)
(data (i32.const 10) "waka waka waka waka waka")
(export "test1" (func $test1))
- (func $test1 (type $v)
+ (func $test1 (; 1 ;) (type $v)
(call_indirect $v
(i32.const 0)
)
@@ -16,7 +16,7 @@
(i32.const 120)
)
)
- (func $call-indirect (type $v)
+ (func $call-indirect (; 2 ;) (type $v)
(i32.store8
(i32.const 40)
(i32.const 67)
diff --git a/test/ctor-eval/basics-flatten.wast.out b/test/ctor-eval/basics-flatten.wast.out
index 2c0502ab7..b3b937c59 100644
--- a/test/ctor-eval/basics-flatten.wast.out
+++ b/test/ctor-eval/basics-flatten.wast.out
@@ -7,16 +7,16 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $v)
+ (func $test1 (; 0 ;) (type $v)
(nop)
)
- (func $test2 (type $v)
+ (func $test2 (; 1 ;) (type $v)
(nop)
)
- (func $test3 (type $v)
+ (func $test3 (; 2 ;) (type $v)
(nop)
)
- (func $safe-to-call (type $v)
+ (func $safe-to-call (; 3 ;) (type $v)
(i32.store8
(i32.const 10)
(i32.const 110)
@@ -26,7 +26,7 @@
(i32.const 109)
)
)
- (func $call-indirect (type $v)
+ (func $call-indirect (; 4 ;) (type $v)
(i32.store8
(i32.const 40)
(i32.const 67)
diff --git a/test/ctor-eval/basics.wast.out b/test/ctor-eval/basics.wast.out
index 4e541385b..3179f7b36 100644
--- a/test/ctor-eval/basics.wast.out
+++ b/test/ctor-eval/basics.wast.out
@@ -7,16 +7,16 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $v)
+ (func $test1 (; 0 ;) (type $v)
(nop)
)
- (func $test2 (type $v)
+ (func $test2 (; 1 ;) (type $v)
(nop)
)
- (func $test3 (type $v)
+ (func $test3 (; 2 ;) (type $v)
(nop)
)
- (func $safe-to-call (type $v)
+ (func $safe-to-call (; 3 ;) (type $v)
(i32.store8
(i32.const 10)
(i32.const 110)
@@ -26,7 +26,7 @@
(i32.const 109)
)
)
- (func $call-indirect (type $v)
+ (func $call-indirect (; 4 ;) (type $v)
(i32.store8
(i32.const 40)
(i32.const 67)
diff --git a/test/ctor-eval/imported-min.wast.out b/test/ctor-eval/imported-min.wast.out
index 48d4c5796..dd0f88841 100644
--- a/test/ctor-eval/imported-min.wast.out
+++ b/test/ctor-eval/imported-min.wast.out
@@ -12,11 +12,11 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(local $temp i32)
(nop)
)
- (func $test2 (type $0)
+ (func $test2 (; 1 ;) (type $0)
(set_global $tempDoublePtr
(i32.const 1)
)
@@ -25,7 +25,7 @@
(i32.const 115)
)
)
- (func $test3 (type $0)
+ (func $test3 (; 2 ;) (type $0)
(i32.store8
(i32.const 14)
(i32.const 115)
diff --git a/test/ctor-eval/imported.wast.out b/test/ctor-eval/imported.wast.out
index 38fcb1842..6a7557e88 100644
--- a/test/ctor-eval/imported.wast.out
+++ b/test/ctor-eval/imported.wast.out
@@ -12,11 +12,11 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(local $temp i32)
(nop)
)
- (func $test2 (type $0)
+ (func $test2 (; 1 ;) (type $0)
(set_global $tempDoublePtr
(i32.const 1)
)
@@ -25,7 +25,7 @@
(i32.const 115)
)
)
- (func $test3 (type $0)
+ (func $test3 (; 2 ;) (type $0)
(i32.store8
(i32.const 14)
(i32.const 115)
diff --git a/test/ctor-eval/imported2.wast.out b/test/ctor-eval/imported2.wast.out
index 26b91cc35..add5a1e99 100644
--- a/test/ctor-eval/imported2.wast.out
+++ b/test/ctor-eval/imported2.wast.out
@@ -9,10 +9,10 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(nop)
)
- (func $test2 (type $0)
+ (func $test2 (; 1 ;) (type $0)
(set_global $mine
(i32.const 2)
)
@@ -21,7 +21,7 @@
(i32.const 115)
)
)
- (func $test3 (type $0)
+ (func $test3 (; 2 ;) (type $0)
(i32.store8
(i32.const 14)
(i32.const 115)
diff --git a/test/ctor-eval/imported3.wast.out b/test/ctor-eval/imported3.wast.out
index 6d8fab867..b7e9dc5a3 100644
--- a/test/ctor-eval/imported3.wast.out
+++ b/test/ctor-eval/imported3.wast.out
@@ -7,7 +7,7 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(i32.store8
(i32.const 13)
(i32.const 115)
diff --git a/test/ctor-eval/indirect-call3.wast.out b/test/ctor-eval/indirect-call3.wast.out
index 27f661c30..a4b2ac337 100644
--- a/test/ctor-eval/indirect-call3.wast.out
+++ b/test/ctor-eval/indirect-call3.wast.out
@@ -8,10 +8,10 @@
(memory $0 256 256)
(data (i32.const 10) "waka waka xaka waka waka\00\00\00\00\00\00C")
(export "test1" (func $test1))
- (func $test1 (type $v)
+ (func $test1 (; 1 ;) (type $v)
(nop)
)
- (func $call-indirect (type $v)
+ (func $call-indirect (; 2 ;) (type $v)
(i32.store8
(i32.const 40)
(i32.const 67)
diff --git a/test/ctor-eval/just_some.wast.out b/test/ctor-eval/just_some.wast.out
index 79bb19df6..c44e6a9df 100644
--- a/test/ctor-eval/just_some.wast.out
+++ b/test/ctor-eval/just_some.wast.out
@@ -5,13 +5,13 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(nop)
)
- (func $test2 (type $0)
+ (func $test2 (; 1 ;) (type $0)
(unreachable)
)
- (func $test3 (type $0)
+ (func $test3 (; 2 ;) (type $0)
(i32.store8
(i32.const 13)
(i32.const 113)
diff --git a/test/ctor-eval/no_partial.wast.out b/test/ctor-eval/no_partial.wast.out
index 0caa401d4..ac943d57c 100644
--- a/test/ctor-eval/no_partial.wast.out
+++ b/test/ctor-eval/no_partial.wast.out
@@ -3,7 +3,7 @@
(memory $0 256 256)
(data (i32.const 10) "waka waka waka waka waka")
(export "test1" (func $test1))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(i32.store8
(i32.const 12)
(i32.const 115)
diff --git a/test/ctor-eval/unsafe_call.wast.out b/test/ctor-eval/unsafe_call.wast.out
index 7d8867610..5a16a6112 100644
--- a/test/ctor-eval/unsafe_call.wast.out
+++ b/test/ctor-eval/unsafe_call.wast.out
@@ -5,7 +5,7 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(call $unsafe-to-call)
(i32.store
(i32.const 12)
@@ -20,7 +20,7 @@
(i32.const 120)
)
)
- (func $unsafe-to-call (type $0)
+ (func $unsafe-to-call (; 1 ;) (type $0)
(unreachable)
)
)
diff --git a/test/ctor-eval/unsafe_store.wast.out b/test/ctor-eval/unsafe_store.wast.out
index 7fa97d876..36f3b74bd 100644
--- a/test/ctor-eval/unsafe_store.wast.out
+++ b/test/ctor-eval/unsafe_store.wast.out
@@ -5,7 +5,7 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/ctor-eval/unsafe_store2.wast.out b/test/ctor-eval/unsafe_store2.wast.out
index 7af56749a..a0d34e8b4 100644
--- a/test/ctor-eval/unsafe_store2.wast.out
+++ b/test/ctor-eval/unsafe_store2.wast.out
@@ -5,7 +5,7 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/ctor-eval/unsafe_store3.wast.out b/test/ctor-eval/unsafe_store3.wast.out
index cbf66c6da..189f830e7 100644
--- a/test/ctor-eval/unsafe_store3.wast.out
+++ b/test/ctor-eval/unsafe_store3.wast.out
@@ -5,7 +5,7 @@
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
- (func $test1 (type $0)
+ (func $test1 (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/debugInfo.fromasm b/test/debugInfo.fromasm
index 16033f98a..dcb2a8f74 100644
--- a/test/debugInfo.fromasm
+++ b/test/debugInfo.fromasm
@@ -10,14 +10,14 @@
(export "opts" (func $opts))
(export "fib" (func $fib))
(export "switch_reach" (func $switch_reach))
- (func $add (param $0 i32) (param $1 i32) (result i32)
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
;;@ tests/other_file.cpp:314159:0
(i32.add
(get_local $1)
(get_local $1)
)
)
- (func $ret (param $0 i32) (result i32)
+ (func $ret (; 1 ;) (param $0 i32) (result i32)
;;@ return.cpp:50:0
(set_local $0
(i32.shl
@@ -31,7 +31,7 @@
(i32.const 1)
)
)
- (func $opts (param $0 i32) (param $1 i32) (result i32)
+ (func $opts (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
;;@ even-opted.cpp:1:0
(set_local $0
@@ -62,7 +62,7 @@
(get_local $1)
)
)
- (func $fib (param $0 i32) (result i32)
+ (func $fib (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -128,7 +128,7 @@
;;@ fib.c:8:0
(get_local $1)
)
- (func $switch_reach (param $0 i32) (result i32)
+ (func $switch_reach (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(block $__rjto$0 (result i32)
diff --git a/test/debugInfo.fromasm.clamp b/test/debugInfo.fromasm.clamp
index 16033f98a..dcb2a8f74 100644
--- a/test/debugInfo.fromasm.clamp
+++ b/test/debugInfo.fromasm.clamp
@@ -10,14 +10,14 @@
(export "opts" (func $opts))
(export "fib" (func $fib))
(export "switch_reach" (func $switch_reach))
- (func $add (param $0 i32) (param $1 i32) (result i32)
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
;;@ tests/other_file.cpp:314159:0
(i32.add
(get_local $1)
(get_local $1)
)
)
- (func $ret (param $0 i32) (result i32)
+ (func $ret (; 1 ;) (param $0 i32) (result i32)
;;@ return.cpp:50:0
(set_local $0
(i32.shl
@@ -31,7 +31,7 @@
(i32.const 1)
)
)
- (func $opts (param $0 i32) (param $1 i32) (result i32)
+ (func $opts (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
;;@ even-opted.cpp:1:0
(set_local $0
@@ -62,7 +62,7 @@
(get_local $1)
)
)
- (func $fib (param $0 i32) (result i32)
+ (func $fib (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -128,7 +128,7 @@
;;@ fib.c:8:0
(get_local $1)
)
- (func $switch_reach (param $0 i32) (result i32)
+ (func $switch_reach (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(block $__rjto$0 (result i32)
diff --git a/test/debugInfo.fromasm.clamp.no-opts b/test/debugInfo.fromasm.clamp.no-opts
index c56627bcb..8e4ebdd3f 100644
--- a/test/debugInfo.fromasm.clamp.no-opts
+++ b/test/debugInfo.fromasm.clamp.no-opts
@@ -10,7 +10,7 @@
(export "opts" (func $opts))
(export "fib" (func $fib))
(export "switch_reach" (func $switch_reach))
- (func $add (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (param $x i32) (param $y i32) (result i32)
;;@ tests/hello_world.c:5:0
(set_local $x
(get_local $x)
@@ -30,7 +30,7 @@
)
)
)
- (func $ret (param $x i32) (result i32)
+ (func $ret (; 1 ;) (param $x i32) (result i32)
;;@ return.cpp:50:0
(set_local $x
(i32.shl
@@ -46,7 +46,7 @@
)
)
)
- (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-rem (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -58,7 +58,7 @@
)
)
)
- (func $opts (param $x i32) (param $y i32) (result i32)
+ (func $opts (; 3 ;) (param $x i32) (param $y i32) (result i32)
;;@ even-opted.cpp:1:0
(set_local $x
(i32.add
@@ -87,7 +87,7 @@
)
)
)
- (func $fib (param $$0 i32) (result i32)
+ (func $fib (; 4 ;) (param $$0 i32) (result i32)
(local $$$0$lcssa i32)
(local $$$01518 i32)
(local $$$01518$phi i32)
@@ -185,7 +185,7 @@
(get_local $$$0$lcssa)
)
)
- (func $switch_reach (param $$p i32) (result i32)
+ (func $switch_reach (; 5 ;) (param $$p i32) (result i32)
(local $$0 i32)
(local $$call i32)
(local $$magic i32)
diff --git a/test/debugInfo.fromasm.imprecise b/test/debugInfo.fromasm.imprecise
index 824ade74e..1cfc5d114 100644
--- a/test/debugInfo.fromasm.imprecise
+++ b/test/debugInfo.fromasm.imprecise
@@ -9,14 +9,14 @@
(export "opts" (func $opts))
(export "fib" (func $fib))
(export "switch_reach" (func $switch_reach))
- (func $add (param $0 i32) (param $1 i32) (result i32)
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
;;@ tests/other_file.cpp:314159:0
(i32.add
(get_local $1)
(get_local $1)
)
)
- (func $ret (param $0 i32) (result i32)
+ (func $ret (; 1 ;) (param $0 i32) (result i32)
;;@ return.cpp:50:0
(set_local $0
(i32.shl
@@ -30,7 +30,7 @@
(i32.const 1)
)
)
- (func $opts (param $0 i32) (param $1 i32) (result i32)
+ (func $opts (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
;;@ even-opted.cpp:1:0
(set_local $0
(i32.add
@@ -54,7 +54,7 @@
(get_local $1)
)
)
- (func $fib (param $0 i32) (result i32)
+ (func $fib (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -120,7 +120,7 @@
;;@ fib.c:8:0
(get_local $1)
)
- (func $switch_reach (param $0 i32) (result i32)
+ (func $switch_reach (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(block $__rjto$0 (result i32)
diff --git a/test/debugInfo.fromasm.imprecise.no-opts b/test/debugInfo.fromasm.imprecise.no-opts
index 1ec751ef4..cf6170324 100644
--- a/test/debugInfo.fromasm.imprecise.no-opts
+++ b/test/debugInfo.fromasm.imprecise.no-opts
@@ -10,7 +10,7 @@
(export "opts" (func $opts))
(export "fib" (func $fib))
(export "switch_reach" (func $switch_reach))
- (func $add (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (param $x i32) (param $y i32) (result i32)
;;@ tests/hello_world.c:5:0
(set_local $x
(get_local $x)
@@ -30,7 +30,7 @@
)
)
)
- (func $ret (param $x i32) (result i32)
+ (func $ret (; 1 ;) (param $x i32) (result i32)
;;@ return.cpp:50:0
(set_local $x
(i32.shl
@@ -46,7 +46,7 @@
)
)
)
- (func $opts (param $x i32) (param $y i32) (result i32)
+ (func $opts (; 2 ;) (param $x i32) (param $y i32) (result i32)
;;@ even-opted.cpp:1:0
(set_local $x
(i32.add
@@ -75,7 +75,7 @@
)
)
)
- (func $fib (param $$0 i32) (result i32)
+ (func $fib (; 3 ;) (param $$0 i32) (result i32)
(local $$$0$lcssa i32)
(local $$$01518 i32)
(local $$$01518$phi i32)
@@ -173,7 +173,7 @@
(get_local $$$0$lcssa)
)
)
- (func $switch_reach (param $$p i32) (result i32)
+ (func $switch_reach (; 4 ;) (param $$p i32) (result i32)
(local $$0 i32)
(local $$call i32)
(local $$magic i32)
diff --git a/test/debugInfo.fromasm.no-opts b/test/debugInfo.fromasm.no-opts
index c56627bcb..8e4ebdd3f 100644
--- a/test/debugInfo.fromasm.no-opts
+++ b/test/debugInfo.fromasm.no-opts
@@ -10,7 +10,7 @@
(export "opts" (func $opts))
(export "fib" (func $fib))
(export "switch_reach" (func $switch_reach))
- (func $add (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (param $x i32) (param $y i32) (result i32)
;;@ tests/hello_world.c:5:0
(set_local $x
(get_local $x)
@@ -30,7 +30,7 @@
)
)
)
- (func $ret (param $x i32) (result i32)
+ (func $ret (; 1 ;) (param $x i32) (result i32)
;;@ return.cpp:50:0
(set_local $x
(i32.shl
@@ -46,7 +46,7 @@
)
)
)
- (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-rem (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -58,7 +58,7 @@
)
)
)
- (func $opts (param $x i32) (param $y i32) (result i32)
+ (func $opts (; 3 ;) (param $x i32) (param $y i32) (result i32)
;;@ even-opted.cpp:1:0
(set_local $x
(i32.add
@@ -87,7 +87,7 @@
)
)
)
- (func $fib (param $$0 i32) (result i32)
+ (func $fib (; 4 ;) (param $$0 i32) (result i32)
(local $$$0$lcssa i32)
(local $$$01518 i32)
(local $$$01518$phi i32)
@@ -185,7 +185,7 @@
(get_local $$$0$lcssa)
)
)
- (func $switch_reach (param $$p i32) (result i32)
+ (func $switch_reach (; 5 ;) (param $$p i32) (result i32)
(local $$0 i32)
(local $$call i32)
(local $$magic i32)
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast
index 9caae0016..3e70a8c31 100644
--- a/test/dot_s/alias.wast
+++ b/test/dot_s/alias.wast
@@ -10,7 +10,7 @@
(export "__exit" (func $__exit))
(export "__needs_exit" (func $__needs_exit))
(export "dynCall_v" (func $dynCall_v))
- (func $__exit (type $FUNCSIG$v)
+ (func $__exit (; 0 ;) (type $FUNCSIG$v)
(drop
(i32.add
(i32.load
@@ -22,18 +22,18 @@
)
)
)
- (func $__needs_exit (result i32)
+ (func $__needs_exit (; 1 ;) (result i32)
(call $__exit)
(return
(i32.const 1)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -52,16 +52,16 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 5 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $dynCall_v (param $fptr i32)
+ (func $dynCall_v (; 6 ;) (param $fptr i32)
(call_indirect $FUNCSIG$v
(get_local $fptr)
)
diff --git a/test/dot_s/alternate-lcomm.wast b/test/dot_s/alternate-lcomm.wast
index e55247c27..b998ca27a 100644
--- a/test/dot_s/alternate-lcomm.wast
+++ b/test/dot_s/alternate-lcomm.wast
@@ -4,12 +4,12 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $stackSave (result i32)
+ (func $stackSave (; 0 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -28,7 +28,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 2 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast
index 2b33a7539..4484fe3d2 100644
--- a/test/dot_s/asm_const.wast
+++ b/test/dot_s/asm_const.wast
@@ -8,7 +8,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 1 ;) (result i32)
(call $emscripten_asm_const_v
(i32.const 0)
)
@@ -16,12 +16,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -40,7 +40,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index 8e8191369..99c78be9d 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -14,7 +14,7 @@
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
(export "dynCall_iii" (func $dynCall_iii))
- (func $main (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $main (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(call $puts
(i32.const 16)
)
@@ -97,12 +97,12 @@
)
(get_local $0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -121,16 +121,16 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 5 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $dynCall_iii (param $fptr i32) (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_iii (; 6 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$iii
(get_local $0)
(get_local $1)
diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast
index 26448250f..8d333e7bc 100644
--- a/test/dot_s/bcp-1.wast
+++ b/test/dot_s/bcp-1.wast
@@ -38,92 +38,92 @@
(export "main" (func $main))
(export "dynCall_i" (func $dynCall_i))
(export "dynCall_ii" (func $dynCall_ii))
- (func $bad0 (type $FUNCSIG$i) (result i32)
+ (func $bad0 (; 2 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $bad1 (type $FUNCSIG$i) (result i32)
+ (func $bad1 (; 3 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $bad2 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $bad2 (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $bad3 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $bad3 (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $bad4 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $bad4 (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $bad5 (type $FUNCSIG$i) (result i32)
+ (func $bad5 (; 7 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $bad6 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $bad6 (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $bad7 (type $FUNCSIG$i) (result i32)
+ (func $bad7 (; 9 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $bad8 (type $FUNCSIG$i) (result i32)
+ (func $bad8 (; 10 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $bad9 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $bad9 (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $bad10 (type $FUNCSIG$i) (result i32)
+ (func $bad10 (; 12 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $good0 (type $FUNCSIG$i) (result i32)
+ (func $good0 (; 13 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 1)
)
)
- (func $good1 (type $FUNCSIG$i) (result i32)
+ (func $good1 (; 14 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 1)
)
)
- (func $good2 (type $FUNCSIG$i) (result i32)
+ (func $good2 (; 15 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 1)
)
)
- (func $opt0 (type $FUNCSIG$i) (result i32)
+ (func $opt0 (; 16 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $opt1 (type $FUNCSIG$i) (result i32)
+ (func $opt1 (; 17 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
)
)
- (func $opt2 (type $FUNCSIG$i) (result i32)
+ (func $opt2 (; 18 ;) (type $FUNCSIG$i) (result i32)
(return
(i32.const 1)
)
)
- (func $main (result i32)
+ (func $main (; 19 ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -309,12 +309,12 @@
(call $abort)
(unreachable)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 20 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 21 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -333,21 +333,21 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 22 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 23 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $dynCall_i (param $fptr i32) (result i32)
+ (func $dynCall_i (; 24 ;) (param $fptr i32) (result i32)
(call_indirect $FUNCSIG$i
(get_local $fptr)
)
)
- (func $dynCall_ii (param $fptr i32) (param $0 i32) (result i32)
+ (func $dynCall_ii (; 25 ;) (param $fptr i32) (param $0 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $0)
(get_local $fptr)
diff --git a/test/dot_s/data-offset-folding.wast b/test/dot_s/data-offset-folding.wast
index ba95d77c5..78aa96539 100644
--- a/test/dot_s/data-offset-folding.wast
+++ b/test/dot_s/data-offset-folding.wast
@@ -6,12 +6,12 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $stackSave (result i32)
+ (func $stackSave (; 0 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -30,7 +30,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 2 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/debug.wast b/test/dot_s/debug.wast
index f85073e19..6177724ae 100644
--- a/test/dot_s/debug.wast
+++ b/test/dot_s/debug.wast
@@ -5,7 +5,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "fib" (func $fib))
- (func $fib (param $0 i32) (result i32)
+ (func $fib (; 0 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -57,12 +57,12 @@
(get_local $4)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -81,7 +81,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/dso_handle.wast b/test/dot_s/dso_handle.wast
index 4b6dcb340..392add253 100644
--- a/test/dot_s/dso_handle.wast
+++ b/test/dot_s/dso_handle.wast
@@ -5,17 +5,17 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(return
(i32.const 8)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -34,7 +34,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/dyncall.wast b/test/dot_s/dyncall.wast
index 4df0e4b27..2656ce5c4 100644
--- a/test/dot_s/dyncall.wast
+++ b/test/dot_s/dyncall.wast
@@ -19,20 +19,20 @@
(export "dynCall_i" (func $dynCall_i))
(export "dynCall_if" (func $dynCall_if))
(export "dynCall_vd" (func $dynCall_vd))
- (func $i (type $FUNCSIG$i) (result i32)
+ (func $i (; 0 ;) (type $FUNCSIG$i) (result i32)
(i32.const 0)
)
- (func $i_f (type $FUNCSIG$if) (param $0 f32) (result i32)
+ (func $i_f (; 1 ;) (type $FUNCSIG$if) (param $0 f32) (result i32)
(i32.const 0)
)
- (func $vd (type $FUNCSIG$vd) (param $0 f64)
+ (func $vd (; 2 ;) (type $FUNCSIG$vd) (param $0 f64)
)
- (func $ffjjdi (type $FUNCSIG$ffjjdi) (param $0 f32) (param $1 i64) (param $2 i64) (param $3 f64) (param $4 i32) (result f32)
+ (func $ffjjdi (; 3 ;) (type $FUNCSIG$ffjjdi) (param $0 f32) (param $1 i64) (param $2 i64) (param $3 f64) (param $4 i32) (result f32)
(f32.const 0)
)
- (func $vd2 (type $FUNCSIG$vd) (param $0 f64)
+ (func $vd2 (; 4 ;) (type $FUNCSIG$vd) (param $0 f64)
)
- (func $main (result i32)
+ (func $main (; 5 ;) (result i32)
(drop
(i32.const 1)
)
@@ -50,12 +50,12 @@
)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 6 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -74,27 +74,27 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 8 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 9 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $dynCall_i (param $fptr i32) (result i32)
+ (func $dynCall_i (; 10 ;) (param $fptr i32) (result i32)
(call_indirect $FUNCSIG$i
(get_local $fptr)
)
)
- (func $dynCall_if (param $fptr i32) (param $0 f32) (result i32)
+ (func $dynCall_if (; 11 ;) (param $fptr i32) (param $0 f32) (result i32)
(call_indirect $FUNCSIG$if
(get_local $0)
(get_local $fptr)
)
)
- (func $dynCall_vd (param $fptr i32) (param $0 f64)
+ (func $dynCall_vd (; 12 ;) (param $fptr i32) (param $0 f64)
(call_indirect $FUNCSIG$vd
(get_local $0)
(get_local $fptr)
diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast
index f5bb40ce1..e161285c8 100644
--- a/test/dot_s/exit.wast
+++ b/test/dot_s/exit.wast
@@ -7,19 +7,19 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 1 ;) (result i32)
(local $0 i32)
(call $exit
(i32.const 0)
)
(unreachable)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -38,7 +38,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/export_malloc_free.wast b/test/dot_s/export_malloc_free.wast
index c0f673e21..b645b9e8a 100644
--- a/test/dot_s/export_malloc_free.wast
+++ b/test/dot_s/export_malloc_free.wast
@@ -9,29 +9,29 @@
(export "free" (func $free))
(export "realloc" (func $realloc))
(export "memalign" (func $memalign))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(i32.const 0)
)
- (func $malloc (param $0 i32) (result i32)
+ (func $malloc (; 1 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $free (param $0 i32)
+ (func $free (; 2 ;) (param $0 i32)
)
- (func $realloc (param $0 i32) (param $1 i32) (result i32)
+ (func $realloc (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.const 0)
)
- (func $memalign (param $0 i32) (param $1 i32) (result i32)
+ (func $memalign (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.const 0)
)
- (func $not_a_malloc (param $0 i32) (param $1 i32) (result i32)
+ (func $not_a_malloc (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 6 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -50,7 +50,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 8 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/fix_em_ehsjlj_names.wast b/test/dot_s/fix_em_ehsjlj_names.wast
index ea6dd54f4..d61668c83 100644
--- a/test/dot_s/fix_em_ehsjlj_names.wast
+++ b/test/dot_s/fix_em_ehsjlj_names.wast
@@ -23,18 +23,18 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_ffd" (func $dynCall_ffd))
(export "dynCall_iii" (func $dynCall_iii))
- (func $_Z5func1v (type $FUNCSIG$v)
+ (func $_Z5func1v (; 5 ;) (type $FUNCSIG$v)
)
- (func $_Z5func2iii (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_Z5func2iii (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.const 3)
)
- (func $_Z5func3fd (type $FUNCSIG$ffd) (param $0 f32) (param $1 f64) (result f32)
+ (func $_Z5func3fd (; 7 ;) (type $FUNCSIG$ffd) (param $0 f32) (param $1 f64) (result f32)
(f32.const 1)
)
- (func $_Z5func4P8mystructS_ (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $_Z5func4P8mystructS_ (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(i32.const 0)
)
- (func $main (result i32)
+ (func $main (; 9 ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -76,12 +76,12 @@
)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 10 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -100,21 +100,21 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 12 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 13 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $dynCall_v (param $fptr i32)
+ (func $dynCall_v (; 14 ;) (param $fptr i32)
(call_indirect $FUNCSIG$v
(get_local $fptr)
)
)
- (func $dynCall_iiii (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $dynCall_iiii (; 15 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $0)
(get_local $1)
@@ -122,14 +122,14 @@
(get_local $fptr)
)
)
- (func $dynCall_ffd (param $fptr i32) (param $0 f32) (param $1 f64) (result f32)
+ (func $dynCall_ffd (; 16 ;) (param $fptr i32) (param $0 f32) (param $1 f64) (result f32)
(call_indirect $FUNCSIG$ffd
(get_local $0)
(get_local $1)
(get_local $fptr)
)
)
- (func $dynCall_iii (param $fptr i32) (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_iii (; 17 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$iii
(get_local $0)
(get_local $1)
diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast
index 7cbd428bc..aea8a9b85 100644
--- a/test/dot_s/function-data-sections.wast
+++ b/test/dot_s/function-data-sections.wast
@@ -10,15 +10,15 @@
(export "foo" (func $foo))
(export "bar" (func $bar))
(export "qux" (func $qux))
- (func $foo
+ (func $foo (; 0 ;)
(return)
)
- (func $bar (param $0 i32) (result i32)
+ (func $bar (; 1 ;) (param $0 i32) (result i32)
(return
(get_local $0)
)
)
- (func $qux (param $0 f64) (param $1 f64) (result f64)
+ (func $qux (; 2 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(f64.add
(get_local $0)
@@ -26,12 +26,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -50,7 +50,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/globals.wast b/test/dot_s/globals.wast
index b25d63362..a7d0ff50e 100644
--- a/test/dot_s/globals.wast
+++ b/test/dot_s/globals.wast
@@ -12,7 +12,7 @@
(export "import_globals" (func $import_globals))
(export "globals_offset" (func $globals_offset))
(export "import_globals_offset" (func $import_globals_offset))
- (func $globals
+ (func $globals (; 0 ;)
(i32.store offset=12
(i32.const 0)
(i32.const 7)
@@ -26,7 +26,7 @@
(i32.const 12)
)
)
- (func $import_globals
+ (func $import_globals (; 1 ;)
(i32.store
(get_global $imported_global)
(i32.const 7)
@@ -40,7 +40,7 @@
(get_global $imported_global)
)
)
- (func $globals_offset
+ (func $globals_offset (; 2 ;)
(i32.store offset=24
(i32.const 4)
(i32.const 7)
@@ -54,7 +54,7 @@
(i32.const 28)
)
)
- (func $import_globals_offset
+ (func $import_globals_offset (; 3 ;)
(i32.store offset=12
(i32.add
(i32.const 4)
@@ -80,12 +80,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -104,7 +104,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/hostFinalize.wast b/test/dot_s/hostFinalize.wast
index e1441587a..b3d30a93f 100644
--- a/test/dot_s/hostFinalize.wast
+++ b/test/dot_s/hostFinalize.wast
@@ -4,7 +4,7 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $_main
+ (func $_main (; 0 ;)
(drop
(grow_memory
(i32.add
@@ -14,12 +14,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -38,7 +38,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/indidx.wast b/test/dot_s/indidx.wast
index 9c9e8ca17..36a62da91 100644
--- a/test/dot_s/indidx.wast
+++ b/test/dot_s/indidx.wast
@@ -11,19 +11,19 @@
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
(export "dynCall_i" (func $dynCall_i))
- (func $a (type $FUNCSIG$i) (result i32)
+ (func $a (; 1 ;) (type $FUNCSIG$i) (result i32)
(i32.const 0)
)
- (func $b (type $FUNCSIG$i) (result i32)
+ (func $b (; 2 ;) (type $FUNCSIG$i) (result i32)
(i32.const 1)
)
- (func $c (type $FUNCSIG$i) (result i32)
+ (func $c (; 3 ;) (type $FUNCSIG$i) (result i32)
(i32.const 2)
)
- (func $d (type $FUNCSIG$i) (result i32)
+ (func $d (; 4 ;) (type $FUNCSIG$i) (result i32)
(i32.const 3)
)
- (func $main (param $0 i32) (param $1 i32) (result i32)
+ (func $main (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(block $label$0
(br_if $label$0
@@ -51,12 +51,12 @@
(unreachable)
(unreachable)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 6 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -75,16 +75,16 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 8 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 9 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $dynCall_i (param $fptr i32) (result i32)
+ (func $dynCall_i (; 10 ;) (param $fptr i32) (result i32)
(call_indirect $FUNCSIG$i
(get_local $fptr)
)
diff --git a/test/dot_s/indirect-import.wast b/test/dot_s/indirect-import.wast
index be52ac330..3ee67e2a6 100644
--- a/test/dot_s/indirect-import.wast
+++ b/test/dot_s/indirect-import.wast
@@ -21,7 +21,7 @@
(export "dynCall_fd" (func $dynCall_fd))
(export "dynCall_v" (func $dynCall_v))
(export "dynCall_vi" (func $dynCall_vi))
- (func $bar (result i32)
+ (func $bar (; 6 ;) (result i32)
(local $0 i32)
(local $1 i32)
(i32.store offset=4
@@ -85,15 +85,15 @@
)
(get_local $0)
)
- (func $baz (result i32)
+ (func $baz (; 7 ;) (result i32)
(i32.const 3)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 8 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 9 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -112,29 +112,29 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 10 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 11 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $__importThunk_extern_fd (type $FUNCSIG$fd) (param $0 f64) (result f32)
+ (func $__importThunk_extern_fd (; 12 ;) (type $FUNCSIG$fd) (param $0 f64) (result f32)
(call $extern_fd
(get_local $0)
)
)
- (func $__importThunk_extern_vj (type $FUNCSIG$vj) (param $0 i64)
+ (func $__importThunk_extern_vj (; 13 ;) (type $FUNCSIG$vj) (param $0 i64)
(call $extern_vj
(get_local $0)
)
)
- (func $__importThunk_extern_v (type $FUNCSIG$v)
+ (func $__importThunk_extern_v (; 14 ;) (type $FUNCSIG$v)
(call $extern_v)
)
- (func $__importThunk_extern_ijidf (type $FUNCSIG$ijidf) (param $0 i64) (param $1 i32) (param $2 f64) (param $3 f32) (result i32)
+ (func $__importThunk_extern_ijidf (; 15 ;) (type $FUNCSIG$ijidf) (param $0 i64) (param $1 i32) (param $2 f64) (param $3 f32) (result i32)
(call $extern_ijidf
(get_local $0)
(get_local $1)
@@ -142,28 +142,28 @@
(get_local $3)
)
)
- (func $__importThunk_extern_struct (type $FUNCSIG$vi) (param $0 i32)
+ (func $__importThunk_extern_struct (; 16 ;) (type $FUNCSIG$vi) (param $0 i32)
(call $extern_struct
(get_local $0)
)
)
- (func $__importThunk_extern_sret (type $FUNCSIG$vi) (param $0 i32)
+ (func $__importThunk_extern_sret (; 17 ;) (type $FUNCSIG$vi) (param $0 i32)
(call $extern_sret
(get_local $0)
)
)
- (func $dynCall_fd (param $fptr i32) (param $0 f64) (result f32)
+ (func $dynCall_fd (; 18 ;) (param $fptr i32) (param $0 f64) (result f32)
(call_indirect $FUNCSIG$fd
(get_local $0)
(get_local $fptr)
)
)
- (func $dynCall_v (param $fptr i32)
+ (func $dynCall_v (; 19 ;) (param $fptr i32)
(call_indirect $FUNCSIG$v
(get_local $fptr)
)
)
- (func $dynCall_vi (param $fptr i32) (param $0 i32)
+ (func $dynCall_vi (; 20 ;) (param $fptr i32) (param $0 i32)
(call_indirect $FUNCSIG$vi
(get_local $0)
(get_local $fptr)
diff --git a/test/dot_s/initializers.wast b/test/dot_s/initializers.wast
index b22646eaf..f50b5f5ec 100644
--- a/test/dot_s/initializers.wast
+++ b/test/dot_s/initializers.wast
@@ -7,23 +7,23 @@
(export "main" (func $main))
(export "f1" (func $f1))
(export "f2" (func $f2))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(return
(i32.const 5)
)
)
- (func $f1
+ (func $f1 (; 1 ;)
(return)
)
- (func $f2
+ (func $f2 (; 2 ;)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -42,7 +42,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/lcomm-in-text-segment.wast b/test/dot_s/lcomm-in-text-segment.wast
index b2cb0dc3f..2f7e3173e 100644
--- a/test/dot_s/lcomm-in-text-segment.wast
+++ b/test/dot_s/lcomm-in-text-segment.wast
@@ -5,12 +5,12 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $stackSave (result i32)
+ (func $stackSave (; 0 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -29,7 +29,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 2 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/local_align.wast b/test/dot_s/local_align.wast
index b8e867fbb..41e5675e5 100644
--- a/test/dot_s/local_align.wast
+++ b/test/dot_s/local_align.wast
@@ -5,20 +5,20 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $foo (param $0 i32)
+ (func $foo (; 0 ;) (param $0 i32)
)
- (func $main (result i32)
+ (func $main (; 1 ;) (result i32)
(call $foo
(i32.const 16)
)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -37,7 +37,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/macClangMetaData.wast b/test/dot_s/macClangMetaData.wast
index df585dc54..c24bf3f52 100644
--- a/test/dot_s/macClangMetaData.wast
+++ b/test/dot_s/macClangMetaData.wast
@@ -8,7 +8,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (param $0 i32) (param $1 i32) (result i32)
+ (func $main (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
(drop
(call $puts
(i32.const 16)
@@ -18,12 +18,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -42,7 +42,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast
index 176ba5f7a..4d5cba4e7 100644
--- a/test/dot_s/memops.wast
+++ b/test/dot_s/memops.wast
@@ -8,7 +8,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $_Z6reporti (param $0 i32)
+ (func $_Z6reporti (; 1 ;) (param $0 i32)
(i32.store
(i32.const 8)
(get_local $0)
@@ -18,7 +18,7 @@
)
(return)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -208,12 +208,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -232,7 +232,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast
index 64792d12a..bbc6971af 100644
--- a/test/dot_s/minimal.wast
+++ b/test/dot_s/minimal.wast
@@ -5,17 +5,17 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(return
(i32.const 5)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -34,7 +34,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/permute.wast b/test/dot_s/permute.wast
index ebe4412a5..4ff88947d 100644
--- a/test/dot_s/permute.wast
+++ b/test/dot_s/permute.wast
@@ -5,12 +5,12 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $stackSave (result i32)
+ (func $stackSave (; 0 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -29,7 +29,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 2 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/relocation.wast b/test/dot_s/relocation.wast
index 7a72943bb..4d7d4c4d6 100644
--- a/test/dot_s/relocation.wast
+++ b/test/dot_s/relocation.wast
@@ -7,7 +7,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(local $0 i32)
(return
(i32.load
@@ -15,12 +15,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -39,7 +39,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/return.wast b/test/dot_s/return.wast
index cd88730a8..35c373f94 100644
--- a/test/dot_s/return.wast
+++ b/test/dot_s/return.wast
@@ -6,12 +6,12 @@
(export "stackRestore" (func $stackRestore))
(export "return_i32" (func $return_i32))
(export "return_void" (func $return_void))
- (func $return_i32 (result i32)
+ (func $return_i32 (; 0 ;) (result i32)
(i32.const 5)
)
- (func $return_void
+ (func $return_void (; 1 ;)
)
- (func $fallthrough_return_nested_loop_i32 (result i32)
+ (func $fallthrough_return_nested_loop_i32 (; 2 ;) (result i32)
(loop $label$0 (result i32)
(loop $label$1 (result i32)
(return
@@ -20,12 +20,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -44,7 +44,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/start_main0.wast b/test/dot_s/start_main0.wast
index 6db3a8803..1656e4345 100644
--- a/test/dot_s/start_main0.wast
+++ b/test/dot_s/start_main0.wast
@@ -6,14 +6,14 @@
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
(start $_start)
- (func $main
+ (func $main (; 0 ;)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -32,13 +32,13 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $_start
+ (func $_start (; 4 ;)
(call $main)
)
)
diff --git a/test/dot_s/start_main2.wast b/test/dot_s/start_main2.wast
index 6489b2828..ef6b2695e 100644
--- a/test/dot_s/start_main2.wast
+++ b/test/dot_s/start_main2.wast
@@ -6,17 +6,17 @@
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
(start $_start)
- (func $main (param $0 i32) (param $1 i32) (result i32)
+ (func $main (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(get_local $0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -35,13 +35,13 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $_start
+ (func $_start (; 4 ;)
(local $0 i32)
(local $1 i32)
(drop
diff --git a/test/dot_s/symbolic-offset.wast b/test/dot_s/symbolic-offset.wast
index 3f33fecdc..7dfb753db 100644
--- a/test/dot_s/symbolic-offset.wast
+++ b/test/dot_s/symbolic-offset.wast
@@ -6,19 +6,19 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "f" (func $f))
- (func $f (param $0 i32) (param $1 i32)
+ (func $f (; 0 ;) (param $0 i32) (param $1 i32)
(i32.store offset=16
(get_local $0)
(get_local $1)
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -37,7 +37,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/text_before_type.wast b/test/dot_s/text_before_type.wast
index 56848daf1..9971ea5b0 100644
--- a/test/dot_s/text_before_type.wast
+++ b/test/dot_s/text_before_type.wast
@@ -5,18 +5,18 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(call $foo)
(i32.const 0)
)
- (func $foo
+ (func $foo (; 1 ;)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -35,7 +35,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/traps.clamp.wast b/test/dot_s/traps.clamp.wast
index 3cab71072..127fd53f8 100644
--- a/test/dot_s/traps.clamp.wast
+++ b/test/dot_s/traps.clamp.wast
@@ -5,7 +5,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "test_traps" (func $test_traps))
- (func $test_traps (param $0 f32) (param $1 f64) (result i32)
+ (func $test_traps (; 0 ;) (param $0 f32) (param $1 f64) (result i32)
(call $i32u-div
(call $f32-to-int
(get_local $0)
@@ -15,7 +15,7 @@
)
)
)
- (func $f32-to-int (param $0 f32) (result i32)
+ (func $f32-to-int (; 1 ;) (param $0 f32) (result i32)
(if (result i32)
(f32.ne
(get_local $0)
@@ -41,7 +41,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 2 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -67,7 +67,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -79,12 +79,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -103,7 +103,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/traps.js.wast b/test/dot_s/traps.js.wast
index 39d08f4c0..658301b32 100644
--- a/test/dot_s/traps.js.wast
+++ b/test/dot_s/traps.js.wast
@@ -7,7 +7,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "test_traps" (func $test_traps))
- (func $test_traps (param $0 f32) (param $1 f64) (result i32)
+ (func $test_traps (; 1 ;) (param $0 f32) (param $1 f64) (result i32)
(call $i32u-div
(call $f64-to-int
(f64.promote/f32
@@ -19,7 +19,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -31,12 +31,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -55,7 +55,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/traps.wast b/test/dot_s/traps.wast
index 2ade5362a..fbc7d4400 100644
--- a/test/dot_s/traps.wast
+++ b/test/dot_s/traps.wast
@@ -5,7 +5,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "test_traps" (func $test_traps))
- (func $test_traps (param $0 f32) (param $1 f64) (result i32)
+ (func $test_traps (; 0 ;) (param $0 f32) (param $1 f64) (result i32)
(i32.div_u
(i32.trunc_s/f32
(get_local $0)
@@ -15,12 +15,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -39,7 +39,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/unreachable_blocks.wast b/test/dot_s/unreachable_blocks.wast
index 30f7401e2..43450bb07 100644
--- a/test/dot_s/unreachable_blocks.wast
+++ b/test/dot_s/unreachable_blocks.wast
@@ -4,7 +4,7 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $unreachable_block_void (result i32)
+ (func $unreachable_block_void (; 0 ;) (result i32)
(block $label$0
)
(return
@@ -14,7 +14,7 @@
(unreachable)
)
)
- (func $unreachable_block_i32 (result i32)
+ (func $unreachable_block_i32 (; 1 ;) (result i32)
(return
(i32.const 2)
)
@@ -22,7 +22,7 @@
(unreachable)
)
)
- (func $unreachable_block_i64 (result i64)
+ (func $unreachable_block_i64 (; 2 ;) (result i64)
(return
(i64.const 3)
)
@@ -30,7 +30,7 @@
(unreachable)
)
)
- (func $unreachable_block_f32 (result f32)
+ (func $unreachable_block_f32 (; 3 ;) (result f32)
(return
(f32.const 4.5)
)
@@ -38,7 +38,7 @@
(unreachable)
)
)
- (func $unreachable_block_f64 (result f64)
+ (func $unreachable_block_f64 (; 4 ;) (result f64)
(return
(f64.const 5.5)
)
@@ -46,7 +46,7 @@
(unreachable)
)
)
- (func $unreachable_loop_void (result i32)
+ (func $unreachable_loop_void (; 5 ;) (result i32)
(loop $label$0
(br $label$0)
)
@@ -57,7 +57,7 @@
(br $label$1)
)
)
- (func $unreachable_loop_i32 (result i32)
+ (func $unreachable_loop_i32 (; 6 ;) (result i32)
(return
(i32.const 7)
)
@@ -65,7 +65,7 @@
(br $label$0)
)
)
- (func $unreachable_loop_i64 (result i64)
+ (func $unreachable_loop_i64 (; 7 ;) (result i64)
(return
(i64.const 8)
)
@@ -73,7 +73,7 @@
(br $label$0)
)
)
- (func $unreachable_loop_f32 (result f32)
+ (func $unreachable_loop_f32 (; 8 ;) (result f32)
(return
(f32.const 9.5)
)
@@ -81,7 +81,7 @@
(br $label$0)
)
)
- (func $unreachable_loop_f64 (result f64)
+ (func $unreachable_loop_f64 (; 9 ;) (result f64)
(return
(f64.const 10.5)
)
@@ -89,12 +89,12 @@
(br $label$0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 10 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -113,7 +113,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 12 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast
index c7348f017..c81ef1ebe 100644
--- a/test/dot_s/visibilities.wast
+++ b/test/dot_s/visibilities.wast
@@ -7,21 +7,21 @@
(export "foo" (func $foo))
(export "bar" (func $bar))
(export "qux" (func $qux))
- (func $foo
+ (func $foo (; 0 ;)
(return)
)
- (func $bar
+ (func $bar (; 1 ;)
(return)
)
- (func $qux
+ (func $qux (; 2 ;)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -40,7 +40,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/dylib.wasm.fromBinary b/test/dylib.wasm.fromBinary
index 78d3d8ad4..e2c0ba394 100644
--- a/test/dylib.wasm.fromBinary
+++ b/test/dylib.wasm.fromBinary
@@ -15,7 +15,7 @@
(export "_main" (func $0))
(export "runPostSets" (func $1))
(export "_str" (global $global$2))
- (func $0 (type $1) (result i32)
+ (func $0 (; 1 ;) (type $1) (result i32)
(block $label$1 (result i32)
(drop
(call $import$1
@@ -25,10 +25,10 @@
(i32.const 0)
)
)
- (func $1 (type $2)
+ (func $1 (; 2 ;) (type $2)
(nop)
)
- (func $2 (type $2)
+ (func $2 (; 3 ;) (type $2)
(block $label$1
(set_global $global$0
(i32.add
diff --git a/test/dynamicLibrary.fromasm b/test/dynamicLibrary.fromasm
index 4456edfa2..2233b204e 100644
--- a/test/dynamicLibrary.fromasm
+++ b/test/dynamicLibrary.fromasm
@@ -15,7 +15,7 @@
(export "__post_instantiate" (func $__post_instantiate))
(export "runPostSets" (func $runPostSets))
(export "_global" (global $_global))
- (func $__ZN3FooC2Ev (param $0 i32)
+ (func $__ZN3FooC2Ev (; 2 ;) (param $0 i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -44,10 +44,10 @@
(get_local $1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 3 ;)
(nop)
)
- (func $__post_instantiate
+ (func $__post_instantiate (; 4 ;)
(set_global $STACKTOP
(i32.add
(get_global $memoryBase)
diff --git a/test/dynamicLibrary.fromasm.clamp b/test/dynamicLibrary.fromasm.clamp
index 4456edfa2..2233b204e 100644
--- a/test/dynamicLibrary.fromasm.clamp
+++ b/test/dynamicLibrary.fromasm.clamp
@@ -15,7 +15,7 @@
(export "__post_instantiate" (func $__post_instantiate))
(export "runPostSets" (func $runPostSets))
(export "_global" (global $_global))
- (func $__ZN3FooC2Ev (param $0 i32)
+ (func $__ZN3FooC2Ev (; 2 ;) (param $0 i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -44,10 +44,10 @@
(get_local $1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 3 ;)
(nop)
)
- (func $__post_instantiate
+ (func $__post_instantiate (; 4 ;)
(set_global $STACKTOP
(i32.add
(get_global $memoryBase)
diff --git a/test/dynamicLibrary.fromasm.clamp.no-opts b/test/dynamicLibrary.fromasm.clamp.no-opts
index cbfb2e4fd..4680b89b5 100644
--- a/test/dynamicLibrary.fromasm.clamp.no-opts
+++ b/test/dynamicLibrary.fromasm.clamp.no-opts
@@ -40,7 +40,7 @@
(export "__post_instantiate" (func $__post_instantiate))
(export "runPostSets" (func $runPostSets))
(export "_global" (global $_global))
- (func $stackAlloc (param $size i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
(get_global $STACKTOP)
@@ -73,17 +73,17 @@
(get_local $ret)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $stackRestore (param $top i32)
+ (func $stackRestore (; 4 ;) (param $top i32)
(set_global $STACKTOP
(get_local $top)
)
)
- (func $establishStackSpace (param $stackBase i32) (param $stackMax i32)
+ (func $establishStackSpace (; 5 ;) (param $stackBase i32) (param $stackMax i32)
(set_global $STACKTOP
(get_local $stackBase)
)
@@ -91,7 +91,7 @@
(get_local $stackMax)
)
)
- (func $setThrew (param $threw i32) (param $value i32)
+ (func $setThrew (; 6 ;) (param $threw i32) (param $value i32)
(if
(i32.eq
(get_global $__THREW__)
@@ -107,7 +107,7 @@
)
)
)
- (func $___cxx_global_var_init
+ (func $___cxx_global_var_init (; 7 ;)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -121,7 +121,7 @@
)
(return)
)
- (func $__ZN3FooC2Ev (param $$0 i32)
+ (func $__ZN3FooC2Ev (; 8 ;) (param $$0 i32)
(local $$1 i32)
(local $label i32)
(local $sp i32)
@@ -159,7 +159,7 @@
)
(return)
)
- (func $__GLOBAL__sub_I_liblib_cpp
+ (func $__GLOBAL__sub_I_liblib_cpp (; 9 ;)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -168,11 +168,11 @@
(call $___cxx_global_var_init)
(return)
)
- (func $runPostSets
+ (func $runPostSets (; 10 ;)
(local $temp i32)
(nop)
)
- (func $__post_instantiate
+ (func $__post_instantiate (; 11 ;)
(set_global $STACKTOP
(i32.add
(get_global $memoryBase)
diff --git a/test/dynamicLibrary.fromasm.imprecise b/test/dynamicLibrary.fromasm.imprecise
index f575c9781..49b619634 100644
--- a/test/dynamicLibrary.fromasm.imprecise
+++ b/test/dynamicLibrary.fromasm.imprecise
@@ -14,7 +14,7 @@
(export "__post_instantiate" (func $__post_instantiate))
(export "runPostSets" (func $runPostSets))
(export "_global" (global $_global))
- (func $__ZN3FooC2Ev (param $0 i32)
+ (func $__ZN3FooC2Ev (; 2 ;) (param $0 i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -43,10 +43,10 @@
(get_local $1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 3 ;)
(nop)
)
- (func $__post_instantiate
+ (func $__post_instantiate (; 4 ;)
(set_global $STACKTOP
(i32.add
(get_global $memoryBase)
diff --git a/test/dynamicLibrary.fromasm.imprecise.no-opts b/test/dynamicLibrary.fromasm.imprecise.no-opts
index cbfb2e4fd..4680b89b5 100644
--- a/test/dynamicLibrary.fromasm.imprecise.no-opts
+++ b/test/dynamicLibrary.fromasm.imprecise.no-opts
@@ -40,7 +40,7 @@
(export "__post_instantiate" (func $__post_instantiate))
(export "runPostSets" (func $runPostSets))
(export "_global" (global $_global))
- (func $stackAlloc (param $size i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
(get_global $STACKTOP)
@@ -73,17 +73,17 @@
(get_local $ret)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $stackRestore (param $top i32)
+ (func $stackRestore (; 4 ;) (param $top i32)
(set_global $STACKTOP
(get_local $top)
)
)
- (func $establishStackSpace (param $stackBase i32) (param $stackMax i32)
+ (func $establishStackSpace (; 5 ;) (param $stackBase i32) (param $stackMax i32)
(set_global $STACKTOP
(get_local $stackBase)
)
@@ -91,7 +91,7 @@
(get_local $stackMax)
)
)
- (func $setThrew (param $threw i32) (param $value i32)
+ (func $setThrew (; 6 ;) (param $threw i32) (param $value i32)
(if
(i32.eq
(get_global $__THREW__)
@@ -107,7 +107,7 @@
)
)
)
- (func $___cxx_global_var_init
+ (func $___cxx_global_var_init (; 7 ;)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -121,7 +121,7 @@
)
(return)
)
- (func $__ZN3FooC2Ev (param $$0 i32)
+ (func $__ZN3FooC2Ev (; 8 ;) (param $$0 i32)
(local $$1 i32)
(local $label i32)
(local $sp i32)
@@ -159,7 +159,7 @@
)
(return)
)
- (func $__GLOBAL__sub_I_liblib_cpp
+ (func $__GLOBAL__sub_I_liblib_cpp (; 9 ;)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -168,11 +168,11 @@
(call $___cxx_global_var_init)
(return)
)
- (func $runPostSets
+ (func $runPostSets (; 10 ;)
(local $temp i32)
(nop)
)
- (func $__post_instantiate
+ (func $__post_instantiate (; 11 ;)
(set_global $STACKTOP
(i32.add
(get_global $memoryBase)
diff --git a/test/dynamicLibrary.fromasm.no-opts b/test/dynamicLibrary.fromasm.no-opts
index cbfb2e4fd..4680b89b5 100644
--- a/test/dynamicLibrary.fromasm.no-opts
+++ b/test/dynamicLibrary.fromasm.no-opts
@@ -40,7 +40,7 @@
(export "__post_instantiate" (func $__post_instantiate))
(export "runPostSets" (func $runPostSets))
(export "_global" (global $_global))
- (func $stackAlloc (param $size i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
(get_global $STACKTOP)
@@ -73,17 +73,17 @@
(get_local $ret)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $stackRestore (param $top i32)
+ (func $stackRestore (; 4 ;) (param $top i32)
(set_global $STACKTOP
(get_local $top)
)
)
- (func $establishStackSpace (param $stackBase i32) (param $stackMax i32)
+ (func $establishStackSpace (; 5 ;) (param $stackBase i32) (param $stackMax i32)
(set_global $STACKTOP
(get_local $stackBase)
)
@@ -91,7 +91,7 @@
(get_local $stackMax)
)
)
- (func $setThrew (param $threw i32) (param $value i32)
+ (func $setThrew (; 6 ;) (param $threw i32) (param $value i32)
(if
(i32.eq
(get_global $__THREW__)
@@ -107,7 +107,7 @@
)
)
)
- (func $___cxx_global_var_init
+ (func $___cxx_global_var_init (; 7 ;)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -121,7 +121,7 @@
)
(return)
)
- (func $__ZN3FooC2Ev (param $$0 i32)
+ (func $__ZN3FooC2Ev (; 8 ;) (param $$0 i32)
(local $$1 i32)
(local $label i32)
(local $sp i32)
@@ -159,7 +159,7 @@
)
(return)
)
- (func $__GLOBAL__sub_I_liblib_cpp
+ (func $__GLOBAL__sub_I_liblib_cpp (; 9 ;)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -168,11 +168,11 @@
(call $___cxx_global_var_init)
(return)
)
- (func $runPostSets
+ (func $runPostSets (; 10 ;)
(local $temp i32)
(nop)
)
- (func $__post_instantiate
+ (func $__post_instantiate (; 11 ;)
(set_global $STACKTOP
(i32.add
(get_global $memoryBase)
diff --git a/test/emcc_O2_hello_world.fromasm b/test/emcc_O2_hello_world.fromasm
index 71b52c753..733bf30c6 100644
--- a/test/emcc_O2_hello_world.fromasm
+++ b/test/emcc_O2_hello_world.fromasm
@@ -52,7 +52,7 @@
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 15 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5886,7 +5886,7 @@
)
(i32.const 0)
)
- (func $_free (param $0 i32)
+ (func $_free (; 16 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7728,7 +7728,7 @@
(i32.const -1)
)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 17 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8102,7 +8102,7 @@
)
(get_local $15)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 18 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8315,7 +8315,7 @@
)
(get_local $4)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8449,7 +8449,7 @@
)
(get_local $2)
)
- (func $_strlen (param $0 i32) (result i32)
+ (func $_strlen (; 20 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8593,7 +8593,7 @@
(get_local $3)
)
)
- (func $___overflow (param $0 i32) (param $1 i32) (result i32)
+ (func $___overflow (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8747,7 +8747,7 @@
)
(get_local $4)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 22 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8870,7 +8870,7 @@
)
)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 23 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9017,10 +9017,10 @@
)
(get_local $3)
)
- (func $runPostSets
+ (func $runPostSets (; 24 ;)
(nop)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9158,7 +9158,7 @@
(get_local $2)
)
)
- (func $_puts (param $0 i32) (result i32)
+ (func $_puts (; 26 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9267,7 +9267,7 @@
(i32.const 31)
)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9336,7 +9336,7 @@
)
(get_local $0)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9414,7 +9414,7 @@
)
)
)
- (func $_fwrite (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_fwrite (; 29 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9480,7 +9480,7 @@
)
(get_local $2)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9549,7 +9549,7 @@
)
(get_local $3)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 31 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9582,7 +9582,7 @@
)
(get_local $0)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 32 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9601,7 +9601,7 @@
(get_local $0)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -9615,7 +9615,7 @@
)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 34 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -9637,7 +9637,7 @@
)
(get_local $1)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 35 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 8)
@@ -9648,7 +9648,7 @@
(i32.const 60)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 36 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -9663,7 +9663,7 @@
)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 37 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -9672,7 +9672,7 @@
)
)
)
- (func $_cleanup_418 (param $0 i32)
+ (func $_cleanup_418 (; 38 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9684,7 +9684,7 @@
)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 39 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -9692,7 +9692,7 @@
(get_local $1)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 40 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -9704,38 +9704,38 @@
)
)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 41 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $abort
(i32.const 1)
)
(i32.const 0)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 42 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 43 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 44 ;) (param $0 i32) (result i32)
(call $abort
(i32.const 0)
)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 45 ;) (param $0 i32)
(nop)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 46 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 47 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 48 ;) (result i32)
(drop
(call $_puts
(i32.const 672)
@@ -9743,10 +9743,10 @@
)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 49 ;) (result i32)
(get_global $STACKTOP)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 50 ;) (param $0 i32)
(call $abort
(i32.const 2)
)
diff --git a/test/emcc_O2_hello_world.fromasm.clamp b/test/emcc_O2_hello_world.fromasm.clamp
index 71b52c753..733bf30c6 100644
--- a/test/emcc_O2_hello_world.fromasm.clamp
+++ b/test/emcc_O2_hello_world.fromasm.clamp
@@ -52,7 +52,7 @@
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 15 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5886,7 +5886,7 @@
)
(i32.const 0)
)
- (func $_free (param $0 i32)
+ (func $_free (; 16 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7728,7 +7728,7 @@
(i32.const -1)
)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 17 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8102,7 +8102,7 @@
)
(get_local $15)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 18 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8315,7 +8315,7 @@
)
(get_local $4)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8449,7 +8449,7 @@
)
(get_local $2)
)
- (func $_strlen (param $0 i32) (result i32)
+ (func $_strlen (; 20 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8593,7 +8593,7 @@
(get_local $3)
)
)
- (func $___overflow (param $0 i32) (param $1 i32) (result i32)
+ (func $___overflow (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8747,7 +8747,7 @@
)
(get_local $4)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 22 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8870,7 +8870,7 @@
)
)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 23 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9017,10 +9017,10 @@
)
(get_local $3)
)
- (func $runPostSets
+ (func $runPostSets (; 24 ;)
(nop)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9158,7 +9158,7 @@
(get_local $2)
)
)
- (func $_puts (param $0 i32) (result i32)
+ (func $_puts (; 26 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9267,7 +9267,7 @@
(i32.const 31)
)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9336,7 +9336,7 @@
)
(get_local $0)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9414,7 +9414,7 @@
)
)
)
- (func $_fwrite (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_fwrite (; 29 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9480,7 +9480,7 @@
)
(get_local $2)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9549,7 +9549,7 @@
)
(get_local $3)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 31 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9582,7 +9582,7 @@
)
(get_local $0)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 32 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9601,7 +9601,7 @@
(get_local $0)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -9615,7 +9615,7 @@
)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 34 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -9637,7 +9637,7 @@
)
(get_local $1)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 35 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 8)
@@ -9648,7 +9648,7 @@
(i32.const 60)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 36 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -9663,7 +9663,7 @@
)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 37 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -9672,7 +9672,7 @@
)
)
)
- (func $_cleanup_418 (param $0 i32)
+ (func $_cleanup_418 (; 38 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9684,7 +9684,7 @@
)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 39 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -9692,7 +9692,7 @@
(get_local $1)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 40 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -9704,38 +9704,38 @@
)
)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 41 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $abort
(i32.const 1)
)
(i32.const 0)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 42 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 43 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 44 ;) (param $0 i32) (result i32)
(call $abort
(i32.const 0)
)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 45 ;) (param $0 i32)
(nop)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 46 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 47 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 48 ;) (result i32)
(drop
(call $_puts
(i32.const 672)
@@ -9743,10 +9743,10 @@
)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 49 ;) (result i32)
(get_global $STACKTOP)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 50 ;) (param $0 i32)
(call $abort
(i32.const 2)
)
diff --git a/test/emcc_O2_hello_world.fromasm.clamp.no-opts b/test/emcc_O2_hello_world.fromasm.clamp.no-opts
index 427135b30..2b2a083d5 100644
--- a/test/emcc_O2_hello_world.fromasm.clamp.no-opts
+++ b/test/emcc_O2_hello_world.fromasm.clamp.no-opts
@@ -80,7 +80,7 @@
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
- (func $_malloc (param $i1 i32) (result i32)
+ (func $_malloc (; 15 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -7061,7 +7061,7 @@
(get_local $i13)
)
)
- (func $_free (param $i1 i32)
+ (func $_free (; 16 ;) (param $i1 i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -9243,7 +9243,7 @@
)
(return)
)
- (func $___stdio_write (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdio_write (; 17 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -9708,7 +9708,7 @@
(get_local $i24)
)
)
- (func $___fwritex (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___fwritex (; 18 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -9977,7 +9977,7 @@
(get_local $i8)
)
)
- (func $_fflush (param $i1 i32) (result i32)
+ (func $_fflush (; 19 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10170,7 +10170,7 @@
(get_local $i2)
)
)
- (func $_strlen (param $i1 i32) (result i32)
+ (func $_strlen (; 20 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10369,7 +10369,7 @@
)
)
)
- (func $___overflow (param $i1 i32) (param $i2 i32) (result i32)
+ (func $___overflow (; 21 ;) (param $i1 i32) (param $i2 i32) (result i32)
(local $i3 i32)
(local $i4 i32)
(local $i5 i32)
@@ -10546,7 +10546,7 @@
(get_local $i10)
)
)
- (func $___fflush_unlocked (param $i1 i32) (result i32)
+ (func $___fflush_unlocked (; 22 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10691,7 +10691,7 @@
(get_local $i4)
)
)
- (func $_memcpy (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $_memcpy (; 23 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(if
(i32.ge_s
@@ -10855,10 +10855,10 @@
(get_local $i4)
)
)
- (func $runPostSets
+ (func $runPostSets (; 24 ;)
(nop)
)
- (func $_memset (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $_memset (; 25 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -11018,7 +11018,7 @@
)
)
)
- (func $_puts (param $i1 i32) (result i32)
+ (func $_puts (; 26 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -11144,7 +11144,7 @@
)
)
)
- (func $___stdio_seek (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdio_seek (; 27 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -11236,7 +11236,7 @@
(get_local $i7)
)
)
- (func $___towrite (param $i1 i32) (result i32)
+ (func $___towrite (; 28 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -11346,7 +11346,7 @@
(get_local $i4)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 29 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -11358,7 +11358,7 @@
)
)
)
- (func $_fwrite (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
+ (func $_fwrite (; 30 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
(local $i5 i32)
(local $i6 i32)
(local $i7 i32)
@@ -11438,7 +11438,7 @@
(get_local $i9)
)
)
- (func $___stdout_write (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdout_write (; 31 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(set_local $i4
@@ -11534,7 +11534,7 @@
(get_local $i5)
)
)
- (func $copyTempDouble (param $i1 i32)
+ (func $copyTempDouble (; 32 ;) (param $i1 i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -11626,7 +11626,7 @@
)
)
)
- (func $___stdio_close (param $i1 i32) (result i32)
+ (func $___stdio_close (; 33 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(set_local $i2
@@ -11665,7 +11665,7 @@
(get_local $i1)
)
)
- (func $copyTempFloat (param $i1 i32)
+ (func $copyTempFloat (; 34 ;) (param $i1 i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -11709,7 +11709,7 @@
)
)
)
- (func $___syscall_ret (param $i1 i32) (result i32)
+ (func $___syscall_ret (; 35 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(if
(i32.gt_u
@@ -11736,7 +11736,7 @@
(get_local $i2)
)
)
- (func $dynCall_iiii (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
+ (func $dynCall_iiii (; 36 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $i2)
@@ -11752,7 +11752,7 @@
)
)
)
- (func $stackAlloc (param $i1 i32) (result i32)
+ (func $stackAlloc (; 37 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(set_local $i2
(get_global $STACKTOP)
@@ -11776,7 +11776,7 @@
(get_local $i2)
)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 38 ;) (result i32)
(local $i1 i32)
(if
(i32.eqz
@@ -11800,7 +11800,7 @@
(get_local $i1)
)
)
- (func $setThrew (param $i1 i32) (param $i2 i32)
+ (func $setThrew (; 39 ;) (param $i1 i32) (param $i2 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -11815,7 +11815,7 @@
)
)
)
- (func $_fputs (param $i1 i32) (param $i2 i32) (result i32)
+ (func $_fputs (; 40 ;) (param $i1 i32) (param $i2 i32) (result i32)
(return
(i32.add
(call $_fwrite
@@ -11830,7 +11830,7 @@
)
)
)
- (func $dynCall_ii (param $i1 i32) (param $i2 i32) (result i32)
+ (func $dynCall_ii (; 41 ;) (param $i1 i32) (param $i2 i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $i2)
@@ -11844,7 +11844,7 @@
)
)
)
- (func $_cleanup_418 (param $i1 i32)
+ (func $_cleanup_418 (; 42 ;) (param $i1 i32)
(if
(i32.eqz
(i32.load
@@ -11860,7 +11860,7 @@
)
(return)
)
- (func $establishStackSpace (param $i1 i32) (param $i2 i32)
+ (func $establishStackSpace (; 43 ;) (param $i1 i32) (param $i2 i32)
(set_global $STACKTOP
(get_local $i1)
)
@@ -11868,7 +11868,7 @@
(get_local $i2)
)
)
- (func $dynCall_vi (param $i1 i32) (param $i2 i32)
+ (func $dynCall_vi (; 44 ;) (param $i1 i32) (param $i2 i32)
(call_indirect $FUNCSIG$vi
(get_local $i2)
(i32.add
@@ -11880,7 +11880,7 @@
)
)
)
- (func $b1 (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $b1 (; 45 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(call $abort
(i32.const 1)
)
@@ -11888,17 +11888,17 @@
(i32.const 0)
)
)
- (func $stackRestore (param $i1 i32)
+ (func $stackRestore (; 46 ;) (param $i1 i32)
(set_global $STACKTOP
(get_local $i1)
)
)
- (func $setTempRet0 (param $i1 i32)
+ (func $setTempRet0 (; 47 ;) (param $i1 i32)
(set_global $tempRet0
(get_local $i1)
)
)
- (func $b0 (param $i1 i32) (result i32)
+ (func $b0 (; 48 ;) (param $i1 i32) (result i32)
(call $abort
(i32.const 0)
)
@@ -11906,20 +11906,20 @@
(i32.const 0)
)
)
- (func $___unlockfile (param $i1 i32)
+ (func $___unlockfile (; 49 ;) (param $i1 i32)
(return)
)
- (func $___lockfile (param $i1 i32) (result i32)
+ (func $___lockfile (; 50 ;) (param $i1 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 51 ;) (result i32)
(return
(get_global $tempRet0)
)
)
- (func $_main (result i32)
+ (func $_main (; 52 ;) (result i32)
(drop
(call $_puts
(i32.const 672)
@@ -11929,12 +11929,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 53 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $b2 (param $i1 i32)
+ (func $b2 (; 54 ;) (param $i1 i32)
(call $abort
(i32.const 2)
)
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise b/test/emcc_O2_hello_world.fromasm.imprecise
index dd8457376..917ed8fcf 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise
+++ b/test/emcc_O2_hello_world.fromasm.imprecise
@@ -51,7 +51,7 @@
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 15 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5885,7 +5885,7 @@
)
(i32.const 0)
)
- (func $_free (param $0 i32)
+ (func $_free (; 16 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7727,7 +7727,7 @@
(i32.const -1)
)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 17 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8101,7 +8101,7 @@
)
(get_local $15)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 18 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8314,7 +8314,7 @@
)
(get_local $4)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8448,7 +8448,7 @@
)
(get_local $2)
)
- (func $_strlen (param $0 i32) (result i32)
+ (func $_strlen (; 20 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8592,7 +8592,7 @@
(get_local $3)
)
)
- (func $___overflow (param $0 i32) (param $1 i32) (result i32)
+ (func $___overflow (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8746,7 +8746,7 @@
)
(get_local $4)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 22 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8869,7 +8869,7 @@
)
)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 23 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9016,10 +9016,10 @@
)
(get_local $3)
)
- (func $runPostSets
+ (func $runPostSets (; 24 ;)
(nop)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9157,7 +9157,7 @@
(get_local $2)
)
)
- (func $_puts (param $0 i32) (result i32)
+ (func $_puts (; 26 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9266,7 +9266,7 @@
(i32.const 31)
)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9335,7 +9335,7 @@
)
(get_local $0)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9413,7 +9413,7 @@
)
)
)
- (func $_fwrite (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_fwrite (; 29 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9475,7 +9475,7 @@
)
(get_local $2)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9544,7 +9544,7 @@
)
(get_local $3)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 31 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9577,7 +9577,7 @@
)
(get_local $0)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 32 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9596,7 +9596,7 @@
(get_local $0)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -9610,7 +9610,7 @@
)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 34 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -9632,7 +9632,7 @@
)
(get_local $1)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 35 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 8)
@@ -9643,7 +9643,7 @@
(i32.const 60)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 36 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -9658,7 +9658,7 @@
)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 37 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -9667,7 +9667,7 @@
)
)
)
- (func $_cleanup_418 (param $0 i32)
+ (func $_cleanup_418 (; 38 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9679,7 +9679,7 @@
)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 39 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -9687,7 +9687,7 @@
(get_local $1)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 40 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -9699,38 +9699,38 @@
)
)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 41 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $abort
(i32.const 1)
)
(i32.const 0)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 42 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 43 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 44 ;) (param $0 i32) (result i32)
(call $abort
(i32.const 0)
)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 45 ;) (param $0 i32)
(nop)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 46 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 47 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 48 ;) (result i32)
(drop
(call $_puts
(i32.const 672)
@@ -9738,10 +9738,10 @@
)
(i32.const 0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 49 ;) (result i32)
(get_global $STACKTOP)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 50 ;) (param $0 i32)
(call $abort
(i32.const 2)
)
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise.no-opts b/test/emcc_O2_hello_world.fromasm.imprecise.no-opts
index 9ae5ccea1..1ebe34895 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise.no-opts
+++ b/test/emcc_O2_hello_world.fromasm.imprecise.no-opts
@@ -80,7 +80,7 @@
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
- (func $_malloc (param $i1 i32) (result i32)
+ (func $_malloc (; 15 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -7061,7 +7061,7 @@
(get_local $i13)
)
)
- (func $_free (param $i1 i32)
+ (func $_free (; 16 ;) (param $i1 i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -9243,7 +9243,7 @@
)
(return)
)
- (func $___stdio_write (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdio_write (; 17 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -9708,7 +9708,7 @@
(get_local $i24)
)
)
- (func $___fwritex (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___fwritex (; 18 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -9977,7 +9977,7 @@
(get_local $i8)
)
)
- (func $_fflush (param $i1 i32) (result i32)
+ (func $_fflush (; 19 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10170,7 +10170,7 @@
(get_local $i2)
)
)
- (func $_strlen (param $i1 i32) (result i32)
+ (func $_strlen (; 20 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10369,7 +10369,7 @@
)
)
)
- (func $___overflow (param $i1 i32) (param $i2 i32) (result i32)
+ (func $___overflow (; 21 ;) (param $i1 i32) (param $i2 i32) (result i32)
(local $i3 i32)
(local $i4 i32)
(local $i5 i32)
@@ -10546,7 +10546,7 @@
(get_local $i10)
)
)
- (func $___fflush_unlocked (param $i1 i32) (result i32)
+ (func $___fflush_unlocked (; 22 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10691,7 +10691,7 @@
(get_local $i4)
)
)
- (func $_memcpy (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $_memcpy (; 23 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(if
(i32.ge_s
@@ -10855,10 +10855,10 @@
(get_local $i4)
)
)
- (func $runPostSets
+ (func $runPostSets (; 24 ;)
(nop)
)
- (func $_memset (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $_memset (; 25 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -11018,7 +11018,7 @@
)
)
)
- (func $_puts (param $i1 i32) (result i32)
+ (func $_puts (; 26 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -11144,7 +11144,7 @@
)
)
)
- (func $___stdio_seek (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdio_seek (; 27 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -11236,7 +11236,7 @@
(get_local $i7)
)
)
- (func $___towrite (param $i1 i32) (result i32)
+ (func $___towrite (; 28 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -11346,7 +11346,7 @@
(get_local $i4)
)
)
- (func $_fwrite (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
+ (func $_fwrite (; 29 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
(local $i5 i32)
(local $i6 i32)
(local $i7 i32)
@@ -11426,7 +11426,7 @@
(get_local $i9)
)
)
- (func $___stdout_write (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(set_local $i4
@@ -11522,7 +11522,7 @@
(get_local $i5)
)
)
- (func $copyTempDouble (param $i1 i32)
+ (func $copyTempDouble (; 31 ;) (param $i1 i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -11614,7 +11614,7 @@
)
)
)
- (func $___stdio_close (param $i1 i32) (result i32)
+ (func $___stdio_close (; 32 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(set_local $i2
@@ -11653,7 +11653,7 @@
(get_local $i1)
)
)
- (func $copyTempFloat (param $i1 i32)
+ (func $copyTempFloat (; 33 ;) (param $i1 i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -11697,7 +11697,7 @@
)
)
)
- (func $___syscall_ret (param $i1 i32) (result i32)
+ (func $___syscall_ret (; 34 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(if
(i32.gt_u
@@ -11724,7 +11724,7 @@
(get_local $i2)
)
)
- (func $dynCall_iiii (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
+ (func $dynCall_iiii (; 35 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $i2)
@@ -11740,7 +11740,7 @@
)
)
)
- (func $stackAlloc (param $i1 i32) (result i32)
+ (func $stackAlloc (; 36 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(set_local $i2
(get_global $STACKTOP)
@@ -11764,7 +11764,7 @@
(get_local $i2)
)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 37 ;) (result i32)
(local $i1 i32)
(if
(i32.eqz
@@ -11788,7 +11788,7 @@
(get_local $i1)
)
)
- (func $setThrew (param $i1 i32) (param $i2 i32)
+ (func $setThrew (; 38 ;) (param $i1 i32) (param $i2 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -11803,7 +11803,7 @@
)
)
)
- (func $_fputs (param $i1 i32) (param $i2 i32) (result i32)
+ (func $_fputs (; 39 ;) (param $i1 i32) (param $i2 i32) (result i32)
(return
(i32.add
(call $_fwrite
@@ -11818,7 +11818,7 @@
)
)
)
- (func $dynCall_ii (param $i1 i32) (param $i2 i32) (result i32)
+ (func $dynCall_ii (; 40 ;) (param $i1 i32) (param $i2 i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $i2)
@@ -11832,7 +11832,7 @@
)
)
)
- (func $_cleanup_418 (param $i1 i32)
+ (func $_cleanup_418 (; 41 ;) (param $i1 i32)
(if
(i32.eqz
(i32.load
@@ -11848,7 +11848,7 @@
)
(return)
)
- (func $establishStackSpace (param $i1 i32) (param $i2 i32)
+ (func $establishStackSpace (; 42 ;) (param $i1 i32) (param $i2 i32)
(set_global $STACKTOP
(get_local $i1)
)
@@ -11856,7 +11856,7 @@
(get_local $i2)
)
)
- (func $dynCall_vi (param $i1 i32) (param $i2 i32)
+ (func $dynCall_vi (; 43 ;) (param $i1 i32) (param $i2 i32)
(call_indirect $FUNCSIG$vi
(get_local $i2)
(i32.add
@@ -11868,7 +11868,7 @@
)
)
)
- (func $b1 (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $b1 (; 44 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(call $abort
(i32.const 1)
)
@@ -11876,17 +11876,17 @@
(i32.const 0)
)
)
- (func $stackRestore (param $i1 i32)
+ (func $stackRestore (; 45 ;) (param $i1 i32)
(set_global $STACKTOP
(get_local $i1)
)
)
- (func $setTempRet0 (param $i1 i32)
+ (func $setTempRet0 (; 46 ;) (param $i1 i32)
(set_global $tempRet0
(get_local $i1)
)
)
- (func $b0 (param $i1 i32) (result i32)
+ (func $b0 (; 47 ;) (param $i1 i32) (result i32)
(call $abort
(i32.const 0)
)
@@ -11894,20 +11894,20 @@
(i32.const 0)
)
)
- (func $___unlockfile (param $i1 i32)
+ (func $___unlockfile (; 48 ;) (param $i1 i32)
(return)
)
- (func $___lockfile (param $i1 i32) (result i32)
+ (func $___lockfile (; 49 ;) (param $i1 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 50 ;) (result i32)
(return
(get_global $tempRet0)
)
)
- (func $_main (result i32)
+ (func $_main (; 51 ;) (result i32)
(drop
(call $_puts
(i32.const 672)
@@ -11917,12 +11917,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 52 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $b2 (param $i1 i32)
+ (func $b2 (; 53 ;) (param $i1 i32)
(call $abort
(i32.const 2)
)
diff --git a/test/emcc_O2_hello_world.fromasm.no-opts b/test/emcc_O2_hello_world.fromasm.no-opts
index 427135b30..2b2a083d5 100644
--- a/test/emcc_O2_hello_world.fromasm.no-opts
+++ b/test/emcc_O2_hello_world.fromasm.no-opts
@@ -80,7 +80,7 @@
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
- (func $_malloc (param $i1 i32) (result i32)
+ (func $_malloc (; 15 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -7061,7 +7061,7 @@
(get_local $i13)
)
)
- (func $_free (param $i1 i32)
+ (func $_free (; 16 ;) (param $i1 i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -9243,7 +9243,7 @@
)
(return)
)
- (func $___stdio_write (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdio_write (; 17 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -9708,7 +9708,7 @@
(get_local $i24)
)
)
- (func $___fwritex (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___fwritex (; 18 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -9977,7 +9977,7 @@
(get_local $i8)
)
)
- (func $_fflush (param $i1 i32) (result i32)
+ (func $_fflush (; 19 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10170,7 +10170,7 @@
(get_local $i2)
)
)
- (func $_strlen (param $i1 i32) (result i32)
+ (func $_strlen (; 20 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10369,7 +10369,7 @@
)
)
)
- (func $___overflow (param $i1 i32) (param $i2 i32) (result i32)
+ (func $___overflow (; 21 ;) (param $i1 i32) (param $i2 i32) (result i32)
(local $i3 i32)
(local $i4 i32)
(local $i5 i32)
@@ -10546,7 +10546,7 @@
(get_local $i10)
)
)
- (func $___fflush_unlocked (param $i1 i32) (result i32)
+ (func $___fflush_unlocked (; 22 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -10691,7 +10691,7 @@
(get_local $i4)
)
)
- (func $_memcpy (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $_memcpy (; 23 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(if
(i32.ge_s
@@ -10855,10 +10855,10 @@
(get_local $i4)
)
)
- (func $runPostSets
+ (func $runPostSets (; 24 ;)
(nop)
)
- (func $_memset (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $_memset (; 25 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -11018,7 +11018,7 @@
)
)
)
- (func $_puts (param $i1 i32) (result i32)
+ (func $_puts (; 26 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -11144,7 +11144,7 @@
)
)
)
- (func $___stdio_seek (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdio_seek (; 27 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(local $i6 i32)
@@ -11236,7 +11236,7 @@
(get_local $i7)
)
)
- (func $___towrite (param $i1 i32) (result i32)
+ (func $___towrite (; 28 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(local $i4 i32)
@@ -11346,7 +11346,7 @@
(get_local $i4)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 29 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -11358,7 +11358,7 @@
)
)
)
- (func $_fwrite (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
+ (func $_fwrite (; 30 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
(local $i5 i32)
(local $i6 i32)
(local $i7 i32)
@@ -11438,7 +11438,7 @@
(get_local $i9)
)
)
- (func $___stdout_write (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $___stdout_write (; 31 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(local $i4 i32)
(local $i5 i32)
(set_local $i4
@@ -11534,7 +11534,7 @@
(get_local $i5)
)
)
- (func $copyTempDouble (param $i1 i32)
+ (func $copyTempDouble (; 32 ;) (param $i1 i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -11626,7 +11626,7 @@
)
)
)
- (func $___stdio_close (param $i1 i32) (result i32)
+ (func $___stdio_close (; 33 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
(set_local $i2
@@ -11665,7 +11665,7 @@
(get_local $i1)
)
)
- (func $copyTempFloat (param $i1 i32)
+ (func $copyTempFloat (; 34 ;) (param $i1 i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -11709,7 +11709,7 @@
)
)
)
- (func $___syscall_ret (param $i1 i32) (result i32)
+ (func $___syscall_ret (; 35 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(if
(i32.gt_u
@@ -11736,7 +11736,7 @@
(get_local $i2)
)
)
- (func $dynCall_iiii (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
+ (func $dynCall_iiii (; 36 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $i2)
@@ -11752,7 +11752,7 @@
)
)
)
- (func $stackAlloc (param $i1 i32) (result i32)
+ (func $stackAlloc (; 37 ;) (param $i1 i32) (result i32)
(local $i2 i32)
(set_local $i2
(get_global $STACKTOP)
@@ -11776,7 +11776,7 @@
(get_local $i2)
)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 38 ;) (result i32)
(local $i1 i32)
(if
(i32.eqz
@@ -11800,7 +11800,7 @@
(get_local $i1)
)
)
- (func $setThrew (param $i1 i32) (param $i2 i32)
+ (func $setThrew (; 39 ;) (param $i1 i32) (param $i2 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -11815,7 +11815,7 @@
)
)
)
- (func $_fputs (param $i1 i32) (param $i2 i32) (result i32)
+ (func $_fputs (; 40 ;) (param $i1 i32) (param $i2 i32) (result i32)
(return
(i32.add
(call $_fwrite
@@ -11830,7 +11830,7 @@
)
)
)
- (func $dynCall_ii (param $i1 i32) (param $i2 i32) (result i32)
+ (func $dynCall_ii (; 41 ;) (param $i1 i32) (param $i2 i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $i2)
@@ -11844,7 +11844,7 @@
)
)
)
- (func $_cleanup_418 (param $i1 i32)
+ (func $_cleanup_418 (; 42 ;) (param $i1 i32)
(if
(i32.eqz
(i32.load
@@ -11860,7 +11860,7 @@
)
(return)
)
- (func $establishStackSpace (param $i1 i32) (param $i2 i32)
+ (func $establishStackSpace (; 43 ;) (param $i1 i32) (param $i2 i32)
(set_global $STACKTOP
(get_local $i1)
)
@@ -11868,7 +11868,7 @@
(get_local $i2)
)
)
- (func $dynCall_vi (param $i1 i32) (param $i2 i32)
+ (func $dynCall_vi (; 44 ;) (param $i1 i32) (param $i2 i32)
(call_indirect $FUNCSIG$vi
(get_local $i2)
(i32.add
@@ -11880,7 +11880,7 @@
)
)
)
- (func $b1 (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $b1 (; 45 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(call $abort
(i32.const 1)
)
@@ -11888,17 +11888,17 @@
(i32.const 0)
)
)
- (func $stackRestore (param $i1 i32)
+ (func $stackRestore (; 46 ;) (param $i1 i32)
(set_global $STACKTOP
(get_local $i1)
)
)
- (func $setTempRet0 (param $i1 i32)
+ (func $setTempRet0 (; 47 ;) (param $i1 i32)
(set_global $tempRet0
(get_local $i1)
)
)
- (func $b0 (param $i1 i32) (result i32)
+ (func $b0 (; 48 ;) (param $i1 i32) (result i32)
(call $abort
(i32.const 0)
)
@@ -11906,20 +11906,20 @@
(i32.const 0)
)
)
- (func $___unlockfile (param $i1 i32)
+ (func $___unlockfile (; 49 ;) (param $i1 i32)
(return)
)
- (func $___lockfile (param $i1 i32) (result i32)
+ (func $___lockfile (; 50 ;) (param $i1 i32) (result i32)
(return
(i32.const 0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 51 ;) (result i32)
(return
(get_global $tempRet0)
)
)
- (func $_main (result i32)
+ (func $_main (; 52 ;) (result i32)
(drop
(call $_puts
(i32.const 672)
@@ -11929,12 +11929,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 53 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $b2 (param $i1 i32)
+ (func $b2 (; 54 ;) (param $i1 i32)
(call $abort
(i32.const 2)
)
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm
index 39e161495..746fb42c5 100644
--- a/test/emcc_hello_world.fromasm
+++ b/test/emcc_hello_world.fromasm
@@ -64,7 +64,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -93,15 +93,15 @@
)
(get_local $1)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 20 ;) (result i32)
(get_global $STACKTOP)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 21 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 22 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -109,7 +109,7 @@
(get_local $1)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 23 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -124,15 +124,15 @@
)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 24 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 25 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 26 ;) (result i32)
(local $0 i32)
(set_local $0
(get_global $STACKTOP)
@@ -161,7 +161,7 @@
)
(i32.const 0)
)
- (func $_frexp (param $0 f64) (param $1 i32) (result f64)
+ (func $_frexp (; 27 ;) (param $0 f64) (param $1 i32) (result f64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -258,7 +258,7 @@
)
(get_local $0)
)
- (func $_strerror (param $0 i32) (result i32)
+ (func $_strerror (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -339,7 +339,7 @@
)
(get_local $0)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 29 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 16)
@@ -350,7 +350,7 @@
(i32.const 60)
)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 30 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -390,7 +390,7 @@
)
(get_local $0)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -471,7 +471,7 @@
)
(get_local $0)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 32 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -547,7 +547,7 @@
)
(get_local $0)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 33 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -674,7 +674,7 @@
)
(get_local $0)
)
- (func $_printf (param $0 i32) (param $1 i32) (result i32)
+ (func $_printf (; 34 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(set_local $2
@@ -713,13 +713,13 @@
)
(get_local $0)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 35 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 36 ;) (param $0 i32)
(nop)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 37 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1065,7 +1065,7 @@
)
(get_local $2)
)
- (func $_vfprintf (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_vfprintf (; 38 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1357,7 +1357,7 @@
)
(get_local $0)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 39 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1543,7 +1543,7 @@
)
(get_local $3)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 40 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -1621,7 +1621,7 @@
)
)
)
- (func $_wcrtomb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_wcrtomb (; 41 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(block $do-once (result i32)
(if (result i32)
(get_local $0)
@@ -1795,7 +1795,7 @@
)
)
)
- (func $_wctomb (param $0 i32) (param $1 i32) (result i32)
+ (func $_wctomb (; 42 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $0)
(call $_wcrtomb
@@ -1806,7 +1806,7 @@
(i32.const 0)
)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 43 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -2037,7 +2037,7 @@
(get_local $0)
)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 44 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -2056,7 +2056,7 @@
(get_local $0)
)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 45 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -2178,7 +2178,7 @@
)
)
)
- (func $_cleanup (param $0 i32)
+ (func $_cleanup (; 46 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -2190,7 +2190,7 @@
)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 47 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(if (result i32)
@@ -2213,7 +2213,7 @@
(i32.const 0)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 48 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(i32.rem_u
@@ -2223,7 +2223,7 @@
(i32.const 0)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 49 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(i32.div_u
@@ -2233,7 +2233,7 @@
(i32.const 0)
)
)
- (func $_printf_core (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_printf_core (; 50 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7145,7 +7145,7 @@
)
(get_local $16)
)
- (func $_pop_arg_336 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $_pop_arg_336 (; 51 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 f64)
(local $5 i32)
@@ -7545,7 +7545,7 @@
)
)
)
- (func $_fmt_u (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_fmt_u (; 52 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(if
@@ -7667,7 +7667,7 @@
)
(get_local $2)
)
- (func $_pad (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
+ (func $_pad (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7815,7 +7815,7 @@
(get_local $7)
)
)
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 54 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -13294,7 +13294,7 @@
(i32.const 8)
)
)
- (func $_free (param $0 i32)
+ (func $_free (; 55 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -15084,10 +15084,10 @@
(i32.const -1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 56 ;)
(nop)
)
- (func $_i64Subtract (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Subtract (; 57 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(set_global $tempRet0
(i32.sub
(i32.sub
@@ -15105,7 +15105,7 @@
(get_local $2)
)
)
- (func $_i64Add (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Add (; 58 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_global $tempRet0
(i32.add
@@ -15126,7 +15126,7 @@
)
(get_local $4)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 59 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -15264,7 +15264,7 @@
(get_local $2)
)
)
- (func $_bitshift64Lshr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Lshr (; 60 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15314,7 +15314,7 @@
)
)
)
- (func $_bitshift64Shl (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Shl (; 61 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15370,7 +15370,7 @@
)
(i32.const 0)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 62 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -15517,7 +15517,7 @@
)
(get_local $3)
)
- (func $___udivdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___udivdi3 (; 63 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call $___udivmoddi4
(get_local $0)
(get_local $1)
@@ -15526,7 +15526,7 @@
(i32.const 0)
)
)
- (func $___uremdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___uremdi3 (; 64 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_local $4
(get_global $STACKTOP)
@@ -15560,7 +15560,7 @@
(get_local $0)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 65 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -15617,7 +15617,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 66 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -15626,7 +15626,7 @@
)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 67 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -15640,7 +15640,7 @@
)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 68 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -15652,19 +15652,19 @@
)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 69 ;) (param $0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
(i32.const 0)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 70 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
(i32.const 0)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 71 ;) (param $0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/emcc_hello_world.fromasm.clamp b/test/emcc_hello_world.fromasm.clamp
index e483ed89c..215c41540 100644
--- a/test/emcc_hello_world.fromasm.clamp
+++ b/test/emcc_hello_world.fromasm.clamp
@@ -62,7 +62,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -91,15 +91,15 @@
)
(get_local $1)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 19 ;) (result i32)
(get_global $STACKTOP)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 20 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 21 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -107,7 +107,7 @@
(get_local $1)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 22 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -122,15 +122,15 @@
)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 23 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 24 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 25 ;) (result i32)
(local $0 i32)
(set_local $0
(get_global $STACKTOP)
@@ -159,7 +159,7 @@
)
(i32.const 0)
)
- (func $_frexp (param $0 f64) (param $1 i32) (result f64)
+ (func $_frexp (; 26 ;) (param $0 f64) (param $1 i32) (result f64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -256,7 +256,7 @@
)
(get_local $0)
)
- (func $_strerror (param $0 i32) (result i32)
+ (func $_strerror (; 27 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -337,7 +337,7 @@
)
(get_local $0)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 28 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 16)
@@ -348,7 +348,7 @@
(i32.const 60)
)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 29 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -388,7 +388,7 @@
)
(get_local $0)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -469,7 +469,7 @@
)
(get_local $0)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -545,7 +545,7 @@
)
(get_local $0)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -672,7 +672,7 @@
)
(get_local $0)
)
- (func $_printf (param $0 i32) (param $1 i32) (result i32)
+ (func $_printf (; 33 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(set_local $2
@@ -711,13 +711,13 @@
)
(get_local $0)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 34 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 35 ;) (param $0 i32)
(nop)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 36 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1063,7 +1063,7 @@
)
(get_local $2)
)
- (func $_vfprintf (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_vfprintf (; 37 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1355,7 +1355,7 @@
)
(get_local $0)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 38 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1541,7 +1541,7 @@
)
(get_local $3)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 39 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -1619,7 +1619,7 @@
)
)
)
- (func $_wcrtomb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_wcrtomb (; 40 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(block $do-once (result i32)
(if (result i32)
(get_local $0)
@@ -1793,7 +1793,7 @@
)
)
)
- (func $_wctomb (param $0 i32) (param $1 i32) (result i32)
+ (func $_wctomb (; 41 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $0)
(call $_wcrtomb
@@ -1804,7 +1804,7 @@
(i32.const 0)
)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 42 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -2035,7 +2035,7 @@
(get_local $0)
)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 43 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -2054,7 +2054,7 @@
(get_local $0)
)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 44 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -2176,7 +2176,7 @@
)
)
)
- (func $_cleanup (param $0 i32)
+ (func $_cleanup (; 45 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -2188,7 +2188,7 @@
)
)
)
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 46 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -2214,7 +2214,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 47 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -2240,7 +2240,7 @@
)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 48 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(if (result i32)
@@ -2263,7 +2263,7 @@
(i32.const 0)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 49 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(i32.rem_u
@@ -2273,7 +2273,7 @@
(i32.const 0)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 50 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $1)
(i32.div_u
@@ -2283,7 +2283,7 @@
(i32.const 0)
)
)
- (func $_printf_core (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_printf_core (; 51 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7195,7 +7195,7 @@
)
(get_local $16)
)
- (func $_pop_arg_336 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $_pop_arg_336 (; 52 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 f64)
(local $5 i32)
@@ -7595,7 +7595,7 @@
)
)
)
- (func $_fmt_u (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_fmt_u (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(if
@@ -7717,7 +7717,7 @@
)
(get_local $2)
)
- (func $_pad (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
+ (func $_pad (; 54 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7865,7 +7865,7 @@
(get_local $7)
)
)
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 55 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -13344,7 +13344,7 @@
(i32.const 8)
)
)
- (func $_free (param $0 i32)
+ (func $_free (; 56 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -15134,10 +15134,10 @@
(i32.const -1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 57 ;)
(nop)
)
- (func $_i64Subtract (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Subtract (; 58 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(set_global $tempRet0
(i32.sub
(i32.sub
@@ -15155,7 +15155,7 @@
(get_local $2)
)
)
- (func $_i64Add (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Add (; 59 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_global $tempRet0
(i32.add
@@ -15176,7 +15176,7 @@
)
(get_local $4)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 60 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -15314,7 +15314,7 @@
(get_local $2)
)
)
- (func $_bitshift64Lshr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Lshr (; 61 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15364,7 +15364,7 @@
)
)
)
- (func $_bitshift64Shl (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Shl (; 62 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15420,7 +15420,7 @@
)
(i32.const 0)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 63 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -15567,7 +15567,7 @@
)
(get_local $3)
)
- (func $___udivdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___udivdi3 (; 64 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call $___udivmoddi4
(get_local $0)
(get_local $1)
@@ -15576,7 +15576,7 @@
(i32.const 0)
)
)
- (func $___uremdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___uremdi3 (; 65 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_local $4
(get_global $STACKTOP)
@@ -15610,7 +15610,7 @@
(get_local $0)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 66 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -15667,7 +15667,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 67 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -15676,7 +15676,7 @@
)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 68 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -15690,7 +15690,7 @@
)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 69 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -15702,19 +15702,19 @@
)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 70 ;) (param $0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
(i32.const 0)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 71 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
(i32.const 0)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 72 ;) (param $0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/emcc_hello_world.fromasm.clamp.no-opts b/test/emcc_hello_world.fromasm.clamp.no-opts
index 36d34018c..59f98211b 100644
--- a/test/emcc_hello_world.fromasm.clamp.no-opts
+++ b/test/emcc_hello_world.fromasm.clamp.no-opts
@@ -90,7 +90,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $size i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
(get_global $STACKTOP)
@@ -121,17 +121,17 @@
(get_local $ret)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 19 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $stackRestore (param $top i32)
+ (func $stackRestore (; 20 ;) (param $top i32)
(set_global $STACKTOP
(get_local $top)
)
)
- (func $establishStackSpace (param $stackBase i32) (param $stackMax i32)
+ (func $establishStackSpace (; 21 ;) (param $stackBase i32) (param $stackMax i32)
(set_global $STACKTOP
(get_local $stackBase)
)
@@ -139,7 +139,7 @@
(get_local $stackMax)
)
)
- (func $setThrew (param $threw i32) (param $value i32)
+ (func $setThrew (; 22 ;) (param $threw i32) (param $value i32)
(if
(i32.eq
(get_global $__THREW__)
@@ -155,7 +155,7 @@
)
)
)
- (func $copyTempFloat (param $ptr i32)
+ (func $copyTempFloat (; 23 ;) (param $ptr i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -199,7 +199,7 @@
)
)
)
- (func $copyTempDouble (param $ptr i32)
+ (func $copyTempDouble (; 24 ;) (param $ptr i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -291,17 +291,17 @@
)
)
)
- (func $setTempRet0 (param $value i32)
+ (func $setTempRet0 (; 25 ;) (param $value i32)
(set_global $tempRet0
(get_local $value)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 26 ;) (result i32)
(return
(get_global $tempRet0)
)
)
- (func $_main (result i32)
+ (func $_main (; 27 ;) (result i32)
(local $$retval i32)
(local $$vararg_buffer i32)
(local $label i32)
@@ -341,7 +341,7 @@
(i32.const 0)
)
)
- (func $_frexp (param $$x f64) (param $$e i32) (result f64)
+ (func $_frexp (; 28 ;) (param $$x f64) (param $$e i32) (result f64)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -522,7 +522,7 @@
(get_local $$retval$0)
)
)
- (func $_frexpl (param $$x f64) (param $$e i32) (result f64)
+ (func $_frexpl (; 29 ;) (param $$x f64) (param $$e i32) (result f64)
(local $$call f64)
(local $label i32)
(local $sp i32)
@@ -539,7 +539,7 @@
(get_local $$call)
)
)
- (func $_strerror (param $$e i32) (result i32)
+ (func $_strerror (; 30 ;) (param $$e i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$arrayidx i32)
@@ -761,7 +761,7 @@
(get_local $$s$0$lcssa)
)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 31 ;) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$call$i i32)
@@ -813,7 +813,7 @@
(get_local $$retval$0)
)
)
- (func $___stdio_close (param $$f i32) (result i32)
+ (func $___stdio_close (; 32 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$call i32)
(local $$call1 i32)
@@ -873,7 +873,7 @@
(get_local $$call1)
)
)
- (func $___stdout_write (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
+ (func $___stdout_write (; 33 ;) (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$and i32)
@@ -1025,7 +1025,7 @@
(get_local $$call3)
)
)
- (func $___stdio_seek (param $$f i32) (param $$off i32) (param $$whence i32) (result i32)
+ (func $___stdio_seek (; 34 ;) (param $$f i32) (param $$off i32) (param $$whence i32) (result i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -1167,7 +1167,7 @@
(get_local $$1)
)
)
- (func $_fflush (param $$f i32) (result i32)
+ (func $_fflush (; 35 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -1493,7 +1493,7 @@
(get_local $$retval$0)
)
)
- (func $_printf (param $$fmt i32) (param $$varargs i32) (result i32)
+ (func $_printf (; 36 ;) (param $$fmt i32) (param $$varargs i32) (result i32)
(local $$0 i32)
(local $$ap i32)
(local $$call i32)
@@ -1541,7 +1541,7 @@
(get_local $$call)
)
)
- (func $___lockfile (param $$f i32) (result i32)
+ (func $___lockfile (; 37 ;) (param $$f i32) (result i32)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -1551,7 +1551,7 @@
(i32.const 0)
)
)
- (func $___unlockfile (param $$f i32)
+ (func $___unlockfile (; 38 ;) (param $$f i32)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -1559,7 +1559,7 @@
)
(return)
)
- (func $___stdio_write (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
+ (func $___stdio_write (; 39 ;) (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -2215,7 +2215,7 @@
(get_local $$retval$0)
)
)
- (func $_vfprintf (param $$f i32) (param $$fmt i32) (param $$ap i32) (result i32)
+ (func $_vfprintf (; 40 ;) (param $$f i32) (param $$fmt i32) (param $$ap i32) (result i32)
(local $$$call21 i32)
(local $$0 i32)
(local $$1 i32)
@@ -2681,7 +2681,7 @@
(get_local $$retval$0)
)
)
- (func $___fwritex (param $$s i32) (param $$l i32) (param $$f i32) (result i32)
+ (func $___fwritex (; 41 ;) (param $$s i32) (param $$l i32) (param $$f i32) (result i32)
(local $$$pre i32)
(local $$$pre31 i32)
(local $$0 i32)
@@ -3082,7 +3082,7 @@
(get_local $$retval$0)
)
)
- (func $___towrite (param $$f i32) (result i32)
+ (func $___towrite (; 42 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -3277,7 +3277,7 @@
(get_local $$retval$0)
)
)
- (func $_wcrtomb (param $$s i32) (param $$wc i32) (param $$st i32) (result i32)
+ (func $_wcrtomb (; 43 ;) (param $$s i32) (param $$wc i32) (param $$st i32) (result i32)
(local $$0 i32)
(local $$and i32)
(local $$and19 i32)
@@ -3710,7 +3710,7 @@
(get_local $$retval$0)
)
)
- (func $_wctomb (param $$s i32) (param $$wc i32) (result i32)
+ (func $_wctomb (; 44 ;) (param $$s i32) (param $$wc i32) (result i32)
(local $$call i32)
(local $$retval$0 i32)
(local $$tobool i32)
@@ -3747,7 +3747,7 @@
(get_local $$retval$0)
)
)
- (func $_memchr (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
+ (func $_memchr (; 45 ;) (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -4335,7 +4335,7 @@
(get_local $$cond)
)
)
- (func $___syscall_ret (param $$r i32) (result i32)
+ (func $___syscall_ret (; 46 ;) (param $$r i32) (result i32)
(local $$call i32)
(local $$cmp i32)
(local $$retval$0 i32)
@@ -4379,7 +4379,7 @@
(get_local $$retval$0)
)
)
- (func $___fflush_unlocked (param $$f i32) (result i32)
+ (func $___fflush_unlocked (; 47 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -4598,7 +4598,7 @@
(get_local $$retval$0)
)
)
- (func $_cleanup (param $$p i32)
+ (func $_cleanup (; 48 ;) (param $$p i32)
(local $$0 i32)
(local $$lockcount i32)
(local $$tobool i32)
@@ -4632,7 +4632,7 @@
)
(return)
)
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 49 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -4658,7 +4658,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 50 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -4684,7 +4684,7 @@
)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 51 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4709,7 +4709,7 @@
)
)
)
- (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-rem (; 52 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4721,7 +4721,7 @@
)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 53 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4733,7 +4733,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 54 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4745,7 +4745,7 @@
)
)
)
- (func $_printf_core (param $$f i32) (param $$fmt i32) (param $$ap i32) (param $$nl_arg i32) (param $$nl_type i32) (result i32)
+ (func $_printf_core (; 55 ;) (param $$f i32) (param $$fmt i32) (param $$ap i32) (param $$nl_arg i32) (param $$nl_type i32) (result i32)
(local $$$ i32)
(local $$$$i i32)
(local $$$396$i f64)
@@ -14576,7 +14576,7 @@
(get_local $$retval$0)
)
)
- (func $_pop_arg_336 (param $$arg i32) (param $$type i32) (param $$ap i32)
+ (func $_pop_arg_336 (; 56 ;) (param $$arg i32) (param $$type i32) (param $$ap i32)
(local $$0 i32)
(local $$1 i32)
(local $$10 i32)
@@ -15876,7 +15876,7 @@
)
(return)
)
- (func $_fmt_u (param $$0 i32) (param $$1 i32) (param $$s i32) (result i32)
+ (func $_fmt_u (; 57 ;) (param $$0 i32) (param $$1 i32) (param $$s i32) (result i32)
(local $$10 i32)
(local $$11 i32)
(local $$12 i32)
@@ -16172,7 +16172,7 @@
(get_local $$s$addr$1$lcssa)
)
)
- (func $_pad (param $$f i32) (param $$c i32) (param $$w i32) (param $$l i32) (param $$fl i32)
+ (func $_pad (; 58 ;) (param $$f i32) (param $$c i32) (param $$w i32) (param $$l i32) (param $$fl i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -16417,7 +16417,7 @@
)
(return)
)
- (func $_malloc (param $$bytes i32) (result i32)
+ (func $_malloc (; 59 ;) (param $$bytes i32) (result i32)
(local $$$lcssa i32)
(local $$$lcssa290 i32)
(local $$$pre i32)
@@ -27056,7 +27056,7 @@
(get_local $$retval$0)
)
)
- (func $_free (param $$mem i32)
+ (func $_free (; 60 ;) (param $$mem i32)
(local $$$pre i32)
(local $$$pre$phiZ2D i32)
(local $$$pre312 i32)
@@ -30373,10 +30373,10 @@
)
(return)
)
- (func $runPostSets
+ (func $runPostSets (; 61 ;)
(nop)
)
- (func $_i64Subtract (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $_i64Subtract (; 62 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
(local $h i32)
(set_local $l
@@ -30417,7 +30417,7 @@
)
)
)
- (func $_i64Add (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $_i64Add (; 63 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
(local $h i32)
(set_local $l
@@ -30452,7 +30452,7 @@
)
)
)
- (func $_memset (param $ptr i32) (param $value i32) (param $num i32) (result i32)
+ (func $_memset (; 64 ;) (param $ptr i32) (param $value i32) (param $num i32) (result i32)
(local $stop i32)
(local $value4 i32)
(local $stop4 i32)
@@ -30612,7 +30612,7 @@
)
)
)
- (func $_bitshift64Lshr (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Lshr (; 65 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30668,7 +30668,7 @@
)
)
)
- (func $_bitshift64Shl (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Shl (; 66 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30730,7 +30730,7 @@
(i32.const 0)
)
)
- (func $_memcpy (param $dest i32) (param $src i32) (param $num i32) (result i32)
+ (func $_memcpy (; 67 ;) (param $dest i32) (param $src i32) (param $num i32) (result i32)
(local $ret i32)
(if
(i32.ge_s
@@ -30895,7 +30895,7 @@
(get_local $ret)
)
)
- (func $_bitshift64Ashr (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Ashr (; 68 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30958,7 +30958,7 @@
)
)
)
- (func $___muldsi3 (param $$a i32) (param $$b i32) (result i32)
+ (func $___muldsi3 (; 69 ;) (param $$a i32) (param $$b i32) (result i32)
(local $$1 i32)
(local $$2 i32)
(local $$3 i32)
@@ -31064,7 +31064,7 @@
)
)
)
- (func $___divdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___divdi3 (; 70 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
(local $$1$1 i32)
(local $$2$0 i32)
@@ -31236,7 +31236,7 @@
(get_local $$10$0)
)
)
- (func $___remdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___remdi3 (; 71 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$rem i32)
(local $$1$0 i32)
(local $$1$1 i32)
@@ -31431,7 +31431,7 @@
)
)
)
- (func $___muldi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___muldi3 (; 72 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$x_sroa_0_0_extract_trunc i32)
(local $$y_sroa_0_0_extract_trunc i32)
(local $$1$0 i32)
@@ -31493,7 +31493,7 @@
)
)
)
- (func $___udivdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___udivdi3 (; 73 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
(set_local $$1$0
(call $___udivmoddi4
@@ -31508,7 +31508,7 @@
(get_local $$1$0)
)
)
- (func $___uremdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___uremdi3 (; 74 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$rem i32)
(local $__stackBase__ i32)
(set_local $__stackBase__
@@ -31556,7 +31556,7 @@
)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 75 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -31613,7 +31613,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $index i32) (param $a1 i32) (result i32)
+ (func $dynCall_ii (; 76 ;) (param $index i32) (param $a1 i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $a1)
@@ -31627,7 +31627,7 @@
)
)
)
- (func $dynCall_iiii (param $index i32) (param $a1 i32) (param $a2 i32) (param $a3 i32) (result i32)
+ (func $dynCall_iiii (; 77 ;) (param $index i32) (param $a1 i32) (param $a2 i32) (param $a3 i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $a1)
@@ -31643,7 +31643,7 @@
)
)
)
- (func $dynCall_vi (param $index i32) (param $a1 i32)
+ (func $dynCall_vi (; 78 ;) (param $index i32) (param $a1 i32)
(call_indirect $FUNCSIG$vi
(get_local $a1)
(i32.add
@@ -31655,7 +31655,7 @@
)
)
)
- (func $b0 (param $p0 i32) (result i32)
+ (func $b0 (; 79 ;) (param $p0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
@@ -31663,7 +31663,7 @@
(i32.const 0)
)
)
- (func $b1 (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
+ (func $b1 (; 80 ;) (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
@@ -31671,7 +31671,7 @@
(i32.const 0)
)
)
- (func $b2 (param $p0 i32)
+ (func $b2 (; 81 ;) (param $p0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise
index e6caa9b58..1e2661d37 100644
--- a/test/emcc_hello_world.fromasm.imprecise
+++ b/test/emcc_hello_world.fromasm.imprecise
@@ -61,7 +61,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -90,15 +90,15 @@
)
(get_local $1)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 19 ;) (result i32)
(get_global $STACKTOP)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 20 ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $establishStackSpace (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 21 ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -106,7 +106,7 @@
(get_local $1)
)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 22 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -121,15 +121,15 @@
)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 23 ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 24 ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (result i32)
+ (func $_main (; 25 ;) (result i32)
(local $0 i32)
(set_local $0
(get_global $STACKTOP)
@@ -158,7 +158,7 @@
)
(i32.const 0)
)
- (func $_frexp (param $0 f64) (param $1 i32) (result f64)
+ (func $_frexp (; 26 ;) (param $0 f64) (param $1 i32) (result f64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -255,7 +255,7 @@
)
(get_local $0)
)
- (func $_strerror (param $0 i32) (result i32)
+ (func $_strerror (; 27 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -336,7 +336,7 @@
)
(get_local $0)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 28 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 16)
@@ -347,7 +347,7 @@
(i32.const 60)
)
)
- (func $___stdio_close (param $0 i32) (result i32)
+ (func $___stdio_close (; 29 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -387,7 +387,7 @@
)
(get_local $0)
)
- (func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -468,7 +468,7 @@
)
(get_local $0)
)
- (func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -544,7 +544,7 @@
)
(get_local $0)
)
- (func $_fflush (param $0 i32) (result i32)
+ (func $_fflush (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -671,7 +671,7 @@
)
(get_local $0)
)
- (func $_printf (param $0 i32) (param $1 i32) (result i32)
+ (func $_printf (; 33 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(set_local $2
@@ -710,13 +710,13 @@
)
(get_local $0)
)
- (func $___lockfile (param $0 i32) (result i32)
+ (func $___lockfile (; 34 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $___unlockfile (param $0 i32)
+ (func $___unlockfile (; 35 ;) (param $0 i32)
(nop)
)
- (func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 36 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1062,7 +1062,7 @@
)
(get_local $2)
)
- (func $_vfprintf (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_vfprintf (; 37 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1354,7 +1354,7 @@
)
(get_local $0)
)
- (func $___fwritex (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 38 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1540,7 +1540,7 @@
)
(get_local $3)
)
- (func $___towrite (param $0 i32) (result i32)
+ (func $___towrite (; 39 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -1618,7 +1618,7 @@
)
)
)
- (func $_wcrtomb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_wcrtomb (; 40 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(block $do-once (result i32)
(if (result i32)
(get_local $0)
@@ -1792,7 +1792,7 @@
)
)
)
- (func $_wctomb (param $0 i32) (param $1 i32) (result i32)
+ (func $_wctomb (; 41 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $0)
(call $_wcrtomb
@@ -1803,7 +1803,7 @@
(i32.const 0)
)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 42 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -2034,7 +2034,7 @@
(get_local $0)
)
)
- (func $___syscall_ret (param $0 i32) (result i32)
+ (func $___syscall_ret (; 43 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -2053,7 +2053,7 @@
(get_local $0)
)
)
- (func $___fflush_unlocked (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 44 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -2175,7 +2175,7 @@
)
)
)
- (func $_cleanup (param $0 i32)
+ (func $_cleanup (; 45 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -2187,7 +2187,7 @@
)
)
)
- (func $_printf_core (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_printf_core (; 46 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7084,7 +7084,7 @@
)
(get_local $16)
)
- (func $_pop_arg_336 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $_pop_arg_336 (; 47 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 f64)
(local $5 i32)
@@ -7484,7 +7484,7 @@
)
)
)
- (func $_fmt_u (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_fmt_u (; 48 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(if
@@ -7606,7 +7606,7 @@
)
(get_local $2)
)
- (func $_pad (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
+ (func $_pad (; 49 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7754,7 +7754,7 @@
(get_local $7)
)
)
- (func $_malloc (param $0 i32) (result i32)
+ (func $_malloc (; 50 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -13233,7 +13233,7 @@
(i32.const 8)
)
)
- (func $_free (param $0 i32)
+ (func $_free (; 51 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -15022,10 +15022,10 @@
(i32.const -1)
)
)
- (func $runPostSets
+ (func $runPostSets (; 52 ;)
(nop)
)
- (func $_i64Subtract (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Subtract (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(set_global $tempRet0
(i32.sub
(i32.sub
@@ -15043,7 +15043,7 @@
(get_local $2)
)
)
- (func $_i64Add (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Add (; 54 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_global $tempRet0
(i32.add
@@ -15064,7 +15064,7 @@
)
(get_local $4)
)
- (func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 55 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -15202,7 +15202,7 @@
(get_local $2)
)
)
- (func $_bitshift64Lshr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Lshr (; 56 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15252,7 +15252,7 @@
)
)
)
- (func $_bitshift64Shl (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Shl (; 57 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15308,7 +15308,7 @@
)
(i32.const 0)
)
- (func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 58 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -15455,7 +15455,7 @@
)
(get_local $3)
)
- (func $___udivdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___udivdi3 (; 59 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call $___udivmoddi4
(get_local $0)
(get_local $1)
@@ -15464,7 +15464,7 @@
(i32.const 0)
)
)
- (func $___uremdi3 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___uremdi3 (; 60 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_local $4
(get_global $STACKTOP)
@@ -15498,7 +15498,7 @@
(get_local $0)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 61 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -15555,7 +15555,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 62 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -15564,7 +15564,7 @@
)
)
)
- (func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 63 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -15578,7 +15578,7 @@
)
)
)
- (func $dynCall_vi (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 64 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -15590,19 +15590,19 @@
)
)
)
- (func $b0 (param $0 i32) (result i32)
+ (func $b0 (; 65 ;) (param $0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
(i32.const 0)
)
- (func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 66 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
(i32.const 0)
)
- (func $b2 (param $0 i32)
+ (func $b2 (; 67 ;) (param $0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/emcc_hello_world.fromasm.imprecise.no-opts b/test/emcc_hello_world.fromasm.imprecise.no-opts
index da6f2fdc5..1ba5aed89 100644
--- a/test/emcc_hello_world.fromasm.imprecise.no-opts
+++ b/test/emcc_hello_world.fromasm.imprecise.no-opts
@@ -90,7 +90,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $size i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
(get_global $STACKTOP)
@@ -121,17 +121,17 @@
(get_local $ret)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 19 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $stackRestore (param $top i32)
+ (func $stackRestore (; 20 ;) (param $top i32)
(set_global $STACKTOP
(get_local $top)
)
)
- (func $establishStackSpace (param $stackBase i32) (param $stackMax i32)
+ (func $establishStackSpace (; 21 ;) (param $stackBase i32) (param $stackMax i32)
(set_global $STACKTOP
(get_local $stackBase)
)
@@ -139,7 +139,7 @@
(get_local $stackMax)
)
)
- (func $setThrew (param $threw i32) (param $value i32)
+ (func $setThrew (; 22 ;) (param $threw i32) (param $value i32)
(if
(i32.eq
(get_global $__THREW__)
@@ -155,7 +155,7 @@
)
)
)
- (func $copyTempFloat (param $ptr i32)
+ (func $copyTempFloat (; 23 ;) (param $ptr i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -199,7 +199,7 @@
)
)
)
- (func $copyTempDouble (param $ptr i32)
+ (func $copyTempDouble (; 24 ;) (param $ptr i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -291,17 +291,17 @@
)
)
)
- (func $setTempRet0 (param $value i32)
+ (func $setTempRet0 (; 25 ;) (param $value i32)
(set_global $tempRet0
(get_local $value)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 26 ;) (result i32)
(return
(get_global $tempRet0)
)
)
- (func $_main (result i32)
+ (func $_main (; 27 ;) (result i32)
(local $$retval i32)
(local $$vararg_buffer i32)
(local $label i32)
@@ -341,7 +341,7 @@
(i32.const 0)
)
)
- (func $_frexp (param $$x f64) (param $$e i32) (result f64)
+ (func $_frexp (; 28 ;) (param $$x f64) (param $$e i32) (result f64)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -522,7 +522,7 @@
(get_local $$retval$0)
)
)
- (func $_frexpl (param $$x f64) (param $$e i32) (result f64)
+ (func $_frexpl (; 29 ;) (param $$x f64) (param $$e i32) (result f64)
(local $$call f64)
(local $label i32)
(local $sp i32)
@@ -539,7 +539,7 @@
(get_local $$call)
)
)
- (func $_strerror (param $$e i32) (result i32)
+ (func $_strerror (; 30 ;) (param $$e i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$arrayidx i32)
@@ -761,7 +761,7 @@
(get_local $$s$0$lcssa)
)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 31 ;) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$call$i i32)
@@ -813,7 +813,7 @@
(get_local $$retval$0)
)
)
- (func $___stdio_close (param $$f i32) (result i32)
+ (func $___stdio_close (; 32 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$call i32)
(local $$call1 i32)
@@ -873,7 +873,7 @@
(get_local $$call1)
)
)
- (func $___stdout_write (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
+ (func $___stdout_write (; 33 ;) (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$and i32)
@@ -1025,7 +1025,7 @@
(get_local $$call3)
)
)
- (func $___stdio_seek (param $$f i32) (param $$off i32) (param $$whence i32) (result i32)
+ (func $___stdio_seek (; 34 ;) (param $$f i32) (param $$off i32) (param $$whence i32) (result i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -1167,7 +1167,7 @@
(get_local $$1)
)
)
- (func $_fflush (param $$f i32) (result i32)
+ (func $_fflush (; 35 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -1493,7 +1493,7 @@
(get_local $$retval$0)
)
)
- (func $_printf (param $$fmt i32) (param $$varargs i32) (result i32)
+ (func $_printf (; 36 ;) (param $$fmt i32) (param $$varargs i32) (result i32)
(local $$0 i32)
(local $$ap i32)
(local $$call i32)
@@ -1541,7 +1541,7 @@
(get_local $$call)
)
)
- (func $___lockfile (param $$f i32) (result i32)
+ (func $___lockfile (; 37 ;) (param $$f i32) (result i32)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -1551,7 +1551,7 @@
(i32.const 0)
)
)
- (func $___unlockfile (param $$f i32)
+ (func $___unlockfile (; 38 ;) (param $$f i32)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -1559,7 +1559,7 @@
)
(return)
)
- (func $___stdio_write (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
+ (func $___stdio_write (; 39 ;) (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -2215,7 +2215,7 @@
(get_local $$retval$0)
)
)
- (func $_vfprintf (param $$f i32) (param $$fmt i32) (param $$ap i32) (result i32)
+ (func $_vfprintf (; 40 ;) (param $$f i32) (param $$fmt i32) (param $$ap i32) (result i32)
(local $$$call21 i32)
(local $$0 i32)
(local $$1 i32)
@@ -2681,7 +2681,7 @@
(get_local $$retval$0)
)
)
- (func $___fwritex (param $$s i32) (param $$l i32) (param $$f i32) (result i32)
+ (func $___fwritex (; 41 ;) (param $$s i32) (param $$l i32) (param $$f i32) (result i32)
(local $$$pre i32)
(local $$$pre31 i32)
(local $$0 i32)
@@ -3082,7 +3082,7 @@
(get_local $$retval$0)
)
)
- (func $___towrite (param $$f i32) (result i32)
+ (func $___towrite (; 42 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -3277,7 +3277,7 @@
(get_local $$retval$0)
)
)
- (func $_wcrtomb (param $$s i32) (param $$wc i32) (param $$st i32) (result i32)
+ (func $_wcrtomb (; 43 ;) (param $$s i32) (param $$wc i32) (param $$st i32) (result i32)
(local $$0 i32)
(local $$and i32)
(local $$and19 i32)
@@ -3710,7 +3710,7 @@
(get_local $$retval$0)
)
)
- (func $_wctomb (param $$s i32) (param $$wc i32) (result i32)
+ (func $_wctomb (; 44 ;) (param $$s i32) (param $$wc i32) (result i32)
(local $$call i32)
(local $$retval$0 i32)
(local $$tobool i32)
@@ -3747,7 +3747,7 @@
(get_local $$retval$0)
)
)
- (func $_memchr (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
+ (func $_memchr (; 45 ;) (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -4335,7 +4335,7 @@
(get_local $$cond)
)
)
- (func $___syscall_ret (param $$r i32) (result i32)
+ (func $___syscall_ret (; 46 ;) (param $$r i32) (result i32)
(local $$call i32)
(local $$cmp i32)
(local $$retval$0 i32)
@@ -4379,7 +4379,7 @@
(get_local $$retval$0)
)
)
- (func $___fflush_unlocked (param $$f i32) (result i32)
+ (func $___fflush_unlocked (; 47 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -4598,7 +4598,7 @@
(get_local $$retval$0)
)
)
- (func $_cleanup (param $$p i32)
+ (func $_cleanup (; 48 ;) (param $$p i32)
(local $$0 i32)
(local $$lockcount i32)
(local $$tobool i32)
@@ -4632,7 +4632,7 @@
)
(return)
)
- (func $_printf_core (param $$f i32) (param $$fmt i32) (param $$ap i32) (param $$nl_arg i32) (param $$nl_type i32) (result i32)
+ (func $_printf_core (; 49 ;) (param $$f i32) (param $$fmt i32) (param $$ap i32) (param $$nl_arg i32) (param $$nl_type i32) (result i32)
(local $$$ i32)
(local $$$$i i32)
(local $$$396$i f64)
@@ -14463,7 +14463,7 @@
(get_local $$retval$0)
)
)
- (func $_pop_arg_336 (param $$arg i32) (param $$type i32) (param $$ap i32)
+ (func $_pop_arg_336 (; 50 ;) (param $$arg i32) (param $$type i32) (param $$ap i32)
(local $$0 i32)
(local $$1 i32)
(local $$10 i32)
@@ -15763,7 +15763,7 @@
)
(return)
)
- (func $_fmt_u (param $$0 i32) (param $$1 i32) (param $$s i32) (result i32)
+ (func $_fmt_u (; 51 ;) (param $$0 i32) (param $$1 i32) (param $$s i32) (result i32)
(local $$10 i32)
(local $$11 i32)
(local $$12 i32)
@@ -16059,7 +16059,7 @@
(get_local $$s$addr$1$lcssa)
)
)
- (func $_pad (param $$f i32) (param $$c i32) (param $$w i32) (param $$l i32) (param $$fl i32)
+ (func $_pad (; 52 ;) (param $$f i32) (param $$c i32) (param $$w i32) (param $$l i32) (param $$fl i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -16304,7 +16304,7 @@
)
(return)
)
- (func $_malloc (param $$bytes i32) (result i32)
+ (func $_malloc (; 53 ;) (param $$bytes i32) (result i32)
(local $$$lcssa i32)
(local $$$lcssa290 i32)
(local $$$pre i32)
@@ -26943,7 +26943,7 @@
(get_local $$retval$0)
)
)
- (func $_free (param $$mem i32)
+ (func $_free (; 54 ;) (param $$mem i32)
(local $$$pre i32)
(local $$$pre$phiZ2D i32)
(local $$$pre312 i32)
@@ -30260,10 +30260,10 @@
)
(return)
)
- (func $runPostSets
+ (func $runPostSets (; 55 ;)
(nop)
)
- (func $_i64Subtract (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $_i64Subtract (; 56 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
(local $h i32)
(set_local $l
@@ -30304,7 +30304,7 @@
)
)
)
- (func $_i64Add (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $_i64Add (; 57 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
(local $h i32)
(set_local $l
@@ -30339,7 +30339,7 @@
)
)
)
- (func $_memset (param $ptr i32) (param $value i32) (param $num i32) (result i32)
+ (func $_memset (; 58 ;) (param $ptr i32) (param $value i32) (param $num i32) (result i32)
(local $stop i32)
(local $value4 i32)
(local $stop4 i32)
@@ -30499,7 +30499,7 @@
)
)
)
- (func $_bitshift64Lshr (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Lshr (; 59 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30555,7 +30555,7 @@
)
)
)
- (func $_bitshift64Shl (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Shl (; 60 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30617,7 +30617,7 @@
(i32.const 0)
)
)
- (func $_memcpy (param $dest i32) (param $src i32) (param $num i32) (result i32)
+ (func $_memcpy (; 61 ;) (param $dest i32) (param $src i32) (param $num i32) (result i32)
(local $ret i32)
(if
(i32.ge_s
@@ -30782,7 +30782,7 @@
(get_local $ret)
)
)
- (func $_bitshift64Ashr (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Ashr (; 62 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30845,7 +30845,7 @@
)
)
)
- (func $___muldsi3 (param $$a i32) (param $$b i32) (result i32)
+ (func $___muldsi3 (; 63 ;) (param $$a i32) (param $$b i32) (result i32)
(local $$1 i32)
(local $$2 i32)
(local $$3 i32)
@@ -30951,7 +30951,7 @@
)
)
)
- (func $___divdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___divdi3 (; 64 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
(local $$1$1 i32)
(local $$2$0 i32)
@@ -31123,7 +31123,7 @@
(get_local $$10$0)
)
)
- (func $___remdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___remdi3 (; 65 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$rem i32)
(local $$1$0 i32)
(local $$1$1 i32)
@@ -31318,7 +31318,7 @@
)
)
)
- (func $___muldi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___muldi3 (; 66 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$x_sroa_0_0_extract_trunc i32)
(local $$y_sroa_0_0_extract_trunc i32)
(local $$1$0 i32)
@@ -31380,7 +31380,7 @@
)
)
)
- (func $___udivdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___udivdi3 (; 67 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
(set_local $$1$0
(call $___udivmoddi4
@@ -31395,7 +31395,7 @@
(get_local $$1$0)
)
)
- (func $___uremdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___uremdi3 (; 68 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$rem i32)
(local $__stackBase__ i32)
(set_local $__stackBase__
@@ -31443,7 +31443,7 @@
)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 69 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -31500,7 +31500,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $index i32) (param $a1 i32) (result i32)
+ (func $dynCall_ii (; 70 ;) (param $index i32) (param $a1 i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $a1)
@@ -31514,7 +31514,7 @@
)
)
)
- (func $dynCall_iiii (param $index i32) (param $a1 i32) (param $a2 i32) (param $a3 i32) (result i32)
+ (func $dynCall_iiii (; 71 ;) (param $index i32) (param $a1 i32) (param $a2 i32) (param $a3 i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $a1)
@@ -31530,7 +31530,7 @@
)
)
)
- (func $dynCall_vi (param $index i32) (param $a1 i32)
+ (func $dynCall_vi (; 72 ;) (param $index i32) (param $a1 i32)
(call_indirect $FUNCSIG$vi
(get_local $a1)
(i32.add
@@ -31542,7 +31542,7 @@
)
)
)
- (func $b0 (param $p0 i32) (result i32)
+ (func $b0 (; 73 ;) (param $p0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
@@ -31550,7 +31550,7 @@
(i32.const 0)
)
)
- (func $b1 (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
+ (func $b1 (; 74 ;) (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
@@ -31558,7 +31558,7 @@
(i32.const 0)
)
)
- (func $b2 (param $p0 i32)
+ (func $b2 (; 75 ;) (param $p0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/emcc_hello_world.fromasm.no-opts b/test/emcc_hello_world.fromasm.no-opts
index 5f9e12f83..cd4406395 100644
--- a/test/emcc_hello_world.fromasm.no-opts
+++ b/test/emcc_hello_world.fromasm.no-opts
@@ -92,7 +92,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (param $size i32) (result i32)
+ (func $stackAlloc (; 19 ;) (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
(get_global $STACKTOP)
@@ -123,17 +123,17 @@
(get_local $ret)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 20 ;) (result i32)
(return
(get_global $STACKTOP)
)
)
- (func $stackRestore (param $top i32)
+ (func $stackRestore (; 21 ;) (param $top i32)
(set_global $STACKTOP
(get_local $top)
)
)
- (func $establishStackSpace (param $stackBase i32) (param $stackMax i32)
+ (func $establishStackSpace (; 22 ;) (param $stackBase i32) (param $stackMax i32)
(set_global $STACKTOP
(get_local $stackBase)
)
@@ -141,7 +141,7 @@
(get_local $stackMax)
)
)
- (func $setThrew (param $threw i32) (param $value i32)
+ (func $setThrew (; 23 ;) (param $threw i32) (param $value i32)
(if
(i32.eq
(get_global $__THREW__)
@@ -157,7 +157,7 @@
)
)
)
- (func $copyTempFloat (param $ptr i32)
+ (func $copyTempFloat (; 24 ;) (param $ptr i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -201,7 +201,7 @@
)
)
)
- (func $copyTempDouble (param $ptr i32)
+ (func $copyTempDouble (; 25 ;) (param $ptr i32)
(i32.store8
(get_global $tempDoublePtr)
(i32.load8_s
@@ -293,17 +293,17 @@
)
)
)
- (func $setTempRet0 (param $value i32)
+ (func $setTempRet0 (; 26 ;) (param $value i32)
(set_global $tempRet0
(get_local $value)
)
)
- (func $getTempRet0 (result i32)
+ (func $getTempRet0 (; 27 ;) (result i32)
(return
(get_global $tempRet0)
)
)
- (func $_main (result i32)
+ (func $_main (; 28 ;) (result i32)
(local $$retval i32)
(local $$vararg_buffer i32)
(local $label i32)
@@ -343,7 +343,7 @@
(i32.const 0)
)
)
- (func $_frexp (param $$x f64) (param $$e i32) (result f64)
+ (func $_frexp (; 29 ;) (param $$x f64) (param $$e i32) (result f64)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -524,7 +524,7 @@
(get_local $$retval$0)
)
)
- (func $_frexpl (param $$x f64) (param $$e i32) (result f64)
+ (func $_frexpl (; 30 ;) (param $$x f64) (param $$e i32) (result f64)
(local $$call f64)
(local $label i32)
(local $sp i32)
@@ -541,7 +541,7 @@
(get_local $$call)
)
)
- (func $_strerror (param $$e i32) (result i32)
+ (func $_strerror (; 31 ;) (param $$e i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$arrayidx i32)
@@ -763,7 +763,7 @@
(get_local $$s$0$lcssa)
)
)
- (func $___errno_location (result i32)
+ (func $___errno_location (; 32 ;) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$call$i i32)
@@ -815,7 +815,7 @@
(get_local $$retval$0)
)
)
- (func $___stdio_close (param $$f i32) (result i32)
+ (func $___stdio_close (; 33 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$call i32)
(local $$call1 i32)
@@ -875,7 +875,7 @@
(get_local $$call1)
)
)
- (func $___stdout_write (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
+ (func $___stdout_write (; 34 ;) (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$and i32)
@@ -1027,7 +1027,7 @@
(get_local $$call3)
)
)
- (func $___stdio_seek (param $$f i32) (param $$off i32) (param $$whence i32) (result i32)
+ (func $___stdio_seek (; 35 ;) (param $$f i32) (param $$off i32) (param $$whence i32) (result i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -1169,7 +1169,7 @@
(get_local $$1)
)
)
- (func $_fflush (param $$f i32) (result i32)
+ (func $_fflush (; 36 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -1495,7 +1495,7 @@
(get_local $$retval$0)
)
)
- (func $_printf (param $$fmt i32) (param $$varargs i32) (result i32)
+ (func $_printf (; 37 ;) (param $$fmt i32) (param $$varargs i32) (result i32)
(local $$0 i32)
(local $$ap i32)
(local $$call i32)
@@ -1543,7 +1543,7 @@
(get_local $$call)
)
)
- (func $___lockfile (param $$f i32) (result i32)
+ (func $___lockfile (; 38 ;) (param $$f i32) (result i32)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -1553,7 +1553,7 @@
(i32.const 0)
)
)
- (func $___unlockfile (param $$f i32)
+ (func $___unlockfile (; 39 ;) (param $$f i32)
(local $label i32)
(local $sp i32)
(set_local $sp
@@ -1561,7 +1561,7 @@
)
(return)
)
- (func $___stdio_write (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
+ (func $___stdio_write (; 40 ;) (param $$f i32) (param $$buf i32) (param $$len i32) (result i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -2217,7 +2217,7 @@
(get_local $$retval$0)
)
)
- (func $_vfprintf (param $$f i32) (param $$fmt i32) (param $$ap i32) (result i32)
+ (func $_vfprintf (; 41 ;) (param $$f i32) (param $$fmt i32) (param $$ap i32) (result i32)
(local $$$call21 i32)
(local $$0 i32)
(local $$1 i32)
@@ -2683,7 +2683,7 @@
(get_local $$retval$0)
)
)
- (func $___fwritex (param $$s i32) (param $$l i32) (param $$f i32) (result i32)
+ (func $___fwritex (; 42 ;) (param $$s i32) (param $$l i32) (param $$f i32) (result i32)
(local $$$pre i32)
(local $$$pre31 i32)
(local $$0 i32)
@@ -3084,7 +3084,7 @@
(get_local $$retval$0)
)
)
- (func $___towrite (param $$f i32) (result i32)
+ (func $___towrite (; 43 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -3279,7 +3279,7 @@
(get_local $$retval$0)
)
)
- (func $_wcrtomb (param $$s i32) (param $$wc i32) (param $$st i32) (result i32)
+ (func $_wcrtomb (; 44 ;) (param $$s i32) (param $$wc i32) (param $$st i32) (result i32)
(local $$0 i32)
(local $$and i32)
(local $$and19 i32)
@@ -3712,7 +3712,7 @@
(get_local $$retval$0)
)
)
- (func $_wctomb (param $$s i32) (param $$wc i32) (result i32)
+ (func $_wctomb (; 45 ;) (param $$s i32) (param $$wc i32) (result i32)
(local $$call i32)
(local $$retval$0 i32)
(local $$tobool i32)
@@ -3749,7 +3749,7 @@
(get_local $$retval$0)
)
)
- (func $_memchr (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
+ (func $_memchr (; 46 ;) (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -4337,7 +4337,7 @@
(get_local $$cond)
)
)
- (func $___syscall_ret (param $$r i32) (result i32)
+ (func $___syscall_ret (; 47 ;) (param $$r i32) (result i32)
(local $$call i32)
(local $$cmp i32)
(local $$retval$0 i32)
@@ -4381,7 +4381,7 @@
(get_local $$retval$0)
)
)
- (func $___fflush_unlocked (param $$f i32) (result i32)
+ (func $___fflush_unlocked (; 48 ;) (param $$f i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -4600,7 +4600,7 @@
(get_local $$retval$0)
)
)
- (func $_cleanup (param $$p i32)
+ (func $_cleanup (; 49 ;) (param $$p i32)
(local $$0 i32)
(local $$lockcount i32)
(local $$tobool i32)
@@ -4634,7 +4634,7 @@
)
(return)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 50 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4659,7 +4659,7 @@
)
)
)
- (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-rem (; 51 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4671,7 +4671,7 @@
)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 52 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4683,7 +4683,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 53 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -4695,7 +4695,7 @@
)
)
)
- (func $_printf_core (param $$f i32) (param $$fmt i32) (param $$ap i32) (param $$nl_arg i32) (param $$nl_type i32) (result i32)
+ (func $_printf_core (; 54 ;) (param $$f i32) (param $$fmt i32) (param $$ap i32) (param $$nl_arg i32) (param $$nl_type i32) (result i32)
(local $$$ i32)
(local $$$$i i32)
(local $$$396$i f64)
@@ -14526,7 +14526,7 @@
(get_local $$retval$0)
)
)
- (func $_pop_arg_336 (param $$arg i32) (param $$type i32) (param $$ap i32)
+ (func $_pop_arg_336 (; 55 ;) (param $$arg i32) (param $$type i32) (param $$ap i32)
(local $$0 i32)
(local $$1 i32)
(local $$10 i32)
@@ -15826,7 +15826,7 @@
)
(return)
)
- (func $_fmt_u (param $$0 i32) (param $$1 i32) (param $$s i32) (result i32)
+ (func $_fmt_u (; 56 ;) (param $$0 i32) (param $$1 i32) (param $$s i32) (result i32)
(local $$10 i32)
(local $$11 i32)
(local $$12 i32)
@@ -16122,7 +16122,7 @@
(get_local $$s$addr$1$lcssa)
)
)
- (func $_pad (param $$f i32) (param $$c i32) (param $$w i32) (param $$l i32) (param $$fl i32)
+ (func $_pad (; 57 ;) (param $$f i32) (param $$c i32) (param $$w i32) (param $$l i32) (param $$fl i32)
(local $$$pre i32)
(local $$0 i32)
(local $$1 i32)
@@ -16367,7 +16367,7 @@
)
(return)
)
- (func $_malloc (param $$bytes i32) (result i32)
+ (func $_malloc (; 58 ;) (param $$bytes i32) (result i32)
(local $$$lcssa i32)
(local $$$lcssa290 i32)
(local $$$pre i32)
@@ -27006,7 +27006,7 @@
(get_local $$retval$0)
)
)
- (func $_free (param $$mem i32)
+ (func $_free (; 59 ;) (param $$mem i32)
(local $$$pre i32)
(local $$$pre$phiZ2D i32)
(local $$$pre312 i32)
@@ -30323,10 +30323,10 @@
)
(return)
)
- (func $runPostSets
+ (func $runPostSets (; 60 ;)
(nop)
)
- (func $_i64Subtract (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $_i64Subtract (; 61 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
(local $h i32)
(set_local $l
@@ -30367,7 +30367,7 @@
)
)
)
- (func $_i64Add (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $_i64Add (; 62 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
(local $h i32)
(set_local $l
@@ -30402,7 +30402,7 @@
)
)
)
- (func $_memset (param $ptr i32) (param $value i32) (param $num i32) (result i32)
+ (func $_memset (; 63 ;) (param $ptr i32) (param $value i32) (param $num i32) (result i32)
(local $stop i32)
(local $value4 i32)
(local $stop4 i32)
@@ -30562,7 +30562,7 @@
)
)
)
- (func $_bitshift64Lshr (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Lshr (; 64 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30618,7 +30618,7 @@
)
)
)
- (func $_bitshift64Shl (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Shl (; 65 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30680,7 +30680,7 @@
(i32.const 0)
)
)
- (func $_memcpy (param $dest i32) (param $src i32) (param $num i32) (result i32)
+ (func $_memcpy (; 66 ;) (param $dest i32) (param $src i32) (param $num i32) (result i32)
(local $ret i32)
(if
(i32.ge_s
@@ -30845,7 +30845,7 @@
(get_local $ret)
)
)
- (func $_bitshift64Ashr (param $low i32) (param $high i32) (param $bits i32) (result i32)
+ (func $_bitshift64Ashr (; 67 ;) (param $low i32) (param $high i32) (param $bits i32) (result i32)
(local $ander i32)
(if
(i32.lt_s
@@ -30908,7 +30908,7 @@
)
)
)
- (func $___muldsi3 (param $$a i32) (param $$b i32) (result i32)
+ (func $___muldsi3 (; 68 ;) (param $$a i32) (param $$b i32) (result i32)
(local $$1 i32)
(local $$2 i32)
(local $$3 i32)
@@ -31014,7 +31014,7 @@
)
)
)
- (func $___divdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___divdi3 (; 69 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
(local $$1$1 i32)
(local $$2$0 i32)
@@ -31186,7 +31186,7 @@
(get_local $$10$0)
)
)
- (func $___remdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___remdi3 (; 70 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$rem i32)
(local $$1$0 i32)
(local $$1$1 i32)
@@ -31381,7 +31381,7 @@
)
)
)
- (func $___muldi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___muldi3 (; 71 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$x_sroa_0_0_extract_trunc i32)
(local $$y_sroa_0_0_extract_trunc i32)
(local $$1$0 i32)
@@ -31443,7 +31443,7 @@
)
)
)
- (func $___udivdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___udivdi3 (; 72 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
(set_local $$1$0
(call $___udivmoddi4
@@ -31458,7 +31458,7 @@
(get_local $$1$0)
)
)
- (func $___uremdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___uremdi3 (; 73 ;) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$rem i32)
(local $__stackBase__ i32)
(set_local $__stackBase__
@@ -31506,7 +31506,7 @@
)
)
)
- (func $___udivmoddi4 (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 74 ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -31563,7 +31563,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (param $index i32) (param $a1 i32) (result i32)
+ (func $dynCall_ii (; 75 ;) (param $index i32) (param $a1 i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $a1)
@@ -31577,7 +31577,7 @@
)
)
)
- (func $dynCall_iiii (param $index i32) (param $a1 i32) (param $a2 i32) (param $a3 i32) (result i32)
+ (func $dynCall_iiii (; 76 ;) (param $index i32) (param $a1 i32) (param $a2 i32) (param $a3 i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $a1)
@@ -31593,7 +31593,7 @@
)
)
)
- (func $dynCall_vi (param $index i32) (param $a1 i32)
+ (func $dynCall_vi (; 77 ;) (param $index i32) (param $a1 i32)
(call_indirect $FUNCSIG$vi
(get_local $a1)
(i32.add
@@ -31605,7 +31605,7 @@
)
)
)
- (func $b0 (param $p0 i32) (result i32)
+ (func $b0 (; 78 ;) (param $p0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
@@ -31613,7 +31613,7 @@
(i32.const 0)
)
)
- (func $b1 (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
+ (func $b1 (; 79 ;) (param $p0 i32) (param $p1 i32) (param $p2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
@@ -31621,7 +31621,7 @@
(i32.const 0)
)
)
- (func $b2 (param $p0 i32)
+ (func $b2 (; 80 ;) (param $p0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/example/c-api-hello-world.txt b/test/example/c-api-hello-world.txt
index 640074360..e61cf3761 100644
--- a/test/example/c-api-hello-world.txt
+++ b/test/example/c-api-hello-world.txt
@@ -1,7 +1,7 @@
(module
(type $iii (func (param i32 i32) (result i32)))
(memory $0 0)
- (func $adder (type $iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $adder (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(get_local $0)
(get_local $1)
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index 8bbef7c95..d08a204a9 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -19,7 +19,7 @@ BinaryenFloat64: 4
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "mem" (memory $0))
(start $starter)
- (func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
+ (func "$kitchen()sinker" (; 1 ;) (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body (result i32)
(block $the-nothing
@@ -532,7 +532,7 @@ BinaryenFloat64: 4
(i32.const 42)
)
)
- (func $starter (type $v)
+ (func $starter (; 2 ;) (type $v)
(nop)
)
)
@@ -540,7 +540,7 @@ BinaryenFloat64: 4
(type $i (func (result i32)))
(type $I (func (result i64)))
(memory $0 0)
- (func $unreachable-fn (type $i) (result i32)
+ (func $unreachable-fn (; 0 ;) (type $i) (result i32)
(call_indirect $I
(unreachable)
)
@@ -553,13 +553,13 @@ raw:
(type $i (func (result i32)))
(import "module" "check" (func $check (param i32)))
(memory $0 0)
- (func $just-one-block (type $v)
+ (func $just-one-block (; 1 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 1337)
)
)
- (func $two-blocks (type $v)
+ (func $two-blocks (; 2 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -575,7 +575,7 @@ raw:
)
)
)
- (func $two-blocks-plus-code (type $v)
+ (func $two-blocks-plus-code (; 3 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -594,7 +594,7 @@ raw:
)
)
)
- (func $loop (type $v)
+ (func $loop (; 4 ;) (type $v)
(local $0 i32)
(loop $shape$0$continue
(block $block$2$break
@@ -615,7 +615,7 @@ raw:
)
)
)
- (func $loop-plus-code (type $v)
+ (func $loop-plus-code (; 5 ;) (type $v)
(local $0 i32)
(loop $shape$0$continue
(block $block$2$break
@@ -642,7 +642,7 @@ raw:
)
)
)
- (func $split (type $v)
+ (func $split (; 6 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -661,7 +661,7 @@ raw:
)
)
)
- (func $split-plus-code (type $v)
+ (func $split-plus-code (; 7 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -690,7 +690,7 @@ raw:
)
)
)
- (func $if (type $v)
+ (func $if (; 8 ;) (type $v)
(local $0 i32)
(block $block$3$break
(call $check
@@ -715,7 +715,7 @@ raw:
)
)
)
- (func $if-plus-code (type $v)
+ (func $if-plus-code (; 9 ;) (type $v)
(local $0 i32)
(block $block$3$break
(call $check
@@ -753,7 +753,7 @@ raw:
)
)
)
- (func $if-else (type $v)
+ (func $if-else (; 10 ;) (type $v)
(local $0 i32)
(block $block$4$break
(call $check
@@ -785,7 +785,7 @@ raw:
)
)
)
- (func $loop-tail (type $v)
+ (func $loop-tail (; 11 ;) (type $v)
(local $0 i32)
(block $block$3$break
(loop $shape$0$continue
@@ -815,7 +815,7 @@ raw:
)
)
)
- (func $nontrivial-loop-plus-phi-to-head (type $v)
+ (func $nontrivial-loop-plus-phi-to-head (; 12 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -902,7 +902,7 @@ raw:
)
)
)
- (func $switch (type $v)
+ (func $switch (; 13 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -946,7 +946,7 @@ raw:
(br $switch$1$leave)
)
)
- (func $duffs-device (type $v)
+ (func $duffs-device (; 14 ;) (type $v)
(local $0 i32)
(local $1 i32)
(local $2 i64)
@@ -1021,7 +1021,7 @@ raw:
)
)
)
- (func $return (type $i) (result i32)
+ (func $return (; 15 ;) (type $i) (result i32)
(local $0 i32)
(block $the-list
(call $check
@@ -1041,7 +1041,7 @@ module loaded from binary form:
(module
(type $0 (func (param i32 i32) (result i32)))
(memory $0 0)
- (func $adder (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $adder (; 0 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.add
(get_local $var$0)
(get_local $var$1)
@@ -1054,7 +1054,7 @@ module loaded from binary form:
(import "spectest" "print" (func $print-i32 (param i32)))
(memory $0 0)
(start $starter)
- (func $starter (type $v)
+ (func $starter (; 1 ;) (type $v)
(call $print-i32
(i32.const 1234)
)
@@ -1064,7 +1064,7 @@ module loaded from binary form:
(module
(type $v (func))
(memory $0 0)
- (func $func (type $v)
+ (func $func (; 0 ;) (type $v)
(local $0 i32)
(set_local $0
(i64.const 1234)
@@ -1075,7 +1075,7 @@ validation: 0
(module
(type $i (func (result i32)))
(memory $0 0)
- (func $func (type $i) (result i32)
+ (func $func (; 0 ;) (type $i) (result i32)
(i32.sub
(i32.const 1234)
(i32.const 1234)
@@ -1434,7 +1434,7 @@ int main() {
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "mem" (memory $0))
(start $starter)
- (func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
+ (func "$kitchen()sinker" (; 1 ;) (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body (result i32)
(block $the-nothing
@@ -1947,7 +1947,7 @@ int main() {
(i32.const 42)
)
)
- (func $starter (type $v)
+ (func $starter (; 2 ;) (type $v)
(nop)
)
)
@@ -2418,13 +2418,13 @@ raw:
(type $i (func (result i32)))
(import "module" "check" (func $check (param i32)))
(memory $0 0)
- (func $just-one-block (type $v)
+ (func $just-one-block (; 1 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 1337)
)
)
- (func $two-blocks (type $v)
+ (func $two-blocks (; 2 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -2440,7 +2440,7 @@ raw:
)
)
)
- (func $two-blocks-plus-code (type $v)
+ (func $two-blocks-plus-code (; 3 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -2459,7 +2459,7 @@ raw:
)
)
)
- (func $loop (type $v)
+ (func $loop (; 4 ;) (type $v)
(local $0 i32)
(loop $shape$0$continue
(block $block$2$break
@@ -2480,7 +2480,7 @@ raw:
)
)
)
- (func $loop-plus-code (type $v)
+ (func $loop-plus-code (; 5 ;) (type $v)
(local $0 i32)
(loop $shape$0$continue
(block $block$2$break
@@ -2507,7 +2507,7 @@ raw:
)
)
)
- (func $split (type $v)
+ (func $split (; 6 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -2526,7 +2526,7 @@ raw:
)
)
)
- (func $split-plus-code (type $v)
+ (func $split-plus-code (; 7 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -2555,7 +2555,7 @@ raw:
)
)
)
- (func $if (type $v)
+ (func $if (; 8 ;) (type $v)
(local $0 i32)
(block $block$3$break
(call $check
@@ -2580,7 +2580,7 @@ raw:
)
)
)
- (func $if-plus-code (type $v)
+ (func $if-plus-code (; 9 ;) (type $v)
(local $0 i32)
(block $block$3$break
(call $check
@@ -2618,7 +2618,7 @@ raw:
)
)
)
- (func $if-else (type $v)
+ (func $if-else (; 10 ;) (type $v)
(local $0 i32)
(block $block$4$break
(call $check
@@ -2650,7 +2650,7 @@ raw:
)
)
)
- (func $loop-tail (type $v)
+ (func $loop-tail (; 11 ;) (type $v)
(local $0 i32)
(block $block$3$break
(loop $shape$0$continue
@@ -2680,7 +2680,7 @@ raw:
)
)
)
- (func $nontrivial-loop-plus-phi-to-head (type $v)
+ (func $nontrivial-loop-plus-phi-to-head (; 12 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -2767,7 +2767,7 @@ raw:
)
)
)
- (func $switch (type $v)
+ (func $switch (; 13 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -2811,7 +2811,7 @@ raw:
(br $switch$1$leave)
)
)
- (func $duffs-device (type $v)
+ (func $duffs-device (; 14 ;) (type $v)
(local $0 i32)
(local $1 i32)
(local $2 i64)
@@ -2886,7 +2886,7 @@ raw:
)
)
)
- (func $return (type $i) (result i32)
+ (func $return (; 15 ;) (type $i) (result i32)
(local $0 i32)
(block $the-list
(call $check
diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt
index dc35b1f04..4f35a746f 100644
--- a/test/example/c-api-kitchen-sink.txt.txt
+++ b/test/example/c-api-kitchen-sink.txt.txt
@@ -14,7 +14,7 @@
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "mem" (memory $0))
(start $starter)
- (func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
+ (func "$kitchen()sinker" (; 1 ;) (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body (result i32)
(block $the-nothing
@@ -527,7 +527,7 @@
(i32.const 42)
)
)
- (func $starter (type $v)
+ (func $starter (; 2 ;) (type $v)
(nop)
)
)
@@ -537,13 +537,13 @@
(type $i (func (result i32)))
(import "module" "check" (func $check (param i32)))
(memory $0 0)
- (func $just-one-block (type $v)
+ (func $just-one-block (; 1 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 1337)
)
)
- (func $two-blocks (type $v)
+ (func $two-blocks (; 2 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -559,7 +559,7 @@
)
)
)
- (func $two-blocks-plus-code (type $v)
+ (func $two-blocks-plus-code (; 3 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -578,7 +578,7 @@
)
)
)
- (func $loop (type $v)
+ (func $loop (; 4 ;) (type $v)
(local $0 i32)
(loop $shape$0$continue
(block $block$2$break
@@ -599,7 +599,7 @@
)
)
)
- (func $loop-plus-code (type $v)
+ (func $loop-plus-code (; 5 ;) (type $v)
(local $0 i32)
(loop $shape$0$continue
(block $block$2$break
@@ -626,7 +626,7 @@
)
)
)
- (func $split (type $v)
+ (func $split (; 6 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -645,7 +645,7 @@
)
)
)
- (func $split-plus-code (type $v)
+ (func $split-plus-code (; 7 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -674,7 +674,7 @@
)
)
)
- (func $if (type $v)
+ (func $if (; 8 ;) (type $v)
(local $0 i32)
(block $block$3$break
(call $check
@@ -699,7 +699,7 @@
)
)
)
- (func $if-plus-code (type $v)
+ (func $if-plus-code (; 9 ;) (type $v)
(local $0 i32)
(block $block$3$break
(call $check
@@ -737,7 +737,7 @@
)
)
)
- (func $if-else (type $v)
+ (func $if-else (; 10 ;) (type $v)
(local $0 i32)
(block $block$4$break
(call $check
@@ -769,7 +769,7 @@
)
)
)
- (func $loop-tail (type $v)
+ (func $loop-tail (; 11 ;) (type $v)
(local $0 i32)
(block $block$3$break
(loop $shape$0$continue
@@ -799,7 +799,7 @@
)
)
)
- (func $nontrivial-loop-plus-phi-to-head (type $v)
+ (func $nontrivial-loop-plus-phi-to-head (; 12 ;) (type $v)
(local $0 i32)
(block $block$2$break
(call $check
@@ -886,7 +886,7 @@
)
)
)
- (func $switch (type $v)
+ (func $switch (; 13 ;) (type $v)
(local $0 i32)
(call $check
(i32.const 0)
@@ -930,7 +930,7 @@
(br $switch$1$leave)
)
)
- (func $duffs-device (type $v)
+ (func $duffs-device (; 14 ;) (type $v)
(local $0 i32)
(local $1 i32)
(local $2 i64)
@@ -1005,7 +1005,7 @@
)
)
)
- (func $return (type $i) (result i32)
+ (func $return (; 15 ;) (type $i) (result i32)
(local $0 i32)
(block $the-list
(call $check
diff --git a/test/example/c-api-unused-mem.txt b/test/example/c-api-unused-mem.txt
index 6bb3c8a7c..715a5e655 100644
--- a/test/example/c-api-unused-mem.txt
+++ b/test/example/c-api-unused-mem.txt
@@ -5,7 +5,7 @@
(export "memory" (memory $0))
(export "main" (func $main))
(export "rust_entry" (func $__wasm_start))
- (func $main (type $rustfn-0-3)
+ (func $main (; 0 ;) (type $rustfn-0-3)
(local $0 i32)
(local $1 i32)
(local $2 i64)
@@ -38,7 +38,7 @@
)
)
)
- (func $__wasm_start (type $__wasm_start)
+ (func $__wasm_start (; 1 ;) (type $__wasm_start)
(i32.store
(i32.const 0)
(i32.const 65535)
@@ -54,7 +54,7 @@
(export "memory" (memory $0))
(export "main" (func $main))
(export "rust_entry" (func $__wasm_start))
- (func $main (type $0)
+ (func $main (; 0 ;) (type $0)
(local $var$0 i32)
(local $var$1 i32)
(local $var$2 i64)
@@ -88,7 +88,7 @@
)
)
)
- (func $__wasm_start (type $1)
+ (func $__wasm_start (; 1 ;) (type $1)
(i32.store
(i32.const 0)
(i32.const 65535)
diff --git a/test/example/relooper-fuzz.txt b/test/example/relooper-fuzz.txt
index 438a4bca1..e53ca13ce 100644
--- a/test/example/relooper-fuzz.txt
+++ b/test/example/relooper-fuzz.txt
@@ -6,7 +6,7 @@
(memory $0 1 1)
(export "mem" (memory $0))
(start $main)
- (func $check (type $i) (result i32)
+ (func $check (; 1 ;) (type $i) (result i32)
(if
(i32.eq
(i32.load
@@ -41,7 +41,7 @@
)
)
)
- (func $main (type $v)
+ (func $main (; 2 ;) (type $v)
(local $0 i32)
(local $1 i32)
(i32.store
@@ -299,7 +299,7 @@
(memory $0 1 1)
(export "mem" (memory $0))
(start $main)
- (func $check (type $i) (result i32)
+ (func $check (; 1 ;) (type $i) (result i32)
(if
(i32.eq
(i32.load
@@ -334,7 +334,7 @@
)
)
)
- (func $main (type $v)
+ (func $main (; 2 ;) (type $v)
(local $0 i32)
(local $1 i32)
(i32.store
diff --git a/test/example/relooper-fuzz1.txt b/test/example/relooper-fuzz1.txt
index 0214d9c81..6d0bba603 100644
--- a/test/example/relooper-fuzz1.txt
+++ b/test/example/relooper-fuzz1.txt
@@ -6,7 +6,7 @@
(memory $0 1 1)
(export "mem" (memory $0))
(start $main)
- (func $check (type $i) (result i32)
+ (func $check (; 1 ;) (type $i) (result i32)
(if
(i32.eq
(i32.load
@@ -41,7 +41,7 @@
)
)
)
- (func $main (type $v)
+ (func $main (; 2 ;) (type $v)
(local $0 i32)
(local $1 i32)
(i32.store
@@ -275,7 +275,7 @@
(memory $0 1 1)
(export "mem" (memory $0))
(start $main)
- (func $check (type $i) (result i32)
+ (func $check (; 1 ;) (type $i) (result i32)
(if
(i32.eq
(i32.load
@@ -310,7 +310,7 @@
)
)
)
- (func $main (type $v)
+ (func $main (; 2 ;) (type $v)
(local $0 i32)
(i32.store
(i32.const 8)
diff --git a/test/fib-dbg.wasm.fromBinary b/test/fib-dbg.wasm.fromBinary
index f028edda1..cd431a054 100644
--- a/test/fib-dbg.wasm.fromBinary
+++ b/test/fib-dbg.wasm.fromBinary
@@ -48,7 +48,7 @@
(export "stackRestore" (func $stackRestore))
(export "_fib" (func $_fib))
(export "stackAlloc" (func $stackAlloc))
- (func $stackAlloc (type $1) (param $var$0 i32) (result i32)
+ (func $stackAlloc (; 0 ;) (type $1) (param $var$0 i32) (result i32)
(local $var$1 i32)
(block $label$1
(set_local $var$1
@@ -74,17 +74,17 @@
)
)
)
- (func $stackSave (type $2) (result i32)
+ (func $stackSave (; 1 ;) (type $2) (result i32)
(return
(get_global $global$3)
)
)
- (func $stackRestore (type $3) (param $var$0 i32)
+ (func $stackRestore (; 2 ;) (type $3) (param $var$0 i32)
(set_global $global$3
(get_local $var$0)
)
)
- (func $establishStackSpace (type $0) (param $var$0 i32) (param $var$1 i32)
+ (func $establishStackSpace (; 3 ;) (type $0) (param $var$0 i32) (param $var$1 i32)
(block $label$1
(set_global $global$3
(get_local $var$0)
@@ -94,7 +94,7 @@
)
)
)
- (func $setThrew (type $0) (param $var$0 i32) (param $var$1 i32)
+ (func $setThrew (; 4 ;) (type $0) (param $var$0 i32) (param $var$1 i32)
(if
(i32.eq
(get_global $global$7)
@@ -110,7 +110,7 @@
)
)
)
- (func $_fib (type $1) (param $var$0 i32) (result i32)
+ (func $_fib (; 5 ;) (type $1) (param $var$0 i32) (result i32)
(local $var$1 i32)
(local $var$2 i32)
(local $var$3 i32)
@@ -214,7 +214,7 @@
)
)
)
- (func $runPostSets (type $4)
+ (func $runPostSets (; 6 ;) (type $4)
(local $var$0 i32)
(nop)
)
diff --git a/test/hello_world.fromasm b/test/hello_world.fromasm
index 51c2fd31d..0e0b870c5 100644
--- a/test/hello_world.fromasm
+++ b/test/hello_world.fromasm
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "hello_world.asm.js")
(export "add" (func $add))
- (func $add (param $0 i32) (param $1 i32) (result i32)
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(get_local $0)
(get_local $1)
diff --git a/test/hello_world.fromasm.clamp b/test/hello_world.fromasm.clamp
index 51c2fd31d..0e0b870c5 100644
--- a/test/hello_world.fromasm.clamp
+++ b/test/hello_world.fromasm.clamp
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "hello_world.asm.js")
(export "add" (func $add))
- (func $add (param $0 i32) (param $1 i32) (result i32)
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(get_local $0)
(get_local $1)
diff --git a/test/hello_world.fromasm.clamp.no-opts b/test/hello_world.fromasm.clamp.no-opts
index 3d2e51b9c..90861e289 100644
--- a/test/hello_world.fromasm.clamp.no-opts
+++ b/test/hello_world.fromasm.clamp.no-opts
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "add" (func $add))
- (func $add (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (param $x i32) (param $y i32) (result i32)
(return
(i32.add
(get_local $x)
diff --git a/test/hello_world.fromasm.imprecise b/test/hello_world.fromasm.imprecise
index 2e4a2f12d..ab998a5bd 100644
--- a/test/hello_world.fromasm.imprecise
+++ b/test/hello_world.fromasm.imprecise
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "add" (func $add))
- (func $add (param $0 i32) (param $1 i32) (result i32)
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(get_local $0)
(get_local $1)
diff --git a/test/hello_world.fromasm.imprecise.no-opts b/test/hello_world.fromasm.imprecise.no-opts
index 3d2e51b9c..90861e289 100644
--- a/test/hello_world.fromasm.imprecise.no-opts
+++ b/test/hello_world.fromasm.imprecise.no-opts
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "add" (func $add))
- (func $add (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (param $x i32) (param $y i32) (result i32)
(return
(i32.add
(get_local $x)
diff --git a/test/hello_world.fromasm.no-opts b/test/hello_world.fromasm.no-opts
index 3d2e51b9c..90861e289 100644
--- a/test/hello_world.fromasm.no-opts
+++ b/test/hello_world.fromasm.no-opts
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "add" (func $add))
- (func $add (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (param $x i32) (param $y i32) (result i32)
(return
(i32.add
(get_local $x)
diff --git a/test/hello_world.wast b/test/hello_world.wast
index ade7bd1ef..4a0f62082 100644
--- a/test/hello_world.wast
+++ b/test/hello_world.wast
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $add))
- (func $add (type $0) (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (type $0) (param $x i32) (param $y i32) (result i32)
(i32.add
(get_local $x)
(get_local $y)
diff --git a/test/hello_world.wast.from-wast b/test/hello_world.wast.from-wast
index ade7bd1ef..4a0f62082 100644
--- a/test/hello_world.wast.from-wast
+++ b/test/hello_world.wast.from-wast
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $add))
- (func $add (type $0) (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (type $0) (param $x i32) (param $y i32) (result i32)
(i32.add
(get_local $x)
(get_local $y)
diff --git a/test/hello_world.wast.fromBinary b/test/hello_world.wast.fromBinary
index a96857ac9..af6459839 100644
--- a/test/hello_world.wast.fromBinary
+++ b/test/hello_world.wast.fromBinary
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $add))
- (func $add (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $add (; 0 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.add
(get_local $var$0)
(get_local $var$1)
diff --git a/test/hello_world.wast.fromBinary.noDebugInfo b/test/hello_world.wast.fromBinary.noDebugInfo
index 6e2270ecf..bf7fff1e1 100644
--- a/test/hello_world.wast.fromBinary.noDebugInfo
+++ b/test/hello_world.wast.fromBinary.noDebugInfo
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $0))
- (func $0 (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $0 (; 0 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.add
(get_local $var$0)
(get_local $var$1)
diff --git a/test/i64-setTempRet0.fromasm b/test/i64-setTempRet0.fromasm
index 078b1f0ef..10a29ea79 100644
--- a/test/i64-setTempRet0.fromasm
+++ b/test/i64-setTempRet0.fromasm
@@ -11,15 +11,15 @@
(data (get_global $memoryBase) "i64-setTempRet0.asm.js")
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (result i64)
+ (func $illegalResult (; 2 ;) (result i64)
(i64.const 8589934593)
)
- (func $imports (result i32)
+ (func $imports (; 3 ;) (result i32)
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 4 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -36,7 +36,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
diff --git a/test/i64-setTempRet0.fromasm.clamp b/test/i64-setTempRet0.fromasm.clamp
index 078b1f0ef..10a29ea79 100644
--- a/test/i64-setTempRet0.fromasm.clamp
+++ b/test/i64-setTempRet0.fromasm.clamp
@@ -11,15 +11,15 @@
(data (get_global $memoryBase) "i64-setTempRet0.asm.js")
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (result i64)
+ (func $illegalResult (; 2 ;) (result i64)
(i64.const 8589934593)
)
- (func $imports (result i32)
+ (func $imports (; 3 ;) (result i32)
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 4 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -36,7 +36,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
diff --git a/test/i64-setTempRet0.fromasm.clamp.no-opts b/test/i64-setTempRet0.fromasm.clamp.no-opts
index d1f1ed656..71fecb26b 100644
--- a/test/i64-setTempRet0.fromasm.clamp.no-opts
+++ b/test/i64-setTempRet0.fromasm.clamp.no-opts
@@ -10,19 +10,19 @@
(global $tempRet0 (mut i32) (i32.const 0))
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (result i64)
+ (func $illegalResult (; 2 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $imports (result i32)
+ (func $imports (; 3 ;) (result i32)
(return
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 4 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -39,7 +39,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
diff --git a/test/i64-setTempRet0.fromasm.imprecise b/test/i64-setTempRet0.fromasm.imprecise
index bda879557..0d010664f 100644
--- a/test/i64-setTempRet0.fromasm.imprecise
+++ b/test/i64-setTempRet0.fromasm.imprecise
@@ -10,15 +10,15 @@
(global $tempRet0 (mut i32) (i32.const 0))
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (result i64)
+ (func $illegalResult (; 2 ;) (result i64)
(i64.const 8589934593)
)
- (func $imports (result i32)
+ (func $imports (; 3 ;) (result i32)
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 4 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -35,7 +35,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
diff --git a/test/i64-setTempRet0.fromasm.imprecise.no-opts b/test/i64-setTempRet0.fromasm.imprecise.no-opts
index d1f1ed656..71fecb26b 100644
--- a/test/i64-setTempRet0.fromasm.imprecise.no-opts
+++ b/test/i64-setTempRet0.fromasm.imprecise.no-opts
@@ -10,19 +10,19 @@
(global $tempRet0 (mut i32) (i32.const 0))
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (result i64)
+ (func $illegalResult (; 2 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $imports (result i32)
+ (func $imports (; 3 ;) (result i32)
(return
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 4 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -39,7 +39,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
diff --git a/test/i64-setTempRet0.fromasm.no-opts b/test/i64-setTempRet0.fromasm.no-opts
index d1f1ed656..71fecb26b 100644
--- a/test/i64-setTempRet0.fromasm.no-opts
+++ b/test/i64-setTempRet0.fromasm.no-opts
@@ -10,19 +10,19 @@
(global $tempRet0 (mut i32) (i32.const 0))
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (result i64)
+ (func $illegalResult (; 2 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $imports (result i32)
+ (func $imports (; 3 ;) (result i32)
(return
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 4 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -39,7 +39,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
diff --git a/test/importedSignCast.fromasm b/test/importedSignCast.fromasm
index 29fdf0224..8b1fa1e7e 100644
--- a/test/importedSignCast.fromasm
+++ b/test/importedSignCast.fromasm
@@ -8,7 +8,7 @@
(elem (get_global $tableBase) $gm)
(data (get_global $memoryBase) "importedSignCast.asm.js")
(export "func" (func $func))
- (func $func
+ (func $func (; 1 ;)
(drop
(call $gm
(i32.const 0)
diff --git a/test/importedSignCast.fromasm.clamp b/test/importedSignCast.fromasm.clamp
index 29fdf0224..8b1fa1e7e 100644
--- a/test/importedSignCast.fromasm.clamp
+++ b/test/importedSignCast.fromasm.clamp
@@ -8,7 +8,7 @@
(elem (get_global $tableBase) $gm)
(data (get_global $memoryBase) "importedSignCast.asm.js")
(export "func" (func $func))
- (func $func
+ (func $func (; 1 ;)
(drop
(call $gm
(i32.const 0)
diff --git a/test/importedSignCast.fromasm.clamp.no-opts b/test/importedSignCast.fromasm.clamp.no-opts
index 6043bfdbf..c7cb282e8 100644
--- a/test/importedSignCast.fromasm.clamp.no-opts
+++ b/test/importedSignCast.fromasm.clamp.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(elem (get_global $tableBase) $gm)
(export "func" (func $func))
- (func $func
+ (func $func (; 1 ;)
(drop
(i32.shr_s
(i32.shl
diff --git a/test/importedSignCast.fromasm.imprecise b/test/importedSignCast.fromasm.imprecise
index fbe186610..3c6fc1405 100644
--- a/test/importedSignCast.fromasm.imprecise
+++ b/test/importedSignCast.fromasm.imprecise
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(elem (get_global $tableBase) $gm)
(export "func" (func $func))
- (func $func
+ (func $func (; 1 ;)
(drop
(call $gm
(i32.const 0)
diff --git a/test/importedSignCast.fromasm.imprecise.no-opts b/test/importedSignCast.fromasm.imprecise.no-opts
index 6043bfdbf..c7cb282e8 100644
--- a/test/importedSignCast.fromasm.imprecise.no-opts
+++ b/test/importedSignCast.fromasm.imprecise.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(elem (get_global $tableBase) $gm)
(export "func" (func $func))
- (func $func
+ (func $func (; 1 ;)
(drop
(i32.shr_s
(i32.shl
diff --git a/test/importedSignCast.fromasm.no-opts b/test/importedSignCast.fromasm.no-opts
index 6043bfdbf..c7cb282e8 100644
--- a/test/importedSignCast.fromasm.no-opts
+++ b/test/importedSignCast.fromasm.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(elem (get_global $tableBase) $gm)
(export "func" (func $func))
- (func $func
+ (func $func (; 1 ;)
(drop
(i32.shr_s
(i32.shl
diff --git a/test/kitchen_sink.wast.from-wast b/test/kitchen_sink.wast.from-wast
index 50e81f1d9..621b02a56 100644
--- a/test/kitchen_sink.wast.from-wast
+++ b/test/kitchen_sink.wast.from-wast
@@ -2,7 +2,7 @@
(type $0 (func (result i32)))
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
- (func $kitchensink (type $0) (result i32)
+ (func $kitchensink (; 0 ;) (type $0) (result i32)
(block $block0 (result i32)
(drop
(i32.add
diff --git a/test/kitchen_sink.wast.fromBinary b/test/kitchen_sink.wast.fromBinary
index c3b2f13fd..dee6984f8 100644
--- a/test/kitchen_sink.wast.fromBinary
+++ b/test/kitchen_sink.wast.fromBinary
@@ -2,7 +2,7 @@
(type $0 (func (result i32)))
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
- (func $kitchensink (type $0) (result i32)
+ (func $kitchensink (; 0 ;) (type $0) (result i32)
(drop
(i32.add
(i32.const 10)
diff --git a/test/kitchen_sink.wast.fromBinary.noDebugInfo b/test/kitchen_sink.wast.fromBinary.noDebugInfo
index 58bc060aa..162c1fa96 100644
--- a/test/kitchen_sink.wast.fromBinary.noDebugInfo
+++ b/test/kitchen_sink.wast.fromBinary.noDebugInfo
@@ -2,7 +2,7 @@
(type $0 (func (result i32)))
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
- (func $0 (type $0) (result i32)
+ (func $0 (; 0 ;) (type $0) (result i32)
(drop
(i32.add
(i32.const 10)
diff --git a/test/llvm_autogenerated/byval.wast b/test/llvm_autogenerated/byval.wast
index 39099917b..5fd003502 100644
--- a/test/llvm_autogenerated/byval.wast
+++ b/test/llvm_autogenerated/byval.wast
@@ -22,7 +22,7 @@
(export "byval_empty_caller" (func $byval_empty_caller))
(export "byval_empty_callee" (func $byval_empty_callee))
(export "big_byval" (func $big_byval))
- (func $byval_arg (param $0 i32)
+ (func $byval_arg (; 8 ;) (param $0 i32)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
@@ -56,7 +56,7 @@
)
(return)
)
- (func $byval_arg_align8 (param $0 i32)
+ (func $byval_arg_align8 (; 9 ;) (param $0 i32)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
@@ -90,7 +90,7 @@
)
(return)
)
- (func $byval_arg_double (param $0 i32)
+ (func $byval_arg_double (; 10 ;) (param $0 i32)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
@@ -133,25 +133,25 @@
)
(return)
)
- (func $byval_param (param $0 i32)
+ (func $byval_param (; 11 ;) (param $0 i32)
(call $ext_func
(get_local $0)
)
(return)
)
- (func $byval_empty_caller (param $0 i32)
+ (func $byval_empty_caller (; 12 ;) (param $0 i32)
(call $ext_byval_func_empty
(get_local $0)
)
(return)
)
- (func $byval_empty_callee (param $0 i32)
+ (func $byval_empty_callee (; 13 ;) (param $0 i32)
(call $ext_func_empty
(get_local $0)
)
(return)
)
- (func $big_byval (param $0 i32)
+ (func $big_byval (; 14 ;) (param $0 i32)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
@@ -182,12 +182,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 15 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 16 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -206,7 +206,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 17 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/call.wast b/test/llvm_autogenerated/call.wast
index 1782a37c4..7aa279535 100644
--- a/test/llvm_autogenerated/call.wast
+++ b/test/llvm_autogenerated/call.wast
@@ -34,38 +34,38 @@
(export "tail_call_void_nullary" (func $tail_call_void_nullary))
(export "fastcc_tail_call_void_nullary" (func $fastcc_tail_call_void_nullary))
(export "coldcc_tail_call_void_nullary" (func $coldcc_tail_call_void_nullary))
- (func $call_i32_nullary (result i32)
+ (func $call_i32_nullary (; 7 ;) (result i32)
(return
(call $i32_nullary)
)
)
- (func $call_i64_nullary (result i64)
+ (func $call_i64_nullary (; 8 ;) (result i64)
(return
(call $i64_nullary)
)
)
- (func $call_float_nullary (result f32)
+ (func $call_float_nullary (; 9 ;) (result f32)
(return
(call $float_nullary)
)
)
- (func $call_double_nullary (result f64)
+ (func $call_double_nullary (; 10 ;) (result f64)
(return
(call $double_nullary)
)
)
- (func $call_void_nullary
+ (func $call_void_nullary (; 11 ;)
(call $void_nullary)
(return)
)
- (func $call_i32_unary (param $0 i32) (result i32)
+ (func $call_i32_unary (; 12 ;) (param $0 i32) (result i32)
(return
(call $i32_unary
(get_local $0)
)
)
)
- (func $call_i32_binary (param $0 i32) (param $1 i32) (result i32)
+ (func $call_i32_binary (; 13 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(call $i32_binary
(get_local $0)
@@ -73,27 +73,27 @@
)
)
)
- (func $call_indirect_void (param $0 i32)
+ (func $call_indirect_void (; 14 ;) (param $0 i32)
(call_indirect $FUNCSIG$v
(get_local $0)
)
(return)
)
- (func $call_indirect_i32 (param $0 i32) (result i32)
+ (func $call_indirect_i32 (; 15 ;) (param $0 i32) (result i32)
(return
(call_indirect $FUNCSIG$i
(get_local $0)
)
)
)
- (func $call_indirect_arg (param $0 i32) (param $1 i32)
+ (func $call_indirect_arg (; 16 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(get_local $0)
)
(return)
)
- (func $call_indirect_arg_2 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $call_indirect_arg_2 (; 17 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(call_indirect $FUNCSIG$iii
(get_local $1)
@@ -103,24 +103,24 @@
)
(return)
)
- (func $tail_call_void_nullary
+ (func $tail_call_void_nullary (; 18 ;)
(call $void_nullary)
(return)
)
- (func $fastcc_tail_call_void_nullary
+ (func $fastcc_tail_call_void_nullary (; 19 ;)
(call $void_nullary)
(return)
)
- (func $coldcc_tail_call_void_nullary
+ (func $coldcc_tail_call_void_nullary (; 20 ;)
(call $void_nullary)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 21 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 22 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -139,7 +139,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 23 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/cfg-stackify.wast b/test/llvm_autogenerated/cfg-stackify.wast
index a1f8370c0..14885f4a5 100644
--- a/test/llvm_autogenerated/cfg-stackify.wast
+++ b/test/llvm_autogenerated/cfg-stackify.wast
@@ -37,7 +37,7 @@
(export "test13" (func $test13))
(export "test14" (func $test14))
(export "test15" (func $test15))
- (func $test0 (param $0 i32)
+ (func $test0 (; 5 ;) (param $0 i32)
(local $1 i32)
(set_local $1
(i32.const 1)
@@ -62,7 +62,7 @@
(br $label$0)
)
)
- (func $test1 (param $0 i32)
+ (func $test1 (; 6 ;) (param $0 i32)
(local $1 i32)
(set_local $1
(i32.const 1)
@@ -87,7 +87,7 @@
(br $label$0)
)
)
- (func $test2 (param $0 i32) (param $1 i32)
+ (func $test2 (; 7 ;) (param $0 i32) (param $1 i32)
(block $label$0
(br_if $label$0
(i32.lt_s
@@ -123,7 +123,7 @@
)
(return)
)
- (func $doublediamond (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $doublediamond (; 8 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $2)
(i32.const 0)
@@ -166,7 +166,7 @@
(i32.const 0)
)
)
- (func $triangle (param $0 i32) (param $1 i32) (result i32)
+ (func $triangle (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
@@ -188,7 +188,7 @@
(i32.const 0)
)
)
- (func $diamond (param $0 i32) (param $1 i32) (result i32)
+ (func $diamond (; 10 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
@@ -217,7 +217,7 @@
(i32.const 0)
)
)
- (func $single_block (param $0 i32) (result i32)
+ (func $single_block (; 11 ;) (param $0 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
@@ -226,7 +226,7 @@
(i32.const 0)
)
)
- (func $minimal_loop (param $0 i32) (result i32)
+ (func $minimal_loop (; 12 ;) (param $0 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
@@ -239,7 +239,7 @@
(br $label$0)
)
)
- (func $simple_loop (param $0 i32) (param $1 i32) (result i32)
+ (func $simple_loop (; 13 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
@@ -263,7 +263,7 @@
(i32.const 0)
)
)
- (func $doubletriangle (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $doubletriangle (; 14 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $2)
(i32.const 0)
@@ -298,7 +298,7 @@
(i32.const 0)
)
)
- (func $ifelse_earlyexits (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $ifelse_earlyexits (; 15 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $2)
(i32.const 0)
@@ -334,7 +334,7 @@
(i32.const 0)
)
)
- (func $doublediamond_in_a_loop (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $doublediamond_in_a_loop (; 16 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(loop $label$0 (result i32)
(i32.store
(get_local $2)
@@ -383,7 +383,7 @@
(br $label$0)
)
)
- (func $test3 (param $0 i32)
+ (func $test3 (; 17 ;) (param $0 i32)
(block $label$0
(br_if $label$0
(i32.const 0)
@@ -414,7 +414,7 @@
)
(return)
)
- (func $test4 (param $0 i32)
+ (func $test4 (; 18 ;) (param $0 i32)
(block $label$0
(block $label$1
(br_if $label$1
@@ -454,7 +454,7 @@
)
(return)
)
- (func $test5 (param $0 i32) (param $1 i32)
+ (func $test5 (; 19 ;) (param $0 i32) (param $1 i32)
(set_local $0
(i32.and
(get_local $0)
@@ -498,7 +498,7 @@
)
(return)
)
- (func $test6 (param $0 i32) (param $1 i32)
+ (func $test6 (; 20 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(set_local $2
(i32.and
@@ -557,7 +557,7 @@
)
(return)
)
- (func $test7 (param $0 i32) (param $1 i32)
+ (func $test7 (; 21 ;) (param $0 i32) (param $1 i32)
(i32.store
(i32.const 0)
(i32.const 0)
@@ -610,7 +610,7 @@
)
(unreachable)
)
- (func $test8 (result i32)
+ (func $test8 (; 22 ;) (result i32)
(loop $label$0 (result i32)
(br_if $label$0
(i32.const 0)
@@ -618,7 +618,7 @@
(br $label$0)
)
)
- (func $test9
+ (func $test9 (; 23 ;)
(i32.store
(i32.const 0)
(i32.const 0)
@@ -687,7 +687,7 @@
)
(return)
)
- (func $test10
+ (func $test10 (; 24 ;)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -750,7 +750,7 @@
(br $label$0)
)
)
- (func $test11
+ (func $test11 (; 25 ;)
(i32.store
(i32.const 0)
(i32.const 0)
@@ -819,7 +819,7 @@
)
(return)
)
- (func $test12 (param $0 i32)
+ (func $test12 (; 26 ;) (param $0 i32)
(local $1 i32)
(block $label$0
(loop $label$1
@@ -873,7 +873,7 @@
)
(return)
)
- (func $test13
+ (func $test13 (; 27 ;)
(local $0 i32)
(block $label$0
(block $label$1
@@ -903,7 +903,7 @@
)
(unreachable)
)
- (func $test14
+ (func $test14 (; 28 ;)
(loop $label$0
(br_if $label$0
(i32.const 0)
@@ -916,7 +916,7 @@
)
(return)
)
- (func $test15
+ (func $test15 (; 29 ;)
(local $0 i32)
(local $1 i32)
(block $label$0
@@ -963,12 +963,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 30 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 31 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -987,7 +987,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 32 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/comparisons_f32.wast b/test/llvm_autogenerated/comparisons_f32.wast
index b701268db..89d0acde4 100644
--- a/test/llvm_autogenerated/comparisons_f32.wast
+++ b/test/llvm_autogenerated/comparisons_f32.wast
@@ -19,7 +19,7 @@
(export "ule_f32" (func $ule_f32))
(export "ugt_f32" (func $ugt_f32))
(export "uge_f32" (func $uge_f32))
- (func $ord_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ord_f32 (; 0 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.and
(f32.eq
@@ -33,7 +33,7 @@
)
)
)
- (func $uno_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $uno_f32 (; 1 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.or
(f32.ne
@@ -47,7 +47,7 @@
)
)
)
- (func $oeq_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $oeq_f32 (; 2 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(f32.eq
(get_local $0)
@@ -55,7 +55,7 @@
)
)
)
- (func $une_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $une_f32 (; 3 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(f32.ne
(get_local $0)
@@ -63,7 +63,7 @@
)
)
)
- (func $olt_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $olt_f32 (; 4 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(f32.lt
(get_local $0)
@@ -71,7 +71,7 @@
)
)
)
- (func $ole_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ole_f32 (; 5 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(f32.le
(get_local $0)
@@ -79,7 +79,7 @@
)
)
)
- (func $ogt_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ogt_f32 (; 6 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(f32.gt
(get_local $0)
@@ -87,7 +87,7 @@
)
)
)
- (func $oge_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $oge_f32 (; 7 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(f32.ge
(get_local $0)
@@ -95,7 +95,7 @@
)
)
)
- (func $ueq_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ueq_f32 (; 8 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.or
(f32.eq
@@ -115,7 +115,7 @@
)
)
)
- (func $one_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $one_f32 (; 9 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.and
(f32.ne
@@ -135,7 +135,7 @@
)
)
)
- (func $ult_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ult_f32 (; 10 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.or
(f32.lt
@@ -155,7 +155,7 @@
)
)
)
- (func $ule_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ule_f32 (; 11 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.or
(f32.le
@@ -175,7 +175,7 @@
)
)
)
- (func $ugt_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $ugt_f32 (; 12 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.or
(f32.gt
@@ -195,7 +195,7 @@
)
)
)
- (func $uge_f32 (param $0 f32) (param $1 f32) (result i32)
+ (func $uge_f32 (; 13 ;) (param $0 f32) (param $1 f32) (result i32)
(return
(i32.or
(f32.ge
@@ -215,12 +215,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 14 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 15 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -239,7 +239,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 16 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/comparisons_f64.wast b/test/llvm_autogenerated/comparisons_f64.wast
index f4cf3f501..e5b5f109f 100644
--- a/test/llvm_autogenerated/comparisons_f64.wast
+++ b/test/llvm_autogenerated/comparisons_f64.wast
@@ -19,7 +19,7 @@
(export "ule_f64" (func $ule_f64))
(export "ugt_f64" (func $ugt_f64))
(export "uge_f64" (func $uge_f64))
- (func $ord_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ord_f64 (; 0 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.and
(f64.eq
@@ -33,7 +33,7 @@
)
)
)
- (func $uno_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $uno_f64 (; 1 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.or
(f64.ne
@@ -47,7 +47,7 @@
)
)
)
- (func $oeq_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $oeq_f64 (; 2 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(f64.eq
(get_local $0)
@@ -55,7 +55,7 @@
)
)
)
- (func $une_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $une_f64 (; 3 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(f64.ne
(get_local $0)
@@ -63,7 +63,7 @@
)
)
)
- (func $olt_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $olt_f64 (; 4 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(f64.lt
(get_local $0)
@@ -71,7 +71,7 @@
)
)
)
- (func $ole_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ole_f64 (; 5 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(f64.le
(get_local $0)
@@ -79,7 +79,7 @@
)
)
)
- (func $ogt_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ogt_f64 (; 6 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(f64.gt
(get_local $0)
@@ -87,7 +87,7 @@
)
)
)
- (func $oge_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $oge_f64 (; 7 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(f64.ge
(get_local $0)
@@ -95,7 +95,7 @@
)
)
)
- (func $ueq_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ueq_f64 (; 8 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.or
(f64.eq
@@ -115,7 +115,7 @@
)
)
)
- (func $one_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $one_f64 (; 9 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.and
(f64.ne
@@ -135,7 +135,7 @@
)
)
)
- (func $ult_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ult_f64 (; 10 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.or
(f64.lt
@@ -155,7 +155,7 @@
)
)
)
- (func $ule_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ule_f64 (; 11 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.or
(f64.le
@@ -175,7 +175,7 @@
)
)
)
- (func $ugt_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $ugt_f64 (; 12 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.or
(f64.gt
@@ -195,7 +195,7 @@
)
)
)
- (func $uge_f64 (param $0 f64) (param $1 f64) (result i32)
+ (func $uge_f64 (; 13 ;) (param $0 f64) (param $1 f64) (result i32)
(return
(i32.or
(f64.ge
@@ -215,12 +215,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 14 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 15 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -239,7 +239,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 16 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/comparisons_i32.wast b/test/llvm_autogenerated/comparisons_i32.wast
index d80074400..a9330f9a3 100644
--- a/test/llvm_autogenerated/comparisons_i32.wast
+++ b/test/llvm_autogenerated/comparisons_i32.wast
@@ -15,7 +15,7 @@
(export "sge_i32" (func $sge_i32))
(export "ugt_i32" (func $ugt_i32))
(export "uge_i32" (func $uge_i32))
- (func $eq_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $eq_i32 (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.eq
(get_local $0)
@@ -23,7 +23,7 @@
)
)
)
- (func $ne_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ne_i32 (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.ne
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $slt_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $slt_i32 (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.lt_s
(get_local $0)
@@ -39,7 +39,7 @@
)
)
)
- (func $sle_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $sle_i32 (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.le_s
(get_local $0)
@@ -47,7 +47,7 @@
)
)
)
- (func $ult_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ult_i32 (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.lt_u
(get_local $0)
@@ -55,7 +55,7 @@
)
)
)
- (func $ule_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ule_i32 (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.le_u
(get_local $0)
@@ -63,7 +63,7 @@
)
)
)
- (func $sgt_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $sgt_i32 (; 6 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.gt_s
(get_local $0)
@@ -71,7 +71,7 @@
)
)
)
- (func $sge_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $sge_i32 (; 7 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.ge_s
(get_local $0)
@@ -79,7 +79,7 @@
)
)
)
- (func $ugt_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ugt_i32 (; 8 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.gt_u
(get_local $0)
@@ -87,7 +87,7 @@
)
)
)
- (func $uge_i32 (param $0 i32) (param $1 i32) (result i32)
+ (func $uge_i32 (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.ge_u
(get_local $0)
@@ -95,12 +95,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 10 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -119,7 +119,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 12 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/comparisons_i64.wast b/test/llvm_autogenerated/comparisons_i64.wast
index 45e53b784..3d4e7662e 100644
--- a/test/llvm_autogenerated/comparisons_i64.wast
+++ b/test/llvm_autogenerated/comparisons_i64.wast
@@ -15,7 +15,7 @@
(export "sge_i64" (func $sge_i64))
(export "ugt_i64" (func $ugt_i64))
(export "uge_i64" (func $uge_i64))
- (func $eq_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $eq_i64 (; 0 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.eq
(get_local $0)
@@ -23,7 +23,7 @@
)
)
)
- (func $ne_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $ne_i64 (; 1 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.ne
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $slt_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $slt_i64 (; 2 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.lt_s
(get_local $0)
@@ -39,7 +39,7 @@
)
)
)
- (func $sle_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $sle_i64 (; 3 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.le_s
(get_local $0)
@@ -47,7 +47,7 @@
)
)
)
- (func $ult_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $ult_i64 (; 4 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.lt_u
(get_local $0)
@@ -55,7 +55,7 @@
)
)
)
- (func $ule_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $ule_i64 (; 5 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.le_u
(get_local $0)
@@ -63,7 +63,7 @@
)
)
)
- (func $sgt_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $sgt_i64 (; 6 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.gt_s
(get_local $0)
@@ -71,7 +71,7 @@
)
)
)
- (func $sge_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $sge_i64 (; 7 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.ge_s
(get_local $0)
@@ -79,7 +79,7 @@
)
)
)
- (func $ugt_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $ugt_i64 (; 8 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.gt_u
(get_local $0)
@@ -87,7 +87,7 @@
)
)
)
- (func $uge_i64 (param $0 i64) (param $1 i64) (result i32)
+ (func $uge_i64 (; 9 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.ge_u
(get_local $0)
@@ -95,12 +95,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 10 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -119,7 +119,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 12 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/conv.wast b/test/llvm_autogenerated/conv.wast
index a7efe3662..f280c5017 100644
--- a/test/llvm_autogenerated/conv.wast
+++ b/test/llvm_autogenerated/conv.wast
@@ -31,154 +31,154 @@
(export "bitcast_float_to_i32" (func $bitcast_float_to_i32))
(export "bitcast_i64_to_double" (func $bitcast_i64_to_double))
(export "bitcast_double_to_i64" (func $bitcast_double_to_i64))
- (func $i32_wrap_i64 (param $0 i64) (result i32)
+ (func $i32_wrap_i64 (; 0 ;) (param $0 i64) (result i32)
(return
(i32.wrap/i64
(get_local $0)
)
)
)
- (func $i64_extend_s_i32 (param $0 i32) (result i64)
+ (func $i64_extend_s_i32 (; 1 ;) (param $0 i32) (result i64)
(return
(i64.extend_s/i32
(get_local $0)
)
)
)
- (func $i64_extend_u_i32 (param $0 i32) (result i64)
+ (func $i64_extend_u_i32 (; 2 ;) (param $0 i32) (result i64)
(return
(i64.extend_u/i32
(get_local $0)
)
)
)
- (func $i32_trunc_s_f32 (param $0 f32) (result i32)
+ (func $i32_trunc_s_f32 (; 3 ;) (param $0 f32) (result i32)
(return
(i32.trunc_s/f32
(get_local $0)
)
)
)
- (func $i32_trunc_u_f32 (param $0 f32) (result i32)
+ (func $i32_trunc_u_f32 (; 4 ;) (param $0 f32) (result i32)
(return
(i32.trunc_u/f32
(get_local $0)
)
)
)
- (func $i32_trunc_s_f64 (param $0 f64) (result i32)
+ (func $i32_trunc_s_f64 (; 5 ;) (param $0 f64) (result i32)
(return
(i32.trunc_s/f64
(get_local $0)
)
)
)
- (func $i32_trunc_u_f64 (param $0 f64) (result i32)
+ (func $i32_trunc_u_f64 (; 6 ;) (param $0 f64) (result i32)
(return
(i32.trunc_u/f64
(get_local $0)
)
)
)
- (func $i64_trunc_s_f32 (param $0 f32) (result i64)
+ (func $i64_trunc_s_f32 (; 7 ;) (param $0 f32) (result i64)
(return
(i64.trunc_s/f32
(get_local $0)
)
)
)
- (func $i64_trunc_u_f32 (param $0 f32) (result i64)
+ (func $i64_trunc_u_f32 (; 8 ;) (param $0 f32) (result i64)
(return
(i64.trunc_u/f32
(get_local $0)
)
)
)
- (func $i64_trunc_s_f64 (param $0 f64) (result i64)
+ (func $i64_trunc_s_f64 (; 9 ;) (param $0 f64) (result i64)
(return
(i64.trunc_s/f64
(get_local $0)
)
)
)
- (func $i64_trunc_u_f64 (param $0 f64) (result i64)
+ (func $i64_trunc_u_f64 (; 10 ;) (param $0 f64) (result i64)
(return
(i64.trunc_u/f64
(get_local $0)
)
)
)
- (func $f32_convert_s_i32 (param $0 i32) (result f32)
+ (func $f32_convert_s_i32 (; 11 ;) (param $0 i32) (result f32)
(return
(f32.convert_s/i32
(get_local $0)
)
)
)
- (func $f32_convert_u_i32 (param $0 i32) (result f32)
+ (func $f32_convert_u_i32 (; 12 ;) (param $0 i32) (result f32)
(return
(f32.convert_u/i32
(get_local $0)
)
)
)
- (func $f64_convert_s_i32 (param $0 i32) (result f64)
+ (func $f64_convert_s_i32 (; 13 ;) (param $0 i32) (result f64)
(return
(f64.convert_s/i32
(get_local $0)
)
)
)
- (func $f64_convert_u_i32 (param $0 i32) (result f64)
+ (func $f64_convert_u_i32 (; 14 ;) (param $0 i32) (result f64)
(return
(f64.convert_u/i32
(get_local $0)
)
)
)
- (func $f32_convert_s_i64 (param $0 i64) (result f32)
+ (func $f32_convert_s_i64 (; 15 ;) (param $0 i64) (result f32)
(return
(f32.convert_s/i64
(get_local $0)
)
)
)
- (func $f32_convert_u_i64 (param $0 i64) (result f32)
+ (func $f32_convert_u_i64 (; 16 ;) (param $0 i64) (result f32)
(return
(f32.convert_u/i64
(get_local $0)
)
)
)
- (func $f64_convert_s_i64 (param $0 i64) (result f64)
+ (func $f64_convert_s_i64 (; 17 ;) (param $0 i64) (result f64)
(return
(f64.convert_s/i64
(get_local $0)
)
)
)
- (func $f64_convert_u_i64 (param $0 i64) (result f64)
+ (func $f64_convert_u_i64 (; 18 ;) (param $0 i64) (result f64)
(return
(f64.convert_u/i64
(get_local $0)
)
)
)
- (func $f64_promote_f32 (param $0 f32) (result f64)
+ (func $f64_promote_f32 (; 19 ;) (param $0 f32) (result f64)
(return
(f64.promote/f32
(get_local $0)
)
)
)
- (func $f32_demote_f64 (param $0 f64) (result f32)
+ (func $f32_demote_f64 (; 20 ;) (param $0 f64) (result f32)
(return
(f32.demote/f64
(get_local $0)
)
)
)
- (func $anyext (param $0 i32) (result i64)
+ (func $anyext (; 21 ;) (param $0 i32) (result i64)
(return
(i64.shl
(i64.extend_u/i32
@@ -188,40 +188,40 @@
)
)
)
- (func $bitcast_i32_to_float (param $0 i32) (result f32)
+ (func $bitcast_i32_to_float (; 22 ;) (param $0 i32) (result f32)
(return
(f32.reinterpret/i32
(get_local $0)
)
)
)
- (func $bitcast_float_to_i32 (param $0 f32) (result i32)
+ (func $bitcast_float_to_i32 (; 23 ;) (param $0 f32) (result i32)
(return
(i32.reinterpret/f32
(get_local $0)
)
)
)
- (func $bitcast_i64_to_double (param $0 i64) (result f64)
+ (func $bitcast_i64_to_double (; 24 ;) (param $0 i64) (result f64)
(return
(f64.reinterpret/i64
(get_local $0)
)
)
)
- (func $bitcast_double_to_i64 (param $0 f64) (result i64)
+ (func $bitcast_double_to_i64 (; 25 ;) (param $0 f64) (result i64)
(return
(i64.reinterpret/f64
(get_local $0)
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 26 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 27 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -240,7 +240,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 28 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/copysign-casts.wast b/test/llvm_autogenerated/copysign-casts.wast
index 97a40b018..6eb398e2b 100644
--- a/test/llvm_autogenerated/copysign-casts.wast
+++ b/test/llvm_autogenerated/copysign-casts.wast
@@ -9,7 +9,7 @@
(export "stackRestore" (func $stackRestore))
(export "fold_promote" (func $fold_promote))
(export "fold_demote" (func $fold_demote))
- (func $fold_promote (param $0 f64) (param $1 f32) (result f64)
+ (func $fold_promote (; 0 ;) (param $0 f64) (param $1 f32) (result f64)
(f64.copysign
(get_local $0)
(f64.promote/f32
@@ -17,7 +17,7 @@
)
)
)
- (func $fold_demote (param $0 f32) (param $1 f64) (result f32)
+ (func $fold_demote (; 1 ;) (param $0 f32) (param $1 f64) (result f32)
(f32.copysign
(get_local $0)
(f32.demote/f64
@@ -25,12 +25,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -49,7 +49,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/cpus.wast b/test/llvm_autogenerated/cpus.wast
index 6c4f01a6f..808a6e085 100644
--- a/test/llvm_autogenerated/cpus.wast
+++ b/test/llvm_autogenerated/cpus.wast
@@ -6,15 +6,15 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "f" (func $f))
- (func $f (param $0 i32) (result i32)
+ (func $f (; 0 ;) (param $0 i32) (result i32)
(get_local $0)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -33,7 +33,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/dead-vreg.wast b/test/llvm_autogenerated/dead-vreg.wast
index ec8ee6bb4..a6ea58e02 100644
--- a/test/llvm_autogenerated/dead-vreg.wast
+++ b/test/llvm_autogenerated/dead-vreg.wast
@@ -6,7 +6,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "foo" (func $foo))
- (func $foo (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $foo (; 0 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -96,12 +96,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -120,7 +120,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/divrem-constant.wast b/test/llvm_autogenerated/divrem-constant.wast
index 3716f36e0..a1012fdda 100644
--- a/test/llvm_autogenerated/divrem-constant.wast
+++ b/test/llvm_autogenerated/divrem-constant.wast
@@ -13,60 +13,60 @@
(export "test_urem_5" (func $test_urem_5))
(export "test_srem_2" (func $test_srem_2))
(export "test_srem_5" (func $test_srem_5))
- (func $test_udiv_2 (param $0 i32) (result i32)
+ (func $test_udiv_2 (; 0 ;) (param $0 i32) (result i32)
(i32.shr_u
(get_local $0)
(i32.const 1)
)
)
- (func $test_udiv_5 (param $0 i32) (result i32)
+ (func $test_udiv_5 (; 1 ;) (param $0 i32) (result i32)
(i32.div_u
(get_local $0)
(i32.const 5)
)
)
- (func $test_sdiv_2 (param $0 i32) (result i32)
+ (func $test_sdiv_2 (; 2 ;) (param $0 i32) (result i32)
(i32.div_s
(get_local $0)
(i32.const 2)
)
)
- (func $test_sdiv_5 (param $0 i32) (result i32)
+ (func $test_sdiv_5 (; 3 ;) (param $0 i32) (result i32)
(i32.div_s
(get_local $0)
(i32.const 5)
)
)
- (func $test_urem_2 (param $0 i32) (result i32)
+ (func $test_urem_2 (; 4 ;) (param $0 i32) (result i32)
(i32.and
(get_local $0)
(i32.const 1)
)
)
- (func $test_urem_5 (param $0 i32) (result i32)
+ (func $test_urem_5 (; 5 ;) (param $0 i32) (result i32)
(i32.rem_u
(get_local $0)
(i32.const 5)
)
)
- (func $test_srem_2 (param $0 i32) (result i32)
+ (func $test_srem_2 (; 6 ;) (param $0 i32) (result i32)
(i32.rem_s
(get_local $0)
(i32.const 2)
)
)
- (func $test_srem_5 (param $0 i32) (result i32)
+ (func $test_srem_5 (; 7 ;) (param $0 i32) (result i32)
(i32.rem_s
(get_local $0)
(i32.const 5)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 8 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 9 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -85,7 +85,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 10 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/f32.wast b/test/llvm_autogenerated/f32.wast
index 7711251ed..e01196c49 100644
--- a/test/llvm_autogenerated/f32.wast
+++ b/test/llvm_autogenerated/f32.wast
@@ -23,7 +23,7 @@
(export "fmin32" (func $fmin32))
(export "fmax32" (func $fmax32))
(export "fma32" (func $fma32))
- (func $fadd32 (param $0 f32) (param $1 f32) (result f32)
+ (func $fadd32 (; 1 ;) (param $0 f32) (param $1 f32) (result f32)
(return
(f32.add
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $fsub32 (param $0 f32) (param $1 f32) (result f32)
+ (func $fsub32 (; 2 ;) (param $0 f32) (param $1 f32) (result f32)
(return
(f32.sub
(get_local $0)
@@ -39,7 +39,7 @@
)
)
)
- (func $fmul32 (param $0 f32) (param $1 f32) (result f32)
+ (func $fmul32 (; 3 ;) (param $0 f32) (param $1 f32) (result f32)
(return
(f32.mul
(get_local $0)
@@ -47,7 +47,7 @@
)
)
)
- (func $fdiv32 (param $0 f32) (param $1 f32) (result f32)
+ (func $fdiv32 (; 4 ;) (param $0 f32) (param $1 f32) (result f32)
(return
(f32.div
(get_local $0)
@@ -55,21 +55,21 @@
)
)
)
- (func $fabs32 (param $0 f32) (result f32)
+ (func $fabs32 (; 5 ;) (param $0 f32) (result f32)
(return
(f32.abs
(get_local $0)
)
)
)
- (func $fneg32 (param $0 f32) (result f32)
+ (func $fneg32 (; 6 ;) (param $0 f32) (result f32)
(return
(f32.neg
(get_local $0)
)
)
)
- (func $copysign32 (param $0 f32) (param $1 f32) (result f32)
+ (func $copysign32 (; 7 ;) (param $0 f32) (param $1 f32) (result f32)
(return
(f32.copysign
(get_local $0)
@@ -77,49 +77,49 @@
)
)
)
- (func $sqrt32 (param $0 f32) (result f32)
+ (func $sqrt32 (; 8 ;) (param $0 f32) (result f32)
(return
(f32.sqrt
(get_local $0)
)
)
)
- (func $ceil32 (param $0 f32) (result f32)
+ (func $ceil32 (; 9 ;) (param $0 f32) (result f32)
(return
(f32.ceil
(get_local $0)
)
)
)
- (func $floor32 (param $0 f32) (result f32)
+ (func $floor32 (; 10 ;) (param $0 f32) (result f32)
(return
(f32.floor
(get_local $0)
)
)
)
- (func $trunc32 (param $0 f32) (result f32)
+ (func $trunc32 (; 11 ;) (param $0 f32) (result f32)
(return
(f32.trunc
(get_local $0)
)
)
)
- (func $nearest32 (param $0 f32) (result f32)
+ (func $nearest32 (; 12 ;) (param $0 f32) (result f32)
(return
(f32.nearest
(get_local $0)
)
)
)
- (func $nearest32_via_rint (param $0 f32) (result f32)
+ (func $nearest32_via_rint (; 13 ;) (param $0 f32) (result f32)
(return
(f32.nearest
(get_local $0)
)
)
)
- (func $fmin32 (param $0 f32) (result f32)
+ (func $fmin32 (; 14 ;) (param $0 f32) (result f32)
(return
(f32.min
(get_local $0)
@@ -127,7 +127,7 @@
)
)
)
- (func $fmax32 (param $0 f32) (result f32)
+ (func $fmax32 (; 15 ;) (param $0 f32) (result f32)
(return
(f32.max
(get_local $0)
@@ -135,7 +135,7 @@
)
)
)
- (func $fma32 (param $0 f32) (param $1 f32) (param $2 f32) (result f32)
+ (func $fma32 (; 16 ;) (param $0 f32) (param $1 f32) (param $2 f32) (result f32)
(return
(call $fmaf
(get_local $0)
@@ -144,12 +144,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 17 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -168,7 +168,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 19 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/f64.wast b/test/llvm_autogenerated/f64.wast
index f497c4d63..00c5054da 100644
--- a/test/llvm_autogenerated/f64.wast
+++ b/test/llvm_autogenerated/f64.wast
@@ -23,7 +23,7 @@
(export "fmin64" (func $fmin64))
(export "fmax64" (func $fmax64))
(export "fma64" (func $fma64))
- (func $fadd64 (param $0 f64) (param $1 f64) (result f64)
+ (func $fadd64 (; 1 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(f64.add
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $fsub64 (param $0 f64) (param $1 f64) (result f64)
+ (func $fsub64 (; 2 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(f64.sub
(get_local $0)
@@ -39,7 +39,7 @@
)
)
)
- (func $fmul64 (param $0 f64) (param $1 f64) (result f64)
+ (func $fmul64 (; 3 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(f64.mul
(get_local $0)
@@ -47,7 +47,7 @@
)
)
)
- (func $fdiv64 (param $0 f64) (param $1 f64) (result f64)
+ (func $fdiv64 (; 4 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(f64.div
(get_local $0)
@@ -55,21 +55,21 @@
)
)
)
- (func $fabs64 (param $0 f64) (result f64)
+ (func $fabs64 (; 5 ;) (param $0 f64) (result f64)
(return
(f64.abs
(get_local $0)
)
)
)
- (func $fneg64 (param $0 f64) (result f64)
+ (func $fneg64 (; 6 ;) (param $0 f64) (result f64)
(return
(f64.neg
(get_local $0)
)
)
)
- (func $copysign64 (param $0 f64) (param $1 f64) (result f64)
+ (func $copysign64 (; 7 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(f64.copysign
(get_local $0)
@@ -77,49 +77,49 @@
)
)
)
- (func $sqrt64 (param $0 f64) (result f64)
+ (func $sqrt64 (; 8 ;) (param $0 f64) (result f64)
(return
(f64.sqrt
(get_local $0)
)
)
)
- (func $ceil64 (param $0 f64) (result f64)
+ (func $ceil64 (; 9 ;) (param $0 f64) (result f64)
(return
(f64.ceil
(get_local $0)
)
)
)
- (func $floor64 (param $0 f64) (result f64)
+ (func $floor64 (; 10 ;) (param $0 f64) (result f64)
(return
(f64.floor
(get_local $0)
)
)
)
- (func $trunc64 (param $0 f64) (result f64)
+ (func $trunc64 (; 11 ;) (param $0 f64) (result f64)
(return
(f64.trunc
(get_local $0)
)
)
)
- (func $nearest64 (param $0 f64) (result f64)
+ (func $nearest64 (; 12 ;) (param $0 f64) (result f64)
(return
(f64.nearest
(get_local $0)
)
)
)
- (func $nearest64_via_rint (param $0 f64) (result f64)
+ (func $nearest64_via_rint (; 13 ;) (param $0 f64) (result f64)
(return
(f64.nearest
(get_local $0)
)
)
)
- (func $fmin64 (param $0 f64) (result f64)
+ (func $fmin64 (; 14 ;) (param $0 f64) (result f64)
(return
(f64.min
(get_local $0)
@@ -127,7 +127,7 @@
)
)
)
- (func $fmax64 (param $0 f64) (result f64)
+ (func $fmax64 (; 15 ;) (param $0 f64) (result f64)
(return
(f64.max
(get_local $0)
@@ -135,7 +135,7 @@
)
)
)
- (func $fma64 (param $0 f64) (param $1 f64) (param $2 f64) (result f64)
+ (func $fma64 (; 16 ;) (param $0 f64) (param $1 f64) (param $2 f64) (result f64)
(return
(call $fma
(get_local $0)
@@ -144,12 +144,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 17 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -168,7 +168,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 19 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/fast-isel-noreg.wast b/test/llvm_autogenerated/fast-isel-noreg.wast
index 1cf3cfcb9..8f36c718a 100644
--- a/test/llvm_autogenerated/fast-isel-noreg.wast
+++ b/test/llvm_autogenerated/fast-isel-noreg.wast
@@ -8,12 +8,12 @@
(export "a" (func $a))
(export "b" (func $b))
(export "c" (func $c))
- (func $a (result i32)
+ (func $a (; 0 ;) (result i32)
(return
(i32.const 0)
)
)
- (func $b (result i32)
+ (func $b (; 1 ;) (result i32)
(block $label$0
(br_if $label$0
(i32.const 1)
@@ -24,7 +24,7 @@
(i32.const 0)
)
)
- (func $c (result i32)
+ (func $c (; 2 ;) (result i32)
(i32.store
(i32.const 0)
(i32.const 0)
@@ -33,12 +33,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -57,7 +57,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/fast-isel.wast b/test/llvm_autogenerated/fast-isel.wast
index 62ecdcdb8..a7d4b6b4c 100644
--- a/test/llvm_autogenerated/fast-isel.wast
+++ b/test/llvm_autogenerated/fast-isel.wast
@@ -11,38 +11,38 @@
(export "bitcast_f32_i32" (func $bitcast_f32_i32))
(export "bitcast_i64_f64" (func $bitcast_i64_f64))
(export "bitcast_f64_i64" (func $bitcast_f64_i64))
- (func $immediate_f32 (result f32)
+ (func $immediate_f32 (; 0 ;) (result f32)
(f32.const 2.5)
)
- (func $immediate_f64 (result f64)
+ (func $immediate_f64 (; 1 ;) (result f64)
(f64.const 2.5)
)
- (func $bitcast_i32_f32 (param $0 f32) (result i32)
+ (func $bitcast_i32_f32 (; 2 ;) (param $0 f32) (result i32)
(i32.reinterpret/f32
(get_local $0)
)
)
- (func $bitcast_f32_i32 (param $0 i32) (result f32)
+ (func $bitcast_f32_i32 (; 3 ;) (param $0 i32) (result f32)
(f32.reinterpret/i32
(get_local $0)
)
)
- (func $bitcast_i64_f64 (param $0 f64) (result i64)
+ (func $bitcast_i64_f64 (; 4 ;) (param $0 f64) (result i64)
(i64.reinterpret/f64
(get_local $0)
)
)
- (func $bitcast_f64_i64 (param $0 i64) (result f64)
+ (func $bitcast_f64_i64 (; 5 ;) (param $0 i64) (result f64)
(f64.reinterpret/i64
(get_local $0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 6 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -61,7 +61,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 8 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/frem.wast b/test/llvm_autogenerated/frem.wast
index f1ba930b8..241b3c47d 100644
--- a/test/llvm_autogenerated/frem.wast
+++ b/test/llvm_autogenerated/frem.wast
@@ -11,7 +11,7 @@
(export "stackRestore" (func $stackRestore))
(export "frem32" (func $frem32))
(export "frem64" (func $frem64))
- (func $frem32 (param $0 f32) (param $1 f32) (result f32)
+ (func $frem32 (; 2 ;) (param $0 f32) (param $1 f32) (result f32)
(return
(call $fmodf
(get_local $0)
@@ -19,7 +19,7 @@
)
)
)
- (func $frem64 (param $0 f64) (param $1 f64) (result f64)
+ (func $frem64 (; 3 ;) (param $0 f64) (param $1 f64) (result f64)
(return
(call $fmod
(get_local $0)
@@ -27,12 +27,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -51,7 +51,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/func.wast b/test/llvm_autogenerated/func.wast
index cb5f027d1..2856007f8 100644
--- a/test/llvm_autogenerated/func.wast
+++ b/test/llvm_autogenerated/func.wast
@@ -11,23 +11,23 @@
(export "f3" (func $f3))
(export "f4" (func $f4))
(export "f5" (func $f5))
- (func $f0
+ (func $f0 (; 0 ;)
(return)
)
- (func $f1 (result i32)
+ (func $f1 (; 1 ;) (result i32)
(return
(i32.const 0)
)
)
- (func $f2 (param $0 i32) (param $1 f32) (result i32)
+ (func $f2 (; 2 ;) (param $0 i32) (param $1 f32) (result i32)
(return
(i32.const 0)
)
)
- (func $f3 (param $0 i32) (param $1 f32)
+ (func $f3 (; 3 ;) (param $0 i32) (param $1 f32)
(return)
)
- (func $f4 (param $0 i32) (result i32)
+ (func $f4 (; 4 ;) (param $0 i32) (result i32)
(block $label$0
(br_if $label$0
(i32.eqz
@@ -45,15 +45,15 @@
(i32.const 1)
)
)
- (func $f5 (result f32)
+ (func $f5 (; 5 ;) (result f32)
(unreachable)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 6 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -72,7 +72,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 8 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/global.wast b/test/llvm_autogenerated/global.wast
index e38d6e328..50692de42 100644
--- a/test/llvm_autogenerated/global.wast
+++ b/test/llvm_autogenerated/global.wast
@@ -21,14 +21,14 @@
(export "stackRestore" (func $stackRestore))
(export "foo" (func $foo))
(export "call_memcpy" (func $call_memcpy))
- (func $foo (result i32)
+ (func $foo (; 1 ;) (result i32)
(return
(i32.load offset=32
(i32.const 0)
)
)
)
- (func $call_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $call_memcpy (; 2 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(call $memcpy
(get_local $0)
@@ -37,12 +37,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 3 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -61,7 +61,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 5 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/globl.wast b/test/llvm_autogenerated/globl.wast
index 578ad4a15..5fdc9d94f 100644
--- a/test/llvm_autogenerated/globl.wast
+++ b/test/llvm_autogenerated/globl.wast
@@ -6,14 +6,14 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "foo" (func $foo))
- (func $foo
+ (func $foo (; 0 ;)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -32,7 +32,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/i128.wast b/test/llvm_autogenerated/i128.wast
index 261c1b4fb..e9e337602 100644
--- a/test/llvm_autogenerated/i128.wast
+++ b/test/llvm_autogenerated/i128.wast
@@ -38,7 +38,7 @@
(export "masked_rotl" (func $masked_rotl))
(export "rotr" (func $rotr))
(export "masked_rotr" (func $masked_rotr))
- (func $add128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $add128 (; 8 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i64)
(i64.store
(get_local $0)
@@ -76,7 +76,7 @@
)
(return)
)
- (func $sub128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $sub128 (; 9 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(i64.store
(get_local $0)
(i64.sub
@@ -104,7 +104,7 @@
)
(return)
)
- (func $mul128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $mul128 (; 10 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -151,7 +151,7 @@
)
(return)
)
- (func $sdiv128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $sdiv128 (; 11 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -198,7 +198,7 @@
)
(return)
)
- (func $udiv128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $udiv128 (; 12 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -245,7 +245,7 @@
)
(return)
)
- (func $srem128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $srem128 (; 13 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -292,7 +292,7 @@
)
(return)
)
- (func $urem128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $urem128 (; 14 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -339,7 +339,7 @@
)
(return)
)
- (func $and128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $and128 (; 15 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(i64.store
(i32.add
(get_local $0)
@@ -359,7 +359,7 @@
)
(return)
)
- (func $or128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $or128 (; 16 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(i64.store
(i32.add
(get_local $0)
@@ -379,7 +379,7 @@
)
(return)
)
- (func $xor128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $xor128 (; 17 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(i64.store
(i32.add
(get_local $0)
@@ -399,7 +399,7 @@
)
(return)
)
- (func $shl128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $shl128 (; 18 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -447,7 +447,7 @@
)
(return)
)
- (func $shr128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $shr128 (; 19 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -495,7 +495,7 @@
)
(return)
)
- (func $sar128 (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $sar128 (; 20 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -543,7 +543,7 @@
)
(return)
)
- (func $clz128 (param $0 i32) (param $1 i64) (param $2 i64)
+ (func $clz128 (; 21 ;) (param $0 i32) (param $1 i64) (param $2 i64)
(i64.store
(i32.add
(get_local $0)
@@ -571,7 +571,7 @@
)
(return)
)
- (func $clz128_zero_undef (param $0 i32) (param $1 i64) (param $2 i64)
+ (func $clz128_zero_undef (; 22 ;) (param $0 i32) (param $1 i64) (param $2 i64)
(i64.store
(i32.add
(get_local $0)
@@ -599,7 +599,7 @@
)
(return)
)
- (func $ctz128 (param $0 i32) (param $1 i64) (param $2 i64)
+ (func $ctz128 (; 23 ;) (param $0 i32) (param $1 i64) (param $2 i64)
(i64.store
(i32.add
(get_local $0)
@@ -627,7 +627,7 @@
)
(return)
)
- (func $ctz128_zero_undef (param $0 i32) (param $1 i64) (param $2 i64)
+ (func $ctz128_zero_undef (; 24 ;) (param $0 i32) (param $1 i64) (param $2 i64)
(i64.store
(i32.add
(get_local $0)
@@ -655,7 +655,7 @@
)
(return)
)
- (func $popcnt128 (param $0 i32) (param $1 i64) (param $2 i64)
+ (func $popcnt128 (; 25 ;) (param $0 i32) (param $1 i64) (param $2 i64)
(i64.store
(i32.add
(get_local $0)
@@ -676,7 +676,7 @@
)
(return)
)
- (func $eqz128 (param $0 i64) (param $1 i64) (result i32)
+ (func $eqz128 (; 26 ;) (param $0 i64) (param $1 i64) (result i32)
(return
(i64.eqz
(i64.or
@@ -686,7 +686,7 @@
)
)
)
- (func $rotl (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $rotl (; 27 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -764,7 +764,7 @@
)
(return)
)
- (func $masked_rotl (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $masked_rotl (; 28 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -847,7 +847,7 @@
)
(return)
)
- (func $rotr (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $rotr (; 29 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -925,7 +925,7 @@
)
(return)
)
- (func $masked_rotr (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
+ (func $masked_rotr (; 30 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64)
(local $5 i32)
(i32.store offset=4
(i32.const 0)
@@ -1008,12 +1008,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 31 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -1032,7 +1032,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 33 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/i32-load-store-alignment.wast b/test/llvm_autogenerated/i32-load-store-alignment.wast
index a0fd3cbb4..748cf43a3 100644
--- a/test/llvm_autogenerated/i32-load-store-alignment.wast
+++ b/test/llvm_autogenerated/i32-load-store-alignment.wast
@@ -25,152 +25,152 @@
(export "sti16_a1" (func $sti16_a1))
(export "sti16_a2" (func $sti16_a2))
(export "sti16_a4" (func $sti16_a4))
- (func $ldi32_a1 (param $0 i32) (result i32)
+ (func $ldi32_a1 (; 0 ;) (param $0 i32) (result i32)
(return
(i32.load align=1
(get_local $0)
)
)
)
- (func $ldi32_a2 (param $0 i32) (result i32)
+ (func $ldi32_a2 (; 1 ;) (param $0 i32) (result i32)
(return
(i32.load align=2
(get_local $0)
)
)
)
- (func $ldi32_a4 (param $0 i32) (result i32)
+ (func $ldi32_a4 (; 2 ;) (param $0 i32) (result i32)
(return
(i32.load
(get_local $0)
)
)
)
- (func $ldi32 (param $0 i32) (result i32)
+ (func $ldi32 (; 3 ;) (param $0 i32) (result i32)
(return
(i32.load
(get_local $0)
)
)
)
- (func $ldi32_a8 (param $0 i32) (result i32)
+ (func $ldi32_a8 (; 4 ;) (param $0 i32) (result i32)
(return
(i32.load
(get_local $0)
)
)
)
- (func $ldi8_a1 (param $0 i32) (result i32)
+ (func $ldi8_a1 (; 5 ;) (param $0 i32) (result i32)
(return
(i32.load8_u
(get_local $0)
)
)
)
- (func $ldi8_a2 (param $0 i32) (result i32)
+ (func $ldi8_a2 (; 6 ;) (param $0 i32) (result i32)
(return
(i32.load8_u
(get_local $0)
)
)
)
- (func $ldi16_a1 (param $0 i32) (result i32)
+ (func $ldi16_a1 (; 7 ;) (param $0 i32) (result i32)
(return
(i32.load16_u align=1
(get_local $0)
)
)
)
- (func $ldi16_a2 (param $0 i32) (result i32)
+ (func $ldi16_a2 (; 8 ;) (param $0 i32) (result i32)
(return
(i32.load16_u
(get_local $0)
)
)
)
- (func $ldi16_a4 (param $0 i32) (result i32)
+ (func $ldi16_a4 (; 9 ;) (param $0 i32) (result i32)
(return
(i32.load16_u
(get_local $0)
)
)
)
- (func $sti32_a1 (param $0 i32) (param $1 i32)
+ (func $sti32_a1 (; 10 ;) (param $0 i32) (param $1 i32)
(i32.store align=1
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a2 (param $0 i32) (param $1 i32)
+ (func $sti32_a2 (; 11 ;) (param $0 i32) (param $1 i32)
(i32.store align=2
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a4 (param $0 i32) (param $1 i32)
+ (func $sti32_a4 (; 12 ;) (param $0 i32) (param $1 i32)
(i32.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32 (param $0 i32) (param $1 i32)
+ (func $sti32 (; 13 ;) (param $0 i32) (param $1 i32)
(i32.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a8 (param $0 i32) (param $1 i32)
+ (func $sti32_a8 (; 14 ;) (param $0 i32) (param $1 i32)
(i32.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti8_a1 (param $0 i32) (param $1 i32)
+ (func $sti8_a1 (; 15 ;) (param $0 i32) (param $1 i32)
(i32.store8
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti8_a2 (param $0 i32) (param $1 i32)
+ (func $sti8_a2 (; 16 ;) (param $0 i32) (param $1 i32)
(i32.store8
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti16_a1 (param $0 i32) (param $1 i32)
+ (func $sti16_a1 (; 17 ;) (param $0 i32) (param $1 i32)
(i32.store16 align=1
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti16_a2 (param $0 i32) (param $1 i32)
+ (func $sti16_a2 (; 18 ;) (param $0 i32) (param $1 i32)
(i32.store16
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti16_a4 (param $0 i32) (param $1 i32)
+ (func $sti16_a4 (; 19 ;) (param $0 i32) (param $1 i32)
(i32.store16
(get_local $0)
(get_local $1)
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 20 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 21 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -189,7 +189,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 22 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/i32.wast b/test/llvm_autogenerated/i32.wast
index 26fdd807a..5041195f5 100644
--- a/test/llvm_autogenerated/i32.wast
+++ b/test/llvm_autogenerated/i32.wast
@@ -28,7 +28,7 @@
(export "masked_rotl" (func $masked_rotl))
(export "rotr" (func $rotr))
(export "masked_rotr" (func $masked_rotr))
- (func $add32 (param $0 i32) (param $1 i32) (result i32)
+ (func $add32 (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.add
(get_local $0)
@@ -36,7 +36,7 @@
)
)
)
- (func $sub32 (param $0 i32) (param $1 i32) (result i32)
+ (func $sub32 (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.sub
(get_local $0)
@@ -44,7 +44,7 @@
)
)
)
- (func $mul32 (param $0 i32) (param $1 i32) (result i32)
+ (func $mul32 (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.mul
(get_local $0)
@@ -52,7 +52,7 @@
)
)
)
- (func $sdiv32 (param $0 i32) (param $1 i32) (result i32)
+ (func $sdiv32 (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.div_s
(get_local $0)
@@ -60,7 +60,7 @@
)
)
)
- (func $udiv32 (param $0 i32) (param $1 i32) (result i32)
+ (func $udiv32 (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.div_u
(get_local $0)
@@ -68,7 +68,7 @@
)
)
)
- (func $srem32 (param $0 i32) (param $1 i32) (result i32)
+ (func $srem32 (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.rem_s
(get_local $0)
@@ -76,7 +76,7 @@
)
)
)
- (func $urem32 (param $0 i32) (param $1 i32) (result i32)
+ (func $urem32 (; 6 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.rem_u
(get_local $0)
@@ -84,7 +84,7 @@
)
)
)
- (func $and32 (param $0 i32) (param $1 i32) (result i32)
+ (func $and32 (; 7 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.and
(get_local $0)
@@ -92,7 +92,7 @@
)
)
)
- (func $or32 (param $0 i32) (param $1 i32) (result i32)
+ (func $or32 (; 8 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.or
(get_local $0)
@@ -100,7 +100,7 @@
)
)
)
- (func $xor32 (param $0 i32) (param $1 i32) (result i32)
+ (func $xor32 (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.xor
(get_local $0)
@@ -108,7 +108,7 @@
)
)
)
- (func $shl32 (param $0 i32) (param $1 i32) (result i32)
+ (func $shl32 (; 10 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.shl
(get_local $0)
@@ -116,7 +116,7 @@
)
)
)
- (func $shr32 (param $0 i32) (param $1 i32) (result i32)
+ (func $shr32 (; 11 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.shr_u
(get_local $0)
@@ -124,7 +124,7 @@
)
)
)
- (func $sar32 (param $0 i32) (param $1 i32) (result i32)
+ (func $sar32 (; 12 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.shr_s
(get_local $0)
@@ -132,49 +132,49 @@
)
)
)
- (func $clz32 (param $0 i32) (result i32)
+ (func $clz32 (; 13 ;) (param $0 i32) (result i32)
(return
(i32.clz
(get_local $0)
)
)
)
- (func $clz32_zero_undef (param $0 i32) (result i32)
+ (func $clz32_zero_undef (; 14 ;) (param $0 i32) (result i32)
(return
(i32.clz
(get_local $0)
)
)
)
- (func $ctz32 (param $0 i32) (result i32)
+ (func $ctz32 (; 15 ;) (param $0 i32) (result i32)
(return
(i32.ctz
(get_local $0)
)
)
)
- (func $ctz32_zero_undef (param $0 i32) (result i32)
+ (func $ctz32_zero_undef (; 16 ;) (param $0 i32) (result i32)
(return
(i32.ctz
(get_local $0)
)
)
)
- (func $popcnt32 (param $0 i32) (result i32)
+ (func $popcnt32 (; 17 ;) (param $0 i32) (result i32)
(return
(i32.popcnt
(get_local $0)
)
)
)
- (func $eqz32 (param $0 i32) (result i32)
+ (func $eqz32 (; 18 ;) (param $0 i32) (result i32)
(return
(i32.eqz
(get_local $0)
)
)
)
- (func $rotl (param $0 i32) (param $1 i32) (result i32)
+ (func $rotl (; 19 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.rotl
(get_local $0)
@@ -182,7 +182,7 @@
)
)
)
- (func $masked_rotl (param $0 i32) (param $1 i32) (result i32)
+ (func $masked_rotl (; 20 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.rotl
(get_local $0)
@@ -190,7 +190,7 @@
)
)
)
- (func $rotr (param $0 i32) (param $1 i32) (result i32)
+ (func $rotr (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.rotr
(get_local $0)
@@ -198,7 +198,7 @@
)
)
)
- (func $masked_rotr (param $0 i32) (param $1 i32) (result i32)
+ (func $masked_rotr (; 22 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(i32.rotr
(get_local $0)
@@ -206,12 +206,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 23 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 24 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -230,7 +230,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 25 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/i64-load-store-alignment.wast b/test/llvm_autogenerated/i64-load-store-alignment.wast
index d1939499f..1c3a431a3 100644
--- a/test/llvm_autogenerated/i64-load-store-alignment.wast
+++ b/test/llvm_autogenerated/i64-load-store-alignment.wast
@@ -35,222 +35,222 @@
(export "sti32_a2" (func $sti32_a2))
(export "sti32_a4" (func $sti32_a4))
(export "sti32_a8" (func $sti32_a8))
- (func $ldi64_a1 (param $0 i32) (result i64)
+ (func $ldi64_a1 (; 0 ;) (param $0 i32) (result i64)
(return
(i64.load align=1
(get_local $0)
)
)
)
- (func $ldi64_a2 (param $0 i32) (result i64)
+ (func $ldi64_a2 (; 1 ;) (param $0 i32) (result i64)
(return
(i64.load align=2
(get_local $0)
)
)
)
- (func $ldi64_a4 (param $0 i32) (result i64)
+ (func $ldi64_a4 (; 2 ;) (param $0 i32) (result i64)
(return
(i64.load align=4
(get_local $0)
)
)
)
- (func $ldi64_a8 (param $0 i32) (result i64)
+ (func $ldi64_a8 (; 3 ;) (param $0 i32) (result i64)
(return
(i64.load
(get_local $0)
)
)
)
- (func $ldi64 (param $0 i32) (result i64)
+ (func $ldi64 (; 4 ;) (param $0 i32) (result i64)
(return
(i64.load
(get_local $0)
)
)
)
- (func $ldi64_a16 (param $0 i32) (result i64)
+ (func $ldi64_a16 (; 5 ;) (param $0 i32) (result i64)
(return
(i64.load
(get_local $0)
)
)
)
- (func $ldi8_a1 (param $0 i32) (result i64)
+ (func $ldi8_a1 (; 6 ;) (param $0 i32) (result i64)
(return
(i64.load8_u
(get_local $0)
)
)
)
- (func $ldi8_a2 (param $0 i32) (result i64)
+ (func $ldi8_a2 (; 7 ;) (param $0 i32) (result i64)
(return
(i64.load8_u
(get_local $0)
)
)
)
- (func $ldi16_a1 (param $0 i32) (result i64)
+ (func $ldi16_a1 (; 8 ;) (param $0 i32) (result i64)
(return
(i64.load16_u align=1
(get_local $0)
)
)
)
- (func $ldi16_a2 (param $0 i32) (result i64)
+ (func $ldi16_a2 (; 9 ;) (param $0 i32) (result i64)
(return
(i64.load16_u
(get_local $0)
)
)
)
- (func $ldi16_a4 (param $0 i32) (result i64)
+ (func $ldi16_a4 (; 10 ;) (param $0 i32) (result i64)
(return
(i64.load16_u
(get_local $0)
)
)
)
- (func $ldi32_a1 (param $0 i32) (result i64)
+ (func $ldi32_a1 (; 11 ;) (param $0 i32) (result i64)
(return
(i64.load32_u align=1
(get_local $0)
)
)
)
- (func $ldi32_a2 (param $0 i32) (result i64)
+ (func $ldi32_a2 (; 12 ;) (param $0 i32) (result i64)
(return
(i64.load32_u align=2
(get_local $0)
)
)
)
- (func $ldi32_a4 (param $0 i32) (result i64)
+ (func $ldi32_a4 (; 13 ;) (param $0 i32) (result i64)
(return
(i64.load32_u
(get_local $0)
)
)
)
- (func $ldi32_a8 (param $0 i32) (result i64)
+ (func $ldi32_a8 (; 14 ;) (param $0 i32) (result i64)
(return
(i64.load32_u
(get_local $0)
)
)
)
- (func $sti64_a1 (param $0 i32) (param $1 i64)
+ (func $sti64_a1 (; 15 ;) (param $0 i32) (param $1 i64)
(i64.store align=1
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti64_a2 (param $0 i32) (param $1 i64)
+ (func $sti64_a2 (; 16 ;) (param $0 i32) (param $1 i64)
(i64.store align=2
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti64_a4 (param $0 i32) (param $1 i64)
+ (func $sti64_a4 (; 17 ;) (param $0 i32) (param $1 i64)
(i64.store align=4
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti64_a8 (param $0 i32) (param $1 i64)
+ (func $sti64_a8 (; 18 ;) (param $0 i32) (param $1 i64)
(i64.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti64 (param $0 i32) (param $1 i64)
+ (func $sti64 (; 19 ;) (param $0 i32) (param $1 i64)
(i64.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti64_a16 (param $0 i32) (param $1 i64)
+ (func $sti64_a16 (; 20 ;) (param $0 i32) (param $1 i64)
(i64.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti8_a1 (param $0 i32) (param $1 i64)
+ (func $sti8_a1 (; 21 ;) (param $0 i32) (param $1 i64)
(i64.store8
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti8_a2 (param $0 i32) (param $1 i64)
+ (func $sti8_a2 (; 22 ;) (param $0 i32) (param $1 i64)
(i64.store8
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti16_a1 (param $0 i32) (param $1 i64)
+ (func $sti16_a1 (; 23 ;) (param $0 i32) (param $1 i64)
(i64.store16 align=1
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti16_a2 (param $0 i32) (param $1 i64)
+ (func $sti16_a2 (; 24 ;) (param $0 i32) (param $1 i64)
(i64.store16
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti16_a4 (param $0 i32) (param $1 i64)
+ (func $sti16_a4 (; 25 ;) (param $0 i32) (param $1 i64)
(i64.store16
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a1 (param $0 i32) (param $1 i64)
+ (func $sti32_a1 (; 26 ;) (param $0 i32) (param $1 i64)
(i64.store32 align=1
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a2 (param $0 i32) (param $1 i64)
+ (func $sti32_a2 (; 27 ;) (param $0 i32) (param $1 i64)
(i64.store32 align=2
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a4 (param $0 i32) (param $1 i64)
+ (func $sti32_a4 (; 28 ;) (param $0 i32) (param $1 i64)
(i64.store32
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti32_a8 (param $0 i32) (param $1 i64)
+ (func $sti32_a8 (; 29 ;) (param $0 i32) (param $1 i64)
(i64.store32
(get_local $0)
(get_local $1)
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 30 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 31 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -269,7 +269,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 32 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/i64.wast b/test/llvm_autogenerated/i64.wast
index ae1513272..7447964c6 100644
--- a/test/llvm_autogenerated/i64.wast
+++ b/test/llvm_autogenerated/i64.wast
@@ -28,7 +28,7 @@
(export "masked_rotl" (func $masked_rotl))
(export "rotr" (func $rotr))
(export "masked_rotr" (func $masked_rotr))
- (func $add64 (param $0 i64) (param $1 i64) (result i64)
+ (func $add64 (; 0 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.add
(get_local $0)
@@ -36,7 +36,7 @@
)
)
)
- (func $sub64 (param $0 i64) (param $1 i64) (result i64)
+ (func $sub64 (; 1 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.sub
(get_local $0)
@@ -44,7 +44,7 @@
)
)
)
- (func $mul64 (param $0 i64) (param $1 i64) (result i64)
+ (func $mul64 (; 2 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.mul
(get_local $0)
@@ -52,7 +52,7 @@
)
)
)
- (func $sdiv64 (param $0 i64) (param $1 i64) (result i64)
+ (func $sdiv64 (; 3 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.div_s
(get_local $0)
@@ -60,7 +60,7 @@
)
)
)
- (func $udiv64 (param $0 i64) (param $1 i64) (result i64)
+ (func $udiv64 (; 4 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.div_u
(get_local $0)
@@ -68,7 +68,7 @@
)
)
)
- (func $srem64 (param $0 i64) (param $1 i64) (result i64)
+ (func $srem64 (; 5 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.rem_s
(get_local $0)
@@ -76,7 +76,7 @@
)
)
)
- (func $urem64 (param $0 i64) (param $1 i64) (result i64)
+ (func $urem64 (; 6 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.rem_u
(get_local $0)
@@ -84,7 +84,7 @@
)
)
)
- (func $and64 (param $0 i64) (param $1 i64) (result i64)
+ (func $and64 (; 7 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.and
(get_local $0)
@@ -92,7 +92,7 @@
)
)
)
- (func $or64 (param $0 i64) (param $1 i64) (result i64)
+ (func $or64 (; 8 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.or
(get_local $0)
@@ -100,7 +100,7 @@
)
)
)
- (func $xor64 (param $0 i64) (param $1 i64) (result i64)
+ (func $xor64 (; 9 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.xor
(get_local $0)
@@ -108,7 +108,7 @@
)
)
)
- (func $shl64 (param $0 i64) (param $1 i64) (result i64)
+ (func $shl64 (; 10 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.shl
(get_local $0)
@@ -116,7 +116,7 @@
)
)
)
- (func $shr64 (param $0 i64) (param $1 i64) (result i64)
+ (func $shr64 (; 11 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.shr_u
(get_local $0)
@@ -124,7 +124,7 @@
)
)
)
- (func $sar64 (param $0 i64) (param $1 i64) (result i64)
+ (func $sar64 (; 12 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.shr_s
(get_local $0)
@@ -132,49 +132,49 @@
)
)
)
- (func $clz64 (param $0 i64) (result i64)
+ (func $clz64 (; 13 ;) (param $0 i64) (result i64)
(return
(i64.clz
(get_local $0)
)
)
)
- (func $clz64_zero_undef (param $0 i64) (result i64)
+ (func $clz64_zero_undef (; 14 ;) (param $0 i64) (result i64)
(return
(i64.clz
(get_local $0)
)
)
)
- (func $ctz64 (param $0 i64) (result i64)
+ (func $ctz64 (; 15 ;) (param $0 i64) (result i64)
(return
(i64.ctz
(get_local $0)
)
)
)
- (func $ctz64_zero_undef (param $0 i64) (result i64)
+ (func $ctz64_zero_undef (; 16 ;) (param $0 i64) (result i64)
(return
(i64.ctz
(get_local $0)
)
)
)
- (func $popcnt64 (param $0 i64) (result i64)
+ (func $popcnt64 (; 17 ;) (param $0 i64) (result i64)
(return
(i64.popcnt
(get_local $0)
)
)
)
- (func $eqz64 (param $0 i64) (result i32)
+ (func $eqz64 (; 18 ;) (param $0 i64) (result i32)
(return
(i64.eqz
(get_local $0)
)
)
)
- (func $rotl (param $0 i64) (param $1 i64) (result i64)
+ (func $rotl (; 19 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.rotl
(get_local $0)
@@ -182,7 +182,7 @@
)
)
)
- (func $masked_rotl (param $0 i64) (param $1 i64) (result i64)
+ (func $masked_rotl (; 20 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.rotl
(get_local $0)
@@ -190,7 +190,7 @@
)
)
)
- (func $rotr (param $0 i64) (param $1 i64) (result i64)
+ (func $rotr (; 21 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.rotr
(get_local $0)
@@ -198,7 +198,7 @@
)
)
)
- (func $masked_rotr (param $0 i64) (param $1 i64) (result i64)
+ (func $masked_rotr (; 22 ;) (param $0 i64) (param $1 i64) (result i64)
(return
(i64.rotr
(get_local $0)
@@ -206,12 +206,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 23 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 24 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -230,7 +230,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 25 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/ident.wast b/test/llvm_autogenerated/ident.wast
index 92956c042..e6ed0e88b 100644
--- a/test/llvm_autogenerated/ident.wast
+++ b/test/llvm_autogenerated/ident.wast
@@ -5,12 +5,12 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $stackSave (result i32)
+ (func $stackSave (; 0 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -29,7 +29,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 2 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/immediates.wast b/test/llvm_autogenerated/immediates.wast
index 3b11eacad..5d1d8abde 100644
--- a/test/llvm_autogenerated/immediates.wast
+++ b/test/llvm_autogenerated/immediates.wast
@@ -33,152 +33,152 @@
(export "neginf_f64" (func $neginf_f64))
(export "custom_nan_f64" (func $custom_nan_f64))
(export "custom_nans_f64" (func $custom_nans_f64))
- (func $zero_i32 (result i32)
+ (func $zero_i32 (; 0 ;) (result i32)
(return
(i32.const 0)
)
)
- (func $one_i32 (result i32)
+ (func $one_i32 (; 1 ;) (result i32)
(return
(i32.const 1)
)
)
- (func $max_i32 (result i32)
+ (func $max_i32 (; 2 ;) (result i32)
(return
(i32.const 2147483647)
)
)
- (func $min_i32 (result i32)
+ (func $min_i32 (; 3 ;) (result i32)
(return
(i32.const -2147483648)
)
)
- (func $zero_i64 (result i64)
+ (func $zero_i64 (; 4 ;) (result i64)
(return
(i64.const 0)
)
)
- (func $one_i64 (result i64)
+ (func $one_i64 (; 5 ;) (result i64)
(return
(i64.const 1)
)
)
- (func $max_i64 (result i64)
+ (func $max_i64 (; 6 ;) (result i64)
(return
(i64.const 9223372036854775807)
)
)
- (func $min_i64 (result i64)
+ (func $min_i64 (; 7 ;) (result i64)
(return
(i64.const -9223372036854775808)
)
)
- (func $negzero_f32 (result f32)
+ (func $negzero_f32 (; 8 ;) (result f32)
(return
(f32.const -0)
)
)
- (func $zero_f32 (result f32)
+ (func $zero_f32 (; 9 ;) (result f32)
(return
(f32.const 0)
)
)
- (func $one_f32 (result f32)
+ (func $one_f32 (; 10 ;) (result f32)
(return
(f32.const 1)
)
)
- (func $two_f32 (result f32)
+ (func $two_f32 (; 11 ;) (result f32)
(return
(f32.const 2)
)
)
- (func $nan_f32 (result f32)
+ (func $nan_f32 (; 12 ;) (result f32)
(return
(f32.const nan:0x400000)
)
)
- (func $negnan_f32 (result f32)
+ (func $negnan_f32 (; 13 ;) (result f32)
(return
(f32.const -nan:0x400000)
)
)
- (func $inf_f32 (result f32)
+ (func $inf_f32 (; 14 ;) (result f32)
(return
(f32.const inf)
)
)
- (func $neginf_f32 (result f32)
+ (func $neginf_f32 (; 15 ;) (result f32)
(return
(f32.const -inf)
)
)
- (func $custom_nan_f32 (result f32)
+ (func $custom_nan_f32 (; 16 ;) (result f32)
(return
(f32.const -nan:0x6bcdef)
)
)
- (func $custom_nans_f32 (result f32)
+ (func $custom_nans_f32 (; 17 ;) (result f32)
(return
(f32.const -nan:0x6bcdef)
)
)
- (func $negzero_f64 (result f64)
+ (func $negzero_f64 (; 18 ;) (result f64)
(return
(f64.const -0)
)
)
- (func $zero_f64 (result f64)
+ (func $zero_f64 (; 19 ;) (result f64)
(return
(f64.const 0)
)
)
- (func $one_f64 (result f64)
+ (func $one_f64 (; 20 ;) (result f64)
(return
(f64.const 1)
)
)
- (func $two_f64 (result f64)
+ (func $two_f64 (; 21 ;) (result f64)
(return
(f64.const 2)
)
)
- (func $nan_f64 (result f64)
+ (func $nan_f64 (; 22 ;) (result f64)
(return
(f64.const nan:0x8000000000000)
)
)
- (func $negnan_f64 (result f64)
+ (func $negnan_f64 (; 23 ;) (result f64)
(return
(f64.const -nan:0x8000000000000)
)
)
- (func $inf_f64 (result f64)
+ (func $inf_f64 (; 24 ;) (result f64)
(return
(f64.const inf)
)
)
- (func $neginf_f64 (result f64)
+ (func $neginf_f64 (; 25 ;) (result f64)
(return
(f64.const -inf)
)
)
- (func $custom_nan_f64 (result f64)
+ (func $custom_nan_f64 (; 26 ;) (result f64)
(return
(f64.const -nan:0xabcdef0123456)
)
)
- (func $custom_nans_f64 (result f64)
+ (func $custom_nans_f64 (; 27 ;) (result f64)
(return
(f64.const -nan:0x2bcdef0123456)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 28 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 29 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -197,7 +197,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 30 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/indirect-import.wast b/test/llvm_autogenerated/indirect-import.wast
index a8e83afad..c9e6e3d88 100644
--- a/test/llvm_autogenerated/indirect-import.wast
+++ b/test/llvm_autogenerated/indirect-import.wast
@@ -22,7 +22,7 @@
(export "dynCall_fd" (func $dynCall_fd))
(export "dynCall_v" (func $dynCall_v))
(export "dynCall_vi" (func $dynCall_vi))
- (func $bar (result i32)
+ (func $bar (; 6 ;) (result i32)
(local $0 i32)
(local $1 i32)
(i32.store offset=4
@@ -88,12 +88,12 @@
(get_local $0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 7 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 8 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -112,29 +112,29 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 9 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 10 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $__importThunk_extern_fd (type $FUNCSIG$fd) (param $0 f64) (result f32)
+ (func $__importThunk_extern_fd (; 11 ;) (type $FUNCSIG$fd) (param $0 f64) (result f32)
(call $extern_fd
(get_local $0)
)
)
- (func $__importThunk_extern_vj (type $FUNCSIG$vj) (param $0 i64)
+ (func $__importThunk_extern_vj (; 12 ;) (type $FUNCSIG$vj) (param $0 i64)
(call $extern_vj
(get_local $0)
)
)
- (func $__importThunk_extern_v (type $FUNCSIG$v)
+ (func $__importThunk_extern_v (; 13 ;) (type $FUNCSIG$v)
(call $extern_v)
)
- (func $__importThunk_extern_ijidf (type $FUNCSIG$ijidf) (param $0 i64) (param $1 i32) (param $2 f64) (param $3 f32) (result i32)
+ (func $__importThunk_extern_ijidf (; 14 ;) (type $FUNCSIG$ijidf) (param $0 i64) (param $1 i32) (param $2 f64) (param $3 f32) (result i32)
(call $extern_ijidf
(get_local $0)
(get_local $1)
@@ -142,28 +142,28 @@
(get_local $3)
)
)
- (func $__importThunk_extern_struct (type $FUNCSIG$vi) (param $0 i32)
+ (func $__importThunk_extern_struct (; 15 ;) (type $FUNCSIG$vi) (param $0 i32)
(call $extern_struct
(get_local $0)
)
)
- (func $__importThunk_extern_sret (type $FUNCSIG$vi) (param $0 i32)
+ (func $__importThunk_extern_sret (; 16 ;) (type $FUNCSIG$vi) (param $0 i32)
(call $extern_sret
(get_local $0)
)
)
- (func $dynCall_fd (param $fptr i32) (param $0 f64) (result f32)
+ (func $dynCall_fd (; 17 ;) (param $fptr i32) (param $0 f64) (result f32)
(call_indirect $FUNCSIG$fd
(get_local $0)
(get_local $fptr)
)
)
- (func $dynCall_v (param $fptr i32)
+ (func $dynCall_v (; 18 ;) (param $fptr i32)
(call_indirect $FUNCSIG$v
(get_local $fptr)
)
)
- (func $dynCall_vi (param $fptr i32) (param $0 i32)
+ (func $dynCall_vi (; 19 ;) (param $fptr i32) (param $0 i32)
(call_indirect $FUNCSIG$vi
(get_local $0)
(get_local $fptr)
diff --git a/test/llvm_autogenerated/irreducible-cfg.wast b/test/llvm_autogenerated/irreducible-cfg.wast
index cfaf98f9b..e05ffaa33 100644
--- a/test/llvm_autogenerated/irreducible-cfg.wast
+++ b/test/llvm_autogenerated/irreducible-cfg.wast
@@ -7,7 +7,7 @@
(export "stackRestore" (func $stackRestore))
(export "test0" (func $test0))
(export "test1" (func $test1))
- (func $test0 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
+ (func $test0 (; 0 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(local $4 f64)
(local $5 i32)
(block $label$0
@@ -118,7 +118,7 @@
(br $label$2)
)
)
- (func $test1 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
+ (func $test1 (; 1 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(local $4 f64)
(local $5 i32)
(block $label$0
@@ -255,12 +255,12 @@
(br $label$2)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -279,7 +279,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/legalize.wast b/test/llvm_autogenerated/legalize.wast
index 93c15f8ca..baef6f3b0 100644
--- a/test/llvm_autogenerated/legalize.wast
+++ b/test/llvm_autogenerated/legalize.wast
@@ -14,7 +14,7 @@
(export "fpext_f32_f64" (func $fpext_f32_f64))
(export "fpconv_f64_f32" (func $fpconv_f64_f32))
(export "bigshift" (func $bigshift))
- (func $shl_i3 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $shl_i3 (; 2 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(i32.shl
(get_local $0)
@@ -25,7 +25,7 @@
)
)
)
- (func $shl_i53 (param $0 i64) (param $1 i64) (param $2 i32) (result i64)
+ (func $shl_i53 (; 3 ;) (param $0 i64) (param $1 i64) (param $2 i32) (result i64)
(return
(i64.shl
(get_local $0)
@@ -36,7 +36,7 @@
)
)
)
- (func $sext_in_reg_i32_i64 (param $0 i64) (result i64)
+ (func $sext_in_reg_i32_i64 (; 4 ;) (param $0 i64) (result i64)
(return
(i64.shr_s
(i64.shl
@@ -47,7 +47,7 @@
)
)
)
- (func $fpext_f32_f64 (param $0 i32) (result f64)
+ (func $fpext_f32_f64 (; 5 ;) (param $0 i32) (result f64)
(return
(f64.promote/f32
(f32.load
@@ -56,7 +56,7 @@
)
)
)
- (func $fpconv_f64_f32 (param $0 i32) (result f32)
+ (func $fpconv_f64_f32 (; 6 ;) (param $0 i32) (result f32)
(return
(f32.demote/f64
(f64.load
@@ -65,7 +65,7 @@
)
)
)
- (func $bigshift (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (param $15 i64) (param $16 i64) (param $17 i64) (param $18 i64) (param $19 i64) (param $20 i64) (param $21 i64) (param $22 i64) (param $23 i64) (param $24 i64) (param $25 i64) (param $26 i64) (param $27 i64) (param $28 i64) (param $29 i64) (param $30 i64) (param $31 i64) (param $32 i64)
+ (func $bigshift (; 7 ;) (param $0 i32) (param $1 i64) (param $2 i64) (param $3 i64) (param $4 i64) (param $5 i64) (param $6 i64) (param $7 i64) (param $8 i64) (param $9 i64) (param $10 i64) (param $11 i64) (param $12 i64) (param $13 i64) (param $14 i64) (param $15 i64) (param $16 i64) (param $17 i64) (param $18 i64) (param $19 i64) (param $20 i64) (param $21 i64) (param $22 i64) (param $23 i64) (param $24 i64) (param $25 i64) (param $26 i64) (param $27 i64) (param $28 i64) (param $29 i64) (param $30 i64) (param $31 i64) (param $32 i64)
(local $33 i32)
(local $34 i32)
(local $35 i32)
@@ -2419,12 +2419,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 8 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 9 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -2443,7 +2443,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 10 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/load-ext.wast b/test/llvm_autogenerated/load-ext.wast
index fcb112fac..326af4280 100644
--- a/test/llvm_autogenerated/load-ext.wast
+++ b/test/llvm_autogenerated/load-ext.wast
@@ -15,82 +15,82 @@
(export "zext_i16_i64" (func $zext_i16_i64))
(export "sext_i32_i64" (func $sext_i32_i64))
(export "zext_i32_i64" (func $zext_i32_i64))
- (func $sext_i8_i32 (param $0 i32) (result i32)
+ (func $sext_i8_i32 (; 0 ;) (param $0 i32) (result i32)
(return
(i32.load8_s
(get_local $0)
)
)
)
- (func $zext_i8_i32 (param $0 i32) (result i32)
+ (func $zext_i8_i32 (; 1 ;) (param $0 i32) (result i32)
(return
(i32.load8_u
(get_local $0)
)
)
)
- (func $sext_i16_i32 (param $0 i32) (result i32)
+ (func $sext_i16_i32 (; 2 ;) (param $0 i32) (result i32)
(return
(i32.load16_s
(get_local $0)
)
)
)
- (func $zext_i16_i32 (param $0 i32) (result i32)
+ (func $zext_i16_i32 (; 3 ;) (param $0 i32) (result i32)
(return
(i32.load16_u
(get_local $0)
)
)
)
- (func $sext_i8_i64 (param $0 i32) (result i64)
+ (func $sext_i8_i64 (; 4 ;) (param $0 i32) (result i64)
(return
(i64.load8_s
(get_local $0)
)
)
)
- (func $zext_i8_i64 (param $0 i32) (result i64)
+ (func $zext_i8_i64 (; 5 ;) (param $0 i32) (result i64)
(return
(i64.load8_u
(get_local $0)
)
)
)
- (func $sext_i16_i64 (param $0 i32) (result i64)
+ (func $sext_i16_i64 (; 6 ;) (param $0 i32) (result i64)
(return
(i64.load16_s
(get_local $0)
)
)
)
- (func $zext_i16_i64 (param $0 i32) (result i64)
+ (func $zext_i16_i64 (; 7 ;) (param $0 i32) (result i64)
(return
(i64.load16_u
(get_local $0)
)
)
)
- (func $sext_i32_i64 (param $0 i32) (result i64)
+ (func $sext_i32_i64 (; 8 ;) (param $0 i32) (result i64)
(return
(i64.load32_s
(get_local $0)
)
)
)
- (func $zext_i32_i64 (param $0 i32) (result i64)
+ (func $zext_i32_i64 (; 9 ;) (param $0 i32) (result i64)
(return
(i64.load32_u
(get_local $0)
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 10 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -109,7 +109,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 12 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/load-store-i1.wast b/test/llvm_autogenerated/load-store-i1.wast
index 18b27cad1..0cdd16c43 100644
--- a/test/llvm_autogenerated/load-store-i1.wast
+++ b/test/llvm_autogenerated/load-store-i1.wast
@@ -11,14 +11,14 @@
(export "load_s_i1_i64" (func $load_s_i1_i64))
(export "store_i32_i1" (func $store_i32_i1))
(export "store_i64_i1" (func $store_i64_i1))
- (func $load_u_i1_i32 (param $0 i32) (result i32)
+ (func $load_u_i1_i32 (; 0 ;) (param $0 i32) (result i32)
(return
(i32.load8_u
(get_local $0)
)
)
)
- (func $load_s_i1_i32 (param $0 i32) (result i32)
+ (func $load_s_i1_i32 (; 1 ;) (param $0 i32) (result i32)
(return
(i32.sub
(i32.const 0)
@@ -31,14 +31,14 @@
)
)
)
- (func $load_u_i1_i64 (param $0 i32) (result i64)
+ (func $load_u_i1_i64 (; 2 ;) (param $0 i32) (result i64)
(return
(i64.load8_u
(get_local $0)
)
)
)
- (func $load_s_i1_i64 (param $0 i32) (result i64)
+ (func $load_s_i1_i64 (; 3 ;) (param $0 i32) (result i64)
(return
(i64.sub
(i64.const 0)
@@ -51,7 +51,7 @@
)
)
)
- (func $store_i32_i1 (param $0 i32) (param $1 i32)
+ (func $store_i32_i1 (; 4 ;) (param $0 i32) (param $1 i32)
(i32.store8
(get_local $0)
(i32.and
@@ -61,7 +61,7 @@
)
(return)
)
- (func $store_i64_i1 (param $0 i32) (param $1 i64)
+ (func $store_i64_i1 (; 5 ;) (param $0 i32) (param $1 i64)
(i64.store8
(get_local $0)
(i64.and
@@ -71,12 +71,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 6 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 7 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -95,7 +95,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 8 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/load.wast b/test/llvm_autogenerated/load.wast
index d2f7c6e13..8dadeae3c 100644
--- a/test/llvm_autogenerated/load.wast
+++ b/test/llvm_autogenerated/load.wast
@@ -9,40 +9,40 @@
(export "ldi64" (func $ldi64))
(export "ldf32" (func $ldf32))
(export "ldf64" (func $ldf64))
- (func $ldi32 (param $0 i32) (result i32)
+ (func $ldi32 (; 0 ;) (param $0 i32) (result i32)
(return
(i32.load
(get_local $0)
)
)
)
- (func $ldi64 (param $0 i32) (result i64)
+ (func $ldi64 (; 1 ;) (param $0 i32) (result i64)
(return
(i64.load
(get_local $0)
)
)
)
- (func $ldf32 (param $0 i32) (result f32)
+ (func $ldf32 (; 2 ;) (param $0 i32) (result f32)
(return
(f32.load
(get_local $0)
)
)
)
- (func $ldf64 (param $0 i32) (result f64)
+ (func $ldf64 (; 3 ;) (param $0 i32) (result f64)
(return
(f64.load
(get_local $0)
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -61,7 +61,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/lower-em-ehsjlj-options.wast b/test/llvm_autogenerated/lower-em-ehsjlj-options.wast
index 74d6eac14..848cb78cc 100644
--- a/test/llvm_autogenerated/lower-em-ehsjlj-options.wast
+++ b/test/llvm_autogenerated/lower-em-ehsjlj-options.wast
@@ -26,7 +26,7 @@
(export "setThrew" (func $setThrew))
(export "setTempRet0" (func $setTempRet0))
(export "dynCall_v" (func $dynCall_v))
- (func $exception
+ (func $exception (; 7 ;)
(local $0 i32)
(i32.store offset=12
(i32.const 0)
@@ -61,7 +61,7 @@
(call $__cxa_end_catch)
)
)
- (func $setjmp_longjmp
+ (func $setjmp_longjmp (; 8 ;)
(local $0 i32)
(i32.store offset=4
(i32.const 0)
@@ -85,7 +85,7 @@
)
(unreachable)
)
- (func $setThrew (param $0 i32) (param $1 i32)
+ (func $setThrew (; 9 ;) (param $0 i32) (param $1 i32)
(block $label$0
(br_if $label$0
(i32.load offset=12
@@ -102,18 +102,18 @@
)
)
)
- (func $setTempRet0 (param $0 i32)
+ (func $setTempRet0 (; 10 ;) (param $0 i32)
(i32.store offset=20
(i32.const 0)
(get_local $0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 11 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 12 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -132,19 +132,19 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 13 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
- (func $__wasm_nullptr (type $FUNCSIG$v)
+ (func $__wasm_nullptr (; 14 ;) (type $FUNCSIG$v)
(unreachable)
)
- (func $__importThunk_foo (type $FUNCSIG$v)
+ (func $__importThunk_foo (; 15 ;) (type $FUNCSIG$v)
(call $foo)
)
- (func $dynCall_v (param $fptr i32)
+ (func $dynCall_v (; 16 ;) (param $fptr i32)
(call_indirect $FUNCSIG$v
(get_local $fptr)
)
diff --git a/test/llvm_autogenerated/mem-intrinsics.wast b/test/llvm_autogenerated/mem-intrinsics.wast
index cda6519e4..9bd187713 100644
--- a/test/llvm_autogenerated/mem-intrinsics.wast
+++ b/test/llvm_autogenerated/mem-intrinsics.wast
@@ -22,7 +22,7 @@
(export "frame_index" (func $frame_index))
(export "drop_result" (func $drop_result))
(export "tail_dup_to_reuse_result" (func $tail_dup_to_reuse_result))
- (func $copy_yes (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $copy_yes (; 5 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(call $memcpy
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $copy_no (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $copy_no (; 6 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(call $memcpy
(get_local $0)
@@ -41,7 +41,7 @@
)
(return)
)
- (func $move_yes (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $move_yes (; 7 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(call $memmove
(get_local $0)
@@ -50,7 +50,7 @@
)
)
)
- (func $move_no (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $move_no (; 8 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(call $memmove
(get_local $0)
@@ -60,7 +60,7 @@
)
(return)
)
- (func $set_yes (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $set_yes (; 9 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(call $memset
(get_local $0)
@@ -69,7 +69,7 @@
)
)
)
- (func $set_no (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $set_no (; 10 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(call $memset
(get_local $0)
@@ -79,7 +79,7 @@
)
(return)
)
- (func $frame_index
+ (func $frame_index (; 11 ;)
(local $0 i32)
(i32.store offset=4
(i32.const 0)
@@ -115,7 +115,7 @@
)
(return)
)
- (func $drop_result (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $drop_result (; 12 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(block $label$0
(block $label$1
(block $label$2
@@ -152,7 +152,7 @@
(get_local $0)
)
)
- (func $tail_dup_to_reuse_result (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $tail_dup_to_reuse_result (; 13 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(block $label$0
(block $label$1
(block $label$2
@@ -184,12 +184,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 14 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 15 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -208,7 +208,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 16 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/memory-addr32.wast b/test/llvm_autogenerated/memory-addr32.wast
index e1261d011..b5559c2bf 100644
--- a/test/llvm_autogenerated/memory-addr32.wast
+++ b/test/llvm_autogenerated/memory-addr32.wast
@@ -7,12 +7,12 @@
(export "stackRestore" (func $stackRestore))
(export "current_memory" (func $current_memory))
(export "grow_memory" (func $grow_memory))
- (func $current_memory (result i32)
+ (func $current_memory (; 0 ;) (result i32)
(return
(current_memory)
)
)
- (func $grow_memory (param $0 i32)
+ (func $grow_memory (; 1 ;) (param $0 i32)
(drop
(grow_memory
(get_local $0)
@@ -20,12 +20,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -44,7 +44,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/negative-base-reg.wast b/test/llvm_autogenerated/negative-base-reg.wast
index dfd34c7f4..cc6c2b855 100644
--- a/test/llvm_autogenerated/negative-base-reg.wast
+++ b/test/llvm_autogenerated/negative-base-reg.wast
@@ -6,7 +6,7 @@
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
- (func $main (result i32)
+ (func $main (; 0 ;) (result i32)
(local $0 i32)
(set_local $0
(i32.const -128)
@@ -32,12 +32,12 @@
(i32.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -56,7 +56,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/non-executable-stack.wast b/test/llvm_autogenerated/non-executable-stack.wast
index 92956c042..e6ed0e88b 100644
--- a/test/llvm_autogenerated/non-executable-stack.wast
+++ b/test/llvm_autogenerated/non-executable-stack.wast
@@ -5,12 +5,12 @@
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
- (func $stackSave (result i32)
+ (func $stackSave (; 0 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -29,7 +29,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 2 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/offset.wast b/test/llvm_autogenerated/offset.wast
index cfed9dddf..53180f8e8 100644
--- a/test/llvm_autogenerated/offset.wast
+++ b/test/llvm_autogenerated/offset.wast
@@ -41,17 +41,17 @@
(export "aggregate_load_store" (func $aggregate_load_store))
(export "aggregate_return" (func $aggregate_return))
(export "aggregate_return_without_merge" (func $aggregate_return_without_merge))
- (func $load_i32_with_folded_offset (param $0 i32) (result i32)
+ (func $load_i32_with_folded_offset (; 0 ;) (param $0 i32) (result i32)
(i32.load offset=24
(get_local $0)
)
)
- (func $load_i32_with_folded_gep_offset (param $0 i32) (result i32)
+ (func $load_i32_with_folded_gep_offset (; 1 ;) (param $0 i32) (result i32)
(i32.load offset=24
(get_local $0)
)
)
- (func $load_i32_with_unfolded_gep_negative_offset (param $0 i32) (result i32)
+ (func $load_i32_with_unfolded_gep_negative_offset (; 2 ;) (param $0 i32) (result i32)
(i32.load
(i32.add
(get_local $0)
@@ -59,7 +59,7 @@
)
)
)
- (func $load_i32_with_unfolded_offset (param $0 i32) (result i32)
+ (func $load_i32_with_unfolded_offset (; 3 ;) (param $0 i32) (result i32)
(i32.load
(i32.add
(get_local $0)
@@ -67,7 +67,7 @@
)
)
)
- (func $load_i32_with_unfolded_gep_offset (param $0 i32) (result i32)
+ (func $load_i32_with_unfolded_gep_offset (; 4 ;) (param $0 i32) (result i32)
(i32.load
(i32.add
(get_local $0)
@@ -75,17 +75,17 @@
)
)
)
- (func $load_i64_with_folded_offset (param $0 i32) (result i64)
+ (func $load_i64_with_folded_offset (; 5 ;) (param $0 i32) (result i64)
(i64.load offset=24
(get_local $0)
)
)
- (func $load_i64_with_folded_gep_offset (param $0 i32) (result i64)
+ (func $load_i64_with_folded_gep_offset (; 6 ;) (param $0 i32) (result i64)
(i64.load offset=24
(get_local $0)
)
)
- (func $load_i64_with_unfolded_gep_negative_offset (param $0 i32) (result i64)
+ (func $load_i64_with_unfolded_gep_negative_offset (; 7 ;) (param $0 i32) (result i64)
(i64.load
(i32.add
(get_local $0)
@@ -93,7 +93,7 @@
)
)
)
- (func $load_i64_with_unfolded_offset (param $0 i32) (result i64)
+ (func $load_i64_with_unfolded_offset (; 8 ;) (param $0 i32) (result i64)
(i64.load
(i32.add
(get_local $0)
@@ -101,7 +101,7 @@
)
)
)
- (func $load_i64_with_unfolded_gep_offset (param $0 i32) (result i64)
+ (func $load_i64_with_unfolded_gep_offset (; 9 ;) (param $0 i32) (result i64)
(i64.load
(i32.add
(get_local $0)
@@ -109,7 +109,7 @@
)
)
)
- (func $load_i32_with_folded_or_offset (param $0 i32) (result i32)
+ (func $load_i32_with_folded_or_offset (; 10 ;) (param $0 i32) (result i32)
(i32.load8_s offset=2
(i32.and
(get_local $0)
@@ -117,19 +117,19 @@
)
)
)
- (func $store_i32_with_folded_offset (param $0 i32)
+ (func $store_i32_with_folded_offset (; 11 ;) (param $0 i32)
(i32.store offset=24
(get_local $0)
(i32.const 0)
)
)
- (func $store_i32_with_folded_gep_offset (param $0 i32)
+ (func $store_i32_with_folded_gep_offset (; 12 ;) (param $0 i32)
(i32.store offset=24
(get_local $0)
(i32.const 0)
)
)
- (func $store_i32_with_unfolded_gep_negative_offset (param $0 i32)
+ (func $store_i32_with_unfolded_gep_negative_offset (; 13 ;) (param $0 i32)
(i32.store
(i32.add
(get_local $0)
@@ -138,7 +138,7 @@
(i32.const 0)
)
)
- (func $store_i32_with_unfolded_offset (param $0 i32)
+ (func $store_i32_with_unfolded_offset (; 14 ;) (param $0 i32)
(i32.store
(i32.add
(get_local $0)
@@ -147,7 +147,7 @@
(i32.const 0)
)
)
- (func $store_i32_with_unfolded_gep_offset (param $0 i32)
+ (func $store_i32_with_unfolded_gep_offset (; 15 ;) (param $0 i32)
(i32.store
(i32.add
(get_local $0)
@@ -156,19 +156,19 @@
(i32.const 0)
)
)
- (func $store_i64_with_folded_offset (param $0 i32)
+ (func $store_i64_with_folded_offset (; 16 ;) (param $0 i32)
(i64.store offset=24
(get_local $0)
(i64.const 0)
)
)
- (func $store_i64_with_folded_gep_offset (param $0 i32)
+ (func $store_i64_with_folded_gep_offset (; 17 ;) (param $0 i32)
(i64.store offset=24
(get_local $0)
(i64.const 0)
)
)
- (func $store_i64_with_unfolded_gep_negative_offset (param $0 i32)
+ (func $store_i64_with_unfolded_gep_negative_offset (; 18 ;) (param $0 i32)
(i64.store
(i32.add
(get_local $0)
@@ -177,7 +177,7 @@
(i64.const 0)
)
)
- (func $store_i64_with_unfolded_offset (param $0 i32)
+ (func $store_i64_with_unfolded_offset (; 19 ;) (param $0 i32)
(i64.store
(i32.add
(get_local $0)
@@ -186,7 +186,7 @@
(i64.const 0)
)
)
- (func $store_i64_with_unfolded_gep_offset (param $0 i32)
+ (func $store_i64_with_unfolded_gep_offset (; 20 ;) (param $0 i32)
(i64.store
(i32.add
(get_local $0)
@@ -195,7 +195,7 @@
(i64.const 0)
)
)
- (func $store_i32_with_folded_or_offset (param $0 i32)
+ (func $store_i32_with_folded_or_offset (; 21 ;) (param $0 i32)
(i32.store8 offset=2
(i32.and
(get_local $0)
@@ -204,61 +204,61 @@
(i32.const 0)
)
)
- (func $load_i32_from_numeric_address (result i32)
+ (func $load_i32_from_numeric_address (; 22 ;) (result i32)
(i32.load offset=42
(i32.const 0)
)
)
- (func $load_i32_from_global_address (result i32)
+ (func $load_i32_from_global_address (; 23 ;) (result i32)
(i32.load offset=12
(i32.const 0)
)
)
- (func $store_i32_to_numeric_address
+ (func $store_i32_to_numeric_address (; 24 ;)
(i32.store offset=42
(i32.const 0)
(i32.const 0)
)
)
- (func $store_i32_to_global_address
+ (func $store_i32_to_global_address (; 25 ;)
(i32.store offset=12
(i32.const 0)
(i32.const 0)
)
)
- (func $load_i8_s_with_folded_offset (param $0 i32) (result i32)
+ (func $load_i8_s_with_folded_offset (; 26 ;) (param $0 i32) (result i32)
(i32.load8_s offset=24
(get_local $0)
)
)
- (func $load_i8_s_with_folded_gep_offset (param $0 i32) (result i32)
+ (func $load_i8_s_with_folded_gep_offset (; 27 ;) (param $0 i32) (result i32)
(i32.load8_s offset=24
(get_local $0)
)
)
- (func $load_i8_u_with_folded_offset (param $0 i32) (result i32)
+ (func $load_i8_u_with_folded_offset (; 28 ;) (param $0 i32) (result i32)
(i32.load8_u offset=24
(get_local $0)
)
)
- (func $load_i8_u_with_folded_gep_offset (param $0 i32) (result i32)
+ (func $load_i8_u_with_folded_gep_offset (; 29 ;) (param $0 i32) (result i32)
(i32.load8_u offset=24
(get_local $0)
)
)
- (func $store_i8_with_folded_offset (param $0 i32)
+ (func $store_i8_with_folded_offset (; 30 ;) (param $0 i32)
(i32.store8 offset=24
(get_local $0)
(i32.const 0)
)
)
- (func $store_i8_with_folded_gep_offset (param $0 i32)
+ (func $store_i8_with_folded_gep_offset (; 31 ;) (param $0 i32)
(i32.store8 offset=24
(get_local $0)
(i32.const 0)
)
)
- (func $aggregate_load_store (param $0 i32) (param $1 i32)
+ (func $aggregate_load_store (; 32 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -296,7 +296,7 @@
(get_local $2)
)
)
- (func $aggregate_return (param $0 i32)
+ (func $aggregate_return (; 33 ;) (param $0 i32)
(i64.store offset=8 align=4
(get_local $0)
(i64.const 0)
@@ -306,7 +306,7 @@
(i64.const 0)
)
)
- (func $aggregate_return_without_merge (param $0 i32)
+ (func $aggregate_return_without_merge (; 34 ;) (param $0 i32)
(i32.store8 offset=14
(get_local $0)
(i32.const 0)
@@ -324,12 +324,12 @@
(i64.const 0)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 35 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 36 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -348,7 +348,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 37 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/phi.wast b/test/llvm_autogenerated/phi.wast
index 68cd84472..2cd3645b4 100644
--- a/test/llvm_autogenerated/phi.wast
+++ b/test/llvm_autogenerated/phi.wast
@@ -7,7 +7,7 @@
(export "stackRestore" (func $stackRestore))
(export "test0" (func $test0))
(export "test1" (func $test1))
- (func $test0 (param $0 i32) (result i32)
+ (func $test0 (; 0 ;) (param $0 i32) (result i32)
(block $label$0
(br_if $label$0
(i32.gt_s
@@ -26,7 +26,7 @@
(get_local $0)
)
)
- (func $test1 (param $0 i32) (result i32)
+ (func $test1 (; 1 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -66,12 +66,12 @@
(get_local $1)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -90,7 +90,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/reg-stackify.wast b/test/llvm_autogenerated/reg-stackify.wast
index 72fc24373..e3c92b672 100644
--- a/test/llvm_autogenerated/reg-stackify.wast
+++ b/test/llvm_autogenerated/reg-stackify.wast
@@ -49,7 +49,7 @@
(export "stackify_indvar" (func $stackify_indvar))
(export "stackpointer_dependency" (func $stackpointer_dependency))
(export "call_indirect_stackify" (func $call_indirect_stackify))
- (func $no0 (param $0 i32) (param $1 i32) (result i32)
+ (func $no0 (; 12 ;) (param $0 i32) (param $1 i32) (result i32)
(set_local $1
(i32.load
(get_local $1)
@@ -63,7 +63,7 @@
(get_local $1)
)
)
- (func $no1 (param $0 i32) (param $1 i32) (result i32)
+ (func $no1 (; 13 ;) (param $0 i32) (param $1 i32) (result i32)
(set_local $1
(i32.load
(get_local $1)
@@ -77,7 +77,7 @@
(get_local $1)
)
)
- (func $yes0 (param $0 i32) (param $1 i32) (result i32)
+ (func $yes0 (; 14 ;) (param $0 i32) (param $1 i32) (result i32)
(i32.store
(get_local $0)
(i32.const 0)
@@ -88,14 +88,14 @@
)
)
)
- (func $yes1 (param $0 i32) (result i32)
+ (func $yes1 (; 15 ;) (param $0 i32) (result i32)
(return
(i32.load
(get_local $0)
)
)
)
- (func $sink_trap (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $sink_trap (; 16 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $2)
(i32.const 0)
@@ -107,7 +107,7 @@
)
)
)
- (func $sink_readnone_call (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $sink_readnone_call (; 17 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $2)
(i32.const 0)
@@ -116,7 +116,7 @@
(call $readnone_callee)
)
)
- (func $no_sink_readonly_call (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $no_sink_readonly_call (; 18 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(set_local $3
(call $readonly_callee)
@@ -129,7 +129,7 @@
(get_local $3)
)
)
- (func $stack_uses (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $stack_uses (; 19 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(block $label$0
(br_if $label$0
(i32.ne
@@ -166,7 +166,7 @@
(i32.const 1)
)
)
- (func $multiple_uses (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $multiple_uses (; 20 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(block $label$0
(br_if $label$0
@@ -192,7 +192,7 @@
)
(return)
)
- (func $stackify_store_across_side_effects (param $0 i32)
+ (func $stackify_store_across_side_effects (; 21 ;) (param $0 i32)
(i64.store
(get_local $0)
(i64.const 4611686018427387904)
@@ -205,7 +205,7 @@
(call $evoke_side_effects)
(return)
)
- (func $div_tree (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (result i32)
+ (func $div_tree (; 22 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32) (param $7 i32) (param $8 i32) (param $9 i32) (param $10 i32) (param $11 i32) (param $12 i32) (param $13 i32) (param $14 i32) (param $15 i32) (result i32)
(return
(i32.div_s
(i32.div_s
@@ -255,7 +255,7 @@
)
)
)
- (func $simple_multiple_use (param $0 i32) (param $1 i32)
+ (func $simple_multiple_use (; 23 ;) (param $0 i32) (param $1 i32)
(call $use_a
(tee_local $1
(i32.mul
@@ -269,7 +269,7 @@
)
(return)
)
- (func $multiple_uses_in_same_insn (param $0 i32) (param $1 i32)
+ (func $multiple_uses_in_same_insn (; 24 ;) (param $0 i32) (param $1 i32)
(call $use_2
(tee_local $1
(i32.mul
@@ -281,7 +281,7 @@
)
(return)
)
- (func $commute (result i32)
+ (func $commute (; 25 ;) (result i32)
(return
(i32.add
(i32.add
@@ -292,7 +292,7 @@
)
)
)
- (func $no_stackify_past_use (param $0 i32) (result i32)
+ (func $no_stackify_past_use (; 26 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(call $callee
@@ -314,7 +314,7 @@
)
)
)
- (func $commute_to_fix_ordering (param $0 i32) (result i32)
+ (func $commute_to_fix_ordering (; 27 ;) (param $0 i32) (result i32)
(local $1 i32)
(return
(i32.mul
@@ -335,7 +335,7 @@
)
)
)
- (func $multiple_defs (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
+ (func $multiple_defs (; 28 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
(local $5 f64)
(local $6 f64)
(local $7 f64)
@@ -438,7 +438,7 @@
(br $label$0)
)
)
- (func $no_stackify_call_past_load (result i32)
+ (func $no_stackify_call_past_load (; 29 ;) (result i32)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -458,7 +458,7 @@
(get_local $1)
)
)
- (func $no_stackify_store_past_load (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $no_stackify_store_past_load (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $1)
(get_local $0)
@@ -477,7 +477,7 @@
(get_local $2)
)
)
- (func $store_past_invar_load (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $store_past_invar_load (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(i32.store
(get_local $1)
(get_local $0)
@@ -493,10 +493,10 @@
)
)
)
- (func $ignore_dbg_value
+ (func $ignore_dbg_value (; 32 ;)
(unreachable)
)
- (func $no_stackify_past_epilogue (result i32)
+ (func $no_stackify_past_epilogue (; 33 ;) (result i32)
(local $0 i32)
(local $1 i32)
(i32.store offset=4
@@ -529,7 +529,7 @@
(get_local $0)
)
)
- (func $stackify_indvar (param $0 i32) (param $1 i32)
+ (func $stackify_indvar (; 34 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(set_local $2
(i32.const 0)
@@ -558,7 +558,7 @@
)
(return)
)
- (func $stackpointer_dependency (param $0 i32) (result i32)
+ (func $stackpointer_dependency (; 35 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $0
(call $stackpointer_callee
@@ -578,7 +578,7 @@
(get_local $0)
)
)
- (func $call_indirect_stackify (param $0 i32) (param $1 i32) (result i32)
+ (func $call_indirect_stackify (; 36 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(call_indirect $FUNCSIG$iii
(tee_local $0
@@ -595,12 +595,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 37 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 38 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -619,7 +619,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 39 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/return-int32.wast b/test/llvm_autogenerated/return-int32.wast
index fd4e60ca8..bb5ae4919 100644
--- a/test/llvm_autogenerated/return-int32.wast
+++ b/test/llvm_autogenerated/return-int32.wast
@@ -7,10 +7,10 @@
(export "stackRestore" (func $stackRestore))
(export "return_i32" (func $return_i32))
(export "return_i32_twice" (func $return_i32_twice))
- (func $return_i32 (param $0 i32) (result i32)
+ (func $return_i32 (; 0 ;) (param $0 i32) (result i32)
(get_local $0)
)
- (func $return_i32_twice (param $0 i32) (result i32)
+ (func $return_i32_twice (; 1 ;) (param $0 i32) (result i32)
(block $label$0
(br_if $label$0
(i32.eqz
@@ -31,12 +31,12 @@
)
(i32.const 3)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -55,7 +55,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/return-void.wast b/test/llvm_autogenerated/return-void.wast
index 4e079ac41..2c62acc79 100644
--- a/test/llvm_autogenerated/return-void.wast
+++ b/test/llvm_autogenerated/return-void.wast
@@ -7,9 +7,9 @@
(export "stackRestore" (func $stackRestore))
(export "return_void" (func $return_void))
(export "return_void_twice" (func $return_void_twice))
- (func $return_void
+ (func $return_void (; 0 ;)
)
- (func $return_void_twice (param $0 i32)
+ (func $return_void_twice (; 1 ;) (param $0 i32)
(block $label$0
(br_if $label$0
(i32.eqz
@@ -27,12 +27,12 @@
(i32.const 1)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 2 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -51,7 +51,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 4 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/select.wast b/test/llvm_autogenerated/select.wast
index 244c33b90..6d116c9d2 100644
--- a/test/llvm_autogenerated/select.wast
+++ b/test/llvm_autogenerated/select.wast
@@ -17,7 +17,7 @@
(export "select_f64_bool" (func $select_f64_bool))
(export "select_f64_eq" (func $select_f64_eq))
(export "select_f64_ne" (func $select_f64_ne))
- (func $select_i32_bool (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $select_i32_bool (; 0 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(select
(get_local $1)
@@ -26,7 +26,7 @@
)
)
)
- (func $select_i32_eq (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $select_i32_eq (; 1 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(select
(get_local $2)
@@ -35,7 +35,7 @@
)
)
)
- (func $select_i32_ne (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $select_i32_ne (; 2 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(return
(select
(get_local $1)
@@ -44,7 +44,7 @@
)
)
)
- (func $select_i64_bool (param $0 i32) (param $1 i64) (param $2 i64) (result i64)
+ (func $select_i64_bool (; 3 ;) (param $0 i32) (param $1 i64) (param $2 i64) (result i64)
(return
(select
(get_local $1)
@@ -53,7 +53,7 @@
)
)
)
- (func $select_i64_eq (param $0 i32) (param $1 i64) (param $2 i64) (result i64)
+ (func $select_i64_eq (; 4 ;) (param $0 i32) (param $1 i64) (param $2 i64) (result i64)
(return
(select
(get_local $2)
@@ -62,7 +62,7 @@
)
)
)
- (func $select_i64_ne (param $0 i32) (param $1 i64) (param $2 i64) (result i64)
+ (func $select_i64_ne (; 5 ;) (param $0 i32) (param $1 i64) (param $2 i64) (result i64)
(return
(select
(get_local $1)
@@ -71,7 +71,7 @@
)
)
)
- (func $select_f32_bool (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
+ (func $select_f32_bool (; 6 ;) (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
(return
(select
(get_local $1)
@@ -80,7 +80,7 @@
)
)
)
- (func $select_f32_eq (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
+ (func $select_f32_eq (; 7 ;) (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
(return
(select
(get_local $2)
@@ -89,7 +89,7 @@
)
)
)
- (func $select_f32_ne (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
+ (func $select_f32_ne (; 8 ;) (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
(return
(select
(get_local $1)
@@ -98,7 +98,7 @@
)
)
)
- (func $select_f64_bool (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $select_f64_bool (; 9 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(return
(select
(get_local $1)
@@ -107,7 +107,7 @@
)
)
)
- (func $select_f64_eq (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $select_f64_eq (; 10 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(return
(select
(get_local $2)
@@ -116,7 +116,7 @@
)
)
)
- (func $select_f64_ne (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $select_f64_ne (; 11 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(return
(select
(get_local $1)
@@ -125,12 +125,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 12 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 13 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -149,7 +149,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 14 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/signext-zeroext.wast b/test/llvm_autogenerated/signext-zeroext.wast
index 42ac98a17..a99e7b870 100644
--- a/test/llvm_autogenerated/signext-zeroext.wast
+++ b/test/llvm_autogenerated/signext-zeroext.wast
@@ -9,7 +9,7 @@
(export "s2z_func" (func $s2z_func))
(export "z2s_call" (func $z2s_call))
(export "s2z_call" (func $s2z_call))
- (func $z2s_func (param $0 i32) (result i32)
+ (func $z2s_func (; 0 ;) (param $0 i32) (result i32)
(return
(i32.shr_s
(i32.shl
@@ -20,7 +20,7 @@
)
)
)
- (func $s2z_func (param $0 i32) (result i32)
+ (func $s2z_func (; 1 ;) (param $0 i32) (result i32)
(return
(i32.and
(get_local $0)
@@ -28,7 +28,7 @@
)
)
)
- (func $z2s_call (param $0 i32) (result i32)
+ (func $z2s_call (; 2 ;) (param $0 i32) (result i32)
(return
(call $z2s_func
(i32.and
@@ -38,7 +38,7 @@
)
)
)
- (func $s2z_call (param $0 i32) (result i32)
+ (func $s2z_call (; 3 ;) (param $0 i32) (result i32)
(return
(i32.shr_s
(i32.shl
@@ -57,12 +57,12 @@
)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -81,7 +81,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/store-trunc.wast b/test/llvm_autogenerated/store-trunc.wast
index c4c7adadf..0d5bd3149 100644
--- a/test/llvm_autogenerated/store-trunc.wast
+++ b/test/llvm_autogenerated/store-trunc.wast
@@ -10,42 +10,42 @@
(export "trunc_i8_i64" (func $trunc_i8_i64))
(export "trunc_i16_i64" (func $trunc_i16_i64))
(export "trunc_i32_i64" (func $trunc_i32_i64))
- (func $trunc_i8_i32 (param $0 i32) (param $1 i32)
+ (func $trunc_i8_i32 (; 0 ;) (param $0 i32) (param $1 i32)
(i32.store8
(get_local $0)
(get_local $1)
)
)
- (func $trunc_i16_i32 (param $0 i32) (param $1 i32)
+ (func $trunc_i16_i32 (; 1 ;) (param $0 i32) (param $1 i32)
(i32.store16
(get_local $0)
(get_local $1)
)
)
- (func $trunc_i8_i64 (param $0 i32) (param $1 i64)
+ (func $trunc_i8_i64 (; 2 ;) (param $0 i32) (param $1 i64)
(i64.store8
(get_local $0)
(get_local $1)
)
)
- (func $trunc_i16_i64 (param $0 i32) (param $1 i64)
+ (func $trunc_i16_i64 (; 3 ;) (param $0 i32) (param $1 i64)
(i64.store16
(get_local $0)
(get_local $1)
)
)
- (func $trunc_i32_i64 (param $0 i32) (param $1 i64)
+ (func $trunc_i32_i64 (; 4 ;) (param $0 i32) (param $1 i64)
(i64.store32
(get_local $0)
(get_local $1)
)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 5 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 6 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -64,7 +64,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 7 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/store.wast b/test/llvm_autogenerated/store.wast
index c65267e30..d3d64189b 100644
--- a/test/llvm_autogenerated/store.wast
+++ b/test/llvm_autogenerated/store.wast
@@ -9,40 +9,40 @@
(export "sti64" (func $sti64))
(export "stf32" (func $stf32))
(export "stf64" (func $stf64))
- (func $sti32 (param $0 i32) (param $1 i32)
+ (func $sti32 (; 0 ;) (param $0 i32) (param $1 i32)
(i32.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $sti64 (param $0 i32) (param $1 i64)
+ (func $sti64 (; 1 ;) (param $0 i32) (param $1 i64)
(i64.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $stf32 (param $0 i32) (param $1 f32)
+ (func $stf32 (; 2 ;) (param $0 i32) (param $1 f32)
(f32.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $stf64 (param $0 i32) (param $1 f64)
+ (func $stf64 (; 3 ;) (param $0 i32) (param $1 f64)
(f64.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -61,7 +61,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/switch.wast b/test/llvm_autogenerated/switch.wast
index e6fd3f08b..5c3de8651 100644
--- a/test/llvm_autogenerated/switch.wast
+++ b/test/llvm_autogenerated/switch.wast
@@ -14,7 +14,7 @@
(export "stackRestore" (func $stackRestore))
(export "bar32" (func $bar32))
(export "bar64" (func $bar64))
- (func $bar32 (param $0 i32)
+ (func $bar32 (; 6 ;) (param $0 i32)
(block $label$0
(br_if $label$0
(i32.gt_u
@@ -51,7 +51,7 @@
)
(return)
)
- (func $bar64 (param $0 i64)
+ (func $bar64 (; 7 ;) (param $0 i64)
(block $label$0
(br_if $label$0
(i64.gt_u
@@ -90,12 +90,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 8 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 9 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -114,7 +114,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 10 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/unreachable.wast b/test/llvm_autogenerated/unreachable.wast
index eab3e116b..bd5a2ffd1 100644
--- a/test/llvm_autogenerated/unreachable.wast
+++ b/test/llvm_autogenerated/unreachable.wast
@@ -10,22 +10,22 @@
(export "f1" (func $f1))
(export "f2" (func $f2))
(export "f3" (func $f3))
- (func $f1 (result i32)
+ (func $f1 (; 1 ;) (result i32)
(call $abort)
(unreachable)
)
- (func $f2
+ (func $f2 (; 2 ;)
(unreachable)
)
- (func $f3
+ (func $f3 (; 3 ;)
(unreachable)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -44,7 +44,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/unused-argument.wast b/test/llvm_autogenerated/unused-argument.wast
index cba09c922..339b13549 100644
--- a/test/llvm_autogenerated/unused-argument.wast
+++ b/test/llvm_autogenerated/unused-argument.wast
@@ -10,28 +10,28 @@
(export "unused_first" (func $unused_first))
(export "unused_second" (func $unused_second))
(export "call_something" (func $call_something))
- (func $unused_first (param $0 i32) (param $1 i32) (result i32)
+ (func $unused_first (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(get_local $1)
)
)
- (func $unused_second (param $0 i32) (param $1 i32) (result i32)
+ (func $unused_second (; 2 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(get_local $0)
)
)
- (func $call_something
+ (func $call_something (; 3 ;)
(drop
(call $return_something)
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 4 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -50,7 +50,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 6 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/userstack.wast b/test/llvm_autogenerated/userstack.wast
index c11ecca56..a8ff3b076 100644
--- a/test/llvm_autogenerated/userstack.wast
+++ b/test/llvm_autogenerated/userstack.wast
@@ -23,7 +23,7 @@
(export "frameaddress_0" (func $frameaddress_0))
(export "frameaddress_1" (func $frameaddress_1))
(export "inline_asm" (func $inline_asm))
- (func $alloca32
+ (func $alloca32 (; 3 ;)
(local $0 i32)
(i32.store offset=4
(i32.const 0)
@@ -49,7 +49,7 @@
)
(return)
)
- (func $alloca3264
+ (func $alloca3264 (; 4 ;)
(local $0 i32)
(i32.store offset=12
(tee_local $0
@@ -68,7 +68,7 @@
)
(return)
)
- (func $allocarray
+ (func $allocarray (; 5 ;)
(local $0 i32)
(i32.store offset=4
(i32.const 0)
@@ -101,7 +101,7 @@
)
(return)
)
- (func $non_mem_use (param $0 i32)
+ (func $non_mem_use (; 6 ;) (param $0 i32)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
@@ -139,7 +139,7 @@
)
(return)
)
- (func $allocarray_inbounds
+ (func $allocarray_inbounds (; 7 ;)
(local $0 i32)
(i32.store offset=4
(i32.const 0)
@@ -172,7 +172,7 @@
)
(return)
)
- (func $dynamic_alloca (param $0 i32)
+ (func $dynamic_alloca (; 8 ;) (param $0 i32)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
@@ -205,7 +205,7 @@
)
(return)
)
- (func $dynamic_alloca_redzone (param $0 i32)
+ (func $dynamic_alloca_redzone (; 9 ;) (param $0 i32)
(local $1 i32)
(drop
(tee_local $1
@@ -237,7 +237,7 @@
)
(return)
)
- (func $dynamic_static_alloca (param $0 i32)
+ (func $dynamic_static_alloca (; 10 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -318,7 +318,7 @@
)
(return)
)
- (func $llvm_stack_builtins (param $0 i32)
+ (func $llvm_stack_builtins (; 11 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -357,7 +357,7 @@
)
(return)
)
- (func $dynamic_alloca_nouse (param $0 i32)
+ (func $dynamic_alloca_nouse (; 12 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -389,7 +389,7 @@
)
(return)
)
- (func $copytoreg_fi (param $0 i32) (param $1 i32)
+ (func $copytoreg_fi (; 13 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -422,7 +422,7 @@
)
(return)
)
- (func $frameaddress_0
+ (func $frameaddress_0 (; 14 ;)
(local $0 i32)
(call $use_i8_star
(tee_local $0
@@ -437,13 +437,13 @@
)
(return)
)
- (func $frameaddress_1
+ (func $frameaddress_1 (; 15 ;)
(call $use_i8_star
(i32.const 0)
)
(return)
)
- (func $inline_asm
+ (func $inline_asm (; 16 ;)
(local $0 i32)
(set_local $0
(i32.add
@@ -458,12 +458,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 17 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -482,7 +482,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 19 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/llvm_autogenerated/varargs.wast b/test/llvm_autogenerated/varargs.wast
index 6fb332452..428433b65 100644
--- a/test/llvm_autogenerated/varargs.wast
+++ b/test/llvm_autogenerated/varargs.wast
@@ -17,17 +17,17 @@
(export "caller_none" (func $caller_none))
(export "caller_some" (func $caller_some))
(export "startbb" (func $startbb))
- (func $start (param $0 i32) (param $1 i32)
+ (func $start (; 1 ;) (param $0 i32) (param $1 i32)
(i32.store
(get_local $0)
(get_local $1)
)
(return)
)
- (func $end (param $0 i32)
+ (func $end (; 2 ;) (param $0 i32)
(return)
)
- (func $copy (param $0 i32) (param $1 i32)
+ (func $copy (; 3 ;) (param $0 i32) (param $1 i32)
(i32.store
(get_local $0)
(i32.load
@@ -36,7 +36,7 @@
)
(return)
)
- (func $arg_i8 (param $0 i32) (result i32)
+ (func $arg_i8 (; 4 ;) (param $0 i32) (result i32)
(local $1 i32)
(i32.store
(get_local $0)
@@ -55,7 +55,7 @@
)
)
)
- (func $arg_i32 (param $0 i32) (result i32)
+ (func $arg_i32 (; 5 ;) (param $0 i32) (result i32)
(local $1 i32)
(i32.store
(get_local $0)
@@ -80,7 +80,7 @@
)
)
)
- (func $arg_i128 (param $0 i32) (param $1 i32)
+ (func $arg_i128 (; 6 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i64)
@@ -130,13 +130,13 @@
)
(return)
)
- (func $caller_none
+ (func $caller_none (; 7 ;)
(call $callee
(i32.const 0)
)
(return)
)
- (func $caller_some
+ (func $caller_some (; 8 ;)
(local $0 i32)
(i32.store offset=4
(i32.const 0)
@@ -169,7 +169,7 @@
)
(return)
)
- (func $startbb (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $startbb (; 9 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(block $label$0
(br_if $label$0
(i32.eqz
@@ -187,12 +187,12 @@
)
(return)
)
- (func $stackSave (result i32)
+ (func $stackSave (; 10 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
- (func $stackAlloc (param $0 i32) (result i32)
+ (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
@@ -211,7 +211,7 @@
)
(get_local $1)
)
- (func $stackRestore (param $0 i32)
+ (func $stackRestore (; 12 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
diff --git a/test/memory-import.wast.from-wast b/test/memory-import.wast.from-wast
index 70fc97057..6532a1018 100644
--- a/test/memory-import.wast.from-wast
+++ b/test/memory-import.wast.from-wast
@@ -1,7 +1,7 @@
(module
(type $0 (func (result i32)))
(import "env" "memory" (memory $0 1 1))
- (func $foo (type $0) (result i32)
+ (func $foo (; 0 ;) (type $0) (result i32)
(i32.load offset=13
(i32.const 37)
)
diff --git a/test/memory-import.wast.fromBinary b/test/memory-import.wast.fromBinary
index b83ca836a..427dbb782 100644
--- a/test/memory-import.wast.fromBinary
+++ b/test/memory-import.wast.fromBinary
@@ -1,7 +1,7 @@
(module
(type $0 (func (result i32)))
(import "env" "memory" (memory $0 1 1))
- (func $foo (type $0) (result i32)
+ (func $foo (; 0 ;) (type $0) (result i32)
(i32.load offset=13
(i32.const 37)
)
diff --git a/test/memory-import.wast.fromBinary.noDebugInfo b/test/memory-import.wast.fromBinary.noDebugInfo
index d80f6c2b0..a7cf4ced4 100644
--- a/test/memory-import.wast.fromBinary.noDebugInfo
+++ b/test/memory-import.wast.fromBinary.noDebugInfo
@@ -1,7 +1,7 @@
(module
(type $0 (func (result i32)))
(import "env" "memory" (memory $0 1 1))
- (func $0 (type $0) (result i32)
+ (func $0 (; 0 ;) (type $0) (result i32)
(i32.load offset=13
(i32.const 37)
)
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm
index 5f90519f0..e624d5ec4 100644
--- a/test/memorygrowth.fromasm
+++ b/test/memorygrowth.fromasm
@@ -50,7 +50,7 @@
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (param $0 i32) (result i32)
+ (func $eb (; 12 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5934,7 +5934,7 @@
(i32.const 8)
)
)
- (func $fb (param $0 i32)
+ (func $fb (; 13 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7776,7 +7776,7 @@
(i32.const -1)
)
)
- (func $Ra (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ra (; 14 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8150,7 +8150,7 @@
)
(get_local $15)
)
- (func $Wa (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Wa (; 15 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8363,7 +8363,7 @@
)
(get_local $4)
)
- (func $Za (param $0 i32) (result i32)
+ (func $Za (; 16 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8507,7 +8507,7 @@
(get_local $3)
)
)
- (func $_a (param $0 i32) (result i32)
+ (func $_a (; 17 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8644,7 +8644,7 @@
)
(get_local $1)
)
- (func $ab (param $0 i32) (param $1 i32) (result i32)
+ (func $ab (; 18 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8793,7 +8793,7 @@
)
(get_local $4)
)
- (func $$a (param $0 i32) (result i32)
+ (func $$a (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8928,7 +8928,7 @@
)
(get_local $2)
)
- (func $jb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $jb (; 20 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9075,10 +9075,10 @@
)
(get_local $3)
)
- (func $gb
+ (func $gb (; 21 ;)
(nop)
)
- (func $hb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $hb (; 22 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9216,7 +9216,7 @@
(get_local $2)
)
)
- (func $db (param $0 i32) (result i32)
+ (func $db (; 23 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9325,7 +9325,7 @@
(i32.const 31)
)
)
- (func $Xa (param $0 i32) (result i32)
+ (func $Xa (; 24 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9403,7 +9403,7 @@
)
)
)
- (func $bb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $bb (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9469,7 +9469,7 @@
)
(get_local $2)
)
- (func $Ua (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ua (; 26 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9538,7 +9538,7 @@
)
(get_local $0)
)
- (func $Va (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Va (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9608,7 +9608,7 @@
)
(get_local $3)
)
- (func $Oa (param $0 i32) (result i32)
+ (func $Oa (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9641,7 +9641,7 @@
)
(get_local $0)
)
- (func $Pa (param $0 i32) (result i32)
+ (func $Pa (; 29 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9660,7 +9660,7 @@
(get_local $0)
)
)
- (func $Qa (result i32)
+ (func $Qa (; 30 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 1160)
@@ -9671,7 +9671,7 @@
(i32.const 1204)
)
)
- (func $lb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $lb (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -9685,7 +9685,7 @@
)
)
)
- (func $Ea (param $0 i32) (result i32)
+ (func $Ea (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $r)
@@ -9707,13 +9707,13 @@
)
(get_local $1)
)
- (func $ob (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $ob (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $ja
(i32.const 1)
)
(i32.const 0)
)
- (func $Ia (param $0 i32) (param $1 i32)
+ (func $Ia (; 34 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $v)
@@ -9728,7 +9728,7 @@
)
)
)
- (func $kb (param $0 i32) (param $1 i32) (result i32)
+ (func $kb (; 35 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -9737,7 +9737,7 @@
)
)
)
- (func $Sa (param $0 i32)
+ (func $Sa (; 36 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9749,7 +9749,7 @@
)
)
)
- (func $mb (param $0 i32) (param $1 i32)
+ (func $mb (; 37 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -9761,7 +9761,7 @@
)
)
)
- (func $Ha (param $0 i32) (param $1 i32)
+ (func $Ha (; 38 ;) (param $0 i32) (param $1 i32)
(set_global $r
(get_local $0)
)
@@ -9769,13 +9769,13 @@
(get_local $1)
)
)
- (func $nb (param $0 i32) (result i32)
+ (func $nb (; 39 ;) (param $0 i32) (result i32)
(call $ja
(i32.const 0)
)
(i32.const 0)
)
- (func $Na (result i32)
+ (func $Na (; 40 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -9783,37 +9783,37 @@
)
(i32.const 0)
)
- (func $Ya (param $0 i32) (result i32)
+ (func $Ya (; 41 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $Ta (param $0 i32)
+ (func $Ta (; 42 ;) (param $0 i32)
(nop)
)
- (func $pb (param $0 i32)
+ (func $pb (; 43 ;) (param $0 i32)
(call $ja
(i32.const 2)
)
)
- (func $La (param $0 i32)
+ (func $La (; 44 ;) (param $0 i32)
(set_global $K
(get_local $0)
)
)
- (func $Ga (param $0 i32)
+ (func $Ga (; 45 ;) (param $0 i32)
(set_global $r
(get_local $0)
)
)
- (func $Ma (result i32)
+ (func $Ma (; 46 ;) (result i32)
(get_global $K)
)
- (func $Fa (result i32)
+ (func $Fa (; 47 ;) (result i32)
(get_global $r)
)
- (func $ib (result i32)
+ (func $ib (; 48 ;) (result i32)
(i32.const 0)
)
- (func $__growWasmMemory (param $newSize i32) (result i32)
+ (func $__growWasmMemory (; 49 ;) (param $newSize i32) (result i32)
(grow_memory
(get_local $newSize)
)
diff --git a/test/memorygrowth.fromasm.clamp b/test/memorygrowth.fromasm.clamp
index 5f90519f0..e624d5ec4 100644
--- a/test/memorygrowth.fromasm.clamp
+++ b/test/memorygrowth.fromasm.clamp
@@ -50,7 +50,7 @@
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (param $0 i32) (result i32)
+ (func $eb (; 12 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5934,7 +5934,7 @@
(i32.const 8)
)
)
- (func $fb (param $0 i32)
+ (func $fb (; 13 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7776,7 +7776,7 @@
(i32.const -1)
)
)
- (func $Ra (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ra (; 14 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8150,7 +8150,7 @@
)
(get_local $15)
)
- (func $Wa (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Wa (; 15 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8363,7 +8363,7 @@
)
(get_local $4)
)
- (func $Za (param $0 i32) (result i32)
+ (func $Za (; 16 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8507,7 +8507,7 @@
(get_local $3)
)
)
- (func $_a (param $0 i32) (result i32)
+ (func $_a (; 17 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8644,7 +8644,7 @@
)
(get_local $1)
)
- (func $ab (param $0 i32) (param $1 i32) (result i32)
+ (func $ab (; 18 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8793,7 +8793,7 @@
)
(get_local $4)
)
- (func $$a (param $0 i32) (result i32)
+ (func $$a (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8928,7 +8928,7 @@
)
(get_local $2)
)
- (func $jb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $jb (; 20 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9075,10 +9075,10 @@
)
(get_local $3)
)
- (func $gb
+ (func $gb (; 21 ;)
(nop)
)
- (func $hb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $hb (; 22 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9216,7 +9216,7 @@
(get_local $2)
)
)
- (func $db (param $0 i32) (result i32)
+ (func $db (; 23 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9325,7 +9325,7 @@
(i32.const 31)
)
)
- (func $Xa (param $0 i32) (result i32)
+ (func $Xa (; 24 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9403,7 +9403,7 @@
)
)
)
- (func $bb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $bb (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9469,7 +9469,7 @@
)
(get_local $2)
)
- (func $Ua (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ua (; 26 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9538,7 +9538,7 @@
)
(get_local $0)
)
- (func $Va (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Va (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9608,7 +9608,7 @@
)
(get_local $3)
)
- (func $Oa (param $0 i32) (result i32)
+ (func $Oa (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9641,7 +9641,7 @@
)
(get_local $0)
)
- (func $Pa (param $0 i32) (result i32)
+ (func $Pa (; 29 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9660,7 +9660,7 @@
(get_local $0)
)
)
- (func $Qa (result i32)
+ (func $Qa (; 30 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 1160)
@@ -9671,7 +9671,7 @@
(i32.const 1204)
)
)
- (func $lb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $lb (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -9685,7 +9685,7 @@
)
)
)
- (func $Ea (param $0 i32) (result i32)
+ (func $Ea (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $r)
@@ -9707,13 +9707,13 @@
)
(get_local $1)
)
- (func $ob (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $ob (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $ja
(i32.const 1)
)
(i32.const 0)
)
- (func $Ia (param $0 i32) (param $1 i32)
+ (func $Ia (; 34 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $v)
@@ -9728,7 +9728,7 @@
)
)
)
- (func $kb (param $0 i32) (param $1 i32) (result i32)
+ (func $kb (; 35 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -9737,7 +9737,7 @@
)
)
)
- (func $Sa (param $0 i32)
+ (func $Sa (; 36 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9749,7 +9749,7 @@
)
)
)
- (func $mb (param $0 i32) (param $1 i32)
+ (func $mb (; 37 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -9761,7 +9761,7 @@
)
)
)
- (func $Ha (param $0 i32) (param $1 i32)
+ (func $Ha (; 38 ;) (param $0 i32) (param $1 i32)
(set_global $r
(get_local $0)
)
@@ -9769,13 +9769,13 @@
(get_local $1)
)
)
- (func $nb (param $0 i32) (result i32)
+ (func $nb (; 39 ;) (param $0 i32) (result i32)
(call $ja
(i32.const 0)
)
(i32.const 0)
)
- (func $Na (result i32)
+ (func $Na (; 40 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -9783,37 +9783,37 @@
)
(i32.const 0)
)
- (func $Ya (param $0 i32) (result i32)
+ (func $Ya (; 41 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $Ta (param $0 i32)
+ (func $Ta (; 42 ;) (param $0 i32)
(nop)
)
- (func $pb (param $0 i32)
+ (func $pb (; 43 ;) (param $0 i32)
(call $ja
(i32.const 2)
)
)
- (func $La (param $0 i32)
+ (func $La (; 44 ;) (param $0 i32)
(set_global $K
(get_local $0)
)
)
- (func $Ga (param $0 i32)
+ (func $Ga (; 45 ;) (param $0 i32)
(set_global $r
(get_local $0)
)
)
- (func $Ma (result i32)
+ (func $Ma (; 46 ;) (result i32)
(get_global $K)
)
- (func $Fa (result i32)
+ (func $Fa (; 47 ;) (result i32)
(get_global $r)
)
- (func $ib (result i32)
+ (func $ib (; 48 ;) (result i32)
(i32.const 0)
)
- (func $__growWasmMemory (param $newSize i32) (result i32)
+ (func $__growWasmMemory (; 49 ;) (param $newSize i32) (result i32)
(grow_memory
(get_local $newSize)
)
diff --git a/test/memorygrowth.fromasm.clamp.no-opts b/test/memorygrowth.fromasm.clamp.no-opts
index 490c479c0..65caa61b1 100644
--- a/test/memorygrowth.fromasm.clamp.no-opts
+++ b/test/memorygrowth.fromasm.clamp.no-opts
@@ -78,7 +78,7 @@
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (param $a i32) (result i32)
+ (func $eb (; 12 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -7094,7 +7094,7 @@
(get_local $p)
)
)
- (func $fb (param $a i32)
+ (func $fb (; 13 ;) (param $a i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -9286,7 +9286,7 @@
)
(return)
)
- (func $Ra (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Ra (; 14 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -9751,7 +9751,7 @@
(get_local $z)
)
)
- (func $Wa (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Wa (; 15 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -10020,7 +10020,7 @@
(get_local $h)
)
)
- (func $Za (param $a i32) (result i32)
+ (func $Za (; 16 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10219,7 +10219,7 @@
)
)
)
- (func $_a (param $a i32) (result i32)
+ (func $_a (; 17 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10414,7 +10414,7 @@
(get_local $h)
)
)
- (func $ab (param $a i32) (param $b i32) (result i32)
+ (func $ab (; 18 ;) (param $a i32) (param $b i32) (result i32)
(local $c i32)
(local $d i32)
(local $e i32)
@@ -10590,7 +10590,7 @@
(get_local $m)
)
)
- (func $$a (param $a i32) (result i32)
+ (func $$a (; 19 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10745,7 +10745,7 @@
(get_local $d)
)
)
- (func $jb (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $jb (; 20 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(if
(i32.ge_s
@@ -10909,10 +10909,10 @@
(get_local $d)
)
)
- (func $gb
+ (func $gb (; 21 ;)
(nop)
)
- (func $hb (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $hb (; 22 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -11072,7 +11072,7 @@
)
)
)
- (func $db (param $a i32) (result i32)
+ (func $db (; 23 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -11195,7 +11195,7 @@
)
)
)
- (func $Xa (param $a i32) (result i32)
+ (func $Xa (; 24 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -11305,7 +11305,7 @@
(get_local $d)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 25 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -11317,7 +11317,7 @@
)
)
)
- (func $bb (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $bb (; 26 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $e i32)
(local $f i32)
(local $g i32)
@@ -11397,7 +11397,7 @@
(get_local $i)
)
)
- (func $Ua (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Ua (; 27 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -11489,7 +11489,7 @@
(get_local $g)
)
)
- (func $Va (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Va (; 28 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(set_local $d
@@ -11576,7 +11576,7 @@
(get_local $e)
)
)
- (func $Ka (param $a i32)
+ (func $Ka (; 29 ;) (param $a i32)
(i32.store8
(get_global $t)
(i32.load8_s
@@ -11668,7 +11668,7 @@
)
)
)
- (func $Oa (param $a i32) (result i32)
+ (func $Oa (; 30 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(set_local $b
@@ -11707,7 +11707,7 @@
(get_local $a)
)
)
- (func $Pa (param $a i32) (result i32)
+ (func $Pa (; 31 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(if
@@ -11738,7 +11738,7 @@
(get_local $c)
)
)
- (func $Ja (param $a i32)
+ (func $Ja (; 32 ;) (param $a i32)
(i32.store8
(get_global $t)
(i32.load8_s
@@ -11782,7 +11782,7 @@
)
)
)
- (func $Qa (result i32)
+ (func $Qa (; 33 ;) (result i32)
(local $a i32)
(local $b i32)
(if
@@ -11812,7 +11812,7 @@
(get_local $a)
)
)
- (func $lb (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $lb (; 34 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $b)
@@ -11828,7 +11828,7 @@
)
)
)
- (func $Ea (param $a i32) (result i32)
+ (func $Ea (; 35 ;) (param $a i32) (result i32)
(local $b i32)
(set_local $b
(get_global $r)
@@ -11852,7 +11852,7 @@
(get_local $b)
)
)
- (func $cb (param $a i32) (param $b i32) (result i32)
+ (func $cb (; 36 ;) (param $a i32) (param $b i32) (result i32)
(return
(i32.add
(call $bb
@@ -11867,7 +11867,7 @@
)
)
)
- (func $ob (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $ob (; 37 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(call $ja
(i32.const 1)
)
@@ -11875,7 +11875,7 @@
(i32.const 0)
)
)
- (func $Ia (param $a i32) (param $b i32)
+ (func $Ia (; 38 ;) (param $a i32) (param $b i32)
(if
(i32.eqz
(get_global $v)
@@ -11890,7 +11890,7 @@
)
)
)
- (func $kb (param $a i32) (param $b i32) (result i32)
+ (func $kb (; 39 ;) (param $a i32) (param $b i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $b)
@@ -11904,7 +11904,7 @@
)
)
)
- (func $Sa (param $a i32)
+ (func $Sa (; 40 ;) (param $a i32)
(if
(i32.eqz
(i32.load
@@ -11920,7 +11920,7 @@
)
(return)
)
- (func $mb (param $a i32) (param $b i32)
+ (func $mb (; 41 ;) (param $a i32) (param $b i32)
(call_indirect $FUNCSIG$vi
(get_local $b)
(i32.add
@@ -11932,7 +11932,7 @@
)
)
)
- (func $Ha (param $a i32) (param $b i32)
+ (func $Ha (; 42 ;) (param $a i32) (param $b i32)
(set_global $r
(get_local $a)
)
@@ -11940,7 +11940,7 @@
(get_local $b)
)
)
- (func $nb (param $a i32) (result i32)
+ (func $nb (; 43 ;) (param $a i32) (result i32)
(call $ja
(i32.const 0)
)
@@ -11948,7 +11948,7 @@
(i32.const 0)
)
)
- (func $Na (result i32)
+ (func $Na (; 44 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -11958,45 +11958,45 @@
(i32.const 0)
)
)
- (func $Ya (param $a i32) (result i32)
+ (func $Ya (; 45 ;) (param $a i32) (result i32)
(return
(i32.const 0)
)
)
- (func $Ta (param $a i32)
+ (func $Ta (; 46 ;) (param $a i32)
(return)
)
- (func $pb (param $a i32)
+ (func $pb (; 47 ;) (param $a i32)
(call $ja
(i32.const 2)
)
)
- (func $La (param $a i32)
+ (func $La (; 48 ;) (param $a i32)
(set_global $K
(get_local $a)
)
)
- (func $Ga (param $a i32)
+ (func $Ga (; 49 ;) (param $a i32)
(set_global $r
(get_local $a)
)
)
- (func $Ma (result i32)
+ (func $Ma (; 50 ;) (result i32)
(return
(get_global $K)
)
)
- (func $Fa (result i32)
+ (func $Fa (; 51 ;) (result i32)
(return
(get_global $r)
)
)
- (func $ib (result i32)
+ (func $ib (; 52 ;) (result i32)
(return
(i32.const 0)
)
)
- (func $__growWasmMemory (param $newSize i32) (result i32)
+ (func $__growWasmMemory (; 53 ;) (param $newSize i32) (result i32)
(grow_memory
(get_local $newSize)
)
diff --git a/test/memorygrowth.fromasm.imprecise b/test/memorygrowth.fromasm.imprecise
index be7c35289..eb359fc61 100644
--- a/test/memorygrowth.fromasm.imprecise
+++ b/test/memorygrowth.fromasm.imprecise
@@ -49,7 +49,7 @@
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (param $0 i32) (result i32)
+ (func $eb (; 12 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -5933,7 +5933,7 @@
(i32.const 8)
)
)
- (func $fb (param $0 i32)
+ (func $fb (; 13 ;) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -7775,7 +7775,7 @@
(i32.const -1)
)
)
- (func $Ra (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ra (; 14 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8149,7 +8149,7 @@
)
(get_local $15)
)
- (func $Wa (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Wa (; 15 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -8362,7 +8362,7 @@
)
(get_local $4)
)
- (func $Za (param $0 i32) (result i32)
+ (func $Za (; 16 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8506,7 +8506,7 @@
(get_local $3)
)
)
- (func $_a (param $0 i32) (result i32)
+ (func $_a (; 17 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -8643,7 +8643,7 @@
)
(get_local $1)
)
- (func $ab (param $0 i32) (param $1 i32) (result i32)
+ (func $ab (; 18 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -8792,7 +8792,7 @@
)
(get_local $4)
)
- (func $$a (param $0 i32) (result i32)
+ (func $$a (; 19 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -8927,7 +8927,7 @@
)
(get_local $2)
)
- (func $jb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $jb (; 20 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -9074,10 +9074,10 @@
)
(get_local $3)
)
- (func $gb
+ (func $gb (; 21 ;)
(nop)
)
- (func $hb (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $hb (; 22 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -9215,7 +9215,7 @@
(get_local $2)
)
)
- (func $db (param $0 i32) (result i32)
+ (func $db (; 23 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -9324,7 +9324,7 @@
(i32.const 31)
)
)
- (func $Xa (param $0 i32) (result i32)
+ (func $Xa (; 24 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -9402,7 +9402,7 @@
)
)
)
- (func $bb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $bb (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(local $5 i32)
(set_local $4
@@ -9464,7 +9464,7 @@
)
(get_local $2)
)
- (func $Ua (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Ua (; 26 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9533,7 +9533,7 @@
)
(get_local $0)
)
- (func $Va (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $Va (; 27 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9603,7 +9603,7 @@
)
(get_local $3)
)
- (func $Oa (param $0 i32) (result i32)
+ (func $Oa (; 28 ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -9636,7 +9636,7 @@
)
(get_local $0)
)
- (func $Pa (param $0 i32) (result i32)
+ (func $Pa (; 29 ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9655,7 +9655,7 @@
(get_local $0)
)
)
- (func $Qa (result i32)
+ (func $Qa (; 30 ;) (result i32)
(if (result i32)
(i32.load
(i32.const 1160)
@@ -9666,7 +9666,7 @@
(i32.const 1204)
)
)
- (func $lb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $lb (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -9680,7 +9680,7 @@
)
)
)
- (func $Ea (param $0 i32) (result i32)
+ (func $Ea (; 32 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $r)
@@ -9702,13 +9702,13 @@
)
(get_local $1)
)
- (func $ob (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $ob (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $ja
(i32.const 1)
)
(i32.const 0)
)
- (func $Ia (param $0 i32) (param $1 i32)
+ (func $Ia (; 34 ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $v)
@@ -9723,7 +9723,7 @@
)
)
)
- (func $kb (param $0 i32) (param $1 i32) (result i32)
+ (func $kb (; 35 ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -9732,7 +9732,7 @@
)
)
)
- (func $Sa (param $0 i32)
+ (func $Sa (; 36 ;) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -9744,7 +9744,7 @@
)
)
)
- (func $mb (param $0 i32) (param $1 i32)
+ (func $mb (; 37 ;) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -9756,7 +9756,7 @@
)
)
)
- (func $Ha (param $0 i32) (param $1 i32)
+ (func $Ha (; 38 ;) (param $0 i32) (param $1 i32)
(set_global $r
(get_local $0)
)
@@ -9764,13 +9764,13 @@
(get_local $1)
)
)
- (func $nb (param $0 i32) (result i32)
+ (func $nb (; 39 ;) (param $0 i32) (result i32)
(call $ja
(i32.const 0)
)
(i32.const 0)
)
- (func $Na (result i32)
+ (func $Na (; 40 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -9778,37 +9778,37 @@
)
(i32.const 0)
)
- (func $Ya (param $0 i32) (result i32)
+ (func $Ya (; 41 ;) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $Ta (param $0 i32)
+ (func $Ta (; 42 ;) (param $0 i32)
(nop)
)
- (func $pb (param $0 i32)
+ (func $pb (; 43 ;) (param $0 i32)
(call $ja
(i32.const 2)
)
)
- (func $La (param $0 i32)
+ (func $La (; 44 ;) (param $0 i32)
(set_global $K
(get_local $0)
)
)
- (func $Ga (param $0 i32)
+ (func $Ga (; 45 ;) (param $0 i32)
(set_global $r
(get_local $0)
)
)
- (func $Ma (result i32)
+ (func $Ma (; 46 ;) (result i32)
(get_global $K)
)
- (func $Fa (result i32)
+ (func $Fa (; 47 ;) (result i32)
(get_global $r)
)
- (func $ib (result i32)
+ (func $ib (; 48 ;) (result i32)
(i32.const 0)
)
- (func $__growWasmMemory (param $newSize i32) (result i32)
+ (func $__growWasmMemory (; 49 ;) (param $newSize i32) (result i32)
(grow_memory
(get_local $newSize)
)
diff --git a/test/memorygrowth.fromasm.imprecise.no-opts b/test/memorygrowth.fromasm.imprecise.no-opts
index f2e0cc644..86b8b1266 100644
--- a/test/memorygrowth.fromasm.imprecise.no-opts
+++ b/test/memorygrowth.fromasm.imprecise.no-opts
@@ -78,7 +78,7 @@
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (param $a i32) (result i32)
+ (func $eb (; 12 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -7094,7 +7094,7 @@
(get_local $p)
)
)
- (func $fb (param $a i32)
+ (func $fb (; 13 ;) (param $a i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -9286,7 +9286,7 @@
)
(return)
)
- (func $Ra (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Ra (; 14 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -9751,7 +9751,7 @@
(get_local $z)
)
)
- (func $Wa (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Wa (; 15 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -10020,7 +10020,7 @@
(get_local $h)
)
)
- (func $Za (param $a i32) (result i32)
+ (func $Za (; 16 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10219,7 +10219,7 @@
)
)
)
- (func $_a (param $a i32) (result i32)
+ (func $_a (; 17 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10414,7 +10414,7 @@
(get_local $h)
)
)
- (func $ab (param $a i32) (param $b i32) (result i32)
+ (func $ab (; 18 ;) (param $a i32) (param $b i32) (result i32)
(local $c i32)
(local $d i32)
(local $e i32)
@@ -10590,7 +10590,7 @@
(get_local $m)
)
)
- (func $$a (param $a i32) (result i32)
+ (func $$a (; 19 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10745,7 +10745,7 @@
(get_local $d)
)
)
- (func $jb (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $jb (; 20 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(if
(i32.ge_s
@@ -10909,10 +10909,10 @@
(get_local $d)
)
)
- (func $gb
+ (func $gb (; 21 ;)
(nop)
)
- (func $hb (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $hb (; 22 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -11072,7 +11072,7 @@
)
)
)
- (func $db (param $a i32) (result i32)
+ (func $db (; 23 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -11195,7 +11195,7 @@
)
)
)
- (func $Xa (param $a i32) (result i32)
+ (func $Xa (; 24 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -11305,7 +11305,7 @@
(get_local $d)
)
)
- (func $bb (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $bb (; 25 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $e i32)
(local $f i32)
(local $g i32)
@@ -11385,7 +11385,7 @@
(get_local $i)
)
)
- (func $Ua (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Ua (; 26 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -11477,7 +11477,7 @@
(get_local $g)
)
)
- (func $Va (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Va (; 27 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(set_local $d
@@ -11564,7 +11564,7 @@
(get_local $e)
)
)
- (func $Ka (param $a i32)
+ (func $Ka (; 28 ;) (param $a i32)
(i32.store8
(get_global $t)
(i32.load8_s
@@ -11656,7 +11656,7 @@
)
)
)
- (func $Oa (param $a i32) (result i32)
+ (func $Oa (; 29 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(set_local $b
@@ -11695,7 +11695,7 @@
(get_local $a)
)
)
- (func $Pa (param $a i32) (result i32)
+ (func $Pa (; 30 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(if
@@ -11726,7 +11726,7 @@
(get_local $c)
)
)
- (func $Ja (param $a i32)
+ (func $Ja (; 31 ;) (param $a i32)
(i32.store8
(get_global $t)
(i32.load8_s
@@ -11770,7 +11770,7 @@
)
)
)
- (func $Qa (result i32)
+ (func $Qa (; 32 ;) (result i32)
(local $a i32)
(local $b i32)
(if
@@ -11800,7 +11800,7 @@
(get_local $a)
)
)
- (func $lb (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $lb (; 33 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $b)
@@ -11816,7 +11816,7 @@
)
)
)
- (func $Ea (param $a i32) (result i32)
+ (func $Ea (; 34 ;) (param $a i32) (result i32)
(local $b i32)
(set_local $b
(get_global $r)
@@ -11840,7 +11840,7 @@
(get_local $b)
)
)
- (func $cb (param $a i32) (param $b i32) (result i32)
+ (func $cb (; 35 ;) (param $a i32) (param $b i32) (result i32)
(return
(i32.add
(call $bb
@@ -11855,7 +11855,7 @@
)
)
)
- (func $ob (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $ob (; 36 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(call $ja
(i32.const 1)
)
@@ -11863,7 +11863,7 @@
(i32.const 0)
)
)
- (func $Ia (param $a i32) (param $b i32)
+ (func $Ia (; 37 ;) (param $a i32) (param $b i32)
(if
(i32.eqz
(get_global $v)
@@ -11878,7 +11878,7 @@
)
)
)
- (func $kb (param $a i32) (param $b i32) (result i32)
+ (func $kb (; 38 ;) (param $a i32) (param $b i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $b)
@@ -11892,7 +11892,7 @@
)
)
)
- (func $Sa (param $a i32)
+ (func $Sa (; 39 ;) (param $a i32)
(if
(i32.eqz
(i32.load
@@ -11908,7 +11908,7 @@
)
(return)
)
- (func $mb (param $a i32) (param $b i32)
+ (func $mb (; 40 ;) (param $a i32) (param $b i32)
(call_indirect $FUNCSIG$vi
(get_local $b)
(i32.add
@@ -11920,7 +11920,7 @@
)
)
)
- (func $Ha (param $a i32) (param $b i32)
+ (func $Ha (; 41 ;) (param $a i32) (param $b i32)
(set_global $r
(get_local $a)
)
@@ -11928,7 +11928,7 @@
(get_local $b)
)
)
- (func $nb (param $a i32) (result i32)
+ (func $nb (; 42 ;) (param $a i32) (result i32)
(call $ja
(i32.const 0)
)
@@ -11936,7 +11936,7 @@
(i32.const 0)
)
)
- (func $Na (result i32)
+ (func $Na (; 43 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -11946,45 +11946,45 @@
(i32.const 0)
)
)
- (func $Ya (param $a i32) (result i32)
+ (func $Ya (; 44 ;) (param $a i32) (result i32)
(return
(i32.const 0)
)
)
- (func $Ta (param $a i32)
+ (func $Ta (; 45 ;) (param $a i32)
(return)
)
- (func $pb (param $a i32)
+ (func $pb (; 46 ;) (param $a i32)
(call $ja
(i32.const 2)
)
)
- (func $La (param $a i32)
+ (func $La (; 47 ;) (param $a i32)
(set_global $K
(get_local $a)
)
)
- (func $Ga (param $a i32)
+ (func $Ga (; 48 ;) (param $a i32)
(set_global $r
(get_local $a)
)
)
- (func $Ma (result i32)
+ (func $Ma (; 49 ;) (result i32)
(return
(get_global $K)
)
)
- (func $Fa (result i32)
+ (func $Fa (; 50 ;) (result i32)
(return
(get_global $r)
)
)
- (func $ib (result i32)
+ (func $ib (; 51 ;) (result i32)
(return
(i32.const 0)
)
)
- (func $__growWasmMemory (param $newSize i32) (result i32)
+ (func $__growWasmMemory (; 52 ;) (param $newSize i32) (result i32)
(grow_memory
(get_local $newSize)
)
diff --git a/test/memorygrowth.fromasm.no-opts b/test/memorygrowth.fromasm.no-opts
index 490c479c0..65caa61b1 100644
--- a/test/memorygrowth.fromasm.no-opts
+++ b/test/memorygrowth.fromasm.no-opts
@@ -78,7 +78,7 @@
(export "dynCall_iiii" (func $lb))
(export "dynCall_vi" (func $mb))
(export "__growWasmMemory" (func $__growWasmMemory))
- (func $eb (param $a i32) (result i32)
+ (func $eb (; 12 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -7094,7 +7094,7 @@
(get_local $p)
)
)
- (func $fb (param $a i32)
+ (func $fb (; 13 ;) (param $a i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -9286,7 +9286,7 @@
)
(return)
)
- (func $Ra (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Ra (; 14 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -9751,7 +9751,7 @@
(get_local $z)
)
)
- (func $Wa (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Wa (; 15 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -10020,7 +10020,7 @@
(get_local $h)
)
)
- (func $Za (param $a i32) (result i32)
+ (func $Za (; 16 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10219,7 +10219,7 @@
)
)
)
- (func $_a (param $a i32) (result i32)
+ (func $_a (; 17 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10414,7 +10414,7 @@
(get_local $h)
)
)
- (func $ab (param $a i32) (param $b i32) (result i32)
+ (func $ab (; 18 ;) (param $a i32) (param $b i32) (result i32)
(local $c i32)
(local $d i32)
(local $e i32)
@@ -10590,7 +10590,7 @@
(get_local $m)
)
)
- (func $$a (param $a i32) (result i32)
+ (func $$a (; 19 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -10745,7 +10745,7 @@
(get_local $d)
)
)
- (func $jb (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $jb (; 20 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(if
(i32.ge_s
@@ -10909,10 +10909,10 @@
(get_local $d)
)
)
- (func $gb
+ (func $gb (; 21 ;)
(nop)
)
- (func $hb (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $hb (; 22 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -11072,7 +11072,7 @@
)
)
)
- (func $db (param $a i32) (result i32)
+ (func $db (; 23 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -11195,7 +11195,7 @@
)
)
)
- (func $Xa (param $a i32) (result i32)
+ (func $Xa (; 24 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(local $d i32)
@@ -11305,7 +11305,7 @@
(get_local $d)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 25 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -11317,7 +11317,7 @@
)
)
)
- (func $bb (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $bb (; 26 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $e i32)
(local $f i32)
(local $g i32)
@@ -11397,7 +11397,7 @@
(get_local $i)
)
)
- (func $Ua (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Ua (; 27 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(local $f i32)
@@ -11489,7 +11489,7 @@
(get_local $g)
)
)
- (func $Va (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $Va (; 28 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(local $d i32)
(local $e i32)
(set_local $d
@@ -11576,7 +11576,7 @@
(get_local $e)
)
)
- (func $Ka (param $a i32)
+ (func $Ka (; 29 ;) (param $a i32)
(i32.store8
(get_global $t)
(i32.load8_s
@@ -11668,7 +11668,7 @@
)
)
)
- (func $Oa (param $a i32) (result i32)
+ (func $Oa (; 30 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(set_local $b
@@ -11707,7 +11707,7 @@
(get_local $a)
)
)
- (func $Pa (param $a i32) (result i32)
+ (func $Pa (; 31 ;) (param $a i32) (result i32)
(local $b i32)
(local $c i32)
(if
@@ -11738,7 +11738,7 @@
(get_local $c)
)
)
- (func $Ja (param $a i32)
+ (func $Ja (; 32 ;) (param $a i32)
(i32.store8
(get_global $t)
(i32.load8_s
@@ -11782,7 +11782,7 @@
)
)
)
- (func $Qa (result i32)
+ (func $Qa (; 33 ;) (result i32)
(local $a i32)
(local $b i32)
(if
@@ -11812,7 +11812,7 @@
(get_local $a)
)
)
- (func $lb (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
+ (func $lb (; 34 ;) (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(return
(call_indirect $FUNCSIG$iiii
(get_local $b)
@@ -11828,7 +11828,7 @@
)
)
)
- (func $Ea (param $a i32) (result i32)
+ (func $Ea (; 35 ;) (param $a i32) (result i32)
(local $b i32)
(set_local $b
(get_global $r)
@@ -11852,7 +11852,7 @@
(get_local $b)
)
)
- (func $cb (param $a i32) (param $b i32) (result i32)
+ (func $cb (; 36 ;) (param $a i32) (param $b i32) (result i32)
(return
(i32.add
(call $bb
@@ -11867,7 +11867,7 @@
)
)
)
- (func $ob (param $a i32) (param $b i32) (param $c i32) (result i32)
+ (func $ob (; 37 ;) (param $a i32) (param $b i32) (param $c i32) (result i32)
(call $ja
(i32.const 1)
)
@@ -11875,7 +11875,7 @@
(i32.const 0)
)
)
- (func $Ia (param $a i32) (param $b i32)
+ (func $Ia (; 38 ;) (param $a i32) (param $b i32)
(if
(i32.eqz
(get_global $v)
@@ -11890,7 +11890,7 @@
)
)
)
- (func $kb (param $a i32) (param $b i32) (result i32)
+ (func $kb (; 39 ;) (param $a i32) (param $b i32) (result i32)
(return
(call_indirect $FUNCSIG$ii
(get_local $b)
@@ -11904,7 +11904,7 @@
)
)
)
- (func $Sa (param $a i32)
+ (func $Sa (; 40 ;) (param $a i32)
(if
(i32.eqz
(i32.load
@@ -11920,7 +11920,7 @@
)
(return)
)
- (func $mb (param $a i32) (param $b i32)
+ (func $mb (; 41 ;) (param $a i32) (param $b i32)
(call_indirect $FUNCSIG$vi
(get_local $b)
(i32.add
@@ -11932,7 +11932,7 @@
)
)
)
- (func $Ha (param $a i32) (param $b i32)
+ (func $Ha (; 42 ;) (param $a i32) (param $b i32)
(set_global $r
(get_local $a)
)
@@ -11940,7 +11940,7 @@
(get_local $b)
)
)
- (func $nb (param $a i32) (result i32)
+ (func $nb (; 43 ;) (param $a i32) (result i32)
(call $ja
(i32.const 0)
)
@@ -11948,7 +11948,7 @@
(i32.const 0)
)
)
- (func $Na (result i32)
+ (func $Na (; 44 ;) (result i32)
(drop
(call $db
(i32.const 1144)
@@ -11958,45 +11958,45 @@
(i32.const 0)
)
)
- (func $Ya (param $a i32) (result i32)
+ (func $Ya (; 45 ;) (param $a i32) (result i32)
(return
(i32.const 0)
)
)
- (func $Ta (param $a i32)
+ (func $Ta (; 46 ;) (param $a i32)
(return)
)
- (func $pb (param $a i32)
+ (func $pb (; 47 ;) (param $a i32)
(call $ja
(i32.const 2)
)
)
- (func $La (param $a i32)
+ (func $La (; 48 ;) (param $a i32)
(set_global $K
(get_local $a)
)
)
- (func $Ga (param $a i32)
+ (func $Ga (; 49 ;) (param $a i32)
(set_global $r
(get_local $a)
)
)
- (func $Ma (result i32)
+ (func $Ma (; 50 ;) (result i32)
(return
(get_global $K)
)
)
- (func $Fa (result i32)
+ (func $Fa (; 51 ;) (result i32)
(return
(get_global $r)
)
)
- (func $ib (result i32)
+ (func $ib (; 52 ;) (result i32)
(return
(i32.const 0)
)
)
- (func $__growWasmMemory (param $newSize i32) (result i32)
+ (func $__growWasmMemory (; 53 ;) (param $newSize i32) (result i32)
(grow_memory
(get_local $newSize)
)
diff --git a/test/merge/basics.wast.combined b/test/merge/basics.wast.combined
index f0654ec7a..ec322b100 100644
--- a/test/merge/basics.wast.combined
+++ b/test/merge/basics.wast.combined
@@ -26,7 +26,7 @@
(export "exp-collide2" (func $willCollide))
(export "exp-b" (func $only-b))
(export "exp-b-nameCollided" (func $willCollide$0))
- (func $only-a (type $FUNCSIG$v)
+ (func $only-a (; 4 ;) (type $FUNCSIG$v)
(drop
(i32.const 100)
)
@@ -54,13 +54,13 @@
(i32.const 1234)
)
)
- (func $willCollide (type $FUNCSIG$v)
+ (func $willCollide (; 5 ;) (type $FUNCSIG$v)
(drop
(i32.const 200)
)
(call $willCollide)
)
- (func $only-b (type $FUNCSIG$v$0)
+ (func $only-b (; 6 ;) (type $FUNCSIG$v$0)
(drop
(i32.const 111)
)
@@ -124,7 +124,7 @@
(i32.const 5678)
)
)
- (func $willCollide$0 (type $FUNCSIG$v$0)
+ (func $willCollide$0 (; 7 ;) (type $FUNCSIG$v$0)
(drop
(i32.const 222)
)
diff --git a/test/merge/basics.wast.combined.finalized b/test/merge/basics.wast.combined.finalized
index 7637b787b..ffa18e9f8 100644
--- a/test/merge/basics.wast.combined.finalized
+++ b/test/merge/basics.wast.combined.finalized
@@ -26,7 +26,7 @@
(export "exp-collide2" (func $willCollide))
(export "exp-b" (func $only-b))
(export "exp-b-nameCollided" (func $willCollide$0))
- (func $only-a (type $FUNCSIG$v)
+ (func $only-a (; 4 ;) (type $FUNCSIG$v)
(drop
(i32.const 100)
)
@@ -54,13 +54,13 @@
(i32.const 1234)
)
)
- (func $willCollide (type $FUNCSIG$v)
+ (func $willCollide (; 5 ;) (type $FUNCSIG$v)
(drop
(i32.const 200)
)
(call $willCollide)
)
- (func $only-b (type $FUNCSIG$v$0)
+ (func $only-b (; 6 ;) (type $FUNCSIG$v$0)
(drop
(i32.const 111)
)
@@ -124,7 +124,7 @@
(i32.const 5678)
)
)
- (func $willCollide$0 (type $FUNCSIG$v$0)
+ (func $willCollide$0 (; 7 ;) (type $FUNCSIG$v$0)
(drop
(i32.const 222)
)
diff --git a/test/merge/basics.wast.combined.finalized.opt b/test/merge/basics.wast.combined.finalized.opt
index 7f57d67da..978e57dc8 100644
--- a/test/merge/basics.wast.combined.finalized.opt
+++ b/test/merge/basics.wast.combined.finalized.opt
@@ -20,7 +20,7 @@
(export "exp-collide2" (func $willCollide))
(export "exp-b" (func $only-b))
(export "exp-b-nameCollided" (func $willCollide$0))
- (func $only-a (type $FUNCSIG$v)
+ (func $only-a (; 4 ;) (type $FUNCSIG$v)
(nop)
(call $only-a)
(call $some-func)
@@ -42,11 +42,11 @@
(i32.const 1234)
)
)
- (func $willCollide (type $FUNCSIG$v)
+ (func $willCollide (; 5 ;) (type $FUNCSIG$v)
(nop)
(call $willCollide)
)
- (func $only-b (type $FUNCSIG$v)
+ (func $only-b (; 6 ;) (type $FUNCSIG$v)
(nop)
(call $only-b)
(call $some-func-b)
@@ -77,7 +77,7 @@
(i32.const 5678)
)
)
- (func $willCollide$0 (type $FUNCSIG$v)
+ (func $willCollide$0 (; 7 ;) (type $FUNCSIG$v)
(nop)
(call $willCollide$0)
)
diff --git a/test/merge/basics.wast.combined.opt b/test/merge/basics.wast.combined.opt
index c595d00da..447b8affc 100644
--- a/test/merge/basics.wast.combined.opt
+++ b/test/merge/basics.wast.combined.opt
@@ -24,7 +24,7 @@
(export "exp-collide2" (func $willCollide))
(export "exp-b" (func $only-b))
(export "exp-b-nameCollided" (func $willCollide$0))
- (func $only-a (type $FUNCSIG$v)
+ (func $only-a (; 4 ;) (type $FUNCSIG$v)
(nop)
(call $only-a)
(call $some-func)
@@ -50,11 +50,11 @@
(i32.const 1234)
)
)
- (func $willCollide (type $FUNCSIG$v)
+ (func $willCollide (; 5 ;) (type $FUNCSIG$v)
(nop)
(call $willCollide)
)
- (func $only-b (type $FUNCSIG$v)
+ (func $only-b (; 6 ;) (type $FUNCSIG$v)
(nop)
(call $only-b)
(call $some-func-b)
@@ -113,7 +113,7 @@
(i32.const 5678)
)
)
- (func $willCollide$0 (type $FUNCSIG$v)
+ (func $willCollide$0 (; 7 ;) (type $FUNCSIG$v)
(nop)
(call $willCollide$0)
)
diff --git a/test/merge/dylib.wasm.combined b/test/merge/dylib.wasm.combined
index eea90db8e..90905ac0c 100644
--- a/test/merge/dylib.wasm.combined
+++ b/test/merge/dylib.wasm.combined
@@ -25,7 +25,7 @@
(export "runPostSets" (func $runPostSets))
(export "_str" (global $global$2))
(export "_foo" (func $_foo))
- (func $_main (type $2) (result i32)
+ (func $_main (; 1 ;) (type $2) (result i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
(drop
@@ -37,12 +37,12 @@
)
)
)
- (func $runPostSets (type $3)
+ (func $runPostSets (; 2 ;) (type $3)
(block $label$1
(nop)
)
)
- (func $__post_instantiate (type $3)
+ (func $__post_instantiate (; 3 ;) (type $3)
(call $__post_instantiate$0)
(block $label$1
(block $label$2
@@ -62,7 +62,7 @@
)
)
)
- (func $_foo (type $1$0) (result i32)
+ (func $_foo (; 4 ;) (type $1$0) (result i32)
(local $var$0 i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
@@ -73,12 +73,12 @@
)
)
)
- (func $runPostSets$0 (type $2$0)
+ (func $runPostSets$0 (; 5 ;) (type $2$0)
(block $label$1
(nop)
)
)
- (func $__post_instantiate$0 (type $2$0)
+ (func $__post_instantiate$0 (; 6 ;) (type $2$0)
(block $label$1
(block $label$2
(set_global $global$0$0
diff --git a/test/merge/dylib.wasm.combined.finalized b/test/merge/dylib.wasm.combined.finalized
index 1a6ae5400..ce81b7652 100644
--- a/test/merge/dylib.wasm.combined.finalized
+++ b/test/merge/dylib.wasm.combined.finalized
@@ -25,7 +25,7 @@
(export "runPostSets" (func $runPostSets))
(export "_str" (global $global$2))
(export "_foo" (func $_foo))
- (func $_main (type $2) (result i32)
+ (func $_main (; 1 ;) (type $2) (result i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
(drop
@@ -37,12 +37,12 @@
)
)
)
- (func $runPostSets (type $3)
+ (func $runPostSets (; 2 ;) (type $3)
(block $label$1
(nop)
)
)
- (func $__post_instantiate (type $3)
+ (func $__post_instantiate (; 3 ;) (type $3)
(call $__post_instantiate$0)
(block $label$1
(block $label$2
@@ -62,7 +62,7 @@
)
)
)
- (func $_foo (type $1$0) (result i32)
+ (func $_foo (; 4 ;) (type $1$0) (result i32)
(local $var$0 i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
@@ -73,12 +73,12 @@
)
)
)
- (func $runPostSets$0 (type $2$0)
+ (func $runPostSets$0 (; 5 ;) (type $2$0)
(block $label$1
(nop)
)
)
- (func $__post_instantiate$0 (type $2$0)
+ (func $__post_instantiate$0 (; 6 ;) (type $2$0)
(block $label$1
(block $label$2
(set_global $global$0$0
diff --git a/test/merge/dylib.wasm.combined.finalized.opt b/test/merge/dylib.wasm.combined.finalized.opt
index fa3f7bd70..61896fd78 100644
--- a/test/merge/dylib.wasm.combined.finalized.opt
+++ b/test/merge/dylib.wasm.combined.finalized.opt
@@ -17,7 +17,7 @@
(export "runPostSets" (func $runPostSets))
(export "_str" (global $global$2))
(export "_foo" (func $_foo))
- (func $_main (type $2) (result i32)
+ (func $_main (; 1 ;) (type $2) (result i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
(drop
@@ -29,10 +29,10 @@
)
)
)
- (func $runPostSets (type $3)
+ (func $runPostSets (; 2 ;) (type $3)
(nop)
)
- (func $__post_instantiate (type $3)
+ (func $__post_instantiate (; 3 ;) (type $3)
(call $__post_instantiate$0)
(block $label$1
(block $label$2
@@ -49,7 +49,7 @@
)
)
)
- (func $_foo (type $2) (result i32)
+ (func $_foo (; 4 ;) (type $2) (result i32)
(local $var$0 i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
@@ -60,10 +60,10 @@
)
)
)
- (func $runPostSets$0 (type $3)
+ (func $runPostSets$0 (; 5 ;) (type $3)
(nop)
)
- (func $__post_instantiate$0 (type $3)
+ (func $__post_instantiate$0 (; 6 ;) (type $3)
(block $label$1
(block $label$2
(set_global $global$0$0
diff --git a/test/merge/dylib.wasm.combined.opt b/test/merge/dylib.wasm.combined.opt
index 046fe9e48..a2c98417b 100644
--- a/test/merge/dylib.wasm.combined.opt
+++ b/test/merge/dylib.wasm.combined.opt
@@ -20,7 +20,7 @@
(export "runPostSets" (func $runPostSets))
(export "_str" (global $global$2))
(export "_foo" (func $_foo))
- (func $_main (type $2) (result i32)
+ (func $_main (; 1 ;) (type $2) (result i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
(drop
@@ -32,10 +32,10 @@
)
)
)
- (func $runPostSets (type $3)
+ (func $runPostSets (; 2 ;) (type $3)
(nop)
)
- (func $__post_instantiate (type $3)
+ (func $__post_instantiate (; 3 ;) (type $3)
(call $__post_instantiate$0)
(block $label$1
(block $label$2
@@ -55,7 +55,7 @@
)
)
)
- (func $_foo (type $2) (result i32)
+ (func $_foo (; 4 ;) (type $2) (result i32)
(local $var$0 i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
@@ -66,10 +66,10 @@
)
)
)
- (func $runPostSets$0 (type $3)
+ (func $runPostSets$0 (; 5 ;) (type $3)
(nop)
)
- (func $__post_instantiate$0 (type $3)
+ (func $__post_instantiate$0 (; 6 ;) (type $3)
(block $label$1
(block $label$2
(set_global $global$0$0
diff --git a/test/merge/fusing.wast.combined b/test/merge/fusing.wast.combined
index 2a7adf6e2..37f0358ec 100644
--- a/test/merge/fusing.wast.combined
+++ b/test/merge/fusing.wast.combined
@@ -15,7 +15,7 @@
(export "aglobal" (global $a-global))
(export "bar" (func $bar-func))
(export "bglobal" (global $b-global))
- (func $foo-func (type $FUNCSIG$v)
+ (func $foo-func (; 0 ;) (type $FUNCSIG$v)
(drop
(i32.const 1337)
)
@@ -27,10 +27,10 @@
(get_global $b-global)
)
)
- (func $b (type $FUNCSIG$v$0)
+ (func $b (; 1 ;) (type $FUNCSIG$v$0)
(call $foo-func)
)
- (func $bar-func (type $FUNCSIG$v$0)
+ (func $bar-func (; 2 ;) (type $FUNCSIG$v$0)
(drop
(f64.const 3.14159)
)
diff --git a/test/merge/fusing.wast.combined.finalized b/test/merge/fusing.wast.combined.finalized
index 7896e448d..2675454bd 100644
--- a/test/merge/fusing.wast.combined.finalized
+++ b/test/merge/fusing.wast.combined.finalized
@@ -15,7 +15,7 @@
(export "aglobal" (global $a-global))
(export "bar" (func $bar-func))
(export "bglobal" (global $b-global))
- (func $foo-func (type $FUNCSIG$v)
+ (func $foo-func (; 0 ;) (type $FUNCSIG$v)
(drop
(i32.const 1337)
)
@@ -27,10 +27,10 @@
(get_global $b-global)
)
)
- (func $b (type $FUNCSIG$v$0)
+ (func $b (; 1 ;) (type $FUNCSIG$v$0)
(call $foo-func)
)
- (func $bar-func (type $FUNCSIG$v$0)
+ (func $bar-func (; 2 ;) (type $FUNCSIG$v$0)
(drop
(f64.const 3.14159)
)
diff --git a/test/merge/fusing.wast.combined.finalized.opt b/test/merge/fusing.wast.combined.finalized.opt
index 9df0a5cdc..2e8a19ebf 100644
--- a/test/merge/fusing.wast.combined.finalized.opt
+++ b/test/merge/fusing.wast.combined.finalized.opt
@@ -9,7 +9,7 @@
(export "aglobal" (global $a-global))
(export "bar" (func $bar-func))
(export "bglobal" (global $b-global))
- (func $foo-func (type $FUNCSIG$v)
+ (func $foo-func (; 0 ;) (type $FUNCSIG$v)
(nop)
(call $bar-func)
(drop
@@ -19,7 +19,7 @@
(get_global $b-global)
)
)
- (func $bar-func (type $FUNCSIG$v)
+ (func $bar-func (; 1 ;) (type $FUNCSIG$v)
(nop)
(drop
(get_global $a-global)
diff --git a/test/merge/fusing.wast.combined.opt b/test/merge/fusing.wast.combined.opt
index c8d58890e..b48bc0534 100644
--- a/test/merge/fusing.wast.combined.opt
+++ b/test/merge/fusing.wast.combined.opt
@@ -12,7 +12,7 @@
(export "aglobal" (global $a-global))
(export "bar" (func $bar-func))
(export "bglobal" (global $b-global))
- (func $foo-func (type $FUNCSIG$v)
+ (func $foo-func (; 0 ;) (type $FUNCSIG$v)
(nop)
(call $bar-func)
(drop
@@ -22,7 +22,7 @@
(get_global $b-global)
)
)
- (func $bar-func (type $FUNCSIG$v)
+ (func $bar-func (; 1 ;) (type $FUNCSIG$v)
(nop)
(drop
(get_global $a-global)
diff --git a/test/merge/main-lacks-segments.wast.combined b/test/merge/main-lacks-segments.wast.combined
index 33eb89435..91fcde27d 100644
--- a/test/merge/main-lacks-segments.wast.combined
+++ b/test/merge/main-lacks-segments.wast.combined
@@ -8,7 +8,7 @@
(import "env" "tableBase" (global $tableBase$0 i32))
(elem (get_global $tableBase) $foo $foo)
(data (get_global $memoryBase) "hello, this is some data!\00\00\00\00\00\00\00")
- (func $foo (type $0)
+ (func $foo (; 0 ;) (type $0)
(drop
(i32.add
(get_global $tableBase$0)
diff --git a/test/merge/main-lacks-segments.wast.combined.finalized b/test/merge/main-lacks-segments.wast.combined.finalized
index 923ffd34d..dd180662d 100644
--- a/test/merge/main-lacks-segments.wast.combined.finalized
+++ b/test/merge/main-lacks-segments.wast.combined.finalized
@@ -8,7 +8,7 @@
(import "env" "tableBase" (global $tableBase$0 i32))
(elem (i32.const 8) $foo $foo)
(data (i32.const 1024) "hello, this is some data!\00\00\00\00\00\00\00")
- (func $foo (type $0)
+ (func $foo (; 0 ;) (type $0)
(drop
(i32.add
(i32.const 8)
diff --git a/test/merge/main-lacks-segments.wast.combined.finalized.opt b/test/merge/main-lacks-segments.wast.combined.finalized.opt
index 0aeb4c62d..d37e26438 100644
--- a/test/merge/main-lacks-segments.wast.combined.finalized.opt
+++ b/test/merge/main-lacks-segments.wast.combined.finalized.opt
@@ -4,7 +4,7 @@
(import "env" "table" (table 10 anyfunc))
(elem (i32.const 8) $foo $foo)
(data (i32.const 1024) "hello, this is some data!")
- (func $foo (type $0)
+ (func $foo (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/merge/main-lacks-segments.wast.combined.opt b/test/merge/main-lacks-segments.wast.combined.opt
index 4ea294a8e..6fb489574 100644
--- a/test/merge/main-lacks-segments.wast.combined.opt
+++ b/test/merge/main-lacks-segments.wast.combined.opt
@@ -8,7 +8,7 @@
(import "env" "tableBase" (global $tableBase$0 i32))
(elem (get_global $tableBase) $foo $foo)
(data (get_global $memoryBase) "hello, this is some data!")
- (func $foo (type $0)
+ (func $foo (; 0 ;) (type $0)
(drop
(get_global $tableBase$0)
)
diff --git a/test/merge/post-instantiate-a.wast.combined b/test/merge/post-instantiate-a.wast.combined
index 725e1df28..23ff598af 100644
--- a/test/merge/post-instantiate-a.wast.combined
+++ b/test/merge/post-instantiate-a.wast.combined
@@ -8,12 +8,12 @@
(memory $0 0)
(data (get_global $memoryBase) "")
(export "__post_instantiate" (func $0))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(drop
(i32.const 1000)
)
)
- (func $0$0 (type $0$0)
+ (func $0$0 (; 1 ;) (type $0$0)
(nop)
)
)
diff --git a/test/merge/post-instantiate-a.wast.combined.finalized b/test/merge/post-instantiate-a.wast.combined.finalized
index e50f84e79..edd0d85e3 100644
--- a/test/merge/post-instantiate-a.wast.combined.finalized
+++ b/test/merge/post-instantiate-a.wast.combined.finalized
@@ -8,12 +8,12 @@
(memory $0 1)
(data (i32.const 1024) "")
(export "__post_instantiate" (func $0))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(drop
(i32.const 1000)
)
)
- (func $0$0 (type $0$0)
+ (func $0$0 (; 1 ;) (type $0$0)
(nop)
)
)
diff --git a/test/merge/post-instantiate-a.wast.combined.finalized.opt b/test/merge/post-instantiate-a.wast.combined.finalized.opt
index d0a9b4a6a..38b293167 100644
--- a/test/merge/post-instantiate-a.wast.combined.finalized.opt
+++ b/test/merge/post-instantiate-a.wast.combined.finalized.opt
@@ -3,7 +3,7 @@
(memory $0 1)
(data (i32.const 1024) "")
(export "__post_instantiate" (func $0))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/merge/post-instantiate-a.wast.combined.opt b/test/merge/post-instantiate-a.wast.combined.opt
index b4ecf737b..8d0f05db2 100644
--- a/test/merge/post-instantiate-a.wast.combined.opt
+++ b/test/merge/post-instantiate-a.wast.combined.opt
@@ -5,7 +5,7 @@
(memory $0 0)
(data (get_global $memoryBase) "")
(export "__post_instantiate" (func $0))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/merge/post-instantiate-b.wast.combined b/test/merge/post-instantiate-b.wast.combined
index df4bfe76d..74f4ede17 100644
--- a/test/merge/post-instantiate-b.wast.combined
+++ b/test/merge/post-instantiate-b.wast.combined
@@ -8,10 +8,10 @@
(memory $0 0)
(data (get_global $memoryBase) "")
(export "__post_instantiate" (func $0$0))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(nop)
)
- (func $0$0 (type $0$0)
+ (func $0$0 (; 1 ;) (type $0$0)
(drop
(i32.const 2000)
)
diff --git a/test/merge/post-instantiate-b.wast.combined.finalized b/test/merge/post-instantiate-b.wast.combined.finalized
index a6f2d309b..b9ec7cba5 100644
--- a/test/merge/post-instantiate-b.wast.combined.finalized
+++ b/test/merge/post-instantiate-b.wast.combined.finalized
@@ -8,10 +8,10 @@
(memory $0 1)
(data (i32.const 1024) "")
(export "__post_instantiate" (func $0$0))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(nop)
)
- (func $0$0 (type $0$0)
+ (func $0$0 (; 1 ;) (type $0$0)
(drop
(i32.const 2000)
)
diff --git a/test/merge/post-instantiate-b.wast.combined.finalized.opt b/test/merge/post-instantiate-b.wast.combined.finalized.opt
index 367bd834b..749a6a74e 100644
--- a/test/merge/post-instantiate-b.wast.combined.finalized.opt
+++ b/test/merge/post-instantiate-b.wast.combined.finalized.opt
@@ -3,7 +3,7 @@
(memory $0 1)
(data (i32.const 1024) "")
(export "__post_instantiate" (func $0$0))
- (func $0$0 (type $0$0)
+ (func $0$0 (; 0 ;) (type $0$0)
(nop)
)
)
diff --git a/test/merge/post-instantiate-b.wast.combined.opt b/test/merge/post-instantiate-b.wast.combined.opt
index b847fc5e8..f52546012 100644
--- a/test/merge/post-instantiate-b.wast.combined.opt
+++ b/test/merge/post-instantiate-b.wast.combined.opt
@@ -5,7 +5,7 @@
(memory $0 0)
(data (get_global $memoryBase) "")
(export "__post_instantiate" (func $0$0))
- (func $0$0 (type $0$0)
+ (func $0$0 (; 0 ;) (type $0$0)
(nop)
)
)
diff --git a/test/merge/printf.wast.combined b/test/merge/printf.wast.combined
index f8dcc3d0c..6ea657750 100644
--- a/test/merge/printf.wast.combined
+++ b/test/merge/printf.wast.combined
@@ -14,10 +14,10 @@
(data (get_global $memoryBase) "")
(export "_printf" (func $625))
- (func $625 (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $625 (; 1 ;) (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.const 102030)
)
- (func $b (type $1)
+ (func $b (; 2 ;) (type $1)
(drop
(call $625
(i32.const 11)
diff --git a/test/merge/printf.wast.combined.finalized b/test/merge/printf.wast.combined.finalized
index c72f0d28f..7ec67f602 100644
--- a/test/merge/printf.wast.combined.finalized
+++ b/test/merge/printf.wast.combined.finalized
@@ -14,10 +14,10 @@
(data (i32.const 1024) "")
(export "_printf" (func $625))
- (func $625 (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $625 (; 1 ;) (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.const 102030)
)
- (func $b (type $1)
+ (func $b (; 2 ;) (type $1)
(drop
(call $625
(i32.const 11)
diff --git a/test/merge/printf.wast.combined.finalized.opt b/test/merge/printf.wast.combined.finalized.opt
index a801ab875..52276eed8 100644
--- a/test/merge/printf.wast.combined.finalized.opt
+++ b/test/merge/printf.wast.combined.finalized.opt
@@ -4,7 +4,7 @@
(import "env" "table" (table 8 anyfunc))
(export "_printf" (func $625))
- (func $625 (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $625 (; 0 ;) (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.const 102030)
)
)
diff --git a/test/merge/printf.wast.combined.opt b/test/merge/printf.wast.combined.opt
index ae913e40e..e3471d636 100644
--- a/test/merge/printf.wast.combined.opt
+++ b/test/merge/printf.wast.combined.opt
@@ -7,7 +7,7 @@
(data (get_global $memoryBase) "")
(export "_printf" (func $625))
- (func $625 (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $625 (; 0 ;) (type $FUNCSIG$iii) (param $var$0 i32) (param $var$1 i32) (result i32)
(i32.const 102030)
)
)
diff --git a/test/min.fromasm b/test/min.fromasm
index d52aac5d3..ecee68833 100644
--- a/test/min.fromasm
+++ b/test/min.fromasm
@@ -10,14 +10,14 @@
(export "neg" (func $legalstub$neg))
(export "bitcasts" (func $legalstub$bitcasts))
(export "ctzzzz" (func $ctzzzz))
- (func $floats (param $0 f32) (result f32)
+ (func $floats (; 0 ;) (param $0 f32) (result f32)
(local $1 f32)
(f32.add
(get_local $1)
(get_local $0)
)
)
- (func $neg (param $0 i32) (param $1 i32) (result f32)
+ (func $neg (; 1 ;) (param $0 i32) (param $1 i32) (result f32)
(i32.store
(get_local $0)
(get_local $1)
@@ -28,19 +28,19 @@
)
)
)
- (func $bitcasts (param $0 i32) (param $1 f32)
+ (func $bitcasts (; 2 ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $ctzzzz (result i32)
+ (func $ctzzzz (; 3 ;) (result i32)
(i32.const 2)
)
- (func $ub (result i32)
+ (func $ub (; 4 ;) (result i32)
(drop
(call $ub)
)
(get_global $M)
)
- (func $legalstub$floats (param $0 f64) (result f64)
+ (func $legalstub$floats (; 5 ;) (param $0 f64) (result f64)
(f64.promote/f32
(call $floats
(f32.demote/f64
@@ -49,7 +49,7 @@
)
)
)
- (func $legalstub$neg (param $0 i32) (param $1 i32) (result f64)
+ (func $legalstub$neg (; 6 ;) (param $0 i32) (param $1 i32) (result f64)
(f64.promote/f32
(call $neg
(get_local $0)
@@ -57,7 +57,7 @@
)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 7 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
diff --git a/test/min.fromasm.clamp b/test/min.fromasm.clamp
index d52aac5d3..ecee68833 100644
--- a/test/min.fromasm.clamp
+++ b/test/min.fromasm.clamp
@@ -10,14 +10,14 @@
(export "neg" (func $legalstub$neg))
(export "bitcasts" (func $legalstub$bitcasts))
(export "ctzzzz" (func $ctzzzz))
- (func $floats (param $0 f32) (result f32)
+ (func $floats (; 0 ;) (param $0 f32) (result f32)
(local $1 f32)
(f32.add
(get_local $1)
(get_local $0)
)
)
- (func $neg (param $0 i32) (param $1 i32) (result f32)
+ (func $neg (; 1 ;) (param $0 i32) (param $1 i32) (result f32)
(i32.store
(get_local $0)
(get_local $1)
@@ -28,19 +28,19 @@
)
)
)
- (func $bitcasts (param $0 i32) (param $1 f32)
+ (func $bitcasts (; 2 ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $ctzzzz (result i32)
+ (func $ctzzzz (; 3 ;) (result i32)
(i32.const 2)
)
- (func $ub (result i32)
+ (func $ub (; 4 ;) (result i32)
(drop
(call $ub)
)
(get_global $M)
)
- (func $legalstub$floats (param $0 f64) (result f64)
+ (func $legalstub$floats (; 5 ;) (param $0 f64) (result f64)
(f64.promote/f32
(call $floats
(f32.demote/f64
@@ -49,7 +49,7 @@
)
)
)
- (func $legalstub$neg (param $0 i32) (param $1 i32) (result f64)
+ (func $legalstub$neg (; 6 ;) (param $0 i32) (param $1 i32) (result f64)
(f64.promote/f32
(call $neg
(get_local $0)
@@ -57,7 +57,7 @@
)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 7 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
diff --git a/test/min.fromasm.clamp.no-opts b/test/min.fromasm.clamp.no-opts
index d0cc78eb0..02579216d 100644
--- a/test/min.fromasm.clamp.no-opts
+++ b/test/min.fromasm.clamp.no-opts
@@ -11,7 +11,7 @@
(export "neg" (func $legalstub$neg))
(export "bitcasts" (func $legalstub$bitcasts))
(export "ctzzzz" (func $ctzzzz))
- (func $floats (param $f f32) (result f32)
+ (func $floats (; 0 ;) (param $f f32) (result f32)
(local $t f32)
(return
(f32.add
@@ -20,7 +20,7 @@
)
)
)
- (func $neg (param $k i32) (param $p i32) (result f32)
+ (func $neg (; 1 ;) (param $k i32) (param $p i32) (result f32)
(local $n f32)
(set_local $n
(f32.neg
@@ -39,7 +39,7 @@
(get_local $n)
)
)
- (func $bitcasts (param $i i32) (param $f f32)
+ (func $bitcasts (; 2 ;) (param $i i32) (param $f f32)
(drop
(f32.reinterpret/i32
(get_local $i)
@@ -58,14 +58,14 @@
)
)
)
- (func $ctzzzz (result i32)
+ (func $ctzzzz (; 3 ;) (result i32)
(return
(i32.ctz
(i32.const 4660)
)
)
)
- (func $ub (result i32)
+ (func $ub (; 4 ;) (result i32)
(drop
(call $ub)
)
@@ -73,7 +73,7 @@
(get_global $M)
)
)
- (func $legalstub$floats (param $0 f64) (result f64)
+ (func $legalstub$floats (; 5 ;) (param $0 f64) (result f64)
(f64.promote/f32
(call $floats
(f32.demote/f64
@@ -82,7 +82,7 @@
)
)
)
- (func $legalstub$neg (param $0 i32) (param $1 i32) (result f64)
+ (func $legalstub$neg (; 6 ;) (param $0 i32) (param $1 i32) (result f64)
(f64.promote/f32
(call $neg
(get_local $0)
@@ -90,7 +90,7 @@
)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 7 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
diff --git a/test/min.fromasm.imprecise b/test/min.fromasm.imprecise
index aabb1e3a5..37a1416ff 100644
--- a/test/min.fromasm.imprecise
+++ b/test/min.fromasm.imprecise
@@ -9,14 +9,14 @@
(export "neg" (func $legalstub$neg))
(export "bitcasts" (func $legalstub$bitcasts))
(export "ctzzzz" (func $ctzzzz))
- (func $floats (param $0 f32) (result f32)
+ (func $floats (; 0 ;) (param $0 f32) (result f32)
(local $1 f32)
(f32.add
(get_local $1)
(get_local $0)
)
)
- (func $neg (param $0 i32) (param $1 i32) (result f32)
+ (func $neg (; 1 ;) (param $0 i32) (param $1 i32) (result f32)
(i32.store
(get_local $0)
(get_local $1)
@@ -27,19 +27,19 @@
)
)
)
- (func $bitcasts (param $0 i32) (param $1 f32)
+ (func $bitcasts (; 2 ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $ctzzzz (result i32)
+ (func $ctzzzz (; 3 ;) (result i32)
(i32.const 2)
)
- (func $ub (result i32)
+ (func $ub (; 4 ;) (result i32)
(drop
(call $ub)
)
(get_global $M)
)
- (func $legalstub$floats (param $0 f64) (result f64)
+ (func $legalstub$floats (; 5 ;) (param $0 f64) (result f64)
(f64.promote/f32
(call $floats
(f32.demote/f64
@@ -48,7 +48,7 @@
)
)
)
- (func $legalstub$neg (param $0 i32) (param $1 i32) (result f64)
+ (func $legalstub$neg (; 6 ;) (param $0 i32) (param $1 i32) (result f64)
(f64.promote/f32
(call $neg
(get_local $0)
@@ -56,7 +56,7 @@
)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 7 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
diff --git a/test/min.fromasm.imprecise.no-opts b/test/min.fromasm.imprecise.no-opts
index d0cc78eb0..02579216d 100644
--- a/test/min.fromasm.imprecise.no-opts
+++ b/test/min.fromasm.imprecise.no-opts
@@ -11,7 +11,7 @@
(export "neg" (func $legalstub$neg))
(export "bitcasts" (func $legalstub$bitcasts))
(export "ctzzzz" (func $ctzzzz))
- (func $floats (param $f f32) (result f32)
+ (func $floats (; 0 ;) (param $f f32) (result f32)
(local $t f32)
(return
(f32.add
@@ -20,7 +20,7 @@
)
)
)
- (func $neg (param $k i32) (param $p i32) (result f32)
+ (func $neg (; 1 ;) (param $k i32) (param $p i32) (result f32)
(local $n f32)
(set_local $n
(f32.neg
@@ -39,7 +39,7 @@
(get_local $n)
)
)
- (func $bitcasts (param $i i32) (param $f f32)
+ (func $bitcasts (; 2 ;) (param $i i32) (param $f f32)
(drop
(f32.reinterpret/i32
(get_local $i)
@@ -58,14 +58,14 @@
)
)
)
- (func $ctzzzz (result i32)
+ (func $ctzzzz (; 3 ;) (result i32)
(return
(i32.ctz
(i32.const 4660)
)
)
)
- (func $ub (result i32)
+ (func $ub (; 4 ;) (result i32)
(drop
(call $ub)
)
@@ -73,7 +73,7 @@
(get_global $M)
)
)
- (func $legalstub$floats (param $0 f64) (result f64)
+ (func $legalstub$floats (; 5 ;) (param $0 f64) (result f64)
(f64.promote/f32
(call $floats
(f32.demote/f64
@@ -82,7 +82,7 @@
)
)
)
- (func $legalstub$neg (param $0 i32) (param $1 i32) (result f64)
+ (func $legalstub$neg (; 6 ;) (param $0 i32) (param $1 i32) (result f64)
(f64.promote/f32
(call $neg
(get_local $0)
@@ -90,7 +90,7 @@
)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 7 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
diff --git a/test/min.fromasm.no-opts b/test/min.fromasm.no-opts
index d0cc78eb0..02579216d 100644
--- a/test/min.fromasm.no-opts
+++ b/test/min.fromasm.no-opts
@@ -11,7 +11,7 @@
(export "neg" (func $legalstub$neg))
(export "bitcasts" (func $legalstub$bitcasts))
(export "ctzzzz" (func $ctzzzz))
- (func $floats (param $f f32) (result f32)
+ (func $floats (; 0 ;) (param $f f32) (result f32)
(local $t f32)
(return
(f32.add
@@ -20,7 +20,7 @@
)
)
)
- (func $neg (param $k i32) (param $p i32) (result f32)
+ (func $neg (; 1 ;) (param $k i32) (param $p i32) (result f32)
(local $n f32)
(set_local $n
(f32.neg
@@ -39,7 +39,7 @@
(get_local $n)
)
)
- (func $bitcasts (param $i i32) (param $f f32)
+ (func $bitcasts (; 2 ;) (param $i i32) (param $f f32)
(drop
(f32.reinterpret/i32
(get_local $i)
@@ -58,14 +58,14 @@
)
)
)
- (func $ctzzzz (result i32)
+ (func $ctzzzz (; 3 ;) (result i32)
(return
(i32.ctz
(i32.const 4660)
)
)
)
- (func $ub (result i32)
+ (func $ub (; 4 ;) (result i32)
(drop
(call $ub)
)
@@ -73,7 +73,7 @@
(get_global $M)
)
)
- (func $legalstub$floats (param $0 f64) (result f64)
+ (func $legalstub$floats (; 5 ;) (param $0 f64) (result f64)
(f64.promote/f32
(call $floats
(f32.demote/f64
@@ -82,7 +82,7 @@
)
)
)
- (func $legalstub$neg (param $0 i32) (param $1 i32) (result f64)
+ (func $legalstub$neg (; 6 ;) (param $0 i32) (param $1 i32) (result f64)
(f64.promote/f32
(call $neg
(get_local $0)
@@ -90,7 +90,7 @@
)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 7 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
diff --git a/test/min.wast.from-wast b/test/min.wast.from-wast
index 8942f2ff4..c58551fe3 100644
--- a/test/min.wast.from-wast
+++ b/test/min.wast.from-wast
@@ -5,14 +5,14 @@
(type $3 (func (param i32 i32 i32) (result i32)))
(memory $0 256 256)
(export "floats" (func $floats))
- (func $floats (type $0) (param $f f32) (result f32)
+ (func $floats (; 0 ;) (type $0) (param $f f32) (result f32)
(local $t f32)
(f32.add
(get_local $t)
(get_local $f)
)
)
- (func $neg (type $1) (param $k i32) (param $p i32) (result f32)
+ (func $neg (; 1 ;) (type $1) (param $k i32) (param $p i32) (result f32)
(local $n f32)
(tee_local $n
(f32.neg
@@ -28,7 +28,7 @@
)
)
)
- (func $littleswitch (type $2) (param $x i32) (result i32)
+ (func $littleswitch (; 2 ;) (type $2) (param $x i32) (result i32)
(block $topmost (result i32)
(block $switch-case$2
(block $switch-case$1
@@ -49,7 +49,7 @@
(i32.const 0)
)
)
- (func $f1 (type $3) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $f1 (; 3 ;) (type $3) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(block $topmost (result i32)
(get_local $i3)
)
diff --git a/test/min.wast.fromBinary b/test/min.wast.fromBinary
index 9017a76df..272f10f7f 100644
--- a/test/min.wast.fromBinary
+++ b/test/min.wast.fromBinary
@@ -5,14 +5,14 @@
(type $3 (func (param i32 i32 i32) (result i32)))
(memory $0 256 256)
(export "floats" (func $floats))
- (func $floats (type $0) (param $var$0 f32) (result f32)
+ (func $floats (; 0 ;) (type $0) (param $var$0 f32) (result f32)
(local $var$1 f32)
(f32.add
(get_local $var$1)
(get_local $var$0)
)
)
- (func $neg (type $1) (param $var$0 i32) (param $var$1 i32) (result f32)
+ (func $neg (; 1 ;) (type $1) (param $var$0 i32) (param $var$1 i32) (result f32)
(local $var$2 f32)
(tee_local $var$2
(f32.neg
@@ -28,7 +28,7 @@
)
)
)
- (func $littleswitch (type $2) (param $var$0 i32) (result i32)
+ (func $littleswitch (; 2 ;) (type $2) (param $var$0 i32) (result i32)
(block $label$1 (result i32)
(block $label$2
(block $label$3
@@ -48,7 +48,7 @@
)
)
)
- (func $f1 (type $3) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (result i32)
+ (func $f1 (; 3 ;) (type $3) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (result i32)
(get_local $var$2)
)
)
diff --git a/test/min.wast.fromBinary.noDebugInfo b/test/min.wast.fromBinary.noDebugInfo
index 75718561b..c76976a51 100644
--- a/test/min.wast.fromBinary.noDebugInfo
+++ b/test/min.wast.fromBinary.noDebugInfo
@@ -5,14 +5,14 @@
(type $3 (func (param i32 i32 i32) (result i32)))
(memory $0 256 256)
(export "floats" (func $0))
- (func $0 (type $0) (param $var$0 f32) (result f32)
+ (func $0 (; 0 ;) (type $0) (param $var$0 f32) (result f32)
(local $var$1 f32)
(f32.add
(get_local $var$1)
(get_local $var$0)
)
)
- (func $1 (type $1) (param $var$0 i32) (param $var$1 i32) (result f32)
+ (func $1 (; 1 ;) (type $1) (param $var$0 i32) (param $var$1 i32) (result f32)
(local $var$2 f32)
(tee_local $var$2
(f32.neg
@@ -28,7 +28,7 @@
)
)
)
- (func $2 (type $2) (param $var$0 i32) (result i32)
+ (func $2 (; 2 ;) (type $2) (param $var$0 i32) (result i32)
(block $label$1 (result i32)
(block $label$2
(block $label$3
@@ -48,7 +48,7 @@
)
)
)
- (func $3 (type $3) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (result i32)
+ (func $3 (; 3 ;) (type $3) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (result i32)
(get_local $var$2)
)
)
diff --git a/test/noffi_f32.fromasm b/test/noffi_f32.fromasm
index 4236c215f..bc91cd66b 100644
--- a/test/noffi_f32.fromasm
+++ b/test/noffi_f32.fromasm
@@ -8,13 +8,13 @@
(data (get_global $memoryBase) "noffi_f32.asm.js")
(export "main" (func $main))
(export "exportf" (func $exportf))
- (func $exportf (param $0 f32) (result f32)
+ (func $exportf (; 1 ;) (param $0 f32) (result f32)
(f32.add
(get_local $0)
(f32.const 1)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importf
(f32.const 3.4000000953674316)
diff --git a/test/noffi_f32.fromasm.clamp b/test/noffi_f32.fromasm.clamp
index 4236c215f..bc91cd66b 100644
--- a/test/noffi_f32.fromasm.clamp
+++ b/test/noffi_f32.fromasm.clamp
@@ -8,13 +8,13 @@
(data (get_global $memoryBase) "noffi_f32.asm.js")
(export "main" (func $main))
(export "exportf" (func $exportf))
- (func $exportf (param $0 f32) (result f32)
+ (func $exportf (; 1 ;) (param $0 f32) (result f32)
(f32.add
(get_local $0)
(f32.const 1)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importf
(f32.const 3.4000000953674316)
diff --git a/test/noffi_f32.fromasm.clamp.no-opts b/test/noffi_f32.fromasm.clamp.no-opts
index 3e6d142c0..2dce4dbaa 100644
--- a/test/noffi_f32.fromasm.clamp.no-opts
+++ b/test/noffi_f32.fromasm.clamp.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(export "main" (func $main))
(export "exportf" (func $exportf))
- (func $exportf (param $a f32) (result f32)
+ (func $exportf (; 1 ;) (param $a f32) (result f32)
(return
(f32.add
(get_local $a)
@@ -15,7 +15,7 @@
)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importf
(f32.const 3.4000000953674316)
diff --git a/test/noffi_f32.fromasm.imprecise b/test/noffi_f32.fromasm.imprecise
index 5553a036a..94c518385 100644
--- a/test/noffi_f32.fromasm.imprecise
+++ b/test/noffi_f32.fromasm.imprecise
@@ -7,13 +7,13 @@
(import "env" "tableBase" (global $tableBase i32))
(export "main" (func $main))
(export "exportf" (func $exportf))
- (func $exportf (param $0 f32) (result f32)
+ (func $exportf (; 1 ;) (param $0 f32) (result f32)
(f32.add
(get_local $0)
(f32.const 1)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importf
(f32.const 3.4000000953674316)
diff --git a/test/noffi_f32.fromasm.imprecise.no-opts b/test/noffi_f32.fromasm.imprecise.no-opts
index 3e6d142c0..2dce4dbaa 100644
--- a/test/noffi_f32.fromasm.imprecise.no-opts
+++ b/test/noffi_f32.fromasm.imprecise.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(export "main" (func $main))
(export "exportf" (func $exportf))
- (func $exportf (param $a f32) (result f32)
+ (func $exportf (; 1 ;) (param $a f32) (result f32)
(return
(f32.add
(get_local $a)
@@ -15,7 +15,7 @@
)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importf
(f32.const 3.4000000953674316)
diff --git a/test/noffi_f32.fromasm.no-opts b/test/noffi_f32.fromasm.no-opts
index 3e6d142c0..2dce4dbaa 100644
--- a/test/noffi_f32.fromasm.no-opts
+++ b/test/noffi_f32.fromasm.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(export "main" (func $main))
(export "exportf" (func $exportf))
- (func $exportf (param $a f32) (result f32)
+ (func $exportf (; 1 ;) (param $a f32) (result f32)
(return
(f32.add
(get_local $a)
@@ -15,7 +15,7 @@
)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importf
(f32.const 3.4000000953674316)
diff --git a/test/noffi_i64.fromasm b/test/noffi_i64.fromasm
index 65aacd9d3..fd179943c 100644
--- a/test/noffi_i64.fromasm
+++ b/test/noffi_i64.fromasm
@@ -8,13 +8,13 @@
(data (get_global $memoryBase) "noffi_i64.asm.js")
(export "_add" (func $add))
(export "_main" (func $main))
- (func $add (param $0 i64) (param $1 i64) (result i64)
+ (func $add (; 1 ;) (param $0 i64) (param $1 i64) (result i64)
(i64.add
(get_local $1)
(get_local $0)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
diff --git a/test/noffi_i64.fromasm.clamp b/test/noffi_i64.fromasm.clamp
index 65aacd9d3..fd179943c 100644
--- a/test/noffi_i64.fromasm.clamp
+++ b/test/noffi_i64.fromasm.clamp
@@ -8,13 +8,13 @@
(data (get_global $memoryBase) "noffi_i64.asm.js")
(export "_add" (func $add))
(export "_main" (func $main))
- (func $add (param $0 i64) (param $1 i64) (result i64)
+ (func $add (; 1 ;) (param $0 i64) (param $1 i64) (result i64)
(i64.add
(get_local $1)
(get_local $0)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
diff --git a/test/noffi_i64.fromasm.clamp.no-opts b/test/noffi_i64.fromasm.clamp.no-opts
index f6fd65454..20eb477d2 100644
--- a/test/noffi_i64.fromasm.clamp.no-opts
+++ b/test/noffi_i64.fromasm.clamp.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(export "_add" (func $add))
(export "_main" (func $main))
- (func $add (param $a i64) (param $b i64) (result i64)
+ (func $add (; 1 ;) (param $a i64) (param $b i64) (result i64)
(local $c i64)
(set_local $c
(i64.add
@@ -19,7 +19,7 @@
(get_local $c)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
diff --git a/test/noffi_i64.fromasm.imprecise b/test/noffi_i64.fromasm.imprecise
index 925e29862..014bcaec0 100644
--- a/test/noffi_i64.fromasm.imprecise
+++ b/test/noffi_i64.fromasm.imprecise
@@ -7,13 +7,13 @@
(import "env" "tableBase" (global $tableBase i32))
(export "_add" (func $add))
(export "_main" (func $main))
- (func $add (param $0 i64) (param $1 i64) (result i64)
+ (func $add (; 1 ;) (param $0 i64) (param $1 i64) (result i64)
(i64.add
(get_local $1)
(get_local $0)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
diff --git a/test/noffi_i64.fromasm.imprecise.no-opts b/test/noffi_i64.fromasm.imprecise.no-opts
index f6fd65454..20eb477d2 100644
--- a/test/noffi_i64.fromasm.imprecise.no-opts
+++ b/test/noffi_i64.fromasm.imprecise.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(export "_add" (func $add))
(export "_main" (func $main))
- (func $add (param $a i64) (param $b i64) (result i64)
+ (func $add (; 1 ;) (param $a i64) (param $b i64) (result i64)
(local $c i64)
(set_local $c
(i64.add
@@ -19,7 +19,7 @@
(get_local $c)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
diff --git a/test/noffi_i64.fromasm.no-opts b/test/noffi_i64.fromasm.no-opts
index f6fd65454..20eb477d2 100644
--- a/test/noffi_i64.fromasm.no-opts
+++ b/test/noffi_i64.fromasm.no-opts
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(export "_add" (func $add))
(export "_main" (func $main))
- (func $add (param $a i64) (param $b i64) (result i64)
+ (func $add (; 1 ;) (param $a i64) (param $b i64) (result i64)
(local $c i64)
(set_local $c
(i64.add
@@ -19,7 +19,7 @@
(get_local $c)
)
)
- (func $main (result i32)
+ (func $main (; 2 ;) (result i32)
(drop
(call $importll
(i64.const 2)
diff --git a/test/passes/O.bin.txt b/test/passes/O.bin.txt
index ae707917c..1b74f5db4 100644
--- a/test/passes/O.bin.txt
+++ b/test/passes/O.bin.txt
@@ -6,7 +6,7 @@
(export "fac-iter" (func $2))
(export "fac-iter-named" (func $3))
(export "fac-opt" (func $4))
- (func $0 (type $0) (param $0 i64) (result i64)
+ (func $0 (; 0 ;) (type $0) (param $0 i64) (result i64)
(if (result i64)
(i64.eq
(get_local $0)
@@ -24,7 +24,7 @@
)
)
)
- (func $1 (type $0) (param $0 i64) (result i64)
+ (func $1 (; 1 ;) (type $0) (param $0 i64) (result i64)
(if (result i64)
(i64.eq
(get_local $0)
@@ -42,10 +42,10 @@
)
)
)
- (func $2 (type $0) (param $0 i64) (result i64)
+ (func $2 (; 2 ;) (type $0) (param $0 i64) (result i64)
(unreachable)
)
- (func $3 (type $0) (param $0 i64) (result i64)
+ (func $3 (; 3 ;) (type $0) (param $0 i64) (result i64)
(local $1 i64)
(set_local $1
(i64.const 1)
@@ -75,7 +75,7 @@
)
(get_local $1)
)
- (func $4 (type $0) (param $0 i64) (result i64)
+ (func $4 (; 4 ;) (type $0) (param $0 i64) (result i64)
(local $1 i64)
(set_local $1
(i64.const 1)
diff --git a/test/passes/O.txt b/test/passes/O.txt
index 4b340dcd7..7a4f76084 100644
--- a/test/passes/O.txt
+++ b/test/passes/O.txt
@@ -4,7 +4,7 @@
(memory $0 0)
(export "ret" (func $ret))
(export "waka" (func $if-0-unreachable-to-none))
- (func $ret (type $0) (result i32)
+ (func $ret (; 0 ;) (type $0) (result i32)
(block $out (result i32)
(drop
(call $ret)
@@ -18,7 +18,7 @@
(i32.const 999)
)
)
- (func $if-0-unreachable-to-none (type $1) (param $0 i64)
+ (func $if-0-unreachable-to-none (; 1 ;) (type $1) (param $0 i64)
(unreachable)
)
)
diff --git a/test/passes/O3_inlining.txt b/test/passes/O3_inlining.txt
index 6bf99d742..7931decf5 100644
--- a/test/passes/O3_inlining.txt
+++ b/test/passes/O3_inlining.txt
@@ -5,7 +5,7 @@
(global $global$1 (mut i32) (i32.const 100))
(memory $0 1 1)
(export "func_217" (func $1))
- (func $1 (type $1) (param $0 i32)
+ (func $1 (; 0 ;) (type $1) (param $0 i32)
(if
(get_global $global$1)
(unreachable)
diff --git a/test/passes/Oz.txt b/test/passes/Oz.txt
index c76cc0e5c..4ba8d8088 100644
--- a/test/passes/Oz.txt
+++ b/test/passes/Oz.txt
@@ -4,7 +4,7 @@
(memory $0 100 100)
(export "localcse" (func $basics))
(export "localcse-2" (func $8))
- (func $basics (type $0) (param $0 i32) (param $1 i32) (result i32)
+ (func $basics (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(i32.add
(tee_local $2
@@ -16,7 +16,7 @@
(get_local $2)
)
)
- (func $8 (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $8 (; 1 ;) (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(i32.store
(tee_local $2
diff --git a/test/passes/coalesce-locals-learning.txt b/test/passes/coalesce-locals-learning.txt
index 2377c4051..ecf2f4cd7 100644
--- a/test/passes/coalesce-locals-learning.txt
+++ b/test/passes/coalesce-locals-learning.txt
@@ -6,20 +6,20 @@
(type $4 (func (param i32)))
(import "env" "_emscripten_autodebug_i32" (func $_emscripten_autodebug_i32 (param i32 i32) (result i32)))
(memory $0 10)
- (func $nothing-to-do (type $2)
+ (func $nothing-to-do (; 1 ;) (type $2)
(local $0 i32)
(nop)
)
- (func $merge (type $2)
+ (func $merge (; 2 ;) (type $2)
(local $0 i32)
(nop)
)
- (func $leave-type (type $2)
+ (func $leave-type (; 3 ;) (type $2)
(local $0 i32)
(local $1 f32)
(nop)
)
- (func $leave-interfere (type $2)
+ (func $leave-interfere (; 4 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -35,7 +35,7 @@
(get_local $1)
)
)
- (func $almost-interfere (type $2)
+ (func $almost-interfere (; 5 ;) (type $2)
(local $0 i32)
(set_local $0
(i32.const 0)
@@ -50,7 +50,7 @@
(get_local $0)
)
)
- (func $redundant-copy (type $2)
+ (func $redundant-copy (; 6 ;) (type $2)
(local $0 i32)
(set_local $0
(i32.const 0)
@@ -60,7 +60,7 @@
(get_local $0)
)
)
- (func $ineffective-store (type $2)
+ (func $ineffective-store (; 7 ;) (type $2)
(local $0 i32)
(drop
(i32.const 0)
@@ -72,7 +72,7 @@
(get_local $0)
)
)
- (func $block (type $2)
+ (func $block (; 8 ;) (type $2)
(local $0 i32)
(block $block0
(set_local $0
@@ -83,7 +83,7 @@
(get_local $0)
)
)
- (func $see-both-sides (type $2)
+ (func $see-both-sides (; 9 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -101,7 +101,7 @@
(get_local $1)
)
)
- (func $see-br-and-ignore-dead (type $2)
+ (func $see-br-and-ignore-dead (; 10 ;) (type $2)
(local $0 i32)
(set_local $0
(i32.const 0)
@@ -122,7 +122,7 @@
(get_local $0)
)
)
- (func $see-block-body (type $2)
+ (func $see-block-body (; 11 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -141,7 +141,7 @@
(get_local $0)
)
)
- (func $zero-init (type $2)
+ (func $zero-init (; 12 ;) (type $2)
(local $0 i32)
(local $1 i32)
(drop
@@ -151,7 +151,7 @@
(get_local $1)
)
)
- (func $multi (type $2)
+ (func $multi (; 13 ;) (type $2)
(local $0 i32)
(local $1 i32)
(drop
@@ -161,7 +161,7 @@
(get_local $1)
)
)
- (func $if-else (type $2)
+ (func $if-else (; 14 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -174,7 +174,7 @@
)
)
)
- (func $if-else-parallel (type $2)
+ (func $if-else-parallel (; 15 ;) (type $2)
(local $0 i32)
(if
(i32.const 0)
@@ -196,7 +196,7 @@
)
)
)
- (func $if-else-after (type $2)
+ (func $if-else-after (; 16 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -215,7 +215,7 @@
(get_local $1)
)
)
- (func $if-else-through (type $2)
+ (func $if-else-through (; 17 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -240,7 +240,7 @@
(get_local $1)
)
)
- (func $if-through (type $2)
+ (func $if-through (; 18 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -262,7 +262,7 @@
(get_local $1)
)
)
- (func $if-through2 (type $2)
+ (func $if-through2 (; 19 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -281,7 +281,7 @@
(get_local $1)
)
)
- (func $if-through3 (type $2)
+ (func $if-through3 (; 20 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -299,7 +299,7 @@
)
)
)
- (func $if2 (type $2)
+ (func $if2 (; 21 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -316,7 +316,7 @@
)
)
)
- (func $if3 (type $2)
+ (func $if3 (; 22 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -334,7 +334,7 @@
(get_local $1)
)
)
- (func $if4 (type $2)
+ (func $if4 (; 23 ;) (type $2)
(local $0 i32)
(if
(i32.const 0)
@@ -354,7 +354,7 @@
(get_local $0)
)
)
- (func $if5 (type $2)
+ (func $if5 (; 24 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -372,7 +372,7 @@
(get_local $1)
)
)
- (func $loop (type $2)
+ (func $loop (; 25 ;) (type $2)
(local $0 i32)
(local $1 i32)
(block $out
@@ -390,7 +390,7 @@
)
)
)
- (func $interfere-in-dead (type $2)
+ (func $interfere-in-dead (; 26 ;) (type $2)
(local $0 i32)
(block $block
(br $block)
@@ -402,7 +402,7 @@
)
)
)
- (func $interfere-in-dead2 (type $2)
+ (func $interfere-in-dead2 (; 27 ;) (type $2)
(local $0 i32)
(block $block
(unreachable)
@@ -414,7 +414,7 @@
)
)
)
- (func $interfere-in-dead3 (type $2)
+ (func $interfere-in-dead3 (; 28 ;) (type $2)
(local $0 i32)
(block $block
(return)
@@ -426,7 +426,7 @@
)
)
)
- (func $params (type $3) (param $0 i32) (param $1 f32)
+ (func $params (; 29 ;) (type $3) (param $0 i32) (param $1 f32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -440,7 +440,7 @@
(get_local $4)
)
)
- (func $interfere-in-dead4 (type $2)
+ (func $interfere-in-dead4 (; 30 ;) (type $2)
(local $0 i32)
(local $1 i32)
(block $block
@@ -455,7 +455,7 @@
)
)
)
- (func $switch (type $2)
+ (func $switch (; 31 ;) (type $2)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -481,7 +481,7 @@
(get_local $2)
)
)
- (func $greedy-can-be-happy (type $2)
+ (func $greedy-can-be-happy (; 32 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -584,7 +584,7 @@
)
)
)
- (func $greedy-can-be-sad (type $2)
+ (func $greedy-can-be-sad (; 33 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -687,7 +687,7 @@
)
)
)
- (func $_memcpy (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 34 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -847,7 +847,7 @@
(get_local $3)
)
)
- (func $this-is-effective-i-tell-you (type $4) (param $0 i32)
+ (func $this-is-effective-i-tell-you (; 35 ;) (type $4) (param $0 i32)
(if
(i32.const -1)
(block $block1
diff --git a/test/passes/coalesce-locals.txt b/test/passes/coalesce-locals.txt
index 32da026ac..b7544af44 100644
--- a/test/passes/coalesce-locals.txt
+++ b/test/passes/coalesce-locals.txt
@@ -12,20 +12,20 @@
(import "env" "get" (func $get (result i32)))
(import "env" "set" (func $set (param i32)))
(memory $0 10)
- (func $nothing-to-do (type $2)
+ (func $nothing-to-do (; 3 ;) (type $2)
(local $0 i32)
(nop)
)
- (func $merge (type $2)
+ (func $merge (; 4 ;) (type $2)
(local $0 i32)
(nop)
)
- (func $leave-type (type $2)
+ (func $leave-type (; 5 ;) (type $2)
(local $0 i32)
(local $1 f32)
(nop)
)
- (func $leave-interfere (type $2)
+ (func $leave-interfere (; 6 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -41,7 +41,7 @@
(get_local $1)
)
)
- (func $almost-interfere (type $2)
+ (func $almost-interfere (; 7 ;) (type $2)
(local $0 i32)
(set_local $0
(i32.const 0)
@@ -56,7 +56,7 @@
(get_local $0)
)
)
- (func $redundant-copy (type $2)
+ (func $redundant-copy (; 8 ;) (type $2)
(local $0 i32)
(set_local $0
(i32.const 0)
@@ -66,7 +66,7 @@
(get_local $0)
)
)
- (func $ineffective-store (type $2)
+ (func $ineffective-store (; 9 ;) (type $2)
(local $0 i32)
(drop
(i32.const 0)
@@ -78,7 +78,7 @@
(get_local $0)
)
)
- (func $block (type $2)
+ (func $block (; 10 ;) (type $2)
(local $0 i32)
(block $block0
(set_local $0
@@ -89,7 +89,7 @@
(get_local $0)
)
)
- (func $see-both-sides (type $2)
+ (func $see-both-sides (; 11 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -107,7 +107,7 @@
(get_local $1)
)
)
- (func $see-br-and-ignore-dead (type $2)
+ (func $see-br-and-ignore-dead (; 12 ;) (type $2)
(local $0 i32)
(set_local $0
(i32.const 0)
@@ -128,7 +128,7 @@
(get_local $0)
)
)
- (func $see-block-body (type $2)
+ (func $see-block-body (; 13 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -147,7 +147,7 @@
(get_local $0)
)
)
- (func $zero-init (type $2)
+ (func $zero-init (; 14 ;) (type $2)
(local $0 i32)
(local $1 i32)
(drop
@@ -157,7 +157,7 @@
(get_local $1)
)
)
- (func $multi (type $2)
+ (func $multi (; 15 ;) (type $2)
(local $0 i32)
(local $1 i32)
(drop
@@ -167,7 +167,7 @@
(get_local $1)
)
)
- (func $if-else (type $2)
+ (func $if-else (; 16 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -180,7 +180,7 @@
)
)
)
- (func $if-else-parallel (type $2)
+ (func $if-else-parallel (; 17 ;) (type $2)
(local $0 i32)
(if
(i32.const 0)
@@ -202,7 +202,7 @@
)
)
)
- (func $if-else-after (type $2)
+ (func $if-else-after (; 18 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -221,7 +221,7 @@
(get_local $1)
)
)
- (func $if-else-through (type $2)
+ (func $if-else-through (; 19 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -246,7 +246,7 @@
(get_local $1)
)
)
- (func $if-through (type $2)
+ (func $if-through (; 20 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -268,7 +268,7 @@
(get_local $1)
)
)
- (func $if-through2 (type $2)
+ (func $if-through2 (; 21 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -287,7 +287,7 @@
(get_local $1)
)
)
- (func $if-through3 (type $2)
+ (func $if-through3 (; 22 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -305,7 +305,7 @@
)
)
)
- (func $if2 (type $2)
+ (func $if2 (; 23 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -322,7 +322,7 @@
)
)
)
- (func $if3 (type $2)
+ (func $if3 (; 24 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -340,7 +340,7 @@
(get_local $1)
)
)
- (func $if4 (type $2)
+ (func $if4 (; 25 ;) (type $2)
(local $0 i32)
(if
(i32.const 0)
@@ -360,7 +360,7 @@
(get_local $0)
)
)
- (func $if5 (type $2)
+ (func $if5 (; 26 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -378,7 +378,7 @@
(get_local $1)
)
)
- (func $loop (type $2)
+ (func $loop (; 27 ;) (type $2)
(local $0 i32)
(local $1 i32)
(loop $in
@@ -394,7 +394,7 @@
(br $in)
)
)
- (func $interfere-in-dead (type $2)
+ (func $interfere-in-dead (; 28 ;) (type $2)
(local $0 i32)
(block $block
(br $block)
@@ -406,7 +406,7 @@
)
)
)
- (func $interfere-in-dead2 (type $2)
+ (func $interfere-in-dead2 (; 29 ;) (type $2)
(local $0 i32)
(block $block
(unreachable)
@@ -418,7 +418,7 @@
)
)
)
- (func $interfere-in-dead3 (type $2)
+ (func $interfere-in-dead3 (; 30 ;) (type $2)
(local $0 i32)
(block $block
(return)
@@ -430,7 +430,7 @@
)
)
)
- (func $params (type $3) (param $0 i32) (param $1 f32)
+ (func $params (; 31 ;) (type $3) (param $0 i32) (param $1 f32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -444,7 +444,7 @@
(get_local $4)
)
)
- (func $interfere-in-dead4 (type $2)
+ (func $interfere-in-dead4 (; 32 ;) (type $2)
(local $0 i32)
(local $1 i32)
(block $block
@@ -459,7 +459,7 @@
)
)
)
- (func $switch (type $2)
+ (func $switch (; 33 ;) (type $2)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -485,7 +485,7 @@
(get_local $2)
)
)
- (func $greedy-can-be-happy (type $2)
+ (func $greedy-can-be-happy (; 34 ;) (type $2)
(local $0 i32)
(local $1 i32)
(if
@@ -588,7 +588,7 @@
)
)
)
- (func $greedy-can-be-sad (type $2)
+ (func $greedy-can-be-sad (; 35 ;) (type $2)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -692,7 +692,7 @@
)
)
)
- (func $_memcpy (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 36 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -852,7 +852,7 @@
(get_local $3)
)
)
- (func $this-is-effective-i-tell-you (type $4) (param $0 i32)
+ (func $this-is-effective-i-tell-you (; 37 ;) (type $4) (param $0 i32)
(if
(i32.const -1)
(block $block1
@@ -870,7 +870,7 @@
(get_local $0)
)
)
- (func $prefer-remove-copies1 (type $2)
+ (func $prefer-remove-copies1 (; 38 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -887,7 +887,7 @@
(get_local $1)
)
)
- (func $prefer-remove-copies2 (type $2)
+ (func $prefer-remove-copies2 (; 39 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -904,7 +904,7 @@
(get_local $0)
)
)
- (func $in-unreachable (type $2)
+ (func $in-unreachable (; 40 ;) (type $2)
(local $0 i32)
(block $x
(return)
@@ -957,7 +957,7 @@
)
)
)
- (func $nop-in-unreachable (type $2)
+ (func $nop-in-unreachable (; 41 ;) (type $2)
(local $0 i32)
(block $block
(unreachable)
@@ -967,7 +967,7 @@
)
)
)
- (func $loop-backedge (type $2)
+ (func $loop-backedge (; 42 ;) (type $2)
(local $0 i32)
(local $1 i32)
(set_local $0
@@ -1004,7 +1004,7 @@
)
)
)
- (func $if-copy1 (type $2)
+ (func $if-copy1 (; 43 ;) (type $2)
(local $0 i32)
(local $1 i32)
(loop $top
@@ -1025,7 +1025,7 @@
(br $top)
)
)
- (func $if-copy2 (type $2)
+ (func $if-copy2 (; 44 ;) (type $2)
(local $0 i32)
(local $1 i32)
(loop $top
@@ -1044,7 +1044,7 @@
(br $top)
)
)
- (func $if-copy3 (type $2)
+ (func $if-copy3 (; 45 ;) (type $2)
(local $0 i32)
(local $1 i32)
(loop $top
@@ -1063,7 +1063,7 @@
(br $top)
)
)
- (func $if-copy4 (type $2)
+ (func $if-copy4 (; 46 ;) (type $2)
(local $0 i32)
(local $1 i32)
(loop $top
@@ -1083,7 +1083,7 @@
(br $top)
)
)
- (func $if-copy-tee (type $2)
+ (func $if-copy-tee (; 47 ;) (type $2)
(local $0 i32)
(local $1 i32)
(loop $top
@@ -1105,7 +1105,7 @@
(br $top)
)
)
- (func $tee_br (type $7) (param $0 i32) (result i32)
+ (func $tee_br (; 48 ;) (type $7) (param $0 i32) (result i32)
(block $b
(return
(br $b)
@@ -1113,7 +1113,7 @@
)
(i32.const 1)
)
- (func $unused-tee-with-child-if-no-else (type $4) (param $0 i32)
+ (func $unused-tee-with-child-if-no-else (; 49 ;) (type $4) (param $0 i32)
(loop $label$0
(drop
(if
@@ -1123,7 +1123,7 @@
)
)
)
- (func $tee_if_with_unreachable_else (type $8) (param $0 f64) (param $1 i32) (result i64)
+ (func $tee_if_with_unreachable_else (; 50 ;) (type $8) (param $0 f64) (param $1 i32) (result i64)
(call $tee_if_with_unreachable_else
(if (result f64)
(get_local $1)
@@ -1138,7 +1138,7 @@
)
)
)
- (func $tee_if_with_unreachable_true (type $8) (param $0 f64) (param $1 i32) (result i64)
+ (func $tee_if_with_unreachable_true (; 51 ;) (type $8) (param $0 f64) (param $1 i32) (result i64)
(call $tee_if_with_unreachable_else
(if (result f64)
(get_local $1)
diff --git a/test/passes/code-folding.txt b/test/passes/code-folding.txt
index a3c3f664c..646960a4e 100644
--- a/test/passes/code-folding.txt
+++ b/test/passes/code-folding.txt
@@ -4,7 +4,7 @@
(type $2 (func (result f32)))
(table 282 282 anyfunc)
(memory $0 1 1)
- (func $0 (type $1)
+ (func $0 (; 0 ;) (type $1)
(block $label$1
(if
(i32.const 1)
@@ -22,7 +22,7 @@
)
)
)
- (func $negative-zero (type $2) (result f32)
+ (func $negative-zero (; 1 ;) (type $2) (result f32)
(if (result f32)
(i32.const 0)
(block $label$0 (result f32)
@@ -33,7 +33,7 @@
)
)
)
- (func $negative-zero-b (type $2) (result f32)
+ (func $negative-zero-b (; 2 ;) (type $2) (result f32)
(drop
(i32.const 0)
)
@@ -41,7 +41,7 @@
(f32.const -0)
)
)
- (func $negative-zero-c (type $2) (result f32)
+ (func $negative-zero-c (; 3 ;) (type $2) (result f32)
(drop
(i32.const 0)
)
diff --git a/test/passes/code-pushing_ignore-implicit-traps.txt b/test/passes/code-pushing_ignore-implicit-traps.txt
index b20bc49aa..58b124ec9 100644
--- a/test/passes/code-pushing_ignore-implicit-traps.txt
+++ b/test/passes/code-pushing_ignore-implicit-traps.txt
@@ -2,7 +2,7 @@
(type $0 (func))
(type $1 (func (result i32)))
(memory $0 0)
- (func $push1 (type $0)
+ (func $push1 (; 0 ;) (type $0)
(local $x i32)
(block $out
(br_if $out
@@ -16,7 +16,7 @@
)
)
)
- (func $push2 (type $0)
+ (func $push2 (; 1 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -37,7 +37,7 @@
)
)
)
- (func $push1-twice (type $0)
+ (func $push1-twice (; 2 ;) (type $0)
(local $x i32)
(block $out
(br_if $out
@@ -54,7 +54,7 @@
)
)
)
- (func $push1-twiceb (type $0)
+ (func $push1-twiceb (; 3 ;) (type $0)
(local $x i32)
(block $out
(br_if $out
@@ -72,7 +72,7 @@
)
)
)
- (func $push2-twice (type $0)
+ (func $push2-twice (; 4 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -96,7 +96,7 @@
)
)
)
- (func $ignore-last (type $0)
+ (func $ignore-last (; 5 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -107,7 +107,7 @@
)
)
)
- (func $ignore-last2 (type $0)
+ (func $ignore-last2 (; 6 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -120,7 +120,7 @@
)
)
)
- (func $push-if (type $0)
+ (func $push-if (; 7 ;) (type $0)
(local $x i32)
(block $out
(if
@@ -135,7 +135,7 @@
)
)
)
- (func $push-dropped (type $1) (result i32)
+ (func $push-dropped (; 8 ;) (type $1) (result i32)
(local $x i32)
(block $out (result i32)
(drop
@@ -153,7 +153,7 @@
(i32.const 4)
)
)
- (func $push-past-stuff (type $0)
+ (func $push-past-stuff (; 9 ;) (type $0)
(local $x i32)
(block $out
(call $push-past-stuff)
@@ -171,7 +171,7 @@
)
)
)
- (func $fail-then-push (type $0)
+ (func $fail-then-push (; 10 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -198,7 +198,7 @@
)
)
)
- (func $used (type $0)
+ (func $used (; 11 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -212,7 +212,7 @@
)
)
)
- (func $not-sfa (type $0)
+ (func $not-sfa (; 12 ;) (type $0)
(local $x i32)
(set_local $x
(i32.const 1)
@@ -229,7 +229,7 @@
)
)
)
- (func $not-sfa2 (type $0)
+ (func $not-sfa2 (; 13 ;) (type $0)
(local $x i32)
(drop
(get_local $x)
@@ -246,7 +246,7 @@
)
)
)
- (func $used-out (type $0)
+ (func $used-out (; 14 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -263,7 +263,7 @@
(get_local $x)
)
)
- (func $value-might-interfere (type $0)
+ (func $value-might-interfere (; 15 ;) (type $0)
(local $x i32)
(block $out
(br_if $out
@@ -279,7 +279,7 @@
)
)
)
- (func $value-interferes (type $0)
+ (func $value-interferes (; 16 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -299,7 +299,7 @@
)
)
)
- (func $value-interferes-accumulation (type $0)
+ (func $value-interferes-accumulation (; 17 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -321,7 +321,7 @@
)
)
)
- (func $value-interferes-in-pushpoint (type $0)
+ (func $value-interferes-in-pushpoint (; 18 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -338,7 +338,7 @@
)
)
)
- (func $values-might-interfere (type $0)
+ (func $values-might-interfere (; 19 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -359,7 +359,7 @@
)
)
)
- (func $unpushed-interferes (type $0)
+ (func $unpushed-interferes (; 20 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -383,7 +383,7 @@
(get_local $y)
)
)
- (func $unpushed-ignorable (type $0)
+ (func $unpushed-ignorable (; 21 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -407,7 +407,7 @@
(get_local $x)
)
)
- (func $unpushed-ignorable-side-effect (type $0)
+ (func $unpushed-ignorable-side-effect (; 22 ;) (type $0)
(local $x i32)
(local $y i32)
(block $out
@@ -428,7 +428,7 @@
)
)
)
- (func $unpushed-side-effect-into-drop (type $0)
+ (func $unpushed-side-effect-into-drop (; 23 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
@@ -442,7 +442,7 @@
)
)
)
- (func $unpushed-side-effect-into-if (type $0)
+ (func $unpushed-side-effect-into-if (; 24 ;) (type $0)
(local $x i32)
(block $out
(set_local $x
diff --git a/test/passes/const-hoisting.txt b/test/passes/const-hoisting.txt
index 7023a5d6c..e878e3f72 100644
--- a/test/passes/const-hoisting.txt
+++ b/test/passes/const-hoisting.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $10-of-each (type $0)
+ (func $10-of-each (; 0 ;) (type $0)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -421,7 +421,7 @@
)
)
)
- (func $floats-10-times (type $0)
+ (func $floats-10-times (; 1 ;) (type $0)
(local $0 f32)
(local $1 f64)
(block
@@ -495,7 +495,7 @@
)
)
)
- (func $too-few (type $0)
+ (func $too-few (; 2 ;) (type $0)
(drop
(i32.const 8192)
)
@@ -512,7 +512,7 @@
(i32.const 8192)
)
)
- (func $just-enough (type $0)
+ (func $just-enough (; 3 ;) (type $0)
(local $0 i32)
(block
(set_local $0
@@ -540,7 +540,7 @@
)
)
)
- (func $too-few-b (type $0)
+ (func $too-few-b (; 4 ;) (type $0)
(drop
(i32.const 1048576)
)
@@ -551,7 +551,7 @@
(i32.const 1048576)
)
)
- (func $enough-b (type $0)
+ (func $enough-b (; 5 ;) (type $0)
(local $0 i32)
(block
(set_local $0
@@ -573,7 +573,7 @@
)
)
)
- (func $too-few-c (type $0)
+ (func $too-few-c (; 6 ;) (type $0)
(drop
(f32.const 0)
)
@@ -584,7 +584,7 @@
(f32.const 0)
)
)
- (func $enough-c (type $0)
+ (func $enough-c (; 7 ;) (type $0)
(local $0 f32)
(block
(set_local $0
@@ -606,12 +606,12 @@
)
)
)
- (func $too-few-d (type $0)
+ (func $too-few-d (; 8 ;) (type $0)
(drop
(f64.const 0)
)
)
- (func $enough-d (type $0)
+ (func $enough-d (; 9 ;) (type $0)
(local $0 f64)
(block
(set_local $0
diff --git a/test/passes/dce.txt b/test/passes/dce.txt
index ec5343986..17de5f228 100644
--- a/test/passes/dce.txt
+++ b/test/passes/dce.txt
@@ -10,10 +10,10 @@
(table 1 1 anyfunc)
(elem (i32.const 0) $call-me)
(memory $0 10)
- (func $call-me (type $ii) (param $0 i32) (param $1 i32)
+ (func $call-me (; 0 ;) (type $ii) (param $0 i32) (param $1 i32)
(nop)
)
- (func $code-to-kill (type $1)
+ (func $code-to-kill (; 1 ;) (type $1)
(local $x i32)
(block $out
(br $out)
@@ -264,20 +264,20 @@
(i32.const 1337)
)
)
- (func $killer (type $1)
+ (func $killer (; 2 ;) (type $1)
(unreachable)
)
- (func $target (type $1)
+ (func $target (; 3 ;) (type $1)
(drop
(i32.const 2000)
)
)
- (func $typed-block-none-then-unreachable (type $2) (result i32)
+ (func $typed-block-none-then-unreachable (; 4 ;) (type $2) (result i32)
(return
(i32.const 0)
)
)
- (func $typed-block-remove-br-changes-type (type $3) (param $$$0 i32) (result i32)
+ (func $typed-block-remove-br-changes-type (; 5 ;) (type $3) (param $$$0 i32) (result i32)
(block $switch$7
(block $switch-default$10
(block $switch-case$9
@@ -296,46 +296,46 @@
)
)
)
- (func $global (type $1)
+ (func $global (; 6 ;) (type $1)
(unreachable)
)
- (func $ret (type $2) (result i32)
+ (func $ret (; 7 ;) (type $2) (result i32)
(return
(i32.const 0)
)
)
- (func $unreachable-br (type $2) (result i32)
+ (func $unreachable-br (; 8 ;) (type $2) (result i32)
(block $out (result i32)
(br $out
(i32.const 0)
)
)
)
- (func $unreachable-br-loop (type $2) (result i32)
+ (func $unreachable-br-loop (; 9 ;) (type $2) (result i32)
(loop $out
(br $out)
)
)
- (func $unreachable-block-ends-switch (type $2) (result i32)
+ (func $unreachable-block-ends-switch (; 10 ;) (type $2) (result i32)
(block $label$3
(nop)
(unreachable)
)
)
- (func $unreachable-block-ends-br_if (type $1) (result i32)
+ (func $unreachable-block-ends-br_if (; 11 ;) (type $1) (result i32)
(block $label$2
(nop)
(unreachable)
)
)
- (func $unreachable-brs-3 (type $2) (result i32)
+ (func $unreachable-brs-3 (; 12 ;) (type $2) (result i32)
(block $label$0 (result i32)
(br $label$0
(i32.const 18)
)
)
)
- (func $unreachable-brs-4 (type $3) (param $var$0 i32) (result i32)
+ (func $unreachable-brs-4 (; 13 ;) (type $3) (param $var$0 i32) (result i32)
(drop
(i32.const 1)
)
@@ -346,7 +346,7 @@
(unreachable)
)
)
- (func $call-unreach (type $4) (param $var$0 i64) (param $var$1 i64) (result i64)
+ (func $call-unreach (; 14 ;) (type $4) (param $var$0 i64) (param $var$1 i64) (result i64)
(local $2 i64)
(if (result i64)
(i64.eqz
@@ -377,13 +377,13 @@
)
)
)
- (func $br-gone-means-block-type-changes-then-refinalize-at-end-is-too-late (type $1) (param $var$0 i32) (result i32)
+ (func $br-gone-means-block-type-changes-then-refinalize-at-end-is-too-late (; 15 ;) (type $1) (param $var$0 i32) (result i32)
(block $block
(nop)
(unreachable)
)
)
- (func $br-with-unreachable-value-should-not-give-a-block-a-value (type $1) (param $var$0 i32) (result i32)
+ (func $br-with-unreachable-value-should-not-give-a-block-a-value (; 16 ;) (type $1) (param $var$0 i32) (result i32)
(block $label$0 (result i32)
(block $block
(drop
@@ -396,39 +396,39 @@
)
)
)
- (func $replace-br-value-of-i32-with-unreachable (type $2) (result i32)
+ (func $replace-br-value-of-i32-with-unreachable (; 17 ;) (type $2) (result i32)
(block $label$1
(nop)
(unreachable)
)
)
- (func $shorten-block-requires-sync-refinalize (type $ii) (param $var$0 i32) (param $var$1 i32)
+ (func $shorten-block-requires-sync-refinalize (; 18 ;) (type $ii) (param $var$0 i32) (param $var$1 i32)
(unreachable)
)
- (func $block-with-type-but-is-unreachable (type $3) (param $var$0 i32) (result i32)
+ (func $block-with-type-but-is-unreachable (; 19 ;) (type $3) (param $var$0 i32) (result i32)
(block $block
(nop)
(unreachable)
)
)
- (func $if-with-type-but-is-unreachable (type $3) (param $var$0 i32) (result i32)
+ (func $if-with-type-but-is-unreachable (; 20 ;) (type $3) (param $var$0 i32) (result i32)
(if
(get_local $var$0)
(unreachable)
(unreachable)
)
)
- (func $unreachable-loop (type $1)
+ (func $unreachable-loop (; 21 ;) (type $1)
(unreachable)
)
- (func $br-block-from-unary (type $2) (result i32)
+ (func $br-block-from-unary (; 22 ;) (type $2) (result i32)
(block $label$6 (result i32)
(br $label$6
(i32.const 8)
)
)
)
- (func $replace-unary-with-br-child (type $1)
+ (func $replace-unary-with-br-child (; 23 ;) (type $1)
(drop
(block $label$6 (result i32)
(br $label$6
@@ -437,13 +437,13 @@
)
)
)
- (func $br_if-unreach-then-br_if-normal (type $1)
+ (func $br_if-unreach-then-br_if-normal (; 24 ;) (type $1)
(block $out
(nop)
(unreachable)
)
)
- (func $replace-with-unreachable-affects-parent (type $5) (param $var$0 f32) (param $var$1 i64)
+ (func $replace-with-unreachable-affects-parent (; 25 ;) (type $5) (param $var$0 f32) (param $var$1 i64)
(drop
(i64.const 0)
)
@@ -459,7 +459,7 @@
(unreachable)
)
)
- (func $replace-block-changes-later-when-if-goes (type $1)
+ (func $replace-block-changes-later-when-if-goes (; 26 ;) (type $1)
(block $top
(set_global $global$0
(i32.const 0)
@@ -475,7 +475,7 @@
)
)
)
- (func $helper (type $6) (param $var$0 f32) (param $var$1 i64) (result i32)
+ (func $helper (; 27 ;) (type $6) (param $var$0 f32) (param $var$1 i64) (result i32)
(i32.const 0)
)
)
@@ -483,7 +483,7 @@
(type $0 (func))
(global $global (mut f64) (f64.const 0))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(if
(i32.const 0)
(unreachable)
@@ -494,7 +494,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(local $local f64)
(if
(i32.const 0)
diff --git a/test/passes/dce_vacuum.bin.txt b/test/passes/dce_vacuum.bin.txt
index 9cc1cba3c..8e41656b4 100644
--- a/test/passes/dce_vacuum.bin.txt
+++ b/test/passes/dce_vacuum.bin.txt
@@ -4,7 +4,7 @@
(memory $0 0)
(export "f32.compute_radix" (func $0))
(export "f64.compute_radix" (func $1))
- (func $0 (type $0) (param $var$0 f32) (param $var$1 f32) (result f32)
+ (func $0 (; 0 ;) (type $0) (param $var$0 f32) (param $var$1 f32) (result f32)
(block $label$1
(loop $label$2
(br_if $label$2
@@ -47,7 +47,7 @@
)
)
)
- (func $1 (type $1) (param $var$0 f64) (param $var$1 f64) (result f64)
+ (func $1 (; 1 ;) (type $1) (param $var$0 f64) (param $var$1 f64) (result f64)
(block $label$1 (result f64)
(loop $label$2
(br_if $label$2
diff --git a/test/passes/dce_vacuum.txt b/test/passes/dce_vacuum.txt
index ac61cce04..6ee0a7876 100644
--- a/test/passes/dce_vacuum.txt
+++ b/test/passes/dce_vacuum.txt
@@ -3,15 +3,15 @@
(type $1 (func (param f32 f32) (result f32)))
(type $2 (func (param i64) (result i64)))
(memory $0 0)
- (func $__Z12serveroptionPc (type $0) (result i32)
+ (func $__Z12serveroptionPc (; 0 ;) (type $0) (result i32)
(return
(i32.const 0)
)
)
- (func $drop-unreachable (type $1) (param $var$0 f32) (param $var$1 f32) (result f32)
+ (func $drop-unreachable (; 1 ;) (type $1) (param $var$0 f32) (param $var$1 f32) (result f32)
(unreachable)
)
- (func $set-unreachable (type $2) (param $var$0 i64) (result i64)
+ (func $set-unreachable (; 2 ;) (type $2) (param $var$0 i64) (result i64)
(local $var$1 i64)
(local $var$2 i64)
(if
diff --git a/test/passes/duplicate-function-elimination.txt b/test/passes/duplicate-function-elimination.txt
index 3ffe3b7ba..9499b0011 100644
--- a/test/passes/duplicate-function-elimination.txt
+++ b/test/passes/duplicate-function-elimination.txt
@@ -1,26 +1,26 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(nop)
)
)
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(nop)
)
)
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(i32.const 0)
)
@@ -29,12 +29,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i32.const 1)
)
@@ -48,10 +48,10 @@
(export "keep2" (func $keep2))
(export "other" (func $keep2))
(start $keep2)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(nop)
)
- (func $caller (type $0)
+ (func $caller (; 1 ;) (type $0)
(call $keep2)
(call $keep2)
)
@@ -59,26 +59,26 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2-after-two-passes (type $0)
+ (func $keep2-after-two-passes (; 0 ;) (type $0)
(nop)
)
- (func $keep-caller (type $0)
+ (func $keep-caller (; 1 ;) (type $0)
(call $keep2-after-two-passes)
)
)
(module
(type $0 (func))
(memory $0 0)
- (func $keep-4 (type $0)
+ (func $keep-4 (; 0 ;) (type $0)
(nop)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(unreachable)
)
- (func $keep-caller (type $0)
+ (func $keep-caller (; 2 ;) (type $0)
(call $keep-4)
)
- (func $other-caller (type $0)
+ (func $other-caller (; 3 ;) (type $0)
(call $other)
)
)
@@ -88,20 +88,20 @@
(type $2 (func))
(type $3 (func (param i32)))
(memory $0 0)
- (func $keep4-similar-but-func-sig-differs (type $2)
+ (func $keep4-similar-but-func-sig-differs (; 0 ;) (type $2)
(drop
(i32.const 0)
)
)
- (func $other1 (type $3) (param $i i32)
+ (func $other1 (; 1 ;) (type $3) (param $i i32)
(drop
(i32.const 0)
)
)
- (func $other2 (type $T) (result i32)
+ (func $other2 (; 2 ;) (type $T) (result i32)
(i32.const 0)
)
- (func $other3 (type $S) (result i32)
+ (func $other3 (; 3 ;) (type $S) (result i32)
(i32.const 0)
)
)
@@ -109,22 +109,22 @@
(type $S (func (result i32)))
(type $1 (func (param i32)))
(memory $0 0)
- (func $keep2-similar-but-func-sig-differs (type $1) (param $i i32)
+ (func $keep2-similar-but-func-sig-differs (; 0 ;) (type $1) (param $i i32)
(drop
(i32.const 0)
)
)
- (func $other2 (type $S) (result i32)
+ (func $other2 (; 1 ;) (type $S) (result i32)
(i32.const 0)
)
)
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(nop)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(nop)
(nop)
)
@@ -132,7 +132,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(block $block0
)
)
@@ -140,11 +140,11 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $block0
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $block0
(nop)
)
@@ -153,7 +153,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(block $block0
(nop)
)
@@ -162,12 +162,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $block0
(nop)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $block0
(nop)
(unreachable)
@@ -177,12 +177,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $block0
(nop)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $block0
(unreachable)
)
@@ -191,7 +191,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase-since-block-names-do-not-matter (type $0)
+ (func $erase-since-block-names-do-not-matter (; 0 ;) (type $0)
(block $foo
)
)
@@ -199,7 +199,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase-since-block-names-do-not-matter (type $0)
+ (func $erase-since-block-names-do-not-matter (; 0 ;) (type $0)
(block $foo
(br $foo)
(br_table $foo $foo
@@ -211,7 +211,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $foo
(block $block
(drop
@@ -221,7 +221,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $bar
(block $block
(drop
@@ -235,14 +235,14 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $foo
(br_if $foo
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $bar
(br_if $bar
(i32.const 1)
@@ -253,7 +253,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(block $foo
(br_if $foo
(i32.const 0)
@@ -264,14 +264,14 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $foo
(br_table $foo $foo
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $bar
(br_table $bar $bar
(i32.const 1)
@@ -282,7 +282,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(loop $bar
(nop)
)
@@ -291,7 +291,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(block $foo (result i32)
(br_table $foo $foo
@@ -301,7 +301,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(block $bar (result i32)
(br_table $bar $bar
@@ -315,7 +315,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(block $foo
(block $bar
(br_table $foo $bar
@@ -328,7 +328,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(block $foo
(block $bar
(br_table $foo $bar
@@ -337,7 +337,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(block $bar
(block $foo
(br_table $foo $bar
@@ -350,17 +350,17 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(call $erase)
)
)
(module
(type $0 (func))
(memory $0 0)
- (func $keep2-but-in-theory-we-could-erase (type $0)
+ (func $keep2-but-in-theory-we-could-erase (; 0 ;) (type $0)
(call $keep2-but-in-theory-we-could-erase)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(call $other)
)
)
@@ -369,7 +369,7 @@
(import "env" "i" (func $i))
(import "env" "j" (func $j))
(memory $0 0)
- (func $erase (type $FUNCSIG$v)
+ (func $erase (; 2 ;) (type $FUNCSIG$v)
(call $i)
)
)
@@ -378,10 +378,10 @@
(import "env" "i" (func $i))
(import "env" "j" (func $j))
(memory $0 0)
- (func $keep2 (type $FUNCSIG$v)
+ (func $keep2 (; 2 ;) (type $FUNCSIG$v)
(call $i)
)
- (func $other (type $FUNCSIG$v)
+ (func $other (; 3 ;) (type $FUNCSIG$v)
(call $j)
)
)
@@ -390,7 +390,7 @@
(table 2 2 anyfunc)
(elem (i32.const 0) $erase $erase)
(memory $0 0)
- (func $erase (type $T)
+ (func $erase (; 0 ;) (type $T)
(call_indirect $T
(i32.const 0)
)
@@ -401,12 +401,12 @@
(table 2 2 anyfunc)
(elem (i32.const 0) $keep2 $other)
(memory $0 0)
- (func $keep2 (type $T)
+ (func $keep2 (; 0 ;) (type $T)
(call_indirect $T
(i32.const 0)
)
)
- (func $other (type $T)
+ (func $other (; 1 ;) (type $T)
(call_indirect $T
(i32.const 1)
)
@@ -418,12 +418,12 @@
(table 2 2 anyfunc)
(elem (i32.const 0) $keep2 $other)
(memory $0 0)
- (func $keep2 (type $T)
+ (func $keep2 (; 0 ;) (type $T)
(call_indirect $T
(i32.const 0)
)
)
- (func $other (type $T)
+ (func $other (; 1 ;) (type $T)
(call_indirect $S
(i32.const 0)
)
@@ -432,7 +432,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase-even-locals-with-different-names (type $0)
+ (func $erase-even-locals-with-different-names (; 0 ;) (type $0)
(local $i i32)
(drop
(get_local $i)
@@ -442,13 +442,13 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(local $i i32)
(drop
(get_local $i)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(local $j i64)
(drop
(get_local $j)
@@ -458,7 +458,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase-even-locals-with-different-names (type $0)
+ (func $erase-even-locals-with-different-names (; 0 ;) (type $0)
(local $i i32)
(set_local $i
(i32.const 0)
@@ -468,13 +468,13 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(local $i i32)
(set_local $i
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(local $j i64)
(set_local $j
(i64.const 0)
@@ -484,13 +484,13 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(local $i i32)
(set_local $i
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(local $j i32)
(set_local $j
(i32.const 1)
@@ -500,7 +500,7 @@
(module
(type $0 (func))
(memory $0 10)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(i32.load
(i32.const 0)
@@ -516,14 +516,14 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.load offset=3
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i32.load16_s offset=3
(i32.const 0)
@@ -534,14 +534,14 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.load16_s offset=3
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i32.load16_s offset=3 align=1
(i32.const 0)
@@ -552,14 +552,14 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.load16_s
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i32.load16_s offset=3
(i32.const 0)
@@ -570,14 +570,14 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.load16_s offset=3
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i32.load16_s offset=3
(i32.const 1)
@@ -588,14 +588,14 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.load16_u offset=3
(i32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i32.load16_s offset=3
(i32.const 0)
@@ -606,7 +606,7 @@
(module
(type $0 (func))
(memory $0 10)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(i32.store
(i32.const 0)
(i32.const 100)
@@ -620,13 +620,13 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(i32.store offset=3
(i32.const 0)
(i32.const 100)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(i32.store16 offset=3
(i32.const 0)
(i32.const 100)
@@ -636,13 +636,13 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(i32.store16 offset=3
(i32.const 0)
(i32.const 100)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(i32.store16 offset=3 align=1
(i32.const 0)
(i32.const 100)
@@ -652,13 +652,13 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(i32.store16
(i32.const 0)
(i32.const 100)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(i32.store16 offset=3
(i32.const 0)
(i32.const 100)
@@ -668,13 +668,13 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(i32.store16 offset=3
(i32.const 0)
(i32.const 100)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(i32.store16 offset=3
(i32.const 1)
(i32.const 100)
@@ -684,13 +684,13 @@
(module
(type $0 (func))
(memory $0 10)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(i32.store16 offset=3
(i32.const 0)
(i32.const 100)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(i32.store16 offset=3
(i32.const 0)
(i32.const 101)
@@ -700,12 +700,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i64.const 0)
)
@@ -714,12 +714,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.const 0)
)
@@ -728,12 +728,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i32.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f64.const 0)
)
@@ -742,12 +742,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(i64.const 0)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(i64.const 1)
)
@@ -756,12 +756,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f32.const 0.10000000149011612)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.const -0.10000000149011612)
)
@@ -770,12 +770,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f64.const 0.1)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f64.const 0.2)
)
@@ -784,7 +784,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(f32.abs
(f32.const 0)
@@ -795,14 +795,14 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f32.abs
(f32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.abs
(f32.const 1)
@@ -813,14 +813,14 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f32.abs
(f32.const 0)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.neg
(f32.const 0)
@@ -831,7 +831,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(f32.add
(f32.const 0)
@@ -843,7 +843,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f32.add
(f32.const 0)
@@ -851,7 +851,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.add
(f32.const 0)
@@ -863,7 +863,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f32.add
(f32.const 0)
@@ -871,7 +871,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.add
(f32.const 1)
@@ -883,7 +883,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep2 (type $0)
+ (func $keep2 (; 0 ;) (type $0)
(drop
(f32.add
(f32.const 0)
@@ -891,7 +891,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(f32.sub
(f32.const 0)
@@ -903,7 +903,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(select
(i32.const 0)
@@ -916,7 +916,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep (type $0)
+ (func $keep (; 0 ;) (type $0)
(drop
(select
(i32.const 0)
@@ -925,7 +925,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(select
(i32.const 1)
@@ -938,7 +938,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep (type $0)
+ (func $keep (; 0 ;) (type $0)
(drop
(select
(i32.const 0)
@@ -947,7 +947,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(select
(i32.const 0)
@@ -960,7 +960,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep (type $0)
+ (func $keep (; 0 ;) (type $0)
(drop
(select
(i32.const 0)
@@ -969,7 +969,7 @@
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(select
(i32.const 0)
@@ -982,14 +982,14 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(return)
)
)
(module
(type $0 (func (result i32)))
(memory $0 0)
- (func $erase (type $0) (result i32)
+ (func $erase (; 0 ;) (type $0) (result i32)
(return
(i32.const 0)
)
@@ -998,12 +998,12 @@
(module
(type $0 (func (result i32)))
(memory $0 0)
- (func $keep (type $0) (result i32)
+ (func $keep (; 0 ;) (type $0) (result i32)
(return
(i32.const 0)
)
)
- (func $other (type $0) (result i32)
+ (func $other (; 1 ;) (type $0) (result i32)
(return
(i32.const 1)
)
@@ -1012,7 +1012,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(current_memory)
)
@@ -1021,7 +1021,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $erase (type $0)
+ (func $erase (; 0 ;) (type $0)
(drop
(grow_memory
(i32.const 10)
@@ -1032,14 +1032,14 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep (type $0)
+ (func $keep (; 0 ;) (type $0)
(drop
(grow_memory
(i32.const 10)
)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(grow_memory
(i32.const 11)
@@ -1050,12 +1050,12 @@
(module
(type $0 (func))
(memory $0 0)
- (func $keep (type $0)
+ (func $keep (; 0 ;) (type $0)
(drop
(current_memory)
)
)
- (func $other (type $0)
+ (func $other (; 1 ;) (type $0)
(drop
(grow_memory
(i32.const 10)
diff --git a/test/passes/emit-js-wrapper=a.js.txt b/test/passes/emit-js-wrapper=a.js.txt
index 0432ccdc7..e390a8fbb 100644
--- a/test/passes/emit-js-wrapper=a.js.txt
+++ b/test/passes/emit-js-wrapper=a.js.txt
@@ -10,19 +10,19 @@
(export "types" (func $types))
(export "types2" (func $types2))
(export "types3" (func $types3))
- (func $add (type $0) (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (type $0) (param $x i32) (param $y i32) (result i32)
(i32.add
(get_local $x)
(get_local $y)
)
)
- (func $unexported (type $0) (param $x i32) (param $y i32) (result i32)
+ (func $unexported (; 1 ;) (type $0) (param $x i32) (param $y i32) (result i32)
(i32.add
(get_local $x)
(get_local $y)
)
)
- (func $no-return (type $1) (param $x i32)
+ (func $no-return (; 2 ;) (type $1) (param $x i32)
(drop
(i32.add
(get_local $x)
@@ -30,13 +30,13 @@
)
)
)
- (func $types (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64)
+ (func $types (; 3 ;) (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64)
(nop)
)
- (func $types2 (type $3) (param $x i32) (param $z f32) (param $w f64)
+ (func $types2 (; 4 ;) (type $3) (param $x i32) (param $z f32) (param $w f64)
(nop)
)
- (func $types3 (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64)
+ (func $types3 (; 5 ;) (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64)
(i64.const 1)
)
)
diff --git a/test/passes/emit-spec-wrapper=a.wat.txt b/test/passes/emit-spec-wrapper=a.wat.txt
index 0432ccdc7..e390a8fbb 100644
--- a/test/passes/emit-spec-wrapper=a.wat.txt
+++ b/test/passes/emit-spec-wrapper=a.wat.txt
@@ -10,19 +10,19 @@
(export "types" (func $types))
(export "types2" (func $types2))
(export "types3" (func $types3))
- (func $add (type $0) (param $x i32) (param $y i32) (result i32)
+ (func $add (; 0 ;) (type $0) (param $x i32) (param $y i32) (result i32)
(i32.add
(get_local $x)
(get_local $y)
)
)
- (func $unexported (type $0) (param $x i32) (param $y i32) (result i32)
+ (func $unexported (; 1 ;) (type $0) (param $x i32) (param $y i32) (result i32)
(i32.add
(get_local $x)
(get_local $y)
)
)
- (func $no-return (type $1) (param $x i32)
+ (func $no-return (; 2 ;) (type $1) (param $x i32)
(drop
(i32.add
(get_local $x)
@@ -30,13 +30,13 @@
)
)
)
- (func $types (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64)
+ (func $types (; 3 ;) (type $2) (param $x i32) (param $y i64) (param $z f32) (param $w f64)
(nop)
)
- (func $types2 (type $3) (param $x i32) (param $z f32) (param $w f64)
+ (func $types2 (; 4 ;) (type $3) (param $x i32) (param $z f32) (param $w f64)
(nop)
)
- (func $types3 (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64)
+ (func $types3 (; 5 ;) (type $4) (param $x i32) (param $z f32) (param $w f64) (result i64)
(i64.const 1)
)
)
diff --git a/test/passes/flatten.bin.txt b/test/passes/flatten.bin.txt
index 049bd361b..c035ebe4a 100644
--- a/test/passes/flatten.bin.txt
+++ b/test/passes/flatten.bin.txt
@@ -20,7 +20,7 @@
(export "type-param-f64" (func $7))
(export "type-mixed" (func $8))
(export "read" (func $9))
- (func $0 (type $0) (result i32)
+ (func $0 (; 0 ;) (type $0) (result i32)
(local $var$0 i32)
(local $1 i32)
(set_local $1
@@ -30,7 +30,7 @@
(get_local $1)
)
)
- (func $1 (type $1) (result i64)
+ (func $1 (; 1 ;) (type $1) (result i64)
(local $var$0 i64)
(local $1 i64)
(set_local $1
@@ -40,7 +40,7 @@
(get_local $1)
)
)
- (func $2 (type $2) (result f32)
+ (func $2 (; 2 ;) (type $2) (result f32)
(local $var$0 f32)
(local $1 f32)
(set_local $1
@@ -50,7 +50,7 @@
(get_local $1)
)
)
- (func $3 (type $3) (result f64)
+ (func $3 (; 3 ;) (type $3) (result f64)
(local $var$0 f64)
(local $1 f64)
(set_local $1
@@ -60,7 +60,7 @@
(get_local $1)
)
)
- (func $4 (type $4) (param $var$0 i32) (result i32)
+ (func $4 (; 4 ;) (type $4) (param $var$0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_local $var$0)
@@ -69,7 +69,7 @@
(get_local $1)
)
)
- (func $5 (type $5) (param $var$0 i64) (result i64)
+ (func $5 (; 5 ;) (type $5) (param $var$0 i64) (result i64)
(local $1 i64)
(set_local $1
(get_local $var$0)
@@ -78,7 +78,7 @@
(get_local $1)
)
)
- (func $6 (type $6) (param $var$0 f32) (result f32)
+ (func $6 (; 6 ;) (type $6) (param $var$0 f32) (result f32)
(local $1 f32)
(set_local $1
(get_local $var$0)
@@ -87,7 +87,7 @@
(get_local $1)
)
)
- (func $7 (type $7) (param $var$0 f64) (result f64)
+ (func $7 (; 7 ;) (type $7) (param $var$0 f64) (result f64)
(local $1 f64)
(set_local $1
(get_local $var$0)
@@ -96,7 +96,7 @@
(get_local $1)
)
)
- (func $8 (type $8) (param $var$0 i64) (param $var$1 f32) (param $var$2 f64) (param $var$3 i32) (param $var$4 i32)
+ (func $8 (; 8 ;) (type $8) (param $var$0 i64) (param $var$1 f32) (param $var$2 f64) (param $var$3 i32) (param $var$4 i32)
(local $var$5 i64)
(local $var$6 i64)
(local $var$7 f32)
@@ -108,7 +108,7 @@
)
(unreachable)
)
- (func $9 (type $9) (param $var$0 i64) (param $var$1 f32) (param $var$2 f64) (param $var$3 i32) (param $var$4 i32) (result f64)
+ (func $9 (; 9 ;) (type $9) (param $var$0 i64) (param $var$1 f32) (param $var$2 f64) (param $var$3 i32) (param $var$4 i32) (result f64)
(local $var$5 i64)
(local $var$6 i64)
(local $var$7 f32)
diff --git a/test/passes/flatten.txt b/test/passes/flatten.txt
index 76089bdb0..b8ec0c49a 100644
--- a/test/passes/flatten.txt
+++ b/test/passes/flatten.txt
@@ -9,7 +9,7 @@
(table 1 1 anyfunc)
(elem (i32.const 0) $call-me)
(memory $0 10)
- (func $a1 (type $1)
+ (func $a1 (; 0 ;) (type $1)
(drop
(i32.add
(i32.const 0)
@@ -17,7 +17,7 @@
)
)
)
- (func $a2 (type $2) (result i32)
+ (func $a2 (; 1 ;) (type $2) (result i32)
(return
(i32.add
(i32.const 0)
@@ -25,7 +25,7 @@
)
)
)
- (func $a3 (type $2) (result i32)
+ (func $a3 (; 2 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -47,7 +47,7 @@
(get_local $2)
)
)
- (func $a4 (type $1)
+ (func $a4 (; 3 ;) (type $1)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -70,7 +70,7 @@
)
(nop)
)
- (func $a5 (type $2) (result i32)
+ (func $a5 (; 4 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -102,7 +102,7 @@
(get_local $4)
)
)
- (func $a6 (type $2) (result i32)
+ (func $a6 (; 5 ;) (type $2) (result i32)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -147,7 +147,7 @@
(get_local $7)
)
)
- (func $a7 (type $2) (result i32)
+ (func $a7 (; 6 ;) (type $2) (result i32)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -202,7 +202,7 @@
(get_local $9)
)
)
- (func $a8 (type $2) (result i32)
+ (func $a8 (; 7 ;) (type $2) (result i32)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -276,7 +276,7 @@
(get_local $10)
)
)
- (func $a9 (type $2) (result i32)
+ (func $a9 (; 8 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -318,7 +318,7 @@
(get_local $5)
)
)
- (func $a10 (type $2) (result i32)
+ (func $a10 (; 9 ;) (type $2) (result i32)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -416,7 +416,7 @@
(get_local $10)
)
)
- (func $a11 (type $1)
+ (func $a11 (; 10 ;) (type $1)
(if
(i32.const 0)
(drop
@@ -425,7 +425,7 @@
)
(nop)
)
- (func $a12 (type $2) (result i32)
+ (func $a12 (; 11 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(if
@@ -444,7 +444,7 @@
(get_local $1)
)
)
- (func $a13 (type $2) (result i32)
+ (func $a13 (; 12 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -485,7 +485,7 @@
(get_local $4)
)
)
- (func $a14 (type $2) (result i32)
+ (func $a14 (; 13 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -513,7 +513,7 @@
(get_local $2)
)
)
- (func $a15 (type $1)
+ (func $a15 (; 14 ;) (type $1)
(local $0 i32)
(local $1 f32)
(local $2 f32)
@@ -546,7 +546,7 @@
)
(unreachable)
)
- (func $a16 (type $2) (result i32)
+ (func $a16 (; 15 ;) (type $2) (result i32)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -602,7 +602,7 @@
(get_local $7)
)
)
- (func $a17 (type $5) (result f32)
+ (func $a17 (; 16 ;) (type $5) (result f32)
(local $var$0 f32)
(local $1 f32)
(local $2 f32)
@@ -637,7 +637,7 @@
(get_local $5)
)
)
- (func $a18 (type $2) (result i32)
+ (func $a18 (; 17 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block $label$1
@@ -664,7 +664,7 @@
(get_local $1)
)
)
- (func $a19 (type $5) (result f32)
+ (func $a19 (; 18 ;) (type $5) (result f32)
(block $label$0
(block $label$1
(unreachable)
@@ -685,10 +685,10 @@
)
(unreachable)
)
- (func $call-me (type $ii) (param $0 i32) (param $1 i32)
+ (func $call-me (; 19 ;) (type $ii) (param $0 i32) (param $1 i32)
(nop)
)
- (func $code-to-kill (type $1)
+ (func $code-to-kill (; 20 ;) (type $1)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -1297,7 +1297,7 @@
)
(nop)
)
- (func $killer (type $1)
+ (func $killer (; 21 ;) (type $1)
(block
(unreachable)
(unreachable)
@@ -1307,12 +1307,12 @@
)
(unreachable)
)
- (func $target (type $1)
+ (func $target (; 22 ;) (type $1)
(drop
(i32.const 2000)
)
)
- (func $typed-block-none-then-unreachable (type $2) (result i32)
+ (func $typed-block-none-then-unreachable (; 23 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block $top-typed
@@ -1337,7 +1337,7 @@
(get_local $1)
)
)
- (func $typed-block-remove-br-changes-type (type $3) (param $$$0 i32) (result i32)
+ (func $typed-block-remove-br-changes-type (; 24 ;) (type $3) (param $$$0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -1387,7 +1387,7 @@
(get_local $4)
)
)
- (func $global (type $1)
+ (func $global (; 25 ;) (type $1)
(local $0 i32)
(block
(unreachable)
@@ -1406,7 +1406,7 @@
)
(unreachable)
)
- (func $ret (type $2) (result i32)
+ (func $ret (; 26 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block
@@ -1426,7 +1426,7 @@
(get_local $1)
)
)
- (func $unreachable-br (type $2) (result i32)
+ (func $unreachable-br (; 27 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block $out
@@ -1444,14 +1444,14 @@
(get_local $1)
)
)
- (func $unreachable-br-loop (type $2) (result i32)
+ (func $unreachable-br-loop (; 28 ;) (type $2) (result i32)
(loop $out
(br $out)
(unreachable)
)
(unreachable)
)
- (func $unreachable-block-ends-switch (type $2) (result i32)
+ (func $unreachable-block-ends-switch (; 29 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block $label$0
@@ -1477,7 +1477,7 @@
(get_local $1)
)
)
- (func $unreachable-block-ends-br_if (type $2) (result i32)
+ (func $unreachable-block-ends-br_if (; 30 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block $label$0
@@ -1503,7 +1503,7 @@
(get_local $1)
)
)
- (func $unreachable-brs-3 (type $2) (result i32)
+ (func $unreachable-brs-3 (; 31 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block $label$0
@@ -1527,7 +1527,7 @@
(get_local $1)
)
)
- (func $unreachable-brs-4 (type $3) (param $var$0 i32) (result i32)
+ (func $unreachable-brs-4 (; 32 ;) (type $3) (param $var$0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -1576,7 +1576,7 @@
(get_local $5)
)
)
- (func $call-unreach (type $4) (param $var$0 i64) (param $var$1 i64) (result i64)
+ (func $call-unreach (; 33 ;) (type $4) (param $var$0 i64) (param $var$1 i64) (result i64)
(local $2 i64)
(local $3 i64)
(local $4 i32)
@@ -1677,7 +1677,7 @@
(get_local $17)
)
)
- (func $test-flatten (type $1)
+ (func $test-flatten (; 34 ;) (type $1)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -2088,7 +2088,7 @@
)
(nop)
)
- (func $flatten-return-value (type $2) (result i32)
+ (func $flatten-return-value (; 35 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(block
@@ -2114,7 +2114,7 @@
(get_local $1)
)
)
- (func $unbug (type $1)
+ (func $unbug (; 36 ;) (type $1)
(local $12 i32)
(local $432 i32)
(local $430 i32)
@@ -2252,7 +2252,7 @@
)
(nop)
)
- (func $outer-block-typed (type $3) (param $var$0 i32) (result i32)
+ (func $outer-block-typed (; 37 ;) (type $3) (param $var$0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -2284,7 +2284,7 @@
(get_local $5)
)
)
- (func $nested-br_if-with-value (type $2) (result i32)
+ (func $nested-br_if-with-value (; 38 ;) (type $2) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -2328,7 +2328,7 @@
(get_local $6)
)
)
- (func $switch-unreachable (type $1)
+ (func $switch-unreachable (; 39 ;) (type $1)
(block $label$3
(unreachable)
(br_table $label$3
@@ -2338,7 +2338,7 @@
)
(nop)
)
- (func $br_if_order (type $3) (param $x i32) (result i32)
+ (func $br_if_order (; 40 ;) (type $3) (param $x i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
diff --git a/test/passes/flatten_rereloop.txt b/test/passes/flatten_rereloop.txt
index 38dbabc7c..ba5b6c67a 100644
--- a/test/passes/flatten_rereloop.txt
+++ b/test/passes/flatten_rereloop.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func (result f64)))
(memory $0 0)
- (func $0 (type $0) (result f64)
+ (func $0 (; 0 ;) (type $0) (result f64)
(local $0 f64)
(local $1 f64)
(local $2 i32)
diff --git a/test/passes/fuzz-exec_O.txt b/test/passes/fuzz-exec_O.txt
index 317988f8b..8ebd35fa1 100644
--- a/test/passes/fuzz-exec_O.txt
+++ b/test/passes/fuzz-exec_O.txt
@@ -7,7 +7,7 @@
(memory $0 1 1)
(export "func_0" (func $func_0))
(export "func_1" (func $func_1))
- (func $func_0 (type $0) (result i64)
+ (func $func_0 (; 0 ;) (type $0) (result i64)
(block $label$0 (result i64)
(br_if $label$0
(i64.const 1234)
@@ -17,7 +17,7 @@
)
)
)
- (func $func_1 (type $1) (result i32)
+ (func $func_1 (; 1 ;) (type $1) (result i32)
(i32.load16_s offset=22 align=1
(i32.const -1)
)
diff --git a/test/passes/inlining-optimizing.txt b/test/passes/inlining-optimizing.txt
index 8079d818a..e01882716 100644
--- a/test/passes/inlining-optimizing.txt
+++ b/test/passes/inlining-optimizing.txt
@@ -8,28 +8,28 @@
(memory $0 0)
(export "user" (func $user))
(export "exported" (func $exported))
- (func $user (type $0)
+ (func $user (; 0 ;) (type $0)
(call $exported)
(call $tabled)
(call $multi)
(call $multi)
)
- (func $exported (type $0)
+ (func $exported (; 1 ;) (type $0)
(nop)
)
- (func $recursive (type $0)
+ (func $recursive (; 2 ;) (type $0)
(call $recursive)
)
- (func $tabled (type $0)
+ (func $tabled (; 3 ;) (type $0)
(nop)
)
- (func $cycle1 (type $0)
+ (func $cycle1 (; 4 ;) (type $0)
(call $cycle2)
)
- (func $cycle2 (type $0)
+ (func $cycle2 (; 5 ;) (type $0)
(call $cycle1)
)
- (func $multi (type $0)
+ (func $multi (; 6 ;) (type $0)
(nop)
)
)
@@ -37,7 +37,7 @@
(type $0 (func (result i32)))
(type $1 (func))
(memory $0 0)
- (func $main (type $0) (result i32)
+ (func $main (; 0 ;) (type $0) (result i32)
(unreachable)
)
)
@@ -45,7 +45,7 @@
(type $0 (func (result i32)))
(type $1 (func (result i64)))
(memory $0 (shared 1 1))
- (func $1 (type $1) (result i64)
+ (func $1 (; 0 ;) (type $1) (result i64)
(i32.atomic.store16
(i32.const 0)
(i32.const 0)
diff --git a/test/passes/inlining-optimizing_optimize-level=3.txt b/test/passes/inlining-optimizing_optimize-level=3.txt
index d9583cbb3..ea3379c44 100644
--- a/test/passes/inlining-optimizing_optimize-level=3.txt
+++ b/test/passes/inlining-optimizing_optimize-level=3.txt
@@ -68,7 +68,7 @@
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "___udivmoddi4" (func $___udivmoddi4))
- (func $stackAlloc (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $stackAlloc (; 18 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -97,15 +97,15 @@
)
(get_local $1)
)
- (func $stackSave (type $FUNCSIG$i) (result i32)
+ (func $stackSave (; 19 ;) (type $FUNCSIG$i) (result i32)
(get_global $STACKTOP)
)
- (func $stackRestore (type $FUNCSIG$vi) (param $0 i32)
+ (func $stackRestore (; 20 ;) (type $FUNCSIG$vi) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $establishStackSpace (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 21 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -113,7 +113,7 @@
(get_local $1)
)
)
- (func $setThrew (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
+ (func $setThrew (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -128,15 +128,15 @@
)
)
)
- (func $setTempRet0 (type $FUNCSIG$vi) (param $0 i32)
+ (func $setTempRet0 (; 23 ;) (type $FUNCSIG$vi) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $getTempRet0 (type $FUNCSIG$i) (result i32)
+ (func $getTempRet0 (; 24 ;) (type $FUNCSIG$i) (result i32)
(get_global $tempRet0)
)
- (func $_main (type $FUNCSIG$i) (result i32)
+ (func $_main (; 25 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(set_local $0
(get_global $STACKTOP)
@@ -165,7 +165,7 @@
)
(i32.const 0)
)
- (func $_frexp (type $7) (param $0 f64) (param $1 i32) (result f64)
+ (func $_frexp (; 26 ;) (type $7) (param $0 f64) (param $1 i32) (result f64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -262,7 +262,7 @@
)
(get_local $0)
)
- (func $_strerror (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $_strerror (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -343,7 +343,7 @@
)
(get_local $0)
)
- (func $___errno_location (type $FUNCSIG$i) (result i32)
+ (func $___errno_location (; 28 ;) (type $FUNCSIG$i) (result i32)
(if (result i32)
(i32.load
(i32.const 16)
@@ -354,7 +354,7 @@
(i32.const 60)
)
)
- (func $___stdio_close (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___stdio_close (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -394,7 +394,7 @@
)
(get_local $0)
)
- (func $___stdout_write (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 30 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -475,7 +475,7 @@
)
(get_local $0)
)
- (func $___stdio_seek (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 31 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -551,7 +551,7 @@
)
(get_local $0)
)
- (func $_fflush (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $_fflush (; 32 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
@@ -665,7 +665,7 @@
)
(get_local $0)
)
- (func $_printf (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $_printf (; 33 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(set_local $2
@@ -704,7 +704,7 @@
)
(get_local $0)
)
- (func $___stdio_write (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 34 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1050,7 +1050,7 @@
)
(get_local $2)
)
- (func $_vfprintf (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_vfprintf (; 35 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1337,7 +1337,7 @@
)
(get_local $0)
)
- (func $___fwritex (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___fwritex (; 36 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1523,7 +1523,7 @@
)
(get_local $3)
)
- (func $___towrite (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___towrite (; 37 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -1601,7 +1601,7 @@
)
)
)
- (func $_wcrtomb (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_wcrtomb (; 38 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(block $do-once (result i32)
(if (result i32)
(get_local $0)
@@ -1783,7 +1783,7 @@
)
)
)
- (func $_wctomb (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $_wctomb (; 39 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(get_local $0)
(call $_wcrtomb
@@ -1794,7 +1794,7 @@
(i32.const 0)
)
)
- (func $_memchr (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 40 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -2025,7 +2025,7 @@
(get_local $0)
)
)
- (func $___syscall_ret (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___syscall_ret (; 41 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -2052,7 +2052,7 @@
(get_local $0)
)
)
- (func $___fflush_unlocked (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 42 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -2174,7 +2174,7 @@
)
)
)
- (func $_cleanup (type $FUNCSIG$vi) (param $0 i32)
+ (func $_cleanup (; 43 ;) (type $FUNCSIG$vi) (param $0 i32)
(drop
(i32.eqz
(i32.load offset=68
@@ -2183,7 +2183,7 @@
)
)
)
- (func $_printf_core (type $9) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_printf_core (; 44 ;) (type $9) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7257,7 +7257,7 @@
)
(get_local $16)
)
- (func $_pop_arg_336 (type $10) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $_pop_arg_336 (; 45 ;) (type $10) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 f64)
(local $5 i32)
@@ -7657,7 +7657,7 @@
)
)
)
- (func $_fmt_u (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_fmt_u (; 46 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(if
@@ -7783,7 +7783,7 @@
)
(get_local $2)
)
- (func $_pad (type $11) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
+ (func $_pad (; 47 ;) (type $11) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
@@ -7931,7 +7931,7 @@
(get_local $7)
)
)
- (func $_malloc (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $_malloc (; 48 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -13415,7 +13415,7 @@
(i32.const 8)
)
)
- (func $_free (type $FUNCSIG$vi) (param $0 i32)
+ (func $_free (; 49 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -15205,10 +15205,10 @@
(i32.const -1)
)
)
- (func $runPostSets (type $FUNCSIG$v)
+ (func $runPostSets (; 50 ;) (type $FUNCSIG$v)
(nop)
)
- (func $_i64Subtract (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Subtract (; 51 ;) (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(set_global $tempRet0
(i32.sub
(i32.sub
@@ -15226,7 +15226,7 @@
(get_local $2)
)
)
- (func $_i64Add (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $_i64Add (; 52 ;) (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_global $tempRet0
(i32.add
@@ -15247,7 +15247,7 @@
)
(get_local $4)
)
- (func $_memset (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 53 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -15385,7 +15385,7 @@
(get_local $2)
)
)
- (func $_bitshift64Lshr (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Lshr (; 54 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15435,7 +15435,7 @@
)
)
)
- (func $_bitshift64Shl (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_bitshift64Shl (; 55 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(if
(i32.lt_s
(get_local $2)
@@ -15491,7 +15491,7 @@
)
(i32.const 0)
)
- (func $_memcpy (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 56 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -15638,7 +15638,7 @@
)
(get_local $3)
)
- (func $___udivdi3 (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___udivdi3 (; 57 ;) (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call $___udivmoddi4
(get_local $0)
(get_local $1)
@@ -15647,7 +15647,7 @@
(i32.const 0)
)
)
- (func $___uremdi3 (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $___uremdi3 (; 58 ;) (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(local $4 i32)
(set_local $4
(get_global $STACKTOP)
@@ -15681,7 +15681,7 @@
(get_local $0)
)
)
- (func $___udivmoddi4 (type $9) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
+ (func $___udivmoddi4 (; 59 ;) (type $9) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32)
(local $x64 i64)
(local $y64 i64)
(set_local $x64
@@ -15738,7 +15738,7 @@
(get_local $x64)
)
)
- (func $dynCall_ii (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 60 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.and
@@ -15747,7 +15747,7 @@
)
)
)
- (func $dynCall_iiii (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 61 ;) (type $12) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -15761,7 +15761,7 @@
)
)
)
- (func $dynCall_vi (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 62 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -15773,19 +15773,19 @@
)
)
)
- (func $b0 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $b0 (; 63 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(call $nullFunc_ii
(i32.const 0)
)
(i32.const 0)
)
- (func $b1 (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 64 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $nullFunc_iiii
(i32.const 1)
)
(i32.const 0)
)
- (func $b2 (type $FUNCSIG$vi) (param $0 i32)
+ (func $b2 (; 65 ;) (type $FUNCSIG$vi) (param $0 i32)
(call $nullFunc_vi
(i32.const 2)
)
diff --git a/test/passes/inlining.txt b/test/passes/inlining.txt
index 838dd1f38..3fd4e025b 100644
--- a/test/passes/inlining.txt
+++ b/test/passes/inlining.txt
@@ -8,7 +8,7 @@
(memory $0 0)
(export "user" (func $user))
(export "exported" (func $exported))
- (func $user (type $0)
+ (func $user (; 0 ;) (type $0)
(local $x i32)
(local $y f64)
(local $2 f32)
@@ -120,22 +120,22 @@
)
)
)
- (func $exported (type $0)
+ (func $exported (; 1 ;) (type $0)
(nop)
)
- (func $recursive (type $0)
+ (func $recursive (; 2 ;) (type $0)
(call $recursive)
)
- (func $tabled (type $0)
+ (func $tabled (; 3 ;) (type $0)
(nop)
)
- (func $cycle1 (type $0)
+ (func $cycle1 (; 4 ;) (type $0)
(call $cycle2)
)
- (func $cycle2 (type $0)
+ (func $cycle2 (; 5 ;) (type $0)
(call $cycle1)
)
- (func $multi (type $0)
+ (func $multi (; 6 ;) (type $0)
(nop)
)
)
@@ -143,10 +143,10 @@
(type $0 (func (param i32) (result i32)))
(type $1 (func (result i32)))
(memory $0 0)
- (func $child (type $0) (param $0 i32) (result i32)
+ (func $child (; 0 ;) (type $0) (param $0 i32) (result i32)
(i32.const 1234)
)
- (func $parent (type $1) (result i32)
+ (func $parent (; 1 ;) (type $1) (result i32)
(call $child
(unreachable)
)
@@ -159,7 +159,7 @@
(global $hangLimit (mut i32) (i32.const 25))
(memory $0 1 1)
(export "hangLimitInitializer" (func $hangLimitInitializer))
- (func $func_4 (type $1) (param $0 f32) (param $1 i32) (result i32)
+ (func $func_4 (; 0 ;) (type $1) (param $0 f32) (param $1 i32) (result i32)
(local $2 i64)
(local $3 f64)
(local $4 f32)
@@ -212,7 +212,7 @@
)
)
)
- (func $hangLimitInitializer (type $2)
+ (func $hangLimitInitializer (; 1 ;) (type $2)
(set_global $hangLimit
(i32.const 25)
)
diff --git a/test/passes/inlining_optimize-level=3.txt b/test/passes/inlining_optimize-level=3.txt
index 9e1520069..238aaa9d2 100644
--- a/test/passes/inlining_optimize-level=3.txt
+++ b/test/passes/inlining_optimize-level=3.txt
@@ -6,10 +6,10 @@
(memory $0 0)
(export "yes" (func $yes))
(export "no-loops-but-one-use-but-exported" (func $no-loops-but-one-use-but-exported))
- (func $yes (type $0) (result i32)
+ (func $yes (; 0 ;) (type $0) (result i32)
(i32.const 1)
)
- (func $no-tooBig (type $0) (result i32)
+ (func $no-tooBig (; 1 ;) (type $0) (result i32)
(nop)
(nop)
(nop)
@@ -48,27 +48,27 @@
(nop)
(i32.const 1)
)
- (func $no-calls (type $0) (result i32)
+ (func $no-calls (; 2 ;) (type $0) (result i32)
(block $__inlined_func$yes (result i32)
(i32.const 1)
)
)
- (func $no-loops (type $0) (result i32)
+ (func $no-loops (; 3 ;) (type $0) (result i32)
(loop $loop-in (result i32)
(i32.const 1)
)
)
- (func $no-loops-but-one-use-but-exported (type $0) (result i32)
+ (func $no-loops-but-one-use-but-exported (; 4 ;) (type $0) (result i32)
(loop $loop-in (result i32)
(i32.const 1)
)
)
- (func $no-loops-but-one-use-but-tabled (type $0) (result i32)
+ (func $no-loops-but-one-use-but-tabled (; 5 ;) (type $0) (result i32)
(loop $loop-in (result i32)
(i32.const 1)
)
)
- (func $intoHere (type $1)
+ (func $intoHere (; 6 ;) (type $1)
(drop
(block (result i32)
(block $__inlined_func$yes (result i32)
diff --git a/test/passes/instrument-locals.txt b/test/passes/instrument-locals.txt
index 5cc8a98fe..26f04d083 100644
--- a/test/passes/instrument-locals.txt
+++ b/test/passes/instrument-locals.txt
@@ -13,7 +13,7 @@
(import "instrument" "set_f32" (func $set_f32 (param i32 i32 f32) (result f32)))
(import "instrument" "set_f64" (func $set_f64 (param i32 i32 f64) (result f64)))
(memory $0 0)
- (func $A (type $0)
+ (func $A (; 8 ;) (type $0)
(local $x i32)
(local $y i64)
(local $z f32)
diff --git a/test/passes/instrument-memory.txt b/test/passes/instrument-memory.txt
index dd2e876d0..fc5221c3e 100644
--- a/test/passes/instrument-memory.txt
+++ b/test/passes/instrument-memory.txt
@@ -4,7 +4,7 @@
(import "instrument" "load" (func $load (param i32 i32 i32 i32) (result i32)))
(import "instrument" "store" (func $store (param i32 i32 i32 i32) (result i32)))
(memory $0 256 256)
- (func $A (type $1)
+ (func $A (; 2 ;) (type $1)
(drop
(i32.load8_s
(call $load
@@ -286,7 +286,7 @@
)
)
)
- (func $B (type $1)
+ (func $B (; 3 ;) (type $1)
(i32.store8
(call $store
(i32.const 28)
diff --git a/test/passes/local-cse.txt b/test/passes/local-cse.txt
index 34e7c9580..c15b1a95c 100644
--- a/test/passes/local-cse.txt
+++ b/test/passes/local-cse.txt
@@ -2,7 +2,7 @@
(type $0 (func))
(type $1 (func (param i32) (result i32)))
(memory $0 100 100)
- (func $basics (type $0)
+ (func $basics (; 0 ;) (type $0)
(local $x i32)
(local $y i32)
(local $2 i32)
@@ -56,7 +56,7 @@
)
)
)
- (func $recursive1 (type $0)
+ (func $recursive1 (; 1 ;) (type $0)
(local $x i32)
(local $y i32)
(local $2 i32)
@@ -81,7 +81,7 @@
(get_local $2)
)
)
- (func $recursive2 (type $0)
+ (func $recursive2 (; 2 ;) (type $0)
(local $x i32)
(local $y i32)
(local $2 i32)
@@ -106,7 +106,7 @@
)
)
)
- (func $self (type $0)
+ (func $self (; 3 ;) (type $0)
(local $x i32)
(local $y i32)
(local $2 i32)
@@ -125,7 +125,7 @@
(get_local $2)
)
)
- (func $loads (type $0)
+ (func $loads (; 4 ;) (type $0)
(drop
(i32.load
(i32.const 10)
@@ -137,7 +137,7 @@
)
)
)
- (func $8 (type $1) (param $var$0 i32) (result i32)
+ (func $8 (; 5 ;) (type $1) (param $var$0 i32) (result i32)
(local $var$1 i32)
(local $var$2 i32)
(local $var$3 i32)
diff --git a/test/passes/local-cse_ignore-implicit-traps.txt b/test/passes/local-cse_ignore-implicit-traps.txt
index 8ad60b8ad..8d5720143 100644
--- a/test/passes/local-cse_ignore-implicit-traps.txt
+++ b/test/passes/local-cse_ignore-implicit-traps.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 100 100)
- (func $loads (type $0)
+ (func $loads (; 0 ;) (type $0)
(local $0 i32)
(drop
(tee_local $0
diff --git a/test/passes/log-execution.txt b/test/passes/log-execution.txt
index 32bbd88eb..e756385ab 100644
--- a/test/passes/log-execution.txt
+++ b/test/passes/log-execution.txt
@@ -4,19 +4,19 @@
(type $FUNCSIG$vi (func (param i32)))
(import "env" "log_execution" (func $log_execution (param i32)))
(memory $0 0)
- (func $nopp (type $0)
+ (func $nopp (; 1 ;) (type $0)
(call $log_execution
(i32.const 0)
)
(nop)
)
- (func $intt (type $1) (result i32)
+ (func $intt (; 2 ;) (type $1) (result i32)
(call $log_execution
(i32.const 1)
)
(i32.const 10)
)
- (func $workk (type $0)
+ (func $workk (; 3 ;) (type $0)
(call $log_execution
(i32.const 2)
)
@@ -30,7 +30,7 @@
)
)
)
- (func $loops (type $0)
+ (func $loops (; 4 ;) (type $0)
(call $log_execution
(i32.const 6)
)
@@ -71,7 +71,7 @@
)
)
)
- (func $loops-similar (type $0)
+ (func $loops-similar (; 5 ;) (type $0)
(call $log_execution
(i32.const 8)
)
diff --git a/test/passes/merge-blocks.txt b/test/passes/merge-blocks.txt
index be6906f0a..b5be6f2cf 100644
--- a/test/passes/merge-blocks.txt
+++ b/test/passes/merge-blocks.txt
@@ -3,7 +3,7 @@
(type $1 (func (param i32)))
(type $2 (func (result i32)))
(memory $0 0)
- (func $drop-block (type $0)
+ (func $drop-block (; 0 ;) (type $0)
(block $block
(block $x
(drop
@@ -12,7 +12,7 @@
)
)
)
- (func $drop-block-br (type $0)
+ (func $drop-block-br (; 1 ;) (type $0)
(block $block
(drop
(block $x (result i32)
@@ -24,7 +24,7 @@
)
)
)
- (func $drop-block-br-if (type $0)
+ (func $drop-block-br-if (; 2 ;) (type $0)
(block $block
(block $x
(drop
@@ -39,7 +39,7 @@
)
)
)
- (func $undroppable-block-br-if (type $1) (param $0 i32)
+ (func $undroppable-block-br-if (; 3 ;) (type $1) (param $0 i32)
(block $block
(drop
(block $x (result i32)
@@ -54,7 +54,7 @@
)
)
)
- (func $drop-block-nested-br-if (type $0)
+ (func $drop-block-nested-br-if (; 4 ;) (type $0)
(block $block
(block $x
(if
@@ -75,7 +75,7 @@
)
)
)
- (func $drop-unreachable-br_if (type $2) (result i32)
+ (func $drop-unreachable-br_if (; 5 ;) (type $2) (result i32)
(block $label$0 (result i32)
(block $label$2 (result i32)
(br_if $label$2
@@ -87,7 +87,7 @@
)
)
)
- (func $drop-block-squared-iloop (type $0)
+ (func $drop-block-squared-iloop (; 6 ;) (type $0)
(drop
(block $label$0 (result i32)
(drop
@@ -100,7 +100,7 @@
)
)
)
- (func $br-goes-away-label2-becomes-unreachable (type $0)
+ (func $br-goes-away-label2-becomes-unreachable (; 7 ;) (type $0)
(block $block
(drop
(block $label$1 (result i32)
@@ -119,7 +119,7 @@
)
)
)
- (func $loop-block-drop-block-return (type $0)
+ (func $loop-block-drop-block-return (; 8 ;) (type $0)
(loop $label$4
(block $label$5
(drop
diff --git a/test/passes/metrics.txt b/test/passes/metrics.txt
index caf5f8a91..fd8aa790f 100644
--- a/test/passes/metrics.txt
+++ b/test/passes/metrics.txt
@@ -16,7 +16,7 @@ Counts
(elem (i32.const 0) $ifs $ifs $ifs)
(memory $0 256 256)
(data (i32.const 0) "\ff\ef\0f\1f 0@P\99")
- (func $ifs (type $0) (param $x i32)
+ (func $ifs (; 0 ;) (type $0) (param $x i32)
(local $y f32)
(block $block0
(if
diff --git a/test/passes/nm.txt b/test/passes/nm.txt
index 22e67cd8c..e34788c6d 100644
--- a/test/passes/nm.txt
+++ b/test/passes/nm.txt
@@ -4,10 +4,10 @@
(module
(type $0 (func))
(memory $0 0)
- (func $a (type $0)
+ (func $a (; 0 ;) (type $0)
(nop)
)
- (func $b (type $0)
+ (func $b (; 1 ;) (type $0)
(drop
(loop $loop-in1 (result i32)
(nop)
@@ -15,7 +15,7 @@
)
)
)
- (func $c (type $0)
+ (func $c (; 2 ;) (type $0)
(block $top
(nop)
(drop
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt
index 18d9b1a18..010d6c139 100644
--- a/test/passes/optimize-instructions.txt
+++ b/test/passes/optimize-instructions.txt
@@ -10,7 +10,7 @@
(type $8 (func (result i64)))
(memory $0 0)
(export "load-off-2" (func $load-off-2))
- (func $f (type $0) (param $i1 i32) (param $i2 i64)
+ (func $f (; 0 ;) (type $0) (param $i1 i32) (param $i2 i64)
(if
(i32.eqz
(get_local $i1)
@@ -223,7 +223,7 @@
)
)
)
- (func $load-store (type $1)
+ (func $load-store (; 1 ;) (type $1)
(drop
(i32.load8_u
(i32.const 0)
@@ -311,7 +311,7 @@
(i64.const 3)
)
)
- (func $and-neg1 (type $1)
+ (func $and-neg1 (; 2 ;) (type $1)
(drop
(i32.const 100)
)
@@ -322,7 +322,7 @@
)
)
)
- (func $and-pos1 (type $1)
+ (func $and-pos1 (; 3 ;) (type $1)
(drop
(i32.eqz
(i32.const 1000)
@@ -346,7 +346,7 @@
)
)
)
- (func $canonicalize-binary (type $1)
+ (func $canonicalize-binary (; 4 ;) (type $1)
(drop
(i32.and
(unreachable)
@@ -372,7 +372,7 @@
)
)
)
- (func $ne0 (type $2) (result i32)
+ (func $ne0 (; 5 ;) (type $2) (result i32)
(if
(call $ne0)
(nop)
@@ -403,7 +403,7 @@
)
(i32.const 1)
)
- (func $recurse-bool (type $1)
+ (func $recurse-bool (; 6 ;) (type $1)
(if
(if (result i32)
(i32.const 1)
@@ -420,10 +420,10 @@
(nop)
)
)
- (func $ne1 (type $2) (result i32)
+ (func $ne1 (; 7 ;) (type $2) (result i32)
(unreachable)
)
- (func $load-off-2 (type $3) (param $0 i32) (result i32)
+ (func $load-off-2 (; 8 ;) (type $3) (param $0 i32) (result i32)
(i32.store
(i32.const 6)
(get_local $0)
@@ -506,7 +506,7 @@
)
)
)
- (func $sign-ext (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext (; 9 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.eqz
(i32.and
@@ -617,7 +617,7 @@
)
)
)
- (func $sign-ext-input (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext-input (; 10 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.const 100)
)
@@ -951,7 +951,7 @@
)
)
)
- (func $linear-sums (type $4) (param $0 i32) (param $1 i32)
+ (func $linear-sums (; 11 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.add
(get_local $1)
@@ -1043,7 +1043,7 @@
(get_local $0)
)
)
- (func $almost-sign-ext (type $4) (param $0 i32) (param $0 i32)
+ (func $almost-sign-ext (; 12 ;) (type $4) (param $0 i32) (param $0 i32)
(drop
(i32.shr_s
(i32.shl
@@ -1060,7 +1060,7 @@
)
)
)
- (func $squaring (type $4) (param $0 i32) (param $1 i32)
+ (func $squaring (; 13 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.and
(get_local $0)
@@ -1116,7 +1116,7 @@
)
)
)
- (func $sign-ext-ne (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext-ne (; 14 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.ne
(i32.and
@@ -1166,7 +1166,7 @@
)
)
)
- (func $sign-ext-eqz (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext-eqz (; 15 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.eqz
(i32.and
@@ -1176,7 +1176,7 @@
)
)
)
- (func $sign-ext-boolean (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext-boolean (; 16 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(if (result i32)
(i32.and
@@ -1188,7 +1188,7 @@
)
)
)
- (func $add-sub-zero (type $4) (param $0 i32) (param $1 i32)
+ (func $add-sub-zero (; 17 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(get_local $0)
)
@@ -1196,7 +1196,7 @@
(get_local $0)
)
)
- (func $store-signext (type $5) (param $0 i32)
+ (func $store-signext (; 18 ;) (type $5) (param $0 i32)
(i32.store8
(i32.const 8)
(get_local $0)
@@ -1254,7 +1254,7 @@
)
)
)
- (func $sign-ext-tee (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext-tee (; 19 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.shr_s
(i32.shl
@@ -1272,7 +1272,7 @@
)
)
)
- (func $sign-ext-load (type $4) (param $0 i32) (param $1 i32)
+ (func $sign-ext-load (; 20 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.load8_s
(i32.const 256)
@@ -1343,7 +1343,7 @@
)
)
)
- (func $mask-bits (type $4) (param $0 i32) (param $1 i32)
+ (func $mask-bits (; 21 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(tee_local $0
(i32.const 127)
@@ -1397,7 +1397,7 @@
)
)
)
- (func $local-info-zero-ext (type $4) (param $0 i32) (param $1 i32)
+ (func $local-info-zero-ext (; 22 ;) (type $4) (param $0 i32) (param $1 i32)
(local $x i32)
(local $y i32)
(local $z i32)
@@ -1448,7 +1448,7 @@
)
)
)
- (func $local-info-sign-ext-bitsize (type $4) (param $0 i32) (param $1 i32)
+ (func $local-info-sign-ext-bitsize (; 23 ;) (type $4) (param $0 i32) (param $1 i32)
(local $x i32)
(local $y i32)
(local $z i32)
@@ -1508,7 +1508,7 @@
)
)
)
- (func $local-info-sign-ext-already-exted (type $4) (param $0 i32) (param $1 i32)
+ (func $local-info-sign-ext-already-exted (; 24 ;) (type $4) (param $0 i32) (param $1 i32)
(local $x i32)
(local $y i32)
(local $z i32)
@@ -1619,7 +1619,7 @@
)
)
)
- (func $signed-loads-fill-the-bits (type $3) (param $$e i32) (result i32)
+ (func $signed-loads-fill-the-bits (; 25 ;) (type $3) (param $$e i32) (result i32)
(local $$0 i32)
(local $$conv i32)
(set_local $$0
@@ -1640,7 +1640,7 @@
)
)
)
- (func $local-info-sign-ext-already-exted-by-load (type $4) (param $0 i32) (param $1 i32)
+ (func $local-info-sign-ext-already-exted-by-load (; 26 ;) (type $4) (param $0 i32) (param $1 i32)
(local $x i32)
(local $y i32)
(local $z i32)
@@ -1682,7 +1682,7 @@
)
)
)
- (func $compare-load-s-sign-extend (type $4) (param $0 i32) (param $1 i32)
+ (func $compare-load-s-sign-extend (; 27 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.eq
(i32.load8_u
@@ -1762,7 +1762,7 @@
)
)
)
- (func $unsign-diff-sizes (type $6) (param $x i32) (param $y i32) (result i32)
+ (func $unsign-diff-sizes (; 28 ;) (type $6) (param $x i32) (param $y i32) (result i32)
(i32.ne
(i32.shr_s
(i32.shl
@@ -1786,7 +1786,7 @@
)
)
)
- (func $unsign-same-sizes (type $6) (param $x i32) (param $y i32) (result i32)
+ (func $unsign-same-sizes (; 29 ;) (type $6) (param $x i32) (param $y i32) (result i32)
(i32.ne
(i32.and
(call $unsign-same-sizes
@@ -1804,7 +1804,7 @@
)
)
)
- (func $fuzz-almost-sign-ext (type $1)
+ (func $fuzz-almost-sign-ext (; 30 ;) (type $1)
(drop
(i32.shr_s
(i32.shl
@@ -1828,7 +1828,7 @@
)
)
)
- (func $fuzz-comp-impossible (type $5) (param $x i32)
+ (func $fuzz-comp-impossible (; 31 ;) (type $5) (param $x i32)
(drop
(i32.eq
(i32.and
@@ -1893,7 +1893,7 @@
)
)
)
- (func $if-parallel (type $4) (param $0 i32) (param $1 i32)
+ (func $if-parallel (; 32 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.add
(get_local $1)
@@ -1948,7 +1948,7 @@
)
)
)
- (func $select-parallel (type $4) (param $0 i32) (param $1 i32)
+ (func $select-parallel (; 33 ;) (type $4) (param $0 i32) (param $1 i32)
(drop
(i32.add
(get_local $1)
@@ -2004,7 +2004,7 @@
)
)
)
- (func $zero-shifts-is-not-sign-ext (type $1)
+ (func $zero-shifts-is-not-sign-ext (; 34 ;) (type $1)
(drop
(i32.eq
(i32.load16_s align=1
@@ -2025,7 +2025,7 @@
)
)
)
- (func $zero-ops (type $2) (result i32)
+ (func $zero-ops (; 35 ;) (type $2) (result i32)
(return
(i32.eq
(i32.load16_s align=1
@@ -2035,7 +2035,7 @@
)
)
)
- (func $sign-ext-1-and-ne (type $2) (result i32)
+ (func $sign-ext-1-and-ne (; 36 ;) (type $2) (result i32)
(select
(i32.ne
(i32.and
@@ -2048,7 +2048,7 @@
(i32.const 1)
)
)
- (func $neg-shifts-and-255 (type $2) (result i32)
+ (func $neg-shifts-and-255 (; 37 ;) (type $2) (result i32)
(i32.and
(i32.shr_u
(i32.const -99)
@@ -2057,7 +2057,7 @@
(i32.const 255)
)
)
- (func $neg-shifts-and-255-b (type $2) (result i32)
+ (func $neg-shifts-and-255-b (; 38 ;) (type $2) (result i32)
(i32.and
(i32.shl
(i32.const -2349025)
@@ -2066,7 +2066,7 @@
(i32.const 255)
)
)
- (func $shifts-square-overflow (type $3) (param $x i32) (result i32)
+ (func $shifts-square-overflow (; 39 ;) (type $3) (param $x i32) (result i32)
(i32.shr_u
(i32.shr_u
(get_local $x)
@@ -2075,13 +2075,13 @@
(i32.const 32767)
)
)
- (func $shifts-square-no-overflow-small (type $3) (param $x i32) (result i32)
+ (func $shifts-square-no-overflow-small (; 40 ;) (type $3) (param $x i32) (result i32)
(i32.shr_u
(get_local $x)
(i32.const 9)
)
)
- (func $shifts-square-overflow-64 (type $7) (param $x i64) (result i64)
+ (func $shifts-square-overflow-64 (; 41 ;) (type $7) (param $x i64) (result i64)
(i64.shr_u
(i64.shr_u
(get_local $x)
@@ -2090,13 +2090,13 @@
(i64.const 64767)
)
)
- (func $shifts-square-no-overflow-small-64 (type $7) (param $x i64) (result i64)
+ (func $shifts-square-no-overflow-small-64 (; 42 ;) (type $7) (param $x i64) (result i64)
(i64.shr_u
(get_local $x)
(i64.const 9)
)
)
- (func $shifts-square-unreachable (type $3) (param $x i32) (result i32)
+ (func $shifts-square-unreachable (; 43 ;) (type $3) (param $x i32) (result i32)
(i32.shr_u
(i32.shr_u
(unreachable)
@@ -2105,7 +2105,7 @@
(i32.const 4098)
)
)
- (func $mix-shifts (type $2) (result i32)
+ (func $mix-shifts (; 44 ;) (type $2) (result i32)
(i32.shr_s
(i32.shl
(i32.const 23)
@@ -2114,13 +2114,13 @@
(i32.const 168)
)
)
- (func $actually-no-shifts (type $2) (result i32)
+ (func $actually-no-shifts (; 45 ;) (type $2) (result i32)
(i32.const 33)
)
- (func $less-shifts-than-it-seems (type $3) (param $x i32) (result i32)
+ (func $less-shifts-than-it-seems (; 46 ;) (type $3) (param $x i32) (result i32)
(i32.const 4800)
)
- (func $and-popcount32 (type $2) (result i32)
+ (func $and-popcount32 (; 47 ;) (type $2) (result i32)
(i32.and
(i32.popcnt
(i32.const -1)
@@ -2128,12 +2128,12 @@
(i32.const 31)
)
)
- (func $and-popcount32-big (type $2) (result i32)
+ (func $and-popcount32-big (; 48 ;) (type $2) (result i32)
(i32.popcnt
(i32.const -1)
)
)
- (func $and-popcount64 (type $8) (result i64)
+ (func $and-popcount64 (; 49 ;) (type $8) (result i64)
(i64.and
(i64.popcnt
(i64.const -1)
@@ -2141,7 +2141,7 @@
(i64.const 63)
)
)
- (func $and-popcount64-big (type $8) (result i64)
+ (func $and-popcount64-big (; 50 ;) (type $8) (result i64)
(i64.and
(i64.popcnt
(i64.const -1)
@@ -2149,7 +2149,7 @@
(i64.const 127)
)
)
- (func $and-popcount64-bigger (type $8) (result i64)
+ (func $and-popcount64-bigger (; 51 ;) (type $8) (result i64)
(i64.and
(i64.popcnt
(i64.const -1)
@@ -2157,7 +2157,7 @@
(i64.const 255)
)
)
- (func $optimizeAddedConstants-filters-through-nonzero (type $2) (result i32)
+ (func $optimizeAddedConstants-filters-through-nonzero (; 52 ;) (type $2) (result i32)
(i32.add
(i32.shl
(i32.const -536870912)
@@ -2168,7 +2168,7 @@
(i32.const -31744)
)
)
- (func $optimizeAddedConstants-filters-through-nonzero-b (type $2) (result i32)
+ (func $optimizeAddedConstants-filters-through-nonzero-b (; 53 ;) (type $2) (result i32)
(i32.add
(i32.shl
(i32.const -536870912)
@@ -2179,7 +2179,7 @@
(i32.const -31744)
)
)
- (func $return-proper-value-from-shift-left-by-zero (type $2) (result i32)
+ (func $return-proper-value-from-shift-left-by-zero (; 54 ;) (type $2) (result i32)
(if (result i32)
(i32.add
(loop $label$0 (result i32)
diff --git a/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.txt b/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.txt
index 85e0dd6d8..14c82d38e 100644
--- a/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.txt
+++ b/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.txt
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(type $1 (func (result f64)))
(memory $0 0)
- (func $conditionals (type $0) (param $0 i32) (param $1 i32) (result i32)
+ (func $conditionals (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -87,7 +87,7 @@
(get_local $5)
)
)
- (func $side-effect (type $0) (param $0 i32) (param $1 i32) (result i32)
+ (func $side-effect (; 1 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -170,7 +170,7 @@
(get_local $5)
)
)
- (func $flip (type $0) (param $0 i32) (param $1 i32) (result i32)
+ (func $flip (; 2 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@@ -252,7 +252,7 @@
(get_local $5)
)
)
- (func $invalidate-conditionalizeExpensiveOnBitwise (type $0) (param $0 i32) (param $1 i32) (result i32)
+ (func $invalidate-conditionalizeExpensiveOnBitwise (; 3 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(if
(i32.eqz
(i32.and
@@ -288,7 +288,7 @@
(get_local $1)
)
)
- (func $invalidate-conditionalizeExpensiveOnBitwise-ok (type $0) (param $0 i32) (param $1 i32) (result i32)
+ (func $invalidate-conditionalizeExpensiveOnBitwise-ok (; 4 ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(if
(i32.eqz
(if (result i32)
@@ -322,7 +322,7 @@
(get_local $1)
)
)
- (func $conditionalize-if-type-change (type $1) (result f64)
+ (func $conditionalize-if-type-change (; 5 ;) (type $1) (result f64)
(local $0 i32)
(drop
(loop $label$1 (result f32)
diff --git a/test/passes/pick-load-signs.txt b/test/passes/pick-load-signs.txt
index e8507fa29..24b955857 100644
--- a/test/passes/pick-load-signs.txt
+++ b/test/passes/pick-load-signs.txt
@@ -2,7 +2,7 @@
(type $0 (func))
(type $1 (func (result i32)))
(memory $0 0)
- (func $a (type $0)
+ (func $a (; 0 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_u
@@ -16,7 +16,7 @@
)
)
)
- (func $b (type $0)
+ (func $b (; 1 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load16_u
@@ -30,7 +30,7 @@
)
)
)
- (func $c (type $0)
+ (func $c (; 2 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_u
@@ -44,7 +44,7 @@
)
)
)
- (func $d (type $0)
+ (func $d (; 3 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load16_u
@@ -58,7 +58,7 @@
)
)
)
- (func $one-of-each (type $0)
+ (func $one-of-each (; 4 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_s
@@ -81,7 +81,7 @@
)
)
)
- (func $more-of-one (type $0)
+ (func $more-of-one (; 5 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_s
@@ -110,7 +110,7 @@
)
)
)
- (func $many-more-of-one (type $0)
+ (func $many-more-of-one (; 6 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_u
@@ -145,7 +145,7 @@
)
)
)
- (func $a-sign (type $0)
+ (func $a-sign (; 7 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_s
@@ -162,7 +162,7 @@
)
)
)
- (func $multivar (type $0)
+ (func $multivar (; 8 ;) (type $0)
(local $x i32)
(local $y i32)
(set_local $x
@@ -191,7 +191,7 @@
)
)
)
- (func $corners (type $0)
+ (func $corners (; 9 ;) (type $0)
(local $y i32)
(drop
(i32.load8_s
@@ -207,7 +207,7 @@
(i32.const 1024)
)
)
- (func $wrong-size (type $0)
+ (func $wrong-size (; 10 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_s
@@ -221,7 +221,7 @@
)
)
)
- (func $wrong-size_s (type $0)
+ (func $wrong-size_s (; 11 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_u
@@ -238,7 +238,7 @@
)
)
)
- (func $non-sign-or-unsigned-use (type $0)
+ (func $non-sign-or-unsigned-use (; 12 ;) (type $0)
(local $y i32)
(set_local $y
(i32.load8_s
@@ -255,12 +255,12 @@
(get_local $y)
)
)
- (func $toplevel-load (type $1) (result i32)
+ (func $toplevel-load (; 13 ;) (type $1) (result i32)
(i32.load8_s
(i32.const 1024)
)
)
- (func $tees (type $0)
+ (func $tees (; 14 ;) (type $0)
(local $y i32)
(drop
(tee_local $y
diff --git a/test/passes/post-emscripten.txt b/test/passes/post-emscripten.txt
index 947318051..a1bac030a 100644
--- a/test/passes/post-emscripten.txt
+++ b/test/passes/post-emscripten.txt
@@ -6,7 +6,7 @@
(import "global.Math" "pow" (func $Math_pow (param f64 f64) (result f64)))
(memory $0 256 256)
(export "load-off-2" (func $load-off-2))
- (func $b0 (type $0) (param $x i32)
+ (func $b0 (; 1 ;) (type $0) (param $x i32)
(drop
(i32.load offset=1
(get_local $x)
@@ -44,7 +44,7 @@
)
)
)
- (func $load-off-2 (type $2) (param $0 i32) (result i32)
+ (func $load-off-2 (; 2 ;) (type $2) (param $0 i32) (result i32)
(i32.store
(i32.const 6)
(get_local $0)
@@ -115,7 +115,7 @@
(get_local $0)
)
)
- (func $pow2 (type $3)
+ (func $pow2 (; 3 ;) (type $3)
(local $x f64)
(local $y f64)
(local $2 f64)
@@ -166,7 +166,7 @@
)
)
)
- (func $pow.2 (type $3)
+ (func $pow.2 (; 4 ;) (type $3)
(drop
(f64.sqrt
(f64.const 1)
diff --git a/test/passes/precompute-propagate.txt b/test/passes/precompute-propagate.txt
index 90b01be14..4477b2294 100644
--- a/test/passes/precompute-propagate.txt
+++ b/test/passes/precompute-propagate.txt
@@ -2,7 +2,7 @@
(type $0 (func (param i32)))
(type $1 (func (param i32) (result i32)))
(memory $0 0)
- (func $basic (type $0) (param $p i32)
+ (func $basic (; 0 ;) (type $0) (param $p i32)
(local $x i32)
(set_local $x
(i32.const 10)
@@ -11,7 +11,7 @@
(i32.const 20)
)
)
- (func $split (type $0) (param $p i32)
+ (func $split (; 1 ;) (type $0) (param $p i32)
(local $x i32)
(if
(i32.const 1)
@@ -26,7 +26,7 @@
)
)
)
- (func $split-but-join (type $0) (param $p i32)
+ (func $split-but-join (; 2 ;) (type $0) (param $p i32)
(local $x i32)
(if
(i32.const 1)
@@ -41,7 +41,7 @@
(i32.const 20)
)
)
- (func $split-but-join-different (type $0) (param $p i32)
+ (func $split-but-join-different (; 3 ;) (type $0) (param $p i32)
(local $x i32)
(if
(i32.const 1)
@@ -59,7 +59,7 @@
)
)
)
- (func $split-but-join-different-b (type $0) (param $p i32)
+ (func $split-but-join-different-b (; 4 ;) (type $0) (param $p i32)
(local $x i32)
(if
(i32.const 1)
@@ -77,7 +77,7 @@
)
)
)
- (func $split-but-join-init0 (type $0) (param $p i32)
+ (func $split-but-join-init0 (; 5 ;) (type $0) (param $p i32)
(local $x i32)
(if
(i32.const 1)
@@ -89,7 +89,7 @@
(i32.const 0)
)
)
- (func $later (type $0) (param $p i32)
+ (func $later (; 6 ;) (type $0) (param $p i32)
(local $x i32)
(set_local $x
(i32.const 10)
@@ -107,7 +107,7 @@
(i32.const 39)
)
)
- (func $later2 (type $1) (param $p i32) (result i32)
+ (func $later2 (; 7 ;) (type $1) (param $p i32) (result i32)
(local $x i32)
(set_local $x
(i32.const 10)
@@ -117,7 +117,7 @@
)
(i32.const 20)
)
- (func $two-ways-but-identical (type $1) (param $p i32) (result i32)
+ (func $two-ways-but-identical (; 8 ;) (type $1) (param $p i32) (result i32)
(local $x i32)
(local $y i32)
(set_local $x
@@ -137,7 +137,7 @@
)
(i32.const 21)
)
- (func $two-ways-but-almost-identical (type $1) (param $p i32) (result i32)
+ (func $two-ways-but-almost-identical (; 9 ;) (type $1) (param $p i32) (result i32)
(local $x i32)
(local $y i32)
(set_local $x
@@ -160,7 +160,7 @@
)
(get_local $y)
)
- (func $deadloop (type $1) (param $p i32) (result i32)
+ (func $deadloop (; 10 ;) (type $1) (param $p i32) (result i32)
(local $x i32)
(local $y i32)
(loop $loop
@@ -173,7 +173,7 @@
(br $loop)
)
)
- (func $deadloop2 (type $0) (param $p i32)
+ (func $deadloop2 (; 11 ;) (type $0) (param $p i32)
(local $x i32)
(local $y i32)
(loop $loop
@@ -192,7 +192,7 @@
(br $loop)
)
)
- (func $deadloop3 (type $0) (param $p i32)
+ (func $deadloop3 (; 12 ;) (type $0) (param $p i32)
(local $x i32)
(local $y i32)
(loop $loop
diff --git a/test/passes/precompute.txt b/test/passes/precompute.txt
index ad5b74e83..bb045f853 100644
--- a/test/passes/precompute.txt
+++ b/test/passes/precompute.txt
@@ -4,7 +4,7 @@
(type $2 (func))
(type $3 (func (result f64)))
(memory $0 0)
- (func $x (type $0) (param $x i32)
+ (func $x (; 0 ;) (type $0) (param $x i32)
(call $x
(i32.const 2300)
)
@@ -85,7 +85,7 @@
(i32.const 0)
)
)
- (func $ret (type $1) (result i32)
+ (func $ret (; 1 ;) (type $1) (result i32)
(if
(call $ret)
(return
@@ -100,13 +100,13 @@
)
(i32.const 1)
)
- (func $noret (type $2)
+ (func $noret (; 2 ;) (type $2)
(if
(call $ret)
(return)
)
)
- (func $refinalize-br-condition-unreachable (type $2)
+ (func $refinalize-br-condition-unreachable (; 3 ;) (type $2)
(block $label$1
(drop
(br_if $label$1
@@ -115,7 +115,7 @@
)
)
)
- (func $br_if-condition-is-block-i32-but-unreachable-so-refinalize-tricky (type $2)
+ (func $br_if-condition-is-block-i32-but-unreachable-so-refinalize-tricky (; 4 ;) (type $2)
(drop
(block $label$1 (result i32)
(drop
@@ -130,7 +130,7 @@
)
)
)
- (func $reuse-br-value (type $3) (result f64)
+ (func $reuse-br-value (; 5 ;) (type $3) (result f64)
(block $label$0 (result f64)
(i32.store8
(i32.const 1919623207)
@@ -157,7 +157,7 @@
(f64.const 4776014875438170098655851e156)
)
)
- (func $refinalize-two-breaks-one-unreachable (type $2)
+ (func $refinalize-two-breaks-one-unreachable (; 6 ;) (type $2)
(drop
(block $label$0 (result i64)
(br_if $label$0
@@ -178,7 +178,7 @@
)
)
)
- (func $one-break-value-and-it-is-unreachable (type $3) (result f64)
+ (func $one-break-value-and-it-is-unreachable (; 7 ;) (type $3) (result f64)
(local $var$0 i32)
(block $label$6 (result f64)
(br_if $label$6
diff --git a/test/passes/precompute_coalesce-locals_vacuum.txt b/test/passes/precompute_coalesce-locals_vacuum.txt
index dbeec78f1..9113fd97e 100644
--- a/test/passes/precompute_coalesce-locals_vacuum.txt
+++ b/test/passes/precompute_coalesce-locals_vacuum.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func (param i32) (result i32)))
(memory $0 0)
- (func $nested-br_if-value (type $0) (param $0 i32) (result i32)
+ (func $nested-br_if-value (; 0 ;) (type $0) (param $0 i32) (result i32)
(loop $label$0
(br $label$0)
)
diff --git a/test/passes/print-call-graph.txt b/test/passes/print-call-graph.txt
index c1db051ad..129b4a37c 100644
--- a/test/passes/print-call-graph.txt
+++ b/test/passes/print-call-graph.txt
@@ -186,7 +186,7 @@ digraph call {
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(export "dynCall_v" (func $dynCall_v))
- (func $stackAlloc (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $stackAlloc (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -208,15 +208,15 @@ digraph call {
)
(get_local $1)
)
- (func $stackSave (type $6) (result i32)
+ (func $stackSave (; 11 ;) (type $6) (result i32)
(get_global $STACKTOP)
)
- (func $stackRestore (type $FUNCSIG$vi) (param $0 i32)
+ (func $stackRestore (; 12 ;) (type $FUNCSIG$vi) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $establishStackSpace (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 13 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -224,7 +224,7 @@ digraph call {
(get_local $1)
)
)
- (func $setThrew (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
+ (func $setThrew (; 14 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -239,21 +239,21 @@ digraph call {
)
)
)
- (func $setTempRet0 (type $FUNCSIG$vi) (param $0 i32)
+ (func $setTempRet0 (; 15 ;) (type $FUNCSIG$vi) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $getTempRet0 (type $6) (result i32)
+ (func $getTempRet0 (; 16 ;) (type $6) (result i32)
(get_global $tempRet0)
)
- (func $_malloc (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $_malloc (; 17 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(i32.const 0)
)
- (func $_free (type $FUNCSIG$vi) (param $0 i32)
+ (func $_free (; 18 ;) (type $FUNCSIG$vi) (param $0 i32)
(nop)
)
- (func $_main (type $6) (result i32)
+ (func $_main (; 19 ;) (type $6) (result i32)
(local $0 i32)
(i64.store align=4
(tee_local $0
@@ -265,7 +265,7 @@ digraph call {
)
(get_local $0)
)
- (func $___stdio_close (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___stdio_close (; 20 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(set_local $1
@@ -298,7 +298,7 @@ digraph call {
)
(get_local $0)
)
- (func $___stdio_write (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_write (; 21 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -645,7 +645,7 @@ digraph call {
)
(get_local $0)
)
- (func $___stdio_seek (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdio_seek (; 22 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -714,7 +714,7 @@ digraph call {
)
(get_local $0)
)
- (func $___syscall_ret (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___syscall_ret (; 23 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -733,7 +733,7 @@ digraph call {
(get_local $0)
)
)
- (func $___errno_location (type $6) (result i32)
+ (func $___errno_location (; 24 ;) (type $6) (result i32)
(if (result i32)
(i32.load
(i32.const 1140)
@@ -744,7 +744,7 @@ digraph call {
(i32.const 1184)
)
)
- (func $_cleanup_387 (type $FUNCSIG$vi) (param $0 i32)
+ (func $_cleanup_387 (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
@@ -756,7 +756,7 @@ digraph call {
)
)
)
- (func $___stdout_write (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 26 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -830,7 +830,7 @@ digraph call {
)
(get_local $0)
)
- (func $_fflush (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $_fflush (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once (result i32)
@@ -953,7 +953,7 @@ digraph call {
)
)
)
- (func $___fflush_unlocked (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $___fflush_unlocked (; 28 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -1073,7 +1073,7 @@ digraph call {
(i32.const 0)
)
)
- (func $__Znwj (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $__Znwj (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(select
@@ -1115,7 +1115,7 @@ digraph call {
)
(get_local $0)
)
- (func $__ZSt15get_new_handlerv (type $6) (result i32)
+ (func $__ZSt15get_new_handlerv (; 30 ;) (type $6) (result i32)
(local $0 i32)
(i32.store
(i32.const 1188)
@@ -1130,10 +1130,10 @@ digraph call {
)
(get_local $0)
)
- (func $runPostSets (type $FUNCSIG$v)
+ (func $runPostSets (; 31 ;) (type $FUNCSIG$v)
(nop)
)
- (func $_memset (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memset (; 32 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -1271,7 +1271,7 @@ digraph call {
(get_local $2)
)
)
- (func $_memcpy (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memcpy (; 33 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
@@ -1420,10 +1420,10 @@ digraph call {
)
(get_local $3)
)
- (func $_pthread_self (type $6) (result i32)
+ (func $_pthread_self (; 34 ;) (type $6) (result i32)
(i32.const 0)
)
- (func $dynCall_ii (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 35 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(get_local $1)
(i32.add
@@ -1435,7 +1435,7 @@ digraph call {
)
)
)
- (func $dynCall_iiii (type $7) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 36 ;) (type $7) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(get_local $1)
(get_local $2)
@@ -1449,7 +1449,7 @@ digraph call {
)
)
)
- (func $dynCall_vi (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(get_local $1)
(i32.add
@@ -1461,7 +1461,7 @@ digraph call {
)
)
)
- (func $dynCall_v (type $FUNCSIG$vi) (param $0 i32)
+ (func $dynCall_v (; 38 ;) (type $FUNCSIG$vi) (param $0 i32)
(call_indirect $FUNCSIG$v
(i32.add
(i32.and
@@ -1472,24 +1472,24 @@ digraph call {
)
)
)
- (func $b0 (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $b0 (; 39 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(call $abort
(i32.const 0)
)
(i32.const 0)
)
- (func $b1 (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 40 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $abort
(i32.const 1)
)
(i32.const 0)
)
- (func $b2 (type $FUNCSIG$vi) (param $0 i32)
+ (func $b2 (; 41 ;) (type $FUNCSIG$vi) (param $0 i32)
(call $abort
(i32.const 2)
)
)
- (func $b3 (type $FUNCSIG$v)
+ (func $b3 (; 42 ;) (type $FUNCSIG$v)
(call $abort
(i32.const 3)
)
diff --git a/test/passes/remove-imports.txt b/test/passes/remove-imports.txt
index da188e3aa..9c7444b8d 100644
--- a/test/passes/remove-imports.txt
+++ b/test/passes/remove-imports.txt
@@ -4,7 +4,7 @@
(type $FUNCSIG$d (func (result f64)))
(import "env" "memBase" (global $import$global0 i32))
(memory $0 1024 1024)
- (func $nada (type $FUNCSIG$v)
+ (func $nada (; 0 ;) (type $FUNCSIG$v)
(nop)
(drop
(i32.const 0)
diff --git a/test/passes/remove-unused-brs.txt b/test/passes/remove-unused-brs.txt
index 607b8ecb4..529fa6152 100644
--- a/test/passes/remove-unused-brs.txt
+++ b/test/passes/remove-unused-brs.txt
@@ -10,11 +10,11 @@
(type $8 (func (result f32)))
(type $9 (func (param i32) (result f32)))
(memory $0 256 256)
- (func $b0-yes (type $0) (param $i1 i32)
+ (func $b0-yes (; 0 ;) (type $0) (param $i1 i32)
(block $topmost
)
)
- (func $b1 (type $0) (param $i1 i32)
+ (func $b1 (; 1 ;) (type $0) (param $i1 i32)
(block $topmost
(block $block
(drop
@@ -23,19 +23,19 @@
)
)
)
- (func $b2 (type $0) (param $i1 i32)
+ (func $b2 (; 2 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
)
)
)
- (func $b3-yes (type $0) (param $i1 i32)
+ (func $b3-yes (; 3 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
)
)
)
- (func $b4 (type $0) (param $i1 i32)
+ (func $b4 (; 4 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
(block $block
@@ -46,7 +46,7 @@
)
)
)
- (func $b5 (type $0) (param $i1 i32)
+ (func $b5 (; 5 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
(block $block
@@ -57,14 +57,14 @@
)
)
)
- (func $b6 (type $0) (param $i1 i32)
+ (func $b6 (; 6 ;) (type $0) (param $i1 i32)
(block $topmost
(br_if $topmost
(i32.const 1)
)
)
)
- (func $b7 (type $0) (param $i1 i32)
+ (func $b7 (; 7 ;) (type $0) (param $i1 i32)
(block $topmost
(block $block
(drop
@@ -76,7 +76,7 @@
)
)
)
- (func $b8 (type $0) (param $i1 i32)
+ (func $b8 (; 8 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
(br_if $topmost
@@ -85,7 +85,7 @@
)
)
)
- (func $b9 (type $0) (param $i1 i32)
+ (func $b9 (; 9 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
(br_if $topmost
@@ -94,7 +94,7 @@
)
)
)
- (func $b10 (type $0) (param $i1 i32)
+ (func $b10 (; 10 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
(block $block
@@ -108,7 +108,7 @@
)
)
)
- (func $b11 (type $0) (param $i1 i32)
+ (func $b11 (; 11 ;) (type $0) (param $i1 i32)
(block $topmost
(block $inner
(block $block
@@ -122,7 +122,7 @@
)
)
)
- (func $b12-yes (type $1)
+ (func $b12-yes (; 12 ;) (type $1)
(block $topmost
(if
(i32.const 1)
@@ -149,7 +149,7 @@
)
)
)
- (func $b13 (type $2) (result i32)
+ (func $b13 (; 13 ;) (type $2) (result i32)
(block $topmost (result i32)
(if
(i32.const 1)
@@ -176,7 +176,7 @@
(i32.const 3)
)
)
- (func $b14 (type $2) (result i32)
+ (func $b14 (; 14 ;) (type $2) (result i32)
(block $topmost (result i32)
(if (result i32)
(i32.const 1)
@@ -189,14 +189,14 @@
)
)
)
- (func $b15 (type $1)
+ (func $b15 (; 15 ;) (type $1)
(block $topmost
(br_if $topmost
(i32.const 17)
)
)
)
- (func $b15b (type $1)
+ (func $b15b (; 16 ;) (type $1)
(block $topmost
(if
(i32.const 18)
@@ -208,7 +208,7 @@
)
)
)
- (func $b16 (type $1)
+ (func $b16 (; 17 ;) (type $1)
(block $a
(block $b
(block $c
@@ -228,7 +228,7 @@
)
)
)
- (func $b17 (type $1)
+ (func $b17 (; 18 ;) (type $1)
(block $a
(if
(i32.const 0)
@@ -270,16 +270,16 @@
)
)
)
- (func $ret-1 (type $1)
+ (func $ret-1 (; 19 ;) (type $1)
(nop)
)
- (func $ret-2 (type $1)
+ (func $ret-2 (; 20 ;) (type $1)
(block $block0
(block $block1
)
)
)
- (func $ret-3 (type $1)
+ (func $ret-3 (; 21 ;) (type $1)
(block $block0
(if
(i32.const 0)
@@ -289,14 +289,14 @@
)
)
)
- (func $ret-value (type $2) (result i32)
+ (func $ret-value (; 22 ;) (type $2) (result i32)
(block $block0 (result i32)
(block $block1 (result i32)
(i32.const 1)
)
)
)
- (func $no-select-but-the-last (type $1)
+ (func $no-select-but-the-last (; 23 ;) (type $1)
(block $a
(if
(i32.const 0)
@@ -370,7 +370,7 @@
)
)
)
- (func $side-effects-and-order (type $2) (result i32)
+ (func $side-effects-and-order (; 24 ;) (type $2) (result i32)
(local $x i32)
(block $do-once$0
(if
@@ -428,7 +428,7 @@
(i32.const 1)
)
)
- (func $loops (type $1)
+ (func $loops (; 25 ;) (type $1)
(loop $in
(block $out
(br_if $in
@@ -710,7 +710,7 @@
)
)
)
- (func $br_if_in_block (type $2) (result i32)
+ (func $br_if_in_block (; 26 ;) (type $2) (result i32)
(block $outval (result i32)
(block $in
(br_if $in
@@ -746,7 +746,7 @@
)
)
)
- (func $threading (type $1)
+ (func $threading (; 27 ;) (type $1)
(drop
(block $value-out (result i32)
(block $value-in (result i32)
@@ -780,7 +780,7 @@
)
)
)
- (func $if-to-br_if-conflict (type $3) (param $x i32) (param $y i32) (result i32)
+ (func $if-to-br_if-conflict (; 28 ;) (type $3) (param $x i32) (param $y i32) (result i32)
(block $leave
(set_local $y
(block $out (result i32)
@@ -807,7 +807,7 @@
(get_local $y)
)
)
- (func $if-to-br_if-conflict2 (type $3) (param $x i32) (param $y i32) (result i32)
+ (func $if-to-br_if-conflict2 (; 29 ;) (type $3) (param $x i32) (param $y i32) (result i32)
(block $leave
(set_local $y
(block $out (result i32)
@@ -834,7 +834,7 @@
(get_local $y)
)
)
- (func $if-to-br_if-value-sideeffect (type $3) (param $x i32) (param $y i32) (result i32)
+ (func $if-to-br_if-value-sideeffect (; 30 ;) (type $3) (param $x i32) (param $y i32) (result i32)
(block $leave
(set_local $y
(block $out (result i32)
@@ -862,7 +862,7 @@
(get_local $y)
)
)
- (func $fuzz (type $4) (param $j i32) (param $g i32)
+ (func $fuzz (; 31 ;) (type $4) (param $j i32) (param $g i32)
(block $label$break$c
(loop $label$continue$d
(block $label$break$d
@@ -892,7 +892,7 @@
)
)
)
- (func $iffify (type $1)
+ (func $iffify (; 32 ;) (type $1)
(if
(i32.eqz
(i32.const 0)
@@ -947,7 +947,7 @@
)
)
)
- (func $loop-if (type $2) (result i32)
+ (func $loop-if (; 33 ;) (type $2) (result i32)
(block $outer (result i32)
(loop $typed (result i32)
(if (result i32)
@@ -963,7 +963,7 @@
)
)
)
- (func $block-break (type $0) (param $0 i32)
+ (func $block-break (; 34 ;) (type $0) (param $0 i32)
(block $block$7$break
(block $shape$6$continue
(call $block-break
@@ -972,7 +972,7 @@
)
)
)
- (func $loop-break (type $0) (param $0 i32)
+ (func $loop-break (; 35 ;) (type $0) (param $0 i32)
(block $block$7$break
(loop $shape$6$continue
(call $loop-break
@@ -985,7 +985,7 @@
)
)
)
- (func $untaken-brs-might-prevent-block-removal (type $5) (param $0 f32) (param $1 i32) (param $2 f32) (param $3 i32) (param $4 i32) (param $5 f64) (param $6 f32) (result i32)
+ (func $untaken-brs-might-prevent-block-removal (; 36 ;) (type $5) (param $0 f32) (param $1 i32) (param $2 f32) (param $3 i32) (param $4 i32) (param $5 f64) (param $6 f32) (result i32)
(block $label$0 (result i32)
(block $label$1
(br_if $label$1
@@ -1020,7 +1020,7 @@
(i32.const 1935947830)
)
)
- (func $unexitable-loops-result (type $6) (param $0 i32) (result i64)
+ (func $unexitable-loops-result (; 37 ;) (type $6) (param $0 i32) (result i64)
(loop $label$0
(loop $label$1
(br_if $label$0
@@ -1039,7 +1039,7 @@
)
)
)
- (func $untaken-br-with-concrete-last-element (type $1)
+ (func $untaken-br-with-concrete-last-element (; 38 ;) (type $1)
(block $label$8
(block $label$11
(block $label$14
@@ -1050,7 +1050,7 @@
)
)
)
- (func $untaken-br-with-concrete-last-element2 (type $2) (result i32)
+ (func $untaken-br-with-concrete-last-element2 (; 39 ;) (type $2) (result i32)
(block $label$8 (result i32)
(block $label$11 (result i32)
(block $label$14 (result i32)
@@ -1064,7 +1064,7 @@
)
)
)
- (func $untaken-br_if-then-if (type $1)
+ (func $untaken-br_if-then-if (; 40 ;) (type $1)
(block $label$0
(br_if $label$0
(unreachable)
@@ -1075,7 +1075,7 @@
)
)
)
- (func $unreachable-if-that-could-be-a-br_if (type $7) (result i64)
+ (func $unreachable-if-that-could-be-a-br_if (; 41 ;) (type $7) (result i64)
(loop $label$3 (result i64)
(drop
(if (result f64)
@@ -1087,7 +1087,7 @@
(i64.const 1)
)
)
- (func $nop-br-might-update-type (type $1)
+ (func $nop-br-might-update-type (; 42 ;) (type $1)
(block $label$39
(drop
(if (result i32)
@@ -1102,7 +1102,7 @@
)
)
)
- (func $no-flow-through-if-without-else (type $8) (result f32)
+ (func $no-flow-through-if-without-else (; 43 ;) (type $8) (result f32)
(local $0 i32)
(local $2 f32)
(block $label$0 (result f32)
@@ -1123,7 +1123,7 @@
)
)
)
- (func $unreachable-return-loop-value (type $7) (result i64)
+ (func $unreachable-return-loop-value (; 44 ;) (type $7) (result i64)
(loop $loop
(if
(i32.const 1)
@@ -1137,7 +1137,7 @@
(br $loop)
)
)
- (func $obviously-flows-out-maybe (type $9) (param $var$0 i32) (result f32)
+ (func $obviously-flows-out-maybe (; 45 ;) (type $9) (param $var$0 i32) (result f32)
(block $label$1 (result f32)
(br $label$1
(f32.const 1)
diff --git a/test/passes/remove-unused-brs_precompute_vacuum_remove-unused-brs.txt b/test/passes/remove-unused-brs_precompute_vacuum_remove-unused-brs.txt
index d2bc2ad9b..be58b2f90 100644
--- a/test/passes/remove-unused-brs_precompute_vacuum_remove-unused-brs.txt
+++ b/test/passes/remove-unused-brs_precompute_vacuum_remove-unused-brs.txt
@@ -2,7 +2,7 @@
(type $0 (func (param i32) (result f64)))
(global $global$3 (mut f64) (f64.const 0))
(memory $0 0)
- (func $1 (type $0) (param $x i32) (result f64)
+ (func $1 (; 0 ;) (type $0) (param $x i32) (result f64)
(local $var$0 f64)
(block $label$0 (result f64)
(set_local $var$0
diff --git a/test/passes/remove-unused-brs_shrink-level=1.txt b/test/passes/remove-unused-brs_shrink-level=1.txt
index fb739356c..ac47d9f0e 100644
--- a/test/passes/remove-unused-brs_shrink-level=1.txt
+++ b/test/passes/remove-unused-brs_shrink-level=1.txt
@@ -3,7 +3,7 @@
(type $1 (func))
(type $2 (func (result i32)))
(memory $0 256 256)
- (func $b14 (type $2) (result i32)
+ (func $b14 (; 0 ;) (type $2) (result i32)
(drop
(select
(block $block1 (result i32)
@@ -45,7 +45,7 @@
)
(i32.const 0)
)
- (func $join-br_ifs (type $1)
+ (func $join-br_ifs (; 1 ;) (type $1)
(block $out
(br_if $out
(i32.or
@@ -123,7 +123,7 @@
)
)
)
- (func $join-and-it-becomes-unreachable (type $1)
+ (func $join-and-it-becomes-unreachable (; 2 ;) (type $1)
(block $label$1
(block $block
(br_if $label$1
@@ -139,7 +139,7 @@
)
)
)
- (func $br-if-unreachable-pair (type $1)
+ (func $br-if-unreachable-pair (; 3 ;) (type $1)
(block $label$14
(br_if $label$14
(unreachable)
@@ -149,7 +149,7 @@
)
)
)
- (func $br-if-unreachable-pair2 (type $1)
+ (func $br-if-unreachable-pair2 (; 4 ;) (type $1)
(block $label$14
(br_if $label$14
(i32.const 0)
diff --git a/test/passes/remove-unused-brs_shrink-level=1_ignore-implicit-traps.txt b/test/passes/remove-unused-brs_shrink-level=1_ignore-implicit-traps.txt
index 06734897a..8e865c39d 100644
--- a/test/passes/remove-unused-brs_shrink-level=1_ignore-implicit-traps.txt
+++ b/test/passes/remove-unused-brs_shrink-level=1_ignore-implicit-traps.txt
@@ -3,7 +3,7 @@
(type $1 (func))
(type $2 (func (result i32)))
(memory $0 256 256)
- (func $b14 (type $2) (result i32)
+ (func $b14 (; 0 ;) (type $2) (result i32)
(drop
(select
(block $block1 (result i32)
@@ -45,7 +45,7 @@
)
(i32.const 0)
)
- (func $join-br_ifs (type $1)
+ (func $join-br_ifs (; 1 ;) (type $1)
(block $out
(br_if $out
(i32.or
diff --git a/test/passes/remove-unused-module-elements.txt b/test/passes/remove-unused-module-elements.txt
index abce5a5aa..ecb888662 100644
--- a/test/passes/remove-unused-module-elements.txt
+++ b/test/passes/remove-unused-module-elements.txt
@@ -10,32 +10,32 @@
(export "other1" (func $other1))
(export "other2" (func $other2))
(start $start)
- (func $start (type $0)
+ (func $start (; 0 ;) (type $0)
(call $called0)
)
- (func $called0 (type $0)
+ (func $called0 (; 1 ;) (type $0)
(call $called1)
)
- (func $called1 (type $0)
+ (func $called1 (; 2 ;) (type $0)
(nop)
)
- (func $called_indirect (type $0)
+ (func $called_indirect (; 3 ;) (type $0)
(nop)
)
- (func $exported (type $0)
+ (func $exported (; 4 ;) (type $0)
(call $called2)
)
- (func $called2 (type $0)
+ (func $called2 (; 5 ;) (type $0)
(call $called2)
(call $called3)
)
- (func $called3 (type $0)
+ (func $called3 (; 6 ;) (type $0)
(call $called4)
)
- (func $called4 (type $0)
+ (func $called4 (; 7 ;) (type $0)
(call $called3)
)
- (func $other1 (type $1) (param $0 i32)
+ (func $other1 (; 8 ;) (type $1) (param $0 i32)
(call_indirect $0
(i32.const 0)
)
@@ -75,7 +75,7 @@
)
)
)
- (func $other2 (type $1) (param $0 i32)
+ (func $other2 (; 9 ;) (type $1) (param $0 i32)
(unreachable)
)
)
@@ -91,7 +91,7 @@
(import "env" "tableBase" (global $tableBase i32))
(elem (get_global $tableBase) $waka)
(data (get_global $memoryBase) "hello, world!")
- (func $waka (type $0)
+ (func $waka (; 0 ;) (type $0)
(nop)
)
)
@@ -109,16 +109,16 @@
(export "three" (func $three))
(export "exp_glob" (global $exp_glob))
(start $starter)
- (func $one (type $1) (result i32)
+ (func $one (; 1 ;) (type $1) (result i32)
(call $two)
)
- (func $two (type $1) (result i32)
+ (func $two (; 2 ;) (type $1) (result i32)
(get_global $int)
)
- (func $three (type $2)
+ (func $three (; 3 ;) (type $2)
(call $four)
)
- (func $four (type $2)
+ (func $four (; 4 ;) (type $2)
(set_global $set
(i32.const 200)
)
@@ -128,7 +128,7 @@
)
)
)
- (func $starter (type $2)
+ (func $starter (; 5 ;) (type $2)
(nop)
)
)
diff --git a/test/passes/remove-unused-names.txt b/test/passes/remove-unused-names.txt
index 6fd0f4e51..864dcca6c 100644
--- a/test/passes/remove-unused-names.txt
+++ b/test/passes/remove-unused-names.txt
@@ -3,10 +3,10 @@
(type $1 (func))
(type $2 (func (result i32)))
(memory $0 256 256)
- (func $b0 (type $0) (param $i1 i32) (result i32)
+ (func $b0 (; 0 ;) (type $0) (param $i1 i32) (result i32)
(i32.const 0)
)
- (func $loops (type $1)
+ (func $loops (; 1 ;) (type $1)
(block $out
(loop $in
(br $out)
@@ -48,7 +48,7 @@
)
)
)
- (func $merges (type $1)
+ (func $merges (; 2 ;) (type $1)
(block $b
(br $b)
(br $b)
@@ -64,7 +64,7 @@
)
)
)
- (func $merge-typed-with-unreachable-child (type $2) (result i32)
+ (func $merge-typed-with-unreachable-child (; 3 ;) (type $2) (result i32)
(local $0 f32)
(block $label$1 (result i32)
(br_if $label$1
diff --git a/test/passes/remove-unused-names_code-folding.txt b/test/passes/remove-unused-names_code-folding.txt
index 0ad10704f..c037c95ef 100644
--- a/test/passes/remove-unused-names_code-folding.txt
+++ b/test/passes/remove-unused-names_code-folding.txt
@@ -3,7 +3,7 @@
(type $1 (func (param i32 i32) (result i32)))
(type $2 (func (result i32)))
(memory $0 0)
- (func $ifs (type $0)
+ (func $ifs (; 0 ;) (type $0)
(if
(i32.const 0)
(nop)
@@ -44,7 +44,7 @@
)
)
)
- (func $ifs-blocks (type $0)
+ (func $ifs-blocks (; 1 ;) (type $0)
(block
(drop
(i32.const 0)
@@ -88,7 +88,7 @@
)
)
)
- (func $ifs-blocks-big (type $0)
+ (func $ifs-blocks-big (; 2 ;) (type $0)
(block
(drop
(i32.const 0)
@@ -167,7 +167,7 @@
)
)
)
- (func $ifs-blocks-long (type $0)
+ (func $ifs-blocks-long (; 3 ;) (type $0)
(block
(if
(i32.const 1)
@@ -237,7 +237,7 @@
)
)
)
- (func $if-worth-it-i-dunno (type $0)
+ (func $if-worth-it-i-dunno (; 4 ;) (type $0)
(block $folding-inner0
(block
(if
@@ -411,7 +411,7 @@
(unreachable)
(unreachable)
)
- (func $no-grandparent (type $0)
+ (func $no-grandparent (; 5 ;) (type $0)
(if
(i32.const 9999)
(block
@@ -436,7 +436,7 @@
)
)
)
- (func $yes-grandparent (type $0)
+ (func $yes-grandparent (; 6 ;) (type $0)
(block
(if
(i32.const 9999)
@@ -461,7 +461,7 @@
(unreachable)
)
)
- (func $ifs-named-block (type $1) (param $x i32) (param $y i32) (result i32)
+ (func $ifs-named-block (; 7 ;) (type $1) (param $x i32) (param $y i32) (result i32)
(block $out
(block $out2
(block
@@ -546,7 +546,7 @@
(i32.const 20)
)
)
- (func $block (type $0)
+ (func $block (; 8 ;) (type $0)
(block $x
(if
(i32.const 0)
@@ -565,7 +565,7 @@
(i32.const 2)
)
)
- (func $block2 (type $0)
+ (func $block2 (; 9 ;) (type $0)
(block $x
(if
(i32.const 0)
@@ -600,7 +600,7 @@
(br $x)
)
)
- (func $block3 (type $0)
+ (func $block3 (; 10 ;) (type $0)
(block $x
(if
(i32.const 0)
@@ -641,7 +641,7 @@
(i32.const 2)
)
)
- (func $mixture (type $0)
+ (func $mixture (; 11 ;) (type $0)
(block $out
(block
(drop
@@ -720,7 +720,7 @@
(nop)
)
)
- (func $block-corners (type $0)
+ (func $block-corners (; 12 ;) (type $0)
(block
(block $x
(if
@@ -879,7 +879,7 @@
)
)
)
- (func $terminating (type $0)
+ (func $terminating (; 13 ;) (type $0)
(block $folding-inner0
(block
(if
@@ -910,7 +910,7 @@
(nop)
(unreachable)
)
- (func $terminating-unreachable (type $0)
+ (func $terminating-unreachable (; 14 ;) (type $0)
(block $folding-inner0
(block
(if
@@ -941,7 +941,7 @@
(nop)
(unreachable)
)
- (func $terminating-value (type $2) (result i32)
+ (func $terminating-value (; 15 ;) (type $2) (result i32)
(block $folding-inner0
(return
(block (result i32)
@@ -974,7 +974,7 @@
(nop)
(unreachable)
)
- (func $terminating-just-2 (type $0)
+ (func $terminating-just-2 (; 16 ;) (type $0)
(block $folding-inner0
(block
(if
@@ -1021,7 +1021,7 @@
(nop)
(unreachable)
)
- (func $terminating-shortness (type $0)
+ (func $terminating-shortness (; 17 ;) (type $0)
(block $folding-inner1
(block
(block $folding-inner0
@@ -1062,7 +1062,7 @@
(nop)
(unreachable)
)
- (func $terminating-multiple-separate (type $0)
+ (func $terminating-multiple-separate (; 18 ;) (type $0)
(block $folding-inner1
(block
(block $folding-inner0
@@ -1119,7 +1119,7 @@
)
(unreachable)
)
- (func $terminating-just-worth-it (type $0)
+ (func $terminating-just-worth-it (; 19 ;) (type $0)
(block $folding-inner0
(block
(if
@@ -1142,7 +1142,7 @@
(nop)
(unreachable)
)
- (func $terminating-not-worth-it (type $0)
+ (func $terminating-not-worth-it (; 20 ;) (type $0)
(if
(i32.const 1)
(block
@@ -1168,7 +1168,7 @@
)
)
)
- (func $terminating-return (type $0)
+ (func $terminating-return (; 21 ;) (type $0)
(block $folding-inner0
(block
(if
@@ -1199,7 +1199,7 @@
(nop)
(return)
)
- (func $terminating-return-value (type $2) (result i32)
+ (func $terminating-return-value (; 22 ;) (type $2) (result i32)
(block $folding-inner0
(block
(if
@@ -1239,7 +1239,7 @@
)
)
)
- (func $terminating-fallthrough-value (type $2) (result i32)
+ (func $terminating-fallthrough-value (; 23 ;) (type $2) (result i32)
(block $folding-inner0
(return
(block (result i32)
@@ -1279,7 +1279,7 @@
)
)
)
- (func $big-return (type $2) (result i32)
+ (func $big-return (; 24 ;) (type $2) (result i32)
(block $folding-inner0
(block
(if
@@ -1316,7 +1316,7 @@
)
)
)
- (func $return-mix (type $2) (result i32)
+ (func $return-mix (; 25 ;) (type $2) (result i32)
(block $folding-inner0
(block
(if
@@ -1354,10 +1354,10 @@
)
)
)
- (func $just-unreachable (type $0)
+ (func $just-unreachable (; 26 ;) (type $0)
(unreachable)
)
- (func $just-return (type $2) (result i32)
+ (func $just-return (; 27 ;) (type $2) (result i32)
(return
(i32.add
(i32.const 1)
@@ -1365,7 +1365,7 @@
)
)
)
- (func $drop-if-with-value-but-unreachable (type $0)
+ (func $drop-if-with-value-but-unreachable (; 28 ;) (type $0)
(if
(i32.const 0)
(nop)
@@ -1411,7 +1411,7 @@
)
)
)
- (func $nested-control-flow (type $0)
+ (func $nested-control-flow (; 29 ;) (type $0)
(block $out
(block
(block $x
@@ -1441,7 +1441,7 @@
)
)
)
- (func $nested-control-flow-dangerous (type $0)
+ (func $nested-control-flow-dangerous (; 30 ;) (type $0)
(block $folding-inner0
(block $out
(block
@@ -1485,7 +1485,7 @@
)
(return)
)
- (func $nested-control-flow-dangerous-but-ok (type $0)
+ (func $nested-control-flow-dangerous-but-ok (; 31 ;) (type $0)
(block $folding-inner0
(block
(block $middle
@@ -1540,7 +1540,7 @@
)
(return)
)
- (func $nested-control-flow-dangerous-but-ok-b (type $0)
+ (func $nested-control-flow-dangerous-but-ok-b (; 32 ;) (type $0)
(block $out
(block $middle
(block
@@ -1606,7 +1606,7 @@
(i32.const 4)
)
)
- (func $nested-control-flow-dangerous-but-ok-c (type $0)
+ (func $nested-control-flow-dangerous-but-ok-c (; 33 ;) (type $0)
(block $x
(block
(block $out
@@ -1643,7 +1643,7 @@
(i32.const 5)
)
)
- (func $nested-control-flow-dangerous-but-ok-d (type $0)
+ (func $nested-control-flow-dangerous-but-ok-d (; 34 ;) (type $0)
(block
(block $out
(block
diff --git a/test/passes/remove-unused-names_merge-blocks.txt b/test/passes/remove-unused-names_merge-blocks.txt
index f5d432d27..d5373adde 100644
--- a/test/passes/remove-unused-names_merge-blocks.txt
+++ b/test/passes/remove-unused-names_merge-blocks.txt
@@ -8,21 +8,21 @@
(table 1 1 anyfunc)
(elem (i32.const 0) $call-i)
(memory $0 (shared 256 256))
- (func $call-i (type $i) (param $0 i32)
+ (func $call-i (; 0 ;) (type $i) (param $0 i32)
(nop)
)
- (func $call-ii (type $ii) (param $0 i32) (param $1 i32)
+ (func $call-ii (; 1 ;) (type $ii) (param $0 i32) (param $1 i32)
(nop)
)
- (func $call-iii (type $iii) (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $call-iii (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (param $2 i32)
(nop)
)
- (func $b0-yes (type $i) (param $i1 i32)
+ (func $b0-yes (; 3 ;) (type $i) (param $i1 i32)
(drop
(i32.const 10)
)
)
- (func $b0-no (type $i) (param $i1 i32)
+ (func $b0-no (; 4 ;) (type $i) (param $i1 i32)
(block $topmost
(block $block0
(br $block0)
@@ -30,17 +30,17 @@
(br $topmost)
)
)
- (func $b0-br-but-ok (type $i) (param $i1 i32)
+ (func $b0-br-but-ok (; 5 ;) (type $i) (param $i1 i32)
(block $topmost
(br $topmost)
)
)
- (func $b1-yes (type $i) (param $i1 i32)
+ (func $b1-yes (; 6 ;) (type $i) (param $i1 i32)
(drop
(i32.const 10)
)
)
- (func $b2-yes (type $i) (param $i1 i32)
+ (func $b2-yes (; 7 ;) (type $i) (param $i1 i32)
(drop
(i32.const 5)
)
@@ -51,7 +51,7 @@
(i32.const 15)
)
)
- (func $b3-yes (type $i) (param $i1 i32)
+ (func $b3-yes (; 8 ;) (type $i) (param $i1 i32)
(drop
(i32.const 3)
)
@@ -68,7 +68,7 @@
(i32.const 20)
)
)
- (func $b4 (type $i) (param $i1 i32)
+ (func $b4 (; 9 ;) (type $i) (param $i1 i32)
(block $inner
(drop
(i32.const 10)
@@ -76,7 +76,7 @@
(br $inner)
)
)
- (func $b5 (type $i) (param $i1 i32)
+ (func $b5 (; 10 ;) (type $i) (param $i1 i32)
(block $middle
(block $inner
(drop
@@ -87,7 +87,7 @@
(br $middle)
)
)
- (func $b6 (type $i) (param $i1 i32)
+ (func $b6 (; 11 ;) (type $i) (param $i1 i32)
(drop
(i32.const 5)
)
@@ -101,7 +101,7 @@
(i32.const 15)
)
)
- (func $b7 (type $i) (param $i1 i32)
+ (func $b7 (; 12 ;) (type $i) (param $i1 i32)
(drop
(i32.const 3)
)
@@ -124,7 +124,7 @@
(i32.const 20)
)
)
- (func $unary (type $3)
+ (func $unary (; 13 ;) (type $3)
(local $x i32)
(drop
(i32.eqz
@@ -175,7 +175,7 @@
)
)
)
- (func $binary (type $3)
+ (func $binary (; 14 ;) (type $3)
(drop
(i32.add
(block (result i32)
@@ -312,7 +312,7 @@
)
)
)
- (func $trinary (type $3)
+ (func $trinary (; 15 ;) (type $3)
(drop
(i32.const 10)
)
@@ -531,7 +531,7 @@
)
)
)
- (func $breaks (type $3)
+ (func $breaks (; 16 ;) (type $3)
(block $out
(drop
(i32.const 10)
@@ -581,7 +581,7 @@
(unreachable)
)
)
- (func $calls (type $3)
+ (func $calls (; 17 ;) (type $3)
(call $call-i
(block (result i32)
(i32.const 10)
@@ -739,7 +739,7 @@
(unreachable)
)
)
- (func $atomics (type $3)
+ (func $atomics (; 18 ;) (type $3)
(drop
(i32.const 10)
)
@@ -766,7 +766,7 @@
)
)
)
- (func $mix-select (type $i) (param $x i32)
+ (func $mix-select (; 19 ;) (type $i) (param $x i32)
(drop
(select
(get_local $x)
@@ -780,7 +780,7 @@
)
)
)
- (func $block-type-change (type $3)
+ (func $block-type-change (; 20 ;) (type $3)
(local $0 f64)
(local $1 f64)
(if
@@ -794,7 +794,7 @@
(nop)
)
)
- (func $do-reorder (type $i) (param $x i32)
+ (func $do-reorder (; 21 ;) (type $i) (param $x i32)
(local $y i32)
(if
(i32.const 1)
@@ -811,7 +811,7 @@
)
)
)
- (func $do-not-reorder (type $i) (param $x i32)
+ (func $do-not-reorder (; 22 ;) (type $i) (param $x i32)
(local $y i32)
(if
(i32.const 1)
@@ -828,7 +828,7 @@
)
)
)
- (func $return-different-type (type $4) (result i32)
+ (func $return-different-type (; 23 ;) (type $4) (result i32)
(drop
(f64.abs
(block
@@ -843,7 +843,7 @@
)
(unreachable)
)
- (func $drop-unreachable (type $4) (result i32)
+ (func $drop-unreachable (; 24 ;) (type $4) (result i32)
(local $0 i32)
(drop
(block (result i32)
@@ -852,7 +852,7 @@
)
(unreachable)
)
- (func $concrete_finale_in_unreachable (type $5) (result f64)
+ (func $concrete_finale_in_unreachable (; 25 ;) (type $5) (result f64)
(drop
(block (result f64)
(unreachable)
@@ -861,7 +861,7 @@
)
(f64.const -1)
)
- (func $dont-move-unreachable (type $3)
+ (func $dont-move-unreachable (; 26 ;) (type $3)
(loop $label$0
(drop
(block (result i32)
@@ -871,7 +871,7 @@
)
)
)
- (func $dont-move-unreachable-last (type $3)
+ (func $dont-move-unreachable-last (; 27 ;) (type $3)
(loop $label$0
(drop
(block (result i32)
@@ -881,7 +881,7 @@
)
)
)
- (func $move-around-unreachable-in-middle (type $3)
+ (func $move-around-unreachable-in-middle (; 28 ;) (type $3)
(loop $label$0
(nop)
(drop
@@ -897,7 +897,7 @@
)
)
)
- (func $drop-unreachable-block-with-concrete-final (type $3)
+ (func $drop-unreachable-block-with-concrete-final (; 29 ;) (type $3)
(drop
(block (result i32)
(drop
@@ -911,7 +911,7 @@
)
)
)
- (func $merging-with-unreachable-in-middle (type $4) (result i32)
+ (func $merging-with-unreachable-in-middle (; 30 ;) (type $4) (result i32)
(return
(i32.const 21536)
)
@@ -920,7 +920,7 @@
)
(i32.const 19299)
)
- (func $remove-br-after-unreachable (type $3)
+ (func $remove-br-after-unreachable (; 31 ;) (type $3)
(block $label$9
(drop
(block
diff --git a/test/passes/remove-unused-names_precompute.txt b/test/passes/remove-unused-names_precompute.txt
index dccd4708e..a54bb68ef 100644
--- a/test/passes/remove-unused-names_precompute.txt
+++ b/test/passes/remove-unused-names_precompute.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func (param i32)))
(memory $0 256 256)
- (func $__ZN10WasmAssertC2Ev__async_cb (type $0) (param $$0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 0 ;) (type $0) (param $$0 i32)
(block $switch-default
(nop)
(block
diff --git a/test/passes/remove-unused-names_remove-unused-brs_vacuum.txt b/test/passes/remove-unused-names_remove-unused-brs_vacuum.txt
index 4eeb1ee97..e6b01cc11 100644
--- a/test/passes/remove-unused-names_remove-unused-brs_vacuum.txt
+++ b/test/passes/remove-unused-names_remove-unused-brs_vacuum.txt
@@ -80,7 +80,7 @@
(global $global$20 (mut i32) (i32.const 0))
(global $global$21 (mut f32) (f32.const 0))
(global $global$22 (mut f32) (f32.const 0))
- (func $27 (type $13) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (param $var$3 i32) (param $var$4 i32)
+ (func $27 (; 23 ;) (type $13) (param $var$0 i32) (param $var$1 i32) (param $var$2 i32) (param $var$3 i32) (param $var$4 i32)
(local $var$5 i32)
(local $var$6 i32)
(local $var$7 i32)
@@ -111,10 +111,10 @@
)
)
)
- (func $23 (type $0) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $23 (; 24 ;) (type $0) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(unreachable)
)
- (func $unexitable-loops-result (type $23) (param $0 i32) (result i64)
+ (func $unexitable-loops-result (; 25 ;) (type $23) (param $0 i32) (result i64)
(loop $label$0
(loop $label$1
(br_if $label$0
diff --git a/test/passes/remove-unused-names_vacuum.txt b/test/passes/remove-unused-names_vacuum.txt
index d27fb3d65..e02fa3e9e 100644
--- a/test/passes/remove-unused-names_vacuum.txt
+++ b/test/passes/remove-unused-names_vacuum.txt
@@ -2,30 +2,30 @@
(type $0 (func (result i32)))
(type $1 (func))
(memory $0 0)
- (func $return-i32-but-body-is-unreachable3 (type $0) (result i32)
+ (func $return-i32-but-body-is-unreachable3 (; 0 ;) (type $0) (result i32)
(local $label i32)
(loop $while-in$1
(br $while-in$1)
)
)
- (func $return-i32-but-body-is-unreachable4 (type $0) (result i32)
+ (func $return-i32-but-body-is-unreachable4 (; 1 ;) (type $0) (result i32)
(local $label i32)
(loop $while-in$1
(br $while-in$1)
)
)
- (func $to-drop-unreachable (type $1)
+ (func $to-drop-unreachable (; 2 ;) (type $1)
(drop
(block (result i32)
(unreachable)
)
)
)
- (func $return-i32-but-body-is-unreachable5 (type $0) (result i32)
+ (func $return-i32-but-body-is-unreachable5 (; 3 ;) (type $0) (result i32)
(local $label i32)
(unreachable)
)
- (func $return-i32-but-body-is-unreachable6 (type $0) (result i32)
+ (func $return-i32-but-body-is-unreachable6 (; 4 ;) (type $0) (result i32)
(local $label i32)
(unreachable)
)
diff --git a/test/passes/reorder-functions.txt b/test/passes/reorder-functions.txt
index 9af9c34f0..f2fbcec30 100644
--- a/test/passes/reorder-functions.txt
+++ b/test/passes/reorder-functions.txt
@@ -1,16 +1,16 @@
(module
(type $0 (func))
(memory $0 256 256)
- (func $c (type $0)
+ (func $c (; 0 ;) (type $0)
(call $c)
(call $c)
(call $c)
)
- (func $b (type $0)
+ (func $b (; 1 ;) (type $0)
(call $b)
(call $b)
)
- (func $a (type $0)
+ (func $a (; 2 ;) (type $0)
(call $a)
)
)
diff --git a/test/passes/reorder-locals.txt b/test/passes/reorder-locals.txt
index 371a52688..0770f0382 100644
--- a/test/passes/reorder-locals.txt
+++ b/test/passes/reorder-locals.txt
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32)))
(type $1 (func))
(memory $0 256 256)
- (func $b0-yes (type $0) (param $a i32) (param $b i32)
+ (func $b0-yes (; 0 ;) (type $0) (param $a i32) (param $b i32)
(local $z i32)
(local $y i32)
(local $x i32)
@@ -43,13 +43,13 @@
(get_local $b)
)
)
- (func $zero (type $1)
+ (func $zero (; 1 ;) (type $1)
(local $b i32)
(drop
(get_local $b)
)
)
- (func $null (type $1)
+ (func $null (; 2 ;) (type $1)
(nop)
)
)
diff --git a/test/passes/rereloop.txt b/test/passes/rereloop.txt
index 7a70098c0..b5750b16c 100644
--- a/test/passes/rereloop.txt
+++ b/test/passes/rereloop.txt
@@ -4,14 +4,14 @@
(type $2 (func (param i32) (result i32)))
(type $3 (func (param i32)))
(memory $0 0)
- (func $trivial (type $0)
+ (func $trivial (; 0 ;) (type $0)
(local $0 i32)
(block
(nop)
(return)
)
)
- (func $trivial2 (type $0)
+ (func $trivial2 (; 1 ;) (type $0)
(local $0 i32)
(block
(call $trivial)
@@ -19,13 +19,13 @@
(return)
)
)
- (func $return-void (type $0)
+ (func $return-void (; 2 ;) (type $0)
(local $0 i32)
(block
(return)
)
)
- (func $return-val (type $1) (result i32)
+ (func $return-val (; 3 ;) (type $1) (result i32)
(local $0 i32)
(block
(return
@@ -33,7 +33,7 @@
)
)
)
- (func $ifs (type $2) (param $x i32) (result i32)
+ (func $ifs (; 4 ;) (type $2) (param $x i32) (result i32)
(local $1 i32)
(block
)
@@ -83,7 +83,7 @@
)
)
)
- (func $loops (type $3) (param $x i32)
+ (func $loops (; 5 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$5$break
(block
@@ -171,7 +171,7 @@
)
)
)
- (func $br-out (type $3) (param $x i32)
+ (func $br-out (; 6 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$2$break
(block
@@ -189,7 +189,7 @@
)
)
)
- (func $unreachable (type $3) (param $x i32)
+ (func $unreachable (; 7 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$2$break
(block
@@ -240,7 +240,7 @@
)
)
)
- (func $empty-blocks (type $3) (param $x i32)
+ (func $empty-blocks (; 8 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$2$break
(block
@@ -264,7 +264,7 @@
)
)
)
- (func $before-and-after (type $3) (param $x i32)
+ (func $before-and-after (; 9 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$2$break
(block
@@ -533,7 +533,7 @@
)
)
)
- (func $switch (type $3) (param $x i32)
+ (func $switch (; 10 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$3$break
(block
@@ -611,7 +611,7 @@
)
)
)
- (func $no-return (type $0)
+ (func $no-return (; 11 ;) (type $0)
(local $0 i32)
(block $block$4$break
(block
@@ -646,7 +646,7 @@
)
)
)
- (func $if-br-wat (type $3) (param $x i32)
+ (func $if-br-wat (; 12 ;) (type $3) (param $x i32)
(local $1 i32)
(block $block$2$break
(block $block$8$break
@@ -710,7 +710,7 @@
)
)
)
- (func $switcher-to-nowhere (type $2) (param $0 i32) (result i32)
+ (func $switcher-to-nowhere (; 13 ;) (type $2) (param $0 i32) (result i32)
(local $1 i32)
(block
)
@@ -761,7 +761,7 @@
(memory $0 0)
(export "one" (func $0))
(export "two" (func $1))
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(local $0 i32)
(block $block$4$break
(block
@@ -794,7 +794,7 @@
)
)
)
- (func $1 (type $1) (result i32)
+ (func $1 (; 1 ;) (type $1) (result i32)
(local $0 i32)
(block
(return
diff --git a/test/passes/rereloop_dce_remove-unused-brs_remove-unused-names_coalesce-locals_simplify-locals_reorder-locals_remove-unused-brs_merge-blocks_vacuum.txt b/test/passes/rereloop_dce_remove-unused-brs_remove-unused-names_coalesce-locals_simplify-locals_reorder-locals_remove-unused-brs_merge-blocks_vacuum.txt
index e7aa9097b..6aecee123 100644
--- a/test/passes/rereloop_dce_remove-unused-brs_remove-unused-names_coalesce-locals_simplify-locals_reorder-locals_remove-unused-brs_merge-blocks_vacuum.txt
+++ b/test/passes/rereloop_dce_remove-unused-brs_remove-unused-names_coalesce-locals_simplify-locals_reorder-locals_remove-unused-brs_merge-blocks_vacuum.txt
@@ -4,20 +4,20 @@
(type $2 (func (param i32) (result i32)))
(type $3 (func (param i32)))
(memory $0 0)
- (func $trivial (type $0)
+ (func $trivial (; 0 ;) (type $0)
(nop)
)
- (func $trivial2 (type $0)
+ (func $trivial2 (; 1 ;) (type $0)
(call $trivial)
(call $trivial)
)
- (func $return-void (type $0)
+ (func $return-void (; 2 ;) (type $0)
(nop)
)
- (func $return-val (type $1) (result i32)
+ (func $return-val (; 3 ;) (type $1) (result i32)
(i32.const 1)
)
- (func $ifs (type $2) (param $0 i32) (result i32)
+ (func $ifs (; 4 ;) (type $2) (param $0 i32) (result i32)
(if (result i32)
(get_local $0)
(if (result i32)
@@ -32,7 +32,7 @@
)
)
)
- (func $loops (type $3) (param $0 i32)
+ (func $loops (; 5 ;) (type $3) (param $0 i32)
(if
(get_local $0)
(loop $shape$3$continue
@@ -58,12 +58,12 @@
)
)
)
- (func $br-out (type $3) (param $0 i32)
+ (func $br-out (; 6 ;) (type $3) (param $0 i32)
(call $br-out
(i32.const 5)
)
)
- (func $unreachable (type $3) (param $0 i32)
+ (func $unreachable (; 7 ;) (type $3) (param $0 i32)
(if
(i32.eqz
(get_local $0)
@@ -88,10 +88,10 @@
)
)
)
- (func $empty-blocks (type $3) (param $0 i32)
+ (func $empty-blocks (; 8 ;) (type $3) (param $0 i32)
(nop)
)
- (func $before-and-after (type $3) (param $0 i32)
+ (func $before-and-after (; 9 ;) (type $3) (param $0 i32)
(call $before-and-after
(i32.const 1)
)
@@ -187,7 +187,7 @@
(i32.const 25)
)
)
- (func $switch (type $3) (param $0 i32)
+ (func $switch (; 10 ;) (type $3) (param $0 i32)
(block $switch$1$case$3
(br_table $switch$1$case$3 $switch$1$case$3
(get_local $0)
@@ -213,10 +213,10 @@
(i32.const 3)
)
)
- (func $no-return (type $0)
+ (func $no-return (; 11 ;) (type $0)
(nop)
)
- (func $if-br-wat (type $3) (param $0 i32)
+ (func $if-br-wat (; 12 ;) (type $3) (param $0 i32)
(block $block$2$break
(call $if-br-wat
(i32.const 0)
diff --git a/test/passes/safe-heap.txt b/test/passes/safe-heap.txt
index 144766f1f..615909f95 100644
--- a/test/passes/safe-heap.txt
+++ b/test/passes/safe-heap.txt
@@ -5,7 +5,7 @@
(import "env" "segfault" (func $segfault))
(import "env" "alignfault" (func $alignfault))
(memory $0 (shared 100 100))
- (func $loads (type $0)
+ (func $loads (; 2 ;) (type $0)
(drop
(call $SAFE_HEAP_LOAD_i32_4_U_4
(i32.const 1)
@@ -91,7 +91,7 @@
)
)
)
- (func $stores (type $0)
+ (func $stores (; 3 ;) (type $0)
(call $SAFE_HEAP_STORE_i32_4_4
(i32.const 1)
(i32.const 0)
@@ -163,7 +163,7 @@
(f64.const 1300)
)
)
- (func $SAFE_HEAP_LOAD_i32_1_A (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_1_A (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -199,7 +199,7 @@
(i32.const 24)
)
)
- (func $SAFE_HEAP_LOAD_i32_1_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_1_1 (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -229,7 +229,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_1_U_A (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_1_U_A (; 6 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -259,7 +259,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_1_U_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_1_U_1 (; 7 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -289,7 +289,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_1 (; 8 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -319,7 +319,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_A (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_A (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -362,7 +362,7 @@
(i32.const 16)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_2 (; 10 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -399,7 +399,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_U_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_U_1 (; 11 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -429,7 +429,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_U_A (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_U_A (; 12 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -466,7 +466,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_U_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_U_2 (; 13 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -503,7 +503,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_1 (; 14 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -533,7 +533,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_2 (; 15 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -570,7 +570,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_A (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_A (; 16 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -607,7 +607,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_4 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_4 (; 17 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -644,7 +644,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_1 (; 18 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -674,7 +674,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_2 (; 19 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -711,7 +711,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_A (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_A (; 20 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -748,7 +748,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_4 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_4 (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -785,7 +785,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_1_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_1_A (; 22 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -821,7 +821,7 @@
(i64.const 56)
)
)
- (func $SAFE_HEAP_LOAD_i64_1_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_1_1 (; 23 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -851,7 +851,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_1_U_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_1_U_A (; 24 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -881,7 +881,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_1_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_1_U_1 (; 25 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -911,7 +911,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_1 (; 26 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -941,7 +941,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_A (; 27 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -984,7 +984,7 @@
(i64.const 48)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_2 (; 28 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1021,7 +1021,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_U_1 (; 29 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1051,7 +1051,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_U_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_U_A (; 30 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1088,7 +1088,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_U_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_U_2 (; 31 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1125,7 +1125,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_1 (; 32 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1155,7 +1155,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_2 (; 33 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1192,7 +1192,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_A (; 34 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1235,7 +1235,7 @@
(i64.const 32)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_4 (; 35 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1272,7 +1272,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_1 (; 36 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1302,7 +1302,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_2 (; 37 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1339,7 +1339,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_A (; 38 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1376,7 +1376,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_4 (; 39 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1413,7 +1413,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_1 (; 40 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1443,7 +1443,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_2 (; 41 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1480,7 +1480,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_4 (; 42 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1517,7 +1517,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_A (; 43 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1554,7 +1554,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_8 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_8 (; 44 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1591,7 +1591,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_1 (; 45 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1621,7 +1621,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_2 (; 46 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1658,7 +1658,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_4 (; 47 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1695,7 +1695,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_A (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_A (; 48 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1732,7 +1732,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_8 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_8 (; 49 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -1769,7 +1769,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_1_A (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_1_A (; 50 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -1799,7 +1799,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_1_1 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_1_1 (; 51 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -1829,7 +1829,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_2_1 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_2_1 (; 52 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -1859,7 +1859,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_2_A (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_2_A (; 53 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -1896,7 +1896,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_2_2 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_2_2 (; 54 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -1933,7 +1933,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_1 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_1 (; 55 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -1963,7 +1963,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_2 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_2 (; 56 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -2000,7 +2000,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_A (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_A (; 57 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -2037,7 +2037,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_4 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_4 (; 58 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -2074,7 +2074,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_1_A (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_1_A (; 59 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2104,7 +2104,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_1_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_1_1 (; 60 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2134,7 +2134,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_2_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_2_1 (; 61 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2164,7 +2164,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_2_A (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_2_A (; 62 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2201,7 +2201,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_2_2 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_2_2 (; 63 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2238,7 +2238,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_1 (; 64 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2268,7 +2268,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_2 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_2 (; 65 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2305,7 +2305,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_A (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_A (; 66 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2342,7 +2342,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_4 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_4 (; 67 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2379,7 +2379,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_1 (; 68 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2409,7 +2409,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_2 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_2 (; 69 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2446,7 +2446,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_4 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_4 (; 70 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2483,7 +2483,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_A (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_A (; 71 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2520,7 +2520,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_8 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_8 (; 72 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -2557,7 +2557,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_1_A (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_1_A (; 73 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2588,7 +2588,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_1_1 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_1_1 (; 74 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2619,7 +2619,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_2_1 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_2_1 (; 75 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2650,7 +2650,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_2_A (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_2_A (; 76 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2688,7 +2688,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_2_2 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_2_2 (; 77 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2726,7 +2726,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_1 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_1 (; 78 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2757,7 +2757,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_2 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_2 (; 79 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2795,7 +2795,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_A (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_A (; 80 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2833,7 +2833,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_4 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_4 (; 81 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -2871,7 +2871,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_1_A (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_1_A (; 82 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -2902,7 +2902,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_1_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_1_1 (; 83 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -2933,7 +2933,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_2_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_2_1 (; 84 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -2964,7 +2964,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_2_A (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_2_A (; 85 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3002,7 +3002,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_2_2 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_2_2 (; 86 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3040,7 +3040,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_1 (; 87 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3071,7 +3071,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_2 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_2 (; 88 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3109,7 +3109,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_A (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_A (; 89 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3147,7 +3147,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_4 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_4 (; 90 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3185,7 +3185,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_1 (; 91 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3216,7 +3216,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_2 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_2 (; 92 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3254,7 +3254,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_4 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_4 (; 93 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3292,7 +3292,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_A (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_A (; 94 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3330,7 +3330,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_8 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_8 (; 95 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3368,7 +3368,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_1_A (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_1_A (; 96 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3399,7 +3399,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_1_1 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_1_1 (; 97 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3430,7 +3430,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_2_1 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_2_1 (; 98 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3461,7 +3461,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_2_A (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_2_A (; 99 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3499,7 +3499,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_2_2 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_2_2 (; 100 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3537,7 +3537,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_1 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_1 (; 101 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3568,7 +3568,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_2 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_2 (; 102 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3606,7 +3606,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_A (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_A (; 103 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3644,7 +3644,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_4 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_4 (; 104 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -3682,7 +3682,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_1_A (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_1_A (; 105 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3713,7 +3713,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_1_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_1_1 (; 106 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3744,7 +3744,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_2_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_2_1 (; 107 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3775,7 +3775,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_2_A (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_2_A (; 108 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3813,7 +3813,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_2_2 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_2_2 (; 109 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3851,7 +3851,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_1 (; 110 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3882,7 +3882,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_2 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_2 (; 111 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3920,7 +3920,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_A (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_A (; 112 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3958,7 +3958,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_4 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_4 (; 113 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -3996,7 +3996,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_1 (; 114 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -4027,7 +4027,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_2 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_2 (; 115 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -4065,7 +4065,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_4 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_4 (; 116 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -4103,7 +4103,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_A (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_A (; 117 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -4141,7 +4141,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_8 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_8 (; 118 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -4187,7 +4187,7 @@
(import "env" "segfault" (func $segfault))
(import "env" "alignfault" (func $alignfault))
(memory $0 100 100)
- (func $loads (type $0)
+ (func $loads (; 2 ;) (type $0)
(drop
(call $SAFE_HEAP_LOAD_i32_4_U_4
(i32.const 1)
@@ -4195,7 +4195,7 @@
)
)
)
- (func $SAFE_HEAP_LOAD_i32_1_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_1_1 (; 3 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4225,7 +4225,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_1_U_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_1_U_1 (; 4 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4255,7 +4255,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_1 (; 5 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4285,7 +4285,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_2 (; 6 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4322,7 +4322,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_U_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_U_1 (; 7 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4352,7 +4352,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_2_U_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_2_U_2 (; 8 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4389,7 +4389,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_1 (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4419,7 +4419,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_2 (; 10 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4456,7 +4456,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_4 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_4 (; 11 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4493,7 +4493,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_1 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_1 (; 12 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4523,7 +4523,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_2 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_2 (; 13 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4560,7 +4560,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i32_4_U_4 (param $0 i32) (param $1 i32) (result i32)
+ (func $SAFE_HEAP_LOAD_i32_4_U_4 (; 14 ;) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(set_local $2
(i32.add
@@ -4597,7 +4597,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_1_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_1_1 (; 15 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4627,7 +4627,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_1_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_1_U_1 (; 16 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4657,7 +4657,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_1 (; 17 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4687,7 +4687,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_2 (; 18 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4724,7 +4724,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_U_1 (; 19 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4754,7 +4754,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_2_U_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_2_U_2 (; 20 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4791,7 +4791,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_1 (; 21 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4821,7 +4821,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_2 (; 22 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4858,7 +4858,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_4 (; 23 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4895,7 +4895,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_1 (; 24 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4925,7 +4925,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_2 (; 25 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4962,7 +4962,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_4_U_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_4_U_4 (; 26 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -4999,7 +4999,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_1 (; 27 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5029,7 +5029,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_2 (; 28 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5066,7 +5066,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_4 (; 29 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5103,7 +5103,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_8 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_8 (; 30 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5140,7 +5140,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_1 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_1 (; 31 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5170,7 +5170,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_2 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_2 (; 32 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5207,7 +5207,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_4 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_4 (; 33 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5244,7 +5244,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_i64_8_U_8 (param $0 i32) (param $1 i32) (result i64)
+ (func $SAFE_HEAP_LOAD_i64_8_U_8 (; 34 ;) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5281,7 +5281,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_1_1 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_1_1 (; 35 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -5311,7 +5311,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_2_1 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_2_1 (; 36 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -5341,7 +5341,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_2_2 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_2_2 (; 37 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -5378,7 +5378,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_1 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_1 (; 38 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -5408,7 +5408,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_2 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_2 (; 39 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -5445,7 +5445,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f32_4_4 (param $0 i32) (param $1 i32) (result f32)
+ (func $SAFE_HEAP_LOAD_f32_4_4 (; 40 ;) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(set_local $2
(i32.add
@@ -5482,7 +5482,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_1_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_1_1 (; 41 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5512,7 +5512,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_2_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_2_1 (; 42 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5542,7 +5542,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_2_2 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_2_2 (; 43 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5579,7 +5579,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_1 (; 44 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5609,7 +5609,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_2 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_2 (; 45 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5646,7 +5646,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_4_4 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_4_4 (; 46 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5683,7 +5683,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_1 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_1 (; 47 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5713,7 +5713,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_2 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_2 (; 48 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5750,7 +5750,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_4 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_4 (; 49 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5787,7 +5787,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_LOAD_f64_8_8 (param $0 i32) (param $1 i32) (result f64)
+ (func $SAFE_HEAP_LOAD_f64_8_8 (; 50 ;) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(set_local $2
(i32.add
@@ -5824,7 +5824,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_1_1 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_1_1 (; 51 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -5855,7 +5855,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_2_1 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_2_1 (; 52 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -5886,7 +5886,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_2_2 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_2_2 (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -5924,7 +5924,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_1 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_1 (; 54 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -5955,7 +5955,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_2 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_2 (; 55 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -5993,7 +5993,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i32_4_4 (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $SAFE_HEAP_STORE_i32_4_4 (; 56 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6031,7 +6031,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_1_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_1_1 (; 57 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6062,7 +6062,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_2_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_2_1 (; 58 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6093,7 +6093,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_2_2 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_2_2 (; 59 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6131,7 +6131,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_1 (; 60 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6162,7 +6162,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_2 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_2 (; 61 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6200,7 +6200,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_4_4 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_4_4 (; 62 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6238,7 +6238,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_1 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_1 (; 63 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6269,7 +6269,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_2 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_2 (; 64 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6307,7 +6307,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_4 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_4 (; 65 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6345,7 +6345,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_i64_8_8 (param $0 i32) (param $1 i32) (param $2 i64)
+ (func $SAFE_HEAP_STORE_i64_8_8 (; 66 ;) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6383,7 +6383,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_1_1 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_1_1 (; 67 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6414,7 +6414,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_2_1 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_2_1 (; 68 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6445,7 +6445,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_2_2 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_2_2 (; 69 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6483,7 +6483,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_1 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_1 (; 70 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6514,7 +6514,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_2 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_2 (; 71 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6552,7 +6552,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f32_4_4 (param $0 i32) (param $1 i32) (param $2 f32)
+ (func $SAFE_HEAP_STORE_f32_4_4 (; 72 ;) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(set_local $3
(i32.add
@@ -6590,7 +6590,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_1_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_1_1 (; 73 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6621,7 +6621,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_2_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_2_1 (; 74 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6652,7 +6652,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_2_2 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_2_2 (; 75 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6690,7 +6690,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_1 (; 76 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6721,7 +6721,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_2 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_2 (; 77 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6759,7 +6759,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_4_4 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_4_4 (; 78 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6797,7 +6797,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_1 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_1 (; 79 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6828,7 +6828,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_2 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_2 (; 80 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6866,7 +6866,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_4 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_4 (; 81 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
@@ -6904,7 +6904,7 @@
(get_local $2)
)
)
- (func $SAFE_HEAP_STORE_f64_8_8 (param $0 i32) (param $1 i32) (param $2 f64)
+ (func $SAFE_HEAP_STORE_f64_8_8 (; 82 ;) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(set_local $3
(i32.add
diff --git a/test/passes/simplify-locals-nostructure.txt b/test/passes/simplify-locals-nostructure.txt
index c48101a92..b94d681fc 100644
--- a/test/passes/simplify-locals-nostructure.txt
+++ b/test/passes/simplify-locals-nostructure.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $contrast (type $0)
+ (func $contrast (; 0 ;) (type $0)
(local $x i32)
(local $y i32)
(local $z i32)
@@ -62,11 +62,11 @@
(get_local $b)
)
)
- (func $no-unreachable (type $0)
+ (func $no-unreachable (; 1 ;) (type $0)
(local $x i32)
(unreachable)
)
- (func $implicit-trap-and-global-effects (type $0)
+ (func $implicit-trap-and-global-effects (; 2 ;) (type $0)
(local $var$0 i32)
(set_local $var$0
(i32.trunc_u/f64
@@ -81,7 +81,7 @@
(get_local $var$0)
)
)
- (func $implicit-trap-and-local-effects (type $0)
+ (func $implicit-trap-and-local-effects (; 3 ;) (type $0)
(local $var$0 i32)
(local $other i32)
(nop)
diff --git a/test/passes/simplify-locals-notee-nostructure.txt b/test/passes/simplify-locals-notee-nostructure.txt
index 027566e43..9133ed092 100644
--- a/test/passes/simplify-locals-notee-nostructure.txt
+++ b/test/passes/simplify-locals-notee-nostructure.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $contrast (type $0)
+ (func $contrast (; 0 ;) (type $0)
(local $x i32)
(local $y i32)
(local $z i32)
diff --git a/test/passes/simplify-locals-notee.txt b/test/passes/simplify-locals-notee.txt
index 7677bfc6d..57b8e19c4 100644
--- a/test/passes/simplify-locals-notee.txt
+++ b/test/passes/simplify-locals-notee.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $contrast (type $0)
+ (func $contrast (; 0 ;) (type $0)
(local $x i32)
(local $y i32)
(local $z i32)
diff --git a/test/passes/simplify-locals.txt b/test/passes/simplify-locals.txt
index 9e5891434..00caacb89 100644
--- a/test/passes/simplify-locals.txt
+++ b/test/passes/simplify-locals.txt
@@ -16,7 +16,7 @@
(import "env" "moddi" (func $___udivmoddi4 (param i32 i32 i32 i32 i32) (result i32)))
(import "env" "lp" (func $lp (param i32 i32) (result i32)))
(memory $0 256 256)
- (func $contrast (type $FUNCSIG$v)
+ (func $contrast (; 5 ;) (type $FUNCSIG$v)
(local $x i32)
(local $y i32)
(local $z i32)
@@ -78,7 +78,7 @@
)
)
)
- (func $b0-yes (type $4) (param $i1 i32)
+ (func $b0-yes (; 6 ;) (type $4) (param $i1 i32)
(local $x i32)
(local $y i32)
(local $a i32)
@@ -400,7 +400,7 @@
)
)
)
- (func $Ia (type $5) (param $a i32) (result i32)
+ (func $Ia (; 7 ;) (type $5) (param $a i32) (result i32)
(local $b i32)
(block $switch$0
(block $switch-default$6
@@ -411,7 +411,7 @@
(i32.const 60)
)
)
- (func $memories (type $6) (param $i2 i32) (param $i3 i32) (param $bi2 i32) (param $bi3 i32) (param $ci3 i32) (param $di3 i32)
+ (func $memories (; 8 ;) (type $6) (param $i2 i32) (param $i3 i32) (param $bi2 i32) (param $bi3 i32) (param $ci3 i32) (param $di3 i32)
(local $set_with_no_get i32)
(nop)
(i32.store8
@@ -443,7 +443,7 @@
(i32.const 456)
)
)
- (func $___remdi3 (type $FUNCSIG$iiiii) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
+ (func $___remdi3 (; 9 ;) (type $FUNCSIG$iiiii) (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$1 i32)
(local $$1$0 i32)
(local $$rem i32)
@@ -636,7 +636,7 @@
)
)
)
- (func $block-returns (type $FUNCSIG$v)
+ (func $block-returns (; 10 ;) (type $FUNCSIG$v)
(local $x i32)
(set_local $x
(block $out (result i32)
@@ -706,7 +706,7 @@
)
)
)
- (func $multiple (type $6) (param $s i32) (param $r i32) (param $f i32) (param $p i32) (param $t i32) (param $m i32)
+ (func $multiple (; 11 ;) (type $6) (param $s i32) (param $r i32) (param $f i32) (param $p i32) (param $t i32) (param $m i32)
(nop)
(set_local $r
(i32.add
@@ -733,7 +733,7 @@
(get_local $t)
)
)
- (func $switch-def (type $5) (param $i3 i32) (result i32)
+ (func $switch-def (; 12 ;) (type $5) (param $i3 i32) (result i32)
(local $i1 i32)
(set_local $i1
(i32.const 10)
@@ -752,7 +752,7 @@
(get_local $i1)
)
)
- (func $no-out-of-label (type $8) (param $x i32) (param $y i32)
+ (func $no-out-of-label (; 13 ;) (type $8) (param $x i32) (param $y i32)
(loop $moar
(set_local $x
(block $block (result i32)
@@ -780,7 +780,7 @@
(get_local $y)
)
)
- (func $freetype-cd (type $5) (param $a i32) (result i32)
+ (func $freetype-cd (; 14 ;) (type $5) (param $a i32) (result i32)
(local $e i32)
(loop $while-in$1
(set_local $a
@@ -807,7 +807,7 @@
)
(get_local $a)
)
- (func $drop-if-value (type $9) (param $x i32) (param $y i32) (param $z i32) (result i32)
+ (func $drop-if-value (; 15 ;) (type $9) (param $x i32) (param $y i32) (param $z i32) (result i32)
(local $temp i32)
(drop
(if (result i32)
@@ -835,7 +835,7 @@
(i32.const 0)
)
)
- (func $drop-br_if (type $9) (param $label i32) (param $$cond2 i32) (param $$$0151 i32) (result i32)
+ (func $drop-br_if (; 16 ;) (type $9) (param $label i32) (param $$cond2 i32) (param $$$0151 i32) (result i32)
(nop)
(tee_local $label
(block $label$break$L4 (result i32)
@@ -867,7 +867,7 @@
)
)
)
- (func $drop-tee-unreachable (type $FUNCSIG$v)
+ (func $drop-tee-unreachable (; 17 ;) (type $FUNCSIG$v)
(local $x i32)
(tee_local $x
(unreachable)
@@ -876,7 +876,7 @@
(get_local $x)
)
)
- (func $if-return-but-unreachable (type $10) (param $var$0 i64)
+ (func $if-return-but-unreachable (; 18 ;) (type $10) (param $var$0 i64)
(if
(unreachable)
(set_local $var$0
@@ -897,7 +897,7 @@
(type $5 (func (param i32) (result i32)))
(type $6 (func (param i32 i32 i32 i32 i32 i32)))
(memory $0 (shared 256 256))
- (func $nonatomics (type $FUNCSIG$i) (result i32)
+ (func $nonatomics (; 0 ;) (type $FUNCSIG$i) (result i32)
(local $x i32)
(nop)
(drop
@@ -909,7 +909,7 @@
(i32.const 1024)
)
)
- (func $nonatomic-growmem (type $FUNCSIG$i) (result i32)
+ (func $nonatomic-growmem (; 1 ;) (type $FUNCSIG$i) (result i32)
(local $x i32)
(set_local $x
(i32.load
@@ -925,7 +925,7 @@
)
(get_local $x)
)
- (func $atomics (type $FUNCSIG$v)
+ (func $atomics (; 2 ;) (type $FUNCSIG$v)
(local $x i32)
(set_local $x
(i32.atomic.load
@@ -941,7 +941,7 @@
(get_local $x)
)
)
- (func $one-atomic (type $FUNCSIG$v)
+ (func $one-atomic (; 3 ;) (type $FUNCSIG$v)
(local $x i32)
(set_local $x
(i32.load
@@ -957,7 +957,7 @@
(get_local $x)
)
)
- (func $other-atomic (type $FUNCSIG$v)
+ (func $other-atomic (; 4 ;) (type $FUNCSIG$v)
(local $x i32)
(set_local $x
(i32.atomic.load
@@ -973,7 +973,7 @@
(get_local $x)
)
)
- (func $atomic-growmem (type $FUNCSIG$i) (result i32)
+ (func $atomic-growmem (; 5 ;) (type $FUNCSIG$i) (result i32)
(local $x i32)
(set_local $x
(i32.load
@@ -989,7 +989,7 @@
)
(get_local $x)
)
- (func $atomicrmw (type $FUNCSIG$v)
+ (func $atomicrmw (; 6 ;) (type $FUNCSIG$v)
(local $x i32)
(set_local $x
(i32.atomic.rmw.add
@@ -1006,7 +1006,7 @@
(get_local $x)
)
)
- (func $atomic-cmpxchg (type $FUNCSIG$v)
+ (func $atomic-cmpxchg (; 7 ;) (type $FUNCSIG$v)
(local $x i32)
(set_local $x
(i32.atomic.rmw.cmpxchg
@@ -1024,7 +1024,7 @@
(get_local $x)
)
)
- (func $br-value-reordering (type $FUNCSIG$i) (result i32)
+ (func $br-value-reordering (; 8 ;) (type $FUNCSIG$i) (result i32)
(local $temp i32)
(block $outside
(loop $loop
@@ -1047,7 +1047,7 @@
)
(unreachable)
)
- (func $br-value-reordering-safe (type $FUNCSIG$i) (result i32)
+ (func $br-value-reordering-safe (; 9 ;) (type $FUNCSIG$i) (result i32)
(local $temp i32)
(set_local $temp
(block $outside (result i32)
diff --git a/test/passes/ssa.txt b/test/passes/ssa.txt
index 916fed54a..1370e4096 100644
--- a/test/passes/ssa.txt
+++ b/test/passes/ssa.txt
@@ -4,7 +4,7 @@
(type $2 (func (result i32)))
(global $global$0 (mut i32) (i32.const 1))
(memory $0 0)
- (func $basics (type $0) (param $x i32)
+ (func $basics (; 0 ;) (type $0) (param $x i32)
(local $y i32)
(local $z f32)
(local $w i64)
@@ -49,7 +49,7 @@
(get_local $7)
)
)
- (func $if (type $0) (param $p i32)
+ (func $if (; 1 ;) (type $0) (param $p i32)
(local $x i32)
(local $y i32)
(local $3 i32)
@@ -169,7 +169,7 @@
)
)
)
- (func $if2 (type $0) (param $x i32)
+ (func $if2 (; 2 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -194,7 +194,7 @@
)
)
)
- (func $block (type $0) (param $x i32)
+ (func $block (; 3 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -216,7 +216,7 @@
)
)
)
- (func $block2 (type $0) (param $x i32)
+ (func $block2 (; 4 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -316,7 +316,7 @@
(get_local $6)
)
)
- (func $loop (type $0) (param $x i32)
+ (func $loop (; 5 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(set_local $2
@@ -344,7 +344,7 @@
)
)
)
- (func $loop2 (type $0) (param $x i32)
+ (func $loop2 (; 6 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -392,7 +392,7 @@
)
)
)
- (func $loop2-zeroinit (type $1)
+ (func $loop2-zeroinit (; 7 ;) (type $1)
(local $x i32)
(local $1 i32)
(local $2 i32)
@@ -436,7 +436,7 @@
(get_local $3)
)
)
- (func $real-loop (type $0) (param $param i32)
+ (func $real-loop (; 8 ;) (type $0) (param $param i32)
(local $loopvar i32)
(local $inc i32)
(local $3 i32)
@@ -472,7 +472,7 @@
(get_local $6)
)
)
- (func $real-loop-outblock (type $0) (param $param i32)
+ (func $real-loop-outblock (; 9 ;) (type $0) (param $param i32)
(local $loopvar i32)
(local $inc i32)
(local $3 i32)
@@ -508,7 +508,7 @@
(get_local $6)
)
)
- (func $loop-loop-param (type $0) (param $param i32)
+ (func $loop-loop-param (; 10 ;) (type $0) (param $param i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -552,7 +552,7 @@
)
)
)
- (func $loop-loop-param-nomerge (type $0) (param $param i32)
+ (func $loop-loop-param-nomerge (; 11 ;) (type $0) (param $param i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -585,7 +585,7 @@
)
)
)
- (func $loop-nesting (type $0) (param $x i32)
+ (func $loop-nesting (; 12 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -638,7 +638,7 @@
)
)
)
- (func $loop-nesting-2 (type $0) (param $x i32)
+ (func $loop-nesting-2 (; 13 ;) (type $0) (param $x i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -693,7 +693,7 @@
)
)
)
- (func $func_6 (type $2) (result i32)
+ (func $func_6 (; 14 ;) (type $2) (result i32)
(local $result i32)
(local $zero i32)
(local $2 i32)
diff --git a/test/passes/translate-to-fuzz.txt b/test/passes/translate-to-fuzz.txt
index f088010f7..dace27f2b 100644
--- a/test/passes/translate-to-fuzz.txt
+++ b/test/passes/translate-to-fuzz.txt
@@ -13,7 +13,7 @@
(export "func_3" (func $func_3))
(export "func_5" (func $func_5))
(export "hangLimitInitializer" (func $hangLimitInitializer))
- (func $func_0 (type $FUNCSIG$ifi) (param $0 f32) (param $1 i32) (result i32)
+ (func $func_0 (; 0 ;) (type $FUNCSIG$ifi) (param $0 f32) (param $1 i32) (result i32)
(block
(if
(i32.eqz
@@ -149,7 +149,7 @@
)
)
)
- (func $func_1 (result f64)
+ (func $func_1 (; 1 ;) (result f64)
(local $0 i64)
(local $1 f32)
(local $2 i32)
@@ -175,7 +175,7 @@
)
(get_global $global$1)
)
- (func $func_2
+ (func $func_2 (; 2 ;)
(block
(if
(i32.eqz
@@ -322,7 +322,7 @@
(nop)
)
)
- (func $func_3 (type $FUNCSIG$dj) (param $0 i64) (result f64)
+ (func $func_3 (; 3 ;) (type $FUNCSIG$dj) (param $0 i64) (result f64)
(local $1 i64)
(block
(if
@@ -593,7 +593,7 @@
)
)
)
- (func $func_4 (result f32)
+ (func $func_4 (; 4 ;) (result f32)
(local $0 f32)
(local $1 i32)
(block
@@ -618,7 +618,7 @@
)
)
)
- (func $func_5 (type $FUNCSIG$f) (result f32)
+ (func $func_5 (; 5 ;) (type $FUNCSIG$f) (result f32)
(local $0 f32)
(local $1 i32)
(local $2 i32)
@@ -819,7 +819,7 @@
)
)
)
- (func $func_6 (param $0 f32) (param $1 f32) (result f64)
+ (func $func_6 (; 6 ;) (param $0 f32) (param $1 f32) (result f64)
(local $2 i64)
(local $3 f32)
(block
@@ -1009,12 +1009,12 @@
(f64.const 3495358995652723316329699e63)
)
)
- (func $hangLimitInitializer
+ (func $hangLimitInitializer (; 7 ;)
(set_global $hangLimit
(i32.const 100)
)
)
- (func $deNan32 (param $0 f32) (result f32)
+ (func $deNan32 (; 8 ;) (param $0 f32) (result f32)
(if (result f32)
(f32.eq
(get_local $0)
@@ -1024,7 +1024,7 @@
(f32.const 0)
)
)
- (func $deNan64 (param $0 f64) (result f64)
+ (func $deNan64 (; 9 ;) (param $0 f64) (result f64)
(if (result f64)
(f64.eq
(get_local $0)
diff --git a/test/passes/trap-mode-clamp.txt b/test/passes/trap-mode-clamp.txt
index 91ba19203..6bed7c829 100644
--- a/test/passes/trap-mode-clamp.txt
+++ b/test/passes/trap-mode-clamp.txt
@@ -3,7 +3,7 @@
(type $1 (func (param f32)))
(type $2 (func (param f64)))
(memory $0 0)
- (func $test_div (type $0) (param $0 i32) (param $1 i64)
+ (func $test_div (; 0 ;) (type $0) (param $0 i32) (param $1 i64)
(drop
(call $i32s-div
(get_local $0)
@@ -29,7 +29,7 @@
)
)
)
- (func $test_rem (type $0) (param $0 i32) (param $1 i64)
+ (func $test_rem (; 1 ;) (type $0) (param $0 i32) (param $1 i64)
(drop
(call $i32s-rem
(get_local $0)
@@ -55,7 +55,7 @@
)
)
)
- (func $test_f32_to_int (type $1) (param $0 f32)
+ (func $test_f32_to_int (; 2 ;) (type $1) (param $0 f32)
(drop
(call $f32-to-int
(get_local $0)
@@ -77,7 +77,7 @@
)
)
)
- (func $test_f64_to_int (type $2) (param $0 f64)
+ (func $test_f64_to_int (; 3 ;) (type $2) (param $0 f64)
(drop
(call $f64-to-int
(get_local $0)
@@ -99,7 +99,7 @@
)
)
)
- (func $f32-to-int (param $0 f32) (result i32)
+ (func $f32-to-int (; 4 ;) (param $0 f32) (result i32)
(if (result i32)
(f32.ne
(get_local $0)
@@ -125,7 +125,7 @@
)
)
)
- (func $f32-to-int64 (param $0 f32) (result i64)
+ (func $f32-to-int64 (; 5 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -151,7 +151,7 @@
)
)
)
- (func $f32-to-uint (param $0 f32) (result i32)
+ (func $f32-to-uint (; 6 ;) (param $0 f32) (result i32)
(if (result i32)
(f32.ne
(get_local $0)
@@ -177,7 +177,7 @@
)
)
)
- (func $f32-to-uint64 (param $0 f32) (result i64)
+ (func $f32-to-uint64 (; 7 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -203,7 +203,7 @@
)
)
)
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 8 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -229,7 +229,7 @@
)
)
)
- (func $f64-to-int64 (param $0 f64) (result i64)
+ (func $f64-to-int64 (; 9 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -255,7 +255,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 10 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -281,7 +281,7 @@
)
)
)
- (func $f64-to-uint64 (param $0 f64) (result i64)
+ (func $f64-to-uint64 (; 11 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -307,7 +307,7 @@
)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 12 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -332,7 +332,7 @@
)
)
)
- (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-rem (; 13 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -344,7 +344,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 14 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -356,7 +356,7 @@
)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 15 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -368,7 +368,7 @@
)
)
)
- (func $i64s-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-div (; 16 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -393,7 +393,7 @@
)
)
)
- (func $i64s-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-rem (; 17 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -405,7 +405,7 @@
)
)
)
- (func $i64u-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-div (; 18 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -417,7 +417,7 @@
)
)
)
- (func $i64u-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-rem (; 19 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
diff --git a/test/passes/trap-mode-js.txt b/test/passes/trap-mode-js.txt
index 57ef09f91..82221b1a9 100644
--- a/test/passes/trap-mode-js.txt
+++ b/test/passes/trap-mode-js.txt
@@ -5,7 +5,7 @@
(type $FUNCSIG$id (func (param f64) (result i32)))
(import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32)))
(memory $0 0)
- (func $test_div (type $0) (param $0 i32) (param $1 i64)
+ (func $test_div (; 1 ;) (type $0) (param $0 i32) (param $1 i64)
(drop
(call $i32s-div
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $test_rem (type $0) (param $0 i32) (param $1 i64)
+ (func $test_rem (; 2 ;) (type $0) (param $0 i32) (param $1 i64)
(drop
(call $i32s-rem
(get_local $0)
@@ -57,7 +57,7 @@
)
)
)
- (func $test_f32_to_int (type $1) (param $0 f32)
+ (func $test_f32_to_int (; 3 ;) (type $1) (param $0 f32)
(drop
(call $f64-to-int
(f64.promote/f32
@@ -83,7 +83,7 @@
)
)
)
- (func $test_f64_to_int (type $2) (param $0 f64)
+ (func $test_f64_to_int (; 4 ;) (type $2) (param $0 f64)
(drop
(call $f64-to-int
(get_local $0)
@@ -105,7 +105,7 @@
)
)
)
- (func $f32-to-int64 (param $0 f32) (result i64)
+ (func $f32-to-int64 (; 5 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -131,7 +131,7 @@
)
)
)
- (func $f32-to-uint64 (param $0 f32) (result i64)
+ (func $f32-to-uint64 (; 6 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -157,7 +157,7 @@
)
)
)
- (func $f64-to-int64 (param $0 f64) (result i64)
+ (func $f64-to-int64 (; 7 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -183,7 +183,7 @@
)
)
)
- (func $f64-to-uint64 (param $0 f64) (result i64)
+ (func $f64-to-uint64 (; 8 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -209,7 +209,7 @@
)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 9 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -234,7 +234,7 @@
)
)
)
- (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-rem (; 10 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -246,7 +246,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 11 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -258,7 +258,7 @@
)
)
)
- (func $i32u-rem (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-rem (; 12 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -270,7 +270,7 @@
)
)
)
- (func $i64s-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-div (; 13 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -295,7 +295,7 @@
)
)
)
- (func $i64s-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-rem (; 14 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -307,7 +307,7 @@
)
)
)
- (func $i64u-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-div (; 15 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -319,7 +319,7 @@
)
)
)
- (func $i64u-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-rem (; 16 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
diff --git a/test/passes/untee.txt b/test/passes/untee.txt
index f174da801..176e77897 100644
--- a/test/passes/untee.txt
+++ b/test/passes/untee.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $tee (type $0)
+ (func $tee (; 0 ;) (type $0)
(local $x i32)
(local $y f64)
(drop
diff --git a/test/passes/vacuum.txt b/test/passes/vacuum.txt
index b254179cd..d3b972129 100644
--- a/test/passes/vacuum.txt
+++ b/test/passes/vacuum.txt
@@ -9,10 +9,10 @@
(import "env" "int" (func $int (result i32)))
(global $Int i32 (i32.const 0))
(memory $0 256 256)
- (func $b (type $0)
+ (func $b (; 1 ;) (type $0)
(nop)
)
- (func $l (type $0)
+ (func $l (; 2 ;) (type $0)
(local $x i32)
(local $y i32)
(set_local $x
@@ -25,15 +25,15 @@
(get_local $y)
)
)
- (func $loopy (type $1) (param $0 i32)
+ (func $loopy (; 3 ;) (type $1) (param $0 i32)
(nop)
)
- (func $unary (type $2) (result f32)
+ (func $unary (; 4 ;) (type $2) (result f32)
(f32.abs
(unreachable)
)
)
- (func $binary (type $2) (result f32)
+ (func $binary (; 5 ;) (type $2) (result f32)
(drop
(f32.add
(unreachable)
@@ -41,7 +41,7 @@
)
)
)
- (func $select (type $3) (result i32)
+ (func $select (; 6 ;) (type $3) (result i32)
(drop
(select
(unreachable)
@@ -50,16 +50,16 @@
)
)
)
- (func $block-to-one (type $0)
+ (func $block-to-one (; 7 ;) (type $0)
(unreachable)
)
- (func $recurse (type $0)
+ (func $recurse (; 8 ;) (type $0)
(nop)
)
- (func $func-block (type $0)
+ (func $func-block (; 9 ;) (type $0)
(nop)
)
- (func $Gu (type $4) (param $b i32) (param $e f64) (param $l i32) (param $d i32)
+ (func $Gu (; 10 ;) (type $4) (param $b i32) (param $e f64) (param $l i32) (param $d i32)
(if
(if (result i32)
(get_local $d)
@@ -81,7 +81,7 @@
(unreachable)
)
)
- (func $if-drop (type $3) (result i32)
+ (func $if-drop (; 11 ;) (type $3) (result i32)
(block $out
(if
(call $if-drop)
@@ -100,7 +100,7 @@
)
(i32.const 1)
)
- (func $drop-silly (type $0)
+ (func $drop-silly (; 12 ;) (type $0)
(drop
(call $int)
)
@@ -117,21 +117,21 @@
)
)
)
- (func $drop-get-global (type $0)
+ (func $drop-get-global (; 13 ;) (type $0)
(call $drop-get-global)
)
- (func $relooperJumpThreading1 (type $0)
+ (func $relooperJumpThreading1 (; 14 ;) (type $0)
(local $$vararg_ptr5 i32)
(local $$11 i32)
(nop)
)
- (func $relooperJumpThreading2 (type $0)
+ (func $relooperJumpThreading2 (; 15 ;) (type $0)
(nop)
)
- (func $relooperJumpThreading3 (type $0)
+ (func $relooperJumpThreading3 (; 16 ;) (type $0)
(nop)
)
- (func $if2drops (type $3) (result i32)
+ (func $if2drops (; 17 ;) (type $3) (result i32)
(drop
(if (result i32)
(call $if2drops)
@@ -141,7 +141,7 @@
)
(i32.const 2)
)
- (func $if2drops-different (type $3) (result i32)
+ (func $if2drops-different (; 18 ;) (type $3) (result i32)
(if
(call $if2drops)
(drop
@@ -153,7 +153,7 @@
)
(i32.const 2)
)
- (func $if-const (type $1) (param $x i32)
+ (func $if-const (; 19 ;) (type $1) (param $x i32)
(call $if-const
(i32.const 3)
)
@@ -164,7 +164,7 @@
(i32.const 7)
)
)
- (func $drop-if-both-unreachable (type $1) (param $0 i32)
+ (func $drop-if-both-unreachable (; 20 ;) (type $1) (param $0 i32)
(block $out
(drop
(if (result i32)
@@ -182,7 +182,7 @@
)
)
)
- (func $if-1-block (type $1) (param $x i32)
+ (func $if-1-block (; 21 ;) (type $1) (param $x i32)
(block $out
(if
(get_local $x)
@@ -195,7 +195,7 @@
)
)
)
- (func $block-resize-br-gone (type $0)
+ (func $block-resize-br-gone (; 22 ;) (type $0)
(block $out
(block $in
(call $block-resize-br-gone)
@@ -204,11 +204,11 @@
(return)
)
)
- (func $block-unreachable-but-last-element-concrete (type $0)
+ (func $block-unreachable-but-last-element-concrete (; 23 ;) (type $0)
(local $2 i32)
(nop)
)
- (func $a (type $0)
+ (func $a (; 24 ;) (type $0)
(block $block
(i32.store
(i32.const 1)
@@ -222,7 +222,7 @@
)
)
)
- (func $leave-block-even-if-br-not-taken (type $6) (result f64)
+ (func $leave-block-even-if-br-not-taken (; 25 ;) (type $6) (result f64)
(block $label$0 (result f64)
(f64.store align=1
(i32.const 879179022)
@@ -235,19 +235,19 @@
)
)
)
- (func $executed-if-in-block (type $0)
+ (func $executed-if-in-block (; 26 ;) (type $0)
(unreachable)
)
- (func $executed-if-in-block2 (type $0)
+ (func $executed-if-in-block2 (; 27 ;) (type $0)
(unreachable)
)
- (func $executed-if-in-block3 (type $0)
+ (func $executed-if-in-block3 (; 28 ;) (type $0)
(block $label$0
(br $label$0)
)
(unreachable)
)
- (func $load-may-have-side-effects (type $3) (result i32)
+ (func $load-may-have-side-effects (; 29 ;) (type $3) (result i32)
(i64.ge_s
(block $block (result i64)
(drop
@@ -260,7 +260,7 @@
(i64.const 0)
)
)
- (func $unary-binary-may-trap (type $0)
+ (func $unary-binary-may-trap (; 30 ;) (type $0)
(drop
(i64.div_s
(i64.const -1)
@@ -273,7 +273,7 @@
)
)
)
- (func $unreachable-if-with-nop-arm-that-leaves-a-concrete-value-if-nop-is-removed (type $0)
+ (func $unreachable-if-with-nop-arm-that-leaves-a-concrete-value-if-nop-is-removed (; 31 ;) (type $0)
(block $label$0
(loop $label$1
(drop
@@ -286,21 +286,21 @@
)
)
)
- (func $if-arm-vanishes (type $3) (result i32)
+ (func $if-arm-vanishes (; 32 ;) (type $3) (result i32)
(block $label$0 (result i32)
(br $label$0
(i32.const 1)
)
)
)
- (func $if-arm-vanishes-2 (type $3) (result i32)
+ (func $if-arm-vanishes-2 (; 33 ;) (type $3) (result i32)
(block $label$0 (result i32)
(br $label$0
(i32.const 1)
)
)
)
- (func $nop-if-type-changes (type $0)
+ (func $nop-if-type-changes (; 34 ;) (type $0)
(local $0 i32)
(nop)
)
diff --git a/test/passes/vacuum_ignore-implicit-traps.txt b/test/passes/vacuum_ignore-implicit-traps.txt
index e5ff28583..085f37914 100644
--- a/test/passes/vacuum_ignore-implicit-traps.txt
+++ b/test/passes/vacuum_ignore-implicit-traps.txt
@@ -2,13 +2,13 @@
(type $0 (func (result i32)))
(type $1 (func))
(memory $0 0)
- (func $load-would-normally-have-side-effects (type $0) (result i32)
+ (func $load-would-normally-have-side-effects (; 0 ;) (type $0) (result i32)
(i64.ge_s
(i64.const 2912825531628789796)
(i64.const 0)
)
)
- (func $unary-binary-may-trap (type $1)
+ (func $unary-binary-may-trap (; 1 ;) (type $1)
(nop)
)
)
diff --git a/test/passes/vacuum_remove-unused-names_merge-blocks.txt b/test/passes/vacuum_remove-unused-names_merge-blocks.txt
index c62581bc2..3cc085e0b 100644
--- a/test/passes/vacuum_remove-unused-names_merge-blocks.txt
+++ b/test/passes/vacuum_remove-unused-names_merge-blocks.txt
@@ -1,7 +1,7 @@
(module
(type $0 (func (param i32) (result i32)))
(memory $0 0)
- (func $return-block (type $0) (param $x i32) (result i32)
+ (func $return-block (; 0 ;) (type $0) (param $x i32) (result i32)
(set_local $x
(get_local $x)
)
diff --git a/test/polymorphic_stack.wast.from-wast b/test/polymorphic_stack.wast.from-wast
index 8b514d8f4..5162969cd 100644
--- a/test/polymorphic_stack.wast.from-wast
+++ b/test/polymorphic_stack.wast.from-wast
@@ -5,7 +5,7 @@
(type $3 (func))
(import "env" "table" (table 9 9 anyfunc))
(memory $0 0)
- (func $break-and-binary (type $1) (result i32)
+ (func $break-and-binary (; 0 ;) (type $1) (result i32)
(block $x (result i32)
(f32.add
(br_if $x
@@ -20,7 +20,7 @@
)
)
)
- (func $call-and-unary (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $call-and-unary (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(drop
(i64.eqz
(call $call-and-unary
@@ -44,7 +44,7 @@
)
)
)
- (func $tee (type $2) (param $x i32)
+ (func $tee (; 2 ;) (type $2) (param $x i32)
(local $y f32)
(drop
(i64.eqz
@@ -61,7 +61,7 @@
)
)
)
- (func $tee2 (type $3)
+ (func $tee2 (; 3 ;) (type $3)
(local $0 f32)
(if
(i32.const 259)
@@ -70,7 +70,7 @@
)
)
)
- (func $select (type $3)
+ (func $select (; 4 ;) (type $3)
(drop
(i64.eqz
(select
@@ -81,7 +81,7 @@
)
)
)
- (func $untaken-break-should-have-value (type $1) (result i32)
+ (func $untaken-break-should-have-value (; 5 ;) (type $1) (result i32)
(block $x (result i32)
(block $block
(br_if $x
@@ -91,7 +91,7 @@
)
)
)
- (func $unreachable-in-block-but-code-before (type $FUNCSIG$ii) (param $0 i32) (result i32)
+ (func $unreachable-in-block-but-code-before (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(if
(get_local $0)
(return
@@ -107,7 +107,7 @@
)
)
)
- (func $br_table_unreachable_to_also_unreachable (type $1) (result i32)
+ (func $br_table_unreachable_to_also_unreachable (; 7 ;) (type $1) (result i32)
(block $a (result i32)
(block $b (result i32)
(br_table $a $b
@@ -117,7 +117,7 @@
)
)
)
- (func $untaken-br_if (type $1) (result i32)
+ (func $untaken-br_if (; 8 ;) (type $1) (result i32)
(block $label$8 (result i32)
(block $label$9
(drop
diff --git a/test/polymorphic_stack.wast.fromBinary b/test/polymorphic_stack.wast.fromBinary
index 35617d34b..10348a8e0 100644
--- a/test/polymorphic_stack.wast.fromBinary
+++ b/test/polymorphic_stack.wast.fromBinary
@@ -5,29 +5,29 @@
(type $3 (func))
(import "env" "table" (table 9 9 anyfunc))
(memory $0 0)
- (func $break-and-binary (type $1) (result i32)
+ (func $break-and-binary (; 0 ;) (type $1) (result i32)
(block $label$1 (result i32)
(unreachable)
)
)
- (func $call-and-unary (type $0) (param $var$0 i32) (result i32)
+ (func $call-and-unary (; 1 ;) (type $0) (param $var$0 i32) (result i32)
(unreachable)
)
- (func $tee (type $2) (param $var$0 i32)
+ (func $tee (; 2 ;) (type $2) (param $var$0 i32)
(local $var$1 f32)
(unreachable)
)
- (func $tee2 (type $3)
+ (func $tee2 (; 3 ;) (type $3)
(local $var$0 f32)
(if
(i32.const 259)
(unreachable)
)
)
- (func $select (type $3)
+ (func $select (; 4 ;) (type $3)
(unreachable)
)
- (func $untaken-break-should-have-value (type $1) (result i32)
+ (func $untaken-break-should-have-value (; 5 ;) (type $1) (result i32)
(block $label$1 (result i32)
(block $label$2
(drop
@@ -38,7 +38,7 @@
(unreachable)
)
)
- (func $unreachable-in-block-but-code-before (type $0) (param $var$0 i32) (result i32)
+ (func $unreachable-in-block-but-code-before (; 6 ;) (type $0) (param $var$0 i32) (result i32)
(if
(get_local $var$0)
(return
@@ -54,14 +54,14 @@
)
)
)
- (func $br_table_unreachable_to_also_unreachable (type $1) (result i32)
+ (func $br_table_unreachable_to_also_unreachable (; 7 ;) (type $1) (result i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
(unreachable)
)
)
)
- (func $untaken-br_if (type $1) (result i32)
+ (func $untaken-br_if (; 8 ;) (type $1) (result i32)
(block $label$1 (result i32)
(block $label$2
(if
diff --git a/test/polymorphic_stack.wast.fromBinary.noDebugInfo b/test/polymorphic_stack.wast.fromBinary.noDebugInfo
index b521d43ed..a360a2fe3 100644
--- a/test/polymorphic_stack.wast.fromBinary.noDebugInfo
+++ b/test/polymorphic_stack.wast.fromBinary.noDebugInfo
@@ -5,29 +5,29 @@
(type $3 (func))
(import "env" "table" (table 9 9 anyfunc))
(memory $0 0)
- (func $0 (type $1) (result i32)
+ (func $0 (; 0 ;) (type $1) (result i32)
(block $label$1 (result i32)
(unreachable)
)
)
- (func $1 (type $0) (param $var$0 i32) (result i32)
+ (func $1 (; 1 ;) (type $0) (param $var$0 i32) (result i32)
(unreachable)
)
- (func $2 (type $2) (param $var$0 i32)
+ (func $2 (; 2 ;) (type $2) (param $var$0 i32)
(local $var$1 f32)
(unreachable)
)
- (func $3 (type $3)
+ (func $3 (; 3 ;) (type $3)
(local $var$0 f32)
(if
(i32.const 259)
(unreachable)
)
)
- (func $4 (type $3)
+ (func $4 (; 4 ;) (type $3)
(unreachable)
)
- (func $5 (type $1) (result i32)
+ (func $5 (; 5 ;) (type $1) (result i32)
(block $label$1 (result i32)
(block $label$2
(drop
@@ -38,7 +38,7 @@
(unreachable)
)
)
- (func $6 (type $0) (param $var$0 i32) (result i32)
+ (func $6 (; 6 ;) (type $0) (param $var$0 i32) (result i32)
(if
(get_local $var$0)
(return
@@ -54,14 +54,14 @@
)
)
)
- (func $7 (type $1) (result i32)
+ (func $7 (; 7 ;) (type $1) (result i32)
(block $label$1 (result i32)
(block $label$2 (result i32)
(unreachable)
)
)
)
- (func $8 (type $1) (result i32)
+ (func $8 (; 8 ;) (type $1) (result i32)
(block $label$1 (result i32)
(block $label$2
(if
diff --git a/test/print/min.txt b/test/print/min.txt
index 8942f2ff4..c58551fe3 100644
--- a/test/print/min.txt
+++ b/test/print/min.txt
@@ -5,14 +5,14 @@
(type $3 (func (param i32 i32 i32) (result i32)))
(memory $0 256 256)
(export "floats" (func $floats))
- (func $floats (type $0) (param $f f32) (result f32)
+ (func $floats (; 0 ;) (type $0) (param $f f32) (result f32)
(local $t f32)
(f32.add
(get_local $t)
(get_local $f)
)
)
- (func $neg (type $1) (param $k i32) (param $p i32) (result f32)
+ (func $neg (; 1 ;) (type $1) (param $k i32) (param $p i32) (result f32)
(local $n f32)
(tee_local $n
(f32.neg
@@ -28,7 +28,7 @@
)
)
)
- (func $littleswitch (type $2) (param $x i32) (result i32)
+ (func $littleswitch (; 2 ;) (type $2) (param $x i32) (result i32)
(block $topmost (result i32)
(block $switch-case$2
(block $switch-case$1
@@ -49,7 +49,7 @@
(i32.const 0)
)
)
- (func $f1 (type $3) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
+ (func $f1 (; 3 ;) (type $3) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32)
(block $topmost (result i32)
(get_local $i3)
)
diff --git a/test/reduce/destructive.wast.txt b/test/reduce/destructive.wast.txt
index b5776b35e..d58f0ed7a 100644
--- a/test/reduce/destructive.wast.txt
+++ b/test/reduce/destructive.wast.txt
@@ -2,7 +2,7 @@
(type $0 (func (param i32) (result i32)))
(memory $0 0)
(export "x" (func $0))
- (func $0 (type $0) (param $var$0 i32) (result i32)
+ (func $0 (; 0 ;) (type $0) (param $var$0 i32) (result i32)
(i32.const 100)
)
)
diff --git a/test/reduce/memory_table.wast.txt b/test/reduce/memory_table.wast.txt
index 005493040..0a9a8a9e4 100644
--- a/test/reduce/memory_table.wast.txt
+++ b/test/reduce/memory_table.wast.txt
@@ -7,7 +7,7 @@
(export "f1" (func $2))
(export "f2" (func $3))
(export "f4" (func $0))
- (func $0 (type $0) (result i32)
+ (func $0 (; 0 ;) (type $0) (result i32)
(i32.add
(call_indirect $0
(i32.const 3)
@@ -17,13 +17,13 @@
)
)
)
- (func $1 (type $0) (result i32)
+ (func $1 (; 1 ;) (type $0) (result i32)
(i32.const 1234)
)
- (func $2 (type $1)
+ (func $2 (; 2 ;) (type $1)
(nop)
)
- (func $3 (type $0) (result i32)
+ (func $3 (; 3 ;) (type $0) (result i32)
(i32.store
(i32.const 0)
(i32.const 65530)
diff --git a/test/reduce/simple.wast.txt b/test/reduce/simple.wast.txt
index b5209d1bc..9c162a7a6 100644
--- a/test/reduce/simple.wast.txt
+++ b/test/reduce/simple.wast.txt
@@ -2,7 +2,7 @@
(type $0 (func (result i32)))
(memory $0 0)
(export "x" (func $0))
- (func $0 (type $0) (result i32)
+ (func $0 (; 0 ;) (type $0) (result i32)
(i32.const 5678)
)
)
diff --git a/test/reg_switch.wast.from-wast b/test/reg_switch.wast.from-wast
index a76690804..e6f3d0960 100644
--- a/test/reg_switch.wast.from-wast
+++ b/test/reg_switch.wast.from-wast
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(if
(i32.const 0)
(block $A
diff --git a/test/reg_switch.wast.fromBinary b/test/reg_switch.wast.fromBinary
index 00b78d79c..bd09d1dd8 100644
--- a/test/reg_switch.wast.fromBinary
+++ b/test/reg_switch.wast.fromBinary
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(if
(i32.const 0)
(block $label$2
diff --git a/test/reg_switch.wast.fromBinary.noDebugInfo b/test/reg_switch.wast.fromBinary.noDebugInfo
index 00b78d79c..bd09d1dd8 100644
--- a/test/reg_switch.wast.fromBinary.noDebugInfo
+++ b/test/reg_switch.wast.fromBinary.noDebugInfo
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(if
(i32.const 0)
(block $label$2
diff --git a/test/signext.wast.from-wast b/test/signext.wast.from-wast
index 6828723b5..0256c06ff 100644
--- a/test/signext.wast.from-wast
+++ b/test/signext.wast.from-wast
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $signext (type $0)
+ (func $signext (; 0 ;) (type $0)
(local $0 i32)
(local $1 i64)
(drop
diff --git a/test/signext.wast.fromBinary b/test/signext.wast.fromBinary
index 920340ccc..acd40f021 100644
--- a/test/signext.wast.fromBinary
+++ b/test/signext.wast.fromBinary
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $signext (type $0)
+ (func $signext (; 0 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
diff --git a/test/signext.wast.fromBinary.noDebugInfo b/test/signext.wast.fromBinary.noDebugInfo
index 770b19baf..cbbf4350f 100644
--- a/test/signext.wast.fromBinary.noDebugInfo
+++ b/test/signext.wast.fromBinary.noDebugInfo
@@ -1,7 +1,7 @@
(module
(type $0 (func))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(local $var$0 i32)
(local $var$1 i64)
(drop
diff --git a/test/stacky.wasm.fromBinary b/test/stacky.wasm.fromBinary
index 375e216a2..3f2bded48 100644
--- a/test/stacky.wasm.fromBinary
+++ b/test/stacky.wasm.fromBinary
@@ -2,7 +2,7 @@
(type $0 (func (param i32 i32) (result i32)))
(memory $0 256 256)
(export "add" (func $0))
- (func $0 (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
+ (func $0 (; 0 ;) (type $0) (param $var$0 i32) (param $var$1 i32) (result i32)
(local $2 i32)
(i32.add
(block (result i32)
diff --git a/test/table-import.wast.from-wast b/test/table-import.wast.from-wast
index 4bf63ed8d..2c9ee3ea1 100644
--- a/test/table-import.wast.from-wast
+++ b/test/table-import.wast.from-wast
@@ -3,7 +3,7 @@
(import "env" "table" (table 1 1 anyfunc))
(elem (i32.const 0) $foo)
(memory $0 0)
- (func $foo (type $0)
+ (func $foo (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/table-import.wast.fromBinary b/test/table-import.wast.fromBinary
index cfdbc8a43..a8ffec5c7 100644
--- a/test/table-import.wast.fromBinary
+++ b/test/table-import.wast.fromBinary
@@ -3,7 +3,7 @@
(import "env" "table" (table 1 1 anyfunc))
(elem (i32.const 0) $foo)
(memory $0 0)
- (func $foo (type $0)
+ (func $foo (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/table-import.wast.fromBinary.noDebugInfo b/test/table-import.wast.fromBinary.noDebugInfo
index b45ca4a7d..5750f845b 100644
--- a/test/table-import.wast.fromBinary.noDebugInfo
+++ b/test/table-import.wast.fromBinary.noDebugInfo
@@ -3,7 +3,7 @@
(import "env" "table" (table 1 1 anyfunc))
(elem (i32.const 0) $0)
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(nop)
)
)
diff --git a/test/threads.fromasm b/test/threads.fromasm
index 3199bb22c..7aafe4a4b 100644
--- a/test/threads.fromasm
+++ b/test/threads.fromasm
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "threads.asm.js")
(export "test" (func $test))
- (func $test
+ (func $test (; 0 ;)
(local $0 i32)
(drop
(i32.atomic.load
diff --git a/test/threads.fromasm.clamp b/test/threads.fromasm.clamp
index 3199bb22c..7aafe4a4b 100644
--- a/test/threads.fromasm.clamp
+++ b/test/threads.fromasm.clamp
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "threads.asm.js")
(export "test" (func $test))
- (func $test
+ (func $test (; 0 ;)
(local $0 i32)
(drop
(i32.atomic.load
diff --git a/test/threads.fromasm.clamp.no-opts b/test/threads.fromasm.clamp.no-opts
index 2a96c3dc2..512d6bac3 100644
--- a/test/threads.fromasm.clamp.no-opts
+++ b/test/threads.fromasm.clamp.no-opts
@@ -33,7 +33,7 @@
(global $tempFloat (mut f32) (f32.const 0))
(global $f0 (mut f32) (f32.const 0))
(export "test" (func $test))
- (func $test
+ (func $test (; 0 ;)
(local $$temp i32)
(local $1 i32)
(set_local $$temp
diff --git a/test/threads.fromasm.imprecise b/test/threads.fromasm.imprecise
index d61e982cd..546f27370 100644
--- a/test/threads.fromasm.imprecise
+++ b/test/threads.fromasm.imprecise
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "test" (func $test))
- (func $test
+ (func $test (; 0 ;)
(local $0 i32)
(drop
(i32.atomic.load
diff --git a/test/threads.fromasm.imprecise.no-opts b/test/threads.fromasm.imprecise.no-opts
index 2a96c3dc2..512d6bac3 100644
--- a/test/threads.fromasm.imprecise.no-opts
+++ b/test/threads.fromasm.imprecise.no-opts
@@ -33,7 +33,7 @@
(global $tempFloat (mut f32) (f32.const 0))
(global $f0 (mut f32) (f32.const 0))
(export "test" (func $test))
- (func $test
+ (func $test (; 0 ;)
(local $$temp i32)
(local $1 i32)
(set_local $$temp
diff --git a/test/threads.fromasm.no-opts b/test/threads.fromasm.no-opts
index 2a96c3dc2..512d6bac3 100644
--- a/test/threads.fromasm.no-opts
+++ b/test/threads.fromasm.no-opts
@@ -33,7 +33,7 @@
(global $tempFloat (mut f32) (f32.const 0))
(global $f0 (mut f32) (f32.const 0))
(export "test" (func $test))
- (func $test
+ (func $test (; 0 ;)
(local $$temp i32)
(local $1 i32)
(set_local $$temp
diff --git a/test/two_sides.fromasm b/test/two_sides.fromasm
index f79a0dd07..49f68a7ff 100644
--- a/test/two_sides.fromasm
+++ b/test/two_sides.fromasm
@@ -7,7 +7,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "two_sides.asm.js")
(export "_test" (func $_test))
- (func $_test (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_test (; 1 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 f64)
(if (result i32)
(get_local $4)
diff --git a/test/two_sides.fromasm.clamp b/test/two_sides.fromasm.clamp
index 8329325d1..6de1055d1 100644
--- a/test/two_sides.fromasm.clamp
+++ b/test/two_sides.fromasm.clamp
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "two_sides.asm.js")
(export "_test" (func $_test))
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 0 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -31,7 +31,7 @@
)
)
)
- (func $_test (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_test (; 1 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 f64)
(if (result i32)
(get_local $4)
diff --git a/test/two_sides.fromasm.clamp.no-opts b/test/two_sides.fromasm.clamp.no-opts
index 8ce7ab86c..ca9c34386 100644
--- a/test/two_sides.fromasm.clamp.no-opts
+++ b/test/two_sides.fromasm.clamp.no-opts
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "_test" (func $_test))
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 0 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -30,7 +30,7 @@
)
)
)
- (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
+ (func $_test (; 1 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
(local $d6 f64)
(if
(i32.eqz
diff --git a/test/two_sides.fromasm.imprecise b/test/two_sides.fromasm.imprecise
index 9b486c29c..1bd9a6ab4 100644
--- a/test/two_sides.fromasm.imprecise
+++ b/test/two_sides.fromasm.imprecise
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "_test" (func $_test))
- (func $_test (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (func $_test (; 0 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 f64)
(if (result i32)
(get_local $4)
diff --git a/test/two_sides.fromasm.imprecise.no-opts b/test/two_sides.fromasm.imprecise.no-opts
index aeaffb79d..40a5f6a95 100644
--- a/test/two_sides.fromasm.imprecise.no-opts
+++ b/test/two_sides.fromasm.imprecise.no-opts
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "_test" (func $_test))
- (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
+ (func $_test (; 0 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
(local $d6 f64)
(if
(i32.eqz
diff --git a/test/two_sides.fromasm.no-opts b/test/two_sides.fromasm.no-opts
index caa03418b..103b3b9e0 100644
--- a/test/two_sides.fromasm.no-opts
+++ b/test/two_sides.fromasm.no-opts
@@ -6,7 +6,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "_test" (func $_test))
- (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
+ (func $_test (; 1 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
(local $d6 f64)
(if
(i32.eqz
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 549541713..cae5357f0 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -77,10 +77,10 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $legalstub$exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative
+ (func $big_negative (; 8 ;)
(nop)
)
- (func $importedDoubles (result f64)
+ (func $importedDoubles (; 9 ;) (result f64)
(if
(i32.gt_s
(get_global $Int)
@@ -101,7 +101,7 @@
)
(f64.const 1.2)
)
- (func $doubleCompares (param $0 f64) (param $1 f64) (result f64)
+ (func $doubleCompares (; 10 ;) (param $0 f64) (param $1 f64) (result f64)
(if
(f64.gt
(get_local $0)
@@ -140,12 +140,12 @@
)
(get_local $1)
)
- (func $intOps (param $0 i32) (result i32)
+ (func $intOps (; 11 ;) (param $0 i32) (result i32)
(i32.eqz
(get_local $0)
)
)
- (func $conversions (param $0 i32) (param $1 f64) (param $2 f32)
+ (func $conversions (; 12 ;) (param $0 i32) (param $1 f64) (param $2 f32)
(drop
(call $f64-to-int
(get_local $1)
@@ -159,7 +159,7 @@
)
)
)
- (func $switcher (param $0 i32) (result i32)
+ (func $switcher (; 13 ;) (param $0 i32) (result i32)
(block $switch
(block $switch-case0
(block $switch-case
@@ -238,13 +238,13 @@
)
(i32.const 0)
)
- (func $frem (result f64)
+ (func $frem (; 14 ;) (result f64)
(call $f64-rem
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $frem_float (result f32)
+ (func $frem_float (; 15 ;) (result f32)
(f32.demote/f64
(call $f64-rem
(f64.const 5.5)
@@ -252,19 +252,19 @@
)
)
)
- (func $big_uint_div_u (result i32)
+ (func $big_uint_div_u (; 16 ;) (result i32)
(i32.const 2147483647)
)
- (func $trapping_sint_div_s (result i32)
+ (func $trapping_sint_div_s (; 17 ;) (result i32)
(i32.const 0)
)
- (func $fr (param $0 f32)
+ (func $fr (; 18 ;) (param $0 f32)
(nop)
)
- (func $negZero (result f64)
+ (func $negZero (; 19 ;) (result f64)
(f64.const -0)
)
- (func $neg
+ (func $neg (; 20 ;)
(local $0 f32)
(call_indirect $FUNCSIG$vf
(f32.neg
@@ -273,13 +273,13 @@
(i32.const 9)
)
)
- (func $cneg (param $0 f32)
+ (func $cneg (; 21 ;) (param $0 f32)
(call_indirect $FUNCSIG$vf
(get_local $0)
(i32.const 9)
)
)
- (func $smallCompare (param $0 i32) (param $1 i32) (result i32)
+ (func $smallCompare (; 22 ;) (param $0 i32) (param $1 i32) (result i32)
(if
(i32.lt_s
(get_local $0)
@@ -306,13 +306,13 @@
)
(get_local $0)
)
- (func $cneg_nosemicolon
+ (func $cneg_nosemicolon (; 23 ;)
(call_indirect $FUNCSIG$vi
(i32.const 1)
(i32.const 17)
)
)
- (func $forLoop
+ (func $forLoop (; 24 ;)
(local $0 i32)
(set_local $0
(i32.const 1)
@@ -338,10 +338,10 @@
)
)
)
- (func $ceiling_32_64 (param $0 f32) (param $1 f64)
+ (func $ceiling_32_64 (; 25 ;) (param $0 f32) (param $1 f64)
(nop)
)
- (func $aborts
+ (func $aborts (; 26 ;)
(drop
(call $abort
(f64.const 0)
@@ -370,7 +370,7 @@
)
)
)
- (func $continues
+ (func $continues (; 27 ;)
(loop $while-in
(call $print
(i32.const 1)
@@ -389,10 +389,10 @@
(br $while-in)
)
)
- (func $bitcasts (param $0 i32) (param $1 f32)
+ (func $bitcasts (; 28 ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $recursiveBlockMerging (param $0 i32) (result i32)
+ (func $recursiveBlockMerging (; 29 ;) (param $0 i32) (result i32)
(drop
(call $lb
(i32.add
@@ -467,7 +467,7 @@
)
)
)
- (func $lb (param $0 i32) (result i32)
+ (func $lb (; 30 ;) (param $0 i32) (result i32)
(i32.store
(get_local $0)
(i32.add
@@ -477,7 +477,7 @@
)
(i32.const 0)
)
- (func $zeroInit (param $0 i32)
+ (func $zeroInit (; 31 ;) (param $0 i32)
(local $1 i32)
(if
(call $lb
@@ -507,7 +507,7 @@
)
)
)
- (func $phi (result i32)
+ (func $phi (; 32 ;) (result i32)
(block $do-once (result i32)
(drop
(br_if $do-once
@@ -520,7 +520,7 @@
(i32.const 1)
)
)
- (func $smallIf
+ (func $smallIf (; 33 ;)
(if
(call $return_int)
(drop
@@ -530,7 +530,7 @@
)
)
)
- (func $dropCall (result i32)
+ (func $dropCall (; 34 ;) (result i32)
(if
(call $return_int)
(block
@@ -551,7 +551,7 @@
)
(call $phi)
)
- (func $useSetGlobal (result i32)
+ (func $useSetGlobal (; 35 ;) (result i32)
(set_global $Int
(i32.const 10)
)
@@ -563,13 +563,13 @@
)
(get_global $Int)
)
- (func $usesSetGlobal2 (result i32)
+ (func $usesSetGlobal2 (; 36 ;) (result i32)
(set_global $Int
(i32.const 40)
)
(i32.const 50)
)
- (func $breakThroughMany (param $0 i32)
+ (func $breakThroughMany (; 37 ;) (param $0 i32)
(block $label$break$L1
(if
(get_local $0)
@@ -587,7 +587,7 @@
)
)
)
- (func $ifChainEmpty (param $0 i32) (result i32)
+ (func $ifChainEmpty (; 38 ;) (param $0 i32) (result i32)
(if
(i32.eq
(get_local $0)
@@ -599,12 +599,12 @@
)
(i32.const 0)
)
- (func $heap8NoShift (param $0 i32) (result i32)
+ (func $heap8NoShift (; 39 ;) (param $0 i32) (result i32)
(i32.load8_s
(get_local $0)
)
)
- (func $conditionalTypeFun
+ (func $conditionalTypeFun (; 40 ;)
(drop
(if (result i32)
(call $return_int)
@@ -630,7 +630,7 @@
)
)
)
- (func $loadSigned (param $0 i32)
+ (func $loadSigned (; 41 ;) (param $0 i32)
(call $loadSigned
(i32.load8_s
(get_local $0)
@@ -696,10 +696,10 @@
)
)
)
- (func $w (result f64)
+ (func $w (; 42 ;) (result f64)
(f64.const 0)
)
- (func $globalOpts
+ (func $globalOpts (; 43 ;)
(local $0 i32)
(i32.store8
(i32.const 13)
@@ -729,7 +729,7 @@
(get_local $0)
)
)
- (func $dropCallImport
+ (func $dropCallImport (; 44 ;)
(if
(call $return_int)
(drop
@@ -737,7 +737,7 @@
)
)
)
- (func $loophi (param $0 i32) (param $1 i32)
+ (func $loophi (; 45 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(loop $while-in
(block $while-out
@@ -767,7 +767,7 @@
)
)
)
- (func $loophi2 (result i32)
+ (func $loophi2 (; 46 ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -803,7 +803,7 @@
)
(get_local $1)
)
- (func $loophi2b (result i32)
+ (func $loophi2b (; 47 ;) (result i32)
(local $0 i32)
(local $1 i32)
(loop $label$continue$L7
@@ -835,7 +835,7 @@
)
(get_local $0)
)
- (func $relooperJumpThreading (param $0 i32) (result i32)
+ (func $relooperJumpThreading (; 48 ;) (param $0 i32) (result i32)
(block $__rjto$0
(block $__rjti$0
(if
@@ -1004,7 +1004,7 @@
)
(get_local $0)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 49 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
(loop $while-in
(block $__rjto$1
(block $__rjti$1
@@ -1031,7 +1031,7 @@
(br $while-in)
)
)
- (func $relooperJumpThreading_irreducible (param $0 i32)
+ (func $relooperJumpThreading_irreducible (; 50 ;) (param $0 i32)
(local $1 i32)
(if
(i32.eq
@@ -1083,7 +1083,7 @@
)
)
)
- (func $__Z12multi_varargiz (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
+ (func $__Z12multi_varargiz (; 51 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(if
(get_local $3)
(loop $while-in
@@ -1100,10 +1100,10 @@
)
)
)
- (func $jumpThreadDrop (result i32)
+ (func $jumpThreadDrop (; 52 ;) (result i32)
(call $return_int)
)
- (func $dropIgnoredImportInIf (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportInIf (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(if
(get_local $0)
(drop
@@ -1113,7 +1113,7 @@
)
)
)
- (func $dropIgnoredImportsInIf (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportsInIf (; 54 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(if (result i32)
(get_local $0)
@@ -1126,7 +1126,7 @@
)
)
)
- (func $store_fround (param $0 i32)
+ (func $store_fround (; 55 ;) (param $0 i32)
(f64.store
(i32.const 80)
(f64.promote/f32
@@ -1136,7 +1136,7 @@
)
)
)
- (func $relocatableAndModules (result i32)
+ (func $relocatableAndModules (; 56 ;) (result i32)
(call_indirect $FUNCSIG$v
(i32.const 10)
)
@@ -1149,10 +1149,10 @@
(i32.const 30)
)
)
- (func $exported_f32_user (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
+ (func $exported_f32_user (; 57 ;) (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
(get_local $1)
)
- (func $sqrts (param $0 f64) (result f64)
+ (func $sqrts (; 58 ;) (param $0 f64) (result f64)
(f64.add
(f64.sqrt
(get_local $0)
@@ -1166,12 +1166,12 @@
)
)
)
- (func $f2u (param $0 f64) (result i32)
+ (func $f2u (; 59 ;) (param $0 f64) (result i32)
(call $f64-to-int
(get_local $0)
)
)
- (func $keepAlive
+ (func $keepAlive (; 60 ;)
(drop
(call $sqrts
(f64.const 3.14159)
@@ -1220,13 +1220,13 @@
)
)
)
- (func $vi (param $0 i32)
+ (func $vi (; 61 ;) (param $0 i32)
(nop)
)
- (func $ii (param $0 i32) (result i32)
+ (func $ii (; 62 ;) (param $0 i32) (result i32)
(get_local $0)
)
- (func $legalstub$conversions (param $0 i32) (param $1 f64) (param $2 f64)
+ (func $legalstub$conversions (; 63 ;) (param $0 i32) (param $1 f64) (param $2 f64)
(call $conversions
(get_local $0)
(get_local $1)
@@ -1235,19 +1235,19 @@
)
)
)
- (func $legalstub$frem_float (result f64)
+ (func $legalstub$frem_float (; 64 ;) (result f64)
(f64.promote/f32
(call $frem_float)
)
)
- (func $legalstub$fr (param $0 f64)
+ (func $legalstub$fr (; 65 ;) (param $0 f64)
(call $fr
(f32.demote/f64
(get_local $0)
)
)
)
- (func $legalstub$ceiling_32_64 (param $0 f64) (param $1 f64)
+ (func $legalstub$ceiling_32_64 (; 66 ;) (param $0 f64) (param $1 f64)
(call $ceiling_32_64
(f32.demote/f64
(get_local $0)
@@ -1255,7 +1255,7 @@
(get_local $1)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 67 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
@@ -1263,7 +1263,7 @@
)
)
)
- (func $legalstub$exported_f32_user (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $legalstub$exported_f32_user (; 68 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(f64.promote/f32
(call $exported_f32_user
(get_local $0)
diff --git a/test/unit.fromasm.clamp b/test/unit.fromasm.clamp
index 4b8a24d23..5d32c0f97 100644
--- a/test/unit.fromasm.clamp
+++ b/test/unit.fromasm.clamp
@@ -75,10 +75,10 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $legalstub$exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative
+ (func $big_negative (; 7 ;)
(nop)
)
- (func $importedDoubles (result f64)
+ (func $importedDoubles (; 8 ;) (result f64)
(if
(i32.gt_s
(get_global $Int)
@@ -99,7 +99,7 @@
)
(f64.const 1.2)
)
- (func $doubleCompares (param $0 f64) (param $1 f64) (result f64)
+ (func $doubleCompares (; 9 ;) (param $0 f64) (param $1 f64) (result f64)
(if
(f64.gt
(get_local $0)
@@ -138,12 +138,12 @@
)
(get_local $1)
)
- (func $intOps (param $0 i32) (result i32)
+ (func $intOps (; 10 ;) (param $0 i32) (result i32)
(i32.eqz
(get_local $0)
)
)
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 11 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -169,7 +169,7 @@
)
)
)
- (func $f32-to-int (param $0 f32) (result i32)
+ (func $f32-to-int (; 12 ;) (param $0 f32) (result i32)
(if (result i32)
(f32.ne
(get_local $0)
@@ -195,7 +195,7 @@
)
)
)
- (func $conversions (param $0 i32) (param $1 f64) (param $2 f32)
+ (func $conversions (; 13 ;) (param $0 i32) (param $1 f64) (param $2 f32)
(drop
(call $f64-to-int
(get_local $1)
@@ -207,7 +207,7 @@
)
)
)
- (func $switcher (param $0 i32) (result i32)
+ (func $switcher (; 14 ;) (param $0 i32) (result i32)
(block $switch
(block $switch-case0
(block $switch-case
@@ -286,13 +286,13 @@
)
(i32.const 0)
)
- (func $frem (result f64)
+ (func $frem (; 15 ;) (result f64)
(call $f64-rem
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $frem_float (result f32)
+ (func $frem_float (; 16 ;) (result f32)
(f32.demote/f64
(call $f64-rem
(f64.const 5.5)
@@ -300,19 +300,19 @@
)
)
)
- (func $big_uint_div_u (result i32)
+ (func $big_uint_div_u (; 17 ;) (result i32)
(i32.const 2147483647)
)
- (func $trapping_sint_div_s (result i32)
+ (func $trapping_sint_div_s (; 18 ;) (result i32)
(i32.const 0)
)
- (func $fr (param $0 f32)
+ (func $fr (; 19 ;) (param $0 f32)
(nop)
)
- (func $negZero (result f64)
+ (func $negZero (; 20 ;) (result f64)
(f64.const -0)
)
- (func $neg
+ (func $neg (; 21 ;)
(local $0 f32)
(call_indirect $FUNCSIG$vf
(f32.neg
@@ -321,13 +321,13 @@
(i32.const 9)
)
)
- (func $cneg (param $0 f32)
+ (func $cneg (; 22 ;) (param $0 f32)
(call_indirect $FUNCSIG$vf
(get_local $0)
(i32.const 9)
)
)
- (func $smallCompare (param $0 i32) (param $1 i32) (result i32)
+ (func $smallCompare (; 23 ;) (param $0 i32) (param $1 i32) (result i32)
(if
(i32.lt_s
(get_local $0)
@@ -354,13 +354,13 @@
)
(get_local $0)
)
- (func $cneg_nosemicolon
+ (func $cneg_nosemicolon (; 24 ;)
(call_indirect $FUNCSIG$vi
(i32.const 1)
(i32.const 17)
)
)
- (func $forLoop
+ (func $forLoop (; 25 ;)
(local $0 i32)
(set_local $0
(i32.const 1)
@@ -386,10 +386,10 @@
)
)
)
- (func $ceiling_32_64 (param $0 f32) (param $1 f64)
+ (func $ceiling_32_64 (; 26 ;) (param $0 f32) (param $1 f64)
(nop)
)
- (func $aborts
+ (func $aborts (; 27 ;)
(drop
(call $abort
(f64.const 0)
@@ -418,7 +418,7 @@
)
)
)
- (func $continues
+ (func $continues (; 28 ;)
(loop $while-in
(call $print
(i32.const 1)
@@ -437,10 +437,10 @@
(br $while-in)
)
)
- (func $bitcasts (param $0 i32) (param $1 f32)
+ (func $bitcasts (; 29 ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $recursiveBlockMerging (param $0 i32) (result i32)
+ (func $recursiveBlockMerging (; 30 ;) (param $0 i32) (result i32)
(drop
(call $lb
(i32.add
@@ -515,7 +515,7 @@
)
)
)
- (func $lb (param $0 i32) (result i32)
+ (func $lb (; 31 ;) (param $0 i32) (result i32)
(i32.store
(get_local $0)
(i32.add
@@ -525,7 +525,7 @@
)
(i32.const 0)
)
- (func $zeroInit (param $0 i32)
+ (func $zeroInit (; 32 ;) (param $0 i32)
(local $1 i32)
(if
(call $lb
@@ -555,7 +555,7 @@
)
)
)
- (func $phi (result i32)
+ (func $phi (; 33 ;) (result i32)
(block $do-once (result i32)
(drop
(br_if $do-once
@@ -568,7 +568,7 @@
(i32.const 1)
)
)
- (func $smallIf
+ (func $smallIf (; 34 ;)
(if
(call $return_int)
(drop
@@ -578,7 +578,7 @@
)
)
)
- (func $dropCall (result i32)
+ (func $dropCall (; 35 ;) (result i32)
(if
(call $return_int)
(block
@@ -599,7 +599,7 @@
)
(call $phi)
)
- (func $useSetGlobal (result i32)
+ (func $useSetGlobal (; 36 ;) (result i32)
(set_global $Int
(i32.const 10)
)
@@ -611,13 +611,13 @@
)
(get_global $Int)
)
- (func $usesSetGlobal2 (result i32)
+ (func $usesSetGlobal2 (; 37 ;) (result i32)
(set_global $Int
(i32.const 40)
)
(i32.const 50)
)
- (func $breakThroughMany (param $0 i32)
+ (func $breakThroughMany (; 38 ;) (param $0 i32)
(block $label$break$L1
(if
(get_local $0)
@@ -635,7 +635,7 @@
)
)
)
- (func $ifChainEmpty (param $0 i32) (result i32)
+ (func $ifChainEmpty (; 39 ;) (param $0 i32) (result i32)
(if
(i32.eq
(get_local $0)
@@ -647,12 +647,12 @@
)
(i32.const 0)
)
- (func $heap8NoShift (param $0 i32) (result i32)
+ (func $heap8NoShift (; 40 ;) (param $0 i32) (result i32)
(i32.load8_s
(get_local $0)
)
)
- (func $conditionalTypeFun
+ (func $conditionalTypeFun (; 41 ;)
(drop
(if (result i32)
(call $return_int)
@@ -678,7 +678,7 @@
)
)
)
- (func $loadSigned (param $0 i32)
+ (func $loadSigned (; 42 ;) (param $0 i32)
(call $loadSigned
(i32.load8_s
(get_local $0)
@@ -744,10 +744,10 @@
)
)
)
- (func $w (result f64)
+ (func $w (; 43 ;) (result f64)
(f64.const 0)
)
- (func $globalOpts
+ (func $globalOpts (; 44 ;)
(local $0 i32)
(i32.store8
(i32.const 13)
@@ -777,7 +777,7 @@
(get_local $0)
)
)
- (func $dropCallImport
+ (func $dropCallImport (; 45 ;)
(if
(call $return_int)
(drop
@@ -785,7 +785,7 @@
)
)
)
- (func $loophi (param $0 i32) (param $1 i32)
+ (func $loophi (; 46 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(loop $while-in
(block $while-out
@@ -815,7 +815,7 @@
)
)
)
- (func $loophi2 (result i32)
+ (func $loophi2 (; 47 ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -851,7 +851,7 @@
)
(get_local $1)
)
- (func $loophi2b (result i32)
+ (func $loophi2b (; 48 ;) (result i32)
(local $0 i32)
(local $1 i32)
(loop $label$continue$L7
@@ -883,7 +883,7 @@
)
(get_local $0)
)
- (func $relooperJumpThreading (param $0 i32) (result i32)
+ (func $relooperJumpThreading (; 49 ;) (param $0 i32) (result i32)
(block $__rjto$0
(block $__rjti$0
(if
@@ -1052,7 +1052,7 @@
)
(get_local $0)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 50 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
(loop $while-in
(block $__rjto$1
(block $__rjti$1
@@ -1079,7 +1079,7 @@
(br $while-in)
)
)
- (func $relooperJumpThreading_irreducible (param $0 i32)
+ (func $relooperJumpThreading_irreducible (; 51 ;) (param $0 i32)
(local $1 i32)
(if
(i32.eq
@@ -1131,7 +1131,7 @@
)
)
)
- (func $__Z12multi_varargiz (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
+ (func $__Z12multi_varargiz (; 52 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(if
(get_local $3)
(loop $while-in
@@ -1148,10 +1148,10 @@
)
)
)
- (func $jumpThreadDrop (result i32)
+ (func $jumpThreadDrop (; 53 ;) (result i32)
(call $return_int)
)
- (func $dropIgnoredImportInIf (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportInIf (; 54 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(if
(get_local $0)
(drop
@@ -1161,7 +1161,7 @@
)
)
)
- (func $dropIgnoredImportsInIf (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportsInIf (; 55 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(if (result i32)
(get_local $0)
@@ -1174,7 +1174,7 @@
)
)
)
- (func $store_fround (param $0 i32)
+ (func $store_fround (; 56 ;) (param $0 i32)
(f64.store
(i32.const 80)
(f64.promote/f32
@@ -1184,7 +1184,7 @@
)
)
)
- (func $relocatableAndModules (result i32)
+ (func $relocatableAndModules (; 57 ;) (result i32)
(call_indirect $FUNCSIG$v
(i32.const 10)
)
@@ -1197,10 +1197,10 @@
(i32.const 30)
)
)
- (func $exported_f32_user (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
+ (func $exported_f32_user (; 58 ;) (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
(get_local $1)
)
- (func $sqrts (param $0 f64) (result f64)
+ (func $sqrts (; 59 ;) (param $0 f64) (result f64)
(f64.add
(f64.sqrt
(get_local $0)
@@ -1214,7 +1214,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 60 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -1240,7 +1240,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 61 ;)
(drop
(call $sqrts
(f64.const 3.14159)
@@ -1289,13 +1289,13 @@
)
)
)
- (func $vi (param $0 i32)
+ (func $vi (; 62 ;) (param $0 i32)
(nop)
)
- (func $ii (param $0 i32) (result i32)
+ (func $ii (; 63 ;) (param $0 i32) (result i32)
(get_local $0)
)
- (func $legalstub$conversions (param $0 i32) (param $1 f64) (param $2 f64)
+ (func $legalstub$conversions (; 64 ;) (param $0 i32) (param $1 f64) (param $2 f64)
(call $conversions
(get_local $0)
(get_local $1)
@@ -1304,19 +1304,19 @@
)
)
)
- (func $legalstub$frem_float (result f64)
+ (func $legalstub$frem_float (; 65 ;) (result f64)
(f64.promote/f32
(call $frem_float)
)
)
- (func $legalstub$fr (param $0 f64)
+ (func $legalstub$fr (; 66 ;) (param $0 f64)
(call $fr
(f32.demote/f64
(get_local $0)
)
)
)
- (func $legalstub$ceiling_32_64 (param $0 f64) (param $1 f64)
+ (func $legalstub$ceiling_32_64 (; 67 ;) (param $0 f64) (param $1 f64)
(call $ceiling_32_64
(f32.demote/f64
(get_local $0)
@@ -1324,7 +1324,7 @@
(get_local $1)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 68 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
@@ -1332,7 +1332,7 @@
)
)
)
- (func $legalstub$exported_f32_user (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $legalstub$exported_f32_user (; 69 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(f64.promote/f32
(call $exported_f32_user
(get_local $0)
diff --git a/test/unit.fromasm.clamp.no-opts b/test/unit.fromasm.clamp.no-opts
index 6342644e8..ad698921e 100644
--- a/test/unit.fromasm.clamp.no-opts
+++ b/test/unit.fromasm.clamp.no-opts
@@ -82,7 +82,7 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $legalstub$exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative
+ (func $big_negative (; 7 ;)
(local $temp f64)
(set_local $temp
(f64.const -2147483648)
@@ -100,7 +100,7 @@
(f64.const -0.039625)
)
)
- (func $importedDoubles (result f64)
+ (func $importedDoubles (; 8 ;) (result f64)
(local $temp f64)
(set_local $temp
(f64.add
@@ -140,7 +140,7 @@
(f64.const 1.2)
)
)
- (func $doubleCompares (param $x f64) (param $y f64) (result f64)
+ (func $doubleCompares (; 9 ;) (param $x f64) (param $y f64) (result f64)
(local $t f64)
(local $Int f64)
(local $Double i32)
@@ -190,14 +190,14 @@
(get_local $y)
)
)
- (func $intOps (param $x i32) (result i32)
+ (func $intOps (; 10 ;) (param $x i32) (result i32)
(return
(i32.eqz
(get_local $x)
)
)
)
- (func $hexLiterals
+ (func $hexLiterals (; 11 ;)
(local $i i32)
(set_local $i
(i32.add
@@ -209,7 +209,7 @@
)
)
)
- (func $f64-to-int (param $0 f64) (result i32)
+ (func $f64-to-int (; 12 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -235,7 +235,7 @@
)
)
)
- (func $f32-to-int (param $0 f32) (result i32)
+ (func $f32-to-int (; 13 ;) (param $0 f32) (result i32)
(if (result i32)
(f32.ne
(get_local $0)
@@ -261,7 +261,7 @@
)
)
)
- (func $conversions (param $i i32) (param $d f64) (param $f f32)
+ (func $conversions (; 14 ;) (param $i i32) (param $d f64) (param $f f32)
(set_local $i
(call $f64-to-int
(get_local $d)
@@ -283,7 +283,7 @@
)
)
)
- (func $seq
+ (func $seq (; 15 ;)
(local $J f64)
(set_local $J
(f64.sub
@@ -302,7 +302,7 @@
)
)
)
- (func $switcher (param $x i32) (result i32)
+ (func $switcher (; 16 ;) (param $x i32) (result i32)
(local $waka i32)
(block $switch
(block $switch-case0
@@ -424,12 +424,12 @@
(i32.const 0)
)
)
- (func $blocker
+ (func $blocker (; 17 ;)
(block $label$break$L
(br $label$break$L)
)
)
- (func $frem (result f64)
+ (func $frem (; 18 ;) (result f64)
(return
(call $f64-rem
(f64.const 5.5)
@@ -437,7 +437,7 @@
)
)
)
- (func $frem_float (result f32)
+ (func $frem_float (; 19 ;) (result f32)
(return
(f32.demote/f64
(call $f64-rem
@@ -451,7 +451,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 20 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -463,7 +463,7 @@
)
)
)
- (func $big_uint_div_u (result i32)
+ (func $big_uint_div_u (; 21 ;) (result i32)
(local $x i32)
(set_local $x
(i32.and
@@ -478,7 +478,7 @@
(get_local $x)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 22 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -503,7 +503,7 @@
)
)
)
- (func $trapping_sint_div_s (result i32)
+ (func $trapping_sint_div_s (; 23 ;) (result i32)
(local $x i32)
(set_local $x
(call $i32s-div
@@ -515,7 +515,7 @@
(get_local $x)
)
)
- (func $fr (param $x f32)
+ (func $fr (; 24 ;) (param $x f32)
(local $y f32)
(local $z f64)
(drop
@@ -539,12 +539,12 @@
(f32.const 0)
)
)
- (func $negZero (result f64)
+ (func $negZero (; 25 ;) (result f64)
(return
(f64.const -0)
)
)
- (func $abs
+ (func $abs (; 26 ;)
(local $x i32)
(local $y f64)
(local $z f32)
@@ -578,7 +578,7 @@
)
)
)
- (func $minmax
+ (func $minmax (; 27 ;)
(local $x f64)
(local $y f64)
(local $z f32)
@@ -608,7 +608,7 @@
)
)
)
- (func $neg
+ (func $neg (; 28 ;)
(local $x f32)
(set_local $x
(f32.neg
@@ -626,7 +626,7 @@
)
)
)
- (func $cneg (param $x f32)
+ (func $cneg (; 29 ;) (param $x f32)
(call_indirect $FUNCSIG$vf
(get_local $x)
(i32.add
@@ -638,7 +638,7 @@
)
)
)
- (func $___syscall_ret
+ (func $___syscall_ret (; 30 ;)
(local $$0 i32)
(drop
(i32.gt_u
@@ -647,7 +647,7 @@
)
)
)
- (func $smallCompare (param $i i32) (param $j i32) (result i32)
+ (func $smallCompare (; 31 ;) (param $i i32) (param $j i32) (result i32)
(if
(i32.lt_s
(get_local $i)
@@ -676,7 +676,7 @@
(get_local $i)
)
)
- (func $cneg_nosemicolon
+ (func $cneg_nosemicolon (; 32 ;)
(call_indirect $FUNCSIG$vi
(i32.const 1)
(i32.add
@@ -688,7 +688,7 @@
)
)
)
- (func $forLoop
+ (func $forLoop (; 33 ;)
(local $i i32)
(set_local $i
(i32.const 1)
@@ -717,7 +717,7 @@
)
)
)
- (func $ceiling_32_64 (param $u f32) (param $B f64)
+ (func $ceiling_32_64 (; 34 ;) (param $u f32) (param $B f64)
(local $temp f32)
(set_local $temp
(f32.demote/f64
@@ -737,7 +737,7 @@
)
)
)
- (func $aborts
+ (func $aborts (; 35 ;)
(drop
(call $abort
(f64.const 0)
@@ -768,7 +768,7 @@
)
)
)
- (func $continues
+ (func $continues (; 36 ;)
(loop $while-in
(block $while-out
(call $print
@@ -792,7 +792,7 @@
)
)
)
- (func $bitcasts (param $i i32) (param $f f32)
+ (func $bitcasts (; 37 ;) (param $i i32) (param $f f32)
(local $d f64)
(drop
(f32.reinterpret/i32
@@ -819,7 +819,7 @@
)
)
)
- (func $recursiveBlockMerging (param $x i32) (result i32)
+ (func $recursiveBlockMerging (; 38 ;) (param $x i32) (result i32)
(drop
(call $lb
(i32.add
@@ -964,7 +964,7 @@
(get_local $x)
)
)
- (func $lb (param $a i32) (result i32)
+ (func $lb (; 39 ;) (param $a i32) (result i32)
(i32.store
(get_local $a)
(i32.add
@@ -979,17 +979,17 @@
(i32.const 0)
)
)
- (func $forgetMe
+ (func $forgetMe (; 40 ;)
(drop
(f64.const 123.456)
)
)
- (func $exportMe
+ (func $exportMe (; 41 ;)
(drop
(f64.const -3.14159)
)
)
- (func $zeroInit (param $x i32)
+ (func $zeroInit (; 42 ;) (param $x i32)
(local $y i32)
(if
(call $lb
@@ -1019,7 +1019,7 @@
)
)
)
- (func $phi (result i32)
+ (func $phi (; 43 ;) (result i32)
(local $x i32)
(block $do-once
(block
@@ -1043,7 +1043,7 @@
(get_local $x)
)
)
- (func $smallIf
+ (func $smallIf (; 44 ;)
(block $do-once
(if
(call $return_int)
@@ -1057,7 +1057,7 @@
(nop)
)
)
- (func $dropCall (result i32)
+ (func $dropCall (; 45 ;) (result i32)
(if
(call $return_int)
(block
@@ -1080,7 +1080,7 @@
(call $phi)
)
)
- (func $useSetGlobal (result i32)
+ (func $useSetGlobal (; 46 ;) (result i32)
(local $x i32)
(set_local $x
(block (result i32)
@@ -1102,7 +1102,7 @@
)
)
)
- (func $usesSetGlobal2 (result i32)
+ (func $usesSetGlobal2 (; 47 ;) (result i32)
(return
(block (result i32)
(block
@@ -1117,7 +1117,7 @@
)
)
)
- (func $breakThroughMany (param $$s i32)
+ (func $breakThroughMany (; 48 ;) (param $$s i32)
(block $label$break$L1
(if
(get_local $$s)
@@ -1142,7 +1142,7 @@
(nop)
)
)
- (func $ifChainEmpty (param $label i32) (result i32)
+ (func $ifChainEmpty (; 49 ;) (param $label i32) (result i32)
(if
(i32.eq
(get_local $label)
@@ -1163,14 +1163,14 @@
(i32.const 0)
)
)
- (func $heap8NoShift (param $x i32) (result i32)
+ (func $heap8NoShift (; 50 ;) (param $x i32) (result i32)
(return
(i32.load8_s
(get_local $x)
)
)
)
- (func $conditionalTypeFun
+ (func $conditionalTypeFun (; 51 ;)
(local $x i32)
(local $y f64)
(set_local $x
@@ -1198,7 +1198,7 @@
)
)
)
- (func $loadSigned (param $x i32)
+ (func $loadSigned (; 52 ;) (param $x i32)
(call $loadSigned
(i32.shr_s
(i32.shl
@@ -1288,15 +1288,15 @@
)
)
)
- (func $z (param $x f32)
+ (func $z (; 53 ;) (param $x f32)
(nop)
)
- (func $w (result f64)
+ (func $w (; 54 ;) (result f64)
(return
(f64.const 0)
)
)
- (func $globalOpts
+ (func $globalOpts (; 55 ;)
(local $x i32)
(local $y f64)
(set_local $x
@@ -1339,7 +1339,7 @@
(get_local $x)
)
)
- (func $dropCallImport
+ (func $dropCallImport (; 56 ;)
(if
(call $return_int)
(drop
@@ -1347,7 +1347,7 @@
)
)
)
- (func $loophi (param $x i32) (param $y i32)
+ (func $loophi (; 57 ;) (param $x i32) (param $y i32)
(local $temp i32)
(local $inc i32)
(local $loopvar i32)
@@ -1390,7 +1390,7 @@
)
)
)
- (func $loophi2 (result i32)
+ (func $loophi2 (; 58 ;) (result i32)
(local $jnc i32)
(local $i i32)
(local $i$lcssa i32)
@@ -1444,7 +1444,7 @@
(get_local $i$lcssa)
)
)
- (func $loophi2b (result i32)
+ (func $loophi2b (; 59 ;) (result i32)
(local $jnc i32)
(local $i i32)
(local $i$lcssa i32)
@@ -1498,7 +1498,7 @@
(get_local $i$lcssa)
)
)
- (func $relooperJumpThreading (param $x i32) (result i32)
+ (func $relooperJumpThreading (; 60 ;) (param $x i32) (result i32)
(local $label i32)
(if
(get_local $x)
@@ -1737,7 +1737,7 @@
(get_local $x)
)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (param $$12 i32) (param $$14 i32) (param $$or$cond8 i32) (param $$or$cond6 i32) (param $$vararg_ptr5 i32) (param $$11 i32) (param $$exitcond i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 61 ;) (param $$12 i32) (param $$14 i32) (param $$or$cond8 i32) (param $$or$cond6 i32) (param $$vararg_ptr5 i32) (param $$11 i32) (param $$exitcond i32)
(local $label i32)
(loop $while-in
(block $while-out
@@ -1790,7 +1790,7 @@
)
)
)
- (func $relooperJumpThreading_irreducible (param $x i32)
+ (func $relooperJumpThreading_irreducible (; 62 ;) (param $x i32)
(local $label i32)
(if
(i32.eq
@@ -1861,7 +1861,7 @@
)
)
)
- (func $__Z12multi_varargiz (param $$0 i32) (param $$$06$i4 i32) (param $$exitcond$i6 i32) (param $$2 i32)
+ (func $__Z12multi_varargiz (; 63 ;) (param $$0 i32) (param $$$06$i4 i32) (param $$exitcond$i6 i32) (param $$2 i32)
(local $$12 i32)
(local $$20 i32)
(if
@@ -1888,7 +1888,7 @@
)
)
)
- (func $jumpThreadDrop (result i32)
+ (func $jumpThreadDrop (; 64 ;) (result i32)
(local $label i32)
(local $temp i32)
(set_local $temp
@@ -1930,7 +1930,7 @@
(get_local $temp)
)
)
- (func $dropIgnoredImportInIf (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $dropIgnoredImportInIf (; 65 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(block $do-once
(if
(get_local $$0)
@@ -1950,12 +1950,12 @@
)
(return)
)
- (func $big_fround (result f32)
+ (func $big_fround (; 66 ;) (result f32)
(return
(f32.const 4294967296)
)
)
- (func $dropIgnoredImportsInIf (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $dropIgnoredImportsInIf (; 67 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(block $do-once
(if
(get_local $$0)
@@ -1974,21 +1974,21 @@
)
(return)
)
- (func $f32_ucast (param $x i32) (result f32)
+ (func $f32_ucast (; 68 ;) (param $x i32) (result f32)
(return
(f32.convert_u/i32
(get_local $x)
)
)
)
- (func $f32_scast (param $x i32) (result f32)
+ (func $f32_scast (; 69 ;) (param $x i32) (result f32)
(return
(f32.convert_s/i32
(get_local $x)
)
)
)
- (func $store_fround (param $x i32)
+ (func $store_fround (; 70 ;) (param $x i32)
(f64.store
(i32.const 80)
(f64.promote/f32
@@ -1998,7 +1998,7 @@
)
)
)
- (func $relocatableAndModules (result i32)
+ (func $relocatableAndModules (; 71 ;) (result i32)
(call_indirect $FUNCSIG$v
(i32.const 10)
)
@@ -2013,12 +2013,12 @@
)
)
)
- (func $exported_f32_user (param $x i32) (param $y f32) (param $z f64) (result f32)
+ (func $exported_f32_user (; 72 ;) (param $x i32) (param $y f32) (param $z f64) (result f32)
(return
(get_local $y)
)
)
- (func $sqrts (param $x f64) (result f64)
+ (func $sqrts (; 73 ;) (param $x f64) (result f64)
(return
(f64.add
(f64.sqrt
@@ -2034,7 +2034,7 @@
)
)
)
- (func $f64-to-uint (param $0 f64) (result i32)
+ (func $f64-to-uint (; 74 ;) (param $0 f64) (result i32)
(if (result i32)
(f64.ne
(get_local $0)
@@ -2060,21 +2060,21 @@
)
)
)
- (func $f2u (param $x f64) (result i32)
+ (func $f2u (; 75 ;) (param $x f64) (result i32)
(return
(call $f64-to-uint
(get_local $x)
)
)
)
- (func $f2s (param $x f64) (result i32)
+ (func $f2s (; 76 ;) (param $x f64) (result i32)
(return
(call $f64-to-int
(get_local $x)
)
)
)
- (func $autoDrop (param $x i32) (result i32)
+ (func $autoDrop (; 77 ;) (param $x i32) (result i32)
(loop $while-in
(block $while-out
(if
@@ -2108,7 +2108,7 @@
(get_local $x)
)
)
- (func $indirectInSequence
+ (func $indirectInSequence (; 78 ;)
(local $i1 i32)
(set_local $i1
(block (result i32)
@@ -2126,7 +2126,7 @@
)
)
)
- (func $emterpretify_assertions_safeHeap
+ (func $emterpretify_assertions_safeHeap (; 79 ;)
(local $i1 i32)
(call_indirect $FUNCSIG$vi
(get_local $i1)
@@ -2144,7 +2144,7 @@
)
)
)
- (func $call_emscripten_log
+ (func $call_emscripten_log (; 80 ;)
(call $emscripten_log)
(if
(i32.const 2)
@@ -2160,7 +2160,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 81 ;)
(drop
(call $sqrts
(f64.const 3.14159)
@@ -2190,18 +2190,18 @@
(call $emterpretify_assertions_safeHeap)
(call $call_emscripten_log)
)
- (func $v
+ (func $v (; 82 ;)
(nop)
)
- (func $vi (param $x i32)
+ (func $vi (; 83 ;) (param $x i32)
(nop)
)
- (func $ii (param $x i32) (result i32)
+ (func $ii (; 84 ;) (param $x i32) (result i32)
(return
(get_local $x)
)
)
- (func $legalstub$conversions (param $0 i32) (param $1 f64) (param $2 f64)
+ (func $legalstub$conversions (; 85 ;) (param $0 i32) (param $1 f64) (param $2 f64)
(call $conversions
(get_local $0)
(get_local $1)
@@ -2210,19 +2210,19 @@
)
)
)
- (func $legalstub$frem_float (result f64)
+ (func $legalstub$frem_float (; 86 ;) (result f64)
(f64.promote/f32
(call $frem_float)
)
)
- (func $legalstub$fr (param $0 f64)
+ (func $legalstub$fr (; 87 ;) (param $0 f64)
(call $fr
(f32.demote/f64
(get_local $0)
)
)
)
- (func $legalstub$ceiling_32_64 (param $0 f64) (param $1 f64)
+ (func $legalstub$ceiling_32_64 (; 88 ;) (param $0 f64) (param $1 f64)
(call $ceiling_32_64
(f32.demote/f64
(get_local $0)
@@ -2230,7 +2230,7 @@
(get_local $1)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 89 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
@@ -2238,7 +2238,7 @@
)
)
)
- (func $legalstub$exported_f32_user (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $legalstub$exported_f32_user (; 90 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(f64.promote/f32
(call $exported_f32_user
(get_local $0)
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index 2f9c35d13..41b365bdc 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -74,10 +74,10 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $legalstub$exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative
+ (func $big_negative (; 7 ;)
(nop)
)
- (func $importedDoubles (result f64)
+ (func $importedDoubles (; 8 ;) (result f64)
(if
(i32.gt_s
(get_global $Int)
@@ -98,7 +98,7 @@
)
(f64.const 1.2)
)
- (func $doubleCompares (param $0 f64) (param $1 f64) (result f64)
+ (func $doubleCompares (; 9 ;) (param $0 f64) (param $1 f64) (result f64)
(if
(f64.gt
(get_local $0)
@@ -137,15 +137,15 @@
)
(get_local $1)
)
- (func $intOps (param $0 i32) (result i32)
+ (func $intOps (; 10 ;) (param $0 i32) (result i32)
(i32.eqz
(get_local $0)
)
)
- (func $conversions (param $0 i32) (param $1 f64) (param $2 f32)
+ (func $conversions (; 11 ;) (param $0 i32) (param $1 f64) (param $2 f32)
(nop)
)
- (func $switcher (param $0 i32) (result i32)
+ (func $switcher (; 12 ;) (param $0 i32) (result i32)
(block $switch
(block $switch-case0
(block $switch-case
@@ -224,13 +224,13 @@
)
(i32.const 0)
)
- (func $frem (result f64)
+ (func $frem (; 13 ;) (result f64)
(call $f64-rem
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $frem_float (result f32)
+ (func $frem_float (; 14 ;) (result f32)
(f32.demote/f64
(call $f64-rem
(f64.const 5.5)
@@ -238,22 +238,22 @@
)
)
)
- (func $big_uint_div_u (result i32)
+ (func $big_uint_div_u (; 15 ;) (result i32)
(i32.const 2147483647)
)
- (func $trapping_sint_div_s (result i32)
+ (func $trapping_sint_div_s (; 16 ;) (result i32)
(i32.div_s
(i32.const -2147483648)
(i32.const -1)
)
)
- (func $fr (param $0 f32)
+ (func $fr (; 17 ;) (param $0 f32)
(nop)
)
- (func $negZero (result f64)
+ (func $negZero (; 18 ;) (result f64)
(f64.const -0)
)
- (func $neg
+ (func $neg (; 19 ;)
(local $0 f32)
(call_indirect $FUNCSIG$vf
(f32.neg
@@ -262,13 +262,13 @@
(i32.const 9)
)
)
- (func $cneg (param $0 f32)
+ (func $cneg (; 20 ;) (param $0 f32)
(call_indirect $FUNCSIG$vf
(get_local $0)
(i32.const 9)
)
)
- (func $smallCompare (param $0 i32) (param $1 i32) (result i32)
+ (func $smallCompare (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(if
(i32.lt_s
(get_local $0)
@@ -295,13 +295,13 @@
)
(get_local $0)
)
- (func $cneg_nosemicolon
+ (func $cneg_nosemicolon (; 22 ;)
(call_indirect $FUNCSIG$vi
(i32.const 1)
(i32.const 17)
)
)
- (func $forLoop
+ (func $forLoop (; 23 ;)
(local $0 i32)
(set_local $0
(i32.const 1)
@@ -327,10 +327,10 @@
)
)
)
- (func $ceiling_32_64 (param $0 f32) (param $1 f64)
+ (func $ceiling_32_64 (; 24 ;) (param $0 f32) (param $1 f64)
(nop)
)
- (func $aborts
+ (func $aborts (; 25 ;)
(drop
(call $abort
(f64.const 0)
@@ -359,7 +359,7 @@
)
)
)
- (func $continues
+ (func $continues (; 26 ;)
(loop $while-in
(call $print
(i32.const 1)
@@ -378,10 +378,10 @@
(br $while-in)
)
)
- (func $bitcasts (param $0 i32) (param $1 f32)
+ (func $bitcasts (; 27 ;) (param $0 i32) (param $1 f32)
(nop)
)
- (func $recursiveBlockMerging (param $0 i32) (result i32)
+ (func $recursiveBlockMerging (; 28 ;) (param $0 i32) (result i32)
(drop
(call $lb
(i32.add
@@ -456,7 +456,7 @@
)
)
)
- (func $lb (param $0 i32) (result i32)
+ (func $lb (; 29 ;) (param $0 i32) (result i32)
(i32.store
(get_local $0)
(i32.add
@@ -466,7 +466,7 @@
)
(i32.const 0)
)
- (func $zeroInit (param $0 i32)
+ (func $zeroInit (; 30 ;) (param $0 i32)
(local $1 i32)
(if
(call $lb
@@ -496,7 +496,7 @@
)
)
)
- (func $phi (result i32)
+ (func $phi (; 31 ;) (result i32)
(block $do-once (result i32)
(drop
(br_if $do-once
@@ -509,7 +509,7 @@
(i32.const 1)
)
)
- (func $smallIf
+ (func $smallIf (; 32 ;)
(if
(call $return_int)
(drop
@@ -519,7 +519,7 @@
)
)
)
- (func $dropCall (result i32)
+ (func $dropCall (; 33 ;) (result i32)
(if
(call $return_int)
(block
@@ -540,7 +540,7 @@
)
(call $phi)
)
- (func $useSetGlobal (result i32)
+ (func $useSetGlobal (; 34 ;) (result i32)
(set_global $Int
(i32.const 10)
)
@@ -552,13 +552,13 @@
)
(get_global $Int)
)
- (func $usesSetGlobal2 (result i32)
+ (func $usesSetGlobal2 (; 35 ;) (result i32)
(set_global $Int
(i32.const 40)
)
(i32.const 50)
)
- (func $breakThroughMany (param $0 i32)
+ (func $breakThroughMany (; 36 ;) (param $0 i32)
(block $label$break$L1
(if
(get_local $0)
@@ -576,7 +576,7 @@
)
)
)
- (func $ifChainEmpty (param $0 i32) (result i32)
+ (func $ifChainEmpty (; 37 ;) (param $0 i32) (result i32)
(if
(i32.eq
(get_local $0)
@@ -588,12 +588,12 @@
)
(i32.const 0)
)
- (func $heap8NoShift (param $0 i32) (result i32)
+ (func $heap8NoShift (; 38 ;) (param $0 i32) (result i32)
(i32.load8_s
(get_local $0)
)
)
- (func $conditionalTypeFun
+ (func $conditionalTypeFun (; 39 ;)
(drop
(if (result i32)
(call $return_int)
@@ -619,7 +619,7 @@
)
)
)
- (func $loadSigned (param $0 i32)
+ (func $loadSigned (; 40 ;) (param $0 i32)
(call $loadSigned
(i32.load8_s
(get_local $0)
@@ -685,10 +685,10 @@
)
)
)
- (func $w (result f64)
+ (func $w (; 41 ;) (result f64)
(f64.const 0)
)
- (func $globalOpts
+ (func $globalOpts (; 42 ;)
(local $0 i32)
(i32.store8
(i32.const 13)
@@ -718,7 +718,7 @@
(get_local $0)
)
)
- (func $dropCallImport
+ (func $dropCallImport (; 43 ;)
(if
(call $return_int)
(drop
@@ -726,7 +726,7 @@
)
)
)
- (func $loophi (param $0 i32) (param $1 i32)
+ (func $loophi (; 44 ;) (param $0 i32) (param $1 i32)
(local $2 i32)
(loop $while-in
(block $while-out
@@ -756,7 +756,7 @@
)
)
)
- (func $loophi2 (result i32)
+ (func $loophi2 (; 45 ;) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
@@ -792,7 +792,7 @@
)
(get_local $1)
)
- (func $loophi2b (result i32)
+ (func $loophi2b (; 46 ;) (result i32)
(local $0 i32)
(local $1 i32)
(loop $label$continue$L7
@@ -824,7 +824,7 @@
)
(get_local $0)
)
- (func $relooperJumpThreading (param $0 i32) (result i32)
+ (func $relooperJumpThreading (; 47 ;) (param $0 i32) (result i32)
(block $__rjto$0
(block $__rjti$0
(if
@@ -993,7 +993,7 @@
)
(get_local $0)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 48 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (param $6 i32)
(loop $while-in
(block $__rjto$1
(block $__rjti$1
@@ -1020,7 +1020,7 @@
(br $while-in)
)
)
- (func $relooperJumpThreading_irreducible (param $0 i32)
+ (func $relooperJumpThreading_irreducible (; 49 ;) (param $0 i32)
(local $1 i32)
(if
(i32.eq
@@ -1072,7 +1072,7 @@
)
)
)
- (func $__Z12multi_varargiz (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
+ (func $__Z12multi_varargiz (; 50 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(if
(get_local $3)
(loop $while-in
@@ -1089,10 +1089,10 @@
)
)
)
- (func $jumpThreadDrop (result i32)
+ (func $jumpThreadDrop (; 51 ;) (result i32)
(call $return_int)
)
- (func $dropIgnoredImportInIf (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportInIf (; 52 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(if
(get_local $0)
(drop
@@ -1102,7 +1102,7 @@
)
)
)
- (func $dropIgnoredImportsInIf (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $dropIgnoredImportsInIf (; 53 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(drop
(if (result i32)
(get_local $0)
@@ -1115,7 +1115,7 @@
)
)
)
- (func $store_fround (param $0 i32)
+ (func $store_fround (; 54 ;) (param $0 i32)
(f64.store
(i32.const 80)
(f64.promote/f32
@@ -1125,7 +1125,7 @@
)
)
)
- (func $relocatableAndModules (result i32)
+ (func $relocatableAndModules (; 55 ;) (result i32)
(call_indirect $FUNCSIG$v
(i32.const 10)
)
@@ -1138,10 +1138,10 @@
(i32.const 30)
)
)
- (func $exported_f32_user (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
+ (func $exported_f32_user (; 56 ;) (param $0 i32) (param $1 f32) (param $2 f64) (result f32)
(get_local $1)
)
- (func $sqrts (param $0 f64) (result f64)
+ (func $sqrts (; 57 ;) (param $0 f64) (result f64)
(f64.add
(f64.sqrt
(get_local $0)
@@ -1155,7 +1155,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 58 ;)
(drop
(call $sqrts
(f64.const 3.14159)
@@ -1194,13 +1194,13 @@
)
)
)
- (func $vi (param $0 i32)
+ (func $vi (; 59 ;) (param $0 i32)
(nop)
)
- (func $ii (param $0 i32) (result i32)
+ (func $ii (; 60 ;) (param $0 i32) (result i32)
(get_local $0)
)
- (func $legalstub$conversions (param $0 i32) (param $1 f64) (param $2 f64)
+ (func $legalstub$conversions (; 61 ;) (param $0 i32) (param $1 f64) (param $2 f64)
(call $conversions
(get_local $0)
(get_local $1)
@@ -1209,19 +1209,19 @@
)
)
)
- (func $legalstub$frem_float (result f64)
+ (func $legalstub$frem_float (; 62 ;) (result f64)
(f64.promote/f32
(call $frem_float)
)
)
- (func $legalstub$fr (param $0 f64)
+ (func $legalstub$fr (; 63 ;) (param $0 f64)
(call $fr
(f32.demote/f64
(get_local $0)
)
)
)
- (func $legalstub$ceiling_32_64 (param $0 f64) (param $1 f64)
+ (func $legalstub$ceiling_32_64 (; 64 ;) (param $0 f64) (param $1 f64)
(call $ceiling_32_64
(f32.demote/f64
(get_local $0)
@@ -1229,7 +1229,7 @@
(get_local $1)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 65 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
@@ -1237,7 +1237,7 @@
)
)
)
- (func $legalstub$exported_f32_user (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $legalstub$exported_f32_user (; 66 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(f64.promote/f32
(call $exported_f32_user
(get_local $0)
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts
index 5c3695a23..f74ca4290 100644
--- a/test/unit.fromasm.imprecise.no-opts
+++ b/test/unit.fromasm.imprecise.no-opts
@@ -82,7 +82,7 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $legalstub$exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative
+ (func $big_negative (; 7 ;)
(local $temp f64)
(set_local $temp
(f64.const -2147483648)
@@ -100,7 +100,7 @@
(f64.const -0.039625)
)
)
- (func $importedDoubles (result f64)
+ (func $importedDoubles (; 8 ;) (result f64)
(local $temp f64)
(set_local $temp
(f64.add
@@ -140,7 +140,7 @@
(f64.const 1.2)
)
)
- (func $doubleCompares (param $x f64) (param $y f64) (result f64)
+ (func $doubleCompares (; 9 ;) (param $x f64) (param $y f64) (result f64)
(local $t f64)
(local $Int f64)
(local $Double i32)
@@ -190,14 +190,14 @@
(get_local $y)
)
)
- (func $intOps (param $x i32) (result i32)
+ (func $intOps (; 10 ;) (param $x i32) (result i32)
(return
(i32.eqz
(get_local $x)
)
)
)
- (func $hexLiterals
+ (func $hexLiterals (; 11 ;)
(local $i i32)
(set_local $i
(i32.add
@@ -209,7 +209,7 @@
)
)
)
- (func $conversions (param $i i32) (param $d f64) (param $f f32)
+ (func $conversions (; 12 ;) (param $i i32) (param $d f64) (param $f f32)
(set_local $i
(i32.trunc_s/f64
(get_local $d)
@@ -231,7 +231,7 @@
)
)
)
- (func $seq
+ (func $seq (; 13 ;)
(local $J f64)
(set_local $J
(f64.sub
@@ -250,7 +250,7 @@
)
)
)
- (func $switcher (param $x i32) (result i32)
+ (func $switcher (; 14 ;) (param $x i32) (result i32)
(local $waka i32)
(block $switch
(block $switch-case0
@@ -372,12 +372,12 @@
(i32.const 0)
)
)
- (func $blocker
+ (func $blocker (; 15 ;)
(block $label$break$L
(br $label$break$L)
)
)
- (func $frem (result f64)
+ (func $frem (; 16 ;) (result f64)
(return
(call $f64-rem
(f64.const 5.5)
@@ -385,7 +385,7 @@
)
)
)
- (func $frem_float (result f32)
+ (func $frem_float (; 17 ;) (result f32)
(return
(f32.demote/f64
(call $f64-rem
@@ -399,7 +399,7 @@
)
)
)
- (func $big_uint_div_u (result i32)
+ (func $big_uint_div_u (; 18 ;) (result i32)
(local $x i32)
(set_local $x
(i32.and
@@ -414,7 +414,7 @@
(get_local $x)
)
)
- (func $trapping_sint_div_s (result i32)
+ (func $trapping_sint_div_s (; 19 ;) (result i32)
(local $x i32)
(set_local $x
(i32.div_s
@@ -426,7 +426,7 @@
(get_local $x)
)
)
- (func $fr (param $x f32)
+ (func $fr (; 20 ;) (param $x f32)
(local $y f32)
(local $z f64)
(drop
@@ -450,12 +450,12 @@
(f32.const 0)
)
)
- (func $negZero (result f64)
+ (func $negZero (; 21 ;) (result f64)
(return
(f64.const -0)
)
)
- (func $abs
+ (func $abs (; 22 ;)
(local $x i32)
(local $y f64)
(local $z f32)
@@ -489,7 +489,7 @@
)
)
)
- (func $minmax
+ (func $minmax (; 23 ;)
(local $x f64)
(local $y f64)
(local $z f32)
@@ -519,7 +519,7 @@
)
)
)
- (func $neg
+ (func $neg (; 24 ;)
(local $x f32)
(set_local $x
(f32.neg
@@ -537,7 +537,7 @@
)
)
)
- (func $cneg (param $x f32)
+ (func $cneg (; 25 ;) (param $x f32)
(call_indirect $FUNCSIG$vf
(get_local $x)
(i32.add
@@ -549,7 +549,7 @@
)
)
)
- (func $___syscall_ret
+ (func $___syscall_ret (; 26 ;)
(local $$0 i32)
(drop
(i32.gt_u
@@ -558,7 +558,7 @@
)
)
)
- (func $smallCompare (param $i i32) (param $j i32) (result i32)
+ (func $smallCompare (; 27 ;) (param $i i32) (param $j i32) (result i32)
(if
(i32.lt_s
(get_local $i)
@@ -587,7 +587,7 @@
(get_local $i)
)
)
- (func $cneg_nosemicolon
+ (func $cneg_nosemicolon (; 28 ;)
(call_indirect $FUNCSIG$vi
(i32.const 1)
(i32.add
@@ -599,7 +599,7 @@
)
)
)
- (func $forLoop
+ (func $forLoop (; 29 ;)
(local $i i32)
(set_local $i
(i32.const 1)
@@ -628,7 +628,7 @@
)
)
)
- (func $ceiling_32_64 (param $u f32) (param $B f64)
+ (func $ceiling_32_64 (; 30 ;) (param $u f32) (param $B f64)
(local $temp f32)
(set_local $temp
(f32.demote/f64
@@ -648,7 +648,7 @@
)
)
)
- (func $aborts
+ (func $aborts (; 31 ;)
(drop
(call $abort
(f64.const 0)
@@ -679,7 +679,7 @@
)
)
)
- (func $continues
+ (func $continues (; 32 ;)
(loop $while-in
(block $while-out
(call $print
@@ -703,7 +703,7 @@
)
)
)
- (func $bitcasts (param $i i32) (param $f f32)
+ (func $bitcasts (; 33 ;) (param $i i32) (param $f f32)
(local $d f64)
(drop
(f32.reinterpret/i32
@@ -730,7 +730,7 @@
)
)
)
- (func $recursiveBlockMerging (param $x i32) (result i32)
+ (func $recursiveBlockMerging (; 34 ;) (param $x i32) (result i32)
(drop
(call $lb
(i32.add
@@ -875,7 +875,7 @@
(get_local $x)
)
)
- (func $lb (param $a i32) (result i32)
+ (func $lb (; 35 ;) (param $a i32) (result i32)
(i32.store
(get_local $a)
(i32.add
@@ -890,17 +890,17 @@
(i32.const 0)
)
)
- (func $forgetMe
+ (func $forgetMe (; 36 ;)
(drop
(f64.const 123.456)
)
)
- (func $exportMe
+ (func $exportMe (; 37 ;)
(drop
(f64.const -3.14159)
)
)
- (func $zeroInit (param $x i32)
+ (func $zeroInit (; 38 ;) (param $x i32)
(local $y i32)
(if
(call $lb
@@ -930,7 +930,7 @@
)
)
)
- (func $phi (result i32)
+ (func $phi (; 39 ;) (result i32)
(local $x i32)
(block $do-once
(block
@@ -954,7 +954,7 @@
(get_local $x)
)
)
- (func $smallIf
+ (func $smallIf (; 40 ;)
(block $do-once
(if
(call $return_int)
@@ -968,7 +968,7 @@
(nop)
)
)
- (func $dropCall (result i32)
+ (func $dropCall (; 41 ;) (result i32)
(if
(call $return_int)
(block
@@ -991,7 +991,7 @@
(call $phi)
)
)
- (func $useSetGlobal (result i32)
+ (func $useSetGlobal (; 42 ;) (result i32)
(local $x i32)
(set_local $x
(block (result i32)
@@ -1013,7 +1013,7 @@
)
)
)
- (func $usesSetGlobal2 (result i32)
+ (func $usesSetGlobal2 (; 43 ;) (result i32)
(return
(block (result i32)
(block
@@ -1028,7 +1028,7 @@
)
)
)
- (func $breakThroughMany (param $$s i32)
+ (func $breakThroughMany (; 44 ;) (param $$s i32)
(block $label$break$L1
(if
(get_local $$s)
@@ -1053,7 +1053,7 @@
(nop)
)
)
- (func $ifChainEmpty (param $label i32) (result i32)
+ (func $ifChainEmpty (; 45 ;) (param $label i32) (result i32)
(if
(i32.eq
(get_local $label)
@@ -1074,14 +1074,14 @@
(i32.const 0)
)
)
- (func $heap8NoShift (param $x i32) (result i32)
+ (func $heap8NoShift (; 46 ;) (param $x i32) (result i32)
(return
(i32.load8_s
(get_local $x)
)
)
)
- (func $conditionalTypeFun
+ (func $conditionalTypeFun (; 47 ;)
(local $x i32)
(local $y f64)
(set_local $x
@@ -1109,7 +1109,7 @@
)
)
)
- (func $loadSigned (param $x i32)
+ (func $loadSigned (; 48 ;) (param $x i32)
(call $loadSigned
(i32.shr_s
(i32.shl
@@ -1199,15 +1199,15 @@
)
)
)
- (func $z (param $x f32)
+ (func $z (; 49 ;) (param $x f32)
(nop)
)
- (func $w (result f64)
+ (func $w (; 50 ;) (result f64)
(return
(f64.const 0)
)
)
- (func $globalOpts
+ (func $globalOpts (; 51 ;)
(local $x i32)
(local $y f64)
(set_local $x
@@ -1250,7 +1250,7 @@
(get_local $x)
)
)
- (func $dropCallImport
+ (func $dropCallImport (; 52 ;)
(if
(call $return_int)
(drop
@@ -1258,7 +1258,7 @@
)
)
)
- (func $loophi (param $x i32) (param $y i32)
+ (func $loophi (; 53 ;) (param $x i32) (param $y i32)
(local $temp i32)
(local $inc i32)
(local $loopvar i32)
@@ -1301,7 +1301,7 @@
)
)
)
- (func $loophi2 (result i32)
+ (func $loophi2 (; 54 ;) (result i32)
(local $jnc i32)
(local $i i32)
(local $i$lcssa i32)
@@ -1355,7 +1355,7 @@
(get_local $i$lcssa)
)
)
- (func $loophi2b (result i32)
+ (func $loophi2b (; 55 ;) (result i32)
(local $jnc i32)
(local $i i32)
(local $i$lcssa i32)
@@ -1409,7 +1409,7 @@
(get_local $i$lcssa)
)
)
- (func $relooperJumpThreading (param $x i32) (result i32)
+ (func $relooperJumpThreading (; 56 ;) (param $x i32) (result i32)
(local $label i32)
(if
(get_local $x)
@@ -1648,7 +1648,7 @@
(get_local $x)
)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (param $$12 i32) (param $$14 i32) (param $$or$cond8 i32) (param $$or$cond6 i32) (param $$vararg_ptr5 i32) (param $$11 i32) (param $$exitcond i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 57 ;) (param $$12 i32) (param $$14 i32) (param $$or$cond8 i32) (param $$or$cond6 i32) (param $$vararg_ptr5 i32) (param $$11 i32) (param $$exitcond i32)
(local $label i32)
(loop $while-in
(block $while-out
@@ -1701,7 +1701,7 @@
)
)
)
- (func $relooperJumpThreading_irreducible (param $x i32)
+ (func $relooperJumpThreading_irreducible (; 58 ;) (param $x i32)
(local $label i32)
(if
(i32.eq
@@ -1772,7 +1772,7 @@
)
)
)
- (func $__Z12multi_varargiz (param $$0 i32) (param $$$06$i4 i32) (param $$exitcond$i6 i32) (param $$2 i32)
+ (func $__Z12multi_varargiz (; 59 ;) (param $$0 i32) (param $$$06$i4 i32) (param $$exitcond$i6 i32) (param $$2 i32)
(local $$12 i32)
(local $$20 i32)
(if
@@ -1799,7 +1799,7 @@
)
)
)
- (func $jumpThreadDrop (result i32)
+ (func $jumpThreadDrop (; 60 ;) (result i32)
(local $label i32)
(local $temp i32)
(set_local $temp
@@ -1841,7 +1841,7 @@
(get_local $temp)
)
)
- (func $dropIgnoredImportInIf (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $dropIgnoredImportInIf (; 61 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(block $do-once
(if
(get_local $$0)
@@ -1861,12 +1861,12 @@
)
(return)
)
- (func $big_fround (result f32)
+ (func $big_fround (; 62 ;) (result f32)
(return
(f32.const 4294967296)
)
)
- (func $dropIgnoredImportsInIf (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $dropIgnoredImportsInIf (; 63 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(block $do-once
(if
(get_local $$0)
@@ -1885,21 +1885,21 @@
)
(return)
)
- (func $f32_ucast (param $x i32) (result f32)
+ (func $f32_ucast (; 64 ;) (param $x i32) (result f32)
(return
(f32.convert_u/i32
(get_local $x)
)
)
)
- (func $f32_scast (param $x i32) (result f32)
+ (func $f32_scast (; 65 ;) (param $x i32) (result f32)
(return
(f32.convert_s/i32
(get_local $x)
)
)
)
- (func $store_fround (param $x i32)
+ (func $store_fround (; 66 ;) (param $x i32)
(f64.store
(i32.const 80)
(f64.promote/f32
@@ -1909,7 +1909,7 @@
)
)
)
- (func $relocatableAndModules (result i32)
+ (func $relocatableAndModules (; 67 ;) (result i32)
(call_indirect $FUNCSIG$v
(i32.const 10)
)
@@ -1924,12 +1924,12 @@
)
)
)
- (func $exported_f32_user (param $x i32) (param $y f32) (param $z f64) (result f32)
+ (func $exported_f32_user (; 68 ;) (param $x i32) (param $y f32) (param $z f64) (result f32)
(return
(get_local $y)
)
)
- (func $sqrts (param $x f64) (result f64)
+ (func $sqrts (; 69 ;) (param $x f64) (result f64)
(return
(f64.add
(f64.sqrt
@@ -1945,21 +1945,21 @@
)
)
)
- (func $f2u (param $x f64) (result i32)
+ (func $f2u (; 70 ;) (param $x f64) (result i32)
(return
(i32.trunc_u/f64
(get_local $x)
)
)
)
- (func $f2s (param $x f64) (result i32)
+ (func $f2s (; 71 ;) (param $x f64) (result i32)
(return
(i32.trunc_s/f64
(get_local $x)
)
)
)
- (func $autoDrop (param $x i32) (result i32)
+ (func $autoDrop (; 72 ;) (param $x i32) (result i32)
(loop $while-in
(block $while-out
(if
@@ -1993,7 +1993,7 @@
(get_local $x)
)
)
- (func $indirectInSequence
+ (func $indirectInSequence (; 73 ;)
(local $i1 i32)
(set_local $i1
(block (result i32)
@@ -2011,7 +2011,7 @@
)
)
)
- (func $emterpretify_assertions_safeHeap
+ (func $emterpretify_assertions_safeHeap (; 74 ;)
(local $i1 i32)
(call_indirect $FUNCSIG$vi
(get_local $i1)
@@ -2029,7 +2029,7 @@
)
)
)
- (func $call_emscripten_log
+ (func $call_emscripten_log (; 75 ;)
(call $emscripten_log)
(if
(i32.const 2)
@@ -2045,7 +2045,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 76 ;)
(drop
(call $sqrts
(f64.const 3.14159)
@@ -2075,18 +2075,18 @@
(call $emterpretify_assertions_safeHeap)
(call $call_emscripten_log)
)
- (func $v
+ (func $v (; 77 ;)
(nop)
)
- (func $vi (param $x i32)
+ (func $vi (; 78 ;) (param $x i32)
(nop)
)
- (func $ii (param $x i32) (result i32)
+ (func $ii (; 79 ;) (param $x i32) (result i32)
(return
(get_local $x)
)
)
- (func $legalstub$conversions (param $0 i32) (param $1 f64) (param $2 f64)
+ (func $legalstub$conversions (; 80 ;) (param $0 i32) (param $1 f64) (param $2 f64)
(call $conversions
(get_local $0)
(get_local $1)
@@ -2095,19 +2095,19 @@
)
)
)
- (func $legalstub$frem_float (result f64)
+ (func $legalstub$frem_float (; 81 ;) (result f64)
(f64.promote/f32
(call $frem_float)
)
)
- (func $legalstub$fr (param $0 f64)
+ (func $legalstub$fr (; 82 ;) (param $0 f64)
(call $fr
(f32.demote/f64
(get_local $0)
)
)
)
- (func $legalstub$ceiling_32_64 (param $0 f64) (param $1 f64)
+ (func $legalstub$ceiling_32_64 (; 83 ;) (param $0 f64) (param $1 f64)
(call $ceiling_32_64
(f32.demote/f64
(get_local $0)
@@ -2115,7 +2115,7 @@
(get_local $1)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 84 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
@@ -2123,7 +2123,7 @@
)
)
)
- (func $legalstub$exported_f32_user (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $legalstub$exported_f32_user (; 85 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(f64.promote/f32
(call $exported_f32_user
(get_local $0)
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts
index eda573fbd..b9cd7ce46 100644
--- a/test/unit.fromasm.no-opts
+++ b/test/unit.fromasm.no-opts
@@ -84,7 +84,7 @@
(export "relocatableAndModules" (func $relocatableAndModules))
(export "exported_f32_user" (func $legalstub$exported_f32_user))
(export "keepAlive" (func $keepAlive))
- (func $big_negative
+ (func $big_negative (; 8 ;)
(local $temp f64)
(set_local $temp
(f64.const -2147483648)
@@ -102,7 +102,7 @@
(f64.const -0.039625)
)
)
- (func $importedDoubles (result f64)
+ (func $importedDoubles (; 9 ;) (result f64)
(local $temp f64)
(set_local $temp
(f64.add
@@ -142,7 +142,7 @@
(f64.const 1.2)
)
)
- (func $doubleCompares (param $x f64) (param $y f64) (result f64)
+ (func $doubleCompares (; 10 ;) (param $x f64) (param $y f64) (result f64)
(local $t f64)
(local $Int f64)
(local $Double i32)
@@ -192,14 +192,14 @@
(get_local $y)
)
)
- (func $intOps (param $x i32) (result i32)
+ (func $intOps (; 11 ;) (param $x i32) (result i32)
(return
(i32.eqz
(get_local $x)
)
)
)
- (func $hexLiterals
+ (func $hexLiterals (; 12 ;)
(local $i i32)
(set_local $i
(i32.add
@@ -211,7 +211,7 @@
)
)
)
- (func $conversions (param $i i32) (param $d f64) (param $f f32)
+ (func $conversions (; 13 ;) (param $i i32) (param $d f64) (param $f f32)
(set_local $i
(call $f64-to-int
(get_local $d)
@@ -235,7 +235,7 @@
)
)
)
- (func $seq
+ (func $seq (; 14 ;)
(local $J f64)
(set_local $J
(f64.sub
@@ -254,7 +254,7 @@
)
)
)
- (func $switcher (param $x i32) (result i32)
+ (func $switcher (; 15 ;) (param $x i32) (result i32)
(local $waka i32)
(block $switch
(block $switch-case0
@@ -376,12 +376,12 @@
(i32.const 0)
)
)
- (func $blocker
+ (func $blocker (; 16 ;)
(block $label$break$L
(br $label$break$L)
)
)
- (func $frem (result f64)
+ (func $frem (; 17 ;) (result f64)
(return
(call $f64-rem
(f64.const 5.5)
@@ -389,7 +389,7 @@
)
)
)
- (func $frem_float (result f32)
+ (func $frem_float (; 18 ;) (result f32)
(return
(f32.demote/f64
(call $f64-rem
@@ -403,7 +403,7 @@
)
)
)
- (func $i32u-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32u-div (; 19 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -415,7 +415,7 @@
)
)
)
- (func $big_uint_div_u (result i32)
+ (func $big_uint_div_u (; 20 ;) (result i32)
(local $x i32)
(set_local $x
(i32.and
@@ -430,7 +430,7 @@
(get_local $x)
)
)
- (func $i32s-div (param $0 i32) (param $1 i32) (result i32)
+ (func $i32s-div (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(if (result i32)
(i32.eqz
(get_local $1)
@@ -455,7 +455,7 @@
)
)
)
- (func $trapping_sint_div_s (result i32)
+ (func $trapping_sint_div_s (; 22 ;) (result i32)
(local $x i32)
(set_local $x
(call $i32s-div
@@ -467,7 +467,7 @@
(get_local $x)
)
)
- (func $fr (param $x f32)
+ (func $fr (; 23 ;) (param $x f32)
(local $y f32)
(local $z f64)
(drop
@@ -491,12 +491,12 @@
(f32.const 0)
)
)
- (func $negZero (result f64)
+ (func $negZero (; 24 ;) (result f64)
(return
(f64.const -0)
)
)
- (func $abs
+ (func $abs (; 25 ;)
(local $x i32)
(local $y f64)
(local $z f32)
@@ -530,7 +530,7 @@
)
)
)
- (func $minmax
+ (func $minmax (; 26 ;)
(local $x f64)
(local $y f64)
(local $z f32)
@@ -560,7 +560,7 @@
)
)
)
- (func $neg
+ (func $neg (; 27 ;)
(local $x f32)
(set_local $x
(f32.neg
@@ -578,7 +578,7 @@
)
)
)
- (func $cneg (param $x f32)
+ (func $cneg (; 28 ;) (param $x f32)
(call_indirect $FUNCSIG$vf
(get_local $x)
(i32.add
@@ -590,7 +590,7 @@
)
)
)
- (func $___syscall_ret
+ (func $___syscall_ret (; 29 ;)
(local $$0 i32)
(drop
(i32.gt_u
@@ -599,7 +599,7 @@
)
)
)
- (func $smallCompare (param $i i32) (param $j i32) (result i32)
+ (func $smallCompare (; 30 ;) (param $i i32) (param $j i32) (result i32)
(if
(i32.lt_s
(get_local $i)
@@ -628,7 +628,7 @@
(get_local $i)
)
)
- (func $cneg_nosemicolon
+ (func $cneg_nosemicolon (; 31 ;)
(call_indirect $FUNCSIG$vi
(i32.const 1)
(i32.add
@@ -640,7 +640,7 @@
)
)
)
- (func $forLoop
+ (func $forLoop (; 32 ;)
(local $i i32)
(set_local $i
(i32.const 1)
@@ -669,7 +669,7 @@
)
)
)
- (func $ceiling_32_64 (param $u f32) (param $B f64)
+ (func $ceiling_32_64 (; 33 ;) (param $u f32) (param $B f64)
(local $temp f32)
(set_local $temp
(f32.demote/f64
@@ -689,7 +689,7 @@
)
)
)
- (func $aborts
+ (func $aborts (; 34 ;)
(drop
(call $abort
(f64.const 0)
@@ -720,7 +720,7 @@
)
)
)
- (func $continues
+ (func $continues (; 35 ;)
(loop $while-in
(block $while-out
(call $print
@@ -744,7 +744,7 @@
)
)
)
- (func $bitcasts (param $i i32) (param $f f32)
+ (func $bitcasts (; 36 ;) (param $i i32) (param $f f32)
(local $d f64)
(drop
(f32.reinterpret/i32
@@ -771,7 +771,7 @@
)
)
)
- (func $recursiveBlockMerging (param $x i32) (result i32)
+ (func $recursiveBlockMerging (; 37 ;) (param $x i32) (result i32)
(drop
(call $lb
(i32.add
@@ -916,7 +916,7 @@
(get_local $x)
)
)
- (func $lb (param $a i32) (result i32)
+ (func $lb (; 38 ;) (param $a i32) (result i32)
(i32.store
(get_local $a)
(i32.add
@@ -931,17 +931,17 @@
(i32.const 0)
)
)
- (func $forgetMe
+ (func $forgetMe (; 39 ;)
(drop
(f64.const 123.456)
)
)
- (func $exportMe
+ (func $exportMe (; 40 ;)
(drop
(f64.const -3.14159)
)
)
- (func $zeroInit (param $x i32)
+ (func $zeroInit (; 41 ;) (param $x i32)
(local $y i32)
(if
(call $lb
@@ -971,7 +971,7 @@
)
)
)
- (func $phi (result i32)
+ (func $phi (; 42 ;) (result i32)
(local $x i32)
(block $do-once
(block
@@ -995,7 +995,7 @@
(get_local $x)
)
)
- (func $smallIf
+ (func $smallIf (; 43 ;)
(block $do-once
(if
(call $return_int)
@@ -1009,7 +1009,7 @@
(nop)
)
)
- (func $dropCall (result i32)
+ (func $dropCall (; 44 ;) (result i32)
(if
(call $return_int)
(block
@@ -1032,7 +1032,7 @@
(call $phi)
)
)
- (func $useSetGlobal (result i32)
+ (func $useSetGlobal (; 45 ;) (result i32)
(local $x i32)
(set_local $x
(block (result i32)
@@ -1054,7 +1054,7 @@
)
)
)
- (func $usesSetGlobal2 (result i32)
+ (func $usesSetGlobal2 (; 46 ;) (result i32)
(return
(block (result i32)
(block
@@ -1069,7 +1069,7 @@
)
)
)
- (func $breakThroughMany (param $$s i32)
+ (func $breakThroughMany (; 47 ;) (param $$s i32)
(block $label$break$L1
(if
(get_local $$s)
@@ -1094,7 +1094,7 @@
(nop)
)
)
- (func $ifChainEmpty (param $label i32) (result i32)
+ (func $ifChainEmpty (; 48 ;) (param $label i32) (result i32)
(if
(i32.eq
(get_local $label)
@@ -1115,14 +1115,14 @@
(i32.const 0)
)
)
- (func $heap8NoShift (param $x i32) (result i32)
+ (func $heap8NoShift (; 49 ;) (param $x i32) (result i32)
(return
(i32.load8_s
(get_local $x)
)
)
)
- (func $conditionalTypeFun
+ (func $conditionalTypeFun (; 50 ;)
(local $x i32)
(local $y f64)
(set_local $x
@@ -1150,7 +1150,7 @@
)
)
)
- (func $loadSigned (param $x i32)
+ (func $loadSigned (; 51 ;) (param $x i32)
(call $loadSigned
(i32.shr_s
(i32.shl
@@ -1240,15 +1240,15 @@
)
)
)
- (func $z (param $x f32)
+ (func $z (; 52 ;) (param $x f32)
(nop)
)
- (func $w (result f64)
+ (func $w (; 53 ;) (result f64)
(return
(f64.const 0)
)
)
- (func $globalOpts
+ (func $globalOpts (; 54 ;)
(local $x i32)
(local $y f64)
(set_local $x
@@ -1291,7 +1291,7 @@
(get_local $x)
)
)
- (func $dropCallImport
+ (func $dropCallImport (; 55 ;)
(if
(call $return_int)
(drop
@@ -1299,7 +1299,7 @@
)
)
)
- (func $loophi (param $x i32) (param $y i32)
+ (func $loophi (; 56 ;) (param $x i32) (param $y i32)
(local $temp i32)
(local $inc i32)
(local $loopvar i32)
@@ -1342,7 +1342,7 @@
)
)
)
- (func $loophi2 (result i32)
+ (func $loophi2 (; 57 ;) (result i32)
(local $jnc i32)
(local $i i32)
(local $i$lcssa i32)
@@ -1396,7 +1396,7 @@
(get_local $i$lcssa)
)
)
- (func $loophi2b (result i32)
+ (func $loophi2b (; 58 ;) (result i32)
(local $jnc i32)
(local $i i32)
(local $i$lcssa i32)
@@ -1450,7 +1450,7 @@
(get_local $i$lcssa)
)
)
- (func $relooperJumpThreading (param $x i32) (result i32)
+ (func $relooperJumpThreading (; 59 ;) (param $x i32) (result i32)
(local $label i32)
(if
(get_local $x)
@@ -1689,7 +1689,7 @@
(get_local $x)
)
)
- (func $relooperJumpThreading__ZN4game14preloadweaponsEv (param $$12 i32) (param $$14 i32) (param $$or$cond8 i32) (param $$or$cond6 i32) (param $$vararg_ptr5 i32) (param $$11 i32) (param $$exitcond i32)
+ (func $relooperJumpThreading__ZN4game14preloadweaponsEv (; 60 ;) (param $$12 i32) (param $$14 i32) (param $$or$cond8 i32) (param $$or$cond6 i32) (param $$vararg_ptr5 i32) (param $$11 i32) (param $$exitcond i32)
(local $label i32)
(loop $while-in
(block $while-out
@@ -1742,7 +1742,7 @@
)
)
)
- (func $relooperJumpThreading_irreducible (param $x i32)
+ (func $relooperJumpThreading_irreducible (; 61 ;) (param $x i32)
(local $label i32)
(if
(i32.eq
@@ -1813,7 +1813,7 @@
)
)
)
- (func $__Z12multi_varargiz (param $$0 i32) (param $$$06$i4 i32) (param $$exitcond$i6 i32) (param $$2 i32)
+ (func $__Z12multi_varargiz (; 62 ;) (param $$0 i32) (param $$$06$i4 i32) (param $$exitcond$i6 i32) (param $$2 i32)
(local $$12 i32)
(local $$20 i32)
(if
@@ -1840,7 +1840,7 @@
)
)
)
- (func $jumpThreadDrop (result i32)
+ (func $jumpThreadDrop (; 63 ;) (result i32)
(local $label i32)
(local $temp i32)
(set_local $temp
@@ -1882,7 +1882,7 @@
(get_local $temp)
)
)
- (func $dropIgnoredImportInIf (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $dropIgnoredImportInIf (; 64 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(block $do-once
(if
(get_local $$0)
@@ -1902,12 +1902,12 @@
)
(return)
)
- (func $big_fround (result f32)
+ (func $big_fround (; 65 ;) (result f32)
(return
(f32.const 4294967296)
)
)
- (func $dropIgnoredImportsInIf (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $dropIgnoredImportsInIf (; 66 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(block $do-once
(if
(get_local $$0)
@@ -1926,21 +1926,21 @@
)
(return)
)
- (func $f32_ucast (param $x i32) (result f32)
+ (func $f32_ucast (; 67 ;) (param $x i32) (result f32)
(return
(f32.convert_u/i32
(get_local $x)
)
)
)
- (func $f32_scast (param $x i32) (result f32)
+ (func $f32_scast (; 68 ;) (param $x i32) (result f32)
(return
(f32.convert_s/i32
(get_local $x)
)
)
)
- (func $store_fround (param $x i32)
+ (func $store_fround (; 69 ;) (param $x i32)
(f64.store
(i32.const 80)
(f64.promote/f32
@@ -1950,7 +1950,7 @@
)
)
)
- (func $relocatableAndModules (result i32)
+ (func $relocatableAndModules (; 70 ;) (result i32)
(call_indirect $FUNCSIG$v
(i32.const 10)
)
@@ -1965,12 +1965,12 @@
)
)
)
- (func $exported_f32_user (param $x i32) (param $y f32) (param $z f64) (result f32)
+ (func $exported_f32_user (; 71 ;) (param $x i32) (param $y f32) (param $z f64) (result f32)
(return
(get_local $y)
)
)
- (func $sqrts (param $x f64) (result f64)
+ (func $sqrts (; 72 ;) (param $x f64) (result f64)
(return
(f64.add
(f64.sqrt
@@ -1986,21 +1986,21 @@
)
)
)
- (func $f2u (param $x f64) (result i32)
+ (func $f2u (; 73 ;) (param $x f64) (result i32)
(return
(call $f64-to-int
(get_local $x)
)
)
)
- (func $f2s (param $x f64) (result i32)
+ (func $f2s (; 74 ;) (param $x f64) (result i32)
(return
(call $f64-to-int
(get_local $x)
)
)
)
- (func $autoDrop (param $x i32) (result i32)
+ (func $autoDrop (; 75 ;) (param $x i32) (result i32)
(loop $while-in
(block $while-out
(if
@@ -2034,7 +2034,7 @@
(get_local $x)
)
)
- (func $indirectInSequence
+ (func $indirectInSequence (; 76 ;)
(local $i1 i32)
(set_local $i1
(block (result i32)
@@ -2052,7 +2052,7 @@
)
)
)
- (func $emterpretify_assertions_safeHeap
+ (func $emterpretify_assertions_safeHeap (; 77 ;)
(local $i1 i32)
(call_indirect $FUNCSIG$vi
(get_local $i1)
@@ -2070,7 +2070,7 @@
)
)
)
- (func $call_emscripten_log
+ (func $call_emscripten_log (; 78 ;)
(call $emscripten_log)
(if
(i32.const 2)
@@ -2086,7 +2086,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 79 ;)
(drop
(call $sqrts
(f64.const 3.14159)
@@ -2116,18 +2116,18 @@
(call $emterpretify_assertions_safeHeap)
(call $call_emscripten_log)
)
- (func $v
+ (func $v (; 80 ;)
(nop)
)
- (func $vi (param $x i32)
+ (func $vi (; 81 ;) (param $x i32)
(nop)
)
- (func $ii (param $x i32) (result i32)
+ (func $ii (; 82 ;) (param $x i32) (result i32)
(return
(get_local $x)
)
)
- (func $legalstub$conversions (param $0 i32) (param $1 f64) (param $2 f64)
+ (func $legalstub$conversions (; 83 ;) (param $0 i32) (param $1 f64) (param $2 f64)
(call $conversions
(get_local $0)
(get_local $1)
@@ -2136,19 +2136,19 @@
)
)
)
- (func $legalstub$frem_float (result f64)
+ (func $legalstub$frem_float (; 84 ;) (result f64)
(f64.promote/f32
(call $frem_float)
)
)
- (func $legalstub$fr (param $0 f64)
+ (func $legalstub$fr (; 85 ;) (param $0 f64)
(call $fr
(f32.demote/f64
(get_local $0)
)
)
)
- (func $legalstub$ceiling_32_64 (param $0 f64) (param $1 f64)
+ (func $legalstub$ceiling_32_64 (; 86 ;) (param $0 f64) (param $1 f64)
(call $ceiling_32_64
(f32.demote/f64
(get_local $0)
@@ -2156,7 +2156,7 @@
(get_local $1)
)
)
- (func $legalstub$bitcasts (param $0 i32) (param $1 f64)
+ (func $legalstub$bitcasts (; 87 ;) (param $0 i32) (param $1 f64)
(call $bitcasts
(get_local $0)
(f32.demote/f64
@@ -2164,7 +2164,7 @@
)
)
)
- (func $legalstub$exported_f32_user (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
+ (func $legalstub$exported_f32_user (; 88 ;) (param $0 i32) (param $1 f64) (param $2 f64) (result f64)
(f64.promote/f32
(call $exported_f32_user
(get_local $0)
diff --git a/test/unit.wast.from-wast b/test/unit.wast.from-wast
index 721b6c3d2..8cc89255c 100644
--- a/test/unit.wast.from-wast
+++ b/test/unit.wast.from-wast
@@ -17,7 +17,7 @@
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
(export "big_negative" (func $big_negative))
- (func $big_negative (type $FUNCSIG$v)
+ (func $big_negative (; 3 ;) (type $FUNCSIG$v)
(local $temp f64)
(block $block0
(set_local $temp
@@ -37,7 +37,7 @@
)
)
)
- (func $importedDoubles (type $4) (result f64)
+ (func $importedDoubles (; 4 ;) (type $4) (result f64)
(local $temp f64)
(block $topmost (result f64)
(set_local $temp
@@ -89,7 +89,7 @@
(f64.const 1.2)
)
)
- (func $doubleCompares (type $FUNCSIG$ddd) (param $x f64) (param $y f64) (result f64)
+ (func $doubleCompares (; 5 ;) (type $FUNCSIG$ddd) (param $x f64) (param $y f64) (result f64)
(local $t f64)
(local $Int f64)
(local $Double i32)
@@ -133,14 +133,14 @@
(get_local $y)
)
)
- (func $intOps (type $5) (result i32)
+ (func $intOps (; 6 ;) (type $5) (result i32)
(local $x i32)
(i32.eq
(get_local $x)
(i32.const 0)
)
)
- (func $hexLiterals (type $FUNCSIG$v)
+ (func $hexLiterals (; 7 ;) (type $FUNCSIG$v)
(drop
(i32.add
(i32.add
@@ -151,7 +151,7 @@
)
)
)
- (func $conversions (type $FUNCSIG$v)
+ (func $conversions (; 8 ;) (type $FUNCSIG$v)
(local $i i32)
(local $d f64)
(block $block0
@@ -175,7 +175,7 @@
)
)
)
- (func $seq (type $FUNCSIG$v)
+ (func $seq (; 9 ;) (type $FUNCSIG$v)
(local $J f64)
(set_local $J
(f64.sub
@@ -194,7 +194,7 @@
)
)
)
- (func $switcher (type $6) (param $x i32) (result i32)
+ (func $switcher (; 10 ;) (type $6) (param $x i32) (result i32)
(block $topmost (result i32)
(block $switch$0
(block $switch-default$3
@@ -280,18 +280,18 @@
(i32.const 0)
)
)
- (func $blocker (type $FUNCSIG$v)
+ (func $blocker (; 11 ;) (type $FUNCSIG$v)
(block $label$break$L
(br $label$break$L)
)
)
- (func $frem (type $4) (result f64)
+ (func $frem (; 12 ;) (type $4) (result f64)
(call $f64-rem
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $big_uint_div_u (type $5) (result i32)
+ (func $big_uint_div_u (; 13 ;) (type $5) (result i32)
(local $x i32)
(block $topmost (result i32)
(set_local $x
@@ -306,7 +306,7 @@
(get_local $x)
)
)
- (func $fr (type $FUNCSIG$vf) (param $x f32)
+ (func $fr (; 14 ;) (type $FUNCSIG$vf) (param $x f32)
(local $y f32)
(local $z f64)
(block $block0
@@ -332,10 +332,10 @@
)
)
)
- (func $negZero (type $4) (result f64)
+ (func $negZero (; 15 ;) (type $4) (result f64)
(f64.const -0)
)
- (func $abs (type $FUNCSIG$v)
+ (func $abs (; 16 ;) (type $FUNCSIG$v)
(local $x i32)
(local $y f64)
(local $z f32)
@@ -371,7 +371,7 @@
)
)
)
- (func $neg (type $FUNCSIG$v)
+ (func $neg (; 17 ;) (type $FUNCSIG$v)
(local $x f32)
(block $block0
(set_local $x
@@ -391,7 +391,7 @@
)
)
)
- (func $cneg (type $FUNCSIG$vf) (param $x f32)
+ (func $cneg (; 18 ;) (type $FUNCSIG$vf) (param $x f32)
(call_indirect $FUNCSIG$vf
(get_local $x)
(i32.add
@@ -403,7 +403,7 @@
)
)
)
- (func $___syscall_ret (type $FUNCSIG$v)
+ (func $___syscall_ret (; 19 ;) (type $FUNCSIG$v)
(local $$0 i32)
(drop
(i32.gt_u
@@ -415,13 +415,13 @@
)
)
)
- (func $z (type $FUNCSIG$v)
+ (func $z (; 20 ;) (type $FUNCSIG$v)
(nop)
)
- (func $w (type $FUNCSIG$v)
+ (func $w (; 21 ;) (type $FUNCSIG$v)
(nop)
)
- (func $block_and_after (type $5) (result i32)
+ (func $block_and_after (; 22 ;) (type $5) (result i32)
(block $waka
(drop
(i32.const 1)
@@ -430,7 +430,7 @@
)
(i32.const 0)
)
- (func $loop-roundtrip (type $7) (param $0 f64) (result f64)
+ (func $loop-roundtrip (; 23 ;) (type $7) (param $0 f64) (result f64)
(loop $loop-in1 (result f64)
(drop
(get_local $0)
@@ -438,21 +438,21 @@
(get_local $0)
)
)
- (func $big-i64 (type $8) (result i64)
+ (func $big-i64 (; 24 ;) (type $8) (result i64)
(i64.const -9218868437227405313)
)
- (func $i64-store32 (type $9) (param $0 i32) (param $1 i64)
+ (func $i64-store32 (; 25 ;) (type $9) (param $0 i32) (param $1 i64)
(i64.store32
(get_local $0)
(get_local $1)
)
)
- (func $return-unreachable (type $5) (result i32)
+ (func $return-unreachable (; 26 ;) (type $5) (result i32)
(return
(i32.const 1)
)
)
- (func $unreachable-block (type $5) (result i32)
+ (func $unreachable-block (; 27 ;) (type $5) (result i32)
(f64.abs
(block $block
(drop
@@ -464,7 +464,7 @@
)
)
)
- (func $unreachable-block-toplevel (type $5) (result i32)
+ (func $unreachable-block-toplevel (; 28 ;) (type $5) (result i32)
(block $block
(drop
(i32.const 1)
@@ -474,7 +474,7 @@
)
)
)
- (func $unreachable-block0 (type $5) (result i32)
+ (func $unreachable-block0 (; 29 ;) (type $5) (result i32)
(f64.abs
(block $block
(return
@@ -483,14 +483,14 @@
)
)
)
- (func $unreachable-block0-toplevel (type $5) (result i32)
+ (func $unreachable-block0-toplevel (; 30 ;) (type $5) (result i32)
(block $block
(return
(i32.const 2)
)
)
)
- (func $unreachable-block-with-br (type $5) (result i32)
+ (func $unreachable-block-with-br (; 31 ;) (type $5) (result i32)
(block $block
(drop
(i32.const 1)
@@ -499,7 +499,7 @@
)
(i32.const 1)
)
- (func $unreachable-if (type $5) (result i32)
+ (func $unreachable-if (; 32 ;) (type $5) (result i32)
(f64.abs
(if
(i32.const 3)
@@ -512,7 +512,7 @@
)
)
)
- (func $unreachable-if-toplevel (type $5) (result i32)
+ (func $unreachable-if-toplevel (; 33 ;) (type $5) (result i32)
(if
(i32.const 3)
(return
@@ -523,7 +523,7 @@
)
)
)
- (func $unreachable-loop (type $5) (result i32)
+ (func $unreachable-loop (; 34 ;) (type $5) (result i32)
(f64.abs
(loop $loop-in
(nop)
@@ -533,7 +533,7 @@
)
)
)
- (func $unreachable-loop0 (type $5) (result i32)
+ (func $unreachable-loop0 (; 35 ;) (type $5) (result i32)
(f64.abs
(loop $loop-in
(return
@@ -542,7 +542,7 @@
)
)
)
- (func $unreachable-loop-toplevel (type $5) (result i32)
+ (func $unreachable-loop-toplevel (; 36 ;) (type $5) (result i32)
(loop $loop-in
(nop)
(return
@@ -550,14 +550,14 @@
)
)
)
- (func $unreachable-loop0-toplevel (type $5) (result i32)
+ (func $unreachable-loop0-toplevel (; 37 ;) (type $5) (result i32)
(loop $loop-in
(return
(i32.const 1)
)
)
)
- (func $unreachable-ifs (type $FUNCSIG$v)
+ (func $unreachable-ifs (; 38 ;) (type $FUNCSIG$v)
(if
(unreachable)
(nop)
@@ -602,7 +602,7 @@
(unreachable)
)
)
- (func $unreachable-if-arm (type $FUNCSIG$v)
+ (func $unreachable-if-arm (; 39 ;) (type $FUNCSIG$v)
(if
(i32.const 1)
(block $block
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary
index f4e9f88b9..6a902f38c 100644
--- a/test/unit.wast.fromBinary
+++ b/test/unit.wast.fromBinary
@@ -17,7 +17,7 @@
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
(export "big_negative" (func $big_negative))
- (func $big_negative (type $1)
+ (func $big_negative (; 3 ;) (type $1)
(local $var$0 f64)
(set_local $var$0
(f64.const -2147483648)
@@ -35,7 +35,7 @@
(f64.const -0.039625)
)
)
- (func $importedDoubles (type $4) (result f64)
+ (func $importedDoubles (; 4 ;) (type $4) (result f64)
(local $var$0 f64)
(block $label$1 (result f64)
(set_local $var$0
@@ -87,7 +87,7 @@
(f64.const 1.2)
)
)
- (func $doubleCompares (type $3) (param $var$0 f64) (param $var$1 f64) (result f64)
+ (func $doubleCompares (; 5 ;) (type $3) (param $var$0 f64) (param $var$1 f64) (result f64)
(local $var$2 i32)
(local $var$3 f64)
(local $var$4 f64)
@@ -131,14 +131,14 @@
(get_local $var$1)
)
)
- (func $intOps (type $5) (result i32)
+ (func $intOps (; 6 ;) (type $5) (result i32)
(local $var$0 i32)
(i32.eq
(get_local $var$0)
(i32.const 0)
)
)
- (func $hexLiterals (type $1)
+ (func $hexLiterals (; 7 ;) (type $1)
(drop
(i32.add
(i32.add
@@ -149,7 +149,7 @@
)
)
)
- (func $conversions (type $1)
+ (func $conversions (; 8 ;) (type $1)
(local $var$0 i32)
(local $var$1 f64)
(set_local $var$0
@@ -171,7 +171,7 @@
)
)
)
- (func $seq (type $1)
+ (func $seq (; 9 ;) (type $1)
(local $var$0 f64)
(set_local $var$0
(f64.sub
@@ -190,7 +190,7 @@
)
)
)
- (func $switcher (type $6) (param $var$0 i32) (result i32)
+ (func $switcher (; 10 ;) (type $6) (param $var$0 i32) (result i32)
(block $label$1 (result i32)
(block $label$2
(block $label$3
@@ -268,18 +268,18 @@
(i32.const 0)
)
)
- (func $blocker (type $1)
+ (func $blocker (; 11 ;) (type $1)
(block $label$1
(br $label$1)
)
)
- (func $frem (type $4) (result f64)
+ (func $frem (; 12 ;) (type $4) (result f64)
(call $import$2
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $big_uint_div_u (type $5) (result i32)
+ (func $big_uint_div_u (; 13 ;) (type $5) (result i32)
(local $var$0 i32)
(set_local $var$0
(i32.and
@@ -292,7 +292,7 @@
)
(get_local $var$0)
)
- (func $fr (type $0) (param $var$0 f32)
+ (func $fr (; 14 ;) (type $0) (param $var$0 f32)
(local $var$1 f32)
(local $var$2 f64)
(drop
@@ -316,10 +316,10 @@
(f32.const 0)
)
)
- (func $negZero (type $4) (result f64)
+ (func $negZero (; 15 ;) (type $4) (result f64)
(f64.const -0)
)
- (func $abs (type $1)
+ (func $abs (; 16 ;) (type $1)
(local $var$0 i32)
(local $var$1 i32)
(local $var$2 f32)
@@ -353,7 +353,7 @@
)
)
)
- (func $neg (type $1)
+ (func $neg (; 17 ;) (type $1)
(local $var$0 f32)
(set_local $var$0
(f32.neg
@@ -371,7 +371,7 @@
)
)
)
- (func $cneg (type $0) (param $var$0 f32)
+ (func $cneg (; 18 ;) (type $0) (param $var$0 f32)
(call_indirect $0
(get_local $var$0)
(i32.add
@@ -383,7 +383,7 @@
)
)
)
- (func $___syscall_ret (type $1)
+ (func $___syscall_ret (; 19 ;) (type $1)
(local $var$0 i32)
(drop
(i32.gt_u
@@ -395,13 +395,13 @@
)
)
)
- (func $z (type $1)
+ (func $z (; 20 ;) (type $1)
(nop)
)
- (func $w (type $1)
+ (func $w (; 21 ;) (type $1)
(nop)
)
- (func $block_and_after (type $5) (result i32)
+ (func $block_and_after (; 22 ;) (type $5) (result i32)
(block $label$1
(drop
(i32.const 1)
@@ -410,7 +410,7 @@
)
(i32.const 0)
)
- (func $loop-roundtrip (type $7) (param $var$0 f64) (result f64)
+ (func $loop-roundtrip (; 23 ;) (type $7) (param $var$0 f64) (result f64)
(loop $label$1 (result f64)
(drop
(get_local $var$0)
@@ -418,21 +418,21 @@
(get_local $var$0)
)
)
- (func $big-i64 (type $8) (result i64)
+ (func $big-i64 (; 24 ;) (type $8) (result i64)
(i64.const -9218868437227405313)
)
- (func $i64-store32 (type $9) (param $var$0 i32) (param $var$1 i64)
+ (func $i64-store32 (; 25 ;) (type $9) (param $var$0 i32) (param $var$1 i64)
(i64.store32
(get_local $var$0)
(get_local $var$1)
)
)
- (func $return-unreachable (type $5) (result i32)
+ (func $return-unreachable (; 26 ;) (type $5) (result i32)
(return
(i32.const 1)
)
)
- (func $unreachable-block (type $5) (result i32)
+ (func $unreachable-block (; 27 ;) (type $5) (result i32)
(block $label$1
(drop
(i32.const 1)
@@ -442,7 +442,7 @@
)
)
)
- (func $unreachable-block-toplevel (type $5) (result i32)
+ (func $unreachable-block-toplevel (; 28 ;) (type $5) (result i32)
(drop
(i32.const 1)
)
@@ -450,19 +450,19 @@
(i32.const 2)
)
)
- (func $unreachable-block0 (type $5) (result i32)
+ (func $unreachable-block0 (; 29 ;) (type $5) (result i32)
(block $label$1
(return
(i32.const 2)
)
)
)
- (func $unreachable-block0-toplevel (type $5) (result i32)
+ (func $unreachable-block0-toplevel (; 30 ;) (type $5) (result i32)
(return
(i32.const 2)
)
)
- (func $unreachable-block-with-br (type $5) (result i32)
+ (func $unreachable-block-with-br (; 31 ;) (type $5) (result i32)
(block $label$1
(drop
(i32.const 1)
@@ -471,7 +471,7 @@
)
(i32.const 1)
)
- (func $unreachable-if (type $5) (result i32)
+ (func $unreachable-if (; 32 ;) (type $5) (result i32)
(if
(i32.const 3)
(return
@@ -482,7 +482,7 @@
)
)
)
- (func $unreachable-if-toplevel (type $5) (result i32)
+ (func $unreachable-if-toplevel (; 33 ;) (type $5) (result i32)
(if
(i32.const 3)
(return
@@ -493,7 +493,7 @@
)
)
)
- (func $unreachable-loop (type $5) (result i32)
+ (func $unreachable-loop (; 34 ;) (type $5) (result i32)
(loop $label$1
(nop)
(return
@@ -501,14 +501,14 @@
)
)
)
- (func $unreachable-loop0 (type $5) (result i32)
+ (func $unreachable-loop0 (; 35 ;) (type $5) (result i32)
(loop $label$1
(return
(i32.const 1)
)
)
)
- (func $unreachable-loop-toplevel (type $5) (result i32)
+ (func $unreachable-loop-toplevel (; 36 ;) (type $5) (result i32)
(loop $label$1
(nop)
(return
@@ -516,17 +516,17 @@
)
)
)
- (func $unreachable-loop0-toplevel (type $5) (result i32)
+ (func $unreachable-loop0-toplevel (; 37 ;) (type $5) (result i32)
(loop $label$1
(return
(i32.const 1)
)
)
)
- (func $unreachable-ifs (type $1)
+ (func $unreachable-ifs (; 38 ;) (type $1)
(unreachable)
)
- (func $unreachable-if-arm (type $1)
+ (func $unreachable-if-arm (; 39 ;) (type $1)
(if
(i32.const 1)
(nop)
diff --git a/test/unit.wast.fromBinary.noDebugInfo b/test/unit.wast.fromBinary.noDebugInfo
index 2a07740b4..ceb7bf8ce 100644
--- a/test/unit.wast.fromBinary.noDebugInfo
+++ b/test/unit.wast.fromBinary.noDebugInfo
@@ -17,7 +17,7 @@
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
(export "big_negative" (func $0))
- (func $0 (type $1)
+ (func $0 (; 3 ;) (type $1)
(local $var$0 f64)
(set_local $var$0
(f64.const -2147483648)
@@ -35,7 +35,7 @@
(f64.const -0.039625)
)
)
- (func $1 (type $4) (result f64)
+ (func $1 (; 4 ;) (type $4) (result f64)
(local $var$0 f64)
(block $label$1 (result f64)
(set_local $var$0
@@ -87,7 +87,7 @@
(f64.const 1.2)
)
)
- (func $2 (type $3) (param $var$0 f64) (param $var$1 f64) (result f64)
+ (func $2 (; 5 ;) (type $3) (param $var$0 f64) (param $var$1 f64) (result f64)
(local $var$2 i32)
(local $var$3 f64)
(local $var$4 f64)
@@ -131,14 +131,14 @@
(get_local $var$1)
)
)
- (func $3 (type $5) (result i32)
+ (func $3 (; 6 ;) (type $5) (result i32)
(local $var$0 i32)
(i32.eq
(get_local $var$0)
(i32.const 0)
)
)
- (func $4 (type $1)
+ (func $4 (; 7 ;) (type $1)
(drop
(i32.add
(i32.add
@@ -149,7 +149,7 @@
)
)
)
- (func $5 (type $1)
+ (func $5 (; 8 ;) (type $1)
(local $var$0 i32)
(local $var$1 f64)
(set_local $var$0
@@ -171,7 +171,7 @@
)
)
)
- (func $6 (type $1)
+ (func $6 (; 9 ;) (type $1)
(local $var$0 f64)
(set_local $var$0
(f64.sub
@@ -190,7 +190,7 @@
)
)
)
- (func $7 (type $6) (param $var$0 i32) (result i32)
+ (func $7 (; 10 ;) (type $6) (param $var$0 i32) (result i32)
(block $label$1 (result i32)
(block $label$2
(block $label$3
@@ -268,18 +268,18 @@
(i32.const 0)
)
)
- (func $8 (type $1)
+ (func $8 (; 11 ;) (type $1)
(block $label$1
(br $label$1)
)
)
- (func $9 (type $4) (result f64)
+ (func $9 (; 12 ;) (type $4) (result f64)
(call $import$2
(f64.const 5.5)
(f64.const 1.2)
)
)
- (func $10 (type $5) (result i32)
+ (func $10 (; 13 ;) (type $5) (result i32)
(local $var$0 i32)
(set_local $var$0
(i32.and
@@ -292,7 +292,7 @@
)
(get_local $var$0)
)
- (func $11 (type $0) (param $var$0 f32)
+ (func $11 (; 14 ;) (type $0) (param $var$0 f32)
(local $var$1 f32)
(local $var$2 f64)
(drop
@@ -316,10 +316,10 @@
(f32.const 0)
)
)
- (func $12 (type $4) (result f64)
+ (func $12 (; 15 ;) (type $4) (result f64)
(f64.const -0)
)
- (func $13 (type $1)
+ (func $13 (; 16 ;) (type $1)
(local $var$0 i32)
(local $var$1 i32)
(local $var$2 f32)
@@ -353,7 +353,7 @@
)
)
)
- (func $14 (type $1)
+ (func $14 (; 17 ;) (type $1)
(local $var$0 f32)
(set_local $var$0
(f32.neg
@@ -371,7 +371,7 @@
)
)
)
- (func $15 (type $0) (param $var$0 f32)
+ (func $15 (; 18 ;) (type $0) (param $var$0 f32)
(call_indirect $0
(get_local $var$0)
(i32.add
@@ -383,7 +383,7 @@
)
)
)
- (func $16 (type $1)
+ (func $16 (; 19 ;) (type $1)
(local $var$0 i32)
(drop
(i32.gt_u
@@ -395,13 +395,13 @@
)
)
)
- (func $17 (type $1)
+ (func $17 (; 20 ;) (type $1)
(nop)
)
- (func $18 (type $1)
+ (func $18 (; 21 ;) (type $1)
(nop)
)
- (func $19 (type $5) (result i32)
+ (func $19 (; 22 ;) (type $5) (result i32)
(block $label$1
(drop
(i32.const 1)
@@ -410,7 +410,7 @@
)
(i32.const 0)
)
- (func $20 (type $7) (param $var$0 f64) (result f64)
+ (func $20 (; 23 ;) (type $7) (param $var$0 f64) (result f64)
(loop $label$1 (result f64)
(drop
(get_local $var$0)
@@ -418,21 +418,21 @@
(get_local $var$0)
)
)
- (func $21 (type $8) (result i64)
+ (func $21 (; 24 ;) (type $8) (result i64)
(i64.const -9218868437227405313)
)
- (func $22 (type $9) (param $var$0 i32) (param $var$1 i64)
+ (func $22 (; 25 ;) (type $9) (param $var$0 i32) (param $var$1 i64)
(i64.store32
(get_local $var$0)
(get_local $var$1)
)
)
- (func $23 (type $5) (result i32)
+ (func $23 (; 26 ;) (type $5) (result i32)
(return
(i32.const 1)
)
)
- (func $24 (type $5) (result i32)
+ (func $24 (; 27 ;) (type $5) (result i32)
(block $label$1
(drop
(i32.const 1)
@@ -442,7 +442,7 @@
)
)
)
- (func $25 (type $5) (result i32)
+ (func $25 (; 28 ;) (type $5) (result i32)
(drop
(i32.const 1)
)
@@ -450,19 +450,19 @@
(i32.const 2)
)
)
- (func $26 (type $5) (result i32)
+ (func $26 (; 29 ;) (type $5) (result i32)
(block $label$1
(return
(i32.const 2)
)
)
)
- (func $27 (type $5) (result i32)
+ (func $27 (; 30 ;) (type $5) (result i32)
(return
(i32.const 2)
)
)
- (func $28 (type $5) (result i32)
+ (func $28 (; 31 ;) (type $5) (result i32)
(block $label$1
(drop
(i32.const 1)
@@ -471,7 +471,7 @@
)
(i32.const 1)
)
- (func $29 (type $5) (result i32)
+ (func $29 (; 32 ;) (type $5) (result i32)
(if
(i32.const 3)
(return
@@ -482,7 +482,7 @@
)
)
)
- (func $30 (type $5) (result i32)
+ (func $30 (; 33 ;) (type $5) (result i32)
(if
(i32.const 3)
(return
@@ -493,7 +493,7 @@
)
)
)
- (func $31 (type $5) (result i32)
+ (func $31 (; 34 ;) (type $5) (result i32)
(loop $label$1
(nop)
(return
@@ -501,14 +501,14 @@
)
)
)
- (func $32 (type $5) (result i32)
+ (func $32 (; 35 ;) (type $5) (result i32)
(loop $label$1
(return
(i32.const 1)
)
)
)
- (func $33 (type $5) (result i32)
+ (func $33 (; 36 ;) (type $5) (result i32)
(loop $label$1
(nop)
(return
@@ -516,17 +516,17 @@
)
)
)
- (func $34 (type $5) (result i32)
+ (func $34 (; 37 ;) (type $5) (result i32)
(loop $label$1
(return
(i32.const 1)
)
)
)
- (func $35 (type $1)
+ (func $35 (; 38 ;) (type $1)
(unreachable)
)
- (func $36 (type $1)
+ (func $36 (; 39 ;) (type $1)
(if
(i32.const 1)
(nop)
diff --git a/test/unreachable-code.wast.from-wast b/test/unreachable-code.wast.from-wast
index 2196056b3..a5488458d 100644
--- a/test/unreachable-code.wast.from-wast
+++ b/test/unreachable-code.wast.from-wast
@@ -1,20 +1,20 @@
(module
(type $0 (func))
(memory $0 0)
- (func $a (type $0)
+ (func $a (; 0 ;) (type $0)
(if
(i32.const 1)
(unreachable)
)
)
- (func $b (type $0)
+ (func $b (; 1 ;) (type $0)
(if
(i32.const 1)
(unreachable)
(unreachable)
)
)
- (func $a-block (type $0)
+ (func $a-block (; 2 ;) (type $0)
(block $block
(if
(i32.const 1)
@@ -22,7 +22,7 @@
)
)
)
- (func $b-block (type $0)
+ (func $b-block (; 3 ;) (type $0)
(block $block
(if
(i32.const 1)
@@ -31,7 +31,7 @@
)
)
)
- (func $a-prepost (type $0)
+ (func $a-prepost (; 4 ;) (type $0)
(nop)
(if
(i32.const 1)
@@ -39,7 +39,7 @@
)
(nop)
)
- (func $b-prepost (type $0)
+ (func $b-prepost (; 5 ;) (type $0)
(nop)
(if
(i32.const 1)
@@ -48,7 +48,7 @@
)
(nop)
)
- (func $a-block-prepost (type $0)
+ (func $a-block-prepost (; 6 ;) (type $0)
(nop)
(block $block
(if
@@ -58,7 +58,7 @@
)
(nop)
)
- (func $b-block-prepost (type $0)
+ (func $b-block-prepost (; 7 ;) (type $0)
(nop)
(block $block
(if
@@ -69,7 +69,7 @@
)
(nop)
)
- (func $recurse (type $0)
+ (func $recurse (; 8 ;) (type $0)
(block $a
(nop)
(block $b
@@ -80,7 +80,7 @@
(nop)
)
)
- (func $recurse-b (type $0)
+ (func $recurse-b (; 9 ;) (type $0)
(block $a
(nop)
(block $b
diff --git a/test/unreachable-code.wast.fromBinary b/test/unreachable-code.wast.fromBinary
index e9489293e..d0c0f06d7 100644
--- a/test/unreachable-code.wast.fromBinary
+++ b/test/unreachable-code.wast.fromBinary
@@ -1,33 +1,33 @@
(module
(type $0 (func))
(memory $0 0)
- (func $a (type $0)
+ (func $a (; 0 ;) (type $0)
(if
(i32.const 1)
(unreachable)
)
)
- (func $b (type $0)
+ (func $b (; 1 ;) (type $0)
(if
(i32.const 1)
(unreachable)
(unreachable)
)
)
- (func $a-block (type $0)
+ (func $a-block (; 2 ;) (type $0)
(if
(i32.const 1)
(unreachable)
)
)
- (func $b-block (type $0)
+ (func $b-block (; 3 ;) (type $0)
(if
(i32.const 1)
(unreachable)
(unreachable)
)
)
- (func $a-prepost (type $0)
+ (func $a-prepost (; 4 ;) (type $0)
(nop)
(if
(i32.const 1)
@@ -35,7 +35,7 @@
)
(nop)
)
- (func $b-prepost (type $0)
+ (func $b-prepost (; 5 ;) (type $0)
(nop)
(if
(i32.const 1)
@@ -43,7 +43,7 @@
(unreachable)
)
)
- (func $a-block-prepost (type $0)
+ (func $a-block-prepost (; 6 ;) (type $0)
(nop)
(block $label$1
(if
@@ -53,7 +53,7 @@
)
(nop)
)
- (func $b-block-prepost (type $0)
+ (func $b-block-prepost (; 7 ;) (type $0)
(nop)
(block $label$1
(if
@@ -63,7 +63,7 @@
)
)
)
- (func $recurse (type $0)
+ (func $recurse (; 8 ;) (type $0)
(nop)
(block $label$1
(nop)
@@ -71,7 +71,7 @@
)
(nop)
)
- (func $recurse-b (type $0)
+ (func $recurse-b (; 9 ;) (type $0)
(block $label$1
(nop)
(block $label$2
diff --git a/test/unreachable-code.wast.fromBinary.noDebugInfo b/test/unreachable-code.wast.fromBinary.noDebugInfo
index f6c06972e..24e4e9222 100644
--- a/test/unreachable-code.wast.fromBinary.noDebugInfo
+++ b/test/unreachable-code.wast.fromBinary.noDebugInfo
@@ -1,33 +1,33 @@
(module
(type $0 (func))
(memory $0 0)
- (func $0 (type $0)
+ (func $0 (; 0 ;) (type $0)
(if
(i32.const 1)
(unreachable)
)
)
- (func $1 (type $0)
+ (func $1 (; 1 ;) (type $0)
(if
(i32.const 1)
(unreachable)
(unreachable)
)
)
- (func $2 (type $0)
+ (func $2 (; 2 ;) (type $0)
(if
(i32.const 1)
(unreachable)
)
)
- (func $3 (type $0)
+ (func $3 (; 3 ;) (type $0)
(if
(i32.const 1)
(unreachable)
(unreachable)
)
)
- (func $4 (type $0)
+ (func $4 (; 4 ;) (type $0)
(nop)
(if
(i32.const 1)
@@ -35,7 +35,7 @@
)
(nop)
)
- (func $5 (type $0)
+ (func $5 (; 5 ;) (type $0)
(nop)
(if
(i32.const 1)
@@ -43,7 +43,7 @@
(unreachable)
)
)
- (func $6 (type $0)
+ (func $6 (; 6 ;) (type $0)
(nop)
(block $label$1
(if
@@ -53,7 +53,7 @@
)
(nop)
)
- (func $7 (type $0)
+ (func $7 (; 7 ;) (type $0)
(nop)
(block $label$1
(if
@@ -63,7 +63,7 @@
)
)
)
- (func $8 (type $0)
+ (func $8 (; 8 ;) (type $0)
(nop)
(block $label$1
(nop)
@@ -71,7 +71,7 @@
)
(nop)
)
- (func $9 (type $0)
+ (func $9 (; 9 ;) (type $0)
(block $label$1
(nop)
(block $label$2
diff --git a/test/unreachable-import_wasm-only.fromasm b/test/unreachable-import_wasm-only.fromasm
index b63989188..18c4c4021 100644
--- a/test/unreachable-import_wasm-only.fromasm
+++ b/test/unreachable-import_wasm-only.fromasm
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "unreachable-import_wasm-only.asm.js")
(export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
- (func $__ZN10WasmAssertC2Ev__async_cb (param $0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 0 ;) (param $0 i32)
(i32.store
(i32.const 12)
(i32.const 26)
diff --git a/test/unreachable-import_wasm-only.fromasm.clamp b/test/unreachable-import_wasm-only.fromasm.clamp
index b63989188..18c4c4021 100644
--- a/test/unreachable-import_wasm-only.fromasm.clamp
+++ b/test/unreachable-import_wasm-only.fromasm.clamp
@@ -5,7 +5,7 @@
(import "env" "tableBase" (global $tableBase i32))
(data (get_global $memoryBase) "unreachable-import_wasm-only.asm.js")
(export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
- (func $__ZN10WasmAssertC2Ev__async_cb (param $0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 0 ;) (param $0 i32)
(i32.store
(i32.const 12)
(i32.const 26)
diff --git a/test/unreachable-import_wasm-only.fromasm.clamp.no-opts b/test/unreachable-import_wasm-only.fromasm.clamp.no-opts
index af8c60715..3160ad370 100644
--- a/test/unreachable-import_wasm-only.fromasm.clamp.no-opts
+++ b/test/unreachable-import_wasm-only.fromasm.clamp.no-opts
@@ -46,7 +46,7 @@
(global $tempFloat (mut f32) (f32.const 0))
(global $f0 (mut f32) (f32.const 0))
(export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
- (func $__ZN10WasmAssertC2Ev__async_cb (param $$0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 2 ;) (param $$0 i32)
(block $switch
(block $switch-default
(block $switch-case
diff --git a/test/unreachable-import_wasm-only.fromasm.imprecise b/test/unreachable-import_wasm-only.fromasm.imprecise
index 208c4435e..daa064b34 100644
--- a/test/unreachable-import_wasm-only.fromasm.imprecise
+++ b/test/unreachable-import_wasm-only.fromasm.imprecise
@@ -4,7 +4,7 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
- (func $__ZN10WasmAssertC2Ev__async_cb (param $0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 0 ;) (param $0 i32)
(i32.store
(i32.const 12)
(i32.const 26)
diff --git a/test/unreachable-import_wasm-only.fromasm.imprecise.no-opts b/test/unreachable-import_wasm-only.fromasm.imprecise.no-opts
index af8c60715..3160ad370 100644
--- a/test/unreachable-import_wasm-only.fromasm.imprecise.no-opts
+++ b/test/unreachable-import_wasm-only.fromasm.imprecise.no-opts
@@ -46,7 +46,7 @@
(global $tempFloat (mut f32) (f32.const 0))
(global $f0 (mut f32) (f32.const 0))
(export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
- (func $__ZN10WasmAssertC2Ev__async_cb (param $$0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 2 ;) (param $$0 i32)
(block $switch
(block $switch-default
(block $switch-case
diff --git a/test/unreachable-import_wasm-only.fromasm.no-opts b/test/unreachable-import_wasm-only.fromasm.no-opts
index af8c60715..3160ad370 100644
--- a/test/unreachable-import_wasm-only.fromasm.no-opts
+++ b/test/unreachable-import_wasm-only.fromasm.no-opts
@@ -46,7 +46,7 @@
(global $tempFloat (mut f32) (f32.const 0))
(global $f0 (mut f32) (f32.const 0))
(export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
- (func $__ZN10WasmAssertC2Ev__async_cb (param $$0 i32)
+ (func $__ZN10WasmAssertC2Ev__async_cb (; 2 ;) (param $$0 i32)
(block $switch
(block $switch-default
(block $switch-case
diff --git a/test/unreachable-pops.wasm.fromBinary b/test/unreachable-pops.wasm.fromBinary
index 3f3c51b13..fa92d3e22 100644
--- a/test/unreachable-pops.wasm.fromBinary
+++ b/test/unreachable-pops.wasm.fromBinary
@@ -1,7 +1,7 @@
(module
(type $0 (func (result i32)))
(memory $0 0)
- (func $0 (type $0) (result i32)
+ (func $0 (; 0 ;) (type $0) (result i32)
(block $label$1 (result i32)
(unreachable)
)
diff --git a/test/untaken-br_if.wast.from-wast b/test/untaken-br_if.wast.from-wast
index 86ce53f41..2fd435aa2 100644
--- a/test/untaken-br_if.wast.from-wast
+++ b/test/untaken-br_if.wast.from-wast
@@ -1,7 +1,7 @@
(module
(type $0 (func (result f32)))
(memory $0 0)
- (func $binaryify-untaken-br_if (type $0) (result f32)
+ (func $binaryify-untaken-br_if (; 0 ;) (type $0) (result f32)
(if (result f32)
(i32.const 1)
(unreachable)
diff --git a/test/untaken-br_if.wast.fromBinary b/test/untaken-br_if.wast.fromBinary
index 7a6a4a714..80fa5c66e 100644
--- a/test/untaken-br_if.wast.fromBinary
+++ b/test/untaken-br_if.wast.fromBinary
@@ -1,7 +1,7 @@
(module
(type $0 (func (result f32)))
(memory $0 0)
- (func $binaryify-untaken-br_if (type $0) (result f32)
+ (func $binaryify-untaken-br_if (; 0 ;) (type $0) (result f32)
(if (result f32)
(i32.const 1)
(unreachable)
diff --git a/test/untaken-br_if.wast.fromBinary.noDebugInfo b/test/untaken-br_if.wast.fromBinary.noDebugInfo
index 94da1d4e7..32f6b25d0 100644
--- a/test/untaken-br_if.wast.fromBinary.noDebugInfo
+++ b/test/untaken-br_if.wast.fromBinary.noDebugInfo
@@ -1,7 +1,7 @@
(module
(type $0 (func (result f32)))
(memory $0 0)
- (func $0 (type $0) (result f32)
+ (func $0 (; 0 ;) (type $0) (result f32)
(if (result f32)
(i32.const 1)
(unreachable)
diff --git a/test/use-import-and-drop.fromasm.clamp.no-opts b/test/use-import-and-drop.fromasm.clamp.no-opts
index 5ce22091a..debcadf00 100644
--- a/test/use-import-and-drop.fromasm.clamp.no-opts
+++ b/test/use-import-and-drop.fromasm.clamp.no-opts
@@ -5,7 +5,7 @@
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
- (func $test1 (result i32)
+ (func $test1 (; 1 ;) (result i32)
(local $$b$1 i32)
(local $$x_sroa_0_0_extract_trunc i32)
(local $$2 i32)
@@ -41,7 +41,7 @@
)
)
)
- (func $test2
+ (func $test2 (; 2 ;)
(call $setTempRet0
(i32.const 10)
)
diff --git a/test/use-import-and-drop.fromasm.imprecise.no-opts b/test/use-import-and-drop.fromasm.imprecise.no-opts
index 5ce22091a..debcadf00 100644
--- a/test/use-import-and-drop.fromasm.imprecise.no-opts
+++ b/test/use-import-and-drop.fromasm.imprecise.no-opts
@@ -5,7 +5,7 @@
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
- (func $test1 (result i32)
+ (func $test1 (; 1 ;) (result i32)
(local $$b$1 i32)
(local $$x_sroa_0_0_extract_trunc i32)
(local $$2 i32)
@@ -41,7 +41,7 @@
)
)
)
- (func $test2
+ (func $test2 (; 2 ;)
(call $setTempRet0
(i32.const 10)
)
diff --git a/test/use-import-and-drop.fromasm.no-opts b/test/use-import-and-drop.fromasm.no-opts
index 5ce22091a..debcadf00 100644
--- a/test/use-import-and-drop.fromasm.no-opts
+++ b/test/use-import-and-drop.fromasm.no-opts
@@ -5,7 +5,7 @@
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
- (func $test1 (result i32)
+ (func $test1 (; 1 ;) (result i32)
(local $$b$1 i32)
(local $$x_sroa_0_0_extract_trunc i32)
(local $$2 i32)
@@ -41,7 +41,7 @@
)
)
)
- (func $test2
+ (func $test2 (; 2 ;)
(call $setTempRet0
(i32.const 10)
)
diff --git a/test/wasm-only.fromasm b/test/wasm-only.fromasm
index 6eb8bb5fe..8ac681f2b 100644
--- a/test/wasm-only.fromasm
+++ b/test/wasm-only.fromasm
@@ -27,7 +27,7 @@
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$result))
(export "keepAlive" (func $keepAlive))
- (func $loads
+ (func $loads (; 9 ;)
(drop
(i32.load8_s
(i32.const 100)
@@ -139,7 +139,7 @@
)
)
)
- (func $stores
+ (func $stores (; 10 ;)
(local $0 i32)
(local $1 f64)
(local $2 f32)
@@ -232,7 +232,7 @@
(get_local $1)
)
)
- (func $test
+ (func $test (; 11 ;)
(local $0 f32)
(local $1 i32)
(set_local $1
@@ -241,7 +241,7 @@
)
)
)
- (func $i64s-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-div (; 12 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -266,7 +266,7 @@
)
)
)
- (func $f32-to-int64 (param $0 f32) (result i64)
+ (func $f32-to-int64 (; 13 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -292,7 +292,7 @@
)
)
)
- (func $f64-to-int64 (param $0 f64) (result i64)
+ (func $f64-to-int64 (; 14 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -318,7 +318,7 @@
)
)
)
- (func $f32-to-uint64 (param $0 f32) (result i64)
+ (func $f32-to-uint64 (; 15 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -344,7 +344,7 @@
)
)
)
- (func $f64-to-uint64 (param $0 f64) (result i64)
+ (func $f64-to-uint64 (; 16 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -370,7 +370,7 @@
)
)
)
- (func $test64
+ (func $test64 (; 17 ;)
(local $0 i64)
(local $1 f32)
(local $2 f64)
@@ -488,7 +488,7 @@
)
)
)
- (func $imports (result i64)
+ (func $imports (; 18 ;) (result i64)
(call $legalfunc$illegalImport
(f64.const -3.13159)
(i64.const 94489280523)
@@ -496,7 +496,7 @@
)
(call $legalfunc$illegalImportResult)
)
- (func $arg (param $0 i64)
+ (func $arg (; 19 ;) (param $0 i64)
(i64.store
(i32.const 100)
(get_local $0)
@@ -505,7 +505,7 @@
(get_local $0)
)
)
- (func $illegalParam (param $0 i32) (param $1 i64) (param $2 f64)
+ (func $illegalParam (; 20 ;) (param $0 i32) (param $1 i64) (param $2 f64)
(i64.store
(i32.const 100)
(get_local $1)
@@ -516,15 +516,15 @@
(f64.const 12.34)
)
)
- (func $result (result i64)
+ (func $result (; 21 ;) (result i64)
(i64.const 8589934593)
)
- (func $call1 (param $0 i64) (result i64)
+ (func $call1 (; 22 ;) (param $0 i64) (result i64)
(call $call1
(get_local $0)
)
)
- (func $call2 (param $0 i64) (result i64)
+ (func $call2 (; 23 ;) (param $0 i64) (result i64)
(drop
(call $call2
(call $call2
@@ -534,21 +534,21 @@
)
(i64.const 245127260211081)
)
- (func $returnCastConst (result i64)
+ (func $returnCastConst (; 24 ;) (result i64)
(i64.const 0)
)
- (func $ifValue64 (param $0 i64) (param $1 i64) (result i64)
+ (func $ifValue64 (; 25 ;) (param $0 i64) (param $1 i64) (result i64)
(call $call2
(get_local $0)
)
)
- (func $ifValue32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ifValue32 (; 26 ;) (param $0 i32) (param $1 i32) (result i32)
(call $ifValue32
(get_local $0)
(get_local $1)
)
)
- (func $switch64 (param $0 i64) (result i32)
+ (func $switch64 (; 27 ;) (param $0 i64) (result i32)
(block $switch (result i32)
(block $switch-default
(block $switch-case0
@@ -583,7 +583,7 @@
(i32.const 1)
)
)
- (func $unreachable_leftovers (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $unreachable_leftovers (; 28 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(block $__rjto$0
(if
(i32.eqz
@@ -606,7 +606,7 @@
)
)
)
- (func $switch64TOOMUCH (param $0 i64) (result i32)
+ (func $switch64TOOMUCH (; 29 ;) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i64)
(block $switch-default
@@ -685,7 +685,7 @@
)
(i32.const 44)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -916,7 +916,7 @@
(get_local $0)
)
)
- (func $switch64_big_condition1 (param $0 i64)
+ (func $switch64_big_condition1 (; 31 ;) (param $0 i64)
(local $1 i64)
(block $switch-default
(block $switch-case
@@ -942,7 +942,7 @@
(call $abort)
)
)
- (func $keepAlive
+ (func $keepAlive (; 32 ;)
(call $loads)
(call $loads)
(call $stores)
@@ -1050,7 +1050,7 @@
(i64.const 0)
)
)
- (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
+ (func $legalstub$illegalParam (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
(get_local $0)
(i64.or
@@ -1067,7 +1067,7 @@
(get_local $3)
)
)
- (func $legalstub$result (result i32)
+ (func $legalstub$result (; 34 ;) (result i32)
(local $0 i64)
(set_local $0
(call $result)
@@ -1084,7 +1084,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImport (param $0 f64) (param $1 i64) (param $2 i32)
+ (func $legalfunc$illegalImport (; 35 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
(get_local $0)
(i32.wrap/i64
@@ -1099,7 +1099,7 @@
(get_local $2)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 36 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
@@ -1112,7 +1112,7 @@
)
)
)
- (func $legalfunc$_fabsf (param $0 f32) (result f32)
+ (func $legalfunc$_fabsf (; 37 ;) (param $0 f32) (result f32)
(f32.demote/f64
(call $legalimport$_fabsf
(f64.promote/f32
@@ -1121,7 +1121,7 @@
)
)
)
- (func $legalfunc$do_i64 (result i64)
+ (func $legalfunc$do_i64 (; 38 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$do_i64)
diff --git a/test/wasm-only.fromasm.clamp b/test/wasm-only.fromasm.clamp
index 6eb8bb5fe..8ac681f2b 100644
--- a/test/wasm-only.fromasm.clamp
+++ b/test/wasm-only.fromasm.clamp
@@ -27,7 +27,7 @@
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$result))
(export "keepAlive" (func $keepAlive))
- (func $loads
+ (func $loads (; 9 ;)
(drop
(i32.load8_s
(i32.const 100)
@@ -139,7 +139,7 @@
)
)
)
- (func $stores
+ (func $stores (; 10 ;)
(local $0 i32)
(local $1 f64)
(local $2 f32)
@@ -232,7 +232,7 @@
(get_local $1)
)
)
- (func $test
+ (func $test (; 11 ;)
(local $0 f32)
(local $1 i32)
(set_local $1
@@ -241,7 +241,7 @@
)
)
)
- (func $i64s-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-div (; 12 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -266,7 +266,7 @@
)
)
)
- (func $f32-to-int64 (param $0 f32) (result i64)
+ (func $f32-to-int64 (; 13 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -292,7 +292,7 @@
)
)
)
- (func $f64-to-int64 (param $0 f64) (result i64)
+ (func $f64-to-int64 (; 14 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -318,7 +318,7 @@
)
)
)
- (func $f32-to-uint64 (param $0 f32) (result i64)
+ (func $f32-to-uint64 (; 15 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -344,7 +344,7 @@
)
)
)
- (func $f64-to-uint64 (param $0 f64) (result i64)
+ (func $f64-to-uint64 (; 16 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -370,7 +370,7 @@
)
)
)
- (func $test64
+ (func $test64 (; 17 ;)
(local $0 i64)
(local $1 f32)
(local $2 f64)
@@ -488,7 +488,7 @@
)
)
)
- (func $imports (result i64)
+ (func $imports (; 18 ;) (result i64)
(call $legalfunc$illegalImport
(f64.const -3.13159)
(i64.const 94489280523)
@@ -496,7 +496,7 @@
)
(call $legalfunc$illegalImportResult)
)
- (func $arg (param $0 i64)
+ (func $arg (; 19 ;) (param $0 i64)
(i64.store
(i32.const 100)
(get_local $0)
@@ -505,7 +505,7 @@
(get_local $0)
)
)
- (func $illegalParam (param $0 i32) (param $1 i64) (param $2 f64)
+ (func $illegalParam (; 20 ;) (param $0 i32) (param $1 i64) (param $2 f64)
(i64.store
(i32.const 100)
(get_local $1)
@@ -516,15 +516,15 @@
(f64.const 12.34)
)
)
- (func $result (result i64)
+ (func $result (; 21 ;) (result i64)
(i64.const 8589934593)
)
- (func $call1 (param $0 i64) (result i64)
+ (func $call1 (; 22 ;) (param $0 i64) (result i64)
(call $call1
(get_local $0)
)
)
- (func $call2 (param $0 i64) (result i64)
+ (func $call2 (; 23 ;) (param $0 i64) (result i64)
(drop
(call $call2
(call $call2
@@ -534,21 +534,21 @@
)
(i64.const 245127260211081)
)
- (func $returnCastConst (result i64)
+ (func $returnCastConst (; 24 ;) (result i64)
(i64.const 0)
)
- (func $ifValue64 (param $0 i64) (param $1 i64) (result i64)
+ (func $ifValue64 (; 25 ;) (param $0 i64) (param $1 i64) (result i64)
(call $call2
(get_local $0)
)
)
- (func $ifValue32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ifValue32 (; 26 ;) (param $0 i32) (param $1 i32) (result i32)
(call $ifValue32
(get_local $0)
(get_local $1)
)
)
- (func $switch64 (param $0 i64) (result i32)
+ (func $switch64 (; 27 ;) (param $0 i64) (result i32)
(block $switch (result i32)
(block $switch-default
(block $switch-case0
@@ -583,7 +583,7 @@
(i32.const 1)
)
)
- (func $unreachable_leftovers (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $unreachable_leftovers (; 28 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(block $__rjto$0
(if
(i32.eqz
@@ -606,7 +606,7 @@
)
)
)
- (func $switch64TOOMUCH (param $0 i64) (result i32)
+ (func $switch64TOOMUCH (; 29 ;) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i64)
(block $switch-default
@@ -685,7 +685,7 @@
)
(i32.const 44)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -916,7 +916,7 @@
(get_local $0)
)
)
- (func $switch64_big_condition1 (param $0 i64)
+ (func $switch64_big_condition1 (; 31 ;) (param $0 i64)
(local $1 i64)
(block $switch-default
(block $switch-case
@@ -942,7 +942,7 @@
(call $abort)
)
)
- (func $keepAlive
+ (func $keepAlive (; 32 ;)
(call $loads)
(call $loads)
(call $stores)
@@ -1050,7 +1050,7 @@
(i64.const 0)
)
)
- (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
+ (func $legalstub$illegalParam (; 33 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
(get_local $0)
(i64.or
@@ -1067,7 +1067,7 @@
(get_local $3)
)
)
- (func $legalstub$result (result i32)
+ (func $legalstub$result (; 34 ;) (result i32)
(local $0 i64)
(set_local $0
(call $result)
@@ -1084,7 +1084,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImport (param $0 f64) (param $1 i64) (param $2 i32)
+ (func $legalfunc$illegalImport (; 35 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
(get_local $0)
(i32.wrap/i64
@@ -1099,7 +1099,7 @@
(get_local $2)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 36 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
@@ -1112,7 +1112,7 @@
)
)
)
- (func $legalfunc$_fabsf (param $0 f32) (result f32)
+ (func $legalfunc$_fabsf (; 37 ;) (param $0 f32) (result f32)
(f32.demote/f64
(call $legalimport$_fabsf
(f64.promote/f32
@@ -1121,7 +1121,7 @@
)
)
)
- (func $legalfunc$do_i64 (result i64)
+ (func $legalfunc$do_i64 (; 38 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$do_i64)
diff --git a/test/wasm-only.fromasm.clamp.no-opts b/test/wasm-only.fromasm.clamp.no-opts
index bbb32c5f3..1b8b00201 100644
--- a/test/wasm-only.fromasm.clamp.no-opts
+++ b/test/wasm-only.fromasm.clamp.no-opts
@@ -28,7 +28,7 @@
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$illegalResult))
(export "keepAlive" (func $keepAlive))
- (func $loads
+ (func $loads (; 9 ;)
(local $i i32)
(local $f f32)
(local $d f64)
@@ -143,7 +143,7 @@
)
)
)
- (func $stores
+ (func $stores (; 10 ;)
(local $i i32)
(local $f f32)
(local $d f64)
@@ -236,7 +236,7 @@
(get_local $d)
)
)
- (func $test
+ (func $test (; 11 ;)
(local $i i32)
(local $j i64)
(local $f f32)
@@ -282,7 +282,7 @@
)
)
)
- (func $i64u-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-div (; 12 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -294,7 +294,7 @@
)
)
)
- (func $i64s-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-div (; 13 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -319,7 +319,7 @@
)
)
)
- (func $i64u-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-rem (; 14 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -331,7 +331,7 @@
)
)
)
- (func $i64s-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-rem (; 15 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -343,7 +343,7 @@
)
)
)
- (func $f32-to-int64 (param $0 f32) (result i64)
+ (func $f32-to-int64 (; 16 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -369,7 +369,7 @@
)
)
)
- (func $f64-to-int64 (param $0 f64) (result i64)
+ (func $f64-to-int64 (; 17 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -395,7 +395,7 @@
)
)
)
- (func $f32-to-uint64 (param $0 f32) (result i64)
+ (func $f32-to-uint64 (; 18 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -421,7 +421,7 @@
)
)
)
- (func $f64-to-uint64 (param $0 f64) (result i64)
+ (func $f64-to-uint64 (; 19 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -447,7 +447,7 @@
)
)
)
- (func $test64
+ (func $test64 (; 20 ;)
(local $x i64)
(local $y i64)
(local $z i32)
@@ -719,7 +719,7 @@
)
)
)
- (func $imports (result i64)
+ (func $imports (; 21 ;) (result i64)
(call $legalfunc$illegalImport
(f64.const -3.13159)
(i64.const 94489280523)
@@ -729,7 +729,7 @@
(call $legalfunc$illegalImportResult)
)
)
- (func $arg (param $x i64)
+ (func $arg (; 22 ;) (param $x i64)
(i64.store
(i32.const 100)
(get_local $x)
@@ -738,7 +738,7 @@
(get_local $x)
)
)
- (func $illegalParam (param $a i32) (param $x i64) (param $b f64)
+ (func $illegalParam (; 23 ;) (param $a i32) (param $x i64) (param $b f64)
(i64.store
(i32.const 100)
(get_local $x)
@@ -749,17 +749,17 @@
(f64.const 12.34)
)
)
- (func $result (result i64)
+ (func $result (; 24 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $illegalResult (result i64)
+ (func $illegalResult (; 25 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $call1 (param $x i64) (result i64)
+ (func $call1 (; 26 ;) (param $x i64) (result i64)
(local $y i64)
(set_local $y
(call $call1
@@ -770,7 +770,7 @@
(get_local $y)
)
)
- (func $call2 (param $x i64) (result i64)
+ (func $call2 (; 27 ;) (param $x i64) (result i64)
(drop
(call $call2
(call $call2
@@ -782,12 +782,12 @@
(i64.const 245127260211081)
)
)
- (func $returnCastConst (result i64)
+ (func $returnCastConst (; 28 ;) (result i64)
(return
(i64.const 0)
)
)
- (func $ifValue64 (param $$4 i64) (param $$6 i64) (result i64)
+ (func $ifValue64 (; 29 ;) (param $$4 i64) (param $$6 i64) (result i64)
(local $$$0 i64)
(local $$9 i64)
(local $$10 i64)
@@ -820,7 +820,7 @@
(get_local $$$0)
)
)
- (func $ifValue32 (param $$4 i32) (param $$6 i32) (result i32)
+ (func $ifValue32 (; 30 ;) (param $$4 i32) (param $$6 i32) (result i32)
(local $$$0 i32)
(local $$9 i32)
(local $$10 i32)
@@ -853,7 +853,7 @@
(get_local $$$0)
)
)
- (func $switch64 (param $$a444 i64) (result i32)
+ (func $switch64 (; 31 ;) (param $$a444 i64) (result i32)
(local $$waka i32)
(local $2 i64)
(block $switch
@@ -904,7 +904,7 @@
(get_local $$waka)
)
)
- (func $unreachable_leftovers (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $unreachable_leftovers (; 32 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(local $label i32)
(block $label$break$L1
(if
@@ -940,7 +940,7 @@
)
(return)
)
- (func $switch64TOOMUCH (param $$a444 i64) (result i32)
+ (func $switch64TOOMUCH (; 33 ;) (param $$a444 i64) (result i32)
(local $$waka i32)
(local $2 i64)
(local $3 i32)
@@ -1072,7 +1072,7 @@
(i32.const 44)
)
)
- (func $_memchr (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
+ (func $_memchr (; 34 ;) (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -1650,7 +1650,7 @@
(get_local $$cond)
)
)
- (func $switch64_big_condition1 (param $$x i64)
+ (func $switch64_big_condition1 (; 35 ;) (param $$x i64)
(local $1 i64)
(block $switch
(block $switch-default
@@ -1685,7 +1685,7 @@
(return)
)
)
- (func $switch64_big_condition2 (param $$x i64)
+ (func $switch64_big_condition2 (; 36 ;) (param $$x i64)
(local $1 i64)
(block $switch
(block $switch-case
@@ -1717,7 +1717,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 37 ;)
(call $loads)
(call $loads)
(call $stores)
@@ -1825,7 +1825,7 @@
(i64.const 0)
)
)
- (func $__emscripten_dceable_type_decls
+ (func $__emscripten_dceable_type_decls (; 38 ;)
(drop
(call $legalfunc$_fabsf
(f32.const 0)
@@ -1835,7 +1835,7 @@
(call $legalfunc$do_i64)
)
)
- (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
+ (func $legalstub$illegalParam (; 39 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
(get_local $0)
(i64.or
@@ -1852,7 +1852,7 @@
(get_local $3)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 40 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -1869,7 +1869,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImport (param $0 f64) (param $1 i64) (param $2 i32)
+ (func $legalfunc$illegalImport (; 41 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
(get_local $0)
(i32.wrap/i64
@@ -1884,7 +1884,7 @@
(get_local $2)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 42 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
@@ -1897,7 +1897,7 @@
)
)
)
- (func $legalfunc$_fabsf (param $0 f32) (result f32)
+ (func $legalfunc$_fabsf (; 43 ;) (param $0 f32) (result f32)
(f32.demote/f64
(call $legalimport$_fabsf
(f64.promote/f32
@@ -1906,7 +1906,7 @@
)
)
)
- (func $legalfunc$do_i64 (result i64)
+ (func $legalfunc$do_i64 (; 44 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$do_i64)
diff --git a/test/wasm-only.fromasm.imprecise b/test/wasm-only.fromasm.imprecise
index 07f06b23f..8aab435ef 100644
--- a/test/wasm-only.fromasm.imprecise
+++ b/test/wasm-only.fromasm.imprecise
@@ -26,10 +26,10 @@
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$result))
(export "keepAlive" (func $keepAlive))
- (func $loads
+ (func $loads (; 9 ;)
(nop)
)
- (func $stores
+ (func $stores (; 10 ;)
(local $0 i32)
(local $1 f64)
(local $2 f32)
@@ -122,7 +122,7 @@
(get_local $1)
)
)
- (func $test
+ (func $test (; 11 ;)
(local $0 f32)
(local $1 i32)
(set_local $1
@@ -131,7 +131,7 @@
)
)
)
- (func $test64
+ (func $test64 (; 12 ;)
(local $0 i64)
(local $1 i32)
(local $2 i64)
@@ -173,7 +173,7 @@
)
)
)
- (func $imports (result i64)
+ (func $imports (; 13 ;) (result i64)
(call $legalfunc$illegalImport
(f64.const -3.13159)
(i64.const 94489280523)
@@ -181,7 +181,7 @@
)
(call $legalfunc$illegalImportResult)
)
- (func $arg (param $0 i64)
+ (func $arg (; 14 ;) (param $0 i64)
(i64.store
(i32.const 100)
(get_local $0)
@@ -190,7 +190,7 @@
(get_local $0)
)
)
- (func $illegalParam (param $0 i32) (param $1 i64) (param $2 f64)
+ (func $illegalParam (; 15 ;) (param $0 i32) (param $1 i64) (param $2 f64)
(i64.store
(i32.const 100)
(get_local $1)
@@ -201,15 +201,15 @@
(f64.const 12.34)
)
)
- (func $result (result i64)
+ (func $result (; 16 ;) (result i64)
(i64.const 8589934593)
)
- (func $call1 (param $0 i64) (result i64)
+ (func $call1 (; 17 ;) (param $0 i64) (result i64)
(call $call1
(get_local $0)
)
)
- (func $call2 (param $0 i64) (result i64)
+ (func $call2 (; 18 ;) (param $0 i64) (result i64)
(drop
(call $call2
(call $call2
@@ -219,21 +219,21 @@
)
(i64.const 245127260211081)
)
- (func $returnCastConst (result i64)
+ (func $returnCastConst (; 19 ;) (result i64)
(i64.const 0)
)
- (func $ifValue64 (param $0 i64) (param $1 i64) (result i64)
+ (func $ifValue64 (; 20 ;) (param $0 i64) (param $1 i64) (result i64)
(call $call2
(get_local $0)
)
)
- (func $ifValue32 (param $0 i32) (param $1 i32) (result i32)
+ (func $ifValue32 (; 21 ;) (param $0 i32) (param $1 i32) (result i32)
(call $ifValue32
(get_local $0)
(get_local $1)
)
)
- (func $switch64 (param $0 i64) (result i32)
+ (func $switch64 (; 22 ;) (param $0 i64) (result i32)
(block $switch (result i32)
(block $switch-default
(block $switch-case0
@@ -268,7 +268,7 @@
(i32.const 1)
)
)
- (func $unreachable_leftovers (param $0 i32) (param $1 i32) (param $2 i32)
+ (func $unreachable_leftovers (; 23 ;) (param $0 i32) (param $1 i32) (param $2 i32)
(block $__rjto$0
(if
(i32.eqz
@@ -291,7 +291,7 @@
)
)
)
- (func $switch64TOOMUCH (param $0 i64) (result i32)
+ (func $switch64TOOMUCH (; 24 ;) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i64)
(block $switch-default
@@ -370,7 +370,7 @@
)
(i32.const 44)
)
- (func $_memchr (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $_memchr (; 25 ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@@ -601,7 +601,7 @@
(get_local $0)
)
)
- (func $switch64_big_condition1 (param $0 i64)
+ (func $switch64_big_condition1 (; 26 ;) (param $0 i64)
(local $1 i64)
(block $switch-default
(block $switch-case
@@ -627,7 +627,7 @@
(call $abort)
)
)
- (func $keepAlive
+ (func $keepAlive (; 27 ;)
(call $loads)
(call $loads)
(call $stores)
@@ -735,7 +735,7 @@
(i64.const 0)
)
)
- (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
+ (func $legalstub$illegalParam (; 28 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
(get_local $0)
(i64.or
@@ -752,7 +752,7 @@
(get_local $3)
)
)
- (func $legalstub$result (result i32)
+ (func $legalstub$result (; 29 ;) (result i32)
(local $0 i64)
(set_local $0
(call $result)
@@ -769,7 +769,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImport (param $0 f64) (param $1 i64) (param $2 i32)
+ (func $legalfunc$illegalImport (; 30 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
(get_local $0)
(i32.wrap/i64
@@ -784,7 +784,7 @@
(get_local $2)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 31 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
@@ -797,7 +797,7 @@
)
)
)
- (func $legalfunc$_fabsf (param $0 f32) (result f32)
+ (func $legalfunc$_fabsf (; 32 ;) (param $0 f32) (result f32)
(f32.demote/f64
(call $legalimport$_fabsf
(f64.promote/f32
@@ -806,7 +806,7 @@
)
)
)
- (func $legalfunc$do_i64 (result i64)
+ (func $legalfunc$do_i64 (; 33 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$do_i64)
diff --git a/test/wasm-only.fromasm.imprecise.no-opts b/test/wasm-only.fromasm.imprecise.no-opts
index 06935c945..d994b553f 100644
--- a/test/wasm-only.fromasm.imprecise.no-opts
+++ b/test/wasm-only.fromasm.imprecise.no-opts
@@ -28,7 +28,7 @@
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$illegalResult))
(export "keepAlive" (func $keepAlive))
- (func $loads
+ (func $loads (; 9 ;)
(local $i i32)
(local $f f32)
(local $d f64)
@@ -143,7 +143,7 @@
)
)
)
- (func $stores
+ (func $stores (; 10 ;)
(local $i i32)
(local $f f32)
(local $d f64)
@@ -236,7 +236,7 @@
(get_local $d)
)
)
- (func $test
+ (func $test (; 11 ;)
(local $i i32)
(local $j i64)
(local $f f32)
@@ -282,7 +282,7 @@
)
)
)
- (func $test64
+ (func $test64 (; 12 ;)
(local $x i64)
(local $y i64)
(local $z i32)
@@ -554,7 +554,7 @@
)
)
)
- (func $imports (result i64)
+ (func $imports (; 13 ;) (result i64)
(call $legalfunc$illegalImport
(f64.const -3.13159)
(i64.const 94489280523)
@@ -564,7 +564,7 @@
(call $legalfunc$illegalImportResult)
)
)
- (func $arg (param $x i64)
+ (func $arg (; 14 ;) (param $x i64)
(i64.store
(i32.const 100)
(get_local $x)
@@ -573,7 +573,7 @@
(get_local $x)
)
)
- (func $illegalParam (param $a i32) (param $x i64) (param $b f64)
+ (func $illegalParam (; 15 ;) (param $a i32) (param $x i64) (param $b f64)
(i64.store
(i32.const 100)
(get_local $x)
@@ -584,17 +584,17 @@
(f64.const 12.34)
)
)
- (func $result (result i64)
+ (func $result (; 16 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $illegalResult (result i64)
+ (func $illegalResult (; 17 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $call1 (param $x i64) (result i64)
+ (func $call1 (; 18 ;) (param $x i64) (result i64)
(local $y i64)
(set_local $y
(call $call1
@@ -605,7 +605,7 @@
(get_local $y)
)
)
- (func $call2 (param $x i64) (result i64)
+ (func $call2 (; 19 ;) (param $x i64) (result i64)
(drop
(call $call2
(call $call2
@@ -617,12 +617,12 @@
(i64.const 245127260211081)
)
)
- (func $returnCastConst (result i64)
+ (func $returnCastConst (; 20 ;) (result i64)
(return
(i64.const 0)
)
)
- (func $ifValue64 (param $$4 i64) (param $$6 i64) (result i64)
+ (func $ifValue64 (; 21 ;) (param $$4 i64) (param $$6 i64) (result i64)
(local $$$0 i64)
(local $$9 i64)
(local $$10 i64)
@@ -655,7 +655,7 @@
(get_local $$$0)
)
)
- (func $ifValue32 (param $$4 i32) (param $$6 i32) (result i32)
+ (func $ifValue32 (; 22 ;) (param $$4 i32) (param $$6 i32) (result i32)
(local $$$0 i32)
(local $$9 i32)
(local $$10 i32)
@@ -688,7 +688,7 @@
(get_local $$$0)
)
)
- (func $switch64 (param $$a444 i64) (result i32)
+ (func $switch64 (; 23 ;) (param $$a444 i64) (result i32)
(local $$waka i32)
(local $2 i64)
(block $switch
@@ -739,7 +739,7 @@
(get_local $$waka)
)
)
- (func $unreachable_leftovers (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $unreachable_leftovers (; 24 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(local $label i32)
(block $label$break$L1
(if
@@ -775,7 +775,7 @@
)
(return)
)
- (func $switch64TOOMUCH (param $$a444 i64) (result i32)
+ (func $switch64TOOMUCH (; 25 ;) (param $$a444 i64) (result i32)
(local $$waka i32)
(local $2 i64)
(local $3 i32)
@@ -907,7 +907,7 @@
(i32.const 44)
)
)
- (func $_memchr (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
+ (func $_memchr (; 26 ;) (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -1485,7 +1485,7 @@
(get_local $$cond)
)
)
- (func $switch64_big_condition1 (param $$x i64)
+ (func $switch64_big_condition1 (; 27 ;) (param $$x i64)
(local $1 i64)
(block $switch
(block $switch-default
@@ -1520,7 +1520,7 @@
(return)
)
)
- (func $switch64_big_condition2 (param $$x i64)
+ (func $switch64_big_condition2 (; 28 ;) (param $$x i64)
(local $1 i64)
(block $switch
(block $switch-case
@@ -1552,7 +1552,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 29 ;)
(call $loads)
(call $loads)
(call $stores)
@@ -1660,7 +1660,7 @@
(i64.const 0)
)
)
- (func $__emscripten_dceable_type_decls
+ (func $__emscripten_dceable_type_decls (; 30 ;)
(drop
(call $legalfunc$_fabsf
(f32.const 0)
@@ -1670,7 +1670,7 @@
(call $legalfunc$do_i64)
)
)
- (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
+ (func $legalstub$illegalParam (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
(get_local $0)
(i64.or
@@ -1687,7 +1687,7 @@
(get_local $3)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 32 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -1704,7 +1704,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImport (param $0 f64) (param $1 i64) (param $2 i32)
+ (func $legalfunc$illegalImport (; 33 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
(get_local $0)
(i32.wrap/i64
@@ -1719,7 +1719,7 @@
(get_local $2)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 34 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
@@ -1732,7 +1732,7 @@
)
)
)
- (func $legalfunc$_fabsf (param $0 f32) (result f32)
+ (func $legalfunc$_fabsf (; 35 ;) (param $0 f32) (result f32)
(f32.demote/f64
(call $legalimport$_fabsf
(f64.promote/f32
@@ -1741,7 +1741,7 @@
)
)
)
- (func $legalfunc$do_i64 (result i64)
+ (func $legalfunc$do_i64 (; 36 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$do_i64)
diff --git a/test/wasm-only.fromasm.no-opts b/test/wasm-only.fromasm.no-opts
index bbb32c5f3..1b8b00201 100644
--- a/test/wasm-only.fromasm.no-opts
+++ b/test/wasm-only.fromasm.no-opts
@@ -28,7 +28,7 @@
(export "illegalParam" (func $legalstub$illegalParam))
(export "illegalResult" (func $legalstub$illegalResult))
(export "keepAlive" (func $keepAlive))
- (func $loads
+ (func $loads (; 9 ;)
(local $i i32)
(local $f f32)
(local $d f64)
@@ -143,7 +143,7 @@
)
)
)
- (func $stores
+ (func $stores (; 10 ;)
(local $i i32)
(local $f f32)
(local $d f64)
@@ -236,7 +236,7 @@
(get_local $d)
)
)
- (func $test
+ (func $test (; 11 ;)
(local $i i32)
(local $j i64)
(local $f f32)
@@ -282,7 +282,7 @@
)
)
)
- (func $i64u-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-div (; 12 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -294,7 +294,7 @@
)
)
)
- (func $i64s-div (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-div (; 13 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -319,7 +319,7 @@
)
)
)
- (func $i64u-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64u-rem (; 14 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -331,7 +331,7 @@
)
)
)
- (func $i64s-rem (param $0 i64) (param $1 i64) (result i64)
+ (func $i64s-rem (; 15 ;) (param $0 i64) (param $1 i64) (result i64)
(if (result i64)
(i64.eqz
(get_local $1)
@@ -343,7 +343,7 @@
)
)
)
- (func $f32-to-int64 (param $0 f32) (result i64)
+ (func $f32-to-int64 (; 16 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -369,7 +369,7 @@
)
)
)
- (func $f64-to-int64 (param $0 f64) (result i64)
+ (func $f64-to-int64 (; 17 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -395,7 +395,7 @@
)
)
)
- (func $f32-to-uint64 (param $0 f32) (result i64)
+ (func $f32-to-uint64 (; 18 ;) (param $0 f32) (result i64)
(if (result i64)
(f32.ne
(get_local $0)
@@ -421,7 +421,7 @@
)
)
)
- (func $f64-to-uint64 (param $0 f64) (result i64)
+ (func $f64-to-uint64 (; 19 ;) (param $0 f64) (result i64)
(if (result i64)
(f64.ne
(get_local $0)
@@ -447,7 +447,7 @@
)
)
)
- (func $test64
+ (func $test64 (; 20 ;)
(local $x i64)
(local $y i64)
(local $z i32)
@@ -719,7 +719,7 @@
)
)
)
- (func $imports (result i64)
+ (func $imports (; 21 ;) (result i64)
(call $legalfunc$illegalImport
(f64.const -3.13159)
(i64.const 94489280523)
@@ -729,7 +729,7 @@
(call $legalfunc$illegalImportResult)
)
)
- (func $arg (param $x i64)
+ (func $arg (; 22 ;) (param $x i64)
(i64.store
(i32.const 100)
(get_local $x)
@@ -738,7 +738,7 @@
(get_local $x)
)
)
- (func $illegalParam (param $a i32) (param $x i64) (param $b f64)
+ (func $illegalParam (; 23 ;) (param $a i32) (param $x i64) (param $b f64)
(i64.store
(i32.const 100)
(get_local $x)
@@ -749,17 +749,17 @@
(f64.const 12.34)
)
)
- (func $result (result i64)
+ (func $result (; 24 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $illegalResult (result i64)
+ (func $illegalResult (; 25 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $call1 (param $x i64) (result i64)
+ (func $call1 (; 26 ;) (param $x i64) (result i64)
(local $y i64)
(set_local $y
(call $call1
@@ -770,7 +770,7 @@
(get_local $y)
)
)
- (func $call2 (param $x i64) (result i64)
+ (func $call2 (; 27 ;) (param $x i64) (result i64)
(drop
(call $call2
(call $call2
@@ -782,12 +782,12 @@
(i64.const 245127260211081)
)
)
- (func $returnCastConst (result i64)
+ (func $returnCastConst (; 28 ;) (result i64)
(return
(i64.const 0)
)
)
- (func $ifValue64 (param $$4 i64) (param $$6 i64) (result i64)
+ (func $ifValue64 (; 29 ;) (param $$4 i64) (param $$6 i64) (result i64)
(local $$$0 i64)
(local $$9 i64)
(local $$10 i64)
@@ -820,7 +820,7 @@
(get_local $$$0)
)
)
- (func $ifValue32 (param $$4 i32) (param $$6 i32) (result i32)
+ (func $ifValue32 (; 30 ;) (param $$4 i32) (param $$6 i32) (result i32)
(local $$$0 i32)
(local $$9 i32)
(local $$10 i32)
@@ -853,7 +853,7 @@
(get_local $$$0)
)
)
- (func $switch64 (param $$a444 i64) (result i32)
+ (func $switch64 (; 31 ;) (param $$a444 i64) (result i32)
(local $$waka i32)
(local $2 i64)
(block $switch
@@ -904,7 +904,7 @@
(get_local $$waka)
)
)
- (func $unreachable_leftovers (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (func $unreachable_leftovers (; 32 ;) (param $$0 i32) (param $$1 i32) (param $$2 i32)
(local $label i32)
(block $label$break$L1
(if
@@ -940,7 +940,7 @@
)
(return)
)
- (func $switch64TOOMUCH (param $$a444 i64) (result i32)
+ (func $switch64TOOMUCH (; 33 ;) (param $$a444 i64) (result i32)
(local $$waka i32)
(local $2 i64)
(local $3 i32)
@@ -1072,7 +1072,7 @@
(i32.const 44)
)
)
- (func $_memchr (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
+ (func $_memchr (; 34 ;) (param $$src i32) (param $$c i32) (param $$n i32) (result i32)
(local $$0 i32)
(local $$1 i32)
(local $$2 i32)
@@ -1650,7 +1650,7 @@
(get_local $$cond)
)
)
- (func $switch64_big_condition1 (param $$x i64)
+ (func $switch64_big_condition1 (; 35 ;) (param $$x i64)
(local $1 i64)
(block $switch
(block $switch-default
@@ -1685,7 +1685,7 @@
(return)
)
)
- (func $switch64_big_condition2 (param $$x i64)
+ (func $switch64_big_condition2 (; 36 ;) (param $$x i64)
(local $1 i64)
(block $switch
(block $switch-case
@@ -1717,7 +1717,7 @@
)
)
)
- (func $keepAlive
+ (func $keepAlive (; 37 ;)
(call $loads)
(call $loads)
(call $stores)
@@ -1825,7 +1825,7 @@
(i64.const 0)
)
)
- (func $__emscripten_dceable_type_decls
+ (func $__emscripten_dceable_type_decls (; 38 ;)
(drop
(call $legalfunc$_fabsf
(f32.const 0)
@@ -1835,7 +1835,7 @@
(call $legalfunc$do_i64)
)
)
- (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
+ (func $legalstub$illegalParam (; 39 ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64)
(call $illegalParam
(get_local $0)
(i64.or
@@ -1852,7 +1852,7 @@
(get_local $3)
)
)
- (func $legalstub$illegalResult (result i32)
+ (func $legalstub$illegalResult (; 40 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -1869,7 +1869,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImport (param $0 f64) (param $1 i64) (param $2 i32)
+ (func $legalfunc$illegalImport (; 41 ;) (param $0 f64) (param $1 i64) (param $2 i32)
(call $legalimport$illegalImport
(get_local $0)
(i32.wrap/i64
@@ -1884,7 +1884,7 @@
(get_local $2)
)
)
- (func $legalfunc$illegalImportResult (result i64)
+ (func $legalfunc$illegalImportResult (; 42 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
@@ -1897,7 +1897,7 @@
)
)
)
- (func $legalfunc$_fabsf (param $0 f32) (result f32)
+ (func $legalfunc$_fabsf (; 43 ;) (param $0 f32) (result f32)
(f32.demote/f64
(call $legalimport$_fabsf
(f64.promote/f32
@@ -1906,7 +1906,7 @@
)
)
)
- (func $legalfunc$do_i64 (result i64)
+ (func $legalfunc$do_i64 (; 44 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$do_i64)