2018-01-18 23:34:12 +01:00
|
|
|
(module
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $_ (func))
|
2018-06-28 01:44:32 +02:00
|
|
|
(memory $0 0)
|
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)
|
2018-01-18 23:34:12 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-01-18 23:34:12 +01:00
|
|
|
(start $start)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start:scoped (; 0 ;) (type $_)
|
2018-01-18 23:34:12 +01:00
|
|
|
(local $0 i32)
|
2018-11-23 15:20:52 +01:00
|
|
|
loop $repeat|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-23 15:20:52 +01:00
|
|
|
i32.const 1
|
2018-12-01 03:09:43 +01:00
|
|
|
i32.lt_s
|
2018-11-23 15:20:52 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
br $repeat|0
|
|
|
|
end
|
|
|
|
end
|
2018-12-01 03:09:43 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-12-01 03:09:43 +01:00
|
|
|
loop $repeat|1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-12-01 03:09:43 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.lt_s
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2018-11-08 08:04:24 +01:00
|
|
|
br $repeat|1
|
|
|
|
end
|
|
|
|
end
|
2018-01-18 23:34:12 +01:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start (; 1 ;) (type $_)
|
|
|
|
call $start:scoped
|
|
|
|
)
|
|
|
|
(func $null (; 2 ;) (type $_)
|
2018-11-08 08:04:24 +01:00
|
|
|
nop
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-01-18 23:34:12 +01:00
|
|
|
)
|