106 lines
1.4 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]
2017-12-16 02:27:39 +01:00
NaN
Infinity
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
2017-12-16 02:27:39 +01:00
HEAP_START
do/loopDo
do/loopDoInDo
[program.exports]
do/loopDo
do/loopDoInDo
;)