forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimport.optimized.wat
More file actions
43 lines (43 loc) 路 849 Bytes
/
Copy pathimport.optimized.wat
File metadata and controls
43 lines (43 loc) 路 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
(module
(type $v (func))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table 1 anyfunc)
(elem (i32.const 0) $export/ns.two)
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $export/add (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
(i32.const 3)
)
(func $export/sub (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
(i32.const -1)
)
(func $export/ns.two (; 2 ;) (; has Stack IR ;) (type $v)
(nop)
)
(func $start (; 3 ;) (; has Stack IR ;) (type $v)
(local $0 i32)
(local $1 i32)
(set_local $0
(call $export/add)
)
(set_local $1
(call $export/sub)
)
(drop
(call $export/add)
)
(call $export/ns.two)
(set_local $0
(call $export/add)
)
(set_local $1
(call $export/sub)
)
(drop
(call $export/add)
)
(call $export/ns.two)
)
)