File: duplicate-function-elimination_all-features.txt

package info (click to toggle)
binaryen 108-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 35,424 kB
  • sloc: cpp: 151,487; javascript: 62,522; ansic: 13,124; python: 5,260; pascal: 441; sh: 75; asm: 27; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
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
(module
 (type $none_=>_i32 (func (result i32)))
 (type $none_=>_funcref (func (result funcref)))
 (elem declare func $0)
 (func $0 (result i32)
  (i32.const 0)
 )
 (func $test (result funcref)
  (ref.func $0)
 )
)
(module
 (type $none_=>_none (func))
 (global $bar i32 (i32.const 0))
 (memory $foo 16 16)
 (export "memory" (memory $foo))
 (export "global" (global $bar))
 (func $bar
  (nop)
 )
)
(module
 (type $func (func (result i32)))
 (global $global$0 (ref $func) (ref.func $foo))
 (export "export" (func $2))
 (func $foo (result i32)
  (unreachable)
 )
 (func $2 (result i32)
  (call_ref
   (global.get $global$0)
  )
 )
)