mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
(module
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $_ (func))
|
|
(memory $0 0)
|
|
(table $0 1 funcref)
|
|
(elem (i32.const 0) $null)
|
|
(global $export/a i32 (i32.const 1))
|
|
(global $export/b i32 (i32.const 2))
|
|
(global $export/c i32 (i32.const 3))
|
|
(global $~lib/memory/HEAP_BASE i32 (i32.const 8))
|
|
(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 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
i32.add
|
|
)
|
|
(func $export/mul (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
local.get $0
|
|
local.get $1
|
|
i32.mul
|
|
)
|
|
(func $start:reexport (; 2 ;) (type $_)
|
|
i32.const 1
|
|
i32.const 2
|
|
call $export/add
|
|
i32.const 3
|
|
i32.const 4
|
|
call $export/mul
|
|
i32.add
|
|
drop
|
|
)
|
|
(func $start:rereexport (; 3 ;) (type $_)
|
|
call $start:reexport
|
|
)
|
|
(func $start:wildcard-export (; 4 ;) (type $_)
|
|
call $start:rereexport
|
|
)
|
|
(func $start (; 5 ;) (type $_)
|
|
call $start:wildcard-export
|
|
)
|
|
(func $null (; 6 ;) (type $_)
|
|
)
|
|
)
|