assemblyscript/tests/compiler/scoped.optimized.wat

42 lines
614 B
Plaintext
Raw Normal View History

(module
(type $FUNCSIG$v (func))
(memory $0 0)
(export "memory" (memory $0))
(start $start)
(func $start:scoped (; 0 ;) (type $FUNCSIG$v)
(local $0 i32)
2019-06-11 12:52:16 +02:00
loop $loop|0
local.get $0
i32.const 1
2018-12-01 03:09:43 +01:00
i32.lt_s
if
local.get $0
i32.const 1
i32.add
local.set $0
2019-06-11 12:52:16 +02:00
br $loop|0
end
end
2018-12-01 03:09:43 +01:00
i32.const 0
local.set $0
2019-06-11 12:52:16 +02:00
loop $loop|1
local.get $0
2018-12-01 03:09:43 +01:00
i32.const 1
i32.lt_s
if
local.get $0
i32.const 1
i32.add
local.set $0
2019-06-11 12:52:16 +02:00
br $loop|1
end
end
)
(func $start (; 1 ;) (type $FUNCSIG$v)
call $start:scoped
)
(func $null (; 2 ;) (type $FUNCSIG$v)
nop
)
)