| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(instance |
| 4 |
(type (;0;) (record (field "f" u32))) |
| 5 |
(export (;1;) "r1" (type (eq 0))) |
| 6 |
(type (;2;) (record (field "r1" 1))) |
| 7 |
(export (;3;) "r2" (type (eq 2))) |
| 8 |
) |
| 9 |
) |
| 10 |
(import "a:b/type-def" (instance (;0;) (type 0))) |
| 11 |
(alias export 0 "r1" (type (;1;))) |
| 12 |
(alias export 0 "r2" (type (;2;))) |
| 13 |
(type (;3;) |
| 14 |
(instance |
| 15 |
(alias outer 1 1 (type (;0;))) |
| 16 |
(export (;1;) "r1" (type (eq 0))) |
| 17 |
(alias outer 1 2 (type (;2;))) |
| 18 |
(export (;3;) "r2" (type (eq 2))) |
| 19 |
) |
| 20 |
) |
| 21 |
(import "a:b/type-use" (instance (;1;) (type 3))) |
| 22 |
(type (;4;) |
| 23 |
(instance |
| 24 |
(type (;0;) u32) |
| 25 |
(export (;1;) "t1" (type (eq 0))) |
| 26 |
(export (;2;) "t2" (type (eq 1))) |
| 27 |
) |
| 28 |
) |
| 29 |
(import "a:b/type-use-in-same-interface" (instance (;2;) (type 4))) |
| 30 |
(type (;5;) |
| 31 |
(instance |
| 32 |
(type (;0;) u32) |
| 33 |
(export (;1;) "t" (type (eq 0))) |
| 34 |
) |
| 35 |
) |
| 36 |
(import "a:b/diamond-base" (instance (;3;) (type 5))) |
| 37 |
(alias export 3 "t" (type (;6;))) |
| 38 |
(type (;7;) |
| 39 |
(instance |
| 40 |
(alias outer 1 6 (type (;0;))) |
| 41 |
(export (;1;) "t" (type (eq 0))) |
| 42 |
) |
| 43 |
) |
| 44 |
(import "a:b/diamond1" (instance (;4;) (type 7))) |
| 45 |
(alias export 3 "t" (type (;8;))) |
| 46 |
(type (;9;) |
| 47 |
(instance |
| 48 |
(alias outer 1 8 (type (;0;))) |
| 49 |
(export (;1;) "t" (type (eq 0))) |
| 50 |
) |
| 51 |
) |
| 52 |
(import "a:b/diamond2" (instance (;5;) (type 9))) |
| 53 |
(alias export 4 "t" (type (;10;))) |
| 54 |
(alias export 5 "t" (type (;11;))) |
| 55 |
(type (;12;) |
| 56 |
(instance |
| 57 |
(alias outer 1 10 (type (;0;))) |
| 58 |
(export (;1;) "t1" (type (eq 0))) |
| 59 |
(alias outer 1 11 (type (;2;))) |
| 60 |
(export (;3;) "t2" (type (eq 2))) |
| 61 |
) |
| 62 |
) |
| 63 |
(import "a:b/diamond-join" (instance (;6;) (type 12))) |
| 64 |
(component (;0;) |
| 65 |
(type (;0;) |
| 66 |
(instance) |
| 67 |
) |
| 68 |
(import "a" (instance (;0;) (type 0))) |
| 69 |
) |
| 70 |
(component (;1;) |
| 71 |
(type (;0;) |
| 72 |
(instance |
| 73 |
(type (;0;) (record (field "f" u32))) |
| 74 |
(export (;1;) "r1" (type (eq 0))) |
| 75 |
(type (;2;) (record (field "r1" 1))) |
| 76 |
(export (;3;) "r2" (type (eq 2))) |
| 77 |
) |
| 78 |
) |
| 79 |
(import "a:b/type-def" (instance $type-def (;0;) (type 0))) |
| 80 |
(alias export $type-def "r1" (type $r1 (;1;))) |
| 81 |
(alias export $type-def "r2" (type $r2 (;2;))) |
| 82 |
(type (;3;) |
| 83 |
(instance |
| 84 |
(alias outer 1 $r1 (type (;0;))) |
| 85 |
(export (;1;) "r1" (type (eq 0))) |
| 86 |
(alias outer 1 $r2 (type (;2;))) |
| 87 |
(export (;3;) "r2" (type (eq 2))) |
| 88 |
) |
| 89 |
) |
| 90 |
(import "a:b/type-use" (instance (;1;) (type 3))) |
| 91 |
(type (;4;) |
| 92 |
(instance |
| 93 |
(type (;0;) u32) |
| 94 |
(export (;1;) "t1" (type (eq 0))) |
| 95 |
(export (;2;) "t2" (type (eq 1))) |
| 96 |
) |
| 97 |
) |
| 98 |
(import "a:b/type-use-in-same-interface" (instance (;2;) (type 4))) |
| 99 |
(type (;5;) |
| 100 |
(instance |
| 101 |
(type (;0;) u32) |
| 102 |
(export (;1;) "t" (type (eq 0))) |
| 103 |
) |
| 104 |
) |
| 105 |
(import "a:b/diamond-base" (instance $diamond-base (;3;) (type 5))) |
| 106 |
(alias export $diamond-base "t" (type $t-diamond-base (;6;))) |
| 107 |
(type (;7;) |
| 108 |
(instance |
| 109 |
(alias outer 1 $t-diamond-base (type (;0;))) |
| 110 |
(export (;1;) "t" (type (eq 0))) |
| 111 |
) |
| 112 |
) |
| 113 |
(import "a:b/diamond1" (instance $diamond1 (;4;) (type 7))) |
| 114 |
(type (;8;) |
| 115 |
(instance |
| 116 |
(alias outer 1 $t-diamond-base (type (;0;))) |
| 117 |
(export (;1;) "t" (type (eq 0))) |
| 118 |
) |
| 119 |
) |
| 120 |
(import "a:b/diamond2" (instance $diamond2 (;5;) (type 8))) |
| 121 |
(alias export $diamond1 "t" (type $t-diamond1 (;9;))) |
| 122 |
(alias export $diamond2 "t" (type $t-diamond2 (;10;))) |
| 123 |
(type (;11;) |
| 124 |
(instance |
| 125 |
(alias outer 1 $t-diamond1 (type (;0;))) |
| 126 |
(export (;1;) "t1" (type (eq 0))) |
| 127 |
(alias outer 1 $t-diamond2 (type (;2;))) |
| 128 |
(export (;3;) "t2" (type (eq 2))) |
| 129 |
) |
| 130 |
) |
| 131 |
(import "a:b/diamond-join" (instance (;6;) (type 11))) |
| 132 |
) |
| 133 |
(instance (;7;) (instantiate 1 |
| 134 |
(with "a:b/type-def" (instance 0)) |
| 135 |
(with "a:b/type-use" (instance 1)) |
| 136 |
(with "a:b/type-use-in-same-interface" (instance 2)) |
| 137 |
(with "a:b/diamond-base" (instance 3)) |
| 138 |
(with "a:b/diamond1" (instance 4)) |
| 139 |
(with "a:b/diamond2" (instance 5)) |
| 140 |
(with "a:b/diamond-join" (instance 6)) |
| 141 |
) |
| 142 |
) |
| 143 |
(instance (;8;) (instantiate 0 |
| 144 |
(with "a" (instance 7)) |
| 145 |
) |
| 146 |
) |
| 147 |
) |