2017-12-02 18:37:59 +01:00
|
|
|
(module
|
2019-03-01 00:01:23 +01:00
|
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
|
|
|
(type $FUNCSIG$v (func))
|
2019-06-05 23:15:39 +02:00
|
|
|
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
2019-06-05 23:15:39 +02:00
|
|
|
(data (i32.const 8) "\n\00\00\00\01\00\00\00\01\00\00\00\n\00\00\00d\00o\00.\00t\00s\00")
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $null)
|
2019-06-13 15:33:43 +02:00
|
|
|
(global $~lib/error (mut i32) (i32.const 0))
|
2017-12-30 05:11:58 +01:00
|
|
|
(global $do/n (mut i32) (i32.const 10))
|
|
|
|
(global $do/m (mut i32) (i32.const 0))
|
|
|
|
(global $do/o (mut i32) (i32.const 0))
|
2017-12-02 18:37:59 +01:00
|
|
|
(export "memory" (memory $0))
|
2017-12-30 05:11:58 +01:00
|
|
|
(start $start)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start:do (; 1 ;) (type $FUNCSIG$v)
|
2017-12-30 05:11:58 +01:00
|
|
|
(local $0 i32)
|
2019-06-11 12:52:16 +02:00
|
|
|
loop $continue|0
|
|
|
|
global.get $do/n
|
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
global.set $do/n
|
|
|
|
global.get $do/m
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
|
|
|
global.set $do/m
|
|
|
|
global.get $do/n
|
|
|
|
br_if $continue|0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/n
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/m
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 10
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $do/n
|
2019-06-11 12:52:16 +02:00
|
|
|
loop $continue|1
|
|
|
|
nop
|
|
|
|
global.get $do/n
|
|
|
|
local.tee $0
|
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
global.set $do/n
|
|
|
|
local.get $0
|
|
|
|
br_if $continue|1
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/n
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -1
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 10
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $do/n
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $do/m
|
2019-06-11 12:52:16 +02:00
|
|
|
loop $continue|2
|
|
|
|
global.get $do/n
|
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
global.set $do/n
|
|
|
|
global.get $do/m
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
|
|
|
global.set $do/m
|
|
|
|
loop $continue|3
|
|
|
|
global.get $do/n
|
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
global.set $do/n
|
|
|
|
global.get $do/o
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
|
|
|
global.set $do/o
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/n
|
2019-06-11 12:52:16 +02:00
|
|
|
br_if $continue|3
|
|
|
|
end
|
|
|
|
global.get $do/n
|
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 24
|
|
|
|
i32.const 24
|
|
|
|
i32.const 2
|
|
|
|
call $~lib/builtins/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
global.get $do/o
|
|
|
|
i32.const 9
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 24
|
|
|
|
i32.const 25
|
|
|
|
i32.const 2
|
|
|
|
call $~lib/builtins/abort
|
|
|
|
unreachable
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-06-11 12:52:16 +02:00
|
|
|
global.get $do/n
|
|
|
|
br_if $continue|2
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/n
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 27
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/m
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 28
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $do/o
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 9
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 29
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
2017-12-02 18:37:59 +01:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start (; 2 ;) (type $FUNCSIG$v)
|
2019-02-21 00:11:22 +01:00
|
|
|
call $start:do
|
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $null (; 3 ;) (type $FUNCSIG$v)
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2017-12-02 18:37:59 +01:00
|
|
|
)
|