Files
failnix/targets/wasm-tacle/test/cover/generated/default/cover.wat

62 lines
1.5 KiB
Plaintext

(module $cover.wasm
(type (;0;) (func (param i32 i32)))
(type (;1;) (func))
(type (;2;) (func (result i32)))
(import "__pragma" "loopbound" (func $__pragma_loopbound (type 0)))
(func $__wasm_apply_data_relocs (type 1))
(func $cover_main (type 1)
(local i32)
i32.const 0
i32.load offset=1024
local.set 0
i32.const 10
i32.const 10
call $__pragma_loopbound
i32.const 0
local.get 0
i32.const 10
i32.add
i32.store offset=1024
i32.const 0
i32.load offset=1024
local.set 0
i32.const 50
i32.const 50
call $__pragma_loopbound
i32.const 0
local.get 0
i32.const 50
i32.add
i32.store offset=1024
i32.const 0
i32.load offset=1024
local.set 0
i32.const 120
i32.const 120
call $__pragma_loopbound
i32.const 0
local.get 0
i32.const 120
i32.add
i32.store offset=1024)
(func $__original_main (type 2) (result i32)
i32.const 0
i32.const 0
i32.store offset=1024
call $cover_main
i32.const 0
i32.load offset=1024
i32.const -180
i32.add)
(table (;0;) 1 1 funcref)
(memory (;0;) 1)
(global $__stack_pointer (mut i32) (i32.const 5136))
(global (;1;) i32 (i32.const 1028))
(global (;2;) i32 (i32.const 5136))
(export "memory" (memory 0))
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs))
(export "entrypoint" (func $cover_main))
(export "main" (func $__original_main))
(export "__data_end" (global 1))
(export "__heap_base" (global 2)))