| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323 |
- // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- // Exceptions. See /LICENSE for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- //
- // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/convert.carbon
- // TODO: Add ranges and switch to "--dump-sem-ir-ranges=only".
- // EXTRA-ARGS: --dump-sem-ir-ranges=if-present
- //
- // AUTOUPDATE
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/interface/generic_method.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/interface/generic_method.carbon
- // --- generic_method_fewer_params.carbon
- library "[[@TEST_NAME]]";
- // T has index 0, Self has index 1, U has index 2.
- interface A(T:! type) {
- fn F(U:! type, u: U*) -> (T, Self, U*);
- }
- class X {}
- class Y {}
- class Z {}
- impl Y as A(X) {
- // Here, U has index 0. The specific used for A.F needs to renumber its U from
- // index 2 to index 0.
- fn F(U:! type, u: U*) -> (X, Y, U*) {
- return ({}, {}, u);
- }
- }
- fn Call() {
- var u: Z;
- (Y as A(X)).F(Z, &u);
- }
- fn CallGeneric(T:! A(X)) {
- var u: Z;
- T.F(Z, &u);
- }
- fn CallIndirect() {
- CallGeneric(Y);
- }
- // --- generic_method_more_params.carbon
- library "[[@TEST_NAME]]";
- // T has index 0, Self has index 1, U has index 2.
- interface A(T:! type) {
- fn F(U:! type, u: U) -> (T, Self, U);
- }
- class X {}
- class Y1 {}
- class Y2 {}
- class Z {}
- impl forall [V1:! type, V2:! type, W:! type] (V1, V2) as A(W) {
- // Here, U has index 3. The specific used for A.F needs to renumber its U from
- // index 2 to index 3.
- fn F(U:! type, u: U) -> (W, (V1, V2), U) {
- return F(U, u);
- }
- }
- fn Call() {
- // TODO: The `as type` here should not be necessary.
- (((Y1, Y2) as type) as A(X)).F(Z, {});
- }
- fn CallGeneric(T:! A(X)) {
- T.F(Z, {});
- }
- fn CallIndirect() {
- // TODO: The `as type` here should not be necessary.
- CallGeneric((Y1, Y2) as type);
- }
- // CHECK:STDOUT: --- generic_method_fewer_params.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %type: type = facet_type <type> [concrete]
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
- // CHECK:STDOUT: %T.67d: type = symbolic_binding T, 0 [symbolic]
- // CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
- // CHECK:STDOUT: %A.type.495: type = generic_interface_type @A [concrete]
- // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
- // CHECK:STDOUT: %A.generic: %A.type.495 = struct_value () [concrete]
- // CHECK:STDOUT: %A.type.00e: type = facet_type <@A, @A(%T.67d)> [symbolic]
- // CHECK:STDOUT: %Self.528: %A.type.00e = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %U.4e7: type = symbolic_binding U, 2 [symbolic]
- // CHECK:STDOUT: %ptr.8f6: type = ptr_type %U.4e7 [symbolic]
- // CHECK:STDOUT: %pattern_type.986: type = pattern_type %ptr.8f6 [symbolic]
- // CHECK:STDOUT: %tuple.type.5e0: type = tuple_type (type, %A.type.00e, type) [symbolic]
- // CHECK:STDOUT: %tuple.8be: %tuple.type.5e0 = tuple_value (%T.67d, %Self.528, %ptr.8f6) [symbolic]
- // CHECK:STDOUT: %Self.binding.as_type.233: type = symbolic_binding_type Self, 1, %Self.528 [symbolic]
- // CHECK:STDOUT: %tuple.type.832: type = tuple_type (%T.67d, %Self.binding.as_type.233, %ptr.8f6) [symbolic]
- // CHECK:STDOUT: %pattern_type.380f: type = pattern_type %tuple.type.832 [symbolic]
- // CHECK:STDOUT: %A.F.type.0a7: type = fn_type @A.F, @A(%T.67d) [symbolic]
- // CHECK:STDOUT: %A.F.903: %A.F.type.0a7 = struct_value () [symbolic]
- // CHECK:STDOUT: %A.assoc_type.c94: type = assoc_entity_type @A, @A(%T.67d) [symbolic]
- // CHECK:STDOUT: %assoc0.967: %A.assoc_type.c94 = assoc_entity element0, @A.%A.F.decl [symbolic]
- // CHECK:STDOUT: %X: type = class_type @X [concrete]
- // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
- // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
- // CHECK:STDOUT: %Y: type = class_type @Y [concrete]
- // CHECK:STDOUT: %Z: type = class_type @Z [concrete]
- // CHECK:STDOUT: %A.type.0a4: type = facet_type <@A, @A(%X)> [concrete]
- // CHECK:STDOUT: %Self.4d7: %A.type.0a4 = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %A.F.type.13d: type = fn_type @A.F, @A(%X) [concrete]
- // CHECK:STDOUT: %A.F.d83: %A.F.type.13d = struct_value () [concrete]
- // CHECK:STDOUT: %A.assoc_type.296: type = assoc_entity_type @A, @A(%X) [concrete]
- // CHECK:STDOUT: %assoc0.cef: %A.assoc_type.296 = assoc_entity element0, @A.%A.F.decl [concrete]
- // CHECK:STDOUT: %A.impl_witness: <witness> = impl_witness file.%A.impl_witness_table [concrete]
- // CHECK:STDOUT: %U.67d: type = symbolic_binding U, 0 [symbolic]
- // CHECK:STDOUT: %ptr.e8f8f9.1: type = ptr_type %U.67d [symbolic]
- // CHECK:STDOUT: %pattern_type.4f4b84.1: type = pattern_type %ptr.e8f8f9.1 [symbolic]
- // CHECK:STDOUT: %tuple.type.ff9: type = tuple_type (type, type, type) [concrete]
- // CHECK:STDOUT: %tuple.51d: %tuple.type.ff9 = tuple_value (%X, %Y, %ptr.e8f8f9.1) [symbolic]
- // CHECK:STDOUT: %tuple.type.9bf: type = tuple_type (%X, %Y, %ptr.e8f8f9.1) [symbolic]
- // CHECK:STDOUT: %pattern_type.ff2: type = pattern_type %tuple.type.9bf [symbolic]
- // CHECK:STDOUT: %Y.as.A.impl.F.type: type = fn_type @Y.as.A.impl.F [concrete]
- // CHECK:STDOUT: %Y.as.A.impl.F: %Y.as.A.impl.F.type = struct_value () [concrete]
- // CHECK:STDOUT: %A.facet: %A.type.0a4 = facet_value %Y, (%A.impl_witness) [concrete]
- // CHECK:STDOUT: %tuple.type.5a1: type = tuple_type (type, %A.type.0a4, type) [concrete]
- // CHECK:STDOUT: %tuple.380: %tuple.type.5a1 = tuple_value (%X, %A.facet, %ptr.e8f8f9.1) [symbolic]
- // CHECK:STDOUT: %require_complete.7c8: <witness> = require_complete_type %tuple.type.9bf [symbolic]
- // CHECK:STDOUT: %require_complete.ef162c.1: <witness> = require_complete_type %ptr.e8f8f9.1 [symbolic]
- // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
- // CHECK:STDOUT: %tuple.type.dd2: type = tuple_type (%empty_struct_type, %empty_struct_type, %ptr.e8f8f9.1) [symbolic]
- // CHECK:STDOUT: %X.val: %X = struct_value () [concrete]
- // CHECK:STDOUT: %Y.val: %Y = struct_value () [concrete]
- // CHECK:STDOUT: %Copy.type: type = facet_type <@Copy> [concrete]
- // CHECK:STDOUT: %Copy.Op.type: type = fn_type @Copy.Op [concrete]
- // CHECK:STDOUT: %ptr.as.Copy.impl.Op.type.b05be2.1: type = fn_type @ptr.as.Copy.impl.Op, @ptr.as.Copy.impl(%T.67d) [symbolic]
- // CHECK:STDOUT: %ptr.as.Copy.impl.Op.8b8eb7.1: %ptr.as.Copy.impl.Op.type.b05be2.1 = struct_value () [symbolic]
- // CHECK:STDOUT: %.841: require_specific_def_type = require_specific_def @ptr.as.Copy.impl(%U.67d) [symbolic]
- // CHECK:STDOUT: %Copy.lookup_impl_witness.2e6: <witness> = lookup_impl_witness %ptr.e8f8f9.1, @Copy [symbolic]
- // CHECK:STDOUT: %Copy.facet.29b: %Copy.type = facet_value %ptr.e8f8f9.1, (%Copy.lookup_impl_witness.2e6) [symbolic]
- // CHECK:STDOUT: %.cb5: type = fn_type_with_self_type %Copy.Op.type, %Copy.facet.29b [symbolic]
- // CHECK:STDOUT: %impl.elem0.771: %.cb5 = impl_witness_access %Copy.lookup_impl_witness.2e6, element0 [symbolic]
- // CHECK:STDOUT: %specific_impl_fn.b85: <specific function> = specific_impl_function %impl.elem0.771, @Copy.Op(%Copy.facet.29b) [symbolic]
- // CHECK:STDOUT: %Call.type: type = fn_type @Call [concrete]
- // CHECK:STDOUT: %Call: %Call.type = struct_value () [concrete]
- // CHECK:STDOUT: %pattern_type.8f9: type = pattern_type %Z [concrete]
- // CHECK:STDOUT: %.d35: type = fn_type_with_self_type %A.F.type.13d, %A.facet [concrete]
- // CHECK:STDOUT: %ptr.fb6: type = ptr_type %Z [concrete]
- // CHECK:STDOUT: %pattern_type.f76: type = pattern_type %ptr.fb6 [concrete]
- // CHECK:STDOUT: %tuple.f10: %tuple.type.ff9 = tuple_value (%X, %Y, %ptr.fb6) [concrete]
- // CHECK:STDOUT: %tuple.type.092: type = tuple_type (%X, %Y, %ptr.fb6) [concrete]
- // CHECK:STDOUT: %pattern_type.48d: type = pattern_type %tuple.type.092 [concrete]
- // CHECK:STDOUT: %Y.as.A.impl.F.specific_fn: <specific function> = specific_function %Y.as.A.impl.F, @Y.as.A.impl.F(%Z) [concrete]
- // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
- // CHECK:STDOUT: %Destroy.Op.type: type = fn_type @Destroy.Op [concrete]
- // CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanDestroy>> [concrete]
- // CHECK:STDOUT: %DestroyT: %type_where = symbolic_binding DestroyT, 0 [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.0bf: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%DestroyT) [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.97a: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.0bf = struct_value () [symbolic]
- // CHECK:STDOUT: %facet_value.352: %type_where = facet_value %tuple.type.092, () [concrete]
- // CHECK:STDOUT: %Destroy.impl_witness.dcd: <witness> = impl_witness imports.%Destroy.impl_witness_table, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.352) [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.79b: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.352) [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.c25: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.79b = struct_value () [concrete]
- // CHECK:STDOUT: %complete_type.05d: <witness> = complete_type_witness %tuple.type.092 [concrete]
- // CHECK:STDOUT: %.dab: require_specific_def_type = require_specific_def @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.352) [concrete]
- // CHECK:STDOUT: %Destroy.facet.694: %Destroy.type = facet_value %tuple.type.092, (%Destroy.impl_witness.dcd) [concrete]
- // CHECK:STDOUT: %.989: type = fn_type_with_self_type %Destroy.Op.type, %Destroy.facet.694 [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.067: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op.c25, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value.352) [concrete]
- // CHECK:STDOUT: %facet_value.4e3: %type_where = facet_value %Z, () [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.886: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.4e3) [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.afb: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.886 = struct_value () [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1eb: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op.afb, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value.4e3) [concrete]
- // CHECK:STDOUT: %T.2e9: %A.type.0a4 = symbolic_binding T, 0 [symbolic]
- // CHECK:STDOUT: %pattern_type.809: type = pattern_type %A.type.0a4 [concrete]
- // CHECK:STDOUT: %CallGeneric.type: type = fn_type @CallGeneric [concrete]
- // CHECK:STDOUT: %CallGeneric: %CallGeneric.type = struct_value () [concrete]
- // CHECK:STDOUT: %T.binding.as_type.63e: type = symbolic_binding_type T, 0, %T.2e9 [symbolic]
- // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.2e9, @A, @A(%X) [symbolic]
- // CHECK:STDOUT: %.1b9: type = fn_type_with_self_type %A.F.type.13d, %T.2e9 [symbolic]
- // CHECK:STDOUT: %impl.elem0.d82: %.1b9 = impl_witness_access %A.lookup_impl_witness, element0 [symbolic]
- // CHECK:STDOUT: %tuple.c88: %tuple.type.5a1 = tuple_value (%X, %T.2e9, %ptr.fb6) [symbolic]
- // CHECK:STDOUT: %tuple.type.089: type = tuple_type (%X, %T.binding.as_type.63e, %ptr.fb6) [symbolic]
- // CHECK:STDOUT: %pattern_type.3d4: type = pattern_type %tuple.type.089 [symbolic]
- // CHECK:STDOUT: %specific_impl_fn.727: <specific function> = specific_impl_function %impl.elem0.d82, @A.F(%X, %T.2e9, %Z) [symbolic]
- // CHECK:STDOUT: %require_complete.e12: <witness> = require_complete_type %tuple.type.089 [symbolic]
- // CHECK:STDOUT: %facet_value.8b2: %type_where = facet_value %tuple.type.089, () [symbolic]
- // CHECK:STDOUT: %Destroy.impl_witness.bd5: <witness> = impl_witness imports.%Destroy.impl_witness_table, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.8b2) [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.f36: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.8b2) [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.754: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.f36 = struct_value () [symbolic]
- // CHECK:STDOUT: %.00b: require_specific_def_type = require_specific_def @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.8b2) [symbolic]
- // CHECK:STDOUT: %Destroy.facet.c2c: %Destroy.type = facet_value %tuple.type.089, (%Destroy.impl_witness.bd5) [symbolic]
- // CHECK:STDOUT: %.482: type = fn_type_with_self_type %Destroy.Op.type, %Destroy.facet.c2c [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.4e3: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op.754, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value.8b2) [symbolic]
- // CHECK:STDOUT: %CallIndirect.type: type = fn_type @CallIndirect [concrete]
- // CHECK:STDOUT: %CallIndirect: %CallIndirect.type = struct_value () [concrete]
- // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric, @CallGeneric(%A.facet) [concrete]
- // CHECK:STDOUT: %complete_type.d3e: <witness> = complete_type_witness %ptr.fb6 [concrete]
- // CHECK:STDOUT: %tuple.type.953: type = tuple_type (%empty_struct_type, %empty_struct_type, %ptr.fb6) [concrete]
- // CHECK:STDOUT: %Copy.impl_witness.9e0: <witness> = impl_witness imports.%Copy.impl_witness_table.027, @ptr.as.Copy.impl(%Z) [concrete]
- // CHECK:STDOUT: %ptr.as.Copy.impl.Op.type.38f: type = fn_type @ptr.as.Copy.impl.Op, @ptr.as.Copy.impl(%Z) [concrete]
- // CHECK:STDOUT: %ptr.as.Copy.impl.Op.167: %ptr.as.Copy.impl.Op.type.38f = struct_value () [concrete]
- // CHECK:STDOUT: %.519: require_specific_def_type = require_specific_def @ptr.as.Copy.impl(%Z) [concrete]
- // CHECK:STDOUT: %Copy.facet.e2d: %Copy.type = facet_value %ptr.fb6, (%Copy.impl_witness.9e0) [concrete]
- // CHECK:STDOUT: %.00e: type = fn_type_with_self_type %Copy.Op.type, %Copy.facet.e2d [concrete]
- // CHECK:STDOUT: %ptr.as.Copy.impl.Op.specific_fn: <specific function> = specific_function %ptr.as.Copy.impl.Op.167, @ptr.as.Copy.impl.Op(%Z) [concrete]
- // CHECK:STDOUT: %tuple.22b: %tuple.type.5a1 = tuple_value (%X, %A.facet, %ptr.fb6) [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
- // CHECK:STDOUT: .Copy = %Core.Copy
- // CHECK:STDOUT: .Destroy = %Core.Destroy
- // CHECK:STDOUT: import Core//prelude
- // CHECK:STDOUT: import Core//prelude/...
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.Copy: type = import_ref Core//prelude/parts/copy, Copy, loaded [concrete = constants.%Copy.type]
- // CHECK:STDOUT: %Core.import_ref.301: @ptr.as.Copy.impl.%ptr.as.Copy.impl.Op.type (%ptr.as.Copy.impl.Op.type.b05be2.1) = import_ref Core//prelude/parts/copy, loc{{\d+_\d+}}, loaded [symbolic = @ptr.as.Copy.impl.%ptr.as.Copy.impl.Op (constants.%ptr.as.Copy.impl.Op.8b8eb7.1)]
- // CHECK:STDOUT: %Copy.impl_witness_table.027 = impl_witness_table (%Core.import_ref.301), @ptr.as.Copy.impl [concrete]
- // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
- // CHECK:STDOUT: %Core.import_ref.de0: @DestroyT.binding.as_type.as.Destroy.impl.%DestroyT.binding.as_type.as.Destroy.impl.Op.type (%DestroyT.binding.as_type.as.Destroy.impl.Op.type.0bf) = import_ref Core//prelude/parts/destroy, loc{{\d+_\d+}}, loaded [symbolic = @DestroyT.binding.as_type.as.Destroy.impl.%DestroyT.binding.as_type.as.Destroy.impl.Op (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.97a)]
- // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (%Core.import_ref.de0), @DestroyT.binding.as_type.as.Destroy.impl [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
- // CHECK:STDOUT: .Core = imports.%Core
- // CHECK:STDOUT: .A = %A.decl
- // CHECK:STDOUT: .X = %X.decl
- // CHECK:STDOUT: .Y = %Y.decl
- // CHECK:STDOUT: .Z = %Z.decl
- // CHECK:STDOUT: .Call = %Call.decl
- // CHECK:STDOUT: .CallGeneric = %CallGeneric.decl
- // CHECK:STDOUT: .CallIndirect = %CallIndirect.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.import = import Core
- // CHECK:STDOUT: %A.decl: %A.type.495 = interface_decl @A [concrete = constants.%A.generic] {
- // CHECK:STDOUT: %T.patt: %pattern_type.98f = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %T.loc5_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %X.decl: type = class_decl @X [concrete = constants.%X] {} {}
- // CHECK:STDOUT: %Y.decl: type = class_decl @Y [concrete = constants.%Y] {} {}
- // CHECK:STDOUT: %Z.decl: type = class_decl @Z [concrete = constants.%Z] {} {}
- // CHECK:STDOUT: impl_decl @Y.as.A.impl [concrete] {} {
- // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
- // CHECK:STDOUT: %A.ref: %A.type.495 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
- // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.0a4]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %A.impl_witness_table = impl_witness_table (@Y.as.A.impl.%Y.as.A.impl.F.decl), @Y.as.A.impl [concrete]
- // CHECK:STDOUT: %A.impl_witness: <witness> = impl_witness %A.impl_witness_table [concrete = constants.%A.impl_witness]
- // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [concrete = constants.%Call] {} {}
- // CHECK:STDOUT: %CallGeneric.decl: %CallGeneric.type = fn_decl @CallGeneric [concrete = constants.%CallGeneric] {
- // CHECK:STDOUT: %T.patt: %pattern_type.809 = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %.loc26: type = splice_block %A.type [concrete = constants.%A.type.0a4] {
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %A.ref: %A.type.495 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
- // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.0a4]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %T.loc26_16.2: %A.type.0a4 = symbolic_binding T, 0 [symbolic = %T.loc26_16.1 (constants.%T.2e9)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %CallIndirect.decl: %CallIndirect.type = fn_decl @CallIndirect [concrete = constants.%CallIndirect] {} {}
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @A(%T.loc5_13.2: type) {
- // CHECK:STDOUT: %T.loc5_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T.loc5_13.1)> [symbolic = %A.type (constants.%A.type.00e)]
- // CHECK:STDOUT: %Self.loc5_23.2: @A.%A.type (%A.type.00e) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.528)]
- // CHECK:STDOUT: %A.F.type: type = fn_type @A.F, @A(%T.loc5_13.1) [symbolic = %A.F.type (constants.%A.F.type.0a7)]
- // CHECK:STDOUT: %A.F: @A.%A.F.type (%A.F.type.0a7) = struct_value () [symbolic = %A.F (constants.%A.F.903)]
- // CHECK:STDOUT: %A.assoc_type: type = assoc_entity_type @A, @A(%T.loc5_13.1) [symbolic = %A.assoc_type (constants.%A.assoc_type.c94)]
- // CHECK:STDOUT: %assoc0.loc6_41.2: @A.%A.assoc_type (%A.assoc_type.c94) = assoc_entity element0, %A.F.decl [symbolic = %assoc0.loc6_41.2 (constants.%assoc0.967)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.loc5_23.1: @A.%A.type (%A.type.00e) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.528)]
- // CHECK:STDOUT: %A.F.decl: @A.%A.F.type (%A.F.type.0a7) = fn_decl @A.F [symbolic = @A.%A.F (constants.%A.F.903)] {
- // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 2 [concrete]
- // CHECK:STDOUT: %u.patt: @A.F.%pattern_type.loc6_18 (%pattern_type.986) = value_binding_pattern u [concrete]
- // CHECK:STDOUT: %u.param_patt: @A.F.%pattern_type.loc6_18 (%pattern_type.986) = value_param_pattern %u.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: @A.F.%pattern_type.loc6_25 (%pattern_type.380f) = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: @A.F.%pattern_type.loc6_25 (%pattern_type.380f) = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %T.ref: type = name_ref T, @A.%T.loc5_13.2 [symbolic = %T (constants.%T.67d)]
- // CHECK:STDOUT: %.loc6_32: @A.F.%A.type (%A.type.00e) = specific_constant @A.%Self.loc5_23.1, @A(constants.%T.67d) [symbolic = %Self (constants.%Self.528)]
- // CHECK:STDOUT: %Self.ref: @A.F.%A.type (%A.type.00e) = name_ref Self, %.loc6_32 [symbolic = %Self (constants.%Self.528)]
- // CHECK:STDOUT: %U.ref.loc6_38: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %ptr.loc6_39: type = ptr_type %U.ref.loc6_38 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)]
- // CHECK:STDOUT: %.loc6_40.1: @A.F.%tuple.type.loc6_40.1 (%tuple.type.5e0) = tuple_literal (%T.ref, %Self.ref, %ptr.loc6_39) [symbolic = %tuple (constants.%tuple.8be)]
- // CHECK:STDOUT: %Self.as_type: type = facet_access_type constants.%Self.528 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.233)]
- // CHECK:STDOUT: %.loc6_40.2: type = converted constants.%Self.528, %Self.as_type [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.233)]
- // CHECK:STDOUT: %.loc6_40.3: type = converted %.loc6_40.1, constants.%tuple.type.832 [symbolic = %tuple.type.loc6_40.2 (constants.%tuple.type.832)]
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %U.loc6_8.2: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %u.param: @A.F.%ptr.loc6_22.1 (%ptr.8f6) = value_param call_param0
- // CHECK:STDOUT: %.loc6_22: type = splice_block %ptr.loc6_22.2 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)] {
- // CHECK:STDOUT: %U.ref.loc6_21: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %ptr.loc6_22.2: type = ptr_type %U.ref.loc6_21 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %u: @A.F.%ptr.loc6_22.1 (%ptr.8f6) = value_binding u, %u.param
- // CHECK:STDOUT: %return.param: ref @A.F.%tuple.type.loc6_40.2 (%tuple.type.832) = out_param call_param1
- // CHECK:STDOUT: %return: ref @A.F.%tuple.type.loc6_40.2 (%tuple.type.832) = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %assoc0.loc6_41.1: @A.%A.assoc_type (%A.assoc_type.c94) = assoc_entity element0, %A.F.decl [symbolic = %assoc0.loc6_41.2 (constants.%assoc0.967)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.loc5_23.1
- // CHECK:STDOUT: .T = <poisoned>
- // CHECK:STDOUT: .F = %assoc0.loc6_41.1
- // CHECK:STDOUT: witness = (%A.F.decl)
- // CHECK:STDOUT:
- // CHECK:STDOUT: !requires:
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl @Y.as.A.impl: %Y.ref as %A.type {
- // CHECK:STDOUT: %Y.as.A.impl.F.decl: %Y.as.A.impl.F.type = fn_decl @Y.as.A.impl.F [concrete = constants.%Y.as.A.impl.F] {
- // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 0 [concrete]
- // CHECK:STDOUT: %u.patt: @Y.as.A.impl.F.%pattern_type.loc16_18 (%pattern_type.4f4b84.1) = value_binding_pattern u [concrete]
- // CHECK:STDOUT: %u.param_patt: @Y.as.A.impl.F.%pattern_type.loc16_18 (%pattern_type.4f4b84.1) = value_param_pattern %u.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: @Y.as.A.impl.F.%pattern_type.loc16_25 (%pattern_type.ff2) = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: @Y.as.A.impl.F.%pattern_type.loc16_25 (%pattern_type.ff2) = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
- // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
- // CHECK:STDOUT: %U.ref.loc16_35: type = name_ref U, %U.loc16_8.2 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
- // CHECK:STDOUT: %ptr.loc16_36: type = ptr_type %U.ref.loc16_35 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)]
- // CHECK:STDOUT: %.loc16_37.1: %tuple.type.ff9 = tuple_literal (%X.ref, %Y.ref, %ptr.loc16_36) [symbolic = %tuple (constants.%tuple.51d)]
- // CHECK:STDOUT: %.loc16_37.2: type = converted %.loc16_37.1, constants.%tuple.type.9bf [symbolic = %tuple.type.loc16 (constants.%tuple.type.9bf)]
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %U.loc16_8.2: type = symbolic_binding U, 0 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
- // CHECK:STDOUT: %u.param: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = value_param call_param0
- // CHECK:STDOUT: %.loc16_22: type = splice_block %ptr.loc16_22.2 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)] {
- // CHECK:STDOUT: %U.ref.loc16_21: type = name_ref U, %U.loc16_8.2 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
- // CHECK:STDOUT: %ptr.loc16_22.2: type = ptr_type %U.ref.loc16_21 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %u: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = value_binding u, %u.param
- // CHECK:STDOUT: %return.param: ref @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.9bf) = out_param call_param1
- // CHECK:STDOUT: %return: ref @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.9bf) = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .X = <poisoned>
- // CHECK:STDOUT: .Y = <poisoned>
- // CHECK:STDOUT: .F = %Y.as.A.impl.F.decl
- // CHECK:STDOUT: witness = file.%A.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @X {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%X
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @Y {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%Y
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @Z {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%Z
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @A.F(@A.%T.loc5_13.2: type, @A.%Self.loc5_23.1: @A.%A.type (%A.type.00e), %U.loc6_8.2: type) {
- // CHECK:STDOUT: %U.loc6_8.1: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %ptr.loc6_22.1: type = ptr_type %U.loc6_8.1 [symbolic = %ptr.loc6_22.1 (constants.%ptr.8f6)]
- // CHECK:STDOUT: %pattern_type.loc6_18: type = pattern_type %ptr.loc6_22.1 [symbolic = %pattern_type.loc6_18 (constants.%pattern_type.986)]
- // CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T.67d)]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T)> [symbolic = %A.type (constants.%A.type.00e)]
- // CHECK:STDOUT: %Self: @A.F.%A.type (%A.type.00e) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.528)]
- // CHECK:STDOUT: %tuple.type.loc6_40.1: type = tuple_type (type, %A.type, type) [symbolic = %tuple.type.loc6_40.1 (constants.%tuple.type.5e0)]
- // CHECK:STDOUT: %tuple: @A.F.%tuple.type.loc6_40.1 (%tuple.type.5e0) = tuple_value (%T, %Self, %ptr.loc6_22.1) [symbolic = %tuple (constants.%tuple.8be)]
- // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.233)]
- // CHECK:STDOUT: %tuple.type.loc6_40.2: type = tuple_type (%T, %Self.binding.as_type, %ptr.loc6_22.1) [symbolic = %tuple.type.loc6_40.2 (constants.%tuple.type.832)]
- // CHECK:STDOUT: %pattern_type.loc6_25: type = pattern_type %tuple.type.loc6_40.2 [symbolic = %pattern_type.loc6_25 (constants.%pattern_type.380f)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn(%u.param: @A.F.%ptr.loc6_22.1 (%ptr.8f6)) -> @A.F.%tuple.type.loc6_40.2 (%tuple.type.832);
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @Y.as.A.impl.F(%U.loc16_8.2: type) {
- // CHECK:STDOUT: %U.loc16_8.1: type = symbolic_binding U, 0 [symbolic = %U.loc16_8.1 (constants.%U.67d)]
- // CHECK:STDOUT: %ptr.loc16_22.1: type = ptr_type %U.loc16_8.1 [symbolic = %ptr.loc16_22.1 (constants.%ptr.e8f8f9.1)]
- // CHECK:STDOUT: %pattern_type.loc16_18: type = pattern_type %ptr.loc16_22.1 [symbolic = %pattern_type.loc16_18 (constants.%pattern_type.4f4b84.1)]
- // CHECK:STDOUT: %tuple: %tuple.type.ff9 = tuple_value (constants.%X, constants.%Y, %ptr.loc16_22.1) [symbolic = %tuple (constants.%tuple.51d)]
- // CHECK:STDOUT: %tuple.type.loc16: type = tuple_type (constants.%X, constants.%Y, %ptr.loc16_22.1) [symbolic = %tuple.type.loc16 (constants.%tuple.type.9bf)]
- // CHECK:STDOUT: %pattern_type.loc16_25: type = pattern_type %tuple.type.loc16 [symbolic = %pattern_type.loc16_25 (constants.%pattern_type.ff2)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %require_complete.loc16_37: <witness> = require_complete_type %tuple.type.loc16 [symbolic = %require_complete.loc16_37 (constants.%require_complete.7c8)]
- // CHECK:STDOUT: %require_complete.loc16_19: <witness> = require_complete_type %ptr.loc16_22.1 [symbolic = %require_complete.loc16_19 (constants.%require_complete.ef162c.1)]
- // CHECK:STDOUT: %tuple.type.loc17: type = tuple_type (constants.%empty_struct_type, constants.%empty_struct_type, %ptr.loc16_22.1) [symbolic = %tuple.type.loc17 (constants.%tuple.type.dd2)]
- // CHECK:STDOUT: %.loc17_21.1: require_specific_def_type = require_specific_def @ptr.as.Copy.impl(%U.loc16_8.1) [symbolic = %.loc17_21.1 (constants.%.841)]
- // CHECK:STDOUT: %Copy.lookup_impl_witness: <witness> = lookup_impl_witness %ptr.loc16_22.1, @Copy [symbolic = %Copy.lookup_impl_witness (constants.%Copy.lookup_impl_witness.2e6)]
- // CHECK:STDOUT: %Copy.facet: %Copy.type = facet_value %ptr.loc16_22.1, (%Copy.lookup_impl_witness) [symbolic = %Copy.facet (constants.%Copy.facet.29b)]
- // CHECK:STDOUT: %.loc17_21.2: type = fn_type_with_self_type constants.%Copy.Op.type, %Copy.facet [symbolic = %.loc17_21.2 (constants.%.cb5)]
- // CHECK:STDOUT: %impl.elem0.loc17_21.2: @Y.as.A.impl.F.%.loc17_21.2 (%.cb5) = impl_witness_access %Copy.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc17_21.2 (constants.%impl.elem0.771)]
- // CHECK:STDOUT: %specific_impl_fn.loc17_21.2: <specific function> = specific_impl_function %impl.elem0.loc17_21.2, @Copy.Op(%Copy.facet) [symbolic = %specific_impl_fn.loc17_21.2 (constants.%specific_impl_fn.b85)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn(%u.param: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1)) -> %return.param: @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.9bf) {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %.loc17_14.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
- // CHECK:STDOUT: %.loc17_18.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
- // CHECK:STDOUT: %u.ref: @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = name_ref u, %u
- // CHECK:STDOUT: %.loc17_22.1: @Y.as.A.impl.F.%tuple.type.loc17 (%tuple.type.dd2) = tuple_literal (%.loc17_14.1, %.loc17_18.1, %u.ref)
- // CHECK:STDOUT: %tuple.elem0: ref %X = tuple_access %return, element0
- // CHECK:STDOUT: %.loc17_14.2: init %X = class_init (), %tuple.elem0 [concrete = constants.%X.val]
- // CHECK:STDOUT: %.loc17_22.2: init %X = converted %.loc17_14.1, %.loc17_14.2 [concrete = constants.%X.val]
- // CHECK:STDOUT: %tuple.elem1: ref %Y = tuple_access %return, element1
- // CHECK:STDOUT: %.loc17_18.2: init %Y = class_init (), %tuple.elem1 [concrete = constants.%Y.val]
- // CHECK:STDOUT: %.loc17_22.3: init %Y = converted %.loc17_18.1, %.loc17_18.2 [concrete = constants.%Y.val]
- // CHECK:STDOUT: %impl.elem0.loc17_21.1: @Y.as.A.impl.F.%.loc17_21.2 (%.cb5) = impl_witness_access constants.%Copy.lookup_impl_witness.2e6, element0 [symbolic = %impl.elem0.loc17_21.2 (constants.%impl.elem0.771)]
- // CHECK:STDOUT: %bound_method.loc17_21.1: <bound method> = bound_method %u.ref, %impl.elem0.loc17_21.1
- // CHECK:STDOUT: %specific_impl_fn.loc17_21.1: <specific function> = specific_impl_function %impl.elem0.loc17_21.1, @Copy.Op(constants.%Copy.facet.29b) [symbolic = %specific_impl_fn.loc17_21.2 (constants.%specific_impl_fn.b85)]
- // CHECK:STDOUT: %bound_method.loc17_21.2: <bound method> = bound_method %u.ref, %specific_impl_fn.loc17_21.1
- // CHECK:STDOUT: %Copy.Op.call: init @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = call %bound_method.loc17_21.2(%u.ref)
- // CHECK:STDOUT: %tuple.elem2: ref @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = tuple_access %return, element2
- // CHECK:STDOUT: %.loc17_22.4: init @Y.as.A.impl.F.%ptr.loc16_22.1 (%ptr.e8f8f9.1) = initialize_from %Copy.Op.call to %tuple.elem2
- // CHECK:STDOUT: %.loc17_22.5: init @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.9bf) = tuple_init (%.loc17_22.2, %.loc17_22.3, %.loc17_22.4) to %return
- // CHECK:STDOUT: %.loc17_23: init @Y.as.A.impl.F.%tuple.type.loc16 (%tuple.type.9bf) = converted %.loc17_22.1, %.loc17_22.5
- // CHECK:STDOUT: return %.loc17_23 to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @Call() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: name_binding_decl {
- // CHECK:STDOUT: %u.patt: %pattern_type.8f9 = ref_binding_pattern u [concrete]
- // CHECK:STDOUT: %u.var_patt: %pattern_type.8f9 = var_pattern %u.patt [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %u.var: ref %Z = var %u.var_patt
- // CHECK:STDOUT: %Z.ref.loc22: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
- // CHECK:STDOUT: %u: ref %Z = ref_binding u, %u.var
- // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
- // CHECK:STDOUT: %A.ref: %A.type.495 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
- // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.0a4]
- // CHECK:STDOUT: %A.facet: %A.type.0a4 = facet_value %Y.ref, (constants.%A.impl_witness) [concrete = constants.%A.facet]
- // CHECK:STDOUT: %.loc23_6: %A.type.0a4 = converted %Y.ref, %A.facet [concrete = constants.%A.facet]
- // CHECK:STDOUT: %.loc23_14.1: %A.assoc_type.296 = specific_constant @A.%assoc0.loc6_41.1, @A(constants.%X) [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %F.ref: %A.assoc_type.296 = name_ref F, %.loc23_14.1 [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %as_type: type = facet_access_type %.loc23_6 [concrete = constants.%Y]
- // CHECK:STDOUT: %.loc23_14.2: type = converted %.loc23_6, %as_type [concrete = constants.%Y]
- // CHECK:STDOUT: %impl.elem0: %.d35 = impl_witness_access constants.%A.impl_witness, element0 [concrete = constants.%Y.as.A.impl.F]
- // CHECK:STDOUT: %Z.ref.loc23: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
- // CHECK:STDOUT: %u.ref: ref %Z = name_ref u, %u
- // CHECK:STDOUT: %addr: %ptr.fb6 = addr_of %u.ref
- // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0, @Y.as.A.impl.F(constants.%Z) [concrete = constants.%Y.as.A.impl.F.specific_fn]
- // CHECK:STDOUT: %.loc23_22.1: ref %tuple.type.092 = temporary_storage
- // CHECK:STDOUT: %Y.as.A.impl.F.call: init %tuple.type.092 = call %specific_fn(%addr) to %.loc23_22.1
- // CHECK:STDOUT: %.loc23_22.2: ref %tuple.type.092 = temporary %.loc23_22.1, %Y.as.A.impl.F.call
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.bound.loc23: <bound method> = bound_method %.loc23_22.2, constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.c25
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1: <specific function> = specific_function constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.c25, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.352) [concrete = constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.067]
- // CHECK:STDOUT: %bound_method.loc23: <bound method> = bound_method %.loc23_22.2, %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc23: init %empty_tuple.type = call %bound_method.loc23(%.loc23_22.2)
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.bound.loc22: <bound method> = bound_method %u.var, constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.2: <specific function> = specific_function constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.4e3) [concrete = constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1eb]
- // CHECK:STDOUT: %bound_method.loc22: <bound method> = bound_method %u.var, %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.2
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc22: init %empty_tuple.type = call %bound_method.loc22(%u.var)
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @CallGeneric(%T.loc26_16.2: %A.type.0a4) {
- // CHECK:STDOUT: %T.loc26_16.1: %A.type.0a4 = symbolic_binding T, 0 [symbolic = %T.loc26_16.1 (constants.%T.2e9)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T.binding.as_type: type = symbolic_binding_type T, 0, %T.loc26_16.1 [symbolic = %T.binding.as_type (constants.%T.binding.as_type.63e)]
- // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.loc26_16.1, @A, @A(constants.%X) [symbolic = %A.lookup_impl_witness (constants.%A.lookup_impl_witness)]
- // CHECK:STDOUT: %.loc28_4.3: type = fn_type_with_self_type constants.%A.F.type.13d, %T.loc26_16.1 [symbolic = %.loc28_4.3 (constants.%.1b9)]
- // CHECK:STDOUT: %impl.elem0.loc28_4.2: @CallGeneric.%.loc28_4.3 (%.1b9) = impl_witness_access %A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0.d82)]
- // CHECK:STDOUT: %specific_impl_fn.loc28_4.2: <specific function> = specific_impl_function %impl.elem0.loc28_4.2, @A.F(constants.%X, %T.loc26_16.1, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn.727)]
- // CHECK:STDOUT: %tuple.type: type = tuple_type (constants.%X, %T.binding.as_type, constants.%ptr.fb6) [symbolic = %tuple.type (constants.%tuple.type.089)]
- // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %tuple.type [symbolic = %require_complete (constants.%require_complete.e12)]
- // CHECK:STDOUT: %facet_value: %type_where = facet_value %tuple.type, () [symbolic = %facet_value (constants.%facet_value.8b2)]
- // CHECK:STDOUT: %.loc28_12.3: require_specific_def_type = require_specific_def @DestroyT.binding.as_type.as.Destroy.impl(%facet_value) [symbolic = %.loc28_12.3 (constants.%.00b)]
- // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness imports.%Destroy.impl_witness_table, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value) [symbolic = %Destroy.impl_witness (constants.%Destroy.impl_witness.bd5)]
- // CHECK:STDOUT: %Destroy.facet: %Destroy.type = facet_value %tuple.type, (%Destroy.impl_witness) [symbolic = %Destroy.facet (constants.%Destroy.facet.c2c)]
- // CHECK:STDOUT: %.loc28_12.4: type = fn_type_with_self_type constants.%Destroy.Op.type, %Destroy.facet [symbolic = %.loc28_12.4 (constants.%.482)]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value) [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op.type (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.type.f36)]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op: @CallGeneric.%DestroyT.binding.as_type.as.Destroy.impl.Op.type (%DestroyT.binding.as_type.as.Destroy.impl.Op.type.f36) = struct_value () [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.754)]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value) [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28 (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.4e3)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: name_binding_decl {
- // CHECK:STDOUT: %u.patt: %pattern_type.8f9 = ref_binding_pattern u [concrete]
- // CHECK:STDOUT: %u.var_patt: %pattern_type.8f9 = var_pattern %u.patt [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %u.var: ref %Z = var %u.var_patt
- // CHECK:STDOUT: %Z.ref.loc27: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
- // CHECK:STDOUT: %u: ref %Z = ref_binding u, %u.var
- // CHECK:STDOUT: %T.ref: %A.type.0a4 = name_ref T, %T.loc26_16.2 [symbolic = %T.loc26_16.1 (constants.%T.2e9)]
- // CHECK:STDOUT: %.loc28_4.1: %A.assoc_type.296 = specific_constant @A.%assoc0.loc6_41.1, @A(constants.%X) [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %F.ref: %A.assoc_type.296 = name_ref F, %.loc28_4.1 [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %T.as_type: type = facet_access_type %T.ref [symbolic = %T.binding.as_type (constants.%T.binding.as_type.63e)]
- // CHECK:STDOUT: %.loc28_4.2: type = converted %T.ref, %T.as_type [symbolic = %T.binding.as_type (constants.%T.binding.as_type.63e)]
- // CHECK:STDOUT: %impl.elem0.loc28_4.1: @CallGeneric.%.loc28_4.3 (%.1b9) = impl_witness_access constants.%A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0.d82)]
- // CHECK:STDOUT: %Z.ref.loc28: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
- // CHECK:STDOUT: %u.ref: ref %Z = name_ref u, %u
- // CHECK:STDOUT: %addr: %ptr.fb6 = addr_of %u.ref
- // CHECK:STDOUT: %specific_impl_fn.loc28_4.1: <specific function> = specific_impl_function %impl.elem0.loc28_4.1, @A.F(constants.%X, constants.%T.2e9, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn.727)]
- // CHECK:STDOUT: %.loc28_12.1: ref @CallGeneric.%tuple.type (%tuple.type.089) = temporary_storage
- // CHECK:STDOUT: %A.F.call: init @CallGeneric.%tuple.type (%tuple.type.089) = call %specific_impl_fn.loc28_4.1(%addr) to %.loc28_12.1
- // CHECK:STDOUT: %.loc28_12.2: ref @CallGeneric.%tuple.type (%tuple.type.089) = temporary %.loc28_12.1, %A.F.call
- // CHECK:STDOUT: %impl.elem0.loc28_12: @CallGeneric.%.loc28_12.4 (%.482) = impl_witness_access constants.%Destroy.impl_witness.bd5, element0 [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.754)]
- // CHECK:STDOUT: %bound_method.loc28_12.1: <bound method> = bound_method %.loc28_12.2, %impl.elem0.loc28_12
- // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0.loc28_12, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.8b2) [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28 (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.4e3)]
- // CHECK:STDOUT: %bound_method.loc28_12.2: <bound method> = bound_method %.loc28_12.2, %specific_fn
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc28: init %empty_tuple.type = call %bound_method.loc28_12.2(%.loc28_12.2)
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.bound: <bound method> = bound_method %u.var, constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1: <specific function> = specific_function constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.4e3) [concrete = constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1eb]
- // CHECK:STDOUT: %bound_method.loc27: <bound method> = bound_method %u.var, %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc27: init %empty_tuple.type = call %bound_method.loc27(%u.var)
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @CallIndirect() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %CallGeneric.ref: %CallGeneric.type = name_ref CallGeneric, file.%CallGeneric.decl [concrete = constants.%CallGeneric]
- // CHECK:STDOUT: %Y.ref: type = name_ref Y, file.%Y.decl [concrete = constants.%Y]
- // CHECK:STDOUT: %A.facet: %A.type.0a4 = facet_value %Y.ref, (constants.%A.impl_witness) [concrete = constants.%A.facet]
- // CHECK:STDOUT: %.loc32: %A.type.0a4 = converted %Y.ref, %A.facet [concrete = constants.%A.facet]
- // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric.ref, @CallGeneric(constants.%A.facet) [concrete = constants.%CallGeneric.specific_fn]
- // CHECK:STDOUT: %CallGeneric.call: init %empty_tuple.type = call %CallGeneric.specific_fn()
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A(constants.%T.67d) {
- // CHECK:STDOUT: %T.loc5_13.1 => constants.%T.67d
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%T.67d, constants.%Self.528, constants.%U.4e7) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.4e7
- // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.8f6
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.986
- // CHECK:STDOUT: %T => constants.%T.67d
- // CHECK:STDOUT: %A.type => constants.%A.type.00e
- // CHECK:STDOUT: %Self => constants.%Self.528
- // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.5e0
- // CHECK:STDOUT: %tuple => constants.%tuple.8be
- // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.233
- // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.832
- // CHECK:STDOUT: %pattern_type.loc6_25 => constants.%pattern_type.380f
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A(constants.%X) {
- // CHECK:STDOUT: %T.loc5_13.1 => constants.%X
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.4d7
- // CHECK:STDOUT: %A.F.type => constants.%A.F.type.13d
- // CHECK:STDOUT: %A.F => constants.%A.F.d83
- // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.296
- // CHECK:STDOUT: %assoc0.loc6_41.2 => constants.%assoc0.cef
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Y.as.A.impl.F(constants.%U.67d) {
- // CHECK:STDOUT: %U.loc16_8.1 => constants.%U.67d
- // CHECK:STDOUT: %ptr.loc16_22.1 => constants.%ptr.e8f8f9.1
- // CHECK:STDOUT: %pattern_type.loc16_18 => constants.%pattern_type.4f4b84.1
- // CHECK:STDOUT: %tuple => constants.%tuple.51d
- // CHECK:STDOUT: %tuple.type.loc16 => constants.%tuple.type.9bf
- // CHECK:STDOUT: %pattern_type.loc16_25 => constants.%pattern_type.ff2
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%X, constants.%A.facet, constants.%U.67d) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.67d
- // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.e8f8f9.1
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.4f4b84.1
- // CHECK:STDOUT: %T => constants.%X
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self => constants.%A.facet
- // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.5a1
- // CHECK:STDOUT: %tuple => constants.%tuple.380
- // CHECK:STDOUT: %Self.binding.as_type => constants.%Y
- // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.9bf
- // CHECK:STDOUT: %pattern_type.loc6_25 => constants.%pattern_type.ff2
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @Y.as.A.impl.F(constants.%Z) {
- // CHECK:STDOUT: %U.loc16_8.1 => constants.%Z
- // CHECK:STDOUT: %ptr.loc16_22.1 => constants.%ptr.fb6
- // CHECK:STDOUT: %pattern_type.loc16_18 => constants.%pattern_type.f76
- // CHECK:STDOUT: %tuple => constants.%tuple.f10
- // CHECK:STDOUT: %tuple.type.loc16 => constants.%tuple.type.092
- // CHECK:STDOUT: %pattern_type.loc16_25 => constants.%pattern_type.48d
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %require_complete.loc16_37 => constants.%complete_type.05d
- // CHECK:STDOUT: %require_complete.loc16_19 => constants.%complete_type.d3e
- // CHECK:STDOUT: %tuple.type.loc17 => constants.%tuple.type.953
- // CHECK:STDOUT: %.loc17_21.1 => constants.%.519
- // CHECK:STDOUT: %Copy.lookup_impl_witness => constants.%Copy.impl_witness.9e0
- // CHECK:STDOUT: %Copy.facet => constants.%Copy.facet.e2d
- // CHECK:STDOUT: %.loc17_21.2 => constants.%.00e
- // CHECK:STDOUT: %impl.elem0.loc17_21.2 => constants.%ptr.as.Copy.impl.Op.167
- // CHECK:STDOUT: %specific_impl_fn.loc17_21.2 => constants.%ptr.as.Copy.impl.Op.specific_fn
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @CallGeneric(constants.%T.2e9) {
- // CHECK:STDOUT: %T.loc26_16.1 => constants.%T.2e9
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%X, constants.%T.2e9, constants.%Z) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
- // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.fb6
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.f76
- // CHECK:STDOUT: %T => constants.%X
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self => constants.%T.2e9
- // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.5a1
- // CHECK:STDOUT: %tuple => constants.%tuple.c88
- // CHECK:STDOUT: %Self.binding.as_type => constants.%T.binding.as_type.63e
- // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.089
- // CHECK:STDOUT: %pattern_type.loc6_25 => constants.%pattern_type.3d4
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @CallGeneric(constants.%A.facet) {
- // CHECK:STDOUT: %T.loc26_16.1 => constants.%A.facet
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T.binding.as_type => constants.%Y
- // CHECK:STDOUT: %A.lookup_impl_witness => constants.%A.impl_witness
- // CHECK:STDOUT: %.loc28_4.3 => constants.%.d35
- // CHECK:STDOUT: %impl.elem0.loc28_4.2 => constants.%Y.as.A.impl.F
- // CHECK:STDOUT: %specific_impl_fn.loc28_4.2 => constants.%Y.as.A.impl.F.specific_fn
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.092
- // CHECK:STDOUT: %require_complete => constants.%complete_type.05d
- // CHECK:STDOUT: %facet_value => constants.%facet_value.352
- // CHECK:STDOUT: %.loc28_12.3 => constants.%.dab
- // CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.dcd
- // CHECK:STDOUT: %Destroy.facet => constants.%Destroy.facet.694
- // CHECK:STDOUT: %.loc28_12.4 => constants.%.989
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type => constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.type.79b
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op => constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.c25
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28 => constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.067
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%X, constants.%A.facet, constants.%Z) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
- // CHECK:STDOUT: %ptr.loc6_22.1 => constants.%ptr.fb6
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.f76
- // CHECK:STDOUT: %T => constants.%X
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self => constants.%A.facet
- // CHECK:STDOUT: %tuple.type.loc6_40.1 => constants.%tuple.type.5a1
- // CHECK:STDOUT: %tuple => constants.%tuple.22b
- // CHECK:STDOUT: %Self.binding.as_type => constants.%Y
- // CHECK:STDOUT: %tuple.type.loc6_40.2 => constants.%tuple.type.092
- // CHECK:STDOUT: %pattern_type.loc6_25 => constants.%pattern_type.48d
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- generic_method_more_params.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %type: type = facet_type <type> [concrete]
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
- // CHECK:STDOUT: %T.67d: type = symbolic_binding T, 0 [symbolic]
- // CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
- // CHECK:STDOUT: %A.type.495: type = generic_interface_type @A [concrete]
- // CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
- // CHECK:STDOUT: %A.generic: %A.type.495 = struct_value () [concrete]
- // CHECK:STDOUT: %A.type.00e: type = facet_type <@A, @A(%T.67d)> [symbolic]
- // CHECK:STDOUT: %Self.528: %A.type.00e = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %U.4e7: type = symbolic_binding U, 2 [symbolic]
- // CHECK:STDOUT: %pattern_type.62e: type = pattern_type %U.4e7 [symbolic]
- // CHECK:STDOUT: %tuple.type.5e0: type = tuple_type (type, %A.type.00e, type) [symbolic]
- // CHECK:STDOUT: %tuple.794: %tuple.type.5e0 = tuple_value (%T.67d, %Self.528, %U.4e7) [symbolic]
- // CHECK:STDOUT: %Self.binding.as_type.233: type = symbolic_binding_type Self, 1, %Self.528 [symbolic]
- // CHECK:STDOUT: %tuple.type.aa2: type = tuple_type (%T.67d, %Self.binding.as_type.233, %U.4e7) [symbolic]
- // CHECK:STDOUT: %pattern_type.bc0: type = pattern_type %tuple.type.aa2 [symbolic]
- // CHECK:STDOUT: %A.F.type.0a7: type = fn_type @A.F, @A(%T.67d) [symbolic]
- // CHECK:STDOUT: %A.F.903: %A.F.type.0a7 = struct_value () [symbolic]
- // CHECK:STDOUT: %A.assoc_type.c94: type = assoc_entity_type @A, @A(%T.67d) [symbolic]
- // CHECK:STDOUT: %assoc0.967: %A.assoc_type.c94 = assoc_entity element0, @A.%A.F.decl [symbolic]
- // CHECK:STDOUT: %X: type = class_type @X [concrete]
- // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
- // CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
- // CHECK:STDOUT: %Y1: type = class_type @Y1 [concrete]
- // CHECK:STDOUT: %Y2: type = class_type @Y2 [concrete]
- // CHECK:STDOUT: %Z: type = class_type @Z [concrete]
- // CHECK:STDOUT: %V1: type = symbolic_binding V1, 0 [symbolic]
- // CHECK:STDOUT: %V2: type = symbolic_binding V2, 1 [symbolic]
- // CHECK:STDOUT: %W: type = symbolic_binding W, 2 [symbolic]
- // CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
- // CHECK:STDOUT: %tuple.4b9: %tuple.type.24b = tuple_value (%V1, %V2) [symbolic]
- // CHECK:STDOUT: %tuple.type.a5e: type = tuple_type (%V1, %V2) [symbolic]
- // CHECK:STDOUT: %A.type.ae9: type = facet_type <@A, @A(%W)> [symbolic]
- // CHECK:STDOUT: %Self.bf9: %A.type.ae9 = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %A.F.type.1a0: type = fn_type @A.F, @A(%W) [symbolic]
- // CHECK:STDOUT: %A.F.b94: %A.F.type.1a0 = struct_value () [symbolic]
- // CHECK:STDOUT: %A.assoc_type.bdc: type = assoc_entity_type @A, @A(%W) [symbolic]
- // CHECK:STDOUT: %assoc0.200: %A.assoc_type.bdc = assoc_entity element0, @A.%A.F.decl [symbolic]
- // CHECK:STDOUT: %require_complete.517: <witness> = require_complete_type %A.type.ae9 [symbolic]
- // CHECK:STDOUT: %A.impl_witness.8c0: <witness> = impl_witness file.%A.impl_witness_table, @tuple.type.as.A.impl(%V1, %V2, %W) [symbolic]
- // CHECK:STDOUT: %U.ce4: type = symbolic_binding U, 3 [symbolic]
- // CHECK:STDOUT: %pattern_type.e4a: type = pattern_type %U.ce4 [symbolic]
- // CHECK:STDOUT: %tuple.type.11f: type = tuple_type (type, %tuple.type.24b, type) [concrete]
- // CHECK:STDOUT: %tuple.117: %tuple.type.11f = tuple_value (%W, %tuple.4b9, %U.ce4) [symbolic]
- // CHECK:STDOUT: %tuple.type.897: type = tuple_type (%W, %tuple.type.a5e, %U.ce4) [symbolic]
- // CHECK:STDOUT: %pattern_type.5cc: type = pattern_type %tuple.type.897 [symbolic]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type.52a: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%V1, %V2, %W) [symbolic]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.b6b: %tuple.type.as.A.impl.F.type.52a = struct_value () [symbolic]
- // CHECK:STDOUT: %A.facet.219: %A.type.ae9 = facet_value %tuple.type.a5e, (%A.impl_witness.8c0) [symbolic]
- // CHECK:STDOUT: %tuple.type.001: type = tuple_type (type, %A.type.ae9, type) [symbolic]
- // CHECK:STDOUT: %tuple.4e5: %tuple.type.001 = tuple_value (%W, %A.facet.219, %U.ce4) [symbolic]
- // CHECK:STDOUT: %require_complete.da0: <witness> = require_complete_type %tuple.type.897 [symbolic]
- // CHECK:STDOUT: %require_complete.5a4: <witness> = require_complete_type %U.ce4 [symbolic]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.ebc: <specific function> = specific_function %tuple.type.as.A.impl.F.b6b, @tuple.type.as.A.impl.F(%V1, %V2, %W, %U.ce4) [symbolic]
- // CHECK:STDOUT: %Call.type: type = fn_type @Call [concrete]
- // CHECK:STDOUT: %Call: %Call.type = struct_value () [concrete]
- // CHECK:STDOUT: %tuple.821: %tuple.type.24b = tuple_value (%Y1, %Y2) [concrete]
- // CHECK:STDOUT: %tuple.type.a46: type = tuple_type (%Y1, %Y2) [concrete]
- // CHECK:STDOUT: %A.type.0a4: type = facet_type <@A, @A(%X)> [concrete]
- // CHECK:STDOUT: %Self.4d7: %A.type.0a4 = symbolic_binding Self, 1 [symbolic]
- // CHECK:STDOUT: %A.F.type.13d: type = fn_type @A.F, @A(%X) [concrete]
- // CHECK:STDOUT: %A.F.d83: %A.F.type.13d = struct_value () [concrete]
- // CHECK:STDOUT: %A.assoc_type.296: type = assoc_entity_type @A, @A(%X) [concrete]
- // CHECK:STDOUT: %assoc0.cef: %A.assoc_type.296 = assoc_entity element0, @A.%A.F.decl [concrete]
- // CHECK:STDOUT: %complete_type.e2d: <witness> = complete_type_witness %A.type.0a4 [concrete]
- // CHECK:STDOUT: %A.impl_witness.a77: <witness> = impl_witness file.%A.impl_witness_table, @tuple.type.as.A.impl(%Y1, %Y2, %X) [concrete]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type.172: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%Y1, %Y2, %X) [concrete]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.506: %tuple.type.as.A.impl.F.type.172 = struct_value () [concrete]
- // CHECK:STDOUT: %A.facet.8b5: %A.type.0a4 = facet_value %tuple.type.a46, (%A.impl_witness.a77) [concrete]
- // CHECK:STDOUT: %.1c9: type = fn_type_with_self_type %A.F.type.13d, %A.facet.8b5 [concrete]
- // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
- // CHECK:STDOUT: %pattern_type.8f9: type = pattern_type %Z [concrete]
- // CHECK:STDOUT: %tuple.fb6: %tuple.type.11f = tuple_value (%X, %tuple.821, %Z) [concrete]
- // CHECK:STDOUT: %tuple.type.415: type = tuple_type (%X, %tuple.type.a46, %Z) [concrete]
- // CHECK:STDOUT: %pattern_type.0b2: type = pattern_type %tuple.type.415 [concrete]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.56a: <specific function> = specific_function %tuple.type.as.A.impl.F.506, @tuple.type.as.A.impl.F(%Y1, %Y2, %X, %Z) [concrete]
- // CHECK:STDOUT: %Z.val: %Z = struct_value () [concrete]
- // CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
- // CHECK:STDOUT: %Destroy.Op.type: type = fn_type @Destroy.Op [concrete]
- // CHECK:STDOUT: %type_where: type = facet_type <type where .Self impls <CanDestroy>> [concrete]
- // CHECK:STDOUT: %DestroyT: %type_where = symbolic_binding DestroyT, 0 [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.0bf: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%DestroyT) [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.97a: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.0bf = struct_value () [symbolic]
- // CHECK:STDOUT: %facet_value.71a: %type_where = facet_value %tuple.type.415, () [concrete]
- // CHECK:STDOUT: %Destroy.impl_witness.1d2: <witness> = impl_witness imports.%Destroy.impl_witness_table, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.71a) [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.518: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.71a) [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.993: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.518 = struct_value () [concrete]
- // CHECK:STDOUT: %complete_type.aa8: <witness> = complete_type_witness %tuple.type.415 [concrete]
- // CHECK:STDOUT: %.5ca: require_specific_def_type = require_specific_def @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.71a) [concrete]
- // CHECK:STDOUT: %Destroy.facet.cb0: %Destroy.type = facet_value %tuple.type.415, (%Destroy.impl_witness.1d2) [concrete]
- // CHECK:STDOUT: %.97c: type = fn_type_with_self_type %Destroy.Op.type, %Destroy.facet.cb0 [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.0fc: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op.993, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value.71a) [concrete]
- // CHECK:STDOUT: %facet_value.4e3: %type_where = facet_value %Z, () [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.886: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.4e3) [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.afb: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.886 = struct_value () [concrete]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1eb: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op.afb, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value.4e3) [concrete]
- // CHECK:STDOUT: %T.2e9: %A.type.0a4 = symbolic_binding T, 0 [symbolic]
- // CHECK:STDOUT: %pattern_type.809: type = pattern_type %A.type.0a4 [concrete]
- // CHECK:STDOUT: %CallGeneric.type: type = fn_type @CallGeneric [concrete]
- // CHECK:STDOUT: %CallGeneric: %CallGeneric.type = struct_value () [concrete]
- // CHECK:STDOUT: %T.binding.as_type: type = symbolic_binding_type T, 0, %T.2e9 [symbolic]
- // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.2e9, @A, @A(%X) [symbolic]
- // CHECK:STDOUT: %.1b9: type = fn_type_with_self_type %A.F.type.13d, %T.2e9 [symbolic]
- // CHECK:STDOUT: %impl.elem0: %.1b9 = impl_witness_access %A.lookup_impl_witness, element0 [symbolic]
- // CHECK:STDOUT: %tuple.type.5a1: type = tuple_type (type, %A.type.0a4, type) [concrete]
- // CHECK:STDOUT: %tuple.e32: %tuple.type.5a1 = tuple_value (%X, %T.2e9, %Z) [symbolic]
- // CHECK:STDOUT: %tuple.type.fe4: type = tuple_type (%X, %T.binding.as_type, %Z) [symbolic]
- // CHECK:STDOUT: %pattern_type.ae9: type = pattern_type %tuple.type.fe4 [symbolic]
- // CHECK:STDOUT: %specific_impl_fn: <specific function> = specific_impl_function %impl.elem0, @A.F(%X, %T.2e9, %Z) [symbolic]
- // CHECK:STDOUT: %require_complete.aed: <witness> = require_complete_type %tuple.type.fe4 [symbolic]
- // CHECK:STDOUT: %facet_value.613: %type_where = facet_value %tuple.type.fe4, () [symbolic]
- // CHECK:STDOUT: %Destroy.impl_witness.17f: <witness> = impl_witness imports.%Destroy.impl_witness_table, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.613) [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.bb5: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.613) [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.1ab: %DestroyT.binding.as_type.as.Destroy.impl.Op.type.bb5 = struct_value () [symbolic]
- // CHECK:STDOUT: %.c60: require_specific_def_type = require_specific_def @DestroyT.binding.as_type.as.Destroy.impl(%facet_value.613) [symbolic]
- // CHECK:STDOUT: %Destroy.facet.9f4: %Destroy.type = facet_value %tuple.type.fe4, (%Destroy.impl_witness.17f) [symbolic]
- // CHECK:STDOUT: %.168: type = fn_type_with_self_type %Destroy.Op.type, %Destroy.facet.9f4 [symbolic]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.824: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op.1ab, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value.613) [symbolic]
- // CHECK:STDOUT: %CallIndirect.type: type = fn_type @CallIndirect [concrete]
- // CHECK:STDOUT: %CallIndirect: %CallIndirect.type = struct_value () [concrete]
- // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric, @CallGeneric(%A.facet.8b5) [concrete]
- // CHECK:STDOUT: %tuple.a92: %tuple.type.5a1 = tuple_value (%X, %A.facet.8b5, %Z) [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [concrete] {
- // CHECK:STDOUT: .Destroy = %Core.Destroy
- // CHECK:STDOUT: import Core//prelude
- // CHECK:STDOUT: import Core//prelude/...
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type]
- // CHECK:STDOUT: %Core.import_ref.de0: @DestroyT.binding.as_type.as.Destroy.impl.%DestroyT.binding.as_type.as.Destroy.impl.Op.type (%DestroyT.binding.as_type.as.Destroy.impl.Op.type.0bf) = import_ref Core//prelude/parts/destroy, loc{{\d+_\d+}}, loaded [symbolic = @DestroyT.binding.as_type.as.Destroy.impl.%DestroyT.binding.as_type.as.Destroy.impl.Op (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.97a)]
- // CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (%Core.import_ref.de0), @DestroyT.binding.as_type.as.Destroy.impl [concrete]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [concrete] {
- // CHECK:STDOUT: .Core = imports.%Core
- // CHECK:STDOUT: .A = %A.decl
- // CHECK:STDOUT: .X = %X.decl
- // CHECK:STDOUT: .Y1 = %Y1.decl
- // CHECK:STDOUT: .Y2 = %Y2.decl
- // CHECK:STDOUT: .Z = %Z.decl
- // CHECK:STDOUT: .Call = %Call.decl
- // CHECK:STDOUT: .CallGeneric = %CallGeneric.decl
- // CHECK:STDOUT: .CallIndirect = %CallIndirect.decl
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.import = import Core
- // CHECK:STDOUT: %A.decl: %A.type.495 = interface_decl @A [concrete = constants.%A.generic] {
- // CHECK:STDOUT: %T.patt: %pattern_type.98f = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %T.loc5_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %X.decl: type = class_decl @X [concrete = constants.%X] {} {}
- // CHECK:STDOUT: %Y1.decl: type = class_decl @Y1 [concrete = constants.%Y1] {} {}
- // CHECK:STDOUT: %Y2.decl: type = class_decl @Y2 [concrete = constants.%Y2] {} {}
- // CHECK:STDOUT: %Z.decl: type = class_decl @Z [concrete = constants.%Z] {} {}
- // CHECK:STDOUT: impl_decl @tuple.type.as.A.impl [concrete] {
- // CHECK:STDOUT: %V1.patt: %pattern_type.98f = symbolic_binding_pattern V1, 0 [concrete]
- // CHECK:STDOUT: %V2.patt: %pattern_type.98f = symbolic_binding_pattern V2, 1 [concrete]
- // CHECK:STDOUT: %W.patt: %pattern_type.98f = symbolic_binding_pattern W, 2 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %V1.ref: type = name_ref V1, %V1.loc14_14.2 [symbolic = %V1.loc14_14.1 (constants.%V1)]
- // CHECK:STDOUT: %V2.ref: type = name_ref V2, %V2.loc14_25.2 [symbolic = %V2.loc14_25.1 (constants.%V2)]
- // CHECK:STDOUT: %.loc14_53.1: %tuple.type.24b = tuple_literal (%V1.ref, %V2.ref) [symbolic = %tuple (constants.%tuple.4b9)]
- // CHECK:STDOUT: %.loc14_53.2: type = converted %.loc14_53.1, constants.%tuple.type.a5e [symbolic = %tuple.type (constants.%tuple.type.a5e)]
- // CHECK:STDOUT: %A.ref: %A.type.495 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
- // CHECK:STDOUT: %W.ref: type = name_ref W, %W.loc14_36.2 [symbolic = %W.loc14_36.1 (constants.%W)]
- // CHECK:STDOUT: %A.type.loc14_61.2: type = facet_type <@A, @A(constants.%W)> [symbolic = %A.type.loc14_61.1 (constants.%A.type.ae9)]
- // CHECK:STDOUT: %.Self.1: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %V1.loc14_14.2: type = symbolic_binding V1, 0 [symbolic = %V1.loc14_14.1 (constants.%V1)]
- // CHECK:STDOUT: %.Self.2: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %V2.loc14_25.2: type = symbolic_binding V2, 1 [symbolic = %V2.loc14_25.1 (constants.%V2)]
- // CHECK:STDOUT: %.Self.3: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %W.loc14_36.2: type = symbolic_binding W, 2 [symbolic = %W.loc14_36.1 (constants.%W)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %A.impl_witness_table = impl_witness_table (@tuple.type.as.A.impl.%tuple.type.as.A.impl.F.decl), @tuple.type.as.A.impl [concrete]
- // CHECK:STDOUT: %A.impl_witness: <witness> = impl_witness %A.impl_witness_table, @tuple.type.as.A.impl(constants.%V1, constants.%V2, constants.%W) [symbolic = @tuple.type.as.A.impl.%A.impl_witness (constants.%A.impl_witness.8c0)]
- // CHECK:STDOUT: %Call.decl: %Call.type = fn_decl @Call [concrete = constants.%Call] {} {}
- // CHECK:STDOUT: %CallGeneric.decl: %CallGeneric.type = fn_decl @CallGeneric [concrete = constants.%CallGeneric] {
- // CHECK:STDOUT: %T.patt: %pattern_type.809 = symbolic_binding_pattern T, 0 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %.loc27: type = splice_block %A.type [concrete = constants.%A.type.0a4] {
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %A.ref: %A.type.495 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
- // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.0a4]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %T.loc27_16.2: %A.type.0a4 = symbolic_binding T, 0 [symbolic = %T.loc27_16.1 (constants.%T.2e9)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %CallIndirect.decl: %CallIndirect.type = fn_decl @CallIndirect [concrete = constants.%CallIndirect] {} {}
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic interface @A(%T.loc5_13.2: type) {
- // CHECK:STDOUT: %T.loc5_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc5_13.1 (constants.%T.67d)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T.loc5_13.1)> [symbolic = %A.type (constants.%A.type.00e)]
- // CHECK:STDOUT: %Self.loc5_23.2: @A.%A.type (%A.type.00e) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.528)]
- // CHECK:STDOUT: %A.F.type: type = fn_type @A.F, @A(%T.loc5_13.1) [symbolic = %A.F.type (constants.%A.F.type.0a7)]
- // CHECK:STDOUT: %A.F: @A.%A.F.type (%A.F.type.0a7) = struct_value () [symbolic = %A.F (constants.%A.F.903)]
- // CHECK:STDOUT: %A.assoc_type: type = assoc_entity_type @A, @A(%T.loc5_13.1) [symbolic = %A.assoc_type (constants.%A.assoc_type.c94)]
- // CHECK:STDOUT: %assoc0.loc6_39.2: @A.%A.assoc_type (%A.assoc_type.c94) = assoc_entity element0, %A.F.decl [symbolic = %assoc0.loc6_39.2 (constants.%assoc0.967)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: interface {
- // CHECK:STDOUT: %Self.loc5_23.1: @A.%A.type (%A.type.00e) = symbolic_binding Self, 1 [symbolic = %Self.loc5_23.2 (constants.%Self.528)]
- // CHECK:STDOUT: %A.F.decl: @A.%A.F.type (%A.F.type.0a7) = fn_decl @A.F [symbolic = @A.%A.F (constants.%A.F.903)] {
- // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 2 [concrete]
- // CHECK:STDOUT: %u.patt: @A.F.%pattern_type.loc6_18 (%pattern_type.62e) = value_binding_pattern u [concrete]
- // CHECK:STDOUT: %u.param_patt: @A.F.%pattern_type.loc6_18 (%pattern_type.62e) = value_param_pattern %u.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: @A.F.%pattern_type.loc6_24 (%pattern_type.bc0) = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: @A.F.%pattern_type.loc6_24 (%pattern_type.bc0) = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %T.ref: type = name_ref T, @A.%T.loc5_13.2 [symbolic = %T (constants.%T.67d)]
- // CHECK:STDOUT: %.loc6_31: @A.F.%A.type (%A.type.00e) = specific_constant @A.%Self.loc5_23.1, @A(constants.%T.67d) [symbolic = %Self (constants.%Self.528)]
- // CHECK:STDOUT: %Self.ref: @A.F.%A.type (%A.type.00e) = name_ref Self, %.loc6_31 [symbolic = %Self (constants.%Self.528)]
- // CHECK:STDOUT: %U.ref.loc6_37: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %.loc6_38.1: @A.F.%tuple.type.loc6_38.1 (%tuple.type.5e0) = tuple_literal (%T.ref, %Self.ref, %U.ref.loc6_37) [symbolic = %tuple (constants.%tuple.794)]
- // CHECK:STDOUT: %Self.as_type: type = facet_access_type constants.%Self.528 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.233)]
- // CHECK:STDOUT: %.loc6_38.2: type = converted constants.%Self.528, %Self.as_type [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.233)]
- // CHECK:STDOUT: %.loc6_38.3: type = converted %.loc6_38.1, constants.%tuple.type.aa2 [symbolic = %tuple.type.loc6_38.2 (constants.%tuple.type.aa2)]
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %U.loc6_8.2: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %u.param: @A.F.%U.loc6_8.1 (%U.4e7) = value_param call_param0
- // CHECK:STDOUT: %U.ref.loc6_21: type = name_ref U, %U.loc6_8.2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %u: @A.F.%U.loc6_8.1 (%U.4e7) = value_binding u, %u.param
- // CHECK:STDOUT: %return.param: ref @A.F.%tuple.type.loc6_38.2 (%tuple.type.aa2) = out_param call_param1
- // CHECK:STDOUT: %return: ref @A.F.%tuple.type.loc6_38.2 (%tuple.type.aa2) = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %assoc0.loc6_39.1: @A.%A.assoc_type (%A.assoc_type.c94) = assoc_entity element0, %A.F.decl [symbolic = %assoc0.loc6_39.2 (constants.%assoc0.967)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = %Self.loc5_23.1
- // CHECK:STDOUT: .T = <poisoned>
- // CHECK:STDOUT: .F = %assoc0.loc6_39.1
- // CHECK:STDOUT: witness = (%A.F.decl)
- // CHECK:STDOUT:
- // CHECK:STDOUT: !requires:
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic impl @tuple.type.as.A.impl(%V1.loc14_14.2: type, %V2.loc14_25.2: type, %W.loc14_36.2: type) {
- // CHECK:STDOUT: %V1.loc14_14.1: type = symbolic_binding V1, 0 [symbolic = %V1.loc14_14.1 (constants.%V1)]
- // CHECK:STDOUT: %V2.loc14_25.1: type = symbolic_binding V2, 1 [symbolic = %V2.loc14_25.1 (constants.%V2)]
- // CHECK:STDOUT: %W.loc14_36.1: type = symbolic_binding W, 2 [symbolic = %W.loc14_36.1 (constants.%W)]
- // CHECK:STDOUT: %tuple: %tuple.type.24b = tuple_value (%V1.loc14_14.1, %V2.loc14_25.1) [symbolic = %tuple (constants.%tuple.4b9)]
- // CHECK:STDOUT: %tuple.type: type = tuple_type (%V1.loc14_14.1, %V2.loc14_25.1) [symbolic = %tuple.type (constants.%tuple.type.a5e)]
- // CHECK:STDOUT: %A.type.loc14_61.1: type = facet_type <@A, @A(%W.loc14_36.1)> [symbolic = %A.type.loc14_61.1 (constants.%A.type.ae9)]
- // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %A.type.loc14_61.1 [symbolic = %require_complete (constants.%require_complete.517)]
- // CHECK:STDOUT: %A.impl_witness: <witness> = impl_witness file.%A.impl_witness_table, @tuple.type.as.A.impl(%V1.loc14_14.1, %V2.loc14_25.1, %W.loc14_36.1) [symbolic = %A.impl_witness (constants.%A.impl_witness.8c0)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%V1.loc14_14.1, %V2.loc14_25.1, %W.loc14_36.1) [symbolic = %tuple.type.as.A.impl.F.type (constants.%tuple.type.as.A.impl.F.type.52a)]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F: @tuple.type.as.A.impl.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.52a) = struct_value () [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.b6b)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: impl: %.loc14_53.2 as %A.type.loc14_61.2 {
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.decl: @tuple.type.as.A.impl.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.52a) = fn_decl @tuple.type.as.A.impl.F [symbolic = @tuple.type.as.A.impl.%tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.b6b)] {
- // CHECK:STDOUT: %U.patt: %pattern_type.98f = symbolic_binding_pattern U, 3 [concrete]
- // CHECK:STDOUT: %u.patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_18 (%pattern_type.e4a) = value_binding_pattern u [concrete]
- // CHECK:STDOUT: %u.param_patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_18 (%pattern_type.e4a) = value_param_pattern %u.patt, call_param0 [concrete]
- // CHECK:STDOUT: %return.patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_24 (%pattern_type.5cc) = return_slot_pattern [concrete]
- // CHECK:STDOUT: %return.param_patt: @tuple.type.as.A.impl.F.%pattern_type.loc17_24 (%pattern_type.5cc) = out_param_pattern %return.patt, call_param1 [concrete]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %W.ref: type = name_ref W, @tuple.type.as.A.impl.%W.loc14_36.2 [symbolic = %W (constants.%W)]
- // CHECK:STDOUT: %V1.ref: type = name_ref V1, @tuple.type.as.A.impl.%V1.loc14_14.2 [symbolic = %V1 (constants.%V1)]
- // CHECK:STDOUT: %V2.ref: type = name_ref V2, @tuple.type.as.A.impl.%V2.loc14_25.2 [symbolic = %V2 (constants.%V2)]
- // CHECK:STDOUT: %.loc17_38: %tuple.type.24b = tuple_literal (%V1.ref, %V2.ref) [symbolic = %tuple.loc17_38 (constants.%tuple.4b9)]
- // CHECK:STDOUT: %U.ref.loc17_41: type = name_ref U, %U.loc17_8.2 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
- // CHECK:STDOUT: %.loc17_42.1: %tuple.type.11f = tuple_literal (%W.ref, %.loc17_38, %U.ref.loc17_41) [symbolic = %tuple.loc17_42 (constants.%tuple.117)]
- // CHECK:STDOUT: %.loc17_42.2: type = converted constants.%tuple.4b9, constants.%tuple.type.a5e [symbolic = %tuple.type.loc17_42.1 (constants.%tuple.type.a5e)]
- // CHECK:STDOUT: %.loc17_42.3: type = converted %.loc17_42.1, constants.%tuple.type.897 [symbolic = %tuple.type.loc17_42.2 (constants.%tuple.type.897)]
- // CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
- // CHECK:STDOUT: %U.loc17_8.2: type = symbolic_binding U, 3 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
- // CHECK:STDOUT: %u.param: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4) = value_param call_param0
- // CHECK:STDOUT: %U.ref.loc17_21: type = name_ref U, %U.loc17_8.2 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
- // CHECK:STDOUT: %u: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4) = value_binding u, %u.param
- // CHECK:STDOUT: %return.param: ref @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = out_param call_param1
- // CHECK:STDOUT: %return: ref @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .W = <poisoned>
- // CHECK:STDOUT: .V1 = <poisoned>
- // CHECK:STDOUT: .V2 = <poisoned>
- // CHECK:STDOUT: .F = %tuple.type.as.A.impl.F.decl
- // CHECK:STDOUT: witness = file.%A.impl_witness
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @X {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%X
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @Y1 {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%Y1
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @Y2 {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%Y2
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: class @Z {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%empty_struct_type [concrete = constants.%complete_type.357]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%Z
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @A.F(@A.%T.loc5_13.2: type, @A.%Self.loc5_23.1: @A.%A.type (%A.type.00e), %U.loc6_8.2: type) {
- // CHECK:STDOUT: %U.loc6_8.1: type = symbolic_binding U, 2 [symbolic = %U.loc6_8.1 (constants.%U.4e7)]
- // CHECK:STDOUT: %pattern_type.loc6_18: type = pattern_type %U.loc6_8.1 [symbolic = %pattern_type.loc6_18 (constants.%pattern_type.62e)]
- // CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T.67d)]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(%T)> [symbolic = %A.type (constants.%A.type.00e)]
- // CHECK:STDOUT: %Self: @A.F.%A.type (%A.type.00e) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.528)]
- // CHECK:STDOUT: %tuple.type.loc6_38.1: type = tuple_type (type, %A.type, type) [symbolic = %tuple.type.loc6_38.1 (constants.%tuple.type.5e0)]
- // CHECK:STDOUT: %tuple: @A.F.%tuple.type.loc6_38.1 (%tuple.type.5e0) = tuple_value (%T, %Self, %U.loc6_8.1) [symbolic = %tuple (constants.%tuple.794)]
- // CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type.233)]
- // CHECK:STDOUT: %tuple.type.loc6_38.2: type = tuple_type (%T, %Self.binding.as_type, %U.loc6_8.1) [symbolic = %tuple.type.loc6_38.2 (constants.%tuple.type.aa2)]
- // CHECK:STDOUT: %pattern_type.loc6_24: type = pattern_type %tuple.type.loc6_38.2 [symbolic = %pattern_type.loc6_24 (constants.%pattern_type.bc0)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn(%u.param: @A.F.%U.loc6_8.1 (%U.4e7)) -> @A.F.%tuple.type.loc6_38.2 (%tuple.type.aa2);
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @tuple.type.as.A.impl.F(@tuple.type.as.A.impl.%V1.loc14_14.2: type, @tuple.type.as.A.impl.%V2.loc14_25.2: type, @tuple.type.as.A.impl.%W.loc14_36.2: type, %U.loc17_8.2: type) {
- // CHECK:STDOUT: %U.loc17_8.1: type = symbolic_binding U, 3 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
- // CHECK:STDOUT: %pattern_type.loc17_18: type = pattern_type %U.loc17_8.1 [symbolic = %pattern_type.loc17_18 (constants.%pattern_type.e4a)]
- // CHECK:STDOUT: %W: type = symbolic_binding W, 2 [symbolic = %W (constants.%W)]
- // CHECK:STDOUT: %V1: type = symbolic_binding V1, 0 [symbolic = %V1 (constants.%V1)]
- // CHECK:STDOUT: %V2: type = symbolic_binding V2, 1 [symbolic = %V2 (constants.%V2)]
- // CHECK:STDOUT: %tuple.loc17_38: %tuple.type.24b = tuple_value (%V1, %V2) [symbolic = %tuple.loc17_38 (constants.%tuple.4b9)]
- // CHECK:STDOUT: %tuple.loc17_42: %tuple.type.11f = tuple_value (%W, %tuple.loc17_38, %U.loc17_8.1) [symbolic = %tuple.loc17_42 (constants.%tuple.117)]
- // CHECK:STDOUT: %tuple.type.loc17_42.1: type = tuple_type (%V1, %V2) [symbolic = %tuple.type.loc17_42.1 (constants.%tuple.type.a5e)]
- // CHECK:STDOUT: %tuple.type.loc17_42.2: type = tuple_type (%W, %tuple.type.loc17_42.1, %U.loc17_8.1) [symbolic = %tuple.type.loc17_42.2 (constants.%tuple.type.897)]
- // CHECK:STDOUT: %pattern_type.loc17_24: type = pattern_type %tuple.type.loc17_42.2 [symbolic = %pattern_type.loc17_24 (constants.%pattern_type.5cc)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %require_complete.loc17_42: <witness> = require_complete_type %tuple.type.loc17_42.2 [symbolic = %require_complete.loc17_42 (constants.%require_complete.da0)]
- // CHECK:STDOUT: %require_complete.loc17_19: <witness> = require_complete_type %U.loc17_8.1 [symbolic = %require_complete.loc17_19 (constants.%require_complete.5a4)]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type: type = fn_type @tuple.type.as.A.impl.F, @tuple.type.as.A.impl(%V1, %V2, %W) [symbolic = %tuple.type.as.A.impl.F.type (constants.%tuple.type.as.A.impl.F.type.52a)]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F: @tuple.type.as.A.impl.F.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.52a) = struct_value () [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.b6b)]
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.2: <specific function> = specific_function %tuple.type.as.A.impl.F, @tuple.type.as.A.impl.F(%V1, %V2, %W, %U.loc17_8.1) [symbolic = %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 (constants.%tuple.type.as.A.impl.F.specific_fn.ebc)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn(%u.param: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4)) -> %return.param: @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %.loc18: @tuple.type.as.A.impl.F.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.52a) = specific_constant @tuple.type.as.A.impl.%tuple.type.as.A.impl.F.decl, @tuple.type.as.A.impl(constants.%V1, constants.%V2, constants.%W) [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.b6b)]
- // CHECK:STDOUT: %F.ref: @tuple.type.as.A.impl.F.%tuple.type.as.A.impl.F.type (%tuple.type.as.A.impl.F.type.52a) = name_ref F, %.loc18 [symbolic = %tuple.type.as.A.impl.F (constants.%tuple.type.as.A.impl.F.b6b)]
- // CHECK:STDOUT: %U.ref.loc18: type = name_ref U, %U.loc17_8.2 [symbolic = %U.loc17_8.1 (constants.%U.ce4)]
- // CHECK:STDOUT: %u.ref: @tuple.type.as.A.impl.F.%U.loc17_8.1 (%U.ce4) = name_ref u, %u
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.1: <specific function> = specific_function %F.ref, @tuple.type.as.A.impl.F(constants.%V1, constants.%V2, constants.%W, constants.%U.ce4) [symbolic = %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 (constants.%tuple.type.as.A.impl.F.specific_fn.ebc)]
- // CHECK:STDOUT: %.loc17_24: ref @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = splice_block %return {}
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.call: init @tuple.type.as.A.impl.F.%tuple.type.loc17_42.2 (%tuple.type.897) = call %tuple.type.as.A.impl.F.specific_fn.loc18_12.1(%u.ref) to %.loc17_24
- // CHECK:STDOUT: return %tuple.type.as.A.impl.F.call to %return
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @Call() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %Y1.ref: type = name_ref Y1, file.%Y1.decl [concrete = constants.%Y1]
- // CHECK:STDOUT: %Y2.ref: type = name_ref Y2, file.%Y2.decl [concrete = constants.%Y2]
- // CHECK:STDOUT: %.loc24_12: %tuple.type.24b = tuple_literal (%Y1.ref, %Y2.ref) [concrete = constants.%tuple.821]
- // CHECK:STDOUT: %.loc24_14: type = converted %.loc24_12, constants.%tuple.type.a46 [concrete = constants.%tuple.type.a46]
- // CHECK:STDOUT: %A.ref: %A.type.495 = name_ref A, file.%A.decl [concrete = constants.%A.generic]
- // CHECK:STDOUT: %X.ref: type = name_ref X, file.%X.decl [concrete = constants.%X]
- // CHECK:STDOUT: %A.type: type = facet_type <@A, @A(constants.%X)> [concrete = constants.%A.type.0a4]
- // CHECK:STDOUT: %A.facet: %A.type.0a4 = facet_value %.loc24_14, (constants.%A.impl_witness.a77) [concrete = constants.%A.facet.8b5]
- // CHECK:STDOUT: %.loc24_23: %A.type.0a4 = converted %.loc24_14, %A.facet [concrete = constants.%A.facet.8b5]
- // CHECK:STDOUT: %.loc24_31.1: %A.assoc_type.296 = specific_constant @A.%assoc0.loc6_39.1, @A(constants.%X) [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %F.ref: %A.assoc_type.296 = name_ref F, %.loc24_31.1 [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %as_type: type = facet_access_type %.loc24_23 [concrete = constants.%tuple.type.a46]
- // CHECK:STDOUT: %.loc24_31.2: type = converted %.loc24_23, %as_type [concrete = constants.%tuple.type.a46]
- // CHECK:STDOUT: %impl.elem0: %.1c9 = impl_witness_access constants.%A.impl_witness.a77, element0 [concrete = constants.%tuple.type.as.A.impl.F.506]
- // CHECK:STDOUT: %Z.ref: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
- // CHECK:STDOUT: %.loc24_38.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
- // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0, @tuple.type.as.A.impl.F(constants.%Y1, constants.%Y2, constants.%X, constants.%Z) [concrete = constants.%tuple.type.as.A.impl.F.specific_fn.56a]
- // CHECK:STDOUT: %.loc24_39.1: ref %tuple.type.415 = temporary_storage
- // CHECK:STDOUT: %.loc24_38.2: ref %Z = temporary_storage
- // CHECK:STDOUT: %.loc24_38.3: init %Z = class_init (), %.loc24_38.2 [concrete = constants.%Z.val]
- // CHECK:STDOUT: %.loc24_38.4: ref %Z = temporary %.loc24_38.2, %.loc24_38.3
- // CHECK:STDOUT: %.loc24_38.5: ref %Z = converted %.loc24_38.1, %.loc24_38.4
- // CHECK:STDOUT: %.loc24_38.6: %Z = acquire_value %.loc24_38.5
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.call: init %tuple.type.415 = call %specific_fn(%.loc24_38.6) to %.loc24_39.1
- // CHECK:STDOUT: %.loc24_39.2: ref %tuple.type.415 = temporary %.loc24_39.1, %tuple.type.as.A.impl.F.call
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.bound.loc24_39: <bound method> = bound_method %.loc24_39.2, constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.993
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1: <specific function> = specific_function constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.993, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.71a) [concrete = constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.0fc]
- // CHECK:STDOUT: %bound_method.loc24_39: <bound method> = bound_method %.loc24_39.2, %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc24_39: init %empty_tuple.type = call %bound_method.loc24_39(%.loc24_39.2)
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.bound.loc24_38: <bound method> = bound_method %.loc24_38.4, constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.2: <specific function> = specific_function constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.4e3) [concrete = constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1eb]
- // CHECK:STDOUT: %bound_method.loc24_38: <bound method> = bound_method %.loc24_38.4, %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.2
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc24_38: init %empty_tuple.type = call %bound_method.loc24_38(%.loc24_38.4)
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic fn @CallGeneric(%T.loc27_16.2: %A.type.0a4) {
- // CHECK:STDOUT: %T.loc27_16.1: %A.type.0a4 = symbolic_binding T, 0 [symbolic = %T.loc27_16.1 (constants.%T.2e9)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T.binding.as_type: type = symbolic_binding_type T, 0, %T.loc27_16.1 [symbolic = %T.binding.as_type (constants.%T.binding.as_type)]
- // CHECK:STDOUT: %A.lookup_impl_witness: <witness> = lookup_impl_witness %T.loc27_16.1, @A, @A(constants.%X) [symbolic = %A.lookup_impl_witness (constants.%A.lookup_impl_witness)]
- // CHECK:STDOUT: %.loc28_4.3: type = fn_type_with_self_type constants.%A.F.type.13d, %T.loc27_16.1 [symbolic = %.loc28_4.3 (constants.%.1b9)]
- // CHECK:STDOUT: %impl.elem0.loc28_4.2: @CallGeneric.%.loc28_4.3 (%.1b9) = impl_witness_access %A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0)]
- // CHECK:STDOUT: %specific_impl_fn.loc28_4.2: <specific function> = specific_impl_function %impl.elem0.loc28_4.2, @A.F(constants.%X, %T.loc27_16.1, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn)]
- // CHECK:STDOUT: %tuple.type: type = tuple_type (constants.%X, %T.binding.as_type, constants.%Z) [symbolic = %tuple.type (constants.%tuple.type.fe4)]
- // CHECK:STDOUT: %require_complete: <witness> = require_complete_type %tuple.type [symbolic = %require_complete (constants.%require_complete.aed)]
- // CHECK:STDOUT: %facet_value: %type_where = facet_value %tuple.type, () [symbolic = %facet_value (constants.%facet_value.613)]
- // CHECK:STDOUT: %.loc28_12.3: require_specific_def_type = require_specific_def @DestroyT.binding.as_type.as.Destroy.impl(%facet_value) [symbolic = %.loc28_12.3 (constants.%.c60)]
- // CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness imports.%Destroy.impl_witness_table, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value) [symbolic = %Destroy.impl_witness (constants.%Destroy.impl_witness.17f)]
- // CHECK:STDOUT: %Destroy.facet: %Destroy.type = facet_value %tuple.type, (%Destroy.impl_witness) [symbolic = %Destroy.facet (constants.%Destroy.facet.9f4)]
- // CHECK:STDOUT: %.loc28_12.4: type = fn_type_with_self_type constants.%Destroy.Op.type, %Destroy.facet [symbolic = %.loc28_12.4 (constants.%.168)]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type: type = fn_type @DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl(%facet_value) [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op.type (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.type.bb5)]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op: @CallGeneric.%DestroyT.binding.as_type.as.Destroy.impl.Op.type (%DestroyT.binding.as_type.as.Destroy.impl.Op.type.bb5) = struct_value () [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.1ab)]
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28: <specific function> = specific_function %DestroyT.binding.as_type.as.Destroy.impl.Op, @DestroyT.binding.as_type.as.Destroy.impl.Op(%facet_value) [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28 (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.824)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %T.ref: %A.type.0a4 = name_ref T, %T.loc27_16.2 [symbolic = %T.loc27_16.1 (constants.%T.2e9)]
- // CHECK:STDOUT: %.loc28_4.1: %A.assoc_type.296 = specific_constant @A.%assoc0.loc6_39.1, @A(constants.%X) [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %F.ref: %A.assoc_type.296 = name_ref F, %.loc28_4.1 [concrete = constants.%assoc0.cef]
- // CHECK:STDOUT: %T.as_type: type = facet_access_type %T.ref [symbolic = %T.binding.as_type (constants.%T.binding.as_type)]
- // CHECK:STDOUT: %.loc28_4.2: type = converted %T.ref, %T.as_type [symbolic = %T.binding.as_type (constants.%T.binding.as_type)]
- // CHECK:STDOUT: %impl.elem0.loc28_4.1: @CallGeneric.%.loc28_4.3 (%.1b9) = impl_witness_access constants.%A.lookup_impl_witness, element0 [symbolic = %impl.elem0.loc28_4.2 (constants.%impl.elem0)]
- // CHECK:STDOUT: %Z.ref: type = name_ref Z, file.%Z.decl [concrete = constants.%Z]
- // CHECK:STDOUT: %.loc28_11.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
- // CHECK:STDOUT: %specific_impl_fn.loc28_4.1: <specific function> = specific_impl_function %impl.elem0.loc28_4.1, @A.F(constants.%X, constants.%T.2e9, constants.%Z) [symbolic = %specific_impl_fn.loc28_4.2 (constants.%specific_impl_fn)]
- // CHECK:STDOUT: %.loc28_12.1: ref @CallGeneric.%tuple.type (%tuple.type.fe4) = temporary_storage
- // CHECK:STDOUT: %.loc28_11.2: ref %Z = temporary_storage
- // CHECK:STDOUT: %.loc28_11.3: init %Z = class_init (), %.loc28_11.2 [concrete = constants.%Z.val]
- // CHECK:STDOUT: %.loc28_11.4: ref %Z = temporary %.loc28_11.2, %.loc28_11.3
- // CHECK:STDOUT: %.loc28_11.5: ref %Z = converted %.loc28_11.1, %.loc28_11.4
- // CHECK:STDOUT: %.loc28_11.6: %Z = acquire_value %.loc28_11.5
- // CHECK:STDOUT: %A.F.call: init @CallGeneric.%tuple.type (%tuple.type.fe4) = call %specific_impl_fn.loc28_4.1(%.loc28_11.6) to %.loc28_12.1
- // CHECK:STDOUT: %.loc28_12.2: ref @CallGeneric.%tuple.type (%tuple.type.fe4) = temporary %.loc28_12.1, %A.F.call
- // CHECK:STDOUT: %impl.elem0.loc28_12: @CallGeneric.%.loc28_12.4 (%.168) = impl_witness_access constants.%Destroy.impl_witness.17f, element0 [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.1ab)]
- // CHECK:STDOUT: %bound_method.loc28_12.1: <bound method> = bound_method %.loc28_12.2, %impl.elem0.loc28_12
- // CHECK:STDOUT: %specific_fn: <specific function> = specific_function %impl.elem0.loc28_12, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.613) [symbolic = %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28 (constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.824)]
- // CHECK:STDOUT: %bound_method.loc28_12.2: <bound method> = bound_method %.loc28_12.2, %specific_fn
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc28_12: init %empty_tuple.type = call %bound_method.loc28_12.2(%.loc28_12.2)
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.bound: <bound method> = bound_method %.loc28_11.4, constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1: <specific function> = specific_function constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.afb, @DestroyT.binding.as_type.as.Destroy.impl.Op(constants.%facet_value.4e3) [concrete = constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1eb]
- // CHECK:STDOUT: %bound_method.loc28_11: <bound method> = bound_method %.loc28_11.4, %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.1
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.call.loc28_11: init %empty_tuple.type = call %bound_method.loc28_11(%.loc28_11.4)
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @CallIndirect() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %CallGeneric.ref: %CallGeneric.type = name_ref CallGeneric, file.%CallGeneric.decl [concrete = constants.%CallGeneric]
- // CHECK:STDOUT: %Y1.ref: type = name_ref Y1, file.%Y1.decl [concrete = constants.%Y1]
- // CHECK:STDOUT: %Y2.ref: type = name_ref Y2, file.%Y2.decl [concrete = constants.%Y2]
- // CHECK:STDOUT: %.loc33_22: %tuple.type.24b = tuple_literal (%Y1.ref, %Y2.ref) [concrete = constants.%tuple.821]
- // CHECK:STDOUT: %.loc33_24: type = converted %.loc33_22, constants.%tuple.type.a46 [concrete = constants.%tuple.type.a46]
- // CHECK:STDOUT: %A.facet: %A.type.0a4 = facet_value %.loc33_24, (constants.%A.impl_witness.a77) [concrete = constants.%A.facet.8b5]
- // CHECK:STDOUT: %.loc33_31: %A.type.0a4 = converted %.loc33_24, %A.facet [concrete = constants.%A.facet.8b5]
- // CHECK:STDOUT: %CallGeneric.specific_fn: <specific function> = specific_function %CallGeneric.ref, @CallGeneric(constants.%A.facet.8b5) [concrete = constants.%CallGeneric.specific_fn]
- // CHECK:STDOUT: %CallGeneric.call: init %empty_tuple.type = call %CallGeneric.specific_fn()
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A(constants.%T.67d) {
- // CHECK:STDOUT: %T.loc5_13.1 => constants.%T.67d
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%T.67d, constants.%Self.528, constants.%U.4e7) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.4e7
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.62e
- // CHECK:STDOUT: %T => constants.%T.67d
- // CHECK:STDOUT: %A.type => constants.%A.type.00e
- // CHECK:STDOUT: %Self => constants.%Self.528
- // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.5e0
- // CHECK:STDOUT: %tuple => constants.%tuple.794
- // CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type.233
- // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.aa2
- // CHECK:STDOUT: %pattern_type.loc6_24 => constants.%pattern_type.bc0
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A(constants.%W) {
- // CHECK:STDOUT: %T.loc5_13.1 => constants.%W
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %A.type => constants.%A.type.ae9
- // CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.bf9
- // CHECK:STDOUT: %A.F.type => constants.%A.F.type.1a0
- // CHECK:STDOUT: %A.F => constants.%A.F.b94
- // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.bdc
- // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.200
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @tuple.type.as.A.impl(constants.%V1, constants.%V2, constants.%W) {
- // CHECK:STDOUT: %V1.loc14_14.1 => constants.%V1
- // CHECK:STDOUT: %V2.loc14_25.1 => constants.%V2
- // CHECK:STDOUT: %W.loc14_36.1 => constants.%W
- // CHECK:STDOUT: %tuple => constants.%tuple.4b9
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.a5e
- // CHECK:STDOUT: %A.type.loc14_61.1 => constants.%A.type.ae9
- // CHECK:STDOUT: %require_complete => constants.%require_complete.517
- // CHECK:STDOUT: %A.impl_witness => constants.%A.impl_witness.8c0
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.52a
- // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.b6b
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @tuple.type.as.A.impl.F(constants.%V1, constants.%V2, constants.%W, constants.%U.ce4) {
- // CHECK:STDOUT: %U.loc17_8.1 => constants.%U.ce4
- // CHECK:STDOUT: %pattern_type.loc17_18 => constants.%pattern_type.e4a
- // CHECK:STDOUT: %W => constants.%W
- // CHECK:STDOUT: %V1 => constants.%V1
- // CHECK:STDOUT: %V2 => constants.%V2
- // CHECK:STDOUT: %tuple.loc17_38 => constants.%tuple.4b9
- // CHECK:STDOUT: %tuple.loc17_42 => constants.%tuple.117
- // CHECK:STDOUT: %tuple.type.loc17_42.1 => constants.%tuple.type.a5e
- // CHECK:STDOUT: %tuple.type.loc17_42.2 => constants.%tuple.type.897
- // CHECK:STDOUT: %pattern_type.loc17_24 => constants.%pattern_type.5cc
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %require_complete.loc17_42 => constants.%require_complete.da0
- // CHECK:STDOUT: %require_complete.loc17_19 => constants.%require_complete.5a4
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.52a
- // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.b6b
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 => constants.%tuple.type.as.A.impl.F.specific_fn.ebc
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%W, constants.%A.facet.219, constants.%U.ce4) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%U.ce4
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.e4a
- // CHECK:STDOUT: %T => constants.%W
- // CHECK:STDOUT: %A.type => constants.%A.type.ae9
- // CHECK:STDOUT: %Self => constants.%A.facet.219
- // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.001
- // CHECK:STDOUT: %tuple => constants.%tuple.4e5
- // CHECK:STDOUT: %Self.binding.as_type => constants.%tuple.type.a5e
- // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.897
- // CHECK:STDOUT: %pattern_type.loc6_24 => constants.%pattern_type.5cc
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A(constants.%X) {
- // CHECK:STDOUT: %T.loc5_13.1 => constants.%X
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.4d7
- // CHECK:STDOUT: %A.F.type => constants.%A.F.type.13d
- // CHECK:STDOUT: %A.F => constants.%A.F.d83
- // CHECK:STDOUT: %A.assoc_type => constants.%A.assoc_type.296
- // CHECK:STDOUT: %assoc0.loc6_39.2 => constants.%assoc0.cef
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @tuple.type.as.A.impl(constants.%Y1, constants.%Y2, constants.%X) {
- // CHECK:STDOUT: %V1.loc14_14.1 => constants.%Y1
- // CHECK:STDOUT: %V2.loc14_25.1 => constants.%Y2
- // CHECK:STDOUT: %W.loc14_36.1 => constants.%X
- // CHECK:STDOUT: %tuple => constants.%tuple.821
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.a46
- // CHECK:STDOUT: %A.type.loc14_61.1 => constants.%A.type.0a4
- // CHECK:STDOUT: %require_complete => constants.%complete_type.e2d
- // CHECK:STDOUT: %A.impl_witness => constants.%A.impl_witness.a77
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.172
- // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.506
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @tuple.type.as.A.impl.F(constants.%Y1, constants.%Y2, constants.%X, constants.%Z) {
- // CHECK:STDOUT: %U.loc17_8.1 => constants.%Z
- // CHECK:STDOUT: %pattern_type.loc17_18 => constants.%pattern_type.8f9
- // CHECK:STDOUT: %W => constants.%X
- // CHECK:STDOUT: %V1 => constants.%Y1
- // CHECK:STDOUT: %V2 => constants.%Y2
- // CHECK:STDOUT: %tuple.loc17_38 => constants.%tuple.821
- // CHECK:STDOUT: %tuple.loc17_42 => constants.%tuple.fb6
- // CHECK:STDOUT: %tuple.type.loc17_42.1 => constants.%tuple.type.a46
- // CHECK:STDOUT: %tuple.type.loc17_42.2 => constants.%tuple.type.415
- // CHECK:STDOUT: %pattern_type.loc17_24 => constants.%pattern_type.0b2
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %require_complete.loc17_42 => constants.%complete_type.aa8
- // CHECK:STDOUT: %require_complete.loc17_19 => constants.%complete_type.357
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.type => constants.%tuple.type.as.A.impl.F.type.172
- // CHECK:STDOUT: %tuple.type.as.A.impl.F => constants.%tuple.type.as.A.impl.F.506
- // CHECK:STDOUT: %tuple.type.as.A.impl.F.specific_fn.loc18_12.2 => constants.%tuple.type.as.A.impl.F.specific_fn.56a
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @CallGeneric(constants.%T.2e9) {
- // CHECK:STDOUT: %T.loc27_16.1 => constants.%T.2e9
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%X, constants.%T.2e9, constants.%Z) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.8f9
- // CHECK:STDOUT: %T => constants.%X
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self => constants.%T.2e9
- // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.5a1
- // CHECK:STDOUT: %tuple => constants.%tuple.e32
- // CHECK:STDOUT: %Self.binding.as_type => constants.%T.binding.as_type
- // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.fe4
- // CHECK:STDOUT: %pattern_type.loc6_24 => constants.%pattern_type.ae9
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @CallGeneric(constants.%A.facet.8b5) {
- // CHECK:STDOUT: %T.loc27_16.1 => constants.%A.facet.8b5
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: %T.binding.as_type => constants.%tuple.type.a46
- // CHECK:STDOUT: %A.lookup_impl_witness => constants.%A.impl_witness.a77
- // CHECK:STDOUT: %.loc28_4.3 => constants.%.1c9
- // CHECK:STDOUT: %impl.elem0.loc28_4.2 => constants.%tuple.type.as.A.impl.F.506
- // CHECK:STDOUT: %specific_impl_fn.loc28_4.2 => constants.%tuple.type.as.A.impl.F.specific_fn.56a
- // CHECK:STDOUT: %tuple.type => constants.%tuple.type.415
- // CHECK:STDOUT: %require_complete => constants.%complete_type.aa8
- // CHECK:STDOUT: %facet_value => constants.%facet_value.71a
- // CHECK:STDOUT: %.loc28_12.3 => constants.%.5ca
- // CHECK:STDOUT: %Destroy.impl_witness => constants.%Destroy.impl_witness.1d2
- // CHECK:STDOUT: %Destroy.facet => constants.%Destroy.facet.cb0
- // CHECK:STDOUT: %.loc28_12.4 => constants.%.97c
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.type => constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.type.518
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op => constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.993
- // CHECK:STDOUT: %DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.loc28 => constants.%DestroyT.binding.as_type.as.Destroy.impl.Op.specific_fn.0fc
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @A.F(constants.%X, constants.%A.facet.8b5, constants.%Z) {
- // CHECK:STDOUT: %U.loc6_8.1 => constants.%Z
- // CHECK:STDOUT: %pattern_type.loc6_18 => constants.%pattern_type.8f9
- // CHECK:STDOUT: %T => constants.%X
- // CHECK:STDOUT: %A.type => constants.%A.type.0a4
- // CHECK:STDOUT: %Self => constants.%A.facet.8b5
- // CHECK:STDOUT: %tuple.type.loc6_38.1 => constants.%tuple.type.5a1
- // CHECK:STDOUT: %tuple => constants.%tuple.a92
- // CHECK:STDOUT: %Self.binding.as_type => constants.%tuple.type.a46
- // CHECK:STDOUT: %tuple.type.loc6_38.2 => constants.%tuple.type.415
- // CHECK:STDOUT: %pattern_type.loc6_24 => constants.%pattern_type.0b2
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
|