import_thunk.carbon 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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/destroy.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/impl/import_thunk.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/import_thunk.carbon
  14. // --- a.carbon
  15. library "[[@TEST_NAME]]";
  16. interface I {
  17. fn F(x: {});
  18. }
  19. // --- b.carbon
  20. library "[[@TEST_NAME]]";
  21. import library "a";
  22. class C(X:! ()) {}
  23. impl forall [Y:! ()] C(Y) as I {
  24. fn F(unused x: C(Y)) {}
  25. }
  26. // --- c.carbon
  27. library "[[@TEST_NAME]]";
  28. import library "a";
  29. import library "b";
  30. fn G() {
  31. C(()).(I.F)({});
  32. }
  33. // CHECK:STDOUT: --- a.carbon
  34. // CHECK:STDOUT:
  35. // CHECK:STDOUT: constants {
  36. // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
  37. // CHECK:STDOUT: %Self: %I.type = symbolic_binding Self, 0 [symbolic]
  38. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  39. // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
  40. // CHECK:STDOUT: %pattern_type: type = pattern_type %empty_struct_type [concrete]
  41. // CHECK:STDOUT: %I.WithSelf.F.type: type = fn_type @I.WithSelf.F, @I.WithSelf(%Self) [symbolic]
  42. // CHECK:STDOUT: %I.WithSelf.F: %I.WithSelf.F.type = struct_value () [symbolic]
  43. // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type @I [concrete]
  44. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, @I.WithSelf.%I.WithSelf.F.decl [concrete]
  45. // CHECK:STDOUT: }
  46. // CHECK:STDOUT:
  47. // CHECK:STDOUT: imports {
  48. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  49. // CHECK:STDOUT: import Core//prelude
  50. // CHECK:STDOUT: import Core//prelude/...
  51. // CHECK:STDOUT: }
  52. // CHECK:STDOUT: }
  53. // CHECK:STDOUT:
  54. // CHECK:STDOUT: file {
  55. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  56. // CHECK:STDOUT: .Core = imports.%Core
  57. // CHECK:STDOUT: .I = %I.decl
  58. // CHECK:STDOUT: }
  59. // CHECK:STDOUT: %Core.import = import Core
  60. // CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {}
  61. // CHECK:STDOUT: }
  62. // CHECK:STDOUT:
  63. // CHECK:STDOUT: interface @I {
  64. // CHECK:STDOUT: %Self: %I.type = symbolic_binding Self, 0 [symbolic = constants.%Self]
  65. // CHECK:STDOUT: %I.WithSelf.decl = interface_with_self_decl @I [concrete]
  66. // CHECK:STDOUT:
  67. // CHECK:STDOUT: !with Self:
  68. // CHECK:STDOUT: %I.WithSelf.F.decl: @I.WithSelf.%I.WithSelf.F.type (%I.WithSelf.F.type) = fn_decl @I.WithSelf.F [symbolic = @I.WithSelf.%I.WithSelf.F (constants.%I.WithSelf.F)] {
  69. // CHECK:STDOUT: %x.param_patt: %pattern_type = value_param_pattern [concrete]
  70. // CHECK:STDOUT: %x.patt: %pattern_type = at_binding_pattern x, %x.param_patt [concrete]
  71. // CHECK:STDOUT: } {
  72. // CHECK:STDOUT: %x.param: %empty_struct_type = value_param call_param0
  73. // CHECK:STDOUT: %.loc5_12.1: type = splice_block %.loc5_12.3 [concrete = constants.%empty_struct_type] {
  74. // CHECK:STDOUT: %.loc5_12.2: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  75. // CHECK:STDOUT: %.loc5_12.3: type = converted %.loc5_12.2, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
  76. // CHECK:STDOUT: }
  77. // CHECK:STDOUT: %x: %empty_struct_type = value_binding x, %x.param
  78. // CHECK:STDOUT: }
  79. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %I.WithSelf.F.decl [concrete = constants.%assoc0]
  80. // CHECK:STDOUT:
  81. // CHECK:STDOUT: !members:
  82. // CHECK:STDOUT: .Self = %Self
  83. // CHECK:STDOUT: .F = @I.WithSelf.%assoc0
  84. // CHECK:STDOUT: witness = (@I.WithSelf.%I.WithSelf.F.decl)
  85. // CHECK:STDOUT:
  86. // CHECK:STDOUT: !requires:
  87. // CHECK:STDOUT: }
  88. // CHECK:STDOUT:
  89. // CHECK:STDOUT: generic fn @I.WithSelf.F(@I.%Self: %I.type) {
  90. // CHECK:STDOUT: fn(%x.param: %empty_struct_type);
  91. // CHECK:STDOUT: }
  92. // CHECK:STDOUT:
  93. // CHECK:STDOUT: specific @I.WithSelf(constants.%Self) {}
  94. // CHECK:STDOUT:
  95. // CHECK:STDOUT: specific @I.WithSelf.F(constants.%Self) {}
  96. // CHECK:STDOUT:
  97. // CHECK:STDOUT: --- b.carbon
  98. // CHECK:STDOUT:
  99. // CHECK:STDOUT: constants {
  100. // CHECK:STDOUT: %type: type = facet_type <type> [concrete]
  101. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
  102. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  103. // CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
  104. // CHECK:STDOUT: %pattern_type.cb1: type = pattern_type %empty_tuple.type [concrete]
  105. // CHECK:STDOUT: %X: %empty_tuple.type = symbolic_binding X, 0 [symbolic]
  106. // CHECK:STDOUT: %C.type: type = generic_class_type @C [concrete]
  107. // CHECK:STDOUT: %C.generic: %C.type = struct_value () [concrete]
  108. // CHECK:STDOUT: %C.c8540f.1: type = class_type @C, @C(%X) [symbolic]
  109. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  110. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
  111. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic]
  112. // CHECK:STDOUT: %C.c8540f.2: type = class_type @C, @C(%Y) [symbolic]
  113. // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
  114. // CHECK:STDOUT: %Self.651: %I.type = symbolic_binding Self, 0 [symbolic]
  115. // CHECK:STDOUT: %I.WithSelf.F.type.a1f: type = fn_type @I.WithSelf.F, @I.WithSelf(%Self.651) [symbolic]
  116. // CHECK:STDOUT: %I.WithSelf.F.cc3: %I.WithSelf.F.type.a1f = struct_value () [symbolic]
  117. // CHECK:STDOUT: %pattern_type.a96: type = pattern_type %empty_struct_type [concrete]
  118. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness @C.as.I.impl.%I.impl_witness_table, @C.as.I.impl(%Y) [symbolic]
  119. // CHECK:STDOUT: %pattern_type.fb2: type = pattern_type %C.c8540f.2 [symbolic]
  120. // CHECK:STDOUT: %C.as.I.impl.F.type.cf838e.1: type = fn_type @C.as.I.impl.F.loc8_24.1, @C.as.I.impl(%Y) [symbolic]
  121. // CHECK:STDOUT: %C.as.I.impl.F.421e41.1: %C.as.I.impl.F.type.cf838e.1 = struct_value () [symbolic]
  122. // CHECK:STDOUT: %I.facet: %I.type = facet_value %C.c8540f.2, (%I.impl_witness) [symbolic]
  123. // CHECK:STDOUT: %I.WithSelf.F.type.81b: type = fn_type @I.WithSelf.F, @I.WithSelf(%I.facet) [symbolic]
  124. // CHECK:STDOUT: %I.WithSelf.F.848: %I.WithSelf.F.type.81b = struct_value () [symbolic]
  125. // CHECK:STDOUT: %C.as.I.impl.F.type.cf838e.2: type = fn_type @C.as.I.impl.F.loc8_24.2, @C.as.I.impl(%Y) [symbolic]
  126. // CHECK:STDOUT: %C.as.I.impl.F.421e41.2: %C.as.I.impl.F.type.cf838e.2 = struct_value () [symbolic]
  127. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %C.c8540f.2 [symbolic]
  128. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn: <specific function> = specific_function %C.as.I.impl.F.421e41.1, @C.as.I.impl.F.loc8_24.1(%Y) [symbolic]
  129. // CHECK:STDOUT: %C.val: %C.c8540f.2 = struct_value () [symbolic]
  130. // CHECK:STDOUT: %.5fa: ref %C.c8540f.2 = temporary invalid, %C.val [symbolic]
  131. // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
  132. // CHECK:STDOUT: %Self.765: %Destroy.type = symbolic_binding Self, 0 [symbolic]
  133. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.cb2: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Self.765) [symbolic]
  134. // CHECK:STDOUT: %Destroy.WithSelf.Op.9f1: %Destroy.WithSelf.Op.type.cb2 = struct_value () [symbolic]
  135. // CHECK:STDOUT: %Destroy.assoc_type: type = assoc_entity_type @Destroy [concrete]
  136. // CHECK:STDOUT: %assoc0: %Destroy.assoc_type = assoc_entity element0, imports.%Core.import_ref.8bb [concrete]
  137. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %C.c8540f.2, @Destroy [symbolic]
  138. // CHECK:STDOUT: %Destroy.facet.832: %Destroy.type = facet_value %C.c8540f.2, (%Destroy.lookup_impl_witness) [symbolic]
  139. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.155: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.832) [symbolic]
  140. // CHECK:STDOUT: %.371: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.155, %Destroy.facet.832 [symbolic]
  141. // CHECK:STDOUT: %impl.elem0: %.371 = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic]
  142. // CHECK:STDOUT: %bound_method.995: <bound method> = bound_method %.5fa, %impl.elem0 [symbolic]
  143. // CHECK:STDOUT: %specific_impl_fn: <specific function> = specific_impl_function %impl.elem0, @Destroy.WithSelf.Op(%Destroy.facet.832) [symbolic]
  144. // CHECK:STDOUT: %bound_method.fc8: <bound method> = bound_method %.5fa, %specific_impl_fn [symbolic]
  145. // CHECK:STDOUT: }
  146. // CHECK:STDOUT:
  147. // CHECK:STDOUT: imports {
  148. // CHECK:STDOUT: %Main.I: type = import_ref Main//a, I, loaded [concrete = constants.%I.type]
  149. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  150. // CHECK:STDOUT: .Destroy = %Core.Destroy
  151. // CHECK:STDOUT: import Core//prelude
  152. // CHECK:STDOUT: import Core//prelude/...
  153. // CHECK:STDOUT: }
  154. // CHECK:STDOUT: %Main.import_ref.7f4 = import_ref Main//a, loc5_14, unloaded
  155. // CHECK:STDOUT: %Main.F: @I.WithSelf.%I.WithSelf.F.type (%I.WithSelf.F.type.a1f) = import_ref Main//a, F, loaded [symbolic = @I.WithSelf.%I.WithSelf.F (constants.%I.WithSelf.F.cc3)]
  156. // CHECK:STDOUT: %Main.import_ref.2362f8.2: %I.type = import_ref Main//a, loc4_13, loaded [symbolic = constants.%Self.651]
  157. // CHECK:STDOUT: %Main.import_ref.c82 = import_ref Main//a, loc4_13, unloaded
  158. // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
  159. // CHECK:STDOUT: %Core.import_ref.06b: %Destroy.assoc_type = import_ref Core//prelude/parts/destroy, loc{{\d+_\d+}}, loaded [concrete = constants.%assoc0]
  160. // CHECK:STDOUT: %Core.import_ref.8bb: @Destroy.WithSelf.%Destroy.WithSelf.Op.type (%Destroy.WithSelf.Op.type.cb2) = import_ref Core//prelude/parts/destroy, loc{{\d+_\d+}}, loaded [symbolic = @Destroy.WithSelf.%Destroy.WithSelf.Op (constants.%Destroy.WithSelf.Op.9f1)]
  161. // CHECK:STDOUT: }
  162. // CHECK:STDOUT:
  163. // CHECK:STDOUT: file {
  164. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  165. // CHECK:STDOUT: .I = imports.%Main.I
  166. // CHECK:STDOUT: .Core = imports.%Core
  167. // CHECK:STDOUT: .C = %C.decl
  168. // CHECK:STDOUT: }
  169. // CHECK:STDOUT: %Core.import = import Core
  170. // CHECK:STDOUT: %default.import = import <none>
  171. // CHECK:STDOUT: %C.decl: %C.type = class_decl @C [concrete = constants.%C.generic] {
  172. // CHECK:STDOUT: %X.patt: %pattern_type.cb1 = symbolic_binding_pattern X, 0 [concrete]
  173. // CHECK:STDOUT: } {
  174. // CHECK:STDOUT: %.loc5_14.1: type = splice_block %.loc5_14.3 [concrete = constants.%empty_tuple.type] {
  175. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  176. // CHECK:STDOUT: %.loc5_14.2: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
  177. // CHECK:STDOUT: %.loc5_14.3: type = converted %.loc5_14.2, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
  178. // CHECK:STDOUT: }
  179. // CHECK:STDOUT: %X.loc5_10.2: %empty_tuple.type = symbolic_binding X, 0 [symbolic = %X.loc5_10.1 (constants.%X)]
  180. // CHECK:STDOUT: }
  181. // CHECK:STDOUT: impl_decl @C.as.I.impl [concrete] {
  182. // CHECK:STDOUT: %Y.patt: %pattern_type.cb1 = symbolic_binding_pattern Y, 0 [concrete]
  183. // CHECK:STDOUT: } {
  184. // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic]
  185. // CHECK:STDOUT: %Y.ref: %empty_tuple.type = name_ref Y, %Y.loc7_15.2 [symbolic = %Y.loc7_15.1 (constants.%Y)]
  186. // CHECK:STDOUT: %C.loc7_25.2: type = class_type @C, @C(constants.%Y) [symbolic = %C.loc7_25.1 (constants.%C.c8540f.2)]
  187. // CHECK:STDOUT: %I.ref: type = name_ref I, imports.%Main.I [concrete = constants.%I.type]
  188. // CHECK:STDOUT: %.loc7_19.1: type = splice_block %.loc7_19.3 [concrete = constants.%empty_tuple.type] {
  189. // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
  190. // CHECK:STDOUT: %.loc7_19.2: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
  191. // CHECK:STDOUT: %.loc7_19.3: type = converted %.loc7_19.2, constants.%empty_tuple.type [concrete = constants.%empty_tuple.type]
  192. // CHECK:STDOUT: }
  193. // CHECK:STDOUT: %Y.loc7_15.2: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y.loc7_15.1 (constants.%Y)]
  194. // CHECK:STDOUT: }
  195. // CHECK:STDOUT: }
  196. // CHECK:STDOUT:
  197. // CHECK:STDOUT: interface @I [from "a.carbon"] {
  198. // CHECK:STDOUT: !members:
  199. // CHECK:STDOUT: .Self = imports.%Main.import_ref.c82
  200. // CHECK:STDOUT: .F = imports.%Main.import_ref.7f4
  201. // CHECK:STDOUT: witness = (imports.%Main.F)
  202. // CHECK:STDOUT:
  203. // CHECK:STDOUT: !requires:
  204. // CHECK:STDOUT: }
  205. // CHECK:STDOUT:
  206. // CHECK:STDOUT: generic impl @C.as.I.impl(%Y.loc7_15.2: %empty_tuple.type) {
  207. // CHECK:STDOUT: %Y.loc7_15.1: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y.loc7_15.1 (constants.%Y)]
  208. // CHECK:STDOUT: %C.loc7_25.1: type = class_type @C, @C(%Y.loc7_15.1) [symbolic = %C.loc7_25.1 (constants.%C.c8540f.2)]
  209. // CHECK:STDOUT: %I.impl_witness.loc7_32.2: <witness> = impl_witness %I.impl_witness_table, @C.as.I.impl(%Y.loc7_15.1) [symbolic = %I.impl_witness.loc7_32.2 (constants.%I.impl_witness)]
  210. // CHECK:STDOUT:
  211. // CHECK:STDOUT: !definition:
  212. // CHECK:STDOUT: %C.as.I.impl.F.type.loc8_24.1: type = fn_type @C.as.I.impl.F.loc8_24.1, @C.as.I.impl(%Y.loc7_15.1) [symbolic = %C.as.I.impl.F.type.loc8_24.1 (constants.%C.as.I.impl.F.type.cf838e.1)]
  213. // CHECK:STDOUT: %C.as.I.impl.F.loc8_24.1: @C.as.I.impl.%C.as.I.impl.F.type.loc8_24.1 (%C.as.I.impl.F.type.cf838e.1) = struct_value () [symbolic = %C.as.I.impl.F.loc8_24.1 (constants.%C.as.I.impl.F.421e41.1)]
  214. // CHECK:STDOUT: %C.as.I.impl.F.type.loc8_24.2: type = fn_type @C.as.I.impl.F.loc8_24.2, @C.as.I.impl(%Y.loc7_15.1) [symbolic = %C.as.I.impl.F.type.loc8_24.2 (constants.%C.as.I.impl.F.type.cf838e.2)]
  215. // CHECK:STDOUT: %C.as.I.impl.F.loc8_24.2: @C.as.I.impl.%C.as.I.impl.F.type.loc8_24.2 (%C.as.I.impl.F.type.cf838e.2) = struct_value () [symbolic = %C.as.I.impl.F.loc8_24.2 (constants.%C.as.I.impl.F.421e41.2)]
  216. // CHECK:STDOUT:
  217. // CHECK:STDOUT: impl: %C.loc7_25.2 as %I.ref {
  218. // CHECK:STDOUT: %C.as.I.impl.F.decl.loc8_24.1: @C.as.I.impl.%C.as.I.impl.F.type.loc8_24.1 (%C.as.I.impl.F.type.cf838e.1) = fn_decl @C.as.I.impl.F.loc8_24.1 [symbolic = @C.as.I.impl.%C.as.I.impl.F.loc8_24.1 (constants.%C.as.I.impl.F.421e41.1)] {
  219. // CHECK:STDOUT: %x.param_patt: @C.as.I.impl.F.loc8_24.1.%pattern_type (%pattern_type.fb2) = value_param_pattern [concrete]
  220. // CHECK:STDOUT: %x.patt: @C.as.I.impl.F.loc8_24.1.%pattern_type (%pattern_type.fb2) = at_binding_pattern x, %x.param_patt [concrete]
  221. // CHECK:STDOUT: } {
  222. // CHECK:STDOUT: %x.param: @C.as.I.impl.F.loc8_24.1.%C.loc8_21.1 (%C.c8540f.2) = value_param call_param0
  223. // CHECK:STDOUT: %.loc8: type = splice_block %C.loc8_21.2 [symbolic = %C.loc8_21.1 (constants.%C.c8540f.2)] {
  224. // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic]
  225. // CHECK:STDOUT: %Y.ref: %empty_tuple.type = name_ref Y, @C.as.I.impl.%Y.loc7_15.2 [symbolic = %Y (constants.%Y)]
  226. // CHECK:STDOUT: %C.loc8_21.2: type = class_type @C, @C(constants.%Y) [symbolic = %C.loc8_21.1 (constants.%C.c8540f.2)]
  227. // CHECK:STDOUT: }
  228. // CHECK:STDOUT: %x: @C.as.I.impl.F.loc8_24.1.%C.loc8_21.1 (%C.c8540f.2) = value_binding x, %x.param
  229. // CHECK:STDOUT: }
  230. // CHECK:STDOUT: %C.as.I.impl.F.decl.loc8_24.2: @C.as.I.impl.%C.as.I.impl.F.type.loc8_24.2 (%C.as.I.impl.F.type.cf838e.2) = fn_decl @C.as.I.impl.F.loc8_24.2 [symbolic = @C.as.I.impl.%C.as.I.impl.F.loc8_24.2 (constants.%C.as.I.impl.F.421e41.2)] {
  231. // CHECK:STDOUT: %x.param_patt: %pattern_type.a96 = value_param_pattern [concrete]
  232. // CHECK:STDOUT: %x.patt: %pattern_type.a96 = at_binding_pattern x, %x.param_patt [concrete]
  233. // CHECK:STDOUT: } {
  234. // CHECK:STDOUT: %x.param: %empty_struct_type = value_param call_param0
  235. // CHECK:STDOUT: %x: %empty_struct_type = value_binding x, %x.param
  236. // CHECK:STDOUT: }
  237. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (%C.as.I.impl.F.decl.loc8_24.2), @C.as.I.impl [concrete]
  238. // CHECK:STDOUT: %I.impl_witness.loc7_32.1: <witness> = impl_witness %I.impl_witness_table, @C.as.I.impl(constants.%Y) [symbolic = %I.impl_witness.loc7_32.2 (constants.%I.impl_witness)]
  239. // CHECK:STDOUT:
  240. // CHECK:STDOUT: !members:
  241. // CHECK:STDOUT: .C = <poisoned>
  242. // CHECK:STDOUT: .Y = <poisoned>
  243. // CHECK:STDOUT: .F = %C.as.I.impl.F.decl.loc8_24.1
  244. // CHECK:STDOUT: witness = %I.impl_witness.loc7_32.1
  245. // CHECK:STDOUT: }
  246. // CHECK:STDOUT: }
  247. // CHECK:STDOUT:
  248. // CHECK:STDOUT: generic class @C(%X.loc5_10.2: %empty_tuple.type) {
  249. // CHECK:STDOUT: %X.loc5_10.1: %empty_tuple.type = symbolic_binding X, 0 [symbolic = %X.loc5_10.1 (constants.%X)]
  250. // CHECK:STDOUT:
  251. // CHECK:STDOUT: !definition:
  252. // CHECK:STDOUT:
  253. // CHECK:STDOUT: class {
  254. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type]
  255. // CHECK:STDOUT: complete_type_witness = %complete_type
  256. // CHECK:STDOUT:
  257. // CHECK:STDOUT: !members:
  258. // CHECK:STDOUT: .Self = constants.%C.c8540f.1
  259. // CHECK:STDOUT: }
  260. // CHECK:STDOUT: }
  261. // CHECK:STDOUT:
  262. // CHECK:STDOUT: generic fn @I.WithSelf.F(imports.%Main.import_ref.2362f8.2: %I.type) [from "a.carbon"] {
  263. // CHECK:STDOUT: fn;
  264. // CHECK:STDOUT: }
  265. // CHECK:STDOUT:
  266. // CHECK:STDOUT: generic fn @C.as.I.impl.F.loc8_24.1(@C.as.I.impl.%Y.loc7_15.2: %empty_tuple.type) {
  267. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y (constants.%Y)]
  268. // CHECK:STDOUT: %C.loc8_21.1: type = class_type @C, @C(%Y) [symbolic = %C.loc8_21.1 (constants.%C.c8540f.2)]
  269. // CHECK:STDOUT: %pattern_type: type = pattern_type %C.loc8_21.1 [symbolic = %pattern_type (constants.%pattern_type.fb2)]
  270. // CHECK:STDOUT:
  271. // CHECK:STDOUT: !definition:
  272. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %C.loc8_21.1 [symbolic = %require_complete (constants.%require_complete)]
  273. // CHECK:STDOUT:
  274. // CHECK:STDOUT: fn(%x.param: @C.as.I.impl.F.loc8_24.1.%C.loc8_21.1 (%C.c8540f.2)) {
  275. // CHECK:STDOUT: !entry:
  276. // CHECK:STDOUT: return
  277. // CHECK:STDOUT: }
  278. // CHECK:STDOUT: }
  279. // CHECK:STDOUT:
  280. // CHECK:STDOUT: generic fn @C.as.I.impl.F.loc8_24.2(@C.as.I.impl.%Y.loc7_15.2: %empty_tuple.type) {
  281. // CHECK:STDOUT: !definition:
  282. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y (constants.%Y)]
  283. // CHECK:STDOUT: %C.as.I.impl.F.type: type = fn_type @C.as.I.impl.F.loc8_24.1, @C.as.I.impl(%Y) [symbolic = %C.as.I.impl.F.type (constants.%C.as.I.impl.F.type.cf838e.1)]
  284. // CHECK:STDOUT: %C.as.I.impl.F: @C.as.I.impl.F.loc8_24.2.%C.as.I.impl.F.type (%C.as.I.impl.F.type.cf838e.1) = struct_value () [symbolic = %C.as.I.impl.F (constants.%C.as.I.impl.F.421e41.1)]
  285. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn.loc8_24.2: <specific function> = specific_function %C.as.I.impl.F, @C.as.I.impl.F.loc8_24.1(%Y) [symbolic = %C.as.I.impl.F.specific_fn.loc8_24.2 (constants.%C.as.I.impl.F.specific_fn)]
  286. // CHECK:STDOUT: %C: type = class_type @C, @C(%Y) [symbolic = %C (constants.%C.c8540f.2)]
  287. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %C [symbolic = %require_complete (constants.%require_complete)]
  288. // CHECK:STDOUT: %C.val: @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) = struct_value () [symbolic = %C.val (constants.%C.val)]
  289. // CHECK:STDOUT: %.6: ref @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) = temporary invalid, %C.val [symbolic = %.6 (constants.%.5fa)]
  290. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %C, @Destroy [symbolic = %Destroy.lookup_impl_witness (constants.%Destroy.lookup_impl_witness)]
  291. // CHECK:STDOUT: %Destroy.facet: %Destroy.type = facet_value %C, (%Destroy.lookup_impl_witness) [symbolic = %Destroy.facet (constants.%Destroy.facet.832)]
  292. // 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.155)]
  293. // CHECK:STDOUT: %.7: type = fn_type_with_self_type %Destroy.WithSelf.Op.type, %Destroy.facet [symbolic = %.7 (constants.%.371)]
  294. // CHECK:STDOUT: %impl.elem0.2: @C.as.I.impl.F.loc8_24.2.%.7 (%.371) = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0.2 (constants.%impl.elem0)]
  295. // CHECK:STDOUT: %bound_method.3: <bound method> = bound_method %.6, %impl.elem0.2 [symbolic = %bound_method.3 (constants.%bound_method.995)]
  296. // CHECK:STDOUT: %specific_impl_fn.2: <specific function> = specific_impl_function %impl.elem0.2, @Destroy.WithSelf.Op(%Destroy.facet) [symbolic = %specific_impl_fn.2 (constants.%specific_impl_fn)]
  297. // CHECK:STDOUT: %bound_method.4: <bound method> = bound_method %.6, %specific_impl_fn.2 [symbolic = %bound_method.4 (constants.%bound_method.fc8)]
  298. // CHECK:STDOUT:
  299. // CHECK:STDOUT: fn(%x.param: %empty_struct_type) [thunk @C.as.I.impl.%C.as.I.impl.F.decl.loc8_24.1] {
  300. // CHECK:STDOUT: !entry:
  301. // CHECK:STDOUT: %.loc8: @C.as.I.impl.F.loc8_24.2.%C.as.I.impl.F.type (%C.as.I.impl.F.type.cf838e.1) = specific_constant @C.as.I.impl.%C.as.I.impl.F.decl.loc8_24.1, @C.as.I.impl(constants.%Y) [symbolic = %C.as.I.impl.F (constants.%C.as.I.impl.F.421e41.1)]
  302. // CHECK:STDOUT: %F.ref: @C.as.I.impl.F.loc8_24.2.%C.as.I.impl.F.type (%C.as.I.impl.F.type.cf838e.1) = name_ref F, %.loc8 [symbolic = %C.as.I.impl.F (constants.%C.as.I.impl.F.421e41.1)]
  303. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn.loc8_24.1: <specific function> = specific_function %F.ref, @C.as.I.impl.F.loc8_24.1(constants.%Y) [symbolic = %C.as.I.impl.F.specific_fn.loc8_24.2 (constants.%C.as.I.impl.F.specific_fn)]
  304. // CHECK:STDOUT: %.1: ref @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) = temporary_storage
  305. // CHECK:STDOUT: %.2: init @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) to %.1 = class_init () [symbolic = %C.val (constants.%C.val)]
  306. // CHECK:STDOUT: %.3: init @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) = converted %x.param, %.2 [symbolic = %C.val (constants.%C.val)]
  307. // CHECK:STDOUT: %.4: ref @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) = temporary %.1, %.3 [symbolic = %.6 (constants.%.5fa)]
  308. // CHECK:STDOUT: %.5: @C.as.I.impl.F.loc8_24.2.%C (%C.c8540f.2) = acquire_value %.4 [symbolic = %C.val (constants.%C.val)]
  309. // CHECK:STDOUT: %C.as.I.impl.F.call: init %empty_tuple.type = call %C.as.I.impl.F.specific_fn.loc8_24.1(%.5)
  310. // CHECK:STDOUT: %Op.ref: %Destroy.assoc_type = name_ref Op, imports.%Core.import_ref.06b [concrete = constants.%assoc0]
  311. // CHECK:STDOUT: %impl.elem0.1: @C.as.I.impl.F.loc8_24.2.%.7 (%.371) = impl_witness_access constants.%Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0.2 (constants.%impl.elem0)]
  312. // CHECK:STDOUT: %bound_method.1: <bound method> = bound_method %.4, %impl.elem0.1 [symbolic = %bound_method.3 (constants.%bound_method.995)]
  313. // CHECK:STDOUT: %specific_impl_fn.1: <specific function> = specific_impl_function %impl.elem0.1, @Destroy.WithSelf.Op(constants.%Destroy.facet.832) [symbolic = %specific_impl_fn.2 (constants.%specific_impl_fn)]
  314. // CHECK:STDOUT: %bound_method.2: <bound method> = bound_method %.4, %specific_impl_fn.1 [symbolic = %bound_method.4 (constants.%bound_method.fc8)]
  315. // CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call %bound_method.2(%.4)
  316. // CHECK:STDOUT: return
  317. // CHECK:STDOUT: }
  318. // CHECK:STDOUT: }
  319. // CHECK:STDOUT:
  320. // CHECK:STDOUT: fn @Destroy.Op(%self.param: ref %empty_struct_type) = "no_op";
  321. // CHECK:STDOUT:
  322. // CHECK:STDOUT: specific @C(constants.%X) {
  323. // CHECK:STDOUT: %X.loc5_10.1 => constants.%X
  324. // CHECK:STDOUT: }
  325. // CHECK:STDOUT:
  326. // CHECK:STDOUT: specific @C(constants.%Y) {
  327. // CHECK:STDOUT: %X.loc5_10.1 => constants.%Y
  328. // CHECK:STDOUT:
  329. // CHECK:STDOUT: !definition:
  330. // CHECK:STDOUT: }
  331. // CHECK:STDOUT:
  332. // CHECK:STDOUT: specific @I.WithSelf(constants.%Self.651) {
  333. // CHECK:STDOUT: !definition:
  334. // CHECK:STDOUT: %Self => constants.%Self.651
  335. // CHECK:STDOUT: %I.WithSelf.F.type => constants.%I.WithSelf.F.type.a1f
  336. // CHECK:STDOUT: %I.WithSelf.F => constants.%I.WithSelf.F.cc3
  337. // CHECK:STDOUT: }
  338. // CHECK:STDOUT:
  339. // CHECK:STDOUT: specific @I.WithSelf.F(constants.%Self.651) {}
  340. // CHECK:STDOUT:
  341. // CHECK:STDOUT: specific @C.as.I.impl(constants.%Y) {
  342. // CHECK:STDOUT: %Y.loc7_15.1 => constants.%Y
  343. // CHECK:STDOUT: %C.loc7_25.1 => constants.%C.c8540f.2
  344. // CHECK:STDOUT: %I.impl_witness.loc7_32.2 => constants.%I.impl_witness
  345. // CHECK:STDOUT:
  346. // CHECK:STDOUT: !definition:
  347. // CHECK:STDOUT: %C.as.I.impl.F.type.loc8_24.1 => constants.%C.as.I.impl.F.type.cf838e.1
  348. // CHECK:STDOUT: %C.as.I.impl.F.loc8_24.1 => constants.%C.as.I.impl.F.421e41.1
  349. // CHECK:STDOUT: %C.as.I.impl.F.type.loc8_24.2 => constants.%C.as.I.impl.F.type.cf838e.2
  350. // CHECK:STDOUT: %C.as.I.impl.F.loc8_24.2 => constants.%C.as.I.impl.F.421e41.2
  351. // CHECK:STDOUT: }
  352. // CHECK:STDOUT:
  353. // CHECK:STDOUT: specific @C.as.I.impl.F.loc8_24.1(constants.%Y) {
  354. // CHECK:STDOUT: %Y => constants.%Y
  355. // CHECK:STDOUT: %C.loc8_21.1 => constants.%C.c8540f.2
  356. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.fb2
  357. // CHECK:STDOUT:
  358. // CHECK:STDOUT: !definition:
  359. // CHECK:STDOUT: %require_complete => constants.%require_complete
  360. // CHECK:STDOUT: }
  361. // CHECK:STDOUT:
  362. // CHECK:STDOUT: specific @I.WithSelf(constants.%I.facet) {
  363. // CHECK:STDOUT: !definition:
  364. // CHECK:STDOUT: %Self => constants.%I.facet
  365. // CHECK:STDOUT: %I.WithSelf.F.type => constants.%I.WithSelf.F.type.81b
  366. // CHECK:STDOUT: %I.WithSelf.F => constants.%I.WithSelf.F.848
  367. // CHECK:STDOUT: }
  368. // CHECK:STDOUT:
  369. // CHECK:STDOUT: specific @I.WithSelf.F(constants.%I.facet) {}
  370. // CHECK:STDOUT:
  371. // CHECK:STDOUT: specific @C.as.I.impl.F.loc8_24.2(constants.%Y) {}
  372. // CHECK:STDOUT:
  373. // CHECK:STDOUT: --- c.carbon
  374. // CHECK:STDOUT:
  375. // CHECK:STDOUT: constants {
  376. // CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
  377. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  378. // CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
  379. // CHECK:STDOUT: %C.type: type = generic_class_type @C [concrete]
  380. // CHECK:STDOUT: %C.generic: %C.type = struct_value () [concrete]
  381. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  382. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
  383. // CHECK:STDOUT: %X: %empty_tuple.type = symbolic_binding X, 0 [symbolic]
  384. // CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
  385. // CHECK:STDOUT: %C.387: type = class_type @C, @C(%empty_tuple) [concrete]
  386. // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
  387. // CHECK:STDOUT: %Self.651: %I.type = symbolic_binding Self, 0 [symbolic]
  388. // CHECK:STDOUT: %I.WithSelf.F.type.a1f: type = fn_type @I.WithSelf.F, @I.WithSelf(%Self.651) [symbolic]
  389. // CHECK:STDOUT: %I.WithSelf.F.cc3: %I.WithSelf.F.type.a1f = struct_value () [symbolic]
  390. // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type @I [concrete]
  391. // CHECK:STDOUT: %assoc0.a42: %I.assoc_type = assoc_entity element0, imports.%Main.import_ref.972 [concrete]
  392. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic]
  393. // CHECK:STDOUT: %C.c8540f.2: type = class_type @C, @C(%Y) [symbolic]
  394. // CHECK:STDOUT: %I.impl_witness.a8f: <witness> = impl_witness imports.%I.impl_witness_table, @C.as.I.impl(%Y) [symbolic]
  395. // CHECK:STDOUT: %C.as.I.impl.F.type.cf838e.1: type = fn_type @C.as.I.impl.F.1, @C.as.I.impl(%Y) [symbolic]
  396. // CHECK:STDOUT: %C.as.I.impl.F.421e41.1: %C.as.I.impl.F.type.cf838e.1 = struct_value () [symbolic]
  397. // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
  398. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %C.c8540f.2, @Destroy [symbolic]
  399. // CHECK:STDOUT: %Destroy.facet.3bf: %Destroy.type = facet_value %C.c8540f.2, (%Destroy.lookup_impl_witness) [symbolic]
  400. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.696: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.3bf) [symbolic]
  401. // CHECK:STDOUT: %.634: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.696, %Destroy.facet.3bf [symbolic]
  402. // CHECK:STDOUT: %impl.elem0: %.634 = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic]
  403. // CHECK:STDOUT: %specific_impl_fn: <specific function> = specific_impl_function %impl.elem0, @Destroy.WithSelf.Op(%Destroy.facet.3bf) [symbolic]
  404. // CHECK:STDOUT: %pattern_type.fb2: type = pattern_type %C.c8540f.2 [symbolic]
  405. // CHECK:STDOUT: %C.val.6cb: %C.c8540f.2 = struct_value () [symbolic]
  406. // CHECK:STDOUT: %.5fa: ref %C.c8540f.2 = temporary invalid, %C.val.6cb [symbolic]
  407. // CHECK:STDOUT: %C.as.I.impl.F.type.cf838e.2: type = fn_type @C.as.I.impl.F.2, @C.as.I.impl(%Y) [symbolic]
  408. // CHECK:STDOUT: %C.as.I.impl.F.421e41.2: %C.as.I.impl.F.type.cf838e.2 = struct_value () [symbolic]
  409. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %C.c8540f.2 [symbolic]
  410. // CHECK:STDOUT: %bound_method.ff8: <bound method> = bound_method %.5fa, %specific_impl_fn [symbolic]
  411. // CHECK:STDOUT: %bound_method.88b: <bound method> = bound_method %.5fa, %impl.elem0 [symbolic]
  412. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn.23d: <specific function> = specific_function %C.as.I.impl.F.421e41.2, @C.as.I.impl.F.2(%Y) [symbolic]
  413. // CHECK:STDOUT: %I.impl_witness.ead: <witness> = impl_witness imports.%I.impl_witness_table, @C.as.I.impl(%empty_tuple) [concrete]
  414. // CHECK:STDOUT: %C.as.I.impl.F.type.0e1915.1: type = fn_type @C.as.I.impl.F.2, @C.as.I.impl(%empty_tuple) [concrete]
  415. // CHECK:STDOUT: %C.as.I.impl.F.fcfec4.1: %C.as.I.impl.F.type.0e1915.1 = struct_value () [concrete]
  416. // CHECK:STDOUT: %C.as.I.impl.F.type.0e1915.2: type = fn_type @C.as.I.impl.F.1, @C.as.I.impl(%empty_tuple) [concrete]
  417. // CHECK:STDOUT: %C.as.I.impl.F.fcfec4.2: %C.as.I.impl.F.type.0e1915.2 = struct_value () [concrete]
  418. // CHECK:STDOUT: %I.facet: %I.type = facet_value %C.387, (%I.impl_witness.ead) [concrete]
  419. // CHECK:STDOUT: %I.WithSelf.F.type.99c: type = fn_type @I.WithSelf.F, @I.WithSelf(%I.facet) [concrete]
  420. // CHECK:STDOUT: %I.WithSelf.F.8d9: %I.WithSelf.F.type.99c = struct_value () [concrete]
  421. // CHECK:STDOUT: %.e941: type = fn_type_with_self_type %I.WithSelf.F.type.99c, %I.facet [concrete]
  422. // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
  423. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn.a77113.1: <specific function> = specific_function %C.as.I.impl.F.fcfec4.2, @C.as.I.impl.F.1(%empty_tuple) [concrete]
  424. // CHECK:STDOUT: %pattern_type.678: type = pattern_type %C.387 [concrete]
  425. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn.a77113.2: <specific function> = specific_function %C.as.I.impl.F.fcfec4.1, @C.as.I.impl.F.2(%empty_tuple) [concrete]
  426. // CHECK:STDOUT: %C.val.135: %C.387 = struct_value () [concrete]
  427. // CHECK:STDOUT: %.e94e: ref %C.387 = temporary invalid, %C.val.135 [concrete]
  428. // CHECK:STDOUT: %Destroy.Op.type.989f67.2: type = fn_type @Destroy.Op.loc7_16.2 [concrete]
  429. // CHECK:STDOUT: %Destroy.Op.3d2d93.2: %Destroy.Op.type.989f67.2 = struct_value () [concrete]
  430. // CHECK:STDOUT: %custom_witness.50a5c4.2: <witness> = custom_witness (%Destroy.Op.3d2d93.2), @Destroy [concrete]
  431. // CHECK:STDOUT: %Destroy.facet.4d6: %Destroy.type = facet_value %C.387, (%custom_witness.50a5c4.2) [concrete]
  432. // CHECK:STDOUT: %Destroy.WithSelf.Op.type.cb8: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.4d6) [concrete]
  433. // CHECK:STDOUT: %.58c: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.cb8, %Destroy.facet.4d6 [concrete]
  434. // CHECK:STDOUT: %Destroy.Op.bound: <bound method> = bound_method %.e94e, %Destroy.Op.3d2d93.2 [concrete]
  435. // CHECK:STDOUT: }
  436. // CHECK:STDOUT:
  437. // CHECK:STDOUT: imports {
  438. // CHECK:STDOUT: %Main.I: type = import_ref Main//a, I, loaded [concrete = constants.%I.type]
  439. // CHECK:STDOUT: %Main.C: %C.type = import_ref Main//b, C, loaded [concrete = constants.%C.generic]
  440. // CHECK:STDOUT: %Core.ece: <namespace> = namespace file.%Core.import, [concrete] {
  441. // CHECK:STDOUT: .Destroy = %Core.Destroy
  442. // CHECK:STDOUT: import Core//prelude
  443. // CHECK:STDOUT: import Core//prelude/...
  444. // CHECK:STDOUT: }
  445. // CHECK:STDOUT: %Main.import_ref.8f2: <witness> = import_ref Main//b, loc5_18, loaded [concrete = constants.%complete_type]
  446. // CHECK:STDOUT: %Main.import_ref.dbf = import_ref Main//b, inst{{[0-9A-F]+}} [no loc], unloaded
  447. // CHECK:STDOUT: %Main.import_ref.c90e1a.1: %empty_tuple.type = import_ref Main//b, loc5_10, loaded [symbolic = @C.%X (constants.%X)]
  448. // CHECK:STDOUT: %Main.import_ref.a54: %I.assoc_type = import_ref Main//a, loc5_14, loaded [concrete = constants.%assoc0.a42]
  449. // CHECK:STDOUT: %Main.F.768 = import_ref Main//a, F, unloaded
  450. // CHECK:STDOUT: %Main.import_ref.2362f8.2: %I.type = import_ref Main//a, loc4_13, loaded [symbolic = constants.%Self.651]
  451. // CHECK:STDOUT: %Main.import_ref.c82 = import_ref Main//a, loc4_13, unloaded
  452. // CHECK:STDOUT: %Main.import_ref.972: @I.WithSelf.%I.WithSelf.F.type (%I.WithSelf.F.type.a1f) = import_ref Main//a, loc5_14, loaded [symbolic = @I.WithSelf.%I.WithSelf.F (constants.%I.WithSelf.F.cc3)]
  453. // CHECK:STDOUT: %Main.import_ref.e97: <witness> = import_ref Main//b, loc7_32, loaded [symbolic = @C.as.I.impl.%I.impl_witness (constants.%I.impl_witness.a8f)]
  454. // CHECK:STDOUT: %Main.import_ref.045: @C.as.I.impl.%C.as.I.impl.F.type.2 (%C.as.I.impl.F.type.cf838e.1) = import_ref Main//b, loc8_24, loaded [symbolic = @C.as.I.impl.%C.as.I.impl.F.2 (constants.%C.as.I.impl.F.421e41.1)]
  455. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (%Main.import_ref.045), @C.as.I.impl [concrete]
  456. // CHECK:STDOUT: %Main.F.13b: @C.as.I.impl.%C.as.I.impl.F.type.1 (%C.as.I.impl.F.type.cf838e.2) = import_ref Main//b, F, loaded [symbolic = @C.as.I.impl.%C.as.I.impl.F.1 (constants.%C.as.I.impl.F.421e41.2)]
  457. // CHECK:STDOUT: %Main.import_ref.c90e1a.2: %empty_tuple.type = import_ref Main//b, loc7_15, loaded [symbolic = @C.as.I.impl.%Y (constants.%Y)]
  458. // CHECK:STDOUT: %Main.import_ref.c90e1a.3: %empty_tuple.type = import_ref Main//b, loc7_15, loaded [symbolic = @C.as.I.impl.%Y (constants.%Y)]
  459. // CHECK:STDOUT: %Main.import_ref.2e2: type = import_ref Main//b, loc7_25, loaded [symbolic = @C.as.I.impl.%C (constants.%C.c8540f.2)]
  460. // CHECK:STDOUT: %Main.import_ref.91f: type = import_ref Main//b, loc7_30, loaded [concrete = constants.%I.type]
  461. // CHECK:STDOUT: %Main.import_ref.c90e1a.4: %empty_tuple.type = import_ref Main//b, loc7_15, loaded [symbolic = @C.as.I.impl.%Y (constants.%Y)]
  462. // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
  463. // CHECK:STDOUT: }
  464. // CHECK:STDOUT:
  465. // CHECK:STDOUT: file {
  466. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  467. // CHECK:STDOUT: .I = imports.%Main.I
  468. // CHECK:STDOUT: .C = imports.%Main.C
  469. // CHECK:STDOUT: .Core = imports.%Core.ece
  470. // CHECK:STDOUT: .G = %G.decl
  471. // CHECK:STDOUT: }
  472. // CHECK:STDOUT: %Core.import = import Core
  473. // CHECK:STDOUT: %default.import = import <none>
  474. // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
  475. // CHECK:STDOUT: }
  476. // CHECK:STDOUT:
  477. // CHECK:STDOUT: interface @I [from "a.carbon"] {
  478. // CHECK:STDOUT: !members:
  479. // CHECK:STDOUT: .Self = imports.%Main.import_ref.c82
  480. // CHECK:STDOUT: .F = imports.%Main.import_ref.a54
  481. // CHECK:STDOUT: witness = (imports.%Main.F.768)
  482. // CHECK:STDOUT:
  483. // CHECK:STDOUT: !requires:
  484. // CHECK:STDOUT: }
  485. // CHECK:STDOUT:
  486. // CHECK:STDOUT: generic impl @C.as.I.impl(imports.%Main.import_ref.c90e1a.4: %empty_tuple.type) [from "b.carbon"] {
  487. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y (constants.%Y)]
  488. // CHECK:STDOUT: %C: type = class_type @C, @C(%Y) [symbolic = %C (constants.%C.c8540f.2)]
  489. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness imports.%I.impl_witness_table, @C.as.I.impl(%Y) [symbolic = %I.impl_witness (constants.%I.impl_witness.a8f)]
  490. // CHECK:STDOUT:
  491. // CHECK:STDOUT: !definition:
  492. // CHECK:STDOUT: %C.as.I.impl.F.type.1: type = fn_type @C.as.I.impl.F.2, @C.as.I.impl(%Y) [symbolic = %C.as.I.impl.F.type.1 (constants.%C.as.I.impl.F.type.cf838e.2)]
  493. // CHECK:STDOUT: %C.as.I.impl.F.1: @C.as.I.impl.%C.as.I.impl.F.type.1 (%C.as.I.impl.F.type.cf838e.2) = struct_value () [symbolic = %C.as.I.impl.F.1 (constants.%C.as.I.impl.F.421e41.2)]
  494. // CHECK:STDOUT: %C.as.I.impl.F.type.2: type = fn_type @C.as.I.impl.F.1, @C.as.I.impl(%Y) [symbolic = %C.as.I.impl.F.type.2 (constants.%C.as.I.impl.F.type.cf838e.1)]
  495. // CHECK:STDOUT: %C.as.I.impl.F.2: @C.as.I.impl.%C.as.I.impl.F.type.2 (%C.as.I.impl.F.type.cf838e.1) = struct_value () [symbolic = %C.as.I.impl.F.2 (constants.%C.as.I.impl.F.421e41.1)]
  496. // CHECK:STDOUT:
  497. // CHECK:STDOUT: impl: imports.%Main.import_ref.2e2 as imports.%Main.import_ref.91f {
  498. // CHECK:STDOUT: !members:
  499. // CHECK:STDOUT: witness = imports.%Main.import_ref.e97
  500. // CHECK:STDOUT: }
  501. // CHECK:STDOUT: }
  502. // CHECK:STDOUT:
  503. // CHECK:STDOUT: generic class @C(imports.%Main.import_ref.c90e1a.1: %empty_tuple.type) [from "b.carbon"] {
  504. // CHECK:STDOUT: %X: %empty_tuple.type = symbolic_binding X, 0 [symbolic = %X (constants.%X)]
  505. // CHECK:STDOUT:
  506. // CHECK:STDOUT: !definition:
  507. // CHECK:STDOUT:
  508. // CHECK:STDOUT: class {
  509. // CHECK:STDOUT: complete_type_witness = imports.%Main.import_ref.8f2
  510. // CHECK:STDOUT:
  511. // CHECK:STDOUT: !members:
  512. // CHECK:STDOUT: .Self = imports.%Main.import_ref.dbf
  513. // CHECK:STDOUT: }
  514. // CHECK:STDOUT: }
  515. // CHECK:STDOUT:
  516. // CHECK:STDOUT: fn @G() {
  517. // CHECK:STDOUT: !entry:
  518. // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%Main.C [concrete = constants.%C.generic]
  519. // CHECK:STDOUT: %.loc7_6: %empty_tuple.type = tuple_literal () [concrete = constants.%empty_tuple]
  520. // CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete = constants.%empty_tuple]
  521. // CHECK:STDOUT: %.loc7_7: %empty_tuple.type = converted %.loc7_6, %empty_tuple [concrete = constants.%empty_tuple]
  522. // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%empty_tuple) [concrete = constants.%C.387]
  523. // CHECK:STDOUT: %I.ref: type = name_ref I, imports.%Main.I [concrete = constants.%I.type]
  524. // CHECK:STDOUT: %F.ref.loc7_11: %I.assoc_type = name_ref F, imports.%Main.import_ref.a54 [concrete = constants.%assoc0.a42]
  525. // CHECK:STDOUT: %I.facet: %I.type = facet_value %C, (constants.%I.impl_witness.ead) [concrete = constants.%I.facet]
  526. // CHECK:STDOUT: %.loc7_8: %I.type = converted %C, %I.facet [concrete = constants.%I.facet]
  527. // CHECK:STDOUT: %impl.elem0: %.e941 = impl_witness_access constants.%I.impl_witness.ead, element0 [concrete = constants.%C.as.I.impl.F.fcfec4.2]
  528. // CHECK:STDOUT: %.loc7_16.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
  529. // CHECK:STDOUT: %empty_struct.loc7_16.1: %empty_struct_type = struct_value () [concrete = constants.%empty_struct]
  530. // CHECK:STDOUT: %.loc7_17.1: %empty_struct_type = converted %.loc7_16.1, %empty_struct.loc7_16.1 [concrete = constants.%empty_struct]
  531. // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0, @C.as.I.impl.F.1(constants.%empty_tuple) [concrete = constants.%C.as.I.impl.F.specific_fn.a77113.1]
  532. // CHECK:STDOUT: %empty_struct.loc7_16.2: %empty_struct_type = struct_value () [concrete = constants.%empty_struct]
  533. // CHECK:STDOUT: %.loc7_16.2: %empty_struct_type = converted %.loc7_16.1, %empty_struct.loc7_16.2 [concrete = constants.%empty_struct]
  534. // CHECK:STDOUT: %.loc7_17.2: %C.as.I.impl.F.type.0e1915.1 = specific_constant imports.%Main.F.13b, @C.as.I.impl(constants.%empty_tuple) [concrete = constants.%C.as.I.impl.F.fcfec4.1]
  535. // CHECK:STDOUT: %F.ref.loc7_17: %C.as.I.impl.F.type.0e1915.1 = name_ref F, %.loc7_17.2 [concrete = constants.%C.as.I.impl.F.fcfec4.1]
  536. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn: <specific function> = specific_function %F.ref.loc7_17, @C.as.I.impl.F.2(constants.%empty_tuple) [concrete = constants.%C.as.I.impl.F.specific_fn.a77113.2]
  537. // CHECK:STDOUT: %.loc7_16.3: ref %C.387 = temporary_storage
  538. // CHECK:STDOUT: %.loc7_16.4: init %C.387 to %.loc7_16.3 = class_init () [concrete = constants.%C.val.135]
  539. // CHECK:STDOUT: %.loc7_16.5: init %C.387 = converted %.loc7_16.2, %.loc7_16.4 [concrete = constants.%C.val.135]
  540. // CHECK:STDOUT: %.loc7_16.6: ref %C.387 = temporary %.loc7_16.3, %.loc7_16.5 [concrete = constants.%.e94e]
  541. // CHECK:STDOUT: %.loc7_16.7: %C.387 = acquire_value %.loc7_16.6 [concrete = constants.%C.val.135]
  542. // CHECK:STDOUT: %C.as.I.impl.F.call: init %empty_tuple.type = call %C.as.I.impl.F.specific_fn(%.loc7_16.7)
  543. // CHECK:STDOUT: %Destroy.Op.call: init %empty_tuple.type = call constants.%Destroy.Op.bound(constants.%.e94e)
  544. // CHECK:STDOUT: return
  545. // CHECK:STDOUT: }
  546. // CHECK:STDOUT:
  547. // CHECK:STDOUT: generic fn @I.WithSelf.F(imports.%Main.import_ref.2362f8.2: %I.type) [from "a.carbon"] {
  548. // CHECK:STDOUT: fn;
  549. // CHECK:STDOUT: }
  550. // CHECK:STDOUT:
  551. // CHECK:STDOUT: generic fn @C.as.I.impl.F.1(imports.%Main.import_ref.c90e1a.2: %empty_tuple.type) [from "b.carbon"] {
  552. // CHECK:STDOUT: !definition:
  553. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y (constants.%Y)]
  554. // CHECK:STDOUT: %C.as.I.impl.F.type: type = fn_type @C.as.I.impl.F.2, @C.as.I.impl(%Y) [symbolic = %C.as.I.impl.F.type (constants.%C.as.I.impl.F.type.cf838e.2)]
  555. // CHECK:STDOUT: %C.as.I.impl.F: @C.as.I.impl.F.1.%C.as.I.impl.F.type (%C.as.I.impl.F.type.cf838e.2) = struct_value () [symbolic = %C.as.I.impl.F (constants.%C.as.I.impl.F.421e41.2)]
  556. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn: <specific function> = specific_function %C.as.I.impl.F, @C.as.I.impl.F.2(%Y) [symbolic = %C.as.I.impl.F.specific_fn (constants.%C.as.I.impl.F.specific_fn.23d)]
  557. // CHECK:STDOUT: %C: type = class_type @C, @C(%Y) [symbolic = %C (constants.%C.c8540f.2)]
  558. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %C [symbolic = %require_complete (constants.%require_complete)]
  559. // CHECK:STDOUT: %C.val: @C.as.I.impl.F.1.%C (%C.c8540f.2) = struct_value () [symbolic = %C.val (constants.%C.val.6cb)]
  560. // CHECK:STDOUT: %.1: ref @C.as.I.impl.F.1.%C (%C.c8540f.2) = temporary invalid, %C.val [symbolic = %.1 (constants.%.5fa)]
  561. // CHECK:STDOUT: %Destroy.lookup_impl_witness: <witness> = lookup_impl_witness %C, @Destroy [symbolic = %Destroy.lookup_impl_witness (constants.%Destroy.lookup_impl_witness)]
  562. // CHECK:STDOUT: %Destroy.facet: %Destroy.type = facet_value %C, (%Destroy.lookup_impl_witness) [symbolic = %Destroy.facet (constants.%Destroy.facet.3bf)]
  563. // 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.696)]
  564. // CHECK:STDOUT: %.2: type = fn_type_with_self_type %Destroy.WithSelf.Op.type, %Destroy.facet [symbolic = %.2 (constants.%.634)]
  565. // CHECK:STDOUT: %impl.elem0: @C.as.I.impl.F.1.%.2 (%.634) = impl_witness_access %Destroy.lookup_impl_witness, element0 [symbolic = %impl.elem0 (constants.%impl.elem0)]
  566. // CHECK:STDOUT: %bound_method.1: <bound method> = bound_method %.1, %impl.elem0 [symbolic = %bound_method.1 (constants.%bound_method.88b)]
  567. // CHECK:STDOUT: %specific_impl_fn: <specific function> = specific_impl_function %impl.elem0, @Destroy.WithSelf.Op(%Destroy.facet) [symbolic = %specific_impl_fn (constants.%specific_impl_fn)]
  568. // CHECK:STDOUT: %bound_method.2: <bound method> = bound_method %.1, %specific_impl_fn [symbolic = %bound_method.2 (constants.%bound_method.ff8)]
  569. // CHECK:STDOUT:
  570. // CHECK:STDOUT: fn [thunk imports.%Main.F.13b];
  571. // CHECK:STDOUT: }
  572. // CHECK:STDOUT:
  573. // CHECK:STDOUT: generic fn @C.as.I.impl.F.2(imports.%Main.import_ref.c90e1a.3: %empty_tuple.type) [from "b.carbon"] {
  574. // CHECK:STDOUT: %Y: %empty_tuple.type = symbolic_binding Y, 0 [symbolic = %Y (constants.%Y)]
  575. // CHECK:STDOUT: %C: type = class_type @C, @C(%Y) [symbolic = %C (constants.%C.c8540f.2)]
  576. // CHECK:STDOUT: %pattern_type: type = pattern_type %C [symbolic = %pattern_type (constants.%pattern_type.fb2)]
  577. // CHECK:STDOUT:
  578. // CHECK:STDOUT: !definition:
  579. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %C [symbolic = %require_complete (constants.%require_complete)]
  580. // CHECK:STDOUT:
  581. // CHECK:STDOUT: fn;
  582. // CHECK:STDOUT: }
  583. // CHECK:STDOUT:
  584. // CHECK:STDOUT: fn @Destroy.Op.loc7_16.1(%self.param: ref %empty_struct_type) = "no_op";
  585. // CHECK:STDOUT:
  586. // CHECK:STDOUT: fn @Destroy.Op.loc7_16.2(%self.param: ref %C.387) {
  587. // CHECK:STDOUT: !entry:
  588. // CHECK:STDOUT: return
  589. // CHECK:STDOUT: }
  590. // CHECK:STDOUT:
  591. // CHECK:STDOUT: specific @C(constants.%X) {
  592. // CHECK:STDOUT: %X => constants.%X
  593. // CHECK:STDOUT: }
  594. // CHECK:STDOUT:
  595. // CHECK:STDOUT: specific @C(constants.%empty_tuple) {
  596. // CHECK:STDOUT: %X => constants.%empty_tuple
  597. // CHECK:STDOUT:
  598. // CHECK:STDOUT: !definition:
  599. // CHECK:STDOUT: }
  600. // CHECK:STDOUT:
  601. // CHECK:STDOUT: specific @I.WithSelf(constants.%Self.651) {
  602. // CHECK:STDOUT: !definition:
  603. // CHECK:STDOUT: %Self => constants.%Self.651
  604. // CHECK:STDOUT: %I.WithSelf.F.type => constants.%I.WithSelf.F.type.a1f
  605. // CHECK:STDOUT: %I.WithSelf.F => constants.%I.WithSelf.F.cc3
  606. // CHECK:STDOUT: }
  607. // CHECK:STDOUT:
  608. // CHECK:STDOUT: specific @I.WithSelf.F(constants.%Self.651) {}
  609. // CHECK:STDOUT:
  610. // CHECK:STDOUT: specific @C(constants.%Y) {
  611. // CHECK:STDOUT: %X => constants.%Y
  612. // CHECK:STDOUT:
  613. // CHECK:STDOUT: !definition:
  614. // CHECK:STDOUT: }
  615. // CHECK:STDOUT:
  616. // CHECK:STDOUT: specific @C.as.I.impl(constants.%Y) {
  617. // CHECK:STDOUT: %Y => constants.%Y
  618. // CHECK:STDOUT: %C => constants.%C.c8540f.2
  619. // CHECK:STDOUT: %I.impl_witness => constants.%I.impl_witness.a8f
  620. // CHECK:STDOUT:
  621. // CHECK:STDOUT: !definition:
  622. // CHECK:STDOUT: %C.as.I.impl.F.type.1 => constants.%C.as.I.impl.F.type.cf838e.2
  623. // CHECK:STDOUT: %C.as.I.impl.F.1 => constants.%C.as.I.impl.F.421e41.2
  624. // CHECK:STDOUT: %C.as.I.impl.F.type.2 => constants.%C.as.I.impl.F.type.cf838e.1
  625. // CHECK:STDOUT: %C.as.I.impl.F.2 => constants.%C.as.I.impl.F.421e41.1
  626. // CHECK:STDOUT: }
  627. // CHECK:STDOUT:
  628. // CHECK:STDOUT: specific @C.as.I.impl.F.2(constants.%Y) {
  629. // CHECK:STDOUT: %Y => constants.%Y
  630. // CHECK:STDOUT: %C => constants.%C.c8540f.2
  631. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.fb2
  632. // CHECK:STDOUT:
  633. // CHECK:STDOUT: !definition:
  634. // CHECK:STDOUT: %require_complete => constants.%require_complete
  635. // CHECK:STDOUT: }
  636. // CHECK:STDOUT:
  637. // CHECK:STDOUT: specific @C.as.I.impl.F.1(constants.%Y) {}
  638. // CHECK:STDOUT:
  639. // CHECK:STDOUT: specific @C.as.I.impl(constants.%empty_tuple) {
  640. // CHECK:STDOUT: %Y => constants.%empty_tuple
  641. // CHECK:STDOUT: %C => constants.%C.387
  642. // CHECK:STDOUT: %I.impl_witness => constants.%I.impl_witness.ead
  643. // CHECK:STDOUT:
  644. // CHECK:STDOUT: !definition:
  645. // CHECK:STDOUT: %C.as.I.impl.F.type.1 => constants.%C.as.I.impl.F.type.0e1915.1
  646. // CHECK:STDOUT: %C.as.I.impl.F.1 => constants.%C.as.I.impl.F.fcfec4.1
  647. // CHECK:STDOUT: %C.as.I.impl.F.type.2 => constants.%C.as.I.impl.F.type.0e1915.2
  648. // CHECK:STDOUT: %C.as.I.impl.F.2 => constants.%C.as.I.impl.F.fcfec4.2
  649. // CHECK:STDOUT: }
  650. // CHECK:STDOUT:
  651. // CHECK:STDOUT: specific @I.WithSelf(constants.%I.facet) {
  652. // CHECK:STDOUT: !definition:
  653. // CHECK:STDOUT: %Self => constants.%I.facet
  654. // CHECK:STDOUT: %I.WithSelf.F.type => constants.%I.WithSelf.F.type.99c
  655. // CHECK:STDOUT: %I.WithSelf.F => constants.%I.WithSelf.F.8d9
  656. // CHECK:STDOUT: }
  657. // CHECK:STDOUT:
  658. // CHECK:STDOUT: specific @C.as.I.impl.F.1(constants.%empty_tuple) {
  659. // CHECK:STDOUT: !definition:
  660. // CHECK:STDOUT: %Y => constants.%empty_tuple
  661. // CHECK:STDOUT: %C.as.I.impl.F.type => constants.%C.as.I.impl.F.type.0e1915.1
  662. // CHECK:STDOUT: %C.as.I.impl.F => constants.%C.as.I.impl.F.fcfec4.1
  663. // CHECK:STDOUT: %C.as.I.impl.F.specific_fn => constants.%C.as.I.impl.F.specific_fn.a77113.2
  664. // CHECK:STDOUT: %C => constants.%C.387
  665. // CHECK:STDOUT: %require_complete => constants.%complete_type
  666. // CHECK:STDOUT: %C.val => constants.%C.val.135
  667. // CHECK:STDOUT: %.1 => constants.%.e94e
  668. // CHECK:STDOUT: %Destroy.lookup_impl_witness => constants.%custom_witness.50a5c4.2
  669. // CHECK:STDOUT: %Destroy.facet => constants.%Destroy.facet.4d6
  670. // CHECK:STDOUT: %Destroy.WithSelf.Op.type => constants.%Destroy.WithSelf.Op.type.cb8
  671. // CHECK:STDOUT: %.2 => constants.%.58c
  672. // CHECK:STDOUT: %impl.elem0 => constants.%Destroy.Op.3d2d93.2
  673. // CHECK:STDOUT: %bound_method.1 => constants.%Destroy.Op.bound
  674. // CHECK:STDOUT: %specific_impl_fn => constants.%Destroy.Op.3d2d93.2
  675. // CHECK:STDOUT: %bound_method.2 => constants.%Destroy.Op.bound
  676. // CHECK:STDOUT: }
  677. // CHECK:STDOUT:
  678. // CHECK:STDOUT: specific @C.as.I.impl.F.2(constants.%empty_tuple) {
  679. // CHECK:STDOUT: %Y => constants.%empty_tuple
  680. // CHECK:STDOUT: %C => constants.%C.387
  681. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.678
  682. // CHECK:STDOUT:
  683. // CHECK:STDOUT: !definition:
  684. // CHECK:STDOUT: %require_complete => constants.%complete_type
  685. // CHECK:STDOUT: }
  686. // CHECK:STDOUT: