Debian Codegraph @

crates/wit-component/tests/interfaces/flags.wat

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (flags "b0"))
7 (export (;1;) "flag1" (type (eq 0)))
8 (type (;2;) (flags "b0" "b1"))
9 (export (;3;) "flag2" (type (eq 2)))
10 (type (;4;) (flags "b0" "b1" "b2" "b3"))
11 (export (;5;) "flag4" (type (eq 4)))
12 (type (;6;) (flags "b0" "b1" "b2" "b3" "b4" "b5" "b6" "b7"))
13 (export (;7;) "flag8" (type (eq 6)))
14 (type (;8;) (flags "b0" "b1" "b2" "b3" "b4" "b5" "b6" "b7" "b8" "b9" "b10" "b11" "b12" "b13" "b14" "b15"))
15 (export (;9;) "flag16" (type (eq 8)))
16 (type (;10;) (flags "b0" "b1" "b2" "b3" "b4" "b5" "b6" "b7" "b8" "b9" "b10" "b11" "b12" "b13" "b14" "b15" "b16" "b17" "b18" "b19" "b20" "b21" "b22" "b23" "b24" "b25" "b26" "b27" "b28" "b29" "b30" "b31"))
17 (export (;11;) "flag32" (type (eq 10)))
18 (type (;12;) (func (param "x" 1) (result 1)))
19 (export (;0;) "roundtrip-flag1" (func (type 12)))
20 (type (;13;) (func (param "x" 3) (result 3)))
21 (export (;1;) "roundtrip-flag2" (func (type 13)))
22 (type (;14;) (func (param "x" 5) (result 5)))
23 (export (;2;) "roundtrip-flag4" (func (type 14)))
24 (type (;15;) (func (param "x" 7) (result 7)))
25 (export (;3;) "roundtrip-flag8" (func (type 15)))
26 (type (;16;) (func (param "x" 9) (result 9)))
27 (export (;4;) "roundtrip-flag16" (func (type 16)))
28 (type (;17;) (func (param "x" 11) (result 11)))
29 (export (;5;) "roundtrip-flag32" (func (type 17)))
30 )
31 )
32 (export (;0;) "foo:flags/imports" (instance (type 0)))
33 )
34 )
35 (export (;1;) "imports" (type 0))
36 (type (;2;)
37 (component
38 (type (;0;)
39 (component
40 (type (;0;)
41 (instance
42 (type (;0;) (flags "b0"))
43 (export (;1;) "flag1" (type (eq 0)))
44 (type (;2;) (flags "b0" "b1"))
45 (export (;3;) "flag2" (type (eq 2)))
46 (type (;4;) (flags "b0" "b1" "b2" "b3"))
47 (export (;5;) "flag4" (type (eq 4)))
48 (type (;6;) (flags "b0" "b1" "b2" "b3" "b4" "b5" "b6" "b7"))
49 (export (;7;) "flag8" (type (eq 6)))
50 (type (;8;) (flags "b0" "b1" "b2" "b3" "b4" "b5" "b6" "b7" "b8" "b9" "b10" "b11" "b12" "b13" "b14" "b15"))
51 (export (;9;) "flag16" (type (eq 8)))
52 (type (;10;) (flags "b0" "b1" "b2" "b3" "b4" "b5" "b6" "b7" "b8" "b9" "b10" "b11" "b12" "b13" "b14" "b15" "b16" "b17" "b18" "b19" "b20" "b21" "b22" "b23" "b24" "b25" "b26" "b27" "b28" "b29" "b30" "b31"))
53 (export (;11;) "flag32" (type (eq 10)))
54 (type (;12;) (func (param "x" 1) (result 1)))
55 (export (;0;) "roundtrip-flag1" (func (type 12)))
56 (type (;13;) (func (param "x" 3) (result 3)))
57 (export (;1;) "roundtrip-flag2" (func (type 13)))
58 (type (;14;) (func (param "x" 5) (result 5)))
59 (export (;2;) "roundtrip-flag4" (func (type 14)))
60 (type (;15;) (func (param "x" 7) (result 7)))
61 (export (;3;) "roundtrip-flag8" (func (type 15)))
62 (type (;16;) (func (param "x" 9) (result 9)))
63 (export (;4;) "roundtrip-flag16" (func (type 16)))
64 (type (;17;) (func (param "x" 11) (result 11)))
65 (export (;5;) "roundtrip-flag32" (func (type 17)))
66 )
67 )
68 (import "foo:flags/imports" (instance (;0;) (type 0)))
69 )
70 )
71 (export (;0;) "foo:flags/flags-world" (component (type 0)))
72 )
73 )
74 (export (;3;) "flags-world" (type 2))
75 (@custom "package-docs" "\01{}")
76 (@producers
77 (processed-by "wit-component" "$CARGO_PKG_VERSION")
78 )
79 )