mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 23:42:15 +00:00
30 lines
527 B
Plaintext
30 lines
527 B
Plaintext
(module
|
|
(type $i (func (result i32)))
|
|
(type $v (func))
|
|
(global $void/u8Val1 (mut i32) (i32.const 1))
|
|
(global $void/u8Val2 (mut i32) (i32.const 255))
|
|
(global $HEAP_BASE i32 (i32.const 4))
|
|
(memory $0 1)
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $void/anInt (; 0 ;) (type $i) (result i32)
|
|
(return
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start (; 1 ;) (type $v)
|
|
(drop
|
|
(i32.const 1)
|
|
)
|
|
(drop
|
|
(call $void/anInt)
|
|
)
|
|
(drop
|
|
(i32.add
|
|
(get_global $void/u8Val1)
|
|
(get_global $void/u8Val2)
|
|
)
|
|
)
|
|
)
|
|
)
|