112 lines
1.6 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 "loopWhile" (func $while/loopWhile))
(export "loopWhileInWhile" (func $while/loopWhileInWhile))
(export "memory" (memory $0))
(func $while/loopWhile (; 0 ;) (type $iv) (param $0 i32)
2017-12-08 16:11:58 +01:00
(block $break|0
(loop $continue|0
(if
(get_local $0)
(block
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 $continue|0)
)
)
)
)
)
(func $while/loopWhileInWhile (; 1 ;) (type $iv) (param $0 i32)
2017-12-08 16:11:58 +01:00
(block $break|0
(loop $continue|0
(if
(get_local $0)
(block
(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
(if
(get_local $0)
(block
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 $continue|1)
)
)
)
)
)
2017-12-08 16:11:58 +01:00
(br $continue|0)
)
)
)
)
)
)
(;
[program.elements]
2017-12-15 17:23:04 +01:00
isNaN
isFinite
clz
ctz
popcnt
rotl
rotr
abs
max
min
2017-12-15 17:23:04 +01:00
ceil
floor
copysign
nearest
2017-12-15 17:23:04 +01:00
reinterpret
sqrt
trunc
2017-12-04 22:47:08 +01:00
load
store
sizeof
2017-12-15 17:23:04 +01:00
select
unreachable
current_memory
grow_memory
2017-12-12 01:35:48 +01:00
parseInt
parseFloat
2017-12-15 17:23:04 +01:00
changetype
assert
2017-12-15 15:00:19 +01:00
i8
i16
i32
i64
u8
u16
u32
u64
bool
f32
f64
isize
usize
while/loopWhile
while/loopWhileInWhile
[program.exports]
while/loopWhile
while/loopWhileInWhile
;)