canonical_query_self.carbon 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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/facet_types.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/lookup/canonical_query_self.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/lookup/canonical_query_self.carbon
  14. interface I {
  15. fn II[self: Self]();
  16. }
  17. interface J {
  18. fn JJ[self: Self]();
  19. }
  20. fn F(T:! I & J, t: T) {
  21. // Nesting FacetValue and FacetAccessTypes, the `lookup_impl_witness`
  22. // instructions should remain canonical, pointing symbolically to `T`, and not
  23. // include these conversions.
  24. (t as (((((((T as I) as type) as J) as type) as I) as type) as J)).JJ();
  25. }
  26. fn G() {
  27. class C {
  28. extend impl as I {
  29. fn II[self: Self]() {}
  30. }
  31. extend impl as J {
  32. fn JJ[self: Self]() {}
  33. }
  34. }
  35. // Nesting FacetValue and FacetAccessTypes, the impl lookup for `JJ` resolves
  36. // to a canonical `impl_witness` for the `impl C as J`.
  37. (({} as C) as (((((((C as I) as type) as J) as type) as I) as type) as J)).JJ();
  38. // Produces a specific for `F` with a `FacetValue` to replace the
  39. // `BindSymbolicName` parameter `T` when evaluated. The `lookup_impl_witness`
  40. // instructions should be replaced in the specific with concrete
  41. // `impl_witness` instructions for `impl C as I` and `impl C as J`.
  42. F(C, {} as C);
  43. }
  44. // CHECK:STDOUT: --- canonical_query_self.carbon
  45. // CHECK:STDOUT:
  46. // CHECK:STDOUT: constants {
  47. // CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
  48. // CHECK:STDOUT: %Self.826: %I.type = bind_symbolic_name Self, 0 [symbolic]
  49. // CHECK:STDOUT: %Self.as_type.b70: type = facet_access_type %Self.826 [symbolic]
  50. // CHECK:STDOUT: %pattern_type.6de: type = pattern_type %Self.as_type.b70 [symbolic]
  51. // CHECK:STDOUT: %II.type.465: type = fn_type @II.loc16 [concrete]
  52. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
  53. // CHECK:STDOUT: %II.a07: %II.type.465 = struct_value () [concrete]
  54. // CHECK:STDOUT: %I.assoc_type: type = assoc_entity_type @I [concrete]
  55. // CHECK:STDOUT: %assoc0.82e: %I.assoc_type = assoc_entity element0, @I.%II.decl [concrete]
  56. // CHECK:STDOUT: %J.type: type = facet_type <@J> [concrete]
  57. // CHECK:STDOUT: %Self.ccd: %J.type = bind_symbolic_name Self, 0 [symbolic]
  58. // CHECK:STDOUT: %Self.as_type.3df: type = facet_access_type %Self.ccd [symbolic]
  59. // CHECK:STDOUT: %pattern_type.4ca: type = pattern_type %Self.as_type.3df [symbolic]
  60. // CHECK:STDOUT: %JJ.type.622: type = fn_type @JJ.loc19 [concrete]
  61. // CHECK:STDOUT: %JJ.5f5: %JJ.type.622 = struct_value () [concrete]
  62. // CHECK:STDOUT: %J.assoc_type: type = assoc_entity_type @J [concrete]
  63. // CHECK:STDOUT: %assoc0.78c: %J.assoc_type = assoc_entity element0, @J.%JJ.decl [concrete]
  64. // CHECK:STDOUT: %BitAndWith.type.f2e: type = generic_interface_type @BitAndWith [concrete]
  65. // CHECK:STDOUT: %BitAndWith.generic: %BitAndWith.type.f2e = struct_value () [concrete]
  66. // CHECK:STDOUT: %BitAndWith.type.e8c: type = facet_type <@BitAndWith, @BitAndWith(type)> [concrete]
  67. // CHECK:STDOUT: %Op.type.9a3: type = fn_type @Op.1, @BitAndWith(type) [concrete]
  68. // CHECK:STDOUT: %BitAndWith.impl_witness: <witness> = impl_witness imports.%BitAndWith.impl_witness_table [concrete]
  69. // CHECK:STDOUT: %BitAndWith.facet: %BitAndWith.type.e8c = facet_value type, (%BitAndWith.impl_witness) [concrete]
  70. // CHECK:STDOUT: %.2af: type = fn_type_with_self_type %Op.type.9a3, %BitAndWith.facet [concrete]
  71. // CHECK:STDOUT: %Op.type.1cc: type = fn_type @Op.2 [concrete]
  72. // CHECK:STDOUT: %Op.ff4: %Op.type.1cc = struct_value () [concrete]
  73. // CHECK:STDOUT: %Op.bound: <bound method> = bound_method %I.type, %Op.ff4 [concrete]
  74. // CHECK:STDOUT: %facet_type: type = facet_type <@I & @J> [concrete]
  75. // CHECK:STDOUT: %T.527: %facet_type = bind_symbolic_name T, 0 [symbolic]
  76. // CHECK:STDOUT: %pattern_type.f8f: type = pattern_type %facet_type [concrete]
  77. // CHECK:STDOUT: %T.as_type: type = facet_access_type %T.527 [symbolic]
  78. // CHECK:STDOUT: %pattern_type.a4f: type = pattern_type %T.as_type [symbolic]
  79. // CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
  80. // CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
  81. // CHECK:STDOUT: %require_complete.df2: <witness> = require_complete_type %T.as_type [symbolic]
  82. // CHECK:STDOUT: %I.lookup_impl_witness: <witness> = lookup_impl_witness %T.527, @I [symbolic]
  83. // CHECK:STDOUT: %I.facet.e75: %I.type = facet_value %T.as_type, (%I.lookup_impl_witness) [symbolic]
  84. // CHECK:STDOUT: %J.lookup_impl_witness: <witness> = lookup_impl_witness %T.527, @J [symbolic]
  85. // CHECK:STDOUT: %J.facet.fa4: %J.type = facet_value %T.as_type, (%J.lookup_impl_witness) [symbolic]
  86. // CHECK:STDOUT: %.935: type = fn_type_with_self_type %JJ.type.622, %J.facet.fa4 [symbolic]
  87. // CHECK:STDOUT: %impl.elem0: %.935 = impl_witness_access %J.lookup_impl_witness, element0 [symbolic]
  88. // CHECK:STDOUT: %specific_impl_fn: <specific function> = specific_impl_function %impl.elem0, @JJ.loc19(%J.facet.fa4) [symbolic]
  89. // CHECK:STDOUT: %G.type: type = fn_type @G [concrete]
  90. // CHECK:STDOUT: %G: %G.type = struct_value () [concrete]
  91. // CHECK:STDOUT: %C: type = class_type @C [concrete]
  92. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness @C.%I.impl_witness_table [concrete]
  93. // CHECK:STDOUT: %pattern_type.893: type = pattern_type %C [concrete]
  94. // CHECK:STDOUT: %II.type.f11: type = fn_type @II.loc32 [concrete]
  95. // CHECK:STDOUT: %II.b71: %II.type.f11 = struct_value () [concrete]
  96. // CHECK:STDOUT: %I.facet.98f: %I.type = facet_value %C, (%I.impl_witness) [concrete]
  97. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness @C.%J.impl_witness_table [concrete]
  98. // CHECK:STDOUT: %JJ.type.811: type = fn_type @JJ.loc35 [concrete]
  99. // CHECK:STDOUT: %JJ.9c9: %JJ.type.811 = struct_value () [concrete]
  100. // CHECK:STDOUT: %J.facet.5df: %J.type = facet_value %C, (%J.impl_witness) [concrete]
  101. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
  102. // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
  103. // CHECK:STDOUT: %C.val: %C = struct_value () [concrete]
  104. // CHECK:STDOUT: %.638: type = fn_type_with_self_type %JJ.type.622, %J.facet.5df [concrete]
  105. // CHECK:STDOUT: %facet_value: %facet_type = facet_value %C, (%I.impl_witness, %J.impl_witness) [concrete]
  106. // CHECK:STDOUT: %F.specific_fn: <specific function> = specific_function %F, @F(%facet_value) [concrete]
  107. // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
  108. // CHECK:STDOUT: %Op.type.8e9: type = fn_type @Op.4, @Destroy.impl(%C) [concrete]
  109. // CHECK:STDOUT: %Op.ddb: %Op.type.8e9 = struct_value () [concrete]
  110. // CHECK:STDOUT: %ptr.8e6: type = ptr_type %C [concrete]
  111. // CHECK:STDOUT: %Op.specific_fn: <specific function> = specific_function %Op.ddb, @Op.4(%C) [concrete]
  112. // CHECK:STDOUT: }
  113. // CHECK:STDOUT:
  114. // CHECK:STDOUT: imports {
  115. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
  116. // CHECK:STDOUT: .BitAndWith = %Core.BitAndWith
  117. // CHECK:STDOUT: .Destroy = %Core.Destroy
  118. // CHECK:STDOUT: import Core//prelude
  119. // CHECK:STDOUT: import Core//prelude/...
  120. // CHECK:STDOUT: }
  121. // CHECK:STDOUT: %Core.BitAndWith: %BitAndWith.type.f2e = import_ref Core//prelude, BitAndWith, loaded [concrete = constants.%BitAndWith.generic]
  122. // CHECK:STDOUT: %Core.import_ref.012: %Op.type.1cc = import_ref Core//prelude, loc13_42, loaded [concrete = constants.%Op.ff4]
  123. // CHECK:STDOUT: %BitAndWith.impl_witness_table = impl_witness_table (%Core.import_ref.012), @BitAndWith.impl [concrete]
  124. // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
  125. // CHECK:STDOUT: }
  126. // CHECK:STDOUT:
  127. // CHECK:STDOUT: file {
  128. // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
  129. // CHECK:STDOUT: .Core = imports.%Core
  130. // CHECK:STDOUT: .I = %I.decl
  131. // CHECK:STDOUT: .J = %J.decl
  132. // CHECK:STDOUT: .F = %F.decl
  133. // CHECK:STDOUT: .G = %G.decl
  134. // CHECK:STDOUT: }
  135. // CHECK:STDOUT: %Core.import = import Core
  136. // CHECK:STDOUT: %I.decl: type = interface_decl @I [concrete = constants.%I.type] {} {}
  137. // CHECK:STDOUT: %J.decl: type = interface_decl @J [concrete = constants.%J.type] {} {}
  138. // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [concrete = constants.%F] {
  139. // CHECK:STDOUT: %T.patt: %pattern_type.f8f = symbolic_binding_pattern T, 0 [concrete]
  140. // CHECK:STDOUT: %t.patt: @F.%pattern_type (%pattern_type.a4f) = binding_pattern t [concrete]
  141. // CHECK:STDOUT: %t.param_patt: @F.%pattern_type (%pattern_type.a4f) = value_param_pattern %t.patt, call_param0 [concrete]
  142. // CHECK:STDOUT: } {
  143. // CHECK:STDOUT: %.loc22_12.1: type = splice_block %.loc22_12.3 [concrete = constants.%facet_type] {
  144. // CHECK:STDOUT: %I.ref.loc22: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  145. // CHECK:STDOUT: %J.ref.loc22: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  146. // CHECK:STDOUT: %impl.elem0.loc22: %.2af = impl_witness_access constants.%BitAndWith.impl_witness, element0 [concrete = constants.%Op.ff4]
  147. // CHECK:STDOUT: %bound_method.loc22: <bound method> = bound_method %I.ref.loc22, %impl.elem0.loc22 [concrete = constants.%Op.bound]
  148. // CHECK:STDOUT: %type.and: init type = call %bound_method.loc22(%I.ref.loc22, %J.ref.loc22) [concrete = constants.%facet_type]
  149. // CHECK:STDOUT: %.loc22_12.2: type = value_of_initializer %type.and [concrete = constants.%facet_type]
  150. // CHECK:STDOUT: %.loc22_12.3: type = converted %type.and, %.loc22_12.2 [concrete = constants.%facet_type]
  151. // CHECK:STDOUT: }
  152. // CHECK:STDOUT: %T.loc22_6.1: %facet_type = bind_symbolic_name T, 0 [symbolic = %T.loc22_6.2 (constants.%T.527)]
  153. // CHECK:STDOUT: %t.param: @F.%T.as_type.loc22_20.2 (%T.as_type) = value_param call_param0
  154. // CHECK:STDOUT: %.loc22_20.1: type = splice_block %.loc22_20.2 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)] {
  155. // CHECK:STDOUT: %T.ref.loc22: %facet_type = name_ref T, %T.loc22_6.1 [symbolic = %T.loc22_6.2 (constants.%T.527)]
  156. // CHECK:STDOUT: %T.as_type.loc22_20.1: type = facet_access_type %T.ref.loc22 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  157. // CHECK:STDOUT: %.loc22_20.2: type = converted %T.ref.loc22, %T.as_type.loc22_20.1 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  158. // CHECK:STDOUT: }
  159. // CHECK:STDOUT: %t: @F.%T.as_type.loc22_20.2 (%T.as_type) = bind_name t, %t.param
  160. // CHECK:STDOUT: }
  161. // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {}
  162. // CHECK:STDOUT: }
  163. // CHECK:STDOUT:
  164. // CHECK:STDOUT: interface @I {
  165. // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.826]
  166. // CHECK:STDOUT: %II.decl: %II.type.465 = fn_decl @II.loc16 [concrete = constants.%II.a07] {
  167. // CHECK:STDOUT: %self.patt: @II.loc16.%pattern_type (%pattern_type.6de) = binding_pattern self [concrete]
  168. // CHECK:STDOUT: %self.param_patt: @II.loc16.%pattern_type (%pattern_type.6de) = value_param_pattern %self.patt, call_param0 [concrete]
  169. // CHECK:STDOUT: } {
  170. // CHECK:STDOUT: %self.param: @II.loc16.%Self.as_type.loc16_15.1 (%Self.as_type.b70) = value_param call_param0
  171. // CHECK:STDOUT: %.loc16_15.1: type = splice_block %.loc16_15.2 [symbolic = %Self.as_type.loc16_15.1 (constants.%Self.as_type.b70)] {
  172. // CHECK:STDOUT: %Self.ref: %I.type = name_ref Self, @I.%Self [symbolic = %Self (constants.%Self.826)]
  173. // CHECK:STDOUT: %Self.as_type.loc16_15.2: type = facet_access_type %Self.ref [symbolic = %Self.as_type.loc16_15.1 (constants.%Self.as_type.b70)]
  174. // CHECK:STDOUT: %.loc16_15.2: type = converted %Self.ref, %Self.as_type.loc16_15.2 [symbolic = %Self.as_type.loc16_15.1 (constants.%Self.as_type.b70)]
  175. // CHECK:STDOUT: }
  176. // CHECK:STDOUT: %self: @II.loc16.%Self.as_type.loc16_15.1 (%Self.as_type.b70) = bind_name self, %self.param
  177. // CHECK:STDOUT: }
  178. // CHECK:STDOUT: %assoc0: %I.assoc_type = assoc_entity element0, %II.decl [concrete = constants.%assoc0.82e]
  179. // CHECK:STDOUT:
  180. // CHECK:STDOUT: !members:
  181. // CHECK:STDOUT: .Self = %Self
  182. // CHECK:STDOUT: .II = %assoc0
  183. // CHECK:STDOUT: .JJ = <poisoned>
  184. // CHECK:STDOUT: .J = <poisoned>
  185. // CHECK:STDOUT: witness = (%II.decl)
  186. // CHECK:STDOUT: }
  187. // CHECK:STDOUT:
  188. // CHECK:STDOUT: interface @J {
  189. // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.ccd]
  190. // CHECK:STDOUT: %JJ.decl: %JJ.type.622 = fn_decl @JJ.loc19 [concrete = constants.%JJ.5f5] {
  191. // CHECK:STDOUT: %self.patt: @JJ.loc19.%pattern_type (%pattern_type.4ca) = binding_pattern self [concrete]
  192. // CHECK:STDOUT: %self.param_patt: @JJ.loc19.%pattern_type (%pattern_type.4ca) = value_param_pattern %self.patt, call_param0 [concrete]
  193. // CHECK:STDOUT: } {
  194. // CHECK:STDOUT: %self.param: @JJ.loc19.%Self.as_type.loc19_15.1 (%Self.as_type.3df) = value_param call_param0
  195. // CHECK:STDOUT: %.loc19_15.1: type = splice_block %.loc19_15.2 [symbolic = %Self.as_type.loc19_15.1 (constants.%Self.as_type.3df)] {
  196. // CHECK:STDOUT: %Self.ref: %J.type = name_ref Self, @J.%Self [symbolic = %Self (constants.%Self.ccd)]
  197. // CHECK:STDOUT: %Self.as_type.loc19_15.2: type = facet_access_type %Self.ref [symbolic = %Self.as_type.loc19_15.1 (constants.%Self.as_type.3df)]
  198. // CHECK:STDOUT: %.loc19_15.2: type = converted %Self.ref, %Self.as_type.loc19_15.2 [symbolic = %Self.as_type.loc19_15.1 (constants.%Self.as_type.3df)]
  199. // CHECK:STDOUT: }
  200. // CHECK:STDOUT: %self: @JJ.loc19.%Self.as_type.loc19_15.1 (%Self.as_type.3df) = bind_name self, %self.param
  201. // CHECK:STDOUT: }
  202. // CHECK:STDOUT: %assoc0: %J.assoc_type = assoc_entity element0, %JJ.decl [concrete = constants.%assoc0.78c]
  203. // CHECK:STDOUT:
  204. // CHECK:STDOUT: !members:
  205. // CHECK:STDOUT: .Self = %Self
  206. // CHECK:STDOUT: .JJ = %assoc0
  207. // CHECK:STDOUT: witness = (%JJ.decl)
  208. // CHECK:STDOUT: }
  209. // CHECK:STDOUT:
  210. // CHECK:STDOUT: impl @I.impl: %Self.ref as %I.ref {
  211. // CHECK:STDOUT: %II.decl: %II.type.f11 = fn_decl @II.loc32 [concrete = constants.%II.b71] {
  212. // CHECK:STDOUT: %self.patt: %pattern_type.893 = binding_pattern self [concrete]
  213. // CHECK:STDOUT: %self.param_patt: %pattern_type.893 = value_param_pattern %self.patt, call_param0 [concrete]
  214. // CHECK:STDOUT: } {
  215. // CHECK:STDOUT: %self.param: %C = value_param call_param0
  216. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
  217. // CHECK:STDOUT: %self: %C = bind_name self, %self.param
  218. // CHECK:STDOUT: }
  219. // CHECK:STDOUT:
  220. // CHECK:STDOUT: !members:
  221. // CHECK:STDOUT: .II = %II.decl
  222. // CHECK:STDOUT: witness = @C.%I.impl_witness
  223. // CHECK:STDOUT: }
  224. // CHECK:STDOUT:
  225. // CHECK:STDOUT: impl @J.impl: %Self.ref as %J.ref {
  226. // CHECK:STDOUT: %JJ.decl: %JJ.type.811 = fn_decl @JJ.loc35 [concrete = constants.%JJ.9c9] {
  227. // CHECK:STDOUT: %self.patt: %pattern_type.893 = binding_pattern self [concrete]
  228. // CHECK:STDOUT: %self.param_patt: %pattern_type.893 = value_param_pattern %self.patt, call_param0 [concrete]
  229. // CHECK:STDOUT: } {
  230. // CHECK:STDOUT: %self.param: %C = value_param call_param0
  231. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
  232. // CHECK:STDOUT: %self: %C = bind_name self, %self.param
  233. // CHECK:STDOUT: }
  234. // CHECK:STDOUT:
  235. // CHECK:STDOUT: !members:
  236. // CHECK:STDOUT: .JJ = %JJ.decl
  237. // CHECK:STDOUT: witness = @C.%J.impl_witness
  238. // CHECK:STDOUT: }
  239. // CHECK:STDOUT:
  240. // CHECK:STDOUT: class @C {
  241. // CHECK:STDOUT: impl_decl @I.impl [concrete] {} {
  242. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
  243. // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  244. // CHECK:STDOUT: }
  245. // CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (@I.impl.%II.decl), @I.impl [concrete]
  246. // CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness]
  247. // CHECK:STDOUT: impl_decl @J.impl [concrete] {} {
  248. // CHECK:STDOUT: %Self.ref: type = name_ref Self, constants.%C [concrete = constants.%C]
  249. // CHECK:STDOUT: %J.ref: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  250. // CHECK:STDOUT: }
  251. // CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (@J.impl.%JJ.decl), @J.impl [concrete]
  252. // CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness]
  253. // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete = constants.%empty_struct_type]
  254. // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete = constants.%complete_type.357]
  255. // CHECK:STDOUT: complete_type_witness = %complete_type
  256. // CHECK:STDOUT:
  257. // CHECK:STDOUT: !members:
  258. // CHECK:STDOUT: .Self = constants.%C
  259. // CHECK:STDOUT: .I = <poisoned>
  260. // CHECK:STDOUT: .J = <poisoned>
  261. // CHECK:STDOUT: .JJ = <poisoned>
  262. // CHECK:STDOUT: extend @I.impl.%I.ref
  263. // CHECK:STDOUT: extend @J.impl.%J.ref
  264. // CHECK:STDOUT: }
  265. // CHECK:STDOUT:
  266. // CHECK:STDOUT: generic fn @II.loc16(@I.%Self: %I.type) {
  267. // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.826)]
  268. // CHECK:STDOUT: %Self.as_type.loc16_15.1: type = facet_access_type %Self [symbolic = %Self.as_type.loc16_15.1 (constants.%Self.as_type.b70)]
  269. // CHECK:STDOUT: %pattern_type: type = pattern_type %Self.as_type.loc16_15.1 [symbolic = %pattern_type (constants.%pattern_type.6de)]
  270. // CHECK:STDOUT:
  271. // CHECK:STDOUT: fn(%self.param: @II.loc16.%Self.as_type.loc16_15.1 (%Self.as_type.b70));
  272. // CHECK:STDOUT: }
  273. // CHECK:STDOUT:
  274. // CHECK:STDOUT: generic fn @JJ.loc19(@J.%Self: %J.type) {
  275. // CHECK:STDOUT: %Self: %J.type = bind_symbolic_name Self, 0 [symbolic = %Self (constants.%Self.ccd)]
  276. // CHECK:STDOUT: %Self.as_type.loc19_15.1: type = facet_access_type %Self [symbolic = %Self.as_type.loc19_15.1 (constants.%Self.as_type.3df)]
  277. // CHECK:STDOUT: %pattern_type: type = pattern_type %Self.as_type.loc19_15.1 [symbolic = %pattern_type (constants.%pattern_type.4ca)]
  278. // CHECK:STDOUT:
  279. // CHECK:STDOUT: fn(%self.param: @JJ.loc19.%Self.as_type.loc19_15.1 (%Self.as_type.3df));
  280. // CHECK:STDOUT: }
  281. // CHECK:STDOUT:
  282. // CHECK:STDOUT: generic fn @F(%T.loc22_6.1: %facet_type) {
  283. // CHECK:STDOUT: %T.loc22_6.2: %facet_type = bind_symbolic_name T, 0 [symbolic = %T.loc22_6.2 (constants.%T.527)]
  284. // CHECK:STDOUT: %T.as_type.loc22_20.2: type = facet_access_type %T.loc22_6.2 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  285. // CHECK:STDOUT: %pattern_type: type = pattern_type %T.as_type.loc22_20.2 [symbolic = %pattern_type (constants.%pattern_type.a4f)]
  286. // CHECK:STDOUT:
  287. // CHECK:STDOUT: !definition:
  288. // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %T.as_type.loc22_20.2 [symbolic = %require_complete (constants.%require_complete.df2)]
  289. // CHECK:STDOUT: %I.lookup_impl_witness: <witness> = lookup_impl_witness %T.loc22_6.2, @I [symbolic = %I.lookup_impl_witness (constants.%I.lookup_impl_witness)]
  290. // CHECK:STDOUT: %I.facet.loc26_18.2: %I.type = facet_value %T.as_type.loc22_20.2, (%I.lookup_impl_witness) [symbolic = %I.facet.loc26_18.2 (constants.%I.facet.e75)]
  291. // CHECK:STDOUT: %J.lookup_impl_witness: <witness> = lookup_impl_witness %T.loc22_6.2, @J [symbolic = %J.lookup_impl_witness (constants.%J.lookup_impl_witness)]
  292. // CHECK:STDOUT: %J.facet.loc26_33.2: %J.type = facet_value %T.as_type.loc22_20.2, (%J.lookup_impl_witness) [symbolic = %J.facet.loc26_33.2 (constants.%J.facet.fa4)]
  293. // CHECK:STDOUT: %.loc26_69.2: type = fn_type_with_self_type constants.%JJ.type.622, %J.facet.loc26_33.2 [symbolic = %.loc26_69.2 (constants.%.935)]
  294. // CHECK:STDOUT: %impl.elem0.loc26_69.2: @F.%.loc26_69.2 (%.935) = impl_witness_access %J.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc26_69.2 (constants.%impl.elem0)]
  295. // CHECK:STDOUT: %specific_impl_fn.loc26_69.2: <specific function> = specific_impl_function %impl.elem0.loc26_69.2, @JJ.loc19(%J.facet.loc26_33.2) [symbolic = %specific_impl_fn.loc26_69.2 (constants.%specific_impl_fn)]
  296. // CHECK:STDOUT:
  297. // CHECK:STDOUT: fn(%t.param: @F.%T.as_type.loc22_20.2 (%T.as_type)) {
  298. // CHECK:STDOUT: !entry:
  299. // CHECK:STDOUT: %t.ref: @F.%T.as_type.loc22_20.2 (%T.as_type) = name_ref t, %t
  300. // CHECK:STDOUT: %T.ref.loc26: %facet_type = name_ref T, %T.loc22_6.1 [symbolic = %T.loc22_6.2 (constants.%T.527)]
  301. // CHECK:STDOUT: %I.ref.loc26_21: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  302. // CHECK:STDOUT: %T.as_type.loc26_18: type = facet_access_type constants.%T.527 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  303. // CHECK:STDOUT: %I.facet.loc26_18.1: %I.type = facet_value %T.as_type.loc26_18, (constants.%I.lookup_impl_witness) [symbolic = %I.facet.loc26_18.2 (constants.%I.facet.e75)]
  304. // CHECK:STDOUT: %.loc26_18: %I.type = converted %T.ref.loc26, %I.facet.loc26_18.1 [symbolic = %I.facet.loc26_18.2 (constants.%I.facet.e75)]
  305. // CHECK:STDOUT: %as_type.loc26_24: type = facet_access_type %.loc26_18 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  306. // CHECK:STDOUT: %.loc26_24: type = converted %.loc26_18, %as_type.loc26_24 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  307. // CHECK:STDOUT: %J.ref.loc26_36: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  308. // CHECK:STDOUT: %J.facet.loc26_33.1: %J.type = facet_value constants.%T.as_type, (constants.%J.lookup_impl_witness) [symbolic = %J.facet.loc26_33.2 (constants.%J.facet.fa4)]
  309. // CHECK:STDOUT: %.loc26_33: %J.type = converted %.loc26_24, %J.facet.loc26_33.1 [symbolic = %J.facet.loc26_33.2 (constants.%J.facet.fa4)]
  310. // CHECK:STDOUT: %as_type.loc26_39: type = facet_access_type %.loc26_33 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  311. // CHECK:STDOUT: %.loc26_39: type = converted %.loc26_33, %as_type.loc26_39 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  312. // CHECK:STDOUT: %I.ref.loc26_51: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  313. // CHECK:STDOUT: %I.facet.loc26_48: %I.type = facet_value constants.%T.as_type, (constants.%I.lookup_impl_witness) [symbolic = %I.facet.loc26_18.2 (constants.%I.facet.e75)]
  314. // CHECK:STDOUT: %.loc26_48: %I.type = converted %.loc26_39, %I.facet.loc26_48 [symbolic = %I.facet.loc26_18.2 (constants.%I.facet.e75)]
  315. // CHECK:STDOUT: %as_type.loc26_54: type = facet_access_type %.loc26_48 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  316. // CHECK:STDOUT: %.loc26_54: type = converted %.loc26_48, %as_type.loc26_54 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  317. // CHECK:STDOUT: %J.ref.loc26_66: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  318. // CHECK:STDOUT: %J.facet.loc26_63: %J.type = facet_value constants.%T.as_type, (constants.%J.lookup_impl_witness) [symbolic = %J.facet.loc26_33.2 (constants.%J.facet.fa4)]
  319. // CHECK:STDOUT: %.loc26_63: %J.type = converted %.loc26_54, %J.facet.loc26_63 [symbolic = %J.facet.loc26_33.2 (constants.%J.facet.fa4)]
  320. // CHECK:STDOUT: %as_type.loc26_67: type = facet_access_type %.loc26_63 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  321. // CHECK:STDOUT: %.loc26_67: type = converted %.loc26_63, %as_type.loc26_67 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  322. // CHECK:STDOUT: %JJ.ref: %J.assoc_type = name_ref JJ, @J.%assoc0 [concrete = constants.%assoc0.78c]
  323. // CHECK:STDOUT: %T.as_type.loc26_69: type = facet_access_type constants.%T.527 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  324. // CHECK:STDOUT: %.loc26_69.1: type = converted constants.%T.527, %T.as_type.loc26_69 [symbolic = %T.as_type.loc22_20.2 (constants.%T.as_type)]
  325. // CHECK:STDOUT: %impl.elem0.loc26_69.1: @F.%.loc26_69.2 (%.935) = impl_witness_access constants.%J.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc26_69.2 (constants.%impl.elem0)]
  326. // CHECK:STDOUT: %bound_method.loc26_69: <bound method> = bound_method %t.ref, %impl.elem0.loc26_69.1
  327. // CHECK:STDOUT: %specific_impl_fn.loc26_69.1: <specific function> = specific_impl_function %impl.elem0.loc26_69.1, @JJ.loc19(constants.%J.facet.fa4) [symbolic = %specific_impl_fn.loc26_69.2 (constants.%specific_impl_fn)]
  328. // CHECK:STDOUT: %bound_method.loc26_73: <bound method> = bound_method %t.ref, %specific_impl_fn.loc26_69.1
  329. // CHECK:STDOUT: %.loc26_73: init %empty_tuple.type = call %bound_method.loc26_73(%t.ref)
  330. // CHECK:STDOUT: return
  331. // CHECK:STDOUT: }
  332. // CHECK:STDOUT: }
  333. // CHECK:STDOUT:
  334. // CHECK:STDOUT: fn @G() {
  335. // CHECK:STDOUT: !entry:
  336. // CHECK:STDOUT: %C.decl: type = class_decl @C [concrete = constants.%C] {} {}
  337. // CHECK:STDOUT: %.loc40_6.1: %empty_struct_type = struct_literal ()
  338. // CHECK:STDOUT: %C.ref.loc40_11: type = name_ref C, %C.decl [concrete = constants.%C]
  339. // CHECK:STDOUT: %.loc40_6.2: ref %C = temporary_storage
  340. // CHECK:STDOUT: %.loc40_6.3: init %C = class_init (), %.loc40_6.2 [concrete = constants.%C.val]
  341. // CHECK:STDOUT: %.loc40_6.4: ref %C = temporary %.loc40_6.2, %.loc40_6.3
  342. // CHECK:STDOUT: %.loc40_8.1: ref %C = converted %.loc40_6.1, %.loc40_6.4
  343. // CHECK:STDOUT: %C.ref.loc40_24: type = name_ref C, %C.decl [concrete = constants.%C]
  344. // CHECK:STDOUT: %I.ref.loc40_29: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  345. // CHECK:STDOUT: %I.facet.loc40_26: %I.type = facet_value constants.%C, (constants.%I.impl_witness) [concrete = constants.%I.facet.98f]
  346. // CHECK:STDOUT: %.loc40_26: %I.type = converted %C.ref.loc40_24, %I.facet.loc40_26 [concrete = constants.%I.facet.98f]
  347. // CHECK:STDOUT: %as_type.loc40_32: type = facet_access_type %.loc40_26 [concrete = constants.%C]
  348. // CHECK:STDOUT: %.loc40_32: type = converted %.loc40_26, %as_type.loc40_32 [concrete = constants.%C]
  349. // CHECK:STDOUT: %J.ref.loc40_44: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  350. // CHECK:STDOUT: %J.facet.loc40_41: %J.type = facet_value constants.%C, (constants.%J.impl_witness) [concrete = constants.%J.facet.5df]
  351. // CHECK:STDOUT: %.loc40_41: %J.type = converted %.loc40_32, %J.facet.loc40_41 [concrete = constants.%J.facet.5df]
  352. // CHECK:STDOUT: %as_type.loc40_47: type = facet_access_type %.loc40_41 [concrete = constants.%C]
  353. // CHECK:STDOUT: %.loc40_47: type = converted %.loc40_41, %as_type.loc40_47 [concrete = constants.%C]
  354. // CHECK:STDOUT: %I.ref.loc40_59: type = name_ref I, file.%I.decl [concrete = constants.%I.type]
  355. // CHECK:STDOUT: %I.facet.loc40_56: %I.type = facet_value constants.%C, (constants.%I.impl_witness) [concrete = constants.%I.facet.98f]
  356. // CHECK:STDOUT: %.loc40_56: %I.type = converted %.loc40_47, %I.facet.loc40_56 [concrete = constants.%I.facet.98f]
  357. // CHECK:STDOUT: %as_type.loc40_62: type = facet_access_type %.loc40_56 [concrete = constants.%C]
  358. // CHECK:STDOUT: %.loc40_62: type = converted %.loc40_56, %as_type.loc40_62 [concrete = constants.%C]
  359. // CHECK:STDOUT: %J.ref.loc40_74: type = name_ref J, file.%J.decl [concrete = constants.%J.type]
  360. // CHECK:STDOUT: %J.facet.loc40_71: %J.type = facet_value constants.%C, (constants.%J.impl_witness) [concrete = constants.%J.facet.5df]
  361. // CHECK:STDOUT: %.loc40_71: %J.type = converted %.loc40_62, %J.facet.loc40_71 [concrete = constants.%J.facet.5df]
  362. // CHECK:STDOUT: %as_type.loc40_75: type = facet_access_type %.loc40_71 [concrete = constants.%C]
  363. // CHECK:STDOUT: %.loc40_75: type = converted %.loc40_71, %as_type.loc40_75 [concrete = constants.%C]
  364. // CHECK:STDOUT: %JJ.ref: %J.assoc_type = name_ref JJ, @J.%assoc0 [concrete = constants.%assoc0.78c]
  365. // CHECK:STDOUT: %impl.elem0: %.638 = impl_witness_access constants.%J.impl_witness, element0 [concrete = constants.%JJ.9c9]
  366. // CHECK:STDOUT: %bound_method.loc40_77: <bound method> = bound_method %.loc40_8.1, %impl.elem0
  367. // CHECK:STDOUT: %.loc40_8.2: %C = bind_value %.loc40_8.1
  368. // CHECK:STDOUT: %JJ.call: init %empty_tuple.type = call %bound_method.loc40_77(%.loc40_8.2)
  369. // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [concrete = constants.%F]
  370. // CHECK:STDOUT: %C.ref.loc46_5: type = name_ref C, %C.decl [concrete = constants.%C]
  371. // CHECK:STDOUT: %.loc46_9.1: %empty_struct_type = struct_literal ()
  372. // CHECK:STDOUT: %C.ref.loc46_14: type = name_ref C, %C.decl [concrete = constants.%C]
  373. // CHECK:STDOUT: %.loc46_9.2: ref %C = temporary_storage
  374. // CHECK:STDOUT: %.loc46_9.3: init %C = class_init (), %.loc46_9.2 [concrete = constants.%C.val]
  375. // CHECK:STDOUT: %.loc46_9.4: ref %C = temporary %.loc46_9.2, %.loc46_9.3
  376. // CHECK:STDOUT: %.loc46_11.1: ref %C = converted %.loc46_9.1, %.loc46_9.4
  377. // CHECK:STDOUT: %facet_value.loc46_15.1: %facet_type = facet_value constants.%C, (constants.%I.impl_witness, constants.%J.impl_witness) [concrete = constants.%facet_value]
  378. // CHECK:STDOUT: %.loc46_15.1: %facet_type = converted %C.ref.loc46_5, %facet_value.loc46_15.1 [concrete = constants.%facet_value]
  379. // CHECK:STDOUT: %facet_value.loc46_15.2: %facet_type = facet_value constants.%C, (constants.%I.impl_witness, constants.%J.impl_witness) [concrete = constants.%facet_value]
  380. // CHECK:STDOUT: %.loc46_15.2: %facet_type = converted constants.%C, %facet_value.loc46_15.2 [concrete = constants.%facet_value]
  381. // CHECK:STDOUT: %facet_value.loc46_15.3: %facet_type = facet_value constants.%C, (constants.%I.impl_witness, constants.%J.impl_witness) [concrete = constants.%facet_value]
  382. // CHECK:STDOUT: %.loc46_15.3: %facet_type = converted constants.%C, %facet_value.loc46_15.3 [concrete = constants.%facet_value]
  383. // CHECK:STDOUT: %F.specific_fn: <specific function> = specific_function %F.ref, @F(constants.%facet_value) [concrete = constants.%F.specific_fn]
  384. // CHECK:STDOUT: %.loc46_11.2: %C = bind_value %.loc46_11.1
  385. // CHECK:STDOUT: %F.call: init %empty_tuple.type = call %F.specific_fn(%.loc46_11.2)
  386. // CHECK:STDOUT: %Op.bound.loc46: <bound method> = bound_method %.loc46_9.2, constants.%Op.ddb
  387. // CHECK:STDOUT: %Op.specific_fn.1: <specific function> = specific_function constants.%Op.ddb, @Op.4(constants.%C) [concrete = constants.%Op.specific_fn]
  388. // CHECK:STDOUT: %bound_method.loc46: <bound method> = bound_method %.loc46_9.2, %Op.specific_fn.1
  389. // CHECK:STDOUT: %addr.loc46: %ptr.8e6 = addr_of %.loc46_9.2
  390. // CHECK:STDOUT: %no_op.loc46: init %empty_tuple.type = call %bound_method.loc46(%addr.loc46)
  391. // CHECK:STDOUT: %Op.bound.loc40: <bound method> = bound_method %.loc40_6.2, constants.%Op.ddb
  392. // CHECK:STDOUT: %Op.specific_fn.2: <specific function> = specific_function constants.%Op.ddb, @Op.4(constants.%C) [concrete = constants.%Op.specific_fn]
  393. // CHECK:STDOUT: %bound_method.loc40_6: <bound method> = bound_method %.loc40_6.2, %Op.specific_fn.2
  394. // CHECK:STDOUT: %addr.loc40: %ptr.8e6 = addr_of %.loc40_6.2
  395. // CHECK:STDOUT: %no_op.loc40: init %empty_tuple.type = call %bound_method.loc40_6(%addr.loc40)
  396. // CHECK:STDOUT: return
  397. // CHECK:STDOUT: }
  398. // CHECK:STDOUT:
  399. // CHECK:STDOUT: fn @II.loc32(%self.param: %C) {
  400. // CHECK:STDOUT: !entry:
  401. // CHECK:STDOUT: return
  402. // CHECK:STDOUT: }
  403. // CHECK:STDOUT:
  404. // CHECK:STDOUT: fn @JJ.loc35(%self.param: %C) {
  405. // CHECK:STDOUT: !entry:
  406. // CHECK:STDOUT: return
  407. // CHECK:STDOUT: }
  408. // CHECK:STDOUT:
  409. // CHECK:STDOUT: specific @II.loc16(constants.%Self.826) {
  410. // CHECK:STDOUT: %Self => constants.%Self.826
  411. // CHECK:STDOUT: %Self.as_type.loc16_15.1 => constants.%Self.as_type.b70
  412. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.6de
  413. // CHECK:STDOUT: }
  414. // CHECK:STDOUT:
  415. // CHECK:STDOUT: specific @JJ.loc19(constants.%Self.ccd) {
  416. // CHECK:STDOUT: %Self => constants.%Self.ccd
  417. // CHECK:STDOUT: %Self.as_type.loc19_15.1 => constants.%Self.as_type.3df
  418. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.4ca
  419. // CHECK:STDOUT: }
  420. // CHECK:STDOUT:
  421. // CHECK:STDOUT: specific @F(constants.%T.527) {
  422. // CHECK:STDOUT: %T.loc22_6.2 => constants.%T.527
  423. // CHECK:STDOUT: %T.as_type.loc22_20.2 => constants.%T.as_type
  424. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.a4f
  425. // CHECK:STDOUT: }
  426. // CHECK:STDOUT:
  427. // CHECK:STDOUT: specific @JJ.loc19(constants.%J.facet.fa4) {
  428. // CHECK:STDOUT: %Self => constants.%J.facet.fa4
  429. // CHECK:STDOUT: %Self.as_type.loc19_15.1 => constants.%T.as_type
  430. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.a4f
  431. // CHECK:STDOUT: }
  432. // CHECK:STDOUT:
  433. // CHECK:STDOUT: specific @II.loc16(constants.%I.facet.98f) {
  434. // CHECK:STDOUT: %Self => constants.%I.facet.98f
  435. // CHECK:STDOUT: %Self.as_type.loc16_15.1 => constants.%C
  436. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.893
  437. // CHECK:STDOUT: }
  438. // CHECK:STDOUT:
  439. // CHECK:STDOUT: specific @JJ.loc19(constants.%J.facet.5df) {
  440. // CHECK:STDOUT: %Self => constants.%J.facet.5df
  441. // CHECK:STDOUT: %Self.as_type.loc19_15.1 => constants.%C
  442. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.893
  443. // CHECK:STDOUT: }
  444. // CHECK:STDOUT:
  445. // CHECK:STDOUT: specific @F(constants.%facet_value) {
  446. // CHECK:STDOUT: %T.loc22_6.2 => constants.%facet_value
  447. // CHECK:STDOUT: %T.as_type.loc22_20.2 => constants.%C
  448. // CHECK:STDOUT: %pattern_type => constants.%pattern_type.893
  449. // CHECK:STDOUT:
  450. // CHECK:STDOUT: !definition:
  451. // CHECK:STDOUT: %require_complete => constants.%complete_type.357
  452. // CHECK:STDOUT: %I.lookup_impl_witness => constants.%I.impl_witness
  453. // CHECK:STDOUT: %I.facet.loc26_18.2 => constants.%I.facet.98f
  454. // CHECK:STDOUT: %J.lookup_impl_witness => constants.%J.impl_witness
  455. // CHECK:STDOUT: %J.facet.loc26_33.2 => constants.%J.facet.5df
  456. // CHECK:STDOUT: %.loc26_69.2 => constants.%.638
  457. // CHECK:STDOUT: %impl.elem0.loc26_69.2 => constants.%JJ.9c9
  458. // CHECK:STDOUT: %specific_impl_fn.loc26_69.2 => constants.%JJ.9c9
  459. // CHECK:STDOUT: }
  460. // CHECK:STDOUT: