mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 23:42:15 +00:00
34 lines
821 B
Plaintext
34 lines
821 B
Plaintext
(module
|
|
(type $v (func))
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
(memory $0 0)
|
|
(table 1 anyfunc)
|
|
(elem (i32.const 0) $null)
|
|
(global $export/a i32 (i32.const 1))
|
|
(global $export/b i32 (i32.const 2))
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(export "a" (global $export/a))
|
|
(export "renamed_a" (global $export/a))
|
|
(export "renamed_b" (global $export/b))
|
|
(export "renamed_renamed_b" (global $export/b))
|
|
(start $start)
|
|
(func $export/add (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(i32.const 3)
|
|
)
|
|
(func $export/mul (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(i32.const 12)
|
|
)
|
|
(func $start (; 2 ;) (; has Stack IR ;) (type $v)
|
|
(drop
|
|
(call $export/add)
|
|
)
|
|
(drop
|
|
(call $export/mul)
|
|
)
|
|
)
|
|
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
|
(nop)
|
|
)
|
|
)
|