2018-01-05 01:55:59 +01:00
|
|
|
(module
|
2018-02-04 07:51:40 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2018-01-05 01:55:59 +01:00
|
|
|
(type $v (func))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\08\00\00\00c\00o\00m\00m\00a\00.\00t\00s\00")
|
|
|
|
(table 1 anyfunc)
|
|
|
|
(elem (i32.const 0) $null)
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-01-05 01:55:59 +01:00
|
|
|
(global $comma/a (mut i32) (i32.const 0))
|
|
|
|
(global $comma/b (mut i32) (i32.const 0))
|
2018-05-14 16:55:55 +02:00
|
|
|
(global $HEAP_BASE i32 (i32.const 28))
|
2018-01-05 01:55:59 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-01-05 01:55:59 +01:00
|
|
|
(start $start)
|
2018-02-04 07:51:40 +01:00
|
|
|
(func $start (; 1 ;) (type $v)
|
2018-01-05 01:55:59 +01:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(block
|
|
|
|
(set_global $comma/b
|
|
|
|
(block (result i32)
|
|
|
|
(set_global $comma/a
|
|
|
|
(i32.add
|
2018-10-29 20:06:21 +01:00
|
|
|
(tee_local $0
|
|
|
|
(get_global $comma/a)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(get_global $comma/a)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 4)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/b)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 5)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-01-10 13:09:05 +01:00
|
|
|
(set_global $comma/a
|
|
|
|
(i32.add
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 1)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $comma/b
|
|
|
|
(get_global $comma/a)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 8)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/b)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 9)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(set_global $comma/a
|
|
|
|
(block (result i32)
|
|
|
|
(set_global $comma/b
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(get_global $comma/b)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $comma/b
|
|
|
|
(block (result i32)
|
2018-01-10 13:09:05 +01:00
|
|
|
(set_global $comma/a
|
|
|
|
(i32.add
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 1)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_global $comma/a)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 14)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/b)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 15)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(set_global $comma/a
|
|
|
|
(block (result i32)
|
2018-01-10 13:09:05 +01:00
|
|
|
(set_global $comma/a
|
|
|
|
(i32.add
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 1)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block (result i32)
|
|
|
|
(set_global $comma/b
|
|
|
|
(get_global $comma/a)
|
|
|
|
)
|
|
|
|
(get_global $comma/b)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 18)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $comma/b)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 19)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(block $break|0
|
2018-01-18 23:34:12 +01:00
|
|
|
(set_local $1
|
|
|
|
(i32.const 0)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
|
|
|
(get_global $comma/a)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(nop)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block
|
|
|
|
(set_global $comma/a
|
|
|
|
(i32.sub
|
|
|
|
(get_global $comma/a)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 22)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(drop
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $null (; 2 ;) (type $v)
|
|
|
|
)
|
2018-01-05 01:55:59 +01:00
|
|
|
)
|