summaryrefslogtreecommitdiff
path: root/test/merge/dylib.wasm.combined
blob: de84f63cb4df898df2caff06ef0d3db484098b91 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
(module
 (type $0 (func (param i32 i32)))
 (type $1 (func (param i32) (result i32)))
 (type $2 (func (result i32)))
 (type $3 (func))
 (type $0$0 (func (param i32 i32)))
 (type $1$0 (func (result i32)))
 (type $2$0 (func))
 (import "env" "memory" (memory $2 256))
 (data (get_global $gimport$0) "hello, world!\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
 (import "env" "table" (table $timport$3 0 anyfunc))
 (import "env" "memoryBase" (global $gimport$0 i32))
 (import "env" "tableBase" (global $gimport$4 i32))
 (import "env" "__memory_base" (global $__memory_base i32))
 (import "env" "__table_base" (global $__table_base i32))
 (import "env" "memoryBase" (global $gimport$0$0 i32))
 (import "env" "tableBase" (global $gimport$4$0 i32))
 (import "env" "__memory_base" (global $__memory_base$0 i32))
 (import "env" "__table_base" (global $__table_base$0 i32))
 (import "env" "_puts" (func $import$1 (param i32) (result i32)))
 (global $global$0 (mut i32) (i32.const 0))
 (global $global$1 (mut i32) (i32.const 0))
 (global $global$2 i32 (i32.const 0))
 (global $global$0$0 (mut i32) (i32.const 0))
 (global $global$1$0 (mut i32) (i32.const 0))
 (export "__post_instantiate" (func $__post_instantiate))
 (export "_main" (func $_main))
 (export "runPostSets" (func $runPostSets))
 (export "_str" (global $global$2))
 (export "_foo" (func $_foo))
 (func $_main (; 1 ;) (type $2) (result i32)
  (block $label$1 (result i32)
   (block $label$2 (result i32)
    (drop
     (call $import$1
      (get_global $gimport$0)
     )
    )
    (i32.const 0)
   )
  )
 )
 (func $runPostSets (; 2 ;) (type $3)
  (block $label$1
   (nop)
  )
 )
 (func $__post_instantiate (; 3 ;) (type $3)
  (call $__post_instantiate$0)
  (block $label$1
   (block $label$2
    (set_global $global$0
     (i32.add
      (get_global $gimport$0)
      (i32.const 16)
     )
    )
    (set_global $global$1
     (i32.add
      (get_global $global$0)
      (i32.const 32)
     )
    )
    (call $runPostSets)
   )
  )
 )
 (func $_foo (; 4 ;) (type $1$0) (result i32)
  (local $0 i32)
  (block $label$1 (result i32)
   (block $label$2 (result i32)
    (set_local $0
     (call $_main)
    )
    (get_local $0)
   )
  )
 )
 (func $runPostSets$0 (; 5 ;) (type $2$0)
  (block $label$1
   (nop)
  )
 )
 (func $__post_instantiate$0 (; 6 ;) (type $2$0)
  (block $label$1
   (block $label$2
    (set_global $global$0$0
     (get_global $gimport$0$0)
    )
    (set_global $global$1$0
     (i32.add
      (get_global $global$0$0)
      (i32.const 10)
     )
    )
    (call $runPostSets$0)
   )
  )
 )
 ;; custom section "dylink", size 2
)