mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-28 00:12:15 +00:00
29 lines
587 B
Plaintext
29 lines
587 B
Plaintext
(module
|
|
(type $i (func (result i32)))
|
|
(type $v (func))
|
|
(memory $0 0)
|
|
(table $0 1 funcref)
|
|
(elem (i32.const 0) $null)
|
|
(global $void/u8Val1 (mut i32) (i32.const 1))
|
|
(global $void/u8Val2 (mut i32) (i32.const 255))
|
|
(global $HEAP_BASE i32 (i32.const 8))
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $void/anInt (; 0 ;) (type $i) (result i32)
|
|
i32.const 2
|
|
)
|
|
(func $start (; 1 ;) (type $v)
|
|
i32.const 1
|
|
drop
|
|
call $void/anInt
|
|
drop
|
|
global.get $void/u8Val1
|
|
global.get $void/u8Val2
|
|
i32.add
|
|
drop
|
|
)
|
|
(func $null (; 2 ;) (type $v)
|
|
)
|
|
)
|