summaryrefslogtreecommitdiff
path: root/test/example/c-api-unused-mem.txt
blob: 52742f476193e0fc922d1904f3755a962d17c1ec (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
102
103
104
105
106
107
108
109
110
111
112
113
(module
  (type $rustfn-0-3 (func))
  (type $__wasm_start (func))
  (memory $0 1024 1024)
  (export "memory" (memory $0))
  (export "main" (func $main))
  (export "rust_entry" (func $__wasm_start))
  (func $main (type $rustfn-0-3)
    (local $0 i32)
    (local $1 i32)
    (local $2 i64)
    (block $block$1$break
      (set_local $0
        (i32.load
          (i32.const 0)
        )
      )
      (block
        (br $block$1$break)
      )
    )
    (block
      (block $block$2$break
        (block $bb0
        )
        (block
          (br $block$2$break)
        )
      )
      (block
        (block $bb1
          (i32.store
            (i32.const 0)
            (get_local $0)
          )
          (return)
        )
      )
    )
  )
  (func $__wasm_start (type $__wasm_start)
    (i32.store
      (i32.const 0)
      (i32.const 65535)
    )
    (call $main)
  )
)
207
(module
  (type $0 (func))
  (type $1 (func))
  (memory $0 1024 1024)
  (export "memory" (memory $0))
  (export "main" (func $main))
  (export "rust_entry" (func $__wasm_start))
  (func $main (type $0)
    (local $var$0 i32)
    (local $var$1 i32)
    (local $var$2 i64)
    (block $label$0
      (block $label$1
        (set_local $var$0
          (i32.load
            (i32.const 0)
          )
        )
        (block $label$2
          (br $label$1)
          (unreachable)
        )
        (unreachable)
      )
      (block $label$3
        (block $label$4
          (block $label$5
          )
          (block $label$6
            (br $label$4)
            (unreachable)
          )
          (unreachable)
        )
        (block $label$7
          (block $label$8
            (i32.store
              (i32.const 0)
              (get_local $var$0)
            )
            (return)
            (unreachable)
          )
          (unreachable)
          (unreachable)
        )
        (unreachable)
        (unreachable)
      )
      (unreachable)
      (unreachable)
    )
    (unreachable)
  )
  (func $__wasm_start (type $1)
    (block $label$0
      (i32.store
        (i32.const 0)
        (i32.const 65535)
      )
      (call $main)
    )
  )
)