mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
38 lines
568 B
Plaintext
38 lines
568 B
Plaintext
(module
|
|
(type $v (func))
|
|
(global $for/i (mut i32) (i32.const 0))
|
|
(memory $0 1)
|
|
(data (i32.const 4) "\08")
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $start (; 0 ;) (type $v)
|
|
(set_global $for/i
|
|
(i32.const 0)
|
|
)
|
|
(loop $continue$1.1
|
|
(if
|
|
(i32.lt_s
|
|
(get_global $for/i)
|
|
(i32.const 10)
|
|
)
|
|
(block
|
|
(set_global $for/i
|
|
(i32.add
|
|
(get_global $for/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue$1.1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $for/i)
|
|
(i32.const 10)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|