Debian Codegraph @

vendor/wit-component/tests/components/link-dl-openable-builtin-libdl-with-unused/lib-unused.wat

raw
1 (module
2 (@dylink.0
3 (mem-info (memory 4 4))
4 (needed "libc.so")
5 )
6 (type (func))
7 (type (func (param i32) (result i32)))
8 (import "env" "memory" (memory 1))
9 (import "env" "__indirect_function_table" (table 0 funcref))
10 (import "env" "__stack_pointer" (global $__stack_pointer (mut i32)))
11 (import "env" "__memory_base" (global $__memory_base i32))
12 (import "env" "__table_base" (global $__table_base i32))
13 (import "env" "malloc" (func $malloc (type 1)))
14 (import "env" "abort" (func $abort (type 0)))
15 (import "GOT.mem" "um" (global $um (mut i32)))
16 (import "test:test/test" "bar" (func $bar (type 1)))
17 (func $__wasm_call_ctors (type 0))
18 (func $__wasm_apply_data_relocs (type 0))
19 (func $foo (type 1) (param i32) (result i32)
20 global.get $__stack_pointer
21 i32.const 16
22 i32.sub
23 global.set $__stack_pointer
24
25 i32.const 4
26 call $malloc
27
28 i32.const 0
29 i32.eq
30 if
31 call $abort
32 unreachable
33 end
34
35 local.get 0
36 global.get $um
37 i32.load offset=16
38 i32.add
39 i32.const 42
40 i32.add
41
42 call $bar
43
44 global.get $__stack_pointer
45 i32.const 16
46 i32.add
47 global.set $__stack_pointer
48 )
49 (global i32 i32.const 0)
50 (export "__wasm_call_ctors" (func $__wasm_call_ctors))
51 (export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs))
52 (export "foo2" (func $foo))
53 (export "well2" (global 4))
54 (data $.data (global.get $__memory_base) "\04\00\00\00")
55 )