dot_self_index.carbon 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/where_expr/dot_self_index.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/where_expr/dot_self_index.carbon
  10. interface Empty(W:! type) {
  11. let A:! type;
  12. }
  13. // T has index 0
  14. // .Self has index invalid, not 1
  15. // V has index 1, does not match .Self
  16. fn H(T:! type, U: Empty(T) where .A = T*, V:! type) {}
  17. fn G(U: Empty(i32) where .A = i32*) {
  18. H(i32, U, bool);
  19. }
  20. // CHECK:STDOUT: --- dot_self_index.carbon
  21. // CHECK:STDOUT:
  22. // CHECK:STDOUT: constants {
  23. // CHECK:STDOUT: %W: type = bind_symbolic_name W, 0 [symbolic]
  24. // CHECK:STDOUT: %W.patt: type = symbolic_binding_pattern W, 0 [symbolic]
  25. // CHECK:STDOUT: %Empty.type.d5a: type = generic_interface_type @Empty [template]
  26. // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [template]
  27. // CHECK:STDOUT: %Empty.generic: %Empty.type.d5a = struct_value () [template]
  28. // CHECK:STDOUT: %Empty.type.a54: type = facet_type <@Empty, @Empty(%W)> [symbolic]
  29. // CHECK:STDOUT: %Self: %Empty.type.a54 = bind_symbolic_name Self, 1 [symbolic]
  30. // CHECK:STDOUT: %assoc_type.263: type = assoc_entity_type %Empty.type.a54, type [symbolic]
  31. // CHECK:STDOUT: %assoc0.78a: %assoc_type.263 = assoc_entity element0, @Empty.%A [symbolic]
  32. // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic]
  33. // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0 [symbolic]
  34. // CHECK:STDOUT: %Empty.type.f74: type = facet_type <@Empty, @Empty(%T)> [symbolic]
  35. // CHECK:STDOUT: %.Self.ec8: %Empty.type.f74 = bind_symbolic_name .Self [symbolic]
  36. // CHECK:STDOUT: %require_complete.9fb: <witness> = require_complete_type %Empty.type.f74 [symbolic]
  37. // CHECK:STDOUT: %assoc_type.c52: type = assoc_entity_type %Empty.type.f74, type [symbolic]
  38. // CHECK:STDOUT: %assoc0.292: %assoc_type.c52 = assoc_entity element0, @Empty.%A [symbolic]
  39. // CHECK:STDOUT: %.Self.as_wit.b86: <witness> = facet_access_witness %.Self.ec8 [symbolic]
  40. // CHECK:STDOUT: %impl.elem0.76f: type = impl_witness_access %.Self.as_wit.b86, element0 [symbolic]
  41. // CHECK:STDOUT: %ptr.251: type = ptr_type %T [symbolic]
  42. // CHECK:STDOUT: %Empty_where.type.963: type = facet_type <@Empty, @Empty(%T) where %impl.elem0.76f = %ptr.251> [symbolic]
  43. // CHECK:STDOUT: %V: type = bind_symbolic_name V, 1 [symbolic]
  44. // CHECK:STDOUT: %V.patt: type = symbolic_binding_pattern V, 1 [symbolic]
  45. // CHECK:STDOUT: %H.type: type = fn_type @H [template]
  46. // CHECK:STDOUT: %H: %H.type = struct_value () [template]
  47. // CHECK:STDOUT: %require_complete.067: <witness> = require_complete_type %Empty_where.type.963 [symbolic]
  48. // CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [template]
  49. // CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [template]
  50. // CHECK:STDOUT: %Empty.type.4af: type = facet_type <@Empty, @Empty(%i32)> [template]
  51. // CHECK:STDOUT: %.Self.a46: %Empty.type.4af = bind_symbolic_name .Self [symbolic]
  52. // CHECK:STDOUT: %assoc_type.488: type = assoc_entity_type %Empty.type.4af, type [template]
  53. // CHECK:STDOUT: %assoc0.7bc: %assoc_type.488 = assoc_entity element0, @Empty.%A [template]
  54. // CHECK:STDOUT: %.Self.as_wit.c5e: <witness> = facet_access_witness %.Self.a46 [symbolic]
  55. // CHECK:STDOUT: %impl.elem0.b4f: type = impl_witness_access %.Self.as_wit.c5e, element0 [symbolic]
  56. // CHECK:STDOUT: %ptr.dc3: type = ptr_type %i32 [template]
  57. // CHECK:STDOUT: %Empty_where.type.5d3: type = facet_type <@Empty, @Empty(%i32) where %impl.elem0.b4f = %ptr.dc3> [template]
  58. // CHECK:STDOUT: %G.type: type = fn_type @G [template]
  59. // CHECK:STDOUT: %G: %G.type = struct_value () [template]
  60. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
  61. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
  62. // CHECK:STDOUT: %complete_type.6c0: <witness> = complete_type_witness %Empty.type.4af [template]
  63. // CHECK:STDOUT: %H.specific_fn: <specific function> = specific_function %H, @H(%i32, bool) [template]
  64. // CHECK:STDOUT: %complete_type.a60: <witness> = complete_type_witness %Empty_where.type.5d3 [template]
  65. // CHECK:STDOUT: }
  66. // CHECK:STDOUT:
  67. // CHECK:STDOUT: imports {
  68. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
  69. // CHECK:STDOUT: .Int = %import_ref.187
  70. // CHECK:STDOUT: .Bool = %import_ref.f7c
  71. // CHECK:STDOUT: import Core//prelude
  72. // CHECK:STDOUT: import Core//prelude/...
  73. // CHECK:STDOUT: }
  74. // CHECK:STDOUT: }
  75. // CHECK:STDOUT:
  76. // CHECK:STDOUT: file {
  77. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  78. // CHECK:STDOUT: .Core = imports.%Core
  79. // CHECK:STDOUT: .Empty = %Empty.decl
  80. // CHECK:STDOUT: .H = %H.decl
  81. // CHECK:STDOUT: .G = %G.decl
  82. // CHECK:STDOUT: }
  83. // CHECK:STDOUT: %Core.import = import Core
  84. // CHECK:STDOUT: %Empty.decl: %Empty.type.d5a = interface_decl @Empty [template = constants.%Empty.generic] {
  85. // CHECK:STDOUT: %W.patt.loc11_17.1: type = symbolic_binding_pattern W, 0 [symbolic = %W.patt.loc11_17.2 (constants.%W.patt)]
  86. // CHECK:STDOUT: %W.param_patt: type = value_param_pattern %W.patt.loc11_17.1, runtime_param<invalid> [symbolic = %W.patt.loc11_17.2 (constants.%W.patt)]
  87. // CHECK:STDOUT: } {
  88. // CHECK:STDOUT: %W.param: type = value_param runtime_param<invalid>
  89. // CHECK:STDOUT: %W.loc11_17.1: type = bind_symbolic_name W, 0, %W.param [symbolic = %W.loc11_17.2 (constants.%W)]
  90. // CHECK:STDOUT: }
  91. // CHECK:STDOUT: %H.decl: %H.type = fn_decl @H [template = constants.%H] {
  92. // CHECK:STDOUT: %T.patt.loc18_6.1: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc18_6.2 (constants.%T.patt)]
  93. // CHECK:STDOUT: %T.param_patt: type = value_param_pattern %T.patt.loc18_6.1, runtime_param<invalid> [symbolic = %T.patt.loc18_6.2 (constants.%T.patt)]
  94. // CHECK:STDOUT: %U.patt: @H.%Empty_where.type (%Empty_where.type.963) = binding_pattern U
  95. // CHECK:STDOUT: %U.param_patt: @H.%Empty_where.type (%Empty_where.type.963) = value_param_pattern %U.patt, runtime_param0
  96. // CHECK:STDOUT: %V.patt.loc18_43.1: type = symbolic_binding_pattern V, 1 [symbolic = %V.patt.loc18_43.2 (constants.%V.patt)]
  97. // CHECK:STDOUT: %V.param_patt: type = value_param_pattern %V.patt.loc18_43.1, runtime_param<invalid> [symbolic = %V.patt.loc18_43.2 (constants.%V.patt)]
  98. // CHECK:STDOUT: } {
  99. // CHECK:STDOUT: %T.param: type = value_param runtime_param<invalid>
  100. // CHECK:STDOUT: %T.loc18_6.1: type = bind_symbolic_name T, 0, %T.param [symbolic = %T.loc18_6.2 (constants.%T)]
  101. // CHECK:STDOUT: %U.param: @H.%Empty_where.type (%Empty_where.type.963) = value_param runtime_param0
  102. // CHECK:STDOUT: %.loc18_28.1: type = splice_block %.loc18_28.2 [symbolic = %Empty_where.type (constants.%Empty_where.type.963)] {
  103. // CHECK:STDOUT: %Empty.ref: %Empty.type.d5a = name_ref Empty, file.%Empty.decl [template = constants.%Empty.generic]
  104. // CHECK:STDOUT: %T.ref.loc18_25: type = name_ref T, %T.loc18_6.1 [symbolic = %T.loc18_6.2 (constants.%T)]
  105. // CHECK:STDOUT: %Empty.type.loc18_26.1: type = facet_type <@Empty, @Empty(constants.%T)> [symbolic = %Empty.type.loc18_26.2 (constants.%Empty.type.f74)]
  106. // CHECK:STDOUT: %.Self.1: @H.%Empty.type.loc18_26.2 (%Empty.type.f74) = bind_symbolic_name .Self [symbolic = %.Self.2 (constants.%.Self.ec8)]
  107. // CHECK:STDOUT: %.Self.ref: @H.%Empty.type.loc18_26.2 (%Empty.type.f74) = name_ref .Self, %.Self.1 [symbolic = %.Self.2 (constants.%.Self.ec8)]
  108. // CHECK:STDOUT: %.loc18_34: @H.%assoc_type (%assoc_type.c52) = specific_constant @Empty.%assoc0.loc12_15.1, @Empty(constants.%T) [symbolic = %assoc0 (constants.%assoc0.292)]
  109. // CHECK:STDOUT: %A.ref: @H.%assoc_type (%assoc_type.c52) = name_ref A, %.loc18_34 [symbolic = %assoc0 (constants.%assoc0.292)]
  110. // CHECK:STDOUT: %.Self.as_wit.loc18_34.1: <witness> = facet_access_witness %.Self.ref [symbolic = %.Self.as_wit.loc18_34.2 (constants.%.Self.as_wit.b86)]
  111. // CHECK:STDOUT: %impl.elem0.loc18_34.1: type = impl_witness_access %.Self.as_wit.loc18_34.1, element0 [symbolic = %impl.elem0.loc18_34.2 (constants.%impl.elem0.76f)]
  112. // CHECK:STDOUT: %T.ref.loc18_39: type = name_ref T, %T.loc18_6.1 [symbolic = %T.loc18_6.2 (constants.%T)]
  113. // CHECK:STDOUT: %ptr.loc18_40.1: type = ptr_type %T [symbolic = %ptr.loc18_40.2 (constants.%ptr.251)]
  114. // CHECK:STDOUT: %.loc18_28.2: type = where_expr %.Self.1 [symbolic = %Empty_where.type (constants.%Empty_where.type.963)] {
  115. // CHECK:STDOUT: requirement_rewrite %impl.elem0.loc18_34.1, %ptr.loc18_40.1
  116. // CHECK:STDOUT: }
  117. // CHECK:STDOUT: }
  118. // CHECK:STDOUT: %U: @H.%Empty_where.type (%Empty_where.type.963) = bind_name U, %U.param
  119. // CHECK:STDOUT: %V.param: type = value_param runtime_param<invalid>
  120. // CHECK:STDOUT: %V.loc18_43.1: type = bind_symbolic_name V, 1, %V.param [symbolic = %V.loc18_43.2 (constants.%V)]
  121. // CHECK:STDOUT: }
  122. // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {
  123. // CHECK:STDOUT: %U.patt: %Empty_where.type.5d3 = binding_pattern U
  124. // CHECK:STDOUT: %U.param_patt: %Empty_where.type.5d3 = value_param_pattern %U.patt, runtime_param0
  125. // CHECK:STDOUT: } {
  126. // CHECK:STDOUT: %U.param: %Empty_where.type.5d3 = value_param runtime_param0
  127. // CHECK:STDOUT: %.loc20_20.1: type = splice_block %.loc20_20.2 [template = constants.%Empty_where.type.5d3] {
  128. // CHECK:STDOUT: %Empty.ref: %Empty.type.d5a = name_ref Empty, file.%Empty.decl [template = constants.%Empty.generic]
  129. // CHECK:STDOUT: %int_32.loc20_15: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  130. // CHECK:STDOUT: %i32.loc20_15: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  131. // CHECK:STDOUT: %Empty.type: type = facet_type <@Empty, @Empty(constants.%i32)> [template = constants.%Empty.type.4af]
  132. // CHECK:STDOUT: %.Self: %Empty.type.4af = bind_symbolic_name .Self [symbolic = constants.%.Self.a46]
  133. // CHECK:STDOUT: %.Self.ref: %Empty.type.4af = name_ref .Self, %.Self [symbolic = constants.%.Self.a46]
  134. // CHECK:STDOUT: %.loc20_26: %assoc_type.488 = specific_constant @Empty.%assoc0.loc12_15.1, @Empty(constants.%i32) [template = constants.%assoc0.7bc]
  135. // CHECK:STDOUT: %A.ref: %assoc_type.488 = name_ref A, %.loc20_26 [template = constants.%assoc0.7bc]
  136. // CHECK:STDOUT: %.Self.as_wit: <witness> = facet_access_witness %.Self.ref [symbolic = constants.%.Self.as_wit.c5e]
  137. // CHECK:STDOUT: %impl.elem0: type = impl_witness_access %.Self.as_wit, element0 [symbolic = constants.%impl.elem0.b4f]
  138. // CHECK:STDOUT: %int_32.loc20_31: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  139. // CHECK:STDOUT: %i32.loc20_31: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  140. // CHECK:STDOUT: %ptr: type = ptr_type %i32 [template = constants.%ptr.dc3]
  141. // CHECK:STDOUT: %.loc20_20.2: type = where_expr %.Self [template = constants.%Empty_where.type.5d3] {
  142. // CHECK:STDOUT: requirement_rewrite %impl.elem0, %ptr
  143. // CHECK:STDOUT: }
  144. // CHECK:STDOUT: }
  145. // CHECK:STDOUT: %U: %Empty_where.type.5d3 = bind_name U, %U.param
  146. // CHECK:STDOUT: }
  147. // CHECK:STDOUT: }
  148. // CHECK:STDOUT:
  149. // CHECK:STDOUT: generic interface @Empty(%W.loc11_17.1: type) {
  150. // CHECK:STDOUT: %W.loc11_17.2: type = bind_symbolic_name W, 0 [symbolic = %W.loc11_17.2 (constants.%W)]
  151. // CHECK:STDOUT: %W.patt.loc11_17.2: type = symbolic_binding_pattern W, 0 [symbolic = %W.patt.loc11_17.2 (constants.%W.patt)]
  152. // CHECK:STDOUT:
  153. // CHECK:STDOUT: !definition:
  154. // CHECK:STDOUT: %Empty.type: type = facet_type <@Empty, @Empty(%W.loc11_17.2)> [symbolic = %Empty.type (constants.%Empty.type.a54)]
  155. // CHECK:STDOUT: %Self.2: %Empty.type.a54 = bind_symbolic_name Self, 1 [symbolic = %Self.2 (constants.%Self)]
  156. // CHECK:STDOUT: %assoc_type: type = assoc_entity_type @Empty.%Empty.type (%Empty.type.a54), type [symbolic = %assoc_type (constants.%assoc_type.263)]
  157. // CHECK:STDOUT: %assoc0.loc12_15.2: @Empty.%assoc_type (%assoc_type.263) = assoc_entity element0, %A [symbolic = %assoc0.loc12_15.2 (constants.%assoc0.78a)]
  158. // CHECK:STDOUT:
  159. // CHECK:STDOUT: interface {
  160. // CHECK:STDOUT: %Self.1: @Empty.%Empty.type (%Empty.type.a54) = bind_symbolic_name Self, 1 [symbolic = %Self.2 (constants.%Self)]
  161. // CHECK:STDOUT: %A: type = assoc_const_decl A [template]
  162. // CHECK:STDOUT: %assoc0.loc12_15.1: @Empty.%assoc_type (%assoc_type.263) = assoc_entity element0, %A [symbolic = %assoc0.loc12_15.2 (constants.%assoc0.78a)]
  163. // CHECK:STDOUT:
  164. // CHECK:STDOUT: !members:
  165. // CHECK:STDOUT: .Self = %Self.1
  166. // CHECK:STDOUT: .A = %assoc0.loc12_15.1
  167. // CHECK:STDOUT: witness = (%A)
  168. // CHECK:STDOUT: }
  169. // CHECK:STDOUT: }
  170. // CHECK:STDOUT:
  171. // CHECK:STDOUT: generic fn @H(%T.loc18_6.1: type, %V.loc18_43.1: type) {
  172. // CHECK:STDOUT: %T.loc18_6.2: type = bind_symbolic_name T, 0 [symbolic = %T.loc18_6.2 (constants.%T)]
  173. // CHECK:STDOUT: %T.patt.loc18_6.2: type = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc18_6.2 (constants.%T.patt)]
  174. // CHECK:STDOUT: %Empty.type.loc18_26.2: type = facet_type <@Empty, @Empty(%T.loc18_6.2)> [symbolic = %Empty.type.loc18_26.2 (constants.%Empty.type.f74)]
  175. // CHECK:STDOUT: %.Self.2: @H.%Empty.type.loc18_26.2 (%Empty.type.f74) = bind_symbolic_name .Self [symbolic = %.Self.2 (constants.%.Self.ec8)]
  176. // CHECK:STDOUT: %require_complete.loc18_34: <witness> = require_complete_type @H.%Empty.type.loc18_26.2 (%Empty.type.f74) [symbolic = %require_complete.loc18_34 (constants.%require_complete.9fb)]
  177. // CHECK:STDOUT: %assoc_type: type = assoc_entity_type @H.%Empty.type.loc18_26.2 (%Empty.type.f74), type [symbolic = %assoc_type (constants.%assoc_type.c52)]
  178. // CHECK:STDOUT: %assoc0: @H.%assoc_type (%assoc_type.c52) = assoc_entity element0, @Empty.%A [symbolic = %assoc0 (constants.%assoc0.292)]
  179. // CHECK:STDOUT: %.Self.as_wit.loc18_34.2: <witness> = facet_access_witness %.Self.2 [symbolic = %.Self.as_wit.loc18_34.2 (constants.%.Self.as_wit.b86)]
  180. // CHECK:STDOUT: %impl.elem0.loc18_34.2: type = impl_witness_access %.Self.as_wit.loc18_34.2, element0 [symbolic = %impl.elem0.loc18_34.2 (constants.%impl.elem0.76f)]
  181. // CHECK:STDOUT: %ptr.loc18_40.2: type = ptr_type @H.%T.loc18_6.2 (%T) [symbolic = %ptr.loc18_40.2 (constants.%ptr.251)]
  182. // CHECK:STDOUT: %Empty_where.type: type = facet_type <@Empty, @Empty(%T.loc18_6.2) where %impl.elem0.loc18_34.2 (constants.%impl.elem0.76f) = %ptr.loc18_40.2 (constants.%ptr.251)> [symbolic = %Empty_where.type (constants.%Empty_where.type.963)]
  183. // CHECK:STDOUT: %V.loc18_43.2: type = bind_symbolic_name V, 1 [symbolic = %V.loc18_43.2 (constants.%V)]
  184. // CHECK:STDOUT: %V.patt.loc18_43.2: type = symbolic_binding_pattern V, 1 [symbolic = %V.patt.loc18_43.2 (constants.%V.patt)]
  185. // CHECK:STDOUT:
  186. // CHECK:STDOUT: !definition:
  187. // CHECK:STDOUT: %require_complete.loc18_17: <witness> = require_complete_type @H.%Empty_where.type (%Empty_where.type.963) [symbolic = %require_complete.loc18_17 (constants.%require_complete.067)]
  188. // CHECK:STDOUT:
  189. // CHECK:STDOUT: fn(%T.param_patt: type, %U.param_patt: @H.%Empty_where.type (%Empty_where.type.963), %V.param_patt: type) {
  190. // CHECK:STDOUT: !entry:
  191. // CHECK:STDOUT: return
  192. // CHECK:STDOUT: }
  193. // CHECK:STDOUT: }
  194. // CHECK:STDOUT:
  195. // CHECK:STDOUT: fn @G(%U.param_patt: %Empty_where.type.5d3) {
  196. // CHECK:STDOUT: !entry:
  197. // CHECK:STDOUT: %H.ref: %H.type = name_ref H, file.%H.decl [template = constants.%H]
  198. // CHECK:STDOUT: %int_32.loc21: Core.IntLiteral = int_value 32 [template = constants.%int_32]
  199. // CHECK:STDOUT: %i32.loc21: type = class_type @Int, @Int(constants.%int_32) [template = constants.%i32]
  200. // CHECK:STDOUT: %U.ref: %Empty_where.type.5d3 = name_ref U, %U
  201. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  202. // CHECK:STDOUT: %.loc21_17.1: type = value_of_initializer %bool.make_type [template = bool]
  203. // CHECK:STDOUT: %.loc21_17.2: type = converted %bool.make_type, %.loc21_17.1 [template = bool]
  204. // CHECK:STDOUT: %H.specific_fn: <specific function> = specific_function %H.ref, @H(constants.%i32, bool) [template = constants.%H.specific_fn]
  205. // CHECK:STDOUT: %H.call: init %empty_tuple.type = call %H.specific_fn(%U.ref)
  206. // CHECK:STDOUT: return
  207. // CHECK:STDOUT: }
  208. // CHECK:STDOUT:
  209. // CHECK:STDOUT: specific @Empty(constants.%W) {
  210. // CHECK:STDOUT: %W.loc11_17.2 => constants.%W
  211. // CHECK:STDOUT: %W.patt.loc11_17.2 => constants.%W
  212. // CHECK:STDOUT: }
  213. // CHECK:STDOUT:
  214. // CHECK:STDOUT: specific @Empty(%W.loc11_17.2) {}
  215. // CHECK:STDOUT:
  216. // CHECK:STDOUT: specific @Empty(constants.%T) {
  217. // CHECK:STDOUT: %W.loc11_17.2 => constants.%T
  218. // CHECK:STDOUT: %W.patt.loc11_17.2 => constants.%T
  219. // CHECK:STDOUT:
  220. // CHECK:STDOUT: !definition:
  221. // CHECK:STDOUT: %Empty.type => constants.%Empty.type.f74
  222. // CHECK:STDOUT: %Self.2 => constants.%Self
  223. // CHECK:STDOUT: %assoc_type => constants.%assoc_type.c52
  224. // CHECK:STDOUT: %assoc0.loc12_15.2 => constants.%assoc0.292
  225. // CHECK:STDOUT: }
  226. // CHECK:STDOUT:
  227. // CHECK:STDOUT: specific @H(constants.%T, constants.%V) {
  228. // CHECK:STDOUT: %T.loc18_6.2 => constants.%T
  229. // CHECK:STDOUT: %T.patt.loc18_6.2 => constants.%T
  230. // CHECK:STDOUT: %Empty.type.loc18_26.2 => constants.%Empty.type.f74
  231. // CHECK:STDOUT: %.Self.2 => constants.%.Self.ec8
  232. // CHECK:STDOUT: %require_complete.loc18_34 => constants.%require_complete.9fb
  233. // CHECK:STDOUT: %assoc_type => constants.%assoc_type.c52
  234. // CHECK:STDOUT: %assoc0 => constants.%assoc0.292
  235. // CHECK:STDOUT: %.Self.as_wit.loc18_34.2 => constants.%.Self.as_wit.b86
  236. // CHECK:STDOUT: %impl.elem0.loc18_34.2 => constants.%impl.elem0.76f
  237. // CHECK:STDOUT: %ptr.loc18_40.2 => constants.%ptr.251
  238. // CHECK:STDOUT: %Empty_where.type => constants.%Empty_where.type.963
  239. // CHECK:STDOUT: %V.loc18_43.2 => constants.%V
  240. // CHECK:STDOUT: %V.patt.loc18_43.2 => constants.%V
  241. // CHECK:STDOUT: }
  242. // CHECK:STDOUT:
  243. // CHECK:STDOUT: specific @Empty(@H.%T.loc18_6.2) {}
  244. // CHECK:STDOUT:
  245. // CHECK:STDOUT: specific @Empty(constants.%i32) {
  246. // CHECK:STDOUT: %W.loc11_17.2 => constants.%i32
  247. // CHECK:STDOUT: %W.patt.loc11_17.2 => constants.%i32
  248. // CHECK:STDOUT:
  249. // CHECK:STDOUT: !definition:
  250. // CHECK:STDOUT: %Empty.type => constants.%Empty.type.4af
  251. // CHECK:STDOUT: %Self.2 => constants.%Self
  252. // CHECK:STDOUT: %assoc_type => constants.%assoc_type.488
  253. // CHECK:STDOUT: %assoc0.loc12_15.2 => constants.%assoc0.7bc
  254. // CHECK:STDOUT: }
  255. // CHECK:STDOUT:
  256. // CHECK:STDOUT: specific @H(constants.%i32, bool) {
  257. // CHECK:STDOUT: %T.loc18_6.2 => constants.%i32
  258. // CHECK:STDOUT: %T.patt.loc18_6.2 => constants.%i32
  259. // CHECK:STDOUT: %Empty.type.loc18_26.2 => constants.%Empty.type.4af
  260. // CHECK:STDOUT: %.Self.2 => constants.%.Self.a46
  261. // CHECK:STDOUT: %require_complete.loc18_34 => constants.%complete_type.6c0
  262. // CHECK:STDOUT: %assoc_type => constants.%assoc_type.488
  263. // CHECK:STDOUT: %assoc0 => constants.%assoc0.7bc
  264. // CHECK:STDOUT: %.Self.as_wit.loc18_34.2 => constants.%.Self.as_wit.c5e
  265. // CHECK:STDOUT: %impl.elem0.loc18_34.2 => constants.%impl.elem0.b4f
  266. // CHECK:STDOUT: %ptr.loc18_40.2 => constants.%ptr.dc3
  267. // CHECK:STDOUT: %Empty_where.type => constants.%Empty_where.type.5d3
  268. // CHECK:STDOUT: %V.loc18_43.2 => bool
  269. // CHECK:STDOUT: %V.patt.loc18_43.2 => bool
  270. // CHECK:STDOUT:
  271. // CHECK:STDOUT: !definition:
  272. // CHECK:STDOUT: %require_complete.loc18_17 => constants.%complete_type.a60
  273. // CHECK:STDOUT: }
  274. // CHECK:STDOUT: