summaryrefslogtreecommitdiff
path: root/test/example/c-api-unused-mem.txt
blob: 715a5e6552579a34c3e79316d98b04b8e44b9f66 (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
(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 (; 0 ;) (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 (; 1 ;) (type $__wasm_start)
  (i32.store
   (i32.const 0)
   (i32.const 65535)
  )
  (call $main)
 )
)
169
(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 (; 0 ;) (type $0)
  (local $var$0 i32)
  (local $var$1 i32)
  (local $var$2 i64)
  (block $label$1
   (set_local $var$0
    (i32.load
     (i32.const 0)
    )
   )
   (block $label$2
    (br $label$1)
   )
  )
  (block $label$3
   (block $label$4
    (block $label$5
    )
    (block $label$6
     (br $label$4)
    )
   )
   (block $label$7
    (block $label$8
     (i32.store
      (i32.const 0)
      (get_local $var$0)
     )
     (return)
    )
    (unreachable)
   )
  )
 )
 (func $__wasm_start (; 1 ;) (type $1)
  (i32.store
   (i32.const 0)
   (i32.const 65535)
  )
  (call $main)
 )
)