mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
46 lines
684 B
Plaintext
46 lines
684 B
Plaintext
(module
|
|
(type $v (func))
|
|
(memory $0 0)
|
|
(table $0 1 anyfunc)
|
|
(elem (i32.const 0) $null)
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $start (; 0 ;) (type $v)
|
|
(local $0 i32)
|
|
loop $repeat|0
|
|
get_local $0
|
|
i32.const 1
|
|
i32.ge_s
|
|
i32.eqz
|
|
if
|
|
get_local $0
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
br $repeat|0
|
|
end
|
|
end
|
|
block $break|1
|
|
i32.const 0
|
|
set_local $0
|
|
loop $repeat|1
|
|
get_local $0
|
|
i32.const 1
|
|
i32.ge_s
|
|
br_if $break|1
|
|
get_local $0
|
|
i32.const 1
|
|
i32.add
|
|
set_local $0
|
|
br $repeat|1
|
|
unreachable
|
|
end
|
|
unreachable
|
|
end
|
|
)
|
|
(func $null (; 1 ;) (type $v)
|
|
nop
|
|
)
|
|
)
|