2019-03-20 14:16:18 +01:00
|
|
|
(module
|
|
|
|
(type $FUNCSIG$v (func))
|
|
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
2019-04-06 20:17:48 +02:00
|
|
|
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
2019-03-20 14:16:18 +01:00
|
|
|
(memory $0 1)
|
2019-05-23 03:08:25 +02:00
|
|
|
(data (i32.const 8) ".\00\00\00\01\00\00\00\01\00\00\00.\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00-\00b\00l\00o\00c\00k\00l\00o\00c\00a\00l\00s\00.\00t\00s")
|
2019-03-20 14:16:18 +01:00
|
|
|
(global $inlining-blocklocals/b (mut i32) (i32.const 2))
|
|
|
|
(global $inlining-blocklocals/theCall_a (mut i32) (i32.const 0))
|
|
|
|
(global $inlining-blocklocals/theCall_b (mut i32) (i32.const 0))
|
2019-05-29 03:41:03 +02:00
|
|
|
(global $inlining-blocklocals/theCall_c (mut i32) (i32.const 0))
|
2019-03-20 14:16:18 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
|
|
|
(func $inlining-blocklocals/test (; 1 ;) (type $FUNCSIG$v)
|
|
|
|
(local $0 i32)
|
|
|
|
global.get $inlining-blocklocals/b
|
|
|
|
local.tee $0
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
|
|
|
global.set $inlining-blocklocals/b
|
|
|
|
i32.const 1
|
|
|
|
global.set $inlining-blocklocals/theCall_a
|
|
|
|
local.get $0
|
|
|
|
global.set $inlining-blocklocals/theCall_b
|
2019-05-29 03:41:03 +02:00
|
|
|
i32.const 3
|
|
|
|
global.set $inlining-blocklocals/theCall_c
|
2019-03-20 14:16:18 +01:00
|
|
|
global.get $inlining-blocklocals/theCall_a
|
|
|
|
i32.const 1
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-04-08 23:22:13 +02:00
|
|
|
i32.const 24
|
2019-05-29 03:41:03 +02:00
|
|
|
i32.const 18
|
2019-03-20 14:16:18 +01:00
|
|
|
i32.const 2
|
2019-04-06 20:17:48 +02:00
|
|
|
call $~lib/builtins/abort
|
2019-03-20 14:16:18 +01:00
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
global.get $inlining-blocklocals/theCall_b
|
|
|
|
i32.const 2
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-04-08 23:22:13 +02:00
|
|
|
i32.const 24
|
2019-05-29 03:41:03 +02:00
|
|
|
i32.const 19
|
|
|
|
i32.const 2
|
|
|
|
call $~lib/builtins/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
global.get $inlining-blocklocals/theCall_c
|
|
|
|
i32.const 3
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 24
|
|
|
|
i32.const 20
|
2019-03-20 14:16:18 +01:00
|
|
|
i32.const 2
|
2019-04-06 20:17:48 +02:00
|
|
|
call $~lib/builtins/abort
|
2019-03-20 14:16:18 +01:00
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
)
|
|
|
|
(func $start (; 2 ;) (type $FUNCSIG$v)
|
|
|
|
call $inlining-blocklocals/test
|
|
|
|
)
|
|
|
|
(func $null (; 3 ;) (type $FUNCSIG$v)
|
|
|
|
nop
|
|
|
|
)
|
|
|
|
)
|