generic_method.carbon 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/convert.carbon
  6. // TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
  7. // EXTRA-ARGS: --dump-sem-ir-ranges=if-present
  8. //
  9. // AUTOUPDATE
  10. // TIP: To test this file alone, run:
  11. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interface/generic_method.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interface/generic_method.carbon
  14. // --- generic_method_fewer_params.carbon
  15. library "[[@TEST_NAME]]";
  16. // T has index 0, Self has index 1, U has index 2.
  17. interface A(T:! type) {
  18. fn F(U:! type, u: U*) -> (T, Self, U*);
  19. }
  20. class X {}
  21. class Y {}
  22. class Z {}
  23. impl Y as A(X) {
  24. // Here, U has index 0. The specific used for A.F needs to renumber its U from
  25. // index 2 to index 0.
  26. fn F(U:! type, u: U*) -> (X, Y, U*) {
  27. return ({}, {}, u);
  28. }
  29. }
  30. fn Call() {
  31. var u: Z;
  32. (Y as A(X)).F(Z, &u);
  33. }
  34. fn CallGeneric(T:! A(X)) {
  35. var u: Z;
  36. T.F(Z, &u);
  37. }
  38. fn CallIndirect() {
  39. CallGeneric(Y);
  40. }
  41. // --- generic_method_more_params.carbon
  42. library "[[@TEST_NAME]]";
  43. // T has index 0, Self has index 1, U has index 2.
  44. interface A(T:! type) {
  45. fn F(U:! type, u: U) -> (T, Self, U);
  46. }
  47. class X {}
  48. class Y1 {}
  49. class Y2 {}
  50. class Z {}
  51. impl forall [V1:! type, V2:! type, W:! type] (V1, V2) as A(W) {
  52. // Here, U has index 3. The specific used for A.F needs to renumber its U from
  53. // index 2 to index 3.
  54. fn F(U:! type, u: U) -> (W, (V1, V2), U) {
  55. return F(U, u);
  56. }
  57. }
  58. fn Call() {
  59. // TODO: The `as type` here should not be necessary.
  60. (((Y1, Y2) as type) as A(X)).F(Z, {});
  61. }
  62. fn CallGeneric(T:! A(X)) {
  63. T.F(Z, {});
  64. }
  65. fn CallIndirect() {
  66. // TODO: The `as type` here should not be necessary.
  67. CallGeneric((Y1, Y2) as type);
  68. }
  69. // CHECK:STDOUT: --- generic_method_fewer_params.carbon
  70. // CHECK:STDOUT:
  71. // CHECK:STDOUT: constants {
  72. // CHECK:STDOUT: %type: type = facet_type <type> [concrete]
  73. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
  74. // CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
  75. // CHECK:STDOUT: %T.67d: type = symbolic_binding T, 0 [symbolic]
  76. // CHECK:STDOUT: %A.type.464: type = generic_interface_type @A [concrete]
  77. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  78. // CHECK:STDOUT: %A.generic: %A.type.464 = struct_value () [concrete]
  79. // CHECK:STDOUT: %A.type.ade: type = facet_type <@A, @A(%T.67d)> [symbolic]
  80. // CHECK:STDOUT: %Self.362: %A.type.ade = symbolic_binding Self, 1 [symbolic]
  81. // CHECK:STDOUT: %U.4e7: type = symbolic_binding U, 2 [symbolic]
  82. // CHECK:STDOUT: %ptr.8f6: type = ptr_type %U.4e7 [symbolic]
  83. // CHECK:STDOUT: %pattern_type.986: type = pattern_type %ptr.8f6 [symbolic]
  84. // CHECK:STDOUT: %tuple.type.f2d: type = tuple_type (type, %A.type.ade, type) [symbolic]
  85. // CHECK:STDOUT: %tuple.2c7: %tuple.type.f2d = tuple_value (%T.67d, %Self.362, %ptr.8f6) [symbolic]
  86. // CHECK:STDOUT: %Self.binding.as_type.7ec: type = symbolic_binding_type Self, 1, %Self.362 [symbolic]
  87. // CHECK:STDOUT: %tuple.type.762: type = tuple_type (%T.67d, %Self.binding.as_type.7ec, %ptr.8f6) [symbolic]
  88. // CHECK:STDOUT: %.54f: Core.Form = init_form %tuple.type.762 [symbolic]
  89. // CHECK:STDOUT: %pattern_type.f66: type = pattern_type %tuple.type.762 [symbolic]
  90. // CHECK:STDOUT: %A.WithSelf.F.type.0ed: type = fn_type @A.WithSelf.F, @A.WithSelf(%T.67d, %Self.362) [symbolic]
  91. // CHECK:STDOUT: %A.WithSelf.F.33a: %A.WithSelf.F.type.0ed = struct_value () [symbolic]
  92. // CHECK:STDOUT: %A.assoc_type.9f4: type = assoc_entity_type @A, @A(%T.67d) [symbolic]
  93. // CHECK:STDOUT: %assoc0.146: %A.assoc_type.9f4 = assoc_entity element0, @A.WithSelf.%A.WithSelf.F.decl [symbolic]
  94. // CHECK:STDOUT: %X: type = class_type @X [concrete]
  95. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  96. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
  97. // CHECK:STDOUT: %Y: type = class_type @Y [concrete]
  98. // CHECK:STDOUT: %Z: type = class_type @Z [concrete]
  99. // CHECK:STDOUT: %A.type.ab6: type = facet_type <@A, @A(%X)> [concrete]
  100. // CHECK:STDOUT: %A.impl_witness: <witness> = impl_witness @Y.as.A.impl.%A.impl_witness_table [concrete]
  101. // CHECK:STDOUT: %Self.e87: %A.type.ab6 = symbolic_binding Self, 1 [symbolic]
  102. // CHECK:STDOUT: %A.WithSelf.F.type.ba2: type = fn_type @A.WithSelf.F, @A.WithSelf(%X, %Self.362) [symbolic]
  103. // CHECK:STDOUT: %A.WithSelf.F.e5f: %A.WithSelf.F.type.ba2 = struct_value () [symbolic]
  104. // CHECK:STDOUT: %A.assoc_type.f05: type = assoc_entity_type @A, @A(%X) [concrete]
  105. // CHECK:STDOUT: %assoc0.368: %A.assoc_type.f05 = assoc_entity element0, @A.WithSelf.%A.WithSelf.F.decl [concrete]
  106. // CHECK:STDOUT: %U.67d: type = symbolic_binding U, 0 [symbolic]
  107. // CHECK:STDOUT: %ptr.e8f8f9.1: type = ptr_type %U.67d [symbolic]
  108. // CHECK:STDOUT: %pattern_type.4f4b84.1: type = pattern_type %ptr.e8f8f9.1 [symbolic]
  109. // CHECK:STDOUT: %tuple.type.ff9: type = tuple_type (type, type, type) [concrete]
  110. // CHECK:STDOUT: %tuple.7ab: %tuple.type.ff9 = tuple_value (%X, %Y, %ptr.e8f8f9.1) [symbolic]
  111. // CHECK:STDOUT: %tuple.type.244: type = tuple_type (%X, %Y, %ptr.e8f8f9.1) [symbolic]
  112. // CHECK:STDOUT: %.0dc: Core.Form = init_form %tuple.type.244 [symbolic]
  113. // CHECK:STDOUT: %pattern_type.06d: type = pattern_type %tuple.type.244 [symbolic]
  114. // CHECK:STDOUT: %Y.as.A.impl.F.type: type = fn_type @Y.as.A.impl.F [concrete]
  115. // CHECK:STDOUT: %Y.as.A.impl.F: %Y.as.A.impl.F.type = struct_value () [concrete]
  116. // CHECK:STDOUT: %A.facet: %A.type.ab6 = facet_value %Y, (%A.impl_witness) [concrete]
  117. // CHECK:STDOUT: %A.WithSelf.F.type.12f: type = fn_type @A.WithSelf.F, @A.WithSelf(%X, %A.facet) [concrete]
  118. // CHECK:STDOUT: %A.WithSelf.F.48c: %A.WithSelf.F.type.12f = struct_value () [concrete]
  119. // CHECK:STDOUT: %tuple.type.f96: type = tuple_type (type, %A.type.ab6, type) [concrete]
  120. // CHECK:STDOUT: %tuple.5c5: %tuple.type.f96 = tuple_value (%X, %A.facet, %ptr.e8f8f9.1) [symbolic]
  121. // CHECK:STDOUT: %require_complete.ef162c.1: <witness> = require_complete_type %ptr.e8f8f9.1 [symbolic]
  122. // CHECK:STDOUT: %require_complete.034: <witness> = require_complete_type %tuple.type.244 [symbolic]
  123. // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
  124. // CHECK:STDOUT: %tuple.type.dd2: type = tuple_type (%empty_struct_type, %empty_struct_type, %ptr.e8f8f9.1) [symbolic]
  125. // CHECK:STDOUT: %X.val: %X = struct_value () [concrete]
  126. // CHECK:STDOUT: %Y.val: %Y = struct_value () [concrete]
  127. // CHECK:STDOUT: %Copy.type: type = facet_type <@Copy> [concrete]
  128. // CHECK:STDOUT: %ptr.as.Copy.impl.Op.type.2d4455.1: type = fn_type @ptr.as.Copy.impl.Op, @ptr.as.Copy.impl(%T.67d) [symbolic]
  129. // CHECK:STDOUT: %ptr.as.Copy.impl.Op.74e93b.1: %ptr.as.Copy.impl.Op.type.2d4455.1 = struct_value () [symbolic]
  130. // CHECK:STDOUT: %Copy.lookup_impl_witness.2e6: <witness> = lookup_impl_witness %ptr.e8f8f9.1, @Copy [symbolic]
  131. // CHECK:STDOUT: %.2f2: require_specific_def_type = require_specific_def @ptr.as.Copy.impl(%U.67d) [symbolic]
  132. // CHECK:STDOUT: %Copy.facet.c25: %Copy.type = facet_value %ptr.e8f8f9.1, (%Copy.lookup_impl_witness.2e6) [symbolic]
  133. // CHECK:STDOUT: %Copy.WithSelf.Op.type.d82: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.c25) [symbolic]
  134. // CHECK:STDOUT: %.299: type = fn_type_with_self_type %Copy.WithSelf.Op.type.d82, %Copy.facet.c25 [symbolic]
  135. // CHECK:STDOUT: %impl.elem0.1c7: %.299 = impl_witness_access %Copy.lookup_impl_witness.2e6, element0 [symbolic]
  136. // CHECK:STDOUT: %specific_impl_fn.366: <specific function> = specific_impl_function %impl.elem0.1c7, @Copy.WithSelf.Op(%Copy.facet.c25) [symbolic]
  137. // CHECK:STDOUT: %Call.type: type = fn_type @Call [concrete]
  138. // CHECK:STDOUT: %Call: %Call.type = struct_value () [concrete]
  139. // CHECK:STDOUT: %pattern_type.bdb: type = pattern_type %Z [concrete]
  140. // CHECK:STDOUT: %DefaultOrUnformed.type: type = facet_type <@DefaultOrUnformed> [concrete]
  141. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.type.6c6: type = fn_type @T.as.DefaultOrUnformed.impl.Op, @T.as.DefaultOrUnformed.impl(%T.67d) [symbolic]
  142. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.ae1: %T.as.DefaultOrUnformed.impl.Op.type.6c6 = struct_value () [symbolic]
  143. // CHECK:STDOUT: %DefaultOrUnformed.impl_witness.263: <witness> = impl_witness imports.%DefaultOrUnformed.impl_witness_table.349, @T.as.DefaultOrUnformed.impl(%Z) [concrete]
  144. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.type.b84: type = fn_type @T.as.DefaultOrUnformed.impl.Op, @T.as.DefaultOrUnformed.impl(%Z) [concrete]
  145. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.4f1: %T.as.DefaultOrUnformed.impl.Op.type.b84 = struct_value () [concrete]
  146. // CHECK:STDOUT: %DefaultOrUnformed.facet: %DefaultOrUnformed.type = facet_value %Z, (%DefaultOrUnformed.impl_witness.263) [concrete]
  147. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.specific_fn: <specific function> = specific_function %T.as.DefaultOrUnformed.impl.Op.4f1, @T.as.DefaultOrUnformed.impl.Op(%Z) [concrete]
  148. // CHECK:STDOUT: %.de2: type = fn_type_with_self_type %A.WithSelf.F.type.12f, %A.facet [concrete]
  149. // CHECK:STDOUT: %ptr.2a0: type = ptr_type %Z [concrete]
  150. // CHECK:STDOUT: %pattern_type.771: type = pattern_type %ptr.2a0 [concrete]
  151. // CHECK:STDOUT: %tuple.84f: %tuple.type.ff9 = tuple_value (%X, %Y, %ptr.2a0) [concrete]
  152. // CHECK:STDOUT: %tuple.type.847: type = tuple_type (%X, %Y, %ptr.2a0) [concrete]
  153. // CHECK:STDOUT: %.88e: Core.Form = init_form %tuple.type.847 [concrete]
  154. // CHECK:STDOUT: %pattern_type.79c: type = pattern_type %tuple.type.847 [concrete]
  155. // CHECK:STDOUT: %Y.as.A.impl.F.specific_fn: <specific function> = specific_function %Y.as.A.impl.F, @Y.as.A.impl.F(%Z) [concrete]
  156. // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
  157. // CHECK:STDOUT: %Destroy.Op.type.bae255.1: type = fn_type @Destroy.Op.loc23 [concrete]
  158. // CHECK:STDOUT: %Destroy.Op.651ba6.1: %Destroy.Op.type.bae255.1 = struct_value () [concrete]
  159. // CHECK:STDOUT: %custom_witness.8d7fae.1: <witness> = custom_witness (%Destroy.Op.651ba6.1), @Destroy [concrete]
  160. // CHECK:STDOUT: %Destroy.facet.bba: %Destroy.type = facet_value %tuple.type.847, (%custom_witness.8d7fae.1) [concrete]
  161. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.770: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.bba) [concrete]
  162. // CHECK:STDOUT: %.f4b: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.770, %Destroy.facet.bba [concrete]
  163. // CHECK:STDOUT: %Destroy.Op.type.bae255.2: type = fn_type @Destroy.Op.loc22 [concrete]
  164. // CHECK:STDOUT: %Destroy.Op.651ba6.2: %Destroy.Op.type.bae255.2 = struct_value () [concrete]
  165. // CHECK:STDOUT: %pattern_type.143: type = pattern_type %A.type.ab6 [concrete]
  166. // CHECK:STDOUT: %T.2bc: %A.type.ab6 = symbolic_binding T, 0 [symbolic]
  167. // CHECK:STDOUT: %CallGeneric.type: type = fn_type @CallGeneric [concrete]
  168. // CHECK:STDOUT: %CallGeneric: %CallGeneric.type = struct_value () [concrete]
  169. // CHECK:STDOUT: %A.WithSelf.F.type.f08: type = fn_type @A.WithSelf.F, @A.WithSelf(%X, %T.2bc) [symbolic]
  170. // CHECK:STDOUT: %A.WithSelf.F.7ad: %A.WithSelf.F.type.f08 = struct_value () [symbolic]
  171. // CHECK:STDOUT: %T.binding.as_type.3d0: type = symbolic_binding_type T, 0, %T.2bc [symbolic]
  172. // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.2bc, @A, @A(%X) [symbolic]
  173. // CHECK:STDOUT: %.189: type = fn_type_with_self_type %A.WithSelf.F.type.f08, %T.2bc [symbolic]
  174. // CHECK:STDOUT: %impl.elem0.86f8: %.189 = impl_witness_access %A.lookup_impl_witness, element0 [symbolic]
  175. // CHECK:STDOUT: %tuple.d24: %tuple.type.f96 = tuple_value (%X, %T.2bc, %ptr.2a0) [symbolic]
  176. // CHECK:STDOUT: %tuple.type.a50: type = tuple_type (%X, %T.binding.as_type.3d0, %ptr.2a0) [symbolic]
  177. // CHECK:STDOUT: %.69c: Core.Form = init_form %tuple.type.a50 [symbolic]
  178. // CHECK:STDOUT: %pattern_type.160: type = pattern_type %tuple.type.a50 [symbolic]
  179. // CHECK:STDOUT: %specific_impl_fn.44b: <specific function> = specific_impl_function %impl.elem0.86f8, @A.WithSelf.F(%X, %T.2bc, %Z) [symbolic]
  180. // CHECK:STDOUT: %require_complete.8fa: <witness> = require_complete_type %tuple.type.a50 [symbolic]
  181. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %tuple.type.a50, @Destroy [symbolic]
  182. // CHECK:STDOUT: %Destroy.facet.df5: %Destroy.type = facet_value %tuple.type.a50, (%Destroy.lookup_impl_witness) [symbolic]
  183. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.707: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.df5) [symbolic]
  184. // CHECK:STDOUT: %.11e: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.707, %Destroy.facet.df5 [symbolic]
  185. // CHECK:STDOUT: %impl.elem0.853: %.11e = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic]
  186. // CHECK:STDOUT: %specific_impl_fn.8a5: <specific function> = specific_impl_function %impl.elem0.853, @Destroy.WithSelf.Op(%Destroy.facet.df5) [symbolic]
  187. // CHECK:STDOUT: %CallIndirect.type: type = fn_type @CallIndirect [concrete]
  188. // CHECK:STDOUT: %CallIndirect: %CallIndirect.type = struct_value () [concrete]
  189. // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric, @CallGeneric(%A.facet) [concrete]
  190. // CHECK:STDOUT: %complete_type.543: <witness> = complete_type_witness %ptr.2a0 [concrete]
  191. // CHECK:STDOUT: %complete_type.28e: <witness> = complete_type_witness %tuple.type.847 [concrete]
  192. // CHECK:STDOUT: %tuple.type.0dd: type = tuple_type (%empty_struct_type, %empty_struct_type, %ptr.2a0) [concrete]
  193. // CHECK:STDOUT: %Copy.impl_witness.425: <witness> = impl_witness imports.%Copy.impl_witness_table.c3a, @ptr.as.Copy.impl(%Z) [concrete]
  194. // CHECK:STDOUT: %ptr.as.Copy.impl.Op.type.505: type = fn_type @ptr.as.Copy.impl.Op, @ptr.as.Copy.impl(%Z) [concrete]
  195. // CHECK:STDOUT: %ptr.as.Copy.impl.Op.7d1: %ptr.as.Copy.impl.Op.type.505 = struct_value () [concrete]
  196. // CHECK:STDOUT: %.157: require_specific_def_type = require_specific_def @ptr.as.Copy.impl(%Z) [concrete]
  197. // CHECK:STDOUT: %Copy.facet.26e: %Copy.type = facet_value %ptr.2a0, (%Copy.impl_witness.425) [concrete]
  198. // CHECK:STDOUT: %Copy.WithSelf.Op.type.a8b: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.26e) [concrete]
  199. // CHECK:STDOUT: %.2ef: type = fn_type_with_self_type %Copy.WithSelf.Op.type.a8b, %Copy.facet.26e [concrete]
  200. // CHECK:STDOUT: %ptr.as.Copy.impl.Op.specific_fn: <specific function> = specific_function %ptr.as.Copy.impl.Op.7d1, @ptr.as.Copy.impl.Op(%Z) [concrete]
  201. // CHECK:STDOUT: %tuple.6cd: %tuple.type.f96 = tuple_value (%X, %A.facet, %ptr.2a0) [concrete]
  202. // CHECK:STDOUT: }
  203. // CHECK:STDOUT:
  204. // CHECK:STDOUT: imports {
  205. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  206. // CHECK:STDOUT: .Copy = %Core.Copy
  207. // CHECK:STDOUT: .DefaultOrUnformed = %Core.DefaultOrUnformed
  208. // CHECK:STDOUT: .Destroy = %Core.Destroy
  209. // CHECK:STDOUT: import Core//prelude
  210. // CHECK:STDOUT: import Core//prelude/...
  211. // CHECK:STDOUT: }
  212. // CHECK:STDOUT: %Core.Copy: type = import_ref Core//prelude/parts/copy, Copy, loaded [concrete = constants.%Copy.type]
  213. // CHECK:STDOUT: %Core.import_ref.203: @ptr.as.Copy.impl.%ptr.as.Copy.impl.Op.type (%ptr.as.Copy.impl.Op.type.2d4455.1) = import_ref Core//prelude/parts/copy, loc{{\d+_\d+}}, loaded [symbolic = @ptr.as.Copy.impl.%ptr.as.Copy.impl.Op (constants.%ptr.as.Copy.impl.Op.74e93b.1)]
  214. // CHECK:STDOUT: %Copy.impl_witness_table.c3a = impl_witness_table (%Core.import_ref.203), @ptr.as.Copy.impl [concrete]
  215. // CHECK:STDOUT: %Core.DefaultOrUnformed: type = import_ref Core//prelude/parts/default, DefaultOrUnformed, loaded [concrete = constants.%DefaultOrUnformed.type]
  216. // CHECK:STDOUT: %Core.import_ref.01d: @T.as.DefaultOrUnformed.impl.%T.as.DefaultOrUnformed.impl.Op.type (%T.as.DefaultOrUnformed.impl.Op.type.6c6) = import_ref Core//prelude/parts/default, loc{{\d+_\d+}}, loaded [symbolic = @T.as.DefaultOrUnformed.impl.%T.as.DefaultOrUnformed.impl.Op (constants.%T.as.DefaultOrUnformed.impl.Op.ae1)]
  217. // CHECK:STDOUT: %DefaultOrUnformed.impl_witness_table.349 = impl_witness_table (%Core.import_ref.01d), @T.as.DefaultOrUnformed.impl [concrete]
  218. // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
  219. // CHECK:STDOUT: }
  220. // CHECK:STDOUT:
  221. // CHECK:STDOUT: file {
  222. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  223. // CHECK:STDOUT: .Core = imports.%Core
  224. // CHECK:STDOUT: .A = %A.decl
  225. // CHECK:STDOUT: .X = %X.decl
  226. // CHECK:STDOUT: .Y = %Y.decl
  227. // CHECK:STDOUT: .Z = %Z.decl
  228. // CHECK:STDOUT: .Call = %Call.decl
  229. // CHECK:STDOUT: .CallGeneric = %CallGeneric.decl
  230. // CHECK:STDOUT: .CallIndirect = %CallIndirect.decl
  231. // CHECK:STDOUT: }
  232. // CHECK:STDOUT: %Core.import = import Core
  233. // CHECK:STDOUT: %A.decl: %A.type.464 = interface_decl @A [concrete = constants.%A.generic] {
  234. // CHECK:STDOUT: %T.patt: %pattern_type.98f = symbolic_binding_pattern T, 0 [concrete]
  235. // CHECK:STDOUT: } {
  236. // CHECK:STDOUT: %.loc5_17.1: type = splice_block %.loc5_17.2 [concrete = type] {
  237. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  238. // CHECK:STDOUT: %.loc5_17.2: type = type_literal type [concrete = type]
  239. // CHECK:STDOUT: }
  240. // CHECK:STDOUT: %T.loc5_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
  241. // CHECK:STDOUT: }
  242. // CHECK:STDOUT: %X.decl: type = class_decl @X [concrete = constants.%X] {} {}
  243. // CHECK:STDOUT: %Y.decl: type = class_decl @Y [concrete = constants.%Y] {} {}
  244. // CHECK:STDOUT: %Z.decl: type = class_decl @Z [concrete = constants.%Z] {} {}
  245. // CHECK:STDOUT: impl_decl @Y.as.A.impl [concrete] {} {
  246. // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
  247. // CHECK:STDOUT: %A.ref: %A.type.464 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
  248. // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
  249. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.ab6]
  250. // CHECK:STDOUT: }
  251. // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [concrete = constants.%Call] {} {}
  252. // CHECK:STDOUT: %CallGeneric.decl: %CallGeneric.type = fn_decl @CallGeneric [concrete = constants.%CallGeneric] {
  253. // CHECK:STDOUT: %T.patt: %pattern_type.143 = symbolic_binding_pattern T, 0 [concrete]
  254. // CHECK:STDOUT: } {
  255. // CHECK:STDOUT: %.loc26: type = splice_block %A.type [concrete = constants.%A.type.ab6] {
  256. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  257. // CHECK:STDOUT: %A.ref: %A.type.464 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
  258. // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
  259. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.ab6]
  260. // CHECK:STDOUT: }
  261. // CHECK:STDOUT: %T.loc26_16.2: %A.type.ab6 = symbolic_binding T, 0 [symbolic = %T.loc26_16.1 (constants.%T.2bc)]
  262. // CHECK:STDOUT: }
  263. // CHECK:STDOUT: %CallIndirect.decl: %CallIndirect.type = fn_decl @CallIndirect [concrete = constants.%CallIndirect] {} {}
  264. // CHECK:STDOUT: }
  265. // CHECK:STDOUT:
  266. // CHECK:STDOUT: generic interface @A(%T.loc5_13.2: type) {
  267. // CHECK:STDOUT: %T.loc5_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
  268. // CHECK:STDOUT:
  269. // CHECK:STDOUT: !definition:
  270. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T.loc5_13.1)> [symbolic = %A.type (constants.%A.type.ade)]
  271. // CHECK:STDOUT: %Self.loc5_23.2: @A.%A.type (%A.type.ade) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.362)]
  272. // CHECK:STDOUT:
  273. // CHECK:STDOUT: interface {
  274. // CHECK:STDOUT: %Self.loc5_23.1: @A.%A.type (%A.type.ade) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.362)]
  275. // CHECK:STDOUT: %A.WithSelf.decl = interface_with_self_decl @A [concrete]
  276. // CHECK:STDOUT:
  277. // CHECK:STDOUT: !with Self:
  278. // CHECK:STDOUT: %A.WithSelf.F.decl: @A.WithSelf.%A.WithSelf.F.type (%A.WithSelf.F.type.0ed) = fn_decl @A.WithSelf.F [symbolic = @A.WithSelf.%A.WithSelf.F (constants.%A.WithSelf.F.33a)] {
  279. // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 2 [concrete]
  280. // CHECK:STDOUT: %u.param_patt: @A.WithSelf.F.%pattern_type.loc6_19 (%pattern_type.986) = value_param_pattern [concrete]
  281. // CHECK:STDOUT: %u.patt: @A.WithSelf.F.%pattern_type.loc6_19 (%pattern_type.986) = at_binding_pattern u, %u.param_patt [concrete]
  282. // CHECK:STDOUT: %return.param_patt: @A.WithSelf.F.%pattern_type.loc6_40 (%pattern_type.f66) = out_param_pattern [concrete]
  283. // CHECK:STDOUT: %return.patt: @A.WithSelf.F.%pattern_type.loc6_40 (%pattern_type.f66) = return_slot_pattern %return.param_patt, %.loc6_40.4 [concrete]
  284. // CHECK:STDOUT: } {
  285. // CHECK:STDOUT: %T.ref: type = name_ref T, @A.%T.loc5_13.2 [symbolic = %T (constants.%T.67d)]
  286. // CHECK:STDOUT: %.loc6_32: @A.WithSelf.F.%A.type (%A.type.ade) = specific_constant @A.%Self.loc5_23.1, @A(constants.%T.67d) [symbolic = %Self (constants.%Self.362)]
  287. // CHECK:STDOUT: %Self.ref: @A.WithSelf.F.%A.type (%A.type.ade) = name_ref Self, %.loc6_32 [symbolic = %Self (constants.%Self.362)]
  288. // CHECK:STDOUT: %U.ref.loc6_38: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  289. // CHECK:STDOUT: %ptr.loc6_39: type = ptr_type %U.ref.loc6_38 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)]
  290. // CHECK:STDOUT: %.loc6_40.2: @A.WithSelf.F.%tuple.type.loc6_40.1 (%tuple.type.f2d) = tuple_literal (%T.ref, %Self.ref, %ptr.loc6_39) [symbolic = %tuple (constants.%tuple.2c7)]
  291. // CHECK:STDOUT: %Self.as_type: type = facet_access_type constants.%Self.362 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.7ec)]
  292. // CHECK:STDOUT: %.loc6_40.3: type = converted constants.%Self.362, %Self.as_type [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.7ec)]
  293. // CHECK:STDOUT: %.loc6_40.4: type = converted %.loc6_40.2, constants.%tuple.type.762 [symbolic = %tuple.type.loc6_40.2 (constants.%tuple.type.762)]
  294. // CHECK:STDOUT: %.loc6_40.5: Core.Form = init_form %.loc6_40.4 [symbolic = %.loc6_40.1 (constants.%.54f)]
  295. // CHECK:STDOUT: %.loc6_12.1: type = splice_block %.loc6_12.2 [concrete = type] {
  296. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  297. // CHECK:STDOUT: %.loc6_12.2: type = type_literal type [concrete = type]
  298. // CHECK:STDOUT: }
  299. // CHECK:STDOUT: %U.loc6_8.2: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  300. // CHECK:STDOUT: %u.param: @A.WithSelf.F.%ptr.loc6_22.1 (%ptr.8f6) = value_param call_param0
  301. // CHECK:STDOUT: %.loc6_22: type = splice_block %ptr.loc6_22.2 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)] {
  302. // CHECK:STDOUT: %U.ref.loc6_21: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  303. // CHECK:STDOUT: %ptr.loc6_22.2: type = ptr_type %U.ref.loc6_21 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)]
  304. // CHECK:STDOUT: }
  305. // CHECK:STDOUT: %u: @A.WithSelf.F.%ptr.loc6_22.1 (%ptr.8f6) = value_binding u, %u.param
  306. // CHECK:STDOUT: %return.param: ref @A.WithSelf.F.%tuple.type.loc6_40.2 (%tuple.type.762) = out_param call_param1
  307. // CHECK:STDOUT: %return: ref @A.WithSelf.F.%tuple.type.loc6_40.2 (%tuple.type.762) = return_slot %return.param
  308. // CHECK:STDOUT: }
  309. // CHECK:STDOUT: %assoc0.loc6_41.1: @A.WithSelf.%A.assoc_type (%A.assoc_type.9f4) = assoc_entity element0, %A.WithSelf.F.decl [symbolic = %assoc0.loc6_41.2 (constants.%assoc0.146)]
  310. // CHECK:STDOUT:
  311. // CHECK:STDOUT: !members:
  312. // CHECK:STDOUT: .Self = %Self.loc5_23.1
  313. // CHECK:STDOUT: .T = <poisoned>
  314. // CHECK:STDOUT: .T = <poisoned>
  315. // CHECK:STDOUT: .F = @A.WithSelf.%assoc0.loc6_41.1
  316. // CHECK:STDOUT: witness = (@A.WithSelf.%A.WithSelf.F.decl)
  317. // CHECK:STDOUT:
  318. // CHECK:STDOUT: !requires:
  319. // CHECK:STDOUT: }
  320. // CHECK:STDOUT: }
  321. // CHECK:STDOUT:
  322. // CHECK:STDOUT: impl @Y.as.A.impl: %Y.ref as %A.type {
  323. // CHECK:STDOUT: %Y.as.A.impl.F.decl: %Y.as.A.impl.F.type = fn_decl @Y.as.A.impl.F [concrete = constants.%Y.as.A.impl.F] {
  324. // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 0 [concrete]
  325. // CHECK:STDOUT: %u.param_patt: @Y.as.A.impl.F.%pattern_type.loc16_19 (%pattern_type.4f4b84.1) = value_param_pattern [concrete]
  326. // CHECK:STDOUT: %u.patt: @Y.as.A.impl.F.%pattern_type.loc16_19 (%pattern_type.4f4b84.1) = at_binding_pattern u, %u.param_patt [concrete]
  327. // CHECK:STDOUT: %return.param_patt: @Y.as.A.impl.F.%pattern_type.loc16_37 (%pattern_type.06d) = out_param_pattern [concrete]
  328. // CHECK:STDOUT: %return.patt: @Y.as.A.impl.F.%pattern_type.loc16_37 (%pattern_type.06d) = return_slot_pattern %return.param_patt, %.loc16_37.3 [concrete]
  329. // CHECK:STDOUT: } {
  330. // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
  331. // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
  332. // CHECK:STDOUT: %U.ref.loc16_35: type = name_ref U, %U.loc16_8.2 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
  333. // CHECK:STDOUT: %ptr.loc16_36: type = ptr_type %U.ref.loc16_35 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)]
  334. // CHECK:STDOUT: %.loc16_37.2: %tuple.type.ff9 = tuple_literal (%X.ref, %Y.ref, %ptr.loc16_36) [symbolic = %tuple (constants.%tuple.7ab)]
  335. // CHECK:STDOUT: %.loc16_37.3: type = converted %.loc16_37.2, constants.%tuple.type.244 [symbolic = %tuple.type.loc16 (constants.%tuple.type.244)]
  336. // CHECK:STDOUT: %.loc16_37.4: Core.Form = init_form %.loc16_37.3 [symbolic = %.loc16_37.1 (constants.%.0dc)]
  337. // CHECK:STDOUT: %.loc16_12.1: type = splice_block %.loc16_12.2 [concrete = type] {
  338. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  339. // CHECK:STDOUT: %.loc16_12.2: type = type_literal type [concrete = type]
  340. // CHECK:STDOUT: }
  341. // CHECK:STDOUT: %U.loc16_8.2: type = symbolic_binding U, 0 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
  342. // CHECK:STDOUT: %u.param: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = value_param call_param0
  343. // CHECK:STDOUT: %.loc16_22: type = splice_block %ptr.loc16_22.2 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)] {
  344. // CHECK:STDOUT: %U.ref.loc16_21: type = name_ref U, %U.loc16_8.2 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
  345. // CHECK:STDOUT: %ptr.loc16_22.2: type = ptr_type %U.ref.loc16_21 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)]
  346. // CHECK:STDOUT: }
  347. // CHECK:STDOUT: %u: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = value_binding u, %u.param
  348. // CHECK:STDOUT: %return.param: ref @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.244) = out_param call_param1
  349. // CHECK:STDOUT: %return: ref @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.244) = return_slot %return.param
  350. // CHECK:STDOUT: }
  351. // CHECK:STDOUT: %A.impl_witness_table = impl_witness_table (%Y.as.A.impl.F.decl), @Y.as.A.impl [concrete]
  352. // CHECK:STDOUT: %A.impl_witness: <witness> = impl_witness %A.impl_witness_table [concrete = constants.%A.impl_witness]
  353. // CHECK:STDOUT:
  354. // CHECK:STDOUT: !members:
  355. // CHECK:STDOUT: .X = <poisoned>
  356. // CHECK:STDOUT: .Y = <poisoned>
  357. // CHECK:STDOUT: .F = %Y.as.A.impl.F.decl
  358. // CHECK:STDOUT: witness = %A.impl_witness
  359. // CHECK:STDOUT: }
  360. // CHECK:STDOUT:
  361. // CHECK:STDOUT: class @X {
  362. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  363. // CHECK:STDOUT: complete_type_witness = %complete_type
  364. // CHECK:STDOUT:
  365. // CHECK:STDOUT: !members:
  366. // CHECK:STDOUT: .Self = constants.%X
  367. // CHECK:STDOUT: }
  368. // CHECK:STDOUT:
  369. // CHECK:STDOUT: class @Y {
  370. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  371. // CHECK:STDOUT: complete_type_witness = %complete_type
  372. // CHECK:STDOUT:
  373. // CHECK:STDOUT: !members:
  374. // CHECK:STDOUT: .Self = constants.%Y
  375. // CHECK:STDOUT: }
  376. // CHECK:STDOUT:
  377. // CHECK:STDOUT: class @Z {
  378. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  379. // CHECK:STDOUT: complete_type_witness = %complete_type
  380. // CHECK:STDOUT:
  381. // CHECK:STDOUT: !members:
  382. // CHECK:STDOUT: .Self = constants.%Z
  383. // CHECK:STDOUT: }
  384. // CHECK:STDOUT:
  385. // CHECK:STDOUT: generic fn @A.WithSelf.F(@A.%T.loc5_13.2: type, @A.%Self.loc5_23.1: @A.%A.type (%A.type.ade), %U.loc6_8.2: type) {
  386. // CHECK:STDOUT: %U.loc6_8.1: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  387. // CHECK:STDOUT: %ptr.loc6_22.1: type = ptr_type %U.loc6_8.1 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)]
  388. // CHECK:STDOUT: %pattern_type.loc6_19: type = pattern_type %ptr.loc6_22.1 [symbolic = %pattern_type.loc6_19 (constants.%pattern_type.986)]
  389. // CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T.67d)]
  390. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T)> [symbolic = %A.type (constants.%A.type.ade)]
  391. // CHECK:STDOUT: %Self: @A.WithSelf.F.%A.type (%A.type.ade) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.362)]
  392. // CHECK:STDOUT: %tuple.type.loc6_40.1: type = tuple_type (type, %A.type, type) [symbolic = %tuple.type.loc6_40.1 (constants.%tuple.type.f2d)]
  393. // CHECK:STDOUT: %tuple: @A.WithSelf.F.%tuple.type.loc6_40.1 (%tuple.type.f2d) = tuple_value (%T, %Self, %ptr.loc6_22.1) [symbolic = %tuple (constants.%tuple.2c7)]
  394. // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.7ec)]
  395. // CHECK:STDOUT: %tuple.type.loc6_40.2: type = tuple_type (%T, %Self.binding.as_type, %ptr.loc6_22.1) [symbolic = %tuple.type.loc6_40.2 (constants.%tuple.type.762)]
  396. // CHECK:STDOUT: %.loc6_40.1: Core.Form = init_form %tuple.type.loc6_40.2 [symbolic = %.loc6_40.1 (constants.%.54f)]
  397. // CHECK:STDOUT: %pattern_type.loc6_40: type = pattern_type %tuple.type.loc6_40.2 [symbolic = %pattern_type.loc6_40 (constants.%pattern_type.f66)]
  398. // CHECK:STDOUT:
  399. // CHECK:STDOUT: fn(%u.param: @A.WithSelf.F.%ptr.loc6_22.1 (%ptr.8f6)) -> out %return.param: @A.WithSelf.F.%tuple.type.loc6_40.2 (%tuple.type.762);
  400. // CHECK:STDOUT: }
  401. // CHECK:STDOUT:
  402. // CHECK:STDOUT: generic fn @Y.as.A.impl.F(%U.loc16_8.2: type) {
  403. // CHECK:STDOUT: %U.loc16_8.1: type = symbolic_binding U, 0 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
  404. // CHECK:STDOUT: %ptr.loc16_22.1: type = ptr_type %U.loc16_8.1 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)]
  405. // CHECK:STDOUT: %pattern_type.loc16_19: type = pattern_type %ptr.loc16_22.1 [symbolic = %pattern_type.loc16_19 (constants.%pattern_type.4f4b84.1)]
  406. // CHECK:STDOUT: %tuple: %tuple.type.ff9 = tuple_value (constants.%X, constants.%Y, %ptr.loc16_22.1) [symbolic = %tuple (constants.%tuple.7ab)]
  407. // CHECK:STDOUT: %tuple.type.loc16: type = tuple_type (constants.%X, constants.%Y, %ptr.loc16_22.1) [symbolic = %tuple.type.loc16 (constants.%tuple.type.244)]
  408. // CHECK:STDOUT: %.loc16_37.1: Core.Form = init_form %tuple.type.loc16 [symbolic = %.loc16_37.1 (constants.%.0dc)]
  409. // CHECK:STDOUT: %pattern_type.loc16_37: type = pattern_type %tuple.type.loc16 [symbolic = %pattern_type.loc16_37 (constants.%pattern_type.06d)]
  410. // CHECK:STDOUT:
  411. // CHECK:STDOUT: !definition:
  412. // CHECK:STDOUT: %require_complete.loc16_19: <witness> = require_complete_type %ptr.loc16_22.1 [symbolic = %require_complete.loc16_19 (constants.%require_complete.ef162c.1)]
  413. // CHECK:STDOUT: %require_complete.loc16_37: <witness> = require_complete_type %tuple.type.loc16 [symbolic = %require_complete.loc16_37 (constants.%require_complete.034)]
  414. // CHECK:STDOUT: %tuple.type.loc17: type = tuple_type (constants.%empty_struct_type, constants.%empty_struct_type, %ptr.loc16_22.1) [symbolic = %tuple.type.loc17 (constants.%tuple.type.dd2)]
  415. // CHECK:STDOUT: %Copy.lookup_impl_witness: <witness> = lookup_impl_witness %ptr.loc16_22.1, @Copy [symbolic = %Copy.lookup_impl_witness (constants.%Copy.lookup_impl_witness.2e6)]
  416. // CHECK:STDOUT: %.loc17_21.1: require_specific_def_type = require_specific_def @ptr.as.Copy.impl(%U.loc16_8.1) [symbolic = %.loc17_21.1 (constants.%.2f2)]
  417. // CHECK:STDOUT: %Copy.facet: %Copy.type = facet_value %ptr.loc16_22.1, (%Copy.lookup_impl_witness) [symbolic = %Copy.facet (constants.%Copy.facet.c25)]
  418. // CHECK:STDOUT: %Copy.WithSelf.Op.type: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet) [symbolic = %Copy.WithSelf.Op.type (constants.%Copy.WithSelf.Op.type.d82)]
  419. // CHECK:STDOUT: %.loc17_21.2: type = fn_type_with_self_type %Copy.WithSelf.Op.type, %Copy.facet [symbolic = %.loc17_21.2 (constants.%.299)]
  420. // CHECK:STDOUT: %impl.elem0.loc17_21.2: @Y.as.A.impl.F.%.loc17_21.2 (%.299) = impl_witness_access %Copy.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc17_21.2 (constants.%impl.elem0.1c7)]
  421. // CHECK:STDOUT: %specific_impl_fn.loc17_21.2: <specific function> = specific_impl_function %impl.elem0.loc17_21.2, @Copy.WithSelf.Op(%Copy.facet) [symbolic = %specific_impl_fn.loc17_21.2 (constants.%specific_impl_fn.366)]
  422. // CHECK:STDOUT:
  423. // CHECK:STDOUT: fn(%u.param: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1)) -> out %return.param: @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.244) {
  424. // CHECK:STDOUT: !entry:
  425. // CHECK:STDOUT: %.loc17_14.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  426. // CHECK:STDOUT: %.loc17_18.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  427. // CHECK:STDOUT: %u.ref: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = name_ref u, %u
  428. // CHECK:STDOUT: %.loc17_22.1: @Y.as.A.impl.F.%tuple.type.loc17 (%tuple.type.dd2) = tuple_literal (%.loc17_14.1, %.loc17_18.1, %u.ref)
  429. // CHECK:STDOUT: %tuple.elem0: ref %X = tuple_access %return.param, element0
  430. // CHECK:STDOUT: %.loc17_14.2: init %X to %tuple.elem0 = class_init () [concrete = constants.%X.val]
  431. // CHECK:STDOUT: %.loc17_22.2: init %X = converted %.loc17_14.1, %.loc17_14.2 [concrete = constants.%X.val]
  432. // CHECK:STDOUT: %tuple.elem1: ref %Y = tuple_access %return.param, element1
  433. // CHECK:STDOUT: %.loc17_18.2: init %Y to %tuple.elem1 = class_init () [concrete = constants.%Y.val]
  434. // CHECK:STDOUT: %.loc17_22.3: init %Y = converted %.loc17_18.1, %.loc17_18.2 [concrete = constants.%Y.val]
  435. // CHECK:STDOUT: %impl.elem0.loc17_21.1: @Y.as.A.impl.F.%.loc17_21.2 (%.299) = impl_witness_access constants.%Copy.lookup_impl_witness.2e6, element0 [symbolic = %impl.elem0.loc17_21.2 (constants.%impl.elem0.1c7)]
  436. // CHECK:STDOUT: %bound_method.loc17_21.1: <bound method> = bound_method %u.ref, %impl.elem0.loc17_21.1
  437. // CHECK:STDOUT: %specific_impl_fn.loc17_21.1: <specific function> = specific_impl_function %impl.elem0.loc17_21.1, @Copy.WithSelf.Op(constants.%Copy.facet.c25) [symbolic = %specific_impl_fn.loc17_21.2 (constants.%specific_impl_fn.366)]
  438. // CHECK:STDOUT: %bound_method.loc17_21.2: <bound method> = bound_method %u.ref, %specific_impl_fn.loc17_21.1
  439. // CHECK:STDOUT: %Copy.WithSelf.Op.call: init @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = call %bound_method.loc17_21.2(%u.ref)
  440. // CHECK:STDOUT: %tuple.elem2: ref @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = tuple_access %return.param, element2
  441. // CHECK:STDOUT: %.loc17_22.4: init @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) to %tuple.elem2 = in_place_init %Copy.WithSelf.Op.call
  442. // CHECK:STDOUT: %.loc17_22.5: init @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.244) to %return.param = tuple_init (%.loc17_22.2, %.loc17_22.3, %.loc17_22.4)
  443. // CHECK:STDOUT: %.loc17_23: init @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.244) = converted %.loc17_22.1, %.loc17_22.5
  444. // CHECK:STDOUT: return %.loc17_23 to %return.param
  445. // CHECK:STDOUT: }
  446. // CHECK:STDOUT: }
  447. // CHECK:STDOUT:
  448. // CHECK:STDOUT: fn @Call() {
  449. // CHECK:STDOUT: !entry:
  450. // CHECK:STDOUT: name_binding_decl {
  451. // CHECK:STDOUT: %u.patt: %pattern_type.bdb = ref_binding_pattern u [concrete]
  452. // CHECK:STDOUT: %u.var_patt: %pattern_type.bdb = var_pattern %u.patt [concrete]
  453. // CHECK:STDOUT: }
  454. // CHECK:STDOUT: %u.var: ref %Z = var %u.var_patt
  455. // CHECK:STDOUT: %DefaultOrUnformed.facet: %DefaultOrUnformed.type = facet_value constants.%Z, (constants.%DefaultOrUnformed.impl_witness.263) [concrete = constants.%DefaultOrUnformed.facet]
  456. // CHECK:STDOUT: %.loc22_11.1: %DefaultOrUnformed.type = converted constants.%Z, %DefaultOrUnformed.facet [concrete = constants.%DefaultOrUnformed.facet]
  457. // CHECK:STDOUT: %as_type.loc22: type = facet_access_type %.loc22_11.1 [concrete = constants.%Z]
  458. // CHECK:STDOUT: %.loc22_11.2: type = converted %.loc22_11.1, %as_type.loc22 [concrete = constants.%Z]
  459. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.specific_fn: <specific function> = specific_function constants.%T.as.DefaultOrUnformed.impl.Op.4f1, @T.as.DefaultOrUnformed.impl.Op(constants.%Z) [concrete = constants.%T.as.DefaultOrUnformed.impl.Op.specific_fn]
  460. // CHECK:STDOUT: %.loc22_3: ref %Z = splice_block %u.var {}
  461. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.call: init %Z to %.loc22_3 = call %T.as.DefaultOrUnformed.impl.Op.specific_fn()
  462. // CHECK:STDOUT: assign %u.var, %T.as.DefaultOrUnformed.impl.Op.call
  463. // CHECK:STDOUT: %Z.ref.loc22: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
  464. // CHECK:STDOUT: %u: ref %Z = ref_binding u, %u.var
  465. // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
  466. // CHECK:STDOUT: %A.ref: %A.type.464 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
  467. // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
  468. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.ab6]
  469. // CHECK:STDOUT: %A.facet: %A.type.ab6 = facet_value %Y.ref, (constants.%A.impl_witness) [concrete = constants.%A.facet]
  470. // CHECK:STDOUT: %.loc23_6: %A.type.ab6 = converted %Y.ref, %A.facet [concrete = constants.%A.facet]
  471. // CHECK:STDOUT: %as_type.loc23: type = facet_access_type %.loc23_6 [concrete = constants.%Y]
  472. // CHECK:STDOUT: %.loc23_14.1: type = converted %.loc23_6, %as_type.loc23 [concrete = constants.%Y]
  473. // CHECK:STDOUT: %.loc23_14.2: %A.assoc_type.f05 = specific_constant @A.WithSelf.%assoc0.loc6_41.1, @A.WithSelf(constants.%X, constants.%A.facet) [concrete = constants.%assoc0.368]
  474. // CHECK:STDOUT: %F.ref: %A.assoc_type.f05 = name_ref F, %.loc23_14.2 [concrete = constants.%assoc0.368]
  475. // CHECK:STDOUT: %impl.elem0: %.de2 = impl_witness_access constants.%A.impl_witness, element0 [concrete = constants.%Y.as.A.impl.F]
  476. // CHECK:STDOUT: %Z.ref.loc23: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
  477. // CHECK:STDOUT: %u.ref: ref %Z = name_ref u, %u
  478. // CHECK:STDOUT: %addr: %ptr.2a0 = addr_of %u.ref
  479. // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0, @Y.as.A.impl.F(constants.%Z) [concrete = constants.%Y.as.A.impl.F.specific_fn]
  480. // CHECK:STDOUT: %.loc23_22.1: ref %tuple.type.847 = temporary_storage
  481. // CHECK:STDOUT: %Y.as.A.impl.F.call: init %tuple.type.847 to %.loc23_22.1 = call %specific_fn(%addr)
  482. // CHECK:STDOUT: %.loc23_22.2: ref %tuple.type.847 = temporary %.loc23_22.1, %Y.as.A.impl.F.call
  483. // CHECK:STDOUT: %Destroy.Op.bound.loc23: <bound method> = bound_method %.loc23_22.2, constants.%Destroy.Op.651ba6.1
  484. // CHECK:STDOUT: %Destroy.Op.call.loc23: init %empty_tuple.type = call %Destroy.Op.bound.loc23(%.loc23_22.2)
  485. // CHECK:STDOUT: %Destroy.Op.bound.loc22: <bound method> = bound_method %u.var, constants.%Destroy.Op.651ba6.2
  486. // CHECK:STDOUT: %Destroy.Op.call.loc22: init %empty_tuple.type = call %Destroy.Op.bound.loc22(%u.var)
  487. // CHECK:STDOUT: return
  488. // CHECK:STDOUT: }
  489. // CHECK:STDOUT:
  490. // CHECK:STDOUT: fn @Destroy.Op.loc23(%self.param: ref %tuple.type.847) = "no_op";
  491. // CHECK:STDOUT:
  492. // CHECK:STDOUT: fn @Destroy.Op.loc22(%self.param: ref %Z) = "no_op";
  493. // CHECK:STDOUT:
  494. // CHECK:STDOUT: generic fn @CallGeneric(%T.loc26_16.2: %A.type.ab6) {
  495. // CHECK:STDOUT: %T.loc26_16.1: %A.type.ab6 = symbolic_binding T, 0 [symbolic = %T.loc26_16.1 (constants.%T.2bc)]
  496. // CHECK:STDOUT:
  497. // CHECK:STDOUT: !definition:
  498. // CHECK:STDOUT: %T.binding.as_type: type = symbolic_binding_type T, 0, %T.loc26_16.1 [symbolic = %T.binding.as_type (constants.%T.binding.as_type.3d0)]
  499. // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.loc26_16.1, @A, @A(constants.%X) [symbolic = %A.lookup_impl_witness (constants.%A.lookup_impl_witness)]
  500. // CHECK:STDOUT: %A.WithSelf.F.type: type = fn_type @A.WithSelf.F, @A.WithSelf(constants.%X, %T.loc26_16.1) [symbolic = %A.WithSelf.F.type (constants.%A.WithSelf.F.type.f08)]
  501. // CHECK:STDOUT: %.loc28_4.3: type = fn_type_with_self_type %A.WithSelf.F.type, %T.loc26_16.1 [symbolic = %.loc28_4.3 (constants.%.189)]
  502. // CHECK:STDOUT: %impl.elem0.loc28_4.2: @CallGeneric.%.loc28_4.3 (%.189) = impl_witness_access %A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0.86f8)]
  503. // CHECK:STDOUT: %specific_impl_fn.loc28_4.2: <specific function> = specific_impl_function %impl.elem0.loc28_4.2, @A.WithSelf.F(constants.%X, %T.loc26_16.1, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn.44b)]
  504. // CHECK:STDOUT: %tuple.type: type = tuple_type (constants.%X, %T.binding.as_type, constants.%ptr.2a0) [symbolic = %tuple.type (constants.%tuple.type.a50)]
  505. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %tuple.type [symbolic = %require_complete (constants.%require_complete.8fa)]
  506. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %tuple.type, @Destroy [symbolic = %Destroy.lookup_impl_witness (constants.%Destroy.lookup_impl_witness)]
  507. // CHECK:STDOUT: %Destroy.facet: %Destroy.type = facet_value %tuple.type, (%Destroy.lookup_impl_witness) [symbolic = %Destroy.facet (constants.%Destroy.facet.df5)]
  508. // CHECK:STDOUT: %Destroy.WithSelf.Op.type: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet) [symbolic = %Destroy.WithSelf.Op.type (constants.%Destroy.WithSelf.Op.type.707)]
  509. // CHECK:STDOUT: %.loc28_12.3: type = fn_type_with_self_type %Destroy.WithSelf.Op.type, %Destroy.facet [symbolic = %.loc28_12.3 (constants.%.11e)]
  510. // CHECK:STDOUT: %impl.elem0.loc28_12.2: @CallGeneric.%.loc28_12.3 (%.11e) = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_12.2 (constants.%impl.elem0.853)]
  511. // CHECK:STDOUT: %specific_impl_fn.loc28_12.2: <specific function> = specific_impl_function %impl.elem0.loc28_12.2, @Destroy.WithSelf.Op(%Destroy.facet) [symbolic = %specific_impl_fn.loc28_12.2 (constants.%specific_impl_fn.8a5)]
  512. // CHECK:STDOUT:
  513. // CHECK:STDOUT: fn() {
  514. // CHECK:STDOUT: !entry:
  515. // CHECK:STDOUT: name_binding_decl {
  516. // CHECK:STDOUT: %u.patt: %pattern_type.bdb = ref_binding_pattern u [concrete]
  517. // CHECK:STDOUT: %u.var_patt: %pattern_type.bdb = var_pattern %u.patt [concrete]
  518. // CHECK:STDOUT: }
  519. // CHECK:STDOUT: %u.var: ref %Z = var %u.var_patt
  520. // CHECK:STDOUT: %DefaultOrUnformed.facet: %DefaultOrUnformed.type = facet_value constants.%Z, (constants.%DefaultOrUnformed.impl_witness.263) [concrete = constants.%DefaultOrUnformed.facet]
  521. // CHECK:STDOUT: %.loc27_11.1: %DefaultOrUnformed.type = converted constants.%Z, %DefaultOrUnformed.facet [concrete = constants.%DefaultOrUnformed.facet]
  522. // CHECK:STDOUT: %as_type: type = facet_access_type %.loc27_11.1 [concrete = constants.%Z]
  523. // CHECK:STDOUT: %.loc27_11.2: type = converted %.loc27_11.1, %as_type [concrete = constants.%Z]
  524. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.specific_fn: <specific function> = specific_function constants.%T.as.DefaultOrUnformed.impl.Op.4f1, @T.as.DefaultOrUnformed.impl.Op(constants.%Z) [concrete = constants.%T.as.DefaultOrUnformed.impl.Op.specific_fn]
  525. // CHECK:STDOUT: %.loc27_3: ref %Z = splice_block %u.var {}
  526. // CHECK:STDOUT: %T.as.DefaultOrUnformed.impl.Op.call: init %Z to %.loc27_3 = call %T.as.DefaultOrUnformed.impl.Op.specific_fn()
  527. // CHECK:STDOUT: assign %u.var, %T.as.DefaultOrUnformed.impl.Op.call
  528. // CHECK:STDOUT: %Z.ref.loc27: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
  529. // CHECK:STDOUT: %u: ref %Z = ref_binding u, %u.var
  530. // CHECK:STDOUT: %T.ref: %A.type.ab6 = name_ref T, %T.loc26_16.2 [symbolic = %T.loc26_16.1 (constants.%T.2bc)]
  531. // CHECK:STDOUT: %T.as_type: type = facet_access_type %T.ref [symbolic = %T.binding.as_type (constants.%T.binding.as_type.3d0)]
  532. // CHECK:STDOUT: %.loc28_4.1: type = converted %T.ref, %T.as_type [symbolic = %T.binding.as_type (constants.%T.binding.as_type.3d0)]
  533. // CHECK:STDOUT: %.loc28_4.2: %A.assoc_type.f05 = specific_constant @A.WithSelf.%assoc0.loc6_41.1, @A.WithSelf(constants.%X, constants.%T.2bc) [concrete = constants.%assoc0.368]
  534. // CHECK:STDOUT: %F.ref: %A.assoc_type.f05 = name_ref F, %.loc28_4.2 [concrete = constants.%assoc0.368]
  535. // CHECK:STDOUT: %impl.elem0.loc28_4.1: @CallGeneric.%.loc28_4.3 (%.189) = impl_witness_access constants.%A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0.86f8)]
  536. // CHECK:STDOUT: %Z.ref.loc28: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
  537. // CHECK:STDOUT: %u.ref: ref %Z = name_ref u, %u
  538. // CHECK:STDOUT: %addr: %ptr.2a0 = addr_of %u.ref
  539. // CHECK:STDOUT: %specific_impl_fn.loc28_4.1: <specific function> = specific_impl_function %impl.elem0.loc28_4.1, @A.WithSelf.F(constants.%X, constants.%T.2bc, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn.44b)]
  540. // CHECK:STDOUT: %.loc28_12.1: ref @CallGeneric.%tuple.type (%tuple.type.a50) = temporary_storage
  541. // CHECK:STDOUT: %A.WithSelf.F.call: init @CallGeneric.%tuple.type (%tuple.type.a50) to %.loc28_12.1 = call %specific_impl_fn.loc28_4.1(%addr)
  542. // CHECK:STDOUT: %.loc28_12.2: ref @CallGeneric.%tuple.type (%tuple.type.a50) = temporary %.loc28_12.1, %A.WithSelf.F.call
  543. // CHECK:STDOUT: %impl.elem0.loc28_12.1: @CallGeneric.%.loc28_12.3 (%.11e) = impl_witness_access constants.%Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_12.2 (constants.%impl.elem0.853)]
  544. // CHECK:STDOUT: %bound_method.loc28_12.1: <bound method> = bound_method %.loc28_12.2, %impl.elem0.loc28_12.1
  545. // CHECK:STDOUT: %specific_impl_fn.loc28_12.1: <specific function> = specific_impl_function %impl.elem0.loc28_12.1, @Destroy.WithSelf.Op(constants.%Destroy.facet.df5) [symbolic = %specific_impl_fn.loc28_12.2 (constants.%specific_impl_fn.8a5)]
  546. // CHECK:STDOUT: %bound_method.loc28_12.2: <bound method> = bound_method %.loc28_12.2, %specific_impl_fn.loc28_12.1
  547. // CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call %bound_method.loc28_12.2(%.loc28_12.2)
  548. // CHECK:STDOUT: %Destroy.Op.bound: <bound method> = bound_method %u.var, constants.%Destroy.Op.651ba6.2
  549. // CHECK:STDOUT: %Destroy.Op.call: init %empty_tuple.type = call %Destroy.Op.bound(%u.var)
  550. // CHECK:STDOUT: return
  551. // CHECK:STDOUT: }
  552. // CHECK:STDOUT: }
  553. // CHECK:STDOUT:
  554. // CHECK:STDOUT: fn @CallIndirect() {
  555. // CHECK:STDOUT: !entry:
  556. // CHECK:STDOUT: %CallGeneric.ref: %CallGeneric.type = name_ref CallGeneric, file.%CallGeneric.decl [concrete = constants.%CallGeneric]
  557. // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
  558. // CHECK:STDOUT: %A.facet: %A.type.ab6 = facet_value %Y.ref, (constants.%A.impl_witness) [concrete = constants.%A.facet]
  559. // CHECK:STDOUT: %.loc32: %A.type.ab6 = converted %Y.ref, %A.facet [concrete = constants.%A.facet]
  560. // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric.ref, @CallGeneric(constants.%A.facet) [concrete = constants.%CallGeneric.specific_fn]
  561. // CHECK:STDOUT: %CallGeneric.call: init %empty_tuple.type = call %CallGeneric.specific_fn()
  562. // CHECK:STDOUT: return
  563. // CHECK:STDOUT: }
  564. // CHECK:STDOUT:
  565. // CHECK:STDOUT: specific @A(constants.%T.67d) {
  566. // CHECK:STDOUT: %T.loc5_13.1 => constants.%T.67d
  567. // CHECK:STDOUT: }
  568. // CHECK:STDOUT:
  569. // CHECK:STDOUT: specific @A.WithSelf(constants.%T.67d, constants.%Self.362) {}
  570. // CHECK:STDOUT:
  571. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%T.67d, constants.%Self.362, constants.%U.4e7) {
  572. // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.4e7
  573. // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.8f6
  574. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.986
  575. // CHECK:STDOUT: %T => constants.%T.67d
  576. // CHECK:STDOUT: %A.type => constants.%A.type.ade
  577. // CHECK:STDOUT: %Self => constants.%Self.362
  578. // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.f2d
  579. // CHECK:STDOUT: %tuple => constants.%tuple.2c7
  580. // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.7ec
  581. // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.762
  582. // CHECK:STDOUT: %.loc6_40.1 => constants.%.54f
  583. // CHECK:STDOUT: %pattern_type.loc6_40 => constants.%pattern_type.f66
  584. // CHECK:STDOUT: }
  585. // CHECK:STDOUT:
  586. // CHECK:STDOUT: specific @A(constants.%X) {
  587. // CHECK:STDOUT: %T.loc5_13.1 => constants.%X
  588. // CHECK:STDOUT:
  589. // CHECK:STDOUT: !definition:
  590. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  591. // CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.e87
  592. // CHECK:STDOUT: }
  593. // CHECK:STDOUT:
  594. // CHECK:STDOUT: specific @A.WithSelf(constants.%X, constants.%Self.362) {
  595. // CHECK:STDOUT: !definition:
  596. // CHECK:STDOUT: %T => constants.%X
  597. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  598. // CHECK:STDOUT: %Self => constants.%Self.362
  599. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.ba2
  600. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.e5f
  601. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.f05
  602. // CHECK:STDOUT: %assoc0.loc6_41.2 => constants.%assoc0.368
  603. // CHECK:STDOUT: }
  604. // CHECK:STDOUT:
  605. // CHECK:STDOUT: specific @Y.as.A.impl.F(constants.%U.67d) {
  606. // CHECK:STDOUT: %U.loc16_8.1 => constants.%U.67d
  607. // CHECK:STDOUT: %ptr.loc16_22.1 => constants.%ptr.e8f8f9.1
  608. // CHECK:STDOUT: %pattern_type.loc16_19 => constants.%pattern_type.4f4b84.1
  609. // CHECK:STDOUT: %tuple => constants.%tuple.7ab
  610. // CHECK:STDOUT: %tuple.type.loc16 => constants.%tuple.type.244
  611. // CHECK:STDOUT: %.loc16_37.1 => constants.%.0dc
  612. // CHECK:STDOUT: %pattern_type.loc16_37 => constants.%pattern_type.06d
  613. // CHECK:STDOUT: }
  614. // CHECK:STDOUT:
  615. // CHECK:STDOUT: specific @A.WithSelf(constants.%X, constants.%A.facet) {
  616. // CHECK:STDOUT: !definition:
  617. // CHECK:STDOUT: %T => constants.%X
  618. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  619. // CHECK:STDOUT: %Self => constants.%A.facet
  620. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.12f
  621. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.48c
  622. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.f05
  623. // CHECK:STDOUT: %assoc0.loc6_41.2 => constants.%assoc0.368
  624. // CHECK:STDOUT: }
  625. // CHECK:STDOUT:
  626. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%X, constants.%A.facet, constants.%U.67d) {
  627. // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.67d
  628. // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.e8f8f9.1
  629. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.4f4b84.1
  630. // CHECK:STDOUT: %T => constants.%X
  631. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  632. // CHECK:STDOUT: %Self => constants.%A.facet
  633. // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.f96
  634. // CHECK:STDOUT: %tuple => constants.%tuple.5c5
  635. // CHECK:STDOUT: %Self.binding.as_type => constants.%Y
  636. // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.244
  637. // CHECK:STDOUT: %.loc6_40.1 => constants.%.0dc
  638. // CHECK:STDOUT: %pattern_type.loc6_40 => constants.%pattern_type.06d
  639. // CHECK:STDOUT: }
  640. // CHECK:STDOUT:
  641. // CHECK:STDOUT: specific @Y.as.A.impl.F(constants.%Z) {
  642. // CHECK:STDOUT: %U.loc16_8.1 => constants.%Z
  643. // CHECK:STDOUT: %ptr.loc16_22.1 => constants.%ptr.2a0
  644. // CHECK:STDOUT: %pattern_type.loc16_19 => constants.%pattern_type.771
  645. // CHECK:STDOUT: %tuple => constants.%tuple.84f
  646. // CHECK:STDOUT: %tuple.type.loc16 => constants.%tuple.type.847
  647. // CHECK:STDOUT: %.loc16_37.1 => constants.%.88e
  648. // CHECK:STDOUT: %pattern_type.loc16_37 => constants.%pattern_type.79c
  649. // CHECK:STDOUT:
  650. // CHECK:STDOUT: !definition:
  651. // CHECK:STDOUT: %require_complete.loc16_19 => constants.%complete_type.543
  652. // CHECK:STDOUT: %require_complete.loc16_37 => constants.%complete_type.28e
  653. // CHECK:STDOUT: %tuple.type.loc17 => constants.%tuple.type.0dd
  654. // CHECK:STDOUT: %Copy.lookup_impl_witness => constants.%Copy.impl_witness.425
  655. // CHECK:STDOUT: %.loc17_21.1 => constants.%.157
  656. // CHECK:STDOUT: %Copy.facet => constants.%Copy.facet.26e
  657. // CHECK:STDOUT: %Copy.WithSelf.Op.type => constants.%Copy.WithSelf.Op.type.a8b
  658. // CHECK:STDOUT: %.loc17_21.2 => constants.%.2ef
  659. // CHECK:STDOUT: %impl.elem0.loc17_21.2 => constants.%ptr.as.Copy.impl.Op.7d1
  660. // CHECK:STDOUT: %specific_impl_fn.loc17_21.2 => constants.%ptr.as.Copy.impl.Op.specific_fn
  661. // CHECK:STDOUT: }
  662. // CHECK:STDOUT:
  663. // CHECK:STDOUT: specific @CallGeneric(constants.%T.2bc) {
  664. // CHECK:STDOUT: %T.loc26_16.1 => constants.%T.2bc
  665. // CHECK:STDOUT: }
  666. // CHECK:STDOUT:
  667. // CHECK:STDOUT: specific @A.WithSelf(constants.%X, constants.%T.2bc) {
  668. // CHECK:STDOUT: !definition:
  669. // CHECK:STDOUT: %T => constants.%X
  670. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  671. // CHECK:STDOUT: %Self => constants.%T.2bc
  672. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.f08
  673. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.7ad
  674. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.f05
  675. // CHECK:STDOUT: %assoc0.loc6_41.2 => constants.%assoc0.368
  676. // CHECK:STDOUT: }
  677. // CHECK:STDOUT:
  678. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%X, constants.%T.2bc, constants.%Z) {
  679. // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
  680. // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.2a0
  681. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.771
  682. // CHECK:STDOUT: %T => constants.%X
  683. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  684. // CHECK:STDOUT: %Self => constants.%T.2bc
  685. // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.f96
  686. // CHECK:STDOUT: %tuple => constants.%tuple.d24
  687. // CHECK:STDOUT: %Self.binding.as_type => constants.%T.binding.as_type.3d0
  688. // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.a50
  689. // CHECK:STDOUT: %.loc6_40.1 => constants.%.69c
  690. // CHECK:STDOUT: %pattern_type.loc6_40 => constants.%pattern_type.160
  691. // CHECK:STDOUT: }
  692. // CHECK:STDOUT:
  693. // CHECK:STDOUT: specific @CallGeneric(constants.%A.facet) {
  694. // CHECK:STDOUT: %T.loc26_16.1 => constants.%A.facet
  695. // CHECK:STDOUT:
  696. // CHECK:STDOUT: !definition:
  697. // CHECK:STDOUT: %T.binding.as_type => constants.%Y
  698. // CHECK:STDOUT: %A.lookup_impl_witness => constants.%A.impl_witness
  699. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.12f
  700. // CHECK:STDOUT: %.loc28_4.3 => constants.%.de2
  701. // CHECK:STDOUT: %impl.elem0.loc28_4.2 => constants.%Y.as.A.impl.F
  702. // CHECK:STDOUT: %specific_impl_fn.loc28_4.2 => constants.%Y.as.A.impl.F.specific_fn
  703. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.847
  704. // CHECK:STDOUT: %require_complete => constants.%complete_type.28e
  705. // CHECK:STDOUT: %Destroy.lookup_impl_witness => constants.%custom_witness.8d7fae.1
  706. // CHECK:STDOUT: %Destroy.facet => constants.%Destroy.facet.bba
  707. // CHECK:STDOUT: %Destroy.WithSelf.Op.type => constants.%Destroy.WithSelf.Op.type.770
  708. // CHECK:STDOUT: %.loc28_12.3 => constants.%.f4b
  709. // CHECK:STDOUT: %impl.elem0.loc28_12.2 => constants.%Destroy.Op.651ba6.1
  710. // CHECK:STDOUT: %specific_impl_fn.loc28_12.2 => constants.%Destroy.Op.651ba6.1
  711. // CHECK:STDOUT: }
  712. // CHECK:STDOUT:
  713. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%X, constants.%A.facet, constants.%Z) {
  714. // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
  715. // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.2a0
  716. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.771
  717. // CHECK:STDOUT: %T => constants.%X
  718. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  719. // CHECK:STDOUT: %Self => constants.%A.facet
  720. // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.f96
  721. // CHECK:STDOUT: %tuple => constants.%tuple.6cd
  722. // CHECK:STDOUT: %Self.binding.as_type => constants.%Y
  723. // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.847
  724. // CHECK:STDOUT: %.loc6_40.1 => constants.%.88e
  725. // CHECK:STDOUT: %pattern_type.loc6_40 => constants.%pattern_type.79c
  726. // CHECK:STDOUT: }
  727. // CHECK:STDOUT:
  728. // CHECK:STDOUT: --- generic_method_more_params.carbon
  729. // CHECK:STDOUT:
  730. // CHECK:STDOUT: constants {
  731. // CHECK:STDOUT: %type: type = facet_type <type> [concrete]
  732. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
  733. // CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
  734. // CHECK:STDOUT: %T.67d: type = symbolic_binding T, 0 [symbolic]
  735. // CHECK:STDOUT: %A.type.464: type = generic_interface_type @A [concrete]
  736. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  737. // CHECK:STDOUT: %A.generic: %A.type.464 = struct_value () [concrete]
  738. // CHECK:STDOUT: %A.type.ade: type = facet_type <@A, @A(%T.67d)> [symbolic]
  739. // CHECK:STDOUT: %Self.362: %A.type.ade = symbolic_binding Self, 1 [symbolic]
  740. // CHECK:STDOUT: %U.4e7: type = symbolic_binding U, 2 [symbolic]
  741. // CHECK:STDOUT: %pattern_type.62e: type = pattern_type %U.4e7 [symbolic]
  742. // CHECK:STDOUT: %tuple.type.f2d: type = tuple_type (type, %A.type.ade, type) [symbolic]
  743. // CHECK:STDOUT: %tuple.f25: %tuple.type.f2d = tuple_value (%T.67d, %Self.362, %U.4e7) [symbolic]
  744. // CHECK:STDOUT: %Self.binding.as_type.7ec: type = symbolic_binding_type Self, 1, %Self.362 [symbolic]
  745. // CHECK:STDOUT: %tuple.type.7f3: type = tuple_type (%T.67d, %Self.binding.as_type.7ec, %U.4e7) [symbolic]
  746. // CHECK:STDOUT: %.0ad: Core.Form = init_form %tuple.type.7f3 [symbolic]
  747. // CHECK:STDOUT: %pattern_type.22d: type = pattern_type %tuple.type.7f3 [symbolic]
  748. // CHECK:STDOUT: %A.WithSelf.F.type.0ed: type = fn_type @A.WithSelf.F, @A.WithSelf(%T.67d, %Self.362) [symbolic]
  749. // CHECK:STDOUT: %A.WithSelf.F.33a: %A.WithSelf.F.type.0ed = struct_value () [symbolic]
  750. // CHECK:STDOUT: %A.assoc_type.9f4: type = assoc_entity_type @A, @A(%T.67d) [symbolic]
  751. // CHECK:STDOUT: %assoc0.146: %A.assoc_type.9f4 = assoc_entity element0, @A.WithSelf.%A.WithSelf.F.decl [symbolic]
  752. // CHECK:STDOUT: %X: type = class_type @X [concrete]
  753. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  754. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
  755. // CHECK:STDOUT: %Y1: type = class_type @Y1 [concrete]
  756. // CHECK:STDOUT: %Y2: type = class_type @Y2 [concrete]
  757. // CHECK:STDOUT: %Z: type = class_type @Z [concrete]
  758. // CHECK:STDOUT: %V1: type = symbolic_binding V1, 0 [symbolic]
  759. // CHECK:STDOUT: %V2: type = symbolic_binding V2, 1 [symbolic]
  760. // CHECK:STDOUT: %W: type = symbolic_binding W, 2 [symbolic]
  761. // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
  762. // CHECK:STDOUT: %tuple.4b9: %tuple.type.24b = tuple_value (%V1, %V2) [symbolic]
  763. // CHECK:STDOUT: %tuple.type.a5e: type = tuple_type (%V1, %V2) [symbolic]
  764. // CHECK:STDOUT: %A.type.fe7: type = facet_type <@A, @A(%W)> [symbolic]
  765. // CHECK:STDOUT: %A.impl_witness.be2: <witness> = impl_witness @tuple.type.as.A.impl.%A.impl_witness_table, @tuple.type.as.A.impl(%V1, %V2, %W) [symbolic]
  766. // CHECK:STDOUT: %Self.d33: %A.type.fe7 = symbolic_binding Self, 1 [symbolic]
  767. // CHECK:STDOUT: %A.WithSelf.F.type.986: type = fn_type @A.WithSelf.F, @A.WithSelf(%W, %Self.362) [symbolic]
  768. // CHECK:STDOUT: %A.WithSelf.F.0f5: %A.WithSelf.F.type.986 = struct_value () [symbolic]
  769. // CHECK:STDOUT: %A.assoc_type.7a9: type = assoc_entity_type @A, @A(%W) [symbolic]
  770. // CHECK:STDOUT: %assoc0.dfc: %A.assoc_type.7a9 = assoc_entity element0, @A.WithSelf.%A.WithSelf.F.decl [symbolic]
  771. // CHECK:STDOUT: %require_complete.9a5: <witness> = require_complete_type %A.type.fe7 [symbolic]
  772. // CHECK:STDOUT: %U.ce4: type = symbolic_binding U, 3 [symbolic]
  773. // CHECK:STDOUT: %pattern_type.e4a: type = pattern_type %U.ce4 [symbolic]
  774. // CHECK:STDOUT: %tuple.type.11f: type = tuple_type (type, %tuple.type.24b, type) [concrete]
  775. // CHECK:STDOUT: %tuple.117: %tuple.type.11f = tuple_value (%W, %tuple.4b9, %U.ce4) [symbolic]
  776. // CHECK:STDOUT: %tuple.type.897: type = tuple_type (%W, %tuple.type.a5e, %U.ce4) [symbolic]
  777. // CHECK:STDOUT: %.f8e: Core.Form = init_form %tuple.type.897 [symbolic]
  778. // CHECK:STDOUT: %pattern_type.5cc: type = pattern_type %tuple.type.897 [symbolic]
  779. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type.ce6: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%V1, %V2, %W) [symbolic]
  780. // CHECK:STDOUT: %tuple.type.as.A.impl.F.74d: %tuple.type.as.A.impl.F.type.ce6 = struct_value () [symbolic]
  781. // CHECK:STDOUT: %A.facet.56b: %A.type.fe7 = facet_value %tuple.type.a5e, (%A.impl_witness.be2) [symbolic]
  782. // CHECK:STDOUT: %A.WithSelf.F.type.104: type = fn_type @A.WithSelf.F, @A.WithSelf(%W, %A.facet.56b) [symbolic]
  783. // CHECK:STDOUT: %A.WithSelf.F.028: %A.WithSelf.F.type.104 = struct_value () [symbolic]
  784. // CHECK:STDOUT: %tuple.type.52a: type = tuple_type (type, %A.type.fe7, type) [symbolic]
  785. // CHECK:STDOUT: %tuple.ec4: %tuple.type.52a = tuple_value (%W, %A.facet.56b, %U.ce4) [symbolic]
  786. // CHECK:STDOUT: %require_complete.5a4: <witness> = require_complete_type %U.ce4 [symbolic]
  787. // CHECK:STDOUT: %require_complete.da0: <witness> = require_complete_type %tuple.type.897 [symbolic]
  788. // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.009: <specific function> = specific_function %tuple.type.as.A.impl.F.74d, @tuple.type.as.A.impl.F(%V1, %V2, %W, %U.ce4) [symbolic]
  789. // CHECK:STDOUT: %Call.type: type = fn_type @Call [concrete]
  790. // CHECK:STDOUT: %Call: %Call.type = struct_value () [concrete]
  791. // CHECK:STDOUT: %tuple.dd5: %tuple.type.24b = tuple_value (%Y1, %Y2) [concrete]
  792. // CHECK:STDOUT: %tuple.type.ab2: type = tuple_type (%Y1, %Y2) [concrete]
  793. // CHECK:STDOUT: %A.type.ab6: type = facet_type <@A, @A(%X)> [concrete]
  794. // CHECK:STDOUT: %A.impl_witness.b3a: <witness> = impl_witness @tuple.type.as.A.impl.%A.impl_witness_table, @tuple.type.as.A.impl(%Y1, %Y2, %X) [concrete]
  795. // CHECK:STDOUT: %Self.e87: %A.type.ab6 = symbolic_binding Self, 1 [symbolic]
  796. // CHECK:STDOUT: %A.WithSelf.F.type.ba2: type = fn_type @A.WithSelf.F, @A.WithSelf(%X, %Self.362) [symbolic]
  797. // CHECK:STDOUT: %A.WithSelf.F.e5f: %A.WithSelf.F.type.ba2 = struct_value () [symbolic]
  798. // CHECK:STDOUT: %A.assoc_type.f05: type = assoc_entity_type @A, @A(%X) [concrete]
  799. // CHECK:STDOUT: %assoc0.368: %A.assoc_type.f05 = assoc_entity element0, @A.WithSelf.%A.WithSelf.F.decl [concrete]
  800. // CHECK:STDOUT: %complete_type.a36: <witness> = complete_type_witness %A.type.ab6 [concrete]
  801. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type.d14: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%Y1, %Y2, %X) [concrete]
  802. // CHECK:STDOUT: %tuple.type.as.A.impl.F.cc8: %tuple.type.as.A.impl.F.type.d14 = struct_value () [concrete]
  803. // CHECK:STDOUT: %A.facet.906: %A.type.ab6 = facet_value %tuple.type.ab2, (%A.impl_witness.b3a) [concrete]
  804. // CHECK:STDOUT: %A.WithSelf.F.type.757: type = fn_type @A.WithSelf.F, @A.WithSelf(%X, %A.facet.906) [concrete]
  805. // CHECK:STDOUT: %A.WithSelf.F.8b6: %A.WithSelf.F.type.757 = struct_value () [concrete]
  806. // CHECK:STDOUT: %.fa2: type = fn_type_with_self_type %A.WithSelf.F.type.757, %A.facet.906 [concrete]
  807. // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
  808. // CHECK:STDOUT: %pattern_type.bdb: type = pattern_type %Z [concrete]
  809. // CHECK:STDOUT: %tuple.66d: %tuple.type.11f = tuple_value (%X, %tuple.dd5, %Z) [concrete]
  810. // CHECK:STDOUT: %tuple.type.65a: type = tuple_type (%X, %tuple.type.ab2, %Z) [concrete]
  811. // CHECK:STDOUT: %.241: Core.Form = init_form %tuple.type.65a [concrete]
  812. // CHECK:STDOUT: %pattern_type.30b: type = pattern_type %tuple.type.65a [concrete]
  813. // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.af6: <specific function> = specific_function %tuple.type.as.A.impl.F.cc8, @tuple.type.as.A.impl.F(%Y1, %Y2, %X, %Z) [concrete]
  814. // CHECK:STDOUT: %Z.val: %Z = struct_value () [concrete]
  815. // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
  816. // CHECK:STDOUT: %Destroy.Op.type.bae255.1: type = fn_type @Destroy.Op.loc24_39 [concrete]
  817. // CHECK:STDOUT: %Destroy.Op.651ba6.1: %Destroy.Op.type.bae255.1 = struct_value () [concrete]
  818. // CHECK:STDOUT: %custom_witness.8d7fae.1: <witness> = custom_witness (%Destroy.Op.651ba6.1), @Destroy [concrete]
  819. // CHECK:STDOUT: %Destroy.facet.9fd: %Destroy.type = facet_value %tuple.type.65a, (%custom_witness.8d7fae.1) [concrete]
  820. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.d36: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.9fd) [concrete]
  821. // CHECK:STDOUT: %.498: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.d36, %Destroy.facet.9fd [concrete]
  822. // CHECK:STDOUT: %Destroy.Op.type.bae255.2: type = fn_type @Destroy.Op.loc24_38 [concrete]
  823. // CHECK:STDOUT: %Destroy.Op.651ba6.2: %Destroy.Op.type.bae255.2 = struct_value () [concrete]
  824. // CHECK:STDOUT: %pattern_type.143: type = pattern_type %A.type.ab6 [concrete]
  825. // CHECK:STDOUT: %T.2bc: %A.type.ab6 = symbolic_binding T, 0 [symbolic]
  826. // CHECK:STDOUT: %CallGeneric.type: type = fn_type @CallGeneric [concrete]
  827. // CHECK:STDOUT: %CallGeneric: %CallGeneric.type = struct_value () [concrete]
  828. // CHECK:STDOUT: %A.WithSelf.F.type.f08: type = fn_type @A.WithSelf.F, @A.WithSelf(%X, %T.2bc) [symbolic]
  829. // CHECK:STDOUT: %A.WithSelf.F.7ad: %A.WithSelf.F.type.f08 = struct_value () [symbolic]
  830. // CHECK:STDOUT: %T.binding.as_type: type = symbolic_binding_type T, 0, %T.2bc [symbolic]
  831. // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.2bc, @A, @A(%X) [symbolic]
  832. // CHECK:STDOUT: %.189: type = fn_type_with_self_type %A.WithSelf.F.type.f08, %T.2bc [symbolic]
  833. // CHECK:STDOUT: %impl.elem0.86f: %.189 = impl_witness_access %A.lookup_impl_witness, element0 [symbolic]
  834. // CHECK:STDOUT: %tuple.type.f96: type = tuple_type (type, %A.type.ab6, type) [concrete]
  835. // CHECK:STDOUT: %tuple.631: %tuple.type.f96 = tuple_value (%X, %T.2bc, %Z) [symbolic]
  836. // CHECK:STDOUT: %tuple.type.856: type = tuple_type (%X, %T.binding.as_type, %Z) [symbolic]
  837. // CHECK:STDOUT: %.5b0: Core.Form = init_form %tuple.type.856 [symbolic]
  838. // CHECK:STDOUT: %pattern_type.4b2: type = pattern_type %tuple.type.856 [symbolic]
  839. // CHECK:STDOUT: %specific_impl_fn.44b: <specific function> = specific_impl_function %impl.elem0.86f, @A.WithSelf.F(%X, %T.2bc, %Z) [symbolic]
  840. // CHECK:STDOUT: %require_complete.7d4: <witness> = require_complete_type %tuple.type.856 [symbolic]
  841. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %tuple.type.856, @Destroy [symbolic]
  842. // CHECK:STDOUT: %Destroy.facet.a1c: %Destroy.type = facet_value %tuple.type.856, (%Destroy.lookup_impl_witness) [symbolic]
  843. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.725: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.a1c) [symbolic]
  844. // CHECK:STDOUT: %.949: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.725, %Destroy.facet.a1c [symbolic]
  845. // CHECK:STDOUT: %impl.elem0.487: %.949 = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic]
  846. // CHECK:STDOUT: %specific_impl_fn.56d: <specific function> = specific_impl_function %impl.elem0.487, @Destroy.WithSelf.Op(%Destroy.facet.a1c) [symbolic]
  847. // CHECK:STDOUT: %CallIndirect.type: type = fn_type @CallIndirect [concrete]
  848. // CHECK:STDOUT: %CallIndirect: %CallIndirect.type = struct_value () [concrete]
  849. // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric, @CallGeneric(%A.facet.906) [concrete]
  850. // CHECK:STDOUT: %complete_type.cf2: <witness> = complete_type_witness %tuple.type.65a [concrete]
  851. // CHECK:STDOUT: %tuple.5e4: %tuple.type.f96 = tuple_value (%X, %A.facet.906, %Z) [concrete]
  852. // CHECK:STDOUT: }
  853. // CHECK:STDOUT:
  854. // CHECK:STDOUT: imports {
  855. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  856. // CHECK:STDOUT: .Destroy = %Core.Destroy
  857. // CHECK:STDOUT: import Core//prelude
  858. // CHECK:STDOUT: import Core//prelude/...
  859. // CHECK:STDOUT: }
  860. // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
  861. // CHECK:STDOUT: }
  862. // CHECK:STDOUT:
  863. // CHECK:STDOUT: file {
  864. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  865. // CHECK:STDOUT: .Core = imports.%Core
  866. // CHECK:STDOUT: .A = %A.decl
  867. // CHECK:STDOUT: .X = %X.decl
  868. // CHECK:STDOUT: .Y1 = %Y1.decl
  869. // CHECK:STDOUT: .Y2 = %Y2.decl
  870. // CHECK:STDOUT: .Z = %Z.decl
  871. // CHECK:STDOUT: .Call = %Call.decl
  872. // CHECK:STDOUT: .CallGeneric = %CallGeneric.decl
  873. // CHECK:STDOUT: .CallIndirect = %CallIndirect.decl
  874. // CHECK:STDOUT: }
  875. // CHECK:STDOUT: %Core.import = import Core
  876. // CHECK:STDOUT: %A.decl: %A.type.464 = interface_decl @A [concrete = constants.%A.generic] {
  877. // CHECK:STDOUT: %T.patt: %pattern_type.98f = symbolic_binding_pattern T, 0 [concrete]
  878. // CHECK:STDOUT: } {
  879. // CHECK:STDOUT: %.loc5_17.1: type = splice_block %.loc5_17.2 [concrete = type] {
  880. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  881. // CHECK:STDOUT: %.loc5_17.2: type = type_literal type [concrete = type]
  882. // CHECK:STDOUT: }
  883. // CHECK:STDOUT: %T.loc5_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
  884. // CHECK:STDOUT: }
  885. // CHECK:STDOUT: %X.decl: type = class_decl @X [concrete = constants.%X] {} {}
  886. // CHECK:STDOUT: %Y1.decl: type = class_decl @Y1 [concrete = constants.%Y1] {} {}
  887. // CHECK:STDOUT: %Y2.decl: type = class_decl @Y2 [concrete = constants.%Y2] {} {}
  888. // CHECK:STDOUT: %Z.decl: type = class_decl @Z [concrete = constants.%Z] {} {}
  889. // CHECK:STDOUT: impl_decl @tuple.type.as.A.impl [concrete] {
  890. // CHECK:STDOUT: %V1.patt: %pattern_type.98f = symbolic_binding_pattern V1, 0 [concrete]
  891. // CHECK:STDOUT: %V2.patt: %pattern_type.98f = symbolic_binding_pattern V2, 1 [concrete]
  892. // CHECK:STDOUT: %W.patt: %pattern_type.98f = symbolic_binding_pattern W, 2 [concrete]
  893. // CHECK:STDOUT: } {
  894. // CHECK:STDOUT: %V1.ref: type = name_ref V1, %V1.loc14_14.2 [symbolic = %V1.loc14_14.1 (constants.%V1)]
  895. // CHECK:STDOUT: %V2.ref: type = name_ref V2, %V2.loc14_25.2 [symbolic = %V2.loc14_25.1 (constants.%V2)]
  896. // CHECK:STDOUT: %.loc14_53.1: %tuple.type.24b = tuple_literal (%V1.ref, %V2.ref) [symbolic = %tuple (constants.%tuple.4b9)]
  897. // CHECK:STDOUT: %.loc14_53.2: type = converted %.loc14_53.1, constants.%tuple.type.a5e [symbolic = %tuple.type (constants.%tuple.type.a5e)]
  898. // CHECK:STDOUT: %A.ref: %A.type.464 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
  899. // CHECK:STDOUT: %W.ref: type = name_ref W, %W.loc14_36.2 [symbolic = %W.loc14_36.1 (constants.%W)]
  900. // CHECK:STDOUT: %A.type.loc14_61.2: type = facet_type <@A, @A(constants.%W)> [symbolic = %A.type.loc14_61.1 (constants.%A.type.fe7)]
  901. // CHECK:STDOUT: %.loc14_19.1: type = splice_block %.loc14_19.2 [concrete = type] {
  902. // CHECK:STDOUT: %.Self.3: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  903. // CHECK:STDOUT: %.loc14_19.2: type = type_literal type [concrete = type]
  904. // CHECK:STDOUT: }
  905. // CHECK:STDOUT: %V1.loc14_14.2: type = symbolic_binding V1, 0 [symbolic = %V1.loc14_14.1 (constants.%V1)]
  906. // CHECK:STDOUT: %.loc14_30.1: type = splice_block %.loc14_30.2 [concrete = type] {
  907. // CHECK:STDOUT: %.Self.2: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  908. // CHECK:STDOUT: %.loc14_30.2: type = type_literal type [concrete = type]
  909. // CHECK:STDOUT: }
  910. // CHECK:STDOUT: %V2.loc14_25.2: type = symbolic_binding V2, 1 [symbolic = %V2.loc14_25.1 (constants.%V2)]
  911. // CHECK:STDOUT: %.loc14_40.1: type = splice_block %.loc14_40.2 [concrete = type] {
  912. // CHECK:STDOUT: %.Self.1: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  913. // CHECK:STDOUT: %.loc14_40.2: type = type_literal type [concrete = type]
  914. // CHECK:STDOUT: }
  915. // CHECK:STDOUT: %W.loc14_36.2: type = symbolic_binding W, 2 [symbolic = %W.loc14_36.1 (constants.%W)]
  916. // CHECK:STDOUT: }
  917. // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [concrete = constants.%Call] {} {}
  918. // CHECK:STDOUT: %CallGeneric.decl: %CallGeneric.type = fn_decl @CallGeneric [concrete = constants.%CallGeneric] {
  919. // CHECK:STDOUT: %T.patt: %pattern_type.143 = symbolic_binding_pattern T, 0 [concrete]
  920. // CHECK:STDOUT: } {
  921. // CHECK:STDOUT: %.loc27: type = splice_block %A.type [concrete = constants.%A.type.ab6] {
  922. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  923. // CHECK:STDOUT: %A.ref: %A.type.464 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
  924. // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
  925. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.ab6]
  926. // CHECK:STDOUT: }
  927. // CHECK:STDOUT: %T.loc27_16.2: %A.type.ab6 = symbolic_binding T, 0 [symbolic = %T.loc27_16.1 (constants.%T.2bc)]
  928. // CHECK:STDOUT: }
  929. // CHECK:STDOUT: %CallIndirect.decl: %CallIndirect.type = fn_decl @CallIndirect [concrete = constants.%CallIndirect] {} {}
  930. // CHECK:STDOUT: }
  931. // CHECK:STDOUT:
  932. // CHECK:STDOUT: generic interface @A(%T.loc5_13.2: type) {
  933. // CHECK:STDOUT: %T.loc5_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
  934. // CHECK:STDOUT:
  935. // CHECK:STDOUT: !definition:
  936. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T.loc5_13.1)> [symbolic = %A.type (constants.%A.type.ade)]
  937. // CHECK:STDOUT: %Self.loc5_23.2: @A.%A.type (%A.type.ade) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.362)]
  938. // CHECK:STDOUT:
  939. // CHECK:STDOUT: interface {
  940. // CHECK:STDOUT: %Self.loc5_23.1: @A.%A.type (%A.type.ade) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.362)]
  941. // CHECK:STDOUT: %A.WithSelf.decl = interface_with_self_decl @A [concrete]
  942. // CHECK:STDOUT:
  943. // CHECK:STDOUT: !with Self:
  944. // CHECK:STDOUT: %A.WithSelf.F.decl: @A.WithSelf.%A.WithSelf.F.type (%A.WithSelf.F.type.0ed) = fn_decl @A.WithSelf.F [symbolic = @A.WithSelf.%A.WithSelf.F (constants.%A.WithSelf.F.33a)] {
  945. // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 2 [concrete]
  946. // CHECK:STDOUT: %u.param_patt: @A.WithSelf.F.%pattern_type.loc6_19 (%pattern_type.62e) = value_param_pattern [concrete]
  947. // CHECK:STDOUT: %u.patt: @A.WithSelf.F.%pattern_type.loc6_19 (%pattern_type.62e) = at_binding_pattern u, %u.param_patt [concrete]
  948. // CHECK:STDOUT: %return.param_patt: @A.WithSelf.F.%pattern_type.loc6_38 (%pattern_type.22d) = out_param_pattern [concrete]
  949. // CHECK:STDOUT: %return.patt: @A.WithSelf.F.%pattern_type.loc6_38 (%pattern_type.22d) = return_slot_pattern %return.param_patt, %.loc6_38.4 [concrete]
  950. // CHECK:STDOUT: } {
  951. // CHECK:STDOUT: %T.ref: type = name_ref T, @A.%T.loc5_13.2 [symbolic = %T (constants.%T.67d)]
  952. // CHECK:STDOUT: %.loc6_31: @A.WithSelf.F.%A.type (%A.type.ade) = specific_constant @A.%Self.loc5_23.1, @A(constants.%T.67d) [symbolic = %Self (constants.%Self.362)]
  953. // CHECK:STDOUT: %Self.ref: @A.WithSelf.F.%A.type (%A.type.ade) = name_ref Self, %.loc6_31 [symbolic = %Self (constants.%Self.362)]
  954. // CHECK:STDOUT: %U.ref.loc6_37: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  955. // CHECK:STDOUT: %.loc6_38.2: @A.WithSelf.F.%tuple.type.loc6_38.1 (%tuple.type.f2d) = tuple_literal (%T.ref, %Self.ref, %U.ref.loc6_37) [symbolic = %tuple (constants.%tuple.f25)]
  956. // CHECK:STDOUT: %Self.as_type: type = facet_access_type constants.%Self.362 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.7ec)]
  957. // CHECK:STDOUT: %.loc6_38.3: type = converted constants.%Self.362, %Self.as_type [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.7ec)]
  958. // CHECK:STDOUT: %.loc6_38.4: type = converted %.loc6_38.2, constants.%tuple.type.7f3 [symbolic = %tuple.type.loc6_38.2 (constants.%tuple.type.7f3)]
  959. // CHECK:STDOUT: %.loc6_38.5: Core.Form = init_form %.loc6_38.4 [symbolic = %.loc6_38.1 (constants.%.0ad)]
  960. // CHECK:STDOUT: %.loc6_12.1: type = splice_block %.loc6_12.2 [concrete = type] {
  961. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  962. // CHECK:STDOUT: %.loc6_12.2: type = type_literal type [concrete = type]
  963. // CHECK:STDOUT: }
  964. // CHECK:STDOUT: %U.loc6_8.2: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  965. // CHECK:STDOUT: %u.param: @A.WithSelf.F.%U.loc6_8.1 (%U.4e7) = value_param call_param0
  966. // CHECK:STDOUT: %U.ref.loc6_21: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  967. // CHECK:STDOUT: %u: @A.WithSelf.F.%U.loc6_8.1 (%U.4e7) = value_binding u, %u.param
  968. // CHECK:STDOUT: %return.param: ref @A.WithSelf.F.%tuple.type.loc6_38.2 (%tuple.type.7f3) = out_param call_param1
  969. // CHECK:STDOUT: %return: ref @A.WithSelf.F.%tuple.type.loc6_38.2 (%tuple.type.7f3) = return_slot %return.param
  970. // CHECK:STDOUT: }
  971. // CHECK:STDOUT: %assoc0.loc6_39.1: @A.WithSelf.%A.assoc_type (%A.assoc_type.9f4) = assoc_entity element0, %A.WithSelf.F.decl [symbolic = %assoc0.loc6_39.2 (constants.%assoc0.146)]
  972. // CHECK:STDOUT:
  973. // CHECK:STDOUT: !members:
  974. // CHECK:STDOUT: .Self = %Self.loc5_23.1
  975. // CHECK:STDOUT: .T = <poisoned>
  976. // CHECK:STDOUT: .T = <poisoned>
  977. // CHECK:STDOUT: .F = @A.WithSelf.%assoc0.loc6_39.1
  978. // CHECK:STDOUT: witness = (@A.WithSelf.%A.WithSelf.F.decl)
  979. // CHECK:STDOUT:
  980. // CHECK:STDOUT: !requires:
  981. // CHECK:STDOUT: }
  982. // CHECK:STDOUT: }
  983. // CHECK:STDOUT:
  984. // CHECK:STDOUT: generic impl @tuple.type.as.A.impl(%V1.loc14_14.2: type, %V2.loc14_25.2: type, %W.loc14_36.2: type) {
  985. // CHECK:STDOUT: %V1.loc14_14.1: type = symbolic_binding V1, 0 [symbolic = %V1.loc14_14.1 (constants.%V1)]
  986. // CHECK:STDOUT: %V2.loc14_25.1: type = symbolic_binding V2, 1 [symbolic = %V2.loc14_25.1 (constants.%V2)]
  987. // CHECK:STDOUT: %W.loc14_36.1: type = symbolic_binding W, 2 [symbolic = %W.loc14_36.1 (constants.%W)]
  988. // CHECK:STDOUT: %tuple: %tuple.type.24b = tuple_value (%V1.loc14_14.1, %V2.loc14_25.1) [symbolic = %tuple (constants.%tuple.4b9)]
  989. // CHECK:STDOUT: %tuple.type: type = tuple_type (%V1.loc14_14.1, %V2.loc14_25.1) [symbolic = %tuple.type (constants.%tuple.type.a5e)]
  990. // CHECK:STDOUT: %A.type.loc14_61.1: type = facet_type <@A, @A(%W.loc14_36.1)> [symbolic = %A.type.loc14_61.1 (constants.%A.type.fe7)]
  991. // CHECK:STDOUT: %A.impl_witness.loc14_63.2: <witness> = impl_witness %A.impl_witness_table, @tuple.type.as.A.impl(%V1.loc14_14.1, %V2.loc14_25.1, %W.loc14_36.1) [symbolic = %A.impl_witness.loc14_63.2 (constants.%A.impl_witness.be2)]
  992. // CHECK:STDOUT:
  993. // CHECK:STDOUT: !definition:
  994. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %A.type.loc14_61.1 [symbolic = %require_complete (constants.%require_complete.9a5)]
  995. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%V1.loc14_14.1, %V2.loc14_25.1, %W.loc14_36.1) [symbolic = %tuple.type.as.A.impl.F.type (constants.%tuple.type.as.A.impl.F.type.ce6)]
  996. // CHECK:STDOUT: %tuple.type.as.A.impl.F: @tuple.type.as.A.impl.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.ce6) = struct_value () [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.74d)]
  997. // CHECK:STDOUT:
  998. // CHECK:STDOUT: impl: %.loc14_53.2 as %A.type.loc14_61.2 {
  999. // CHECK:STDOUT: %tuple.type.as.A.impl.F.decl: @tuple.type.as.A.impl.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.ce6) = fn_decl @tuple.type.as.A.impl.F [symbolic = @tuple.type.as.A.impl.%tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.74d)] {
  1000. // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 3 [concrete]
  1001. // CHECK:STDOUT: %u.param_patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_19 (%pattern_type.e4a) = value_param_pattern [concrete]
  1002. // CHECK:STDOUT: %u.patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_19 (%pattern_type.e4a) = at_binding_pattern u, %u.param_patt [concrete]
  1003. // CHECK:STDOUT: %return.param_patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_42 (%pattern_type.5cc) = out_param_pattern [concrete]
  1004. // CHECK:STDOUT: %return.patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_42 (%pattern_type.5cc) = return_slot_pattern %return.param_patt, %.loc17_42.5 [concrete]
  1005. // CHECK:STDOUT: } {
  1006. // CHECK:STDOUT: %W.ref: type = name_ref W, @tuple.type.as.A.impl.%W.loc14_36.2 [symbolic = %W (constants.%W)]
  1007. // CHECK:STDOUT: %V1.ref: type = name_ref V1, @tuple.type.as.A.impl.%V1.loc14_14.2 [symbolic = %V1 (constants.%V1)]
  1008. // CHECK:STDOUT: %V2.ref: type = name_ref V2, @tuple.type.as.A.impl.%V2.loc14_25.2 [symbolic = %V2 (constants.%V2)]
  1009. // CHECK:STDOUT: %.loc17_38: %tuple.type.24b = tuple_literal (%V1.ref, %V2.ref) [symbolic = %tuple.loc17_38 (constants.%tuple.4b9)]
  1010. // CHECK:STDOUT: %U.ref.loc17_41: type = name_ref U, %U.loc17_8.2 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
  1011. // CHECK:STDOUT: %.loc17_42.3: %tuple.type.11f = tuple_literal (%W.ref, %.loc17_38, %U.ref.loc17_41) [symbolic = %tuple.loc17_42 (constants.%tuple.117)]
  1012. // CHECK:STDOUT: %.loc17_42.4: type = converted constants.%tuple.4b9, constants.%tuple.type.a5e [symbolic = %tuple.type.loc17_42.1 (constants.%tuple.type.a5e)]
  1013. // CHECK:STDOUT: %.loc17_42.5: type = converted %.loc17_42.3, constants.%tuple.type.897 [symbolic = %tuple.type.loc17_42.2 (constants.%tuple.type.897)]
  1014. // CHECK:STDOUT: %.loc17_42.6: Core.Form = init_form %.loc17_42.5 [symbolic = %.loc17_42.2 (constants.%.f8e)]
  1015. // CHECK:STDOUT: %.loc17_12.1: type = splice_block %.loc17_12.2 [concrete = type] {
  1016. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  1017. // CHECK:STDOUT: %.loc17_12.2: type = type_literal type [concrete = type]
  1018. // CHECK:STDOUT: }
  1019. // CHECK:STDOUT: %U.loc17_8.2: type = symbolic_binding U, 3 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
  1020. // CHECK:STDOUT: %u.param: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4) = value_param call_param0
  1021. // CHECK:STDOUT: %U.ref.loc17_21: type = name_ref U, %U.loc17_8.2 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
  1022. // CHECK:STDOUT: %u: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4) = value_binding u, %u.param
  1023. // CHECK:STDOUT: %return.param: ref @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = out_param call_param1
  1024. // CHECK:STDOUT: %return: ref @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = return_slot %return.param
  1025. // CHECK:STDOUT: }
  1026. // CHECK:STDOUT: %A.impl_witness_table = impl_witness_table (%tuple.type.as.A.impl.F.decl), @tuple.type.as.A.impl [concrete]
  1027. // CHECK:STDOUT: %A.impl_witness.loc14_63.1: <witness> = impl_witness %A.impl_witness_table, @tuple.type.as.A.impl(constants.%V1, constants.%V2, constants.%W) [symbolic = %A.impl_witness.loc14_63.2 (constants.%A.impl_witness.be2)]
  1028. // CHECK:STDOUT:
  1029. // CHECK:STDOUT: !members:
  1030. // CHECK:STDOUT: .W = <poisoned>
  1031. // CHECK:STDOUT: .V1 = <poisoned>
  1032. // CHECK:STDOUT: .V2 = <poisoned>
  1033. // CHECK:STDOUT: .F = %tuple.type.as.A.impl.F.decl
  1034. // CHECK:STDOUT: witness = %A.impl_witness.loc14_63.1
  1035. // CHECK:STDOUT: }
  1036. // CHECK:STDOUT: }
  1037. // CHECK:STDOUT:
  1038. // CHECK:STDOUT: class @X {
  1039. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1040. // CHECK:STDOUT: complete_type_witness = %complete_type
  1041. // CHECK:STDOUT:
  1042. // CHECK:STDOUT: !members:
  1043. // CHECK:STDOUT: .Self = constants.%X
  1044. // CHECK:STDOUT: }
  1045. // CHECK:STDOUT:
  1046. // CHECK:STDOUT: class @Y1 {
  1047. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1048. // CHECK:STDOUT: complete_type_witness = %complete_type
  1049. // CHECK:STDOUT:
  1050. // CHECK:STDOUT: !members:
  1051. // CHECK:STDOUT: .Self = constants.%Y1
  1052. // CHECK:STDOUT: }
  1053. // CHECK:STDOUT:
  1054. // CHECK:STDOUT: class @Y2 {
  1055. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1056. // CHECK:STDOUT: complete_type_witness = %complete_type
  1057. // CHECK:STDOUT:
  1058. // CHECK:STDOUT: !members:
  1059. // CHECK:STDOUT: .Self = constants.%Y2
  1060. // CHECK:STDOUT: }
  1061. // CHECK:STDOUT:
  1062. // CHECK:STDOUT: class @Z {
  1063. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
  1064. // CHECK:STDOUT: complete_type_witness = %complete_type
  1065. // CHECK:STDOUT:
  1066. // CHECK:STDOUT: !members:
  1067. // CHECK:STDOUT: .Self = constants.%Z
  1068. // CHECK:STDOUT: }
  1069. // CHECK:STDOUT:
  1070. // CHECK:STDOUT: generic fn @A.WithSelf.F(@A.%T.loc5_13.2: type, @A.%Self.loc5_23.1: @A.%A.type (%A.type.ade), %U.loc6_8.2: type) {
  1071. // CHECK:STDOUT: %U.loc6_8.1: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
  1072. // CHECK:STDOUT: %pattern_type.loc6_19: type = pattern_type %U.loc6_8.1 [symbolic = %pattern_type.loc6_19 (constants.%pattern_type.62e)]
  1073. // CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T.67d)]
  1074. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T)> [symbolic = %A.type (constants.%A.type.ade)]
  1075. // CHECK:STDOUT: %Self: @A.WithSelf.F.%A.type (%A.type.ade) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.362)]
  1076. // CHECK:STDOUT: %tuple.type.loc6_38.1: type = tuple_type (type, %A.type, type) [symbolic = %tuple.type.loc6_38.1 (constants.%tuple.type.f2d)]
  1077. // CHECK:STDOUT: %tuple: @A.WithSelf.F.%tuple.type.loc6_38.1 (%tuple.type.f2d) = tuple_value (%T, %Self, %U.loc6_8.1) [symbolic = %tuple (constants.%tuple.f25)]
  1078. // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.7ec)]
  1079. // CHECK:STDOUT: %tuple.type.loc6_38.2: type = tuple_type (%T, %Self.binding.as_type, %U.loc6_8.1) [symbolic = %tuple.type.loc6_38.2 (constants.%tuple.type.7f3)]
  1080. // CHECK:STDOUT: %.loc6_38.1: Core.Form = init_form %tuple.type.loc6_38.2 [symbolic = %.loc6_38.1 (constants.%.0ad)]
  1081. // CHECK:STDOUT: %pattern_type.loc6_38: type = pattern_type %tuple.type.loc6_38.2 [symbolic = %pattern_type.loc6_38 (constants.%pattern_type.22d)]
  1082. // CHECK:STDOUT:
  1083. // CHECK:STDOUT: fn(%u.param: @A.WithSelf.F.%U.loc6_8.1 (%U.4e7)) -> out %return.param: @A.WithSelf.F.%tuple.type.loc6_38.2 (%tuple.type.7f3);
  1084. // CHECK:STDOUT: }
  1085. // CHECK:STDOUT:
  1086. // CHECK:STDOUT: generic fn @tuple.type.as.A.impl.F(@tuple.type.as.A.impl.%V1.loc14_14.2: type, @tuple.type.as.A.impl.%V2.loc14_25.2: type, @tuple.type.as.A.impl.%W.loc14_36.2: type, %U.loc17_8.2: type) {
  1087. // CHECK:STDOUT: %U.loc17_8.1: type = symbolic_binding U, 3 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
  1088. // CHECK:STDOUT: %pattern_type.loc17_19: type = pattern_type %U.loc17_8.1 [symbolic = %pattern_type.loc17_19 (constants.%pattern_type.e4a)]
  1089. // CHECK:STDOUT: %W: type = symbolic_binding W, 2 [symbolic = %W (constants.%W)]
  1090. // CHECK:STDOUT: %V1: type = symbolic_binding V1, 0 [symbolic = %V1 (constants.%V1)]
  1091. // CHECK:STDOUT: %V2: type = symbolic_binding V2, 1 [symbolic = %V2 (constants.%V2)]
  1092. // CHECK:STDOUT: %tuple.loc17_38: %tuple.type.24b = tuple_value (%V1, %V2) [symbolic = %tuple.loc17_38 (constants.%tuple.4b9)]
  1093. // CHECK:STDOUT: %tuple.loc17_42: %tuple.type.11f = tuple_value (%W, %tuple.loc17_38, %U.loc17_8.1) [symbolic = %tuple.loc17_42 (constants.%tuple.117)]
  1094. // CHECK:STDOUT: %tuple.type.loc17_42.1: type = tuple_type (%V1, %V2) [symbolic = %tuple.type.loc17_42.1 (constants.%tuple.type.a5e)]
  1095. // CHECK:STDOUT: %tuple.type.loc17_42.2: type = tuple_type (%W, %tuple.type.loc17_42.1, %U.loc17_8.1) [symbolic = %tuple.type.loc17_42.2 (constants.%tuple.type.897)]
  1096. // CHECK:STDOUT: %.loc17_42.2: Core.Form = init_form %tuple.type.loc17_42.2 [symbolic = %.loc17_42.2 (constants.%.f8e)]
  1097. // CHECK:STDOUT: %pattern_type.loc17_42: type = pattern_type %tuple.type.loc17_42.2 [symbolic = %pattern_type.loc17_42 (constants.%pattern_type.5cc)]
  1098. // CHECK:STDOUT:
  1099. // CHECK:STDOUT: !definition:
  1100. // CHECK:STDOUT: %require_complete.loc17_19: <witness> = require_complete_type %U.loc17_8.1 [symbolic = %require_complete.loc17_19 (constants.%require_complete.5a4)]
  1101. // CHECK:STDOUT: %require_complete.loc17_42: <witness> = require_complete_type %tuple.type.loc17_42.2 [symbolic = %require_complete.loc17_42 (constants.%require_complete.da0)]
  1102. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%V1, %V2, %W) [symbolic = %tuple.type.as.A.impl.F.type (constants.%tuple.type.as.A.impl.F.type.ce6)]
  1103. // CHECK:STDOUT: %tuple.type.as.A.impl.F: @tuple.type.as.A.impl.F.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.ce6) = struct_value () [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.74d)]
  1104. // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.2: <specific function> = specific_function %tuple.type.as.A.impl.F, @tuple.type.as.A.impl.F(%V1, %V2, %W, %U.loc17_8.1) [symbolic = %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 (constants.%tuple.type.as.A.impl.F.specific_fn.009)]
  1105. // CHECK:STDOUT:
  1106. // CHECK:STDOUT: fn(%u.param: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4)) -> out %return.param: @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) {
  1107. // CHECK:STDOUT: !entry:
  1108. // CHECK:STDOUT: %.loc18: @tuple.type.as.A.impl.F.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.ce6) = specific_constant @tuple.type.as.A.impl.%tuple.type.as.A.impl.F.decl, @tuple.type.as.A.impl(constants.%V1, constants.%V2, constants.%W) [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.74d)]
  1109. // CHECK:STDOUT: %F.ref: @tuple.type.as.A.impl.F.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.ce6) = name_ref F, %.loc18 [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.74d)]
  1110. // CHECK:STDOUT: %U.ref.loc18: type = name_ref U, %U.loc17_8.2 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
  1111. // CHECK:STDOUT: %u.ref: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4) = name_ref u, %u
  1112. // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.1: <specific function> = specific_function %F.ref, @tuple.type.as.A.impl.F(constants.%V1, constants.%V2, constants.%W, constants.%U.ce4) [symbolic = %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 (constants.%tuple.type.as.A.impl.F.specific_fn.009)]
  1113. // CHECK:STDOUT: %.loc17_42.1: ref @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = splice_block %return.param {}
  1114. // CHECK:STDOUT: %tuple.type.as.A.impl.F.call: init @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) to %.loc17_42.1 = call %tuple.type.as.A.impl.F.specific_fn.loc18_12.1(%u.ref)
  1115. // CHECK:STDOUT: return %tuple.type.as.A.impl.F.call to %return.param
  1116. // CHECK:STDOUT: }
  1117. // CHECK:STDOUT: }
  1118. // CHECK:STDOUT:
  1119. // CHECK:STDOUT: fn @Call() {
  1120. // CHECK:STDOUT: !entry:
  1121. // CHECK:STDOUT: %Y1.ref: type = name_ref Y1, file.%Y1.decl [concrete = constants.%Y1]
  1122. // CHECK:STDOUT: %Y2.ref: type = name_ref Y2, file.%Y2.decl [concrete = constants.%Y2]
  1123. // CHECK:STDOUT: %.loc24_12: %tuple.type.24b = tuple_literal (%Y1.ref, %Y2.ref) [concrete = constants.%tuple.dd5]
  1124. // CHECK:STDOUT: %.loc24_17: type = type_literal type [concrete = type]
  1125. // CHECK:STDOUT: %.loc24_14: type = converted %.loc24_12, constants.%tuple.type.ab2 [concrete = constants.%tuple.type.ab2]
  1126. // CHECK:STDOUT: %A.ref: %A.type.464 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
  1127. // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
  1128. // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.ab6]
  1129. // CHECK:STDOUT: %A.facet: %A.type.ab6 = facet_value %.loc24_14, (constants.%A.impl_witness.b3a) [concrete = constants.%A.facet.906]
  1130. // CHECK:STDOUT: %.loc24_23: %A.type.ab6 = converted %.loc24_14, %A.facet [concrete = constants.%A.facet.906]
  1131. // CHECK:STDOUT: %as_type: type = facet_access_type %.loc24_23 [concrete = constants.%tuple.type.ab2]
  1132. // CHECK:STDOUT: %.loc24_31.1: type = converted %.loc24_23, %as_type [concrete = constants.%tuple.type.ab2]
  1133. // CHECK:STDOUT: %.loc24_31.2: %A.assoc_type.f05 = specific_constant @A.WithSelf.%assoc0.loc6_39.1, @A.WithSelf(constants.%X, constants.%A.facet.906) [concrete = constants.%assoc0.368]
  1134. // CHECK:STDOUT: %F.ref: %A.assoc_type.f05 = name_ref F, %.loc24_31.2 [concrete = constants.%assoc0.368]
  1135. // CHECK:STDOUT: %impl.elem0: %.fa2 = impl_witness_access constants.%A.impl_witness.b3a, element0 [concrete = constants.%tuple.type.as.A.impl.F.cc8]
  1136. // CHECK:STDOUT: %Z.ref: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
  1137. // CHECK:STDOUT: %.loc24_38.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  1138. // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0, @tuple.type.as.A.impl.F(constants.%Y1, constants.%Y2, constants.%X, constants.%Z) [concrete = constants.%tuple.type.as.A.impl.F.specific_fn.af6]
  1139. // CHECK:STDOUT: %.loc24_39.1: ref %tuple.type.65a = temporary_storage
  1140. // CHECK:STDOUT: %.loc24_38.2: ref %Z = temporary_storage
  1141. // CHECK:STDOUT: %.loc24_38.3: init %Z to %.loc24_38.2 = class_init () [concrete = constants.%Z.val]
  1142. // CHECK:STDOUT: %.loc24_38.4: init %Z = converted %.loc24_38.1, %.loc24_38.3 [concrete = constants.%Z.val]
  1143. // CHECK:STDOUT: %.loc24_38.5: ref %Z = temporary %.loc24_38.2, %.loc24_38.4
  1144. // CHECK:STDOUT: %.loc24_38.6: %Z = acquire_value %.loc24_38.5
  1145. // CHECK:STDOUT: %tuple.type.as.A.impl.F.call: init %tuple.type.65a to %.loc24_39.1 = call %specific_fn(%.loc24_38.6)
  1146. // CHECK:STDOUT: %.loc24_39.2: ref %tuple.type.65a = temporary %.loc24_39.1, %tuple.type.as.A.impl.F.call
  1147. // CHECK:STDOUT: %Destroy.Op.bound.loc24_39: <bound method> = bound_method %.loc24_39.2, constants.%Destroy.Op.651ba6.1
  1148. // CHECK:STDOUT: %Destroy.Op.call.loc24_39: init %empty_tuple.type = call %Destroy.Op.bound.loc24_39(%.loc24_39.2)
  1149. // CHECK:STDOUT: %Destroy.Op.bound.loc24_38: <bound method> = bound_method %.loc24_38.5, constants.%Destroy.Op.651ba6.2
  1150. // CHECK:STDOUT: %Destroy.Op.call.loc24_38: init %empty_tuple.type = call %Destroy.Op.bound.loc24_38(%.loc24_38.5)
  1151. // CHECK:STDOUT: return
  1152. // CHECK:STDOUT: }
  1153. // CHECK:STDOUT:
  1154. // CHECK:STDOUT: fn @Destroy.Op.loc24_39(%self.param: ref %tuple.type.65a) = "no_op";
  1155. // CHECK:STDOUT:
  1156. // CHECK:STDOUT: fn @Destroy.Op.loc24_38(%self.param: ref %Z) = "no_op";
  1157. // CHECK:STDOUT:
  1158. // CHECK:STDOUT: generic fn @CallGeneric(%T.loc27_16.2: %A.type.ab6) {
  1159. // CHECK:STDOUT: %T.loc27_16.1: %A.type.ab6 = symbolic_binding T, 0 [symbolic = %T.loc27_16.1 (constants.%T.2bc)]
  1160. // CHECK:STDOUT:
  1161. // CHECK:STDOUT: !definition:
  1162. // CHECK:STDOUT: %T.binding.as_type: type = symbolic_binding_type T, 0, %T.loc27_16.1 [symbolic = %T.binding.as_type (constants.%T.binding.as_type)]
  1163. // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.loc27_16.1, @A, @A(constants.%X) [symbolic = %A.lookup_impl_witness (constants.%A.lookup_impl_witness)]
  1164. // CHECK:STDOUT: %A.WithSelf.F.type: type = fn_type @A.WithSelf.F, @A.WithSelf(constants.%X, %T.loc27_16.1) [symbolic = %A.WithSelf.F.type (constants.%A.WithSelf.F.type.f08)]
  1165. // CHECK:STDOUT: %.loc28_4.3: type = fn_type_with_self_type %A.WithSelf.F.type, %T.loc27_16.1 [symbolic = %.loc28_4.3 (constants.%.189)]
  1166. // CHECK:STDOUT: %impl.elem0.loc28_4.2: @CallGeneric.%.loc28_4.3 (%.189) = impl_witness_access %A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0.86f)]
  1167. // CHECK:STDOUT: %specific_impl_fn.loc28_4.2: <specific function> = specific_impl_function %impl.elem0.loc28_4.2, @A.WithSelf.F(constants.%X, %T.loc27_16.1, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn.44b)]
  1168. // CHECK:STDOUT: %tuple.type: type = tuple_type (constants.%X, %T.binding.as_type, constants.%Z) [symbolic = %tuple.type (constants.%tuple.type.856)]
  1169. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %tuple.type [symbolic = %require_complete (constants.%require_complete.7d4)]
  1170. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %tuple.type, @Destroy [symbolic = %Destroy.lookup_impl_witness (constants.%Destroy.lookup_impl_witness)]
  1171. // CHECK:STDOUT: %Destroy.facet: %Destroy.type = facet_value %tuple.type, (%Destroy.lookup_impl_witness) [symbolic = %Destroy.facet (constants.%Destroy.facet.a1c)]
  1172. // CHECK:STDOUT: %Destroy.WithSelf.Op.type: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet) [symbolic = %Destroy.WithSelf.Op.type (constants.%Destroy.WithSelf.Op.type.725)]
  1173. // CHECK:STDOUT: %.loc28_12.3: type = fn_type_with_self_type %Destroy.WithSelf.Op.type, %Destroy.facet [symbolic = %.loc28_12.3 (constants.%.949)]
  1174. // CHECK:STDOUT: %impl.elem0.loc28_12.2: @CallGeneric.%.loc28_12.3 (%.949) = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_12.2 (constants.%impl.elem0.487)]
  1175. // CHECK:STDOUT: %specific_impl_fn.loc28_12.2: <specific function> = specific_impl_function %impl.elem0.loc28_12.2, @Destroy.WithSelf.Op(%Destroy.facet) [symbolic = %specific_impl_fn.loc28_12.2 (constants.%specific_impl_fn.56d)]
  1176. // CHECK:STDOUT:
  1177. // CHECK:STDOUT: fn() {
  1178. // CHECK:STDOUT: !entry:
  1179. // CHECK:STDOUT: %T.ref: %A.type.ab6 = name_ref T, %T.loc27_16.2 [symbolic = %T.loc27_16.1 (constants.%T.2bc)]
  1180. // CHECK:STDOUT: %T.as_type: type = facet_access_type %T.ref [symbolic = %T.binding.as_type (constants.%T.binding.as_type)]
  1181. // CHECK:STDOUT: %.loc28_4.1: type = converted %T.ref, %T.as_type [symbolic = %T.binding.as_type (constants.%T.binding.as_type)]
  1182. // CHECK:STDOUT: %.loc28_4.2: %A.assoc_type.f05 = specific_constant @A.WithSelf.%assoc0.loc6_39.1, @A.WithSelf(constants.%X, constants.%T.2bc) [concrete = constants.%assoc0.368]
  1183. // CHECK:STDOUT: %F.ref: %A.assoc_type.f05 = name_ref F, %.loc28_4.2 [concrete = constants.%assoc0.368]
  1184. // CHECK:STDOUT: %impl.elem0.loc28_4.1: @CallGeneric.%.loc28_4.3 (%.189) = impl_witness_access constants.%A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0.86f)]
  1185. // CHECK:STDOUT: %Z.ref: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
  1186. // CHECK:STDOUT: %.loc28_11.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  1187. // CHECK:STDOUT: %specific_impl_fn.loc28_4.1: <specific function> = specific_impl_function %impl.elem0.loc28_4.1, @A.WithSelf.F(constants.%X, constants.%T.2bc, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn.44b)]
  1188. // CHECK:STDOUT: %.loc28_12.1: ref @CallGeneric.%tuple.type (%tuple.type.856) = temporary_storage
  1189. // CHECK:STDOUT: %.loc28_11.2: ref %Z = temporary_storage
  1190. // CHECK:STDOUT: %.loc28_11.3: init %Z to %.loc28_11.2 = class_init () [concrete = constants.%Z.val]
  1191. // CHECK:STDOUT: %.loc28_11.4: init %Z = converted %.loc28_11.1, %.loc28_11.3 [concrete = constants.%Z.val]
  1192. // CHECK:STDOUT: %.loc28_11.5: ref %Z = temporary %.loc28_11.2, %.loc28_11.4
  1193. // CHECK:STDOUT: %.loc28_11.6: %Z = acquire_value %.loc28_11.5
  1194. // CHECK:STDOUT: %A.WithSelf.F.call: init @CallGeneric.%tuple.type (%tuple.type.856) to %.loc28_12.1 = call %specific_impl_fn.loc28_4.1(%.loc28_11.6)
  1195. // CHECK:STDOUT: %.loc28_12.2: ref @CallGeneric.%tuple.type (%tuple.type.856) = temporary %.loc28_12.1, %A.WithSelf.F.call
  1196. // CHECK:STDOUT: %impl.elem0.loc28_12.1: @CallGeneric.%.loc28_12.3 (%.949) = impl_witness_access constants.%Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_12.2 (constants.%impl.elem0.487)]
  1197. // CHECK:STDOUT: %bound_method.loc28_12.1: <bound method> = bound_method %.loc28_12.2, %impl.elem0.loc28_12.1
  1198. // CHECK:STDOUT: %specific_impl_fn.loc28_12.1: <specific function> = specific_impl_function %impl.elem0.loc28_12.1, @Destroy.WithSelf.Op(constants.%Destroy.facet.a1c) [symbolic = %specific_impl_fn.loc28_12.2 (constants.%specific_impl_fn.56d)]
  1199. // CHECK:STDOUT: %bound_method.loc28_12.2: <bound method> = bound_method %.loc28_12.2, %specific_impl_fn.loc28_12.1
  1200. // CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call %bound_method.loc28_12.2(%.loc28_12.2)
  1201. // CHECK:STDOUT: %Destroy.Op.bound: <bound method> = bound_method %.loc28_11.5, constants.%Destroy.Op.651ba6.2
  1202. // CHECK:STDOUT: %Destroy.Op.call: init %empty_tuple.type = call %Destroy.Op.bound(%.loc28_11.5)
  1203. // CHECK:STDOUT: return
  1204. // CHECK:STDOUT: }
  1205. // CHECK:STDOUT: }
  1206. // CHECK:STDOUT:
  1207. // CHECK:STDOUT: fn @CallIndirect() {
  1208. // CHECK:STDOUT: !entry:
  1209. // CHECK:STDOUT: %CallGeneric.ref: %CallGeneric.type = name_ref CallGeneric, file.%CallGeneric.decl [concrete = constants.%CallGeneric]
  1210. // CHECK:STDOUT: %Y1.ref: type = name_ref Y1, file.%Y1.decl [concrete = constants.%Y1]
  1211. // CHECK:STDOUT: %Y2.ref: type = name_ref Y2, file.%Y2.decl [concrete = constants.%Y2]
  1212. // CHECK:STDOUT: %.loc33_22: %tuple.type.24b = tuple_literal (%Y1.ref, %Y2.ref) [concrete = constants.%tuple.dd5]
  1213. // CHECK:STDOUT: %.loc33_27: type = type_literal type [concrete = type]
  1214. // CHECK:STDOUT: %.loc33_24: type = converted %.loc33_22, constants.%tuple.type.ab2 [concrete = constants.%tuple.type.ab2]
  1215. // CHECK:STDOUT: %A.facet: %A.type.ab6 = facet_value %.loc33_24, (constants.%A.impl_witness.b3a) [concrete = constants.%A.facet.906]
  1216. // CHECK:STDOUT: %.loc33_31: %A.type.ab6 = converted %.loc33_24, %A.facet [concrete = constants.%A.facet.906]
  1217. // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric.ref, @CallGeneric(constants.%A.facet.906) [concrete = constants.%CallGeneric.specific_fn]
  1218. // CHECK:STDOUT: %CallGeneric.call: init %empty_tuple.type = call %CallGeneric.specific_fn()
  1219. // CHECK:STDOUT: return
  1220. // CHECK:STDOUT: }
  1221. // CHECK:STDOUT:
  1222. // CHECK:STDOUT: specific @A(constants.%T.67d) {
  1223. // CHECK:STDOUT: %T.loc5_13.1 => constants.%T.67d
  1224. // CHECK:STDOUT: }
  1225. // CHECK:STDOUT:
  1226. // CHECK:STDOUT: specific @A.WithSelf(constants.%T.67d, constants.%Self.362) {}
  1227. // CHECK:STDOUT:
  1228. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%T.67d, constants.%Self.362, constants.%U.4e7) {
  1229. // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.4e7
  1230. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.62e
  1231. // CHECK:STDOUT: %T => constants.%T.67d
  1232. // CHECK:STDOUT: %A.type => constants.%A.type.ade
  1233. // CHECK:STDOUT: %Self => constants.%Self.362
  1234. // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.f2d
  1235. // CHECK:STDOUT: %tuple => constants.%tuple.f25
  1236. // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.7ec
  1237. // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.7f3
  1238. // CHECK:STDOUT: %.loc6_38.1 => constants.%.0ad
  1239. // CHECK:STDOUT: %pattern_type.loc6_38 => constants.%pattern_type.22d
  1240. // CHECK:STDOUT: }
  1241. // CHECK:STDOUT:
  1242. // CHECK:STDOUT: specific @A(constants.%W) {
  1243. // CHECK:STDOUT: %T.loc5_13.1 => constants.%W
  1244. // CHECK:STDOUT:
  1245. // CHECK:STDOUT: !definition:
  1246. // CHECK:STDOUT: %A.type => constants.%A.type.fe7
  1247. // CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.d33
  1248. // CHECK:STDOUT: }
  1249. // CHECK:STDOUT:
  1250. // CHECK:STDOUT: specific @tuple.type.as.A.impl(constants.%V1, constants.%V2, constants.%W) {
  1251. // CHECK:STDOUT: %V1.loc14_14.1 => constants.%V1
  1252. // CHECK:STDOUT: %V2.loc14_25.1 => constants.%V2
  1253. // CHECK:STDOUT: %W.loc14_36.1 => constants.%W
  1254. // CHECK:STDOUT: %tuple => constants.%tuple.4b9
  1255. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.a5e
  1256. // CHECK:STDOUT: %A.type.loc14_61.1 => constants.%A.type.fe7
  1257. // CHECK:STDOUT: %A.impl_witness.loc14_63.2 => constants.%A.impl_witness.be2
  1258. // CHECK:STDOUT:
  1259. // CHECK:STDOUT: !definition:
  1260. // CHECK:STDOUT: %require_complete => constants.%require_complete.9a5
  1261. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.ce6
  1262. // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.74d
  1263. // CHECK:STDOUT: }
  1264. // CHECK:STDOUT:
  1265. // CHECK:STDOUT: specific @A.WithSelf(constants.%W, constants.%Self.362) {
  1266. // CHECK:STDOUT: !definition:
  1267. // CHECK:STDOUT: %T => constants.%W
  1268. // CHECK:STDOUT: %A.type => constants.%A.type.fe7
  1269. // CHECK:STDOUT: %Self => constants.%Self.362
  1270. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.986
  1271. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.0f5
  1272. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.7a9
  1273. // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.dfc
  1274. // CHECK:STDOUT: }
  1275. // CHECK:STDOUT:
  1276. // CHECK:STDOUT: specific @tuple.type.as.A.impl.F(constants.%V1, constants.%V2, constants.%W, constants.%U.ce4) {
  1277. // CHECK:STDOUT: %U.loc17_8.1 => constants.%U.ce4
  1278. // CHECK:STDOUT: %pattern_type.loc17_19 => constants.%pattern_type.e4a
  1279. // CHECK:STDOUT: %W => constants.%W
  1280. // CHECK:STDOUT: %V1 => constants.%V1
  1281. // CHECK:STDOUT: %V2 => constants.%V2
  1282. // CHECK:STDOUT: %tuple.loc17_38 => constants.%tuple.4b9
  1283. // CHECK:STDOUT: %tuple.loc17_42 => constants.%tuple.117
  1284. // CHECK:STDOUT: %tuple.type.loc17_42.1 => constants.%tuple.type.a5e
  1285. // CHECK:STDOUT: %tuple.type.loc17_42.2 => constants.%tuple.type.897
  1286. // CHECK:STDOUT: %.loc17_42.2 => constants.%.f8e
  1287. // CHECK:STDOUT: %pattern_type.loc17_42 => constants.%pattern_type.5cc
  1288. // CHECK:STDOUT:
  1289. // CHECK:STDOUT: !definition:
  1290. // CHECK:STDOUT: %require_complete.loc17_19 => constants.%require_complete.5a4
  1291. // CHECK:STDOUT: %require_complete.loc17_42 => constants.%require_complete.da0
  1292. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.ce6
  1293. // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.74d
  1294. // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 => constants.%tuple.type.as.A.impl.F.specific_fn.009
  1295. // CHECK:STDOUT: }
  1296. // CHECK:STDOUT:
  1297. // CHECK:STDOUT: specific @A.WithSelf(constants.%W, constants.%A.facet.56b) {
  1298. // CHECK:STDOUT: !definition:
  1299. // CHECK:STDOUT: %T => constants.%W
  1300. // CHECK:STDOUT: %A.type => constants.%A.type.fe7
  1301. // CHECK:STDOUT: %Self => constants.%A.facet.56b
  1302. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.104
  1303. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.028
  1304. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.7a9
  1305. // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.dfc
  1306. // CHECK:STDOUT: }
  1307. // CHECK:STDOUT:
  1308. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%W, constants.%A.facet.56b, constants.%U.ce4) {
  1309. // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.ce4
  1310. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.e4a
  1311. // CHECK:STDOUT: %T => constants.%W
  1312. // CHECK:STDOUT: %A.type => constants.%A.type.fe7
  1313. // CHECK:STDOUT: %Self => constants.%A.facet.56b
  1314. // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.52a
  1315. // CHECK:STDOUT: %tuple => constants.%tuple.ec4
  1316. // CHECK:STDOUT: %Self.binding.as_type => constants.%tuple.type.a5e
  1317. // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.897
  1318. // CHECK:STDOUT: %.loc6_38.1 => constants.%.f8e
  1319. // CHECK:STDOUT: %pattern_type.loc6_38 => constants.%pattern_type.5cc
  1320. // CHECK:STDOUT: }
  1321. // CHECK:STDOUT:
  1322. // CHECK:STDOUT: specific @A(constants.%X) {
  1323. // CHECK:STDOUT: %T.loc5_13.1 => constants.%X
  1324. // CHECK:STDOUT:
  1325. // CHECK:STDOUT: !definition:
  1326. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  1327. // CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.e87
  1328. // CHECK:STDOUT: }
  1329. // CHECK:STDOUT:
  1330. // CHECK:STDOUT: specific @tuple.type.as.A.impl(constants.%Y1, constants.%Y2, constants.%X) {
  1331. // CHECK:STDOUT: %V1.loc14_14.1 => constants.%Y1
  1332. // CHECK:STDOUT: %V2.loc14_25.1 => constants.%Y2
  1333. // CHECK:STDOUT: %W.loc14_36.1 => constants.%X
  1334. // CHECK:STDOUT: %tuple => constants.%tuple.dd5
  1335. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.ab2
  1336. // CHECK:STDOUT: %A.type.loc14_61.1 => constants.%A.type.ab6
  1337. // CHECK:STDOUT: %A.impl_witness.loc14_63.2 => constants.%A.impl_witness.b3a
  1338. // CHECK:STDOUT:
  1339. // CHECK:STDOUT: !definition:
  1340. // CHECK:STDOUT: %require_complete => constants.%complete_type.a36
  1341. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.d14
  1342. // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.cc8
  1343. // CHECK:STDOUT: }
  1344. // CHECK:STDOUT:
  1345. // CHECK:STDOUT: specific @A.WithSelf(constants.%X, constants.%Self.362) {
  1346. // CHECK:STDOUT: !definition:
  1347. // CHECK:STDOUT: %T => constants.%X
  1348. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  1349. // CHECK:STDOUT: %Self => constants.%Self.362
  1350. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.ba2
  1351. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.e5f
  1352. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.f05
  1353. // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.368
  1354. // CHECK:STDOUT: }
  1355. // CHECK:STDOUT:
  1356. // CHECK:STDOUT: specific @A.WithSelf(constants.%X, constants.%A.facet.906) {
  1357. // CHECK:STDOUT: !definition:
  1358. // CHECK:STDOUT: %T => constants.%X
  1359. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  1360. // CHECK:STDOUT: %Self => constants.%A.facet.906
  1361. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.757
  1362. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.8b6
  1363. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.f05
  1364. // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.368
  1365. // CHECK:STDOUT: }
  1366. // CHECK:STDOUT:
  1367. // CHECK:STDOUT: specific @tuple.type.as.A.impl.F(constants.%Y1, constants.%Y2, constants.%X, constants.%Z) {
  1368. // CHECK:STDOUT: %U.loc17_8.1 => constants.%Z
  1369. // CHECK:STDOUT: %pattern_type.loc17_19 => constants.%pattern_type.bdb
  1370. // CHECK:STDOUT: %W => constants.%X
  1371. // CHECK:STDOUT: %V1 => constants.%Y1
  1372. // CHECK:STDOUT: %V2 => constants.%Y2
  1373. // CHECK:STDOUT: %tuple.loc17_38 => constants.%tuple.dd5
  1374. // CHECK:STDOUT: %tuple.loc17_42 => constants.%tuple.66d
  1375. // CHECK:STDOUT: %tuple.type.loc17_42.1 => constants.%tuple.type.ab2
  1376. // CHECK:STDOUT: %tuple.type.loc17_42.2 => constants.%tuple.type.65a
  1377. // CHECK:STDOUT: %.loc17_42.2 => constants.%.241
  1378. // CHECK:STDOUT: %pattern_type.loc17_42 => constants.%pattern_type.30b
  1379. // CHECK:STDOUT:
  1380. // CHECK:STDOUT: !definition:
  1381. // CHECK:STDOUT: %require_complete.loc17_19 => constants.%complete_type.357
  1382. // CHECK:STDOUT: %require_complete.loc17_42 => constants.%complete_type.cf2
  1383. // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.d14
  1384. // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.cc8
  1385. // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 => constants.%tuple.type.as.A.impl.F.specific_fn.af6
  1386. // CHECK:STDOUT: }
  1387. // CHECK:STDOUT:
  1388. // CHECK:STDOUT: specific @CallGeneric(constants.%T.2bc) {
  1389. // CHECK:STDOUT: %T.loc27_16.1 => constants.%T.2bc
  1390. // CHECK:STDOUT: }
  1391. // CHECK:STDOUT:
  1392. // CHECK:STDOUT: specific @A.WithSelf(constants.%X, constants.%T.2bc) {
  1393. // CHECK:STDOUT: !definition:
  1394. // CHECK:STDOUT: %T => constants.%X
  1395. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  1396. // CHECK:STDOUT: %Self => constants.%T.2bc
  1397. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.f08
  1398. // CHECK:STDOUT: %A.WithSelf.F => constants.%A.WithSelf.F.7ad
  1399. // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.f05
  1400. // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.368
  1401. // CHECK:STDOUT: }
  1402. // CHECK:STDOUT:
  1403. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%X, constants.%T.2bc, constants.%Z) {
  1404. // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
  1405. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.bdb
  1406. // CHECK:STDOUT: %T => constants.%X
  1407. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  1408. // CHECK:STDOUT: %Self => constants.%T.2bc
  1409. // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.f96
  1410. // CHECK:STDOUT: %tuple => constants.%tuple.631
  1411. // CHECK:STDOUT: %Self.binding.as_type => constants.%T.binding.as_type
  1412. // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.856
  1413. // CHECK:STDOUT: %.loc6_38.1 => constants.%.5b0
  1414. // CHECK:STDOUT: %pattern_type.loc6_38 => constants.%pattern_type.4b2
  1415. // CHECK:STDOUT: }
  1416. // CHECK:STDOUT:
  1417. // CHECK:STDOUT: specific @CallGeneric(constants.%A.facet.906) {
  1418. // CHECK:STDOUT: %T.loc27_16.1 => constants.%A.facet.906
  1419. // CHECK:STDOUT:
  1420. // CHECK:STDOUT: !definition:
  1421. // CHECK:STDOUT: %T.binding.as_type => constants.%tuple.type.ab2
  1422. // CHECK:STDOUT: %A.lookup_impl_witness => constants.%A.impl_witness.b3a
  1423. // CHECK:STDOUT: %A.WithSelf.F.type => constants.%A.WithSelf.F.type.757
  1424. // CHECK:STDOUT: %.loc28_4.3 => constants.%.fa2
  1425. // CHECK:STDOUT: %impl.elem0.loc28_4.2 => constants.%tuple.type.as.A.impl.F.cc8
  1426. // CHECK:STDOUT: %specific_impl_fn.loc28_4.2 => constants.%tuple.type.as.A.impl.F.specific_fn.af6
  1427. // CHECK:STDOUT: %tuple.type => constants.%tuple.type.65a
  1428. // CHECK:STDOUT: %require_complete => constants.%complete_type.cf2
  1429. // CHECK:STDOUT: %Destroy.lookup_impl_witness => constants.%custom_witness.8d7fae.1
  1430. // CHECK:STDOUT: %Destroy.facet => constants.%Destroy.facet.9fd
  1431. // CHECK:STDOUT: %Destroy.WithSelf.Op.type => constants.%Destroy.WithSelf.Op.type.d36
  1432. // CHECK:STDOUT: %.loc28_12.3 => constants.%.498
  1433. // CHECK:STDOUT: %impl.elem0.loc28_12.2 => constants.%Destroy.Op.651ba6.1
  1434. // CHECK:STDOUT: %specific_impl_fn.loc28_12.2 => constants.%Destroy.Op.651ba6.1
  1435. // CHECK:STDOUT: }
  1436. // CHECK:STDOUT:
  1437. // CHECK:STDOUT: specific @A.WithSelf.F(constants.%X, constants.%A.facet.906, constants.%Z) {
  1438. // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
  1439. // CHECK:STDOUT: %pattern_type.loc6_19 => constants.%pattern_type.bdb
  1440. // CHECK:STDOUT: %T => constants.%X
  1441. // CHECK:STDOUT: %A.type => constants.%A.type.ab6
  1442. // CHECK:STDOUT: %Self => constants.%A.facet.906
  1443. // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.f96
  1444. // CHECK:STDOUT: %tuple => constants.%tuple.5e4
  1445. // CHECK:STDOUT: %Self.binding.as_type => constants.%tuple.type.ab2
  1446. // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.65a
  1447. // CHECK:STDOUT: %.loc6_38.1 => constants.%.241
  1448. // CHECK:STDOUT: %pattern_type.loc6_38 => constants.%pattern_type.30b
  1449. // CHECK:STDOUT: }
  1450. // CHECK:STDOUT: