90 lines
1.3 KiB
Plaintext
Raw Normal View History

(module
(type $iv (func (param i32)))
(global $HEAP_START i32 (i32.const 4))
(memory $0 1)
2017-12-02 23:33:01 +01:00
(export "loopDo" (func $do/loopDo))
(export "loopDoInDo" (func $do/loopDoInDo))
(export "memory" (memory $0))
(func $do/loopDo (; 0 ;) (type $iv) (param $0 i32)
2017-12-08 16:11:58 +01:00
(block $break|0
(loop $continue|0
2017-12-05 15:06:44 +01:00
(set_local $0
(i32.sub
(get_local $0)
(i32.const 1)
)
)
2017-12-08 16:11:58 +01:00
(br_if $continue|0
(get_local $0)
)
)
)
)
(func $do/loopDoInDo (; 1 ;) (type $iv) (param $0 i32)
2017-12-08 16:11:58 +01:00
(block $break|0
(loop $continue|0
(block
(set_local $0
(i32.sub
(get_local $0)
(i32.const 1)
)
)
2017-12-08 16:11:58 +01:00
(block $break|1
(loop $continue|1
2017-12-05 15:06:44 +01:00
(set_local $0
(i32.sub
(get_local $0)
(i32.const 1)
)
)
2017-12-08 16:11:58 +01:00
(br_if $continue|1
(get_local $0)
)
)
)
)
2017-12-08 16:11:58 +01:00
(br_if $continue|0
(get_local $0)
)
)
)
)
)
(;
[program.elements]
clz
ctz
popcnt
rotl
rotr
abs
ceil
copysign
floor
max
min
nearest
sqrt
trunc
current_memory
grow_memory
unreachable
2017-12-04 22:47:08 +01:00
load
store
reinterpret
select
sizeof
changetype
isNaN
isFinite
assert
2017-12-12 01:35:48 +01:00
parseInt
parseFloat
do/loopDo
do/loopDoInDo
[program.exports]
do/loopDo
do/loopDoInDo
;)