blob: 7896e448dafb858ce8acc3403d4c9eadf5e76fba (
plain)
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
44
|
(module
(type $FUNCSIG$v (func))
(type $FUNCSIG$v$0 (func))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(import "env" "memory" (memory $0 256))
(import "env" "table" (table 8 anyfunc))
(import "env" "memoryBase" (global $memoryBase$0 i32))
(import "env" "tableBase" (global $tableBase$0 i32))
(global $a-global i32 (i32.const 0))
(global $b-global f64 (f64.const 2.14281428))
(data (i32.const 1024) "")
(export "foo" (func $foo-func))
(export "aglobal" (global $a-global))
(export "bar" (func $bar-func))
(export "bglobal" (global $b-global))
(func $foo-func (type $FUNCSIG$v)
(drop
(i32.const 1337)
)
(call $bar-func)
(drop
(get_global $a-global)
)
(drop
(get_global $b-global)
)
)
(func $b (type $FUNCSIG$v$0)
(call $foo-func)
)
(func $bar-func (type $FUNCSIG$v$0)
(drop
(f64.const 3.14159)
)
(drop
(get_global $a-global)
)
(drop
(get_global $b-global)
)
)
)
|