From 427c448dcd9a85b86172c7259ca9169ff3bd7654 Mon Sep 17 00:00:00 2001 From: Lucile Rose Nihlen Date: Sat, 24 Oct 2026 01:34:40 +0000 Subject: [PATCH] Simplify the generic function default values test. (#8027) As demonstrated in #8020, removes an extraneous dependency on `Core.Copy` in favour of a locally declared interface. --- .../function/generic/default_values.carbon | 683 +++++++----------- 1 file changed, 264 insertions(+), 419 deletions(-) diff --git a/toolchain/check/testdata/function/generic/default_values.carbon b/toolchain/check/testdata/function/generic/default_values.carbon index c5ae42ed7027..c46c2e1e0cd3 100644 --- a/toolchain/check/testdata/function/generic/default_values.carbon +++ b/toolchain/check/testdata/function/generic/default_values.carbon @@ -13,31 +13,20 @@ // --- generic_fn_specific_param.carbon library "[[@TEST_NAME]]"; -class D {} -impl D as Core.Copy { - fn Op(unused self: D) -> D { return {} as D; } -} +interface Z {} -class E {} -impl E as Core.Copy { - fn Op(unused self: E) -> E { return {} as E; } -} +class D { adapt {}; } -class C(T: Core.Copy & Core.Destroy) { - var t: T; +class E { adapt {}; } +impl E as Z {} + +class C(T: Z) { var d: D; - impl as Core.Copy { - fn Op(self: Self) -> Self { - let c: Self = {.t = self.t, .d = self.d}; - return c; - } - } } //@dump-sem-ir-begin -fn Make(generic T: Core.Copy & Core.Destroy, t: T, d: D = {} as D) -> C(T) { - let c: C(T) = {.t = t, .d = d}; - return c; +fn Make(generic T: Z, unused t: T, d: D = {} as D) -> C(T) { + return {.d = d} as C(T); } fn G() { @@ -50,495 +39,351 @@ fn G() { // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: type: type = facet_type [concrete] +// CHECK:STDOUT: %Z.type: type = facet_type <@Z> [concrete] // CHECK:STDOUT: %D: type = class_type @D [concrete] // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete] -// CHECK:STDOUT: %complete_type.357: = complete_type_witness %empty_struct_type [concrete] -// CHECK:STDOUT: %Copy.type: type = facet_type <@Copy> [concrete] -// CHECK:STDOUT: %Copy.impl_witness.548: = impl_witness @D.as.Copy.impl.%Copy.impl_witness_table [concrete] -// CHECK:STDOUT: %pattern_type.d8d: type = pattern_type %D [concrete] -// CHECK:STDOUT: %D.as.Copy.impl.Op.type: type = fn_type @D.as.Copy.impl.Op [concrete] -// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete] -// CHECK:STDOUT: %D.as.Copy.impl.Op: %D.as.Copy.impl.Op.type = struct_value () [concrete] -// CHECK:STDOUT: %Copy.facet.48d: %Copy.type = facet_value %D, (%Copy.impl_witness.548) [concrete] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.5bb: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.48d) [concrete] // CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete] -// CHECK:STDOUT: %D.val: %D = struct_value () [concrete] +// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete] +// CHECK:STDOUT: %complete_type.357: = complete_type_witness %empty_struct_type [concrete] // CHECK:STDOUT: %E: type = class_type @E [concrete] -// CHECK:STDOUT: %Copy.impl_witness.e92: = impl_witness @E.as.Copy.impl.%Copy.impl_witness_table [concrete] -// CHECK:STDOUT: %pattern_type.849: type = pattern_type %E [concrete] -// CHECK:STDOUT: %E.as.Copy.impl.Op.type: type = fn_type @E.as.Copy.impl.Op [concrete] -// CHECK:STDOUT: %E.as.Copy.impl.Op: %E.as.Copy.impl.Op.type = struct_value () [concrete] -// CHECK:STDOUT: %Copy.facet.b77: %Copy.type = facet_value %E, (%Copy.impl_witness.e92) [concrete] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.0e9: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.b77) [concrete] -// CHECK:STDOUT: %E.val: %E = struct_value () [concrete] +// CHECK:STDOUT: %Z.impl_witness: = impl_witness @E.as.Z.impl.%Z.impl_witness_table [concrete] +// CHECK:STDOUT: %Z.facet: %Z.type = facet_value %E, (%Z.impl_witness) [concrete] // CHECK:STDOUT: %.Self.frozen: type = symbolic_binding .Self [symbolic_self] -// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete] -// CHECK:STDOUT: %BitAndWith.type.a06: type = generic_interface_type @BitAndWith [concrete] -// CHECK:STDOUT: %BitAndWith.generic: %BitAndWith.type.a06 = struct_value () [concrete] -// CHECK:STDOUT: %BitAndWith.type.7f7: type = facet_type <@BitAndWith, @BitAndWith(type)> [concrete] -// CHECK:STDOUT: %BitAndWith.impl_witness: = impl_witness imports.%BitAndWith.impl_witness_table [concrete] -// CHECK:STDOUT: %BitAndWith.facet: %BitAndWith.type.7f7 = facet_value type, (%BitAndWith.impl_witness) [concrete] -// CHECK:STDOUT: %BitAndWith.WithSelf.Op.type.1a6: type = fn_type @BitAndWith.WithSelf.Op, @BitAndWith.WithSelf(type, %BitAndWith.facet) [concrete] -// CHECK:STDOUT: %.b4e: type = fn_type_with_self_type %BitAndWith.WithSelf.Op.type.1a6, %BitAndWith.facet [concrete] -// CHECK:STDOUT: %type.as.BitAndWith.impl.Op.type: type = fn_type @type.as.BitAndWith.impl.Op [concrete] -// CHECK:STDOUT: %type.as.BitAndWith.impl.Op: %type.as.BitAndWith.impl.Op.type = struct_value () [concrete] -// CHECK:STDOUT: %type.as.BitAndWith.impl.Op.bound: = bound_method %Copy.type, %type.as.BitAndWith.impl.Op [concrete] -// CHECK:STDOUT: %facet_type: type = facet_type <@Copy & @Destroy> [concrete] -// CHECK:STDOUT: %pattern_type.143: type = pattern_type %facet_type [concrete] -// CHECK:STDOUT: %T.patt.256: %pattern_type.143 = symbolic_binding_pattern T, 0 [symbolic] -// CHECK:STDOUT: %T.dc4: %facet_type = symbolic_binding T, 0 [symbolic] +// CHECK:STDOUT: %pattern_type.5d7: type = pattern_type %Z.type [concrete] +// CHECK:STDOUT: %T.patt: %pattern_type.5d7 = symbolic_binding_pattern T, 0 [symbolic] +// CHECK:STDOUT: %T: %Z.type = symbolic_binding T, 0 [symbolic] // CHECK:STDOUT: %C.type: type = parameterized_class_name_type @C [concrete] // CHECK:STDOUT: %C.generic: %C.type = struct_value () [concrete] -// CHECK:STDOUT: %C.210: type = class_type @C, @C(%T.dc4) [symbolic] -// CHECK:STDOUT: %T.as_type.5d6: type = facet_access_type %T.dc4 [symbolic] -// CHECK:STDOUT: %require_complete.091: = require_complete_type %T.as_type.5d6 [symbolic] -// CHECK:STDOUT: %pattern_type.0e9: type = pattern_type %T.as_type.5d6 [symbolic] -// CHECK:STDOUT: %pattern_type.0b5: type = pattern_type %C.210 [symbolic] -// CHECK:STDOUT: %.501: Core.Form = init_form %C.210 [symbolic] -// CHECK:STDOUT: %return.param_patt.2c6: %pattern_type.0b5 = out_param_pattern [symbolic] -// CHECK:STDOUT: %return.patt.a82: %pattern_type.0b5 = return_slot_pattern %return.param_patt.2c6, %C.210 [symbolic] -// CHECK:STDOUT: %struct_type.t.d.125: type = struct_type {.t: %T.as_type.5d6, .d: %D} [symbolic] -// CHECK:STDOUT: %require_complete.bab: = require_complete_type %C.210 [symbolic] -// CHECK:STDOUT: %c.patt.6d2: %pattern_type.0b5 = value_binding_pattern c [symbolic] -// CHECK:STDOUT: %Copy.lookup_impl_witness.fd8: = lookup_impl_witness %T.dc4, @Copy [symbolic] -// CHECK:STDOUT: %Copy.facet.40c: %Copy.type = facet_value %T.as_type.5d6, (%Copy.lookup_impl_witness.fd8) [symbolic] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.f43: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.40c) [symbolic] -// CHECK:STDOUT: %.81a: type = fn_type_with_self_type %Copy.WithSelf.Op.type.f43, %Copy.facet.40c [symbolic] -// CHECK:STDOUT: %impl.elem0.35e: %.81a = impl_witness_access %Copy.lookup_impl_witness.fd8, element0 [symbolic] -// CHECK:STDOUT: %specific_impl_fn.f62: = specific_impl_function %impl.elem0.35e, @Copy.WithSelf.Op(%Copy.facet.40c) [symbolic] -// CHECK:STDOUT: %.e9c: type = fn_type_with_self_type %Copy.WithSelf.Op.type.5bb, %Copy.facet.48d [concrete] -// CHECK:STDOUT: %Copy.lookup_impl_witness.006: = lookup_impl_witness %C.210, @Copy [symbolic] -// CHECK:STDOUT: %.e8c: require_specific_def_type = require_specific_def @C.as.Copy.impl(%T.dc4) [symbolic] -// CHECK:STDOUT: %Copy.facet.c47: %Copy.type = facet_value %C.210, (%Copy.lookup_impl_witness.006) [symbolic] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.82d: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.c47) [symbolic] -// CHECK:STDOUT: %.df2: type = fn_type_with_self_type %Copy.WithSelf.Op.type.82d, %Copy.facet.c47 [symbolic] -// CHECK:STDOUT: %impl.elem0.83f: %.df2 = impl_witness_access %Copy.lookup_impl_witness.006, element0 [symbolic] -// CHECK:STDOUT: %specific_impl_fn.f64: = specific_impl_function %impl.elem0.83f, @Copy.WithSelf.Op(%Copy.facet.c47) [symbolic] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.fbceb5.2: type = fn_type @Destroy.WithSelf.SelfDestruct.loc18_46.2 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.db3fdb.2: %Destroy.WithSelf.SelfDestruct.type.fbceb5.2 = struct_value () [concrete] -// CHECK:STDOUT: %Destroy.lookup_impl_witness.f09: = lookup_impl_witness %C.210, @Destroy [symbolic] -// CHECK:STDOUT: %Destroy.facet.dc5: %Destroy.type = facet_value %C.210, (%Destroy.lookup_impl_witness.f09) [symbolic] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.7ac: type = fn_type @Destroy.WithSelf.SelfDestruct.1, @Destroy.WithSelf(%Destroy.facet.dc5) [symbolic] -// CHECK:STDOUT: %.591: type = fn_type_with_self_type %Destroy.WithSelf.SelfDestruct.type.7ac, %Destroy.facet.dc5 [symbolic] -// CHECK:STDOUT: %impl.elem2: %.591 = impl_witness_access %Destroy.lookup_impl_witness.f09, element2 [symbolic] -// CHECK:STDOUT: %specific_impl_fn.03e: = specific_impl_function %impl.elem2, @Destroy.WithSelf.SelfDestruct.1(%Destroy.facet.dc5) [symbolic] -// CHECK:STDOUT: %t.param_patt.081: %pattern_type.0e9 = value_param_pattern [symbolic] -// CHECK:STDOUT: %t.patt.4d1: %pattern_type.0e9 = wrapper_binding_pattern t, %t.param_patt.081 [symbolic] +// CHECK:STDOUT: %C.ccf: type = class_type @C, @C(%T) [symbolic] +// CHECK:STDOUT: %pattern_type.d8d: type = pattern_type %D [concrete] +// CHECK:STDOUT: %struct_type.d.67c: type = struct_type {.d: %D} [concrete] +// CHECK:STDOUT: %complete_type.e41: = complete_type_witness %struct_type.d.67c [concrete] +// CHECK:STDOUT: %T.as_type: type = facet_access_type %T [symbolic] +// CHECK:STDOUT: %pattern_type.cab: type = pattern_type %T.as_type [symbolic] +// CHECK:STDOUT: %t.param_patt.571: %pattern_type.cab = value_param_pattern [symbolic] +// CHECK:STDOUT: %t.patt.a08: %pattern_type.cab = wrapper_binding_pattern t, %t.param_patt.571 [symbolic] // CHECK:STDOUT: %d.param_patt: %pattern_type.d8d = value_param_pattern [concrete] // CHECK:STDOUT: %d.patt: %pattern_type.d8d = wrapper_binding_pattern d, %d.param_patt [concrete] -// CHECK:STDOUT: %.a37: ref %D = temporary invalid, %D.val [concrete] +// CHECK:STDOUT: %D.val: %D = struct_value () [concrete] // CHECK:STDOUT: %.ec6: %pattern_type.d8d = default_value_pattern %d.patt, %D.val [concrete] +// CHECK:STDOUT: %.20e: Core.Form = init_form %C.ccf [symbolic] +// CHECK:STDOUT: %pattern_type.aa1: type = pattern_type %C.ccf [symbolic] +// CHECK:STDOUT: %return.param_patt.c22: %pattern_type.aa1 = out_param_pattern [symbolic] +// CHECK:STDOUT: %return.patt.a2c: %pattern_type.aa1 = return_slot_pattern %return.param_patt.c22, %C.ccf [symbolic] // CHECK:STDOUT: %Make.type: type = fn_type @Make [concrete] // CHECK:STDOUT: %Make: %Make.type = struct_value () [concrete] +// CHECK:STDOUT: %require_complete.e12: = require_complete_type %T.as_type [symbolic] +// CHECK:STDOUT: %require_complete.f24: = require_complete_type %C.ccf [symbolic] +// CHECK:STDOUT: %C.val.e90: %C.ccf = struct_value (%D.val) [symbolic] // CHECK:STDOUT: %G.type: type = fn_type @G [concrete] // CHECK:STDOUT: %G: %G.type = struct_value () [concrete] -// CHECK:STDOUT: %self.param_patt.0d2: %pattern_type.849 = ref_param_pattern [concrete] -// CHECK:STDOUT: %self.patt.d80: %pattern_type.849 = wrapper_binding_pattern self, %self.param_patt.0d2 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.3: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc31_13 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.d01daf.3: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.3 = struct_value () [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.3: type = fn_type @Destroy.WithSelf.Op.loc31_13 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.Op.403171.3: %Destroy.WithSelf.Op.type.ef016f.3 = struct_value () [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.fbceb5.3: type = fn_type @Destroy.WithSelf.SelfDestruct.loc31_13 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.db3fdb.3: %Destroy.WithSelf.SelfDestruct.type.fbceb5.3 = struct_value () [concrete] -// CHECK:STDOUT: %custom_witness.f8f19d.3: = custom_witness (%Destroy.WithSelf.Op.403171.3, %Destroy.WithSelf.SubobjectDestroy.d01daf.3, %Destroy.WithSelf.SelfDestruct.db3fdb.3), @Destroy [concrete] -// CHECK:STDOUT: %facet_value: %facet_type = facet_value %E, (%Copy.impl_witness.e92, %custom_witness.f8f19d.3) [concrete] -// CHECK:STDOUT: %C.14c: type = class_type @C, @C(%facet_value) [concrete] -// CHECK:STDOUT: %C.elem.54c: type = unbound_element_type %C.14c, %E [concrete] -// CHECK:STDOUT: %C.elem.4f9: type = unbound_element_type %C.14c, %D [concrete] -// CHECK:STDOUT: %struct_type.t.d.d81: type = struct_type {.t: %E, .d: %D} [concrete] -// CHECK:STDOUT: %complete_type.031: = complete_type_witness %struct_type.t.d.d81 [concrete] -// CHECK:STDOUT: %pattern_type.2cb: type = pattern_type %C.14c [concrete] -// CHECK:STDOUT: %_.patt: %pattern_type.2cb = value_binding_pattern _ [concrete] +// CHECK:STDOUT: %C.10f: type = class_type @C, @C(%Z.facet) [concrete] +// CHECK:STDOUT: %C.elem.a58: type = unbound_element_type %C.10f, %D [concrete] +// CHECK:STDOUT: %pattern_type.b01: type = pattern_type %C.10f [concrete] +// CHECK:STDOUT: %_.patt: %pattern_type.b01 = value_binding_pattern _ [concrete] +// CHECK:STDOUT: %E.val: %E = struct_value () [concrete] +// CHECK:STDOUT: %pattern_type.849: type = pattern_type %E [concrete] // CHECK:STDOUT: %t.param_patt.307: %pattern_type.849 = value_param_pattern [concrete] // CHECK:STDOUT: %t.patt.404: %pattern_type.849 = wrapper_binding_pattern t, %t.param_patt.307 [concrete] -// CHECK:STDOUT: %.2c0: Core.Form = init_form %C.14c [concrete] -// CHECK:STDOUT: %return.param_patt.ef6: %pattern_type.2cb = out_param_pattern [concrete] -// CHECK:STDOUT: %return.patt.971: %pattern_type.2cb = return_slot_pattern %return.param_patt.ef6, %C.14c [concrete] -// CHECK:STDOUT: %Make.specific_fn: = specific_function %Make, @Make(%facet_value) [concrete] -// CHECK:STDOUT: %.b7b: ref %E = temporary invalid, %E.val [concrete] -// CHECK:STDOUT: %pattern_type.b46: type = pattern_type %struct_type.t.d.d81 [concrete] -// CHECK:STDOUT: %self.param_patt.c2f: %pattern_type.b46 = ref_param_pattern [concrete] -// CHECK:STDOUT: %self.patt.430: %pattern_type.b46 = wrapper_binding_pattern self, %self.param_patt.c2f [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.4: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc31_32.1 [concrete] +// CHECK:STDOUT: %.c85: Core.Form = init_form %C.10f [concrete] +// CHECK:STDOUT: %return.param_patt.a86: %pattern_type.b01 = out_param_pattern [concrete] +// CHECK:STDOUT: %return.patt.4c6: %pattern_type.b01 = return_slot_pattern %return.param_patt.a86, %C.10f [concrete] +// CHECK:STDOUT: %Make.specific_fn: = specific_function %Make, @Make(%Z.facet) [concrete] +// CHECK:STDOUT: %pattern_type.a96: type = pattern_type %empty_struct_type [concrete] +// CHECK:STDOUT: %self.param_patt.52f: %pattern_type.a96 = ref_param_pattern [concrete] +// CHECK:STDOUT: %self.patt.4b1: %pattern_type.a96 = wrapper_binding_pattern self, %self.param_patt.52f [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.1: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc20_32.1 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.d01daf.1: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.1 = struct_value () [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.1: type = fn_type @Destroy.WithSelf.Op.loc20_32.1 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.403171.1: %Destroy.WithSelf.Op.type.ef016f.1 = struct_value () [concrete] +// CHECK:STDOUT: %self.param_patt.b8e: %pattern_type.d8d = ref_param_pattern [concrete] +// CHECK:STDOUT: %self.patt.86b: %pattern_type.d8d = wrapper_binding_pattern self, %self.param_patt.b8e [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.2: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc20_32.2 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.d01daf.2: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.2 = struct_value () [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.2: type = fn_type @Destroy.WithSelf.Op.loc20_32.2 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.403171.2: %Destroy.WithSelf.Op.type.ef016f.2 = struct_value () [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.fbceb5.2: type = fn_type @Destroy.WithSelf.SelfDestruct.loc20_32.2 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.db3fdb.2: %Destroy.WithSelf.SelfDestruct.type.fbceb5.2 = struct_value () [concrete] +// CHECK:STDOUT: %pattern_type.2a7: type = pattern_type %struct_type.d.67c [concrete] +// CHECK:STDOUT: %self.param_patt.a2a: %pattern_type.2a7 = ref_param_pattern [concrete] +// CHECK:STDOUT: %self.patt.9e1: %pattern_type.2a7 = wrapper_binding_pattern self, %self.param_patt.a2a [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.3: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc20_32.3 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.d01daf.3: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.3 = struct_value () [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.3: type = fn_type @Destroy.WithSelf.Op.loc20_32.3 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.403171.3: %Destroy.WithSelf.Op.type.ef016f.3 = struct_value () [concrete] +// CHECK:STDOUT: %self.param_patt.732: %pattern_type.b01 = ref_param_pattern [concrete] +// CHECK:STDOUT: %self.patt.b5a: %pattern_type.b01 = wrapper_binding_pattern self, %self.param_patt.732 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.4: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc20_32.4 [concrete] // CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.d01daf.4: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.4 = struct_value () [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.4: type = fn_type @Destroy.WithSelf.Op.loc31_32.1 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.4: type = fn_type @Destroy.WithSelf.Op.loc20_32.4 [concrete] // CHECK:STDOUT: %Destroy.WithSelf.Op.403171.4: %Destroy.WithSelf.Op.type.ef016f.4 = struct_value () [concrete] -// CHECK:STDOUT: %self.param_patt.049: %pattern_type.2cb = ref_param_pattern [concrete] -// CHECK:STDOUT: %self.patt.769: %pattern_type.2cb = wrapper_binding_pattern self, %self.param_patt.049 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.5: type = fn_type @Destroy.WithSelf.SubobjectDestroy.loc31_32.2 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.d01daf.5: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.5 = struct_value () [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.Op.type.ef016f.5: type = fn_type @Destroy.WithSelf.Op.loc31_32.2 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.Op.403171.5: %Destroy.WithSelf.Op.type.ef016f.5 = struct_value () [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.fbceb5.5: type = fn_type @Destroy.WithSelf.SelfDestruct.loc31_32.2 [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.db3fdb.5: %Destroy.WithSelf.SelfDestruct.type.fbceb5.5 = struct_value () [concrete] -// CHECK:STDOUT: %custom_witness.f8f19d.5: = custom_witness (%Destroy.WithSelf.Op.403171.5, %Destroy.WithSelf.SubobjectDestroy.d01daf.5, %Destroy.WithSelf.SelfDestruct.db3fdb.5), @Destroy [concrete] -// CHECK:STDOUT: %Destroy.facet.64d: %Destroy.type = facet_value %C.14c, (%custom_witness.f8f19d.5) [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.01e: type = fn_type @Destroy.WithSelf.SelfDestruct.1, @Destroy.WithSelf(%Destroy.facet.64d) [concrete] -// CHECK:STDOUT: %.1d0: type = fn_type_with_self_type %Destroy.WithSelf.SelfDestruct.type.01e, %Destroy.facet.64d [concrete] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound: = bound_method %.b7b, %Destroy.WithSelf.SelfDestruct.db3fdb.3 [concrete] -// CHECK:STDOUT: %c.patt.1a7: %pattern_type.2cb = value_binding_pattern c [concrete] -// CHECK:STDOUT: %.01c: type = fn_type_with_self_type %Copy.WithSelf.Op.type.0e9, %Copy.facet.b77 [concrete] -// CHECK:STDOUT: %Copy.impl_witness.b05: = impl_witness @C.as.Copy.impl.%Copy.impl_witness_table, @C.as.Copy.impl(%facet_value) [concrete] -// CHECK:STDOUT: %C.as.Copy.impl.Op.type.bae: type = fn_type @C.as.Copy.impl.Op, @C.as.Copy.impl(%facet_value) [concrete] -// CHECK:STDOUT: %C.as.Copy.impl.Op.159: %C.as.Copy.impl.Op.type.bae = struct_value () [concrete] -// CHECK:STDOUT: %.229: require_specific_def_type = require_specific_def @C.as.Copy.impl(%facet_value) [concrete] -// CHECK:STDOUT: %Copy.facet.9af: %Copy.type = facet_value %C.14c, (%Copy.impl_witness.b05) [concrete] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.ccc: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.9af) [concrete] -// CHECK:STDOUT: %.61f: type = fn_type_with_self_type %Copy.WithSelf.Op.type.ccc, %Copy.facet.9af [concrete] -// CHECK:STDOUT: %C.as.Copy.impl.Op.specific_fn: = specific_function %C.as.Copy.impl.Op.159, @C.as.Copy.impl.Op(%facet_value) [concrete] -// CHECK:STDOUT: } -// CHECK:STDOUT: -// CHECK:STDOUT: imports { -// CHECK:STDOUT: %Core: = namespace file.%Core.import, [concrete] { -// CHECK:STDOUT: .Copy = %Core.Copy -// CHECK:STDOUT: .Destroy = %Core.Destroy -// CHECK:STDOUT: .BitAndWith = %Core.BitAndWith -// 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.Destroy: type = import_ref Core//prelude/parts/destroy, Destroy, loaded [concrete = constants.%Destroy.type] -// CHECK:STDOUT: %Core.BitAndWith: %BitAndWith.type.a06 = import_ref Core//prelude/parts/as, BitAndWith, loaded [concrete = constants.%BitAndWith.generic] -// CHECK:STDOUT: %Core.import_ref.9c3: %type.as.BitAndWith.impl.Op.type = import_ref Core//prelude/parts/as, loc{{\d+_\d+}}, loaded [concrete = constants.%type.as.BitAndWith.impl.Op] -// CHECK:STDOUT: %BitAndWith.impl_witness_table = impl_witness_table (%Core.import_ref.9c3), @type.as.BitAndWith.impl [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type.fbceb5.4: type = fn_type @Destroy.WithSelf.SelfDestruct.loc20_32.4 [concrete] +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.db3fdb.4: %Destroy.WithSelf.SelfDestruct.type.fbceb5.4 = struct_value () [concrete] +// CHECK:STDOUT: %C.val.a4f: %C.10f = struct_value (%D.val) [concrete] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: generated { -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.3: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.3 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc31_13 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.3] { -// CHECK:STDOUT: %self.param_patt: %pattern_type.849 = ref_param_pattern [concrete = constants.%self.param_patt.0d2] -// CHECK:STDOUT: %self.patt: %pattern_type.849 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.d80] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.1: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.1 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc20_32.1 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.1] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.a96 = ref_param_pattern [concrete = constants.%self.param_patt.52f] +// CHECK:STDOUT: %self.patt: %pattern_type.a96 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.4b1] // CHECK:STDOUT: } { -// CHECK:STDOUT: %self.param: ref %E = ref_param call_param0 -// CHECK:STDOUT: %self: ref %E = wrapper_binding self, %self.param +// CHECK:STDOUT: %self.param: ref %empty_struct_type = ref_param call_param0 +// CHECK:STDOUT: %self: ref %empty_struct_type = wrapper_binding self, %self.param // CHECK:STDOUT: } -// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.3: %Destroy.WithSelf.Op.type.ef016f.3 = fn_decl @Destroy.WithSelf.Op.loc31_13 [concrete = constants.%Destroy.WithSelf.Op.403171.3] { -// CHECK:STDOUT: %self.param_patt: %pattern_type.849 = ref_param_pattern [concrete = constants.%self.param_patt.0d2] -// CHECK:STDOUT: %self.patt: %pattern_type.849 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.d80] +// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.1: %Destroy.WithSelf.Op.type.ef016f.1 = fn_decl @Destroy.WithSelf.Op.loc20_32.1 [concrete = constants.%Destroy.WithSelf.Op.403171.1] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.a96 = ref_param_pattern [concrete = constants.%self.param_patt.52f] +// CHECK:STDOUT: %self.patt: %pattern_type.a96 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.4b1] // CHECK:STDOUT: } { -// CHECK:STDOUT: %self.param: ref %E = ref_param call_param0 -// CHECK:STDOUT: %self: ref %E = wrapper_binding self, %self.param +// CHECK:STDOUT: %self.param: ref %empty_struct_type = ref_param call_param0 +// CHECK:STDOUT: %self: ref %empty_struct_type = wrapper_binding self, %self.param // CHECK:STDOUT: } -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.4: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.4 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc31_32.1 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.4] { -// CHECK:STDOUT: %self.param_patt: %pattern_type.b46 = ref_param_pattern [concrete = constants.%self.param_patt.c2f] -// CHECK:STDOUT: %self.patt: %pattern_type.b46 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.430] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.2: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.2 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc20_32.2 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.2] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.d8d = ref_param_pattern [concrete = constants.%self.param_patt.b8e] +// CHECK:STDOUT: %self.patt: %pattern_type.d8d = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.86b] // CHECK:STDOUT: } { -// CHECK:STDOUT: %self.param: ref %struct_type.t.d.d81 = ref_param call_param0 -// CHECK:STDOUT: %self: ref %struct_type.t.d.d81 = wrapper_binding self, %self.param +// CHECK:STDOUT: %self.param: ref %D = ref_param call_param0 +// CHECK:STDOUT: %self: ref %D = wrapper_binding self, %self.param // CHECK:STDOUT: } -// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.4: %Destroy.WithSelf.Op.type.ef016f.4 = fn_decl @Destroy.WithSelf.Op.loc31_32.1 [concrete = constants.%Destroy.WithSelf.Op.403171.4] { -// CHECK:STDOUT: %self.param_patt: %pattern_type.b46 = ref_param_pattern [concrete = constants.%self.param_patt.c2f] -// CHECK:STDOUT: %self.patt: %pattern_type.b46 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.430] +// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.2: %Destroy.WithSelf.Op.type.ef016f.2 = fn_decl @Destroy.WithSelf.Op.loc20_32.2 [concrete = constants.%Destroy.WithSelf.Op.403171.2] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.d8d = ref_param_pattern [concrete = constants.%self.param_patt.b8e] +// CHECK:STDOUT: %self.patt: %pattern_type.d8d = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.86b] // CHECK:STDOUT: } { -// CHECK:STDOUT: %self.param: ref %struct_type.t.d.d81 = ref_param call_param0 -// CHECK:STDOUT: %self: ref %struct_type.t.d.d81 = wrapper_binding self, %self.param +// CHECK:STDOUT: %self.param: ref %D = ref_param call_param0 +// CHECK:STDOUT: %self: ref %D = wrapper_binding self, %self.param // CHECK:STDOUT: } -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.5: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.5 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc31_32.2 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.5] { -// CHECK:STDOUT: %self.param_patt: %pattern_type.2cb = ref_param_pattern [concrete = constants.%self.param_patt.049] -// CHECK:STDOUT: %self.patt: %pattern_type.2cb = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.769] +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.3: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.3 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc20_32.3 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.3] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.2a7 = ref_param_pattern [concrete = constants.%self.param_patt.a2a] +// CHECK:STDOUT: %self.patt: %pattern_type.2a7 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.9e1] // CHECK:STDOUT: } { -// CHECK:STDOUT: %self.param: ref %C.14c = ref_param call_param0 -// CHECK:STDOUT: %self: ref %C.14c = wrapper_binding self, %self.param +// CHECK:STDOUT: %self.param: ref %struct_type.d.67c = ref_param call_param0 +// CHECK:STDOUT: %self: ref %struct_type.d.67c = wrapper_binding self, %self.param // CHECK:STDOUT: } -// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.5: %Destroy.WithSelf.Op.type.ef016f.5 = fn_decl @Destroy.WithSelf.Op.loc31_32.2 [concrete = constants.%Destroy.WithSelf.Op.403171.5] { -// CHECK:STDOUT: %self.param_patt: %pattern_type.2cb = ref_param_pattern [concrete = constants.%self.param_patt.049] -// CHECK:STDOUT: %self.patt: %pattern_type.2cb = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.769] +// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.3: %Destroy.WithSelf.Op.type.ef016f.3 = fn_decl @Destroy.WithSelf.Op.loc20_32.3 [concrete = constants.%Destroy.WithSelf.Op.403171.3] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.2a7 = ref_param_pattern [concrete = constants.%self.param_patt.a2a] +// CHECK:STDOUT: %self.patt: %pattern_type.2a7 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.9e1] // CHECK:STDOUT: } { -// CHECK:STDOUT: %self.param: ref %C.14c = ref_param call_param0 -// CHECK:STDOUT: %self: ref %C.14c = wrapper_binding self, %self.param +// CHECK:STDOUT: %self.param: ref %struct_type.d.67c = ref_param call_param0 +// CHECK:STDOUT: %self: ref %struct_type.d.67c = wrapper_binding self, %self.param +// CHECK:STDOUT: } +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.decl.763c71.4: %Destroy.WithSelf.SubobjectDestroy.type.dfcbdb.4 = fn_decl @Destroy.WithSelf.SubobjectDestroy.loc20_32.4 [concrete = constants.%Destroy.WithSelf.SubobjectDestroy.d01daf.4] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.b01 = ref_param_pattern [concrete = constants.%self.param_patt.732] +// CHECK:STDOUT: %self.patt: %pattern_type.b01 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.b5a] +// CHECK:STDOUT: } { +// CHECK:STDOUT: %self.param: ref %C.10f = ref_param call_param0 +// CHECK:STDOUT: %self: ref %C.10f = wrapper_binding self, %self.param +// CHECK:STDOUT: } +// CHECK:STDOUT: %Destroy.WithSelf.Op.decl.5f94cf.4: %Destroy.WithSelf.Op.type.ef016f.4 = fn_decl @Destroy.WithSelf.Op.loc20_32.4 [concrete = constants.%Destroy.WithSelf.Op.403171.4] { +// CHECK:STDOUT: %self.param_patt: %pattern_type.b01 = ref_param_pattern [concrete = constants.%self.param_patt.732] +// CHECK:STDOUT: %self.patt: %pattern_type.b01 = wrapper_binding_pattern self, %self.param_patt [concrete = constants.%self.patt.b5a] +// CHECK:STDOUT: } { +// CHECK:STDOUT: %self.param: ref %C.10f = ref_param call_param0 +// CHECK:STDOUT: %self: ref %C.10f = wrapper_binding self, %self.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: file { // CHECK:STDOUT: %Make.decl: %Make.type = fn_decl @Make [concrete = constants.%Make] { -// CHECK:STDOUT: %T.patt.loc25_18.1: %pattern_type.143 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc25_18.2 (constants.%T.patt.256)] -// CHECK:STDOUT: %t.param_patt.loc25_47.1: @Make.%pattern_type.loc25_47 (%pattern_type.0e9) = value_param_pattern [symbolic = %t.param_patt.loc25_47.2 (constants.%t.param_patt.081)] -// CHECK:STDOUT: %t.patt.loc25_47.1: @Make.%pattern_type.loc25_47 (%pattern_type.0e9) = wrapper_binding_pattern t, %t.param_patt.loc25_47.1 [symbolic = %t.patt.loc25_47.2 (constants.%t.patt.4d1)] +// CHECK:STDOUT: %T.patt.loc15_18.1: %pattern_type.5d7 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc15_18.2 (constants.%T.patt)] +// CHECK:STDOUT: %t.param_patt.loc15_31.1: @Make.%pattern_type.loc15_31 (%pattern_type.cab) = value_param_pattern [symbolic = %t.param_patt.loc15_31.2 (constants.%t.param_patt.571)] +// CHECK:STDOUT: %t.patt.loc15_31.1: @Make.%pattern_type.loc15_31 (%pattern_type.cab) = wrapper_binding_pattern t, %t.param_patt.loc15_31.1 [symbolic = %t.patt.loc15_31.2 (constants.%t.patt.a08)] // CHECK:STDOUT: %d.param_patt: %pattern_type.d8d = value_param_pattern [concrete = constants.%d.param_patt] // CHECK:STDOUT: %d.patt: %pattern_type.d8d = wrapper_binding_pattern d, %d.param_patt [concrete = constants.%d.patt] -// CHECK:STDOUT: %.loc25_57: %pattern_type.d8d = default_value_pattern %d.patt, %.loc25_62.3 [concrete = constants.%.ec6] -// CHECK:STDOUT: %return.param_patt.loc25_74.1: @Make.%pattern_type.loc25_74 (%pattern_type.0b5) = out_param_pattern [symbolic = %return.param_patt.loc25_74.2 (constants.%return.param_patt.2c6)] -// CHECK:STDOUT: %return.patt.loc25_68.1: @Make.%pattern_type.loc25_74 (%pattern_type.0b5) = return_slot_pattern %return.param_patt.loc25_74.1, %C.loc25_74.2 [symbolic = %return.patt.loc25_68.2 (constants.%return.patt.a82)] +// CHECK:STDOUT: %.loc15_41: %pattern_type.d8d = default_value_pattern %d.patt, %.loc15_46.2 [concrete = constants.%.ec6] +// CHECK:STDOUT: %return.param_patt.loc15_58.1: @Make.%pattern_type.loc15_58 (%pattern_type.aa1) = out_param_pattern [symbolic = %return.param_patt.loc15_58.2 (constants.%return.param_patt.c22)] +// CHECK:STDOUT: %return.patt.loc15_52.1: @Make.%pattern_type.loc15_58 (%pattern_type.aa1) = return_slot_pattern %return.param_patt.loc15_58.1, %C.loc15_58.2 [symbolic = %return.patt.loc15_52.2 (constants.%return.patt.a2c)] // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc25_60.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct] -// CHECK:STDOUT: %D.ref.loc25_65: type = name_ref D, file.%D.decl [concrete = constants.%D] -// CHECK:STDOUT: %.loc25_60.2: ref %D = temporary_storage -// CHECK:STDOUT: %.loc25_60.3: init %D to %.loc25_60.2 = class_init () [concrete = constants.%D.val] -// CHECK:STDOUT: %.loc25_62.1: init %D = converted %.loc25_60.1, %.loc25_60.3 [concrete = constants.%D.val] -// CHECK:STDOUT: %.loc25_62.2: ref %D = temporary %.loc25_60.2, %.loc25_62.1 [concrete = constants.%.a37] -// CHECK:STDOUT: %.loc25_62.3: %D = acquire_value %.loc25_62.2 [concrete = constants.%D.val] -// CHECK:STDOUT: %C.ref.loc25: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic] -// CHECK:STDOUT: %T.ref.loc25_73: %facet_type = name_ref T, %T.loc25_18.2 [symbolic = %T.loc25_18.1 (constants.%T.dc4)] -// CHECK:STDOUT: %C.loc25_74.2: type = class_type @C, @C(constants.%T.dc4) [symbolic = %C.loc25_74.1 (constants.%C.210)] -// CHECK:STDOUT: %.loc25_74.3: Core.Form = init_form %C.loc25_74.2 [symbolic = %.loc25_74.2 (constants.%.501)] -// CHECK:STDOUT: %.loc25_30.1: type = splice_block %.loc25_30.3 [concrete = constants.%facet_type] { +// CHECK:STDOUT: %.loc15_44: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct] +// CHECK:STDOUT: %D.ref.loc15_49: type = name_ref D, file.%D.decl [concrete = constants.%D] +// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete = constants.%empty_struct] +// CHECK:STDOUT: %.loc15_46.1: %D = as_compatible %empty_struct [concrete = constants.%D.val] +// CHECK:STDOUT: %.loc15_46.2: %D = converted %.loc15_44, %.loc15_46.1 [concrete = constants.%D.val] +// CHECK:STDOUT: %C.ref.loc15: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic] +// CHECK:STDOUT: %T.ref.loc15_57: %Z.type = name_ref T, %T.loc15_18.2 [symbolic = %T.loc15_18.1 (constants.%T)] +// CHECK:STDOUT: %C.loc15_58.2: type = class_type @C, @C(constants.%T) [symbolic = %C.loc15_58.1 (constants.%C.ccf)] +// CHECK:STDOUT: %.loc15_58.3: Core.Form = init_form %C.loc15_58.2 [symbolic = %.loc15_58.2 (constants.%.20e)] +// CHECK:STDOUT: %.loc15_20: type = splice_block %Z.ref [concrete = constants.%Z.type] { // CHECK:STDOUT: %.Self.frozen: type = symbolic_binding .Self [symbolic_self = constants.%.Self.frozen] -// CHECK:STDOUT: %Core.ref.loc25_20: = name_ref Core, imports.%Core [concrete = imports.%Core] -// CHECK:STDOUT: %Copy.ref: type = name_ref Copy, imports.%Core.Copy [concrete = constants.%Copy.type] -// CHECK:STDOUT: %Core.ref.loc25_32: = name_ref Core, imports.%Core [concrete = imports.%Core] -// CHECK:STDOUT: %Destroy.ref: type = name_ref Destroy, imports.%Core.Destroy [concrete = constants.%Destroy.type] -// CHECK:STDOUT: %impl.elem0.loc25: %.b4e = impl_witness_access constants.%BitAndWith.impl_witness, element0 [concrete = constants.%type.as.BitAndWith.impl.Op] -// CHECK:STDOUT: %bound_method.loc25: = bound_method %Copy.ref, %impl.elem0.loc25 [concrete = constants.%type.as.BitAndWith.impl.Op.bound] -// CHECK:STDOUT: %type.as.BitAndWith.impl.Op.call: init type = call %bound_method.loc25(%Copy.ref, %Destroy.ref) [concrete = constants.%facet_type] -// CHECK:STDOUT: %.loc25_30.2: type = value_of_initializer %type.as.BitAndWith.impl.Op.call [concrete = constants.%facet_type] -// CHECK:STDOUT: %.loc25_30.3: type = converted %type.as.BitAndWith.impl.Op.call, %.loc25_30.2 [concrete = constants.%facet_type] +// CHECK:STDOUT: %Z.ref: type = name_ref Z, file.%Z.decl [concrete = constants.%Z.type] // CHECK:STDOUT: } -// CHECK:STDOUT: %T.loc25_18.2: %facet_type = symbolic_binding T, 0 [symbolic = %T.loc25_18.1 (constants.%T.dc4)] -// CHECK:STDOUT: %t.param: @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) = value_param call_param0 -// CHECK:STDOUT: %.loc25_49.1: type = splice_block %.loc25_49.2 [symbolic = %T.as_type.loc25_49.1 (constants.%T.as_type.5d6)] { -// CHECK:STDOUT: %T.ref.loc25_49: %facet_type = name_ref T, %T.loc25_18.2 [symbolic = %T.loc25_18.1 (constants.%T.dc4)] -// CHECK:STDOUT: %T.as_type.loc25_49.2: type = facet_access_type %T.ref.loc25_49 [symbolic = %T.as_type.loc25_49.1 (constants.%T.as_type.5d6)] -// CHECK:STDOUT: %.loc25_49.2: type = converted %T.ref.loc25_49, %T.as_type.loc25_49.2 [symbolic = %T.as_type.loc25_49.1 (constants.%T.as_type.5d6)] +// CHECK:STDOUT: %T.loc15_18.2: %Z.type = symbolic_binding T, 0 [symbolic = %T.loc15_18.1 (constants.%T)] +// CHECK:STDOUT: %t.param: @Make.%T.as_type.loc15_33.1 (%T.as_type) = value_param call_param0 +// CHECK:STDOUT: %.loc15_33.1: type = splice_block %.loc15_33.2 [symbolic = %T.as_type.loc15_33.1 (constants.%T.as_type)] { +// CHECK:STDOUT: %T.ref.loc15_33: %Z.type = name_ref T, %T.loc15_18.2 [symbolic = %T.loc15_18.1 (constants.%T)] +// CHECK:STDOUT: %T.as_type.loc15_33.2: type = facet_access_type %T.ref.loc15_33 [symbolic = %T.as_type.loc15_33.1 (constants.%T.as_type)] +// CHECK:STDOUT: %.loc15_33.2: type = converted %T.ref.loc15_33, %T.as_type.loc15_33.2 [symbolic = %T.as_type.loc15_33.1 (constants.%T.as_type)] // CHECK:STDOUT: } -// CHECK:STDOUT: %t: @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) = wrapper_binding t, %t.param +// CHECK:STDOUT: %t: @Make.%T.as_type.loc15_33.1 (%T.as_type) = wrapper_binding t, %t.param // CHECK:STDOUT: %d.param: %D = value_param call_param1 -// CHECK:STDOUT: %D.ref.loc25_55: type = name_ref D, file.%D.decl [concrete = constants.%D] +// CHECK:STDOUT: %D.ref.loc15_39: type = name_ref D, file.%D.decl [concrete = constants.%D] // CHECK:STDOUT: %d: %D = wrapper_binding d, %d.param -// CHECK:STDOUT: %return.param: ref @Make.%C.loc25_74.1 (%C.210) = out_param call_param2 -// CHECK:STDOUT: %return: ref @Make.%C.loc25_74.1 (%C.210) = return_slot %return.param +// CHECK:STDOUT: %return.param: ref @Make.%C.loc15_58.1 (%C.ccf) = out_param call_param2 +// CHECK:STDOUT: %return: ref @Make.%C.loc15_58.1 (%C.ccf) = return_slot %return.param // CHECK:STDOUT: } // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [concrete = constants.%G] {} {} // CHECK:STDOUT: } // CHECK:STDOUT: -// CHECK:STDOUT: generic fn @Make(%T.loc25_18.2: %facet_type) { -// CHECK:STDOUT: %T.patt.loc25_18.2: %pattern_type.143 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc25_18.2 (constants.%T.patt.256)] -// CHECK:STDOUT: %T.loc25_18.1: %facet_type = symbolic_binding T, 0 [symbolic = %T.loc25_18.1 (constants.%T.dc4)] -// CHECK:STDOUT: %T.as_type.loc25_49.1: type = facet_access_type %T.loc25_18.1 [symbolic = %T.as_type.loc25_49.1 (constants.%T.as_type.5d6)] -// CHECK:STDOUT: %pattern_type.loc25_47: type = pattern_type %T.as_type.loc25_49.1 [symbolic = %pattern_type.loc25_47 (constants.%pattern_type.0e9)] -// CHECK:STDOUT: %t.param_patt.loc25_47.2: @Make.%pattern_type.loc25_47 (%pattern_type.0e9) = value_param_pattern [symbolic = %t.param_patt.loc25_47.2 (constants.%t.param_patt.081)] -// CHECK:STDOUT: %t.patt.loc25_47.2: @Make.%pattern_type.loc25_47 (%pattern_type.0e9) = wrapper_binding_pattern t, %t.param_patt.loc25_47.2 [symbolic = %t.patt.loc25_47.2 (constants.%t.patt.4d1)] -// CHECK:STDOUT: %C.loc25_74.1: type = class_type @C, @C(%T.loc25_18.1) [symbolic = %C.loc25_74.1 (constants.%C.210)] -// CHECK:STDOUT: %.loc25_74.2: Core.Form = init_form %C.loc25_74.1 [symbolic = %.loc25_74.2 (constants.%.501)] -// CHECK:STDOUT: %pattern_type.loc25_74: type = pattern_type %C.loc25_74.1 [symbolic = %pattern_type.loc25_74 (constants.%pattern_type.0b5)] -// CHECK:STDOUT: %return.param_patt.loc25_74.2: @Make.%pattern_type.loc25_74 (%pattern_type.0b5) = out_param_pattern [symbolic = %return.param_patt.loc25_74.2 (constants.%return.param_patt.2c6)] -// CHECK:STDOUT: %return.patt.loc25_68.2: @Make.%pattern_type.loc25_74 (%pattern_type.0b5) = return_slot_pattern %return.param_patt.loc25_74.2, %C.loc25_74.1 [symbolic = %return.patt.loc25_68.2 (constants.%return.patt.a82)] +// CHECK:STDOUT: generic fn @Make(%T.loc15_18.2: %Z.type) { +// CHECK:STDOUT: %T.patt.loc15_18.2: %pattern_type.5d7 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc15_18.2 (constants.%T.patt)] +// CHECK:STDOUT: %T.loc15_18.1: %Z.type = symbolic_binding T, 0 [symbolic = %T.loc15_18.1 (constants.%T)] +// CHECK:STDOUT: %T.as_type.loc15_33.1: type = facet_access_type %T.loc15_18.1 [symbolic = %T.as_type.loc15_33.1 (constants.%T.as_type)] +// CHECK:STDOUT: %pattern_type.loc15_31: type = pattern_type %T.as_type.loc15_33.1 [symbolic = %pattern_type.loc15_31 (constants.%pattern_type.cab)] +// CHECK:STDOUT: %t.param_patt.loc15_31.2: @Make.%pattern_type.loc15_31 (%pattern_type.cab) = value_param_pattern [symbolic = %t.param_patt.loc15_31.2 (constants.%t.param_patt.571)] +// CHECK:STDOUT: %t.patt.loc15_31.2: @Make.%pattern_type.loc15_31 (%pattern_type.cab) = wrapper_binding_pattern t, %t.param_patt.loc15_31.2 [symbolic = %t.patt.loc15_31.2 (constants.%t.patt.a08)] +// CHECK:STDOUT: %C.loc15_58.1: type = class_type @C, @C(%T.loc15_18.1) [symbolic = %C.loc15_58.1 (constants.%C.ccf)] +// CHECK:STDOUT: %.loc15_58.2: Core.Form = init_form %C.loc15_58.1 [symbolic = %.loc15_58.2 (constants.%.20e)] +// CHECK:STDOUT: %pattern_type.loc15_58: type = pattern_type %C.loc15_58.1 [symbolic = %pattern_type.loc15_58 (constants.%pattern_type.aa1)] +// CHECK:STDOUT: %return.param_patt.loc15_58.2: @Make.%pattern_type.loc15_58 (%pattern_type.aa1) = out_param_pattern [symbolic = %return.param_patt.loc15_58.2 (constants.%return.param_patt.c22)] +// CHECK:STDOUT: %return.patt.loc15_52.2: @Make.%pattern_type.loc15_58 (%pattern_type.aa1) = return_slot_pattern %return.param_patt.loc15_58.2, %C.loc15_58.1 [symbolic = %return.patt.loc15_52.2 (constants.%return.patt.a2c)] // CHECK:STDOUT: // CHECK:STDOUT: !definition: -// CHECK:STDOUT: %require_complete.loc25: = require_complete_type %T.as_type.loc25_49.1 [symbolic = %require_complete.loc25 (constants.%require_complete.091)] -// CHECK:STDOUT: %require_complete.loc26: = require_complete_type %C.loc25_74.1 [symbolic = %require_complete.loc26 (constants.%require_complete.bab)] -// CHECK:STDOUT: %c.patt.loc26_8.2: @Make.%pattern_type.loc25_74 (%pattern_type.0b5) = value_binding_pattern c [symbolic = %c.patt.loc26_8.2 (constants.%c.patt.6d2)] -// CHECK:STDOUT: %struct_type.t.d: type = struct_type {.t: @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6), .d: %D} [symbolic = %struct_type.t.d (constants.%struct_type.t.d.125)] -// CHECK:STDOUT: %Copy.lookup_impl_witness.loc26: = lookup_impl_witness %T.loc25_18.1, @Copy [symbolic = %Copy.lookup_impl_witness.loc26 (constants.%Copy.lookup_impl_witness.fd8)] -// CHECK:STDOUT: %Copy.facet.loc26_23.3: %Copy.type = facet_value %T.as_type.loc25_49.1, (%Copy.lookup_impl_witness.loc26) [symbolic = %Copy.facet.loc26_23.3 (constants.%Copy.facet.40c)] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.loc26: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.loc26_23.3) [symbolic = %Copy.WithSelf.Op.type.loc26 (constants.%Copy.WithSelf.Op.type.f43)] -// CHECK:STDOUT: %.loc26_23.3: type = fn_type_with_self_type %Copy.WithSelf.Op.type.loc26, %Copy.facet.loc26_23.3 [symbolic = %.loc26_23.3 (constants.%.81a)] -// CHECK:STDOUT: %impl.elem0.loc26_23.2: @Make.%.loc26_23.3 (%.81a) = impl_witness_access %Copy.lookup_impl_witness.loc26, element0 [symbolic = %impl.elem0.loc26_23.2 (constants.%impl.elem0.35e)] -// CHECK:STDOUT: %specific_impl_fn.loc26_23.2: = specific_impl_function %impl.elem0.loc26_23.2, @Copy.WithSelf.Op(%Copy.facet.loc26_23.3) [symbolic = %specific_impl_fn.loc26_23.2 (constants.%specific_impl_fn.f62)] -// CHECK:STDOUT: %.loc27_10.3: require_specific_def_type = require_specific_def @C.as.Copy.impl(%T.loc25_18.1) [symbolic = %.loc27_10.3 (constants.%.e8c)] -// CHECK:STDOUT: %Copy.lookup_impl_witness.loc27: = lookup_impl_witness %C.loc25_74.1, @Copy [symbolic = %Copy.lookup_impl_witness.loc27 (constants.%Copy.lookup_impl_witness.006)] -// CHECK:STDOUT: %Copy.facet.loc27_10.3: %Copy.type = facet_value %C.loc25_74.1, (%Copy.lookup_impl_witness.loc27) [symbolic = %Copy.facet.loc27_10.3 (constants.%Copy.facet.c47)] -// CHECK:STDOUT: %Copy.WithSelf.Op.type.loc27: type = fn_type @Copy.WithSelf.Op, @Copy.WithSelf(%Copy.facet.loc27_10.3) [symbolic = %Copy.WithSelf.Op.type.loc27 (constants.%Copy.WithSelf.Op.type.82d)] -// CHECK:STDOUT: %.loc27_10.4: type = fn_type_with_self_type %Copy.WithSelf.Op.type.loc27, %Copy.facet.loc27_10.3 [symbolic = %.loc27_10.4 (constants.%.df2)] -// CHECK:STDOUT: %impl.elem0.loc27_10.2: @Make.%.loc27_10.4 (%.df2) = impl_witness_access %Copy.lookup_impl_witness.loc27, element0 [symbolic = %impl.elem0.loc27_10.2 (constants.%impl.elem0.83f)] -// CHECK:STDOUT: %specific_impl_fn.loc27_10.2: = specific_impl_function %impl.elem0.loc27_10.2, @Copy.WithSelf.Op(%Copy.facet.loc27_10.3) [symbolic = %specific_impl_fn.loc27_10.2 (constants.%specific_impl_fn.f64)] -// CHECK:STDOUT: %Destroy.lookup_impl_witness: = lookup_impl_witness %C.loc25_74.1, @Destroy [symbolic = %Destroy.lookup_impl_witness (constants.%Destroy.lookup_impl_witness.f09)] -// CHECK:STDOUT: %Destroy.facet.loc26_32.3: %Destroy.type = facet_value %C.loc25_74.1, (%Destroy.lookup_impl_witness) [symbolic = %Destroy.facet.loc26_32.3 (constants.%Destroy.facet.dc5)] -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type: type = fn_type @Destroy.WithSelf.SelfDestruct.1, @Destroy.WithSelf(%Destroy.facet.loc26_32.3) [symbolic = %Destroy.WithSelf.SelfDestruct.type (constants.%Destroy.WithSelf.SelfDestruct.type.7ac)] -// CHECK:STDOUT: %.loc26_32.13: type = fn_type_with_self_type %Destroy.WithSelf.SelfDestruct.type, %Destroy.facet.loc26_32.3 [symbolic = %.loc26_32.13 (constants.%.591)] -// CHECK:STDOUT: %impl.elem2.loc26_32.2: @Make.%.loc26_32.13 (%.591) = impl_witness_access %Destroy.lookup_impl_witness, element2 [symbolic = %impl.elem2.loc26_32.2 (constants.%impl.elem2)] -// CHECK:STDOUT: %specific_impl_fn.loc26_32.2: = specific_impl_function %impl.elem2.loc26_32.2, @Destroy.WithSelf.SelfDestruct.1(%Destroy.facet.loc26_32.3) [symbolic = %specific_impl_fn.loc26_32.2 (constants.%specific_impl_fn.03e)] +// CHECK:STDOUT: %require_complete.loc15_31: = require_complete_type %T.as_type.loc15_33.1 [symbolic = %require_complete.loc15_31 (constants.%require_complete.e12)] +// CHECK:STDOUT: %require_complete.loc15_52: = require_complete_type %C.loc15_58.1 [symbolic = %require_complete.loc15_52 (constants.%require_complete.f24)] +// CHECK:STDOUT: %C.val: @Make.%C.loc15_58.1 (%C.ccf) = struct_value (constants.%D.val) [symbolic = %C.val (constants.%C.val.e90)] // CHECK:STDOUT: -// CHECK:STDOUT: fn(%t.param: @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6), %d.param: %D) -> out %return.param: @Make.%C.loc25_74.1 (%C.210) { +// CHECK:STDOUT: fn(%t.param: @Make.%T.as_type.loc15_33.1 (%T.as_type), %d.param: %D) -> out %return.param: @Make.%C.loc15_58.1 (%C.ccf) { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %t.ref: @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) = name_ref t, %t // CHECK:STDOUT: %d.ref: %D = name_ref d, %d -// CHECK:STDOUT: %.loc26_32.1: @Make.%struct_type.t.d (%struct_type.t.d.125) = struct_literal (%t.ref, %d.ref) -// CHECK:STDOUT: %impl.elem0.loc26_23.1: @Make.%.loc26_23.3 (%.81a) = impl_witness_access constants.%Copy.lookup_impl_witness.fd8, element0 [symbolic = %impl.elem0.loc26_23.2 (constants.%impl.elem0.35e)] -// CHECK:STDOUT: %bound_method.loc26_23.1: = bound_method %t.ref, %impl.elem0.loc26_23.1 -// CHECK:STDOUT: %Copy.facet.loc26_23.1: %Copy.type = facet_value constants.%T.as_type.5d6, (constants.%Copy.lookup_impl_witness.fd8) [symbolic = %Copy.facet.loc26_23.3 (constants.%Copy.facet.40c)] -// CHECK:STDOUT: %.loc26_23.1: %Copy.type = converted constants.%T.as_type.5d6, %Copy.facet.loc26_23.1 [symbolic = %Copy.facet.loc26_23.3 (constants.%Copy.facet.40c)] -// CHECK:STDOUT: %Copy.facet.loc26_23.2: %Copy.type = facet_value constants.%T.as_type.5d6, (constants.%Copy.lookup_impl_witness.fd8) [symbolic = %Copy.facet.loc26_23.3 (constants.%Copy.facet.40c)] -// CHECK:STDOUT: %.loc26_23.2: %Copy.type = converted constants.%T.as_type.5d6, %Copy.facet.loc26_23.2 [symbolic = %Copy.facet.loc26_23.3 (constants.%Copy.facet.40c)] -// CHECK:STDOUT: %specific_impl_fn.loc26_23.1: = specific_impl_function %impl.elem0.loc26_23.1, @Copy.WithSelf.Op(constants.%Copy.facet.40c) [symbolic = %specific_impl_fn.loc26_23.2 (constants.%specific_impl_fn.f62)] -// CHECK:STDOUT: %bound_method.loc26_23.2: = bound_method %t.ref, %specific_impl_fn.loc26_23.1 -// CHECK:STDOUT: %.loc26_32.2: ref @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) = splice_block %.loc26_32.12 { -// CHECK:STDOUT: %.loc26_32.11: ref @Make.%C.loc25_74.1 (%C.210) = temporary_storage -// CHECK:STDOUT: %.loc26_32.12: ref @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) = class_element_access %.loc26_32.11, element0 -// CHECK:STDOUT: } -// CHECK:STDOUT: %Copy.WithSelf.Op.call.loc26: init @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) to %.loc26_32.2 = call %bound_method.loc26_23.2(%t.ref) -// CHECK:STDOUT: %.loc26_32.3: init @Make.%T.as_type.loc25_49.1 (%T.as_type.5d6) to %.loc26_32.12 = in_place_init %Copy.WithSelf.Op.call.loc26 -// CHECK:STDOUT: %impl.elem0.loc26_31: %.e9c = impl_witness_access constants.%Copy.impl_witness.548, element0 [concrete = constants.%D.as.Copy.impl.Op] -// CHECK:STDOUT: %bound_method.loc26_31: = bound_method %d.ref, %impl.elem0.loc26_31 -// CHECK:STDOUT: %.loc26_32.4: ref %D = class_element_access %.loc26_32.11, element1 -// CHECK:STDOUT: %D.as.Copy.impl.Op.call: init %D to %.loc26_32.4 = call %bound_method.loc26_31(%d.ref) -// CHECK:STDOUT: %.loc26_32.5: init @Make.%C.loc25_74.1 (%C.210) to %.loc26_32.11 = class_init (%.loc26_32.3, %D.as.Copy.impl.Op.call) -// CHECK:STDOUT: %.loc26_32.6: init @Make.%C.loc25_74.1 (%C.210) = converted %.loc26_32.1, %.loc26_32.5 -// CHECK:STDOUT: %.loc26_32.7: ref @Make.%C.loc25_74.1 (%C.210) = temporary %.loc26_32.11, %.loc26_32.6 -// CHECK:STDOUT: %.loc26_32.8: @Make.%C.loc25_74.1 (%C.210) = acquire_value %.loc26_32.7 -// CHECK:STDOUT: %.loc26_13: type = splice_block %C.loc26 [symbolic = %C.loc25_74.1 (constants.%C.210)] { -// CHECK:STDOUT: %C.ref.loc26: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic] -// CHECK:STDOUT: %T.ref.loc26: %facet_type = name_ref T, %T.loc25_18.2 [symbolic = %T.loc25_18.1 (constants.%T.dc4)] -// CHECK:STDOUT: %C.loc26: type = class_type @C, @C(constants.%T.dc4) [symbolic = %C.loc25_74.1 (constants.%C.210)] -// CHECK:STDOUT: } -// CHECK:STDOUT: %c: @Make.%C.loc25_74.1 (%C.210) = wrapper_binding c, %.loc26_32.8 -// CHECK:STDOUT: name_binding_decl { -// CHECK:STDOUT: %c.patt.loc26_8.1: @Make.%pattern_type.loc25_74 (%pattern_type.0b5) = value_binding_pattern c [symbolic = %c.patt.loc26_8.2 (constants.%c.patt.6d2)] -// CHECK:STDOUT: } -// CHECK:STDOUT: %c.ref: @Make.%C.loc25_74.1 (%C.210) = name_ref c, %c -// CHECK:STDOUT: %impl.elem0.loc27_10.1: @Make.%.loc27_10.4 (%.df2) = impl_witness_access constants.%Copy.lookup_impl_witness.006, element0 [symbolic = %impl.elem0.loc27_10.2 (constants.%impl.elem0.83f)] -// CHECK:STDOUT: %bound_method.loc27_10.1: = bound_method %c.ref, %impl.elem0.loc27_10.1 -// CHECK:STDOUT: %Copy.facet.loc27_10.1: %Copy.type = facet_value constants.%C.210, (constants.%Copy.lookup_impl_witness.006) [symbolic = %Copy.facet.loc27_10.3 (constants.%Copy.facet.c47)] -// CHECK:STDOUT: %.loc27_10.1: %Copy.type = converted constants.%C.210, %Copy.facet.loc27_10.1 [symbolic = %Copy.facet.loc27_10.3 (constants.%Copy.facet.c47)] -// CHECK:STDOUT: %Copy.facet.loc27_10.2: %Copy.type = facet_value constants.%C.210, (constants.%Copy.lookup_impl_witness.006) [symbolic = %Copy.facet.loc27_10.3 (constants.%Copy.facet.c47)] -// CHECK:STDOUT: %.loc27_10.2: %Copy.type = converted constants.%C.210, %Copy.facet.loc27_10.2 [symbolic = %Copy.facet.loc27_10.3 (constants.%Copy.facet.c47)] -// CHECK:STDOUT: %specific_impl_fn.loc27_10.1: = specific_impl_function %impl.elem0.loc27_10.1, @Copy.WithSelf.Op(constants.%Copy.facet.c47) [symbolic = %specific_impl_fn.loc27_10.2 (constants.%specific_impl_fn.f64)] -// CHECK:STDOUT: %bound_method.loc27_10.2: = bound_method %c.ref, %specific_impl_fn.loc27_10.1 -// CHECK:STDOUT: %.loc25_74.1: ref @Make.%C.loc25_74.1 (%C.210) = splice_block %return.param {} -// CHECK:STDOUT: %Copy.WithSelf.Op.call.loc27: init @Make.%C.loc25_74.1 (%C.210) to %.loc25_74.1 = call %bound_method.loc27_10.2(%c.ref) -// CHECK:STDOUT: %impl.elem2.loc26_32.1: @Make.%.loc26_32.13 (%.591) = impl_witness_access constants.%Destroy.lookup_impl_witness.f09, element2 [symbolic = %impl.elem2.loc26_32.2 (constants.%impl.elem2)] -// CHECK:STDOUT: %bound_method.loc26_32.1: = bound_method %.loc26_32.7, %impl.elem2.loc26_32.1 -// CHECK:STDOUT: %Destroy.facet.loc26_32.1: %Destroy.type = facet_value constants.%C.210, (constants.%Destroy.lookup_impl_witness.f09) [symbolic = %Destroy.facet.loc26_32.3 (constants.%Destroy.facet.dc5)] -// CHECK:STDOUT: %.loc26_32.9: %Destroy.type = converted constants.%C.210, %Destroy.facet.loc26_32.1 [symbolic = %Destroy.facet.loc26_32.3 (constants.%Destroy.facet.dc5)] -// CHECK:STDOUT: %Destroy.facet.loc26_32.2: %Destroy.type = facet_value constants.%C.210, (constants.%Destroy.lookup_impl_witness.f09) [symbolic = %Destroy.facet.loc26_32.3 (constants.%Destroy.facet.dc5)] -// CHECK:STDOUT: %.loc26_32.10: %Destroy.type = converted constants.%C.210, %Destroy.facet.loc26_32.2 [symbolic = %Destroy.facet.loc26_32.3 (constants.%Destroy.facet.dc5)] -// CHECK:STDOUT: %specific_impl_fn.loc26_32.1: = specific_impl_function %impl.elem2.loc26_32.1, @Destroy.WithSelf.SelfDestruct.1(constants.%Destroy.facet.dc5) [symbolic = %specific_impl_fn.loc26_32.2 (constants.%specific_impl_fn.03e)] -// CHECK:STDOUT: %bound_method.loc26_32.2: = bound_method %.loc26_32.7, %specific_impl_fn.loc26_32.1 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call: init %empty_tuple.type = call %bound_method.loc26_32.2(%.loc26_32.7) -// CHECK:STDOUT: return %Copy.WithSelf.Op.call.loc27 to %return.param +// CHECK:STDOUT: %.loc16_17.1: %struct_type.d.67c = struct_literal (%d.ref) +// CHECK:STDOUT: %C.ref.loc16: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic] +// CHECK:STDOUT: %T.ref.loc16: %Z.type = name_ref T, %T.loc15_18.2 [symbolic = %T.loc15_18.1 (constants.%T)] +// CHECK:STDOUT: %C.loc16: type = class_type @C, @C(constants.%T) [symbolic = %C.loc15_58.1 (constants.%C.ccf)] +// CHECK:STDOUT: %.loc16_17.2: %empty_struct_type = as_compatible %d.ref +// CHECK:STDOUT: %.loc15_58.1: ref @Make.%C.loc15_58.1 (%C.ccf) = splice_block %return.param {} +// CHECK:STDOUT: %.loc16_17.3: ref %D = class_element_access %.loc15_58.1, element0 +// CHECK:STDOUT: %.loc16_17.4: ref %empty_struct_type = as_compatible %.loc16_17.3 +// CHECK:STDOUT: %.loc16_17.5: init %empty_struct_type to %.loc16_17.4 = struct_init () [concrete = constants.%empty_struct] +// CHECK:STDOUT: %.loc16_17.6: init %D = as_compatible %.loc16_17.5 [concrete = constants.%D.val] +// CHECK:STDOUT: %.loc16_17.7: init %D = converted %d.ref, %.loc16_17.6 [concrete = constants.%D.val] +// CHECK:STDOUT: %.loc16_17.8: init %D to %.loc16_17.3 = in_place_init %.loc16_17.7 [concrete = constants.%D.val] +// CHECK:STDOUT: %.loc16_17.9: init @Make.%C.loc15_58.1 (%C.ccf) to %.loc15_58.1 = class_init (%.loc16_17.8) [symbolic = %C.val (constants.%C.val.e90)] +// CHECK:STDOUT: %.loc16_19: init @Make.%C.loc15_58.1 (%C.ccf) = converted %.loc16_17.1, %.loc16_17.9 [symbolic = %C.val (constants.%C.val.e90)] +// CHECK:STDOUT: return %.loc16_19 to %return.param // CHECK:STDOUT: } // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: fn @G() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Make.ref: %Make.type = name_ref Make, file.%Make.decl [concrete = constants.%Make] -// CHECK:STDOUT: %E.ref.loc31_22: type = name_ref E, file.%E.decl [concrete = constants.%E] -// CHECK:STDOUT: %.loc31_26.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct] -// CHECK:STDOUT: %E.ref.loc31_31: type = name_ref E, file.%E.decl [concrete = constants.%E] -// CHECK:STDOUT: %.loc31_26.2: ref %E = temporary_storage -// CHECK:STDOUT: %.loc31_26.3: init %E to %.loc31_26.2 = class_init () [concrete = constants.%E.val] -// CHECK:STDOUT: %.loc31_28.1: init %E = converted %.loc31_26.1, %.loc31_26.3 [concrete = constants.%E.val] -// CHECK:STDOUT: %facet_value.loc31_32.1: %facet_type = facet_value %E.ref.loc31_22, (constants.%Copy.impl_witness.e92, constants.%custom_witness.f8f19d.3) [concrete = constants.%facet_value] -// CHECK:STDOUT: %.loc31_32.1: %facet_type = converted %E.ref.loc31_22, %facet_value.loc31_32.1 [concrete = constants.%facet_value] -// CHECK:STDOUT: %facet_value.loc31_32.2: %facet_type = facet_value constants.%E, (constants.%Copy.impl_witness.e92, constants.%custom_witness.f8f19d.3) [concrete = constants.%facet_value] -// CHECK:STDOUT: %.loc31_32.2: %facet_type = converted constants.%E, %facet_value.loc31_32.2 [concrete = constants.%facet_value] -// CHECK:STDOUT: %facet_value.loc31_32.3: %facet_type = facet_value constants.%E, (constants.%Copy.impl_witness.e92, constants.%custom_witness.f8f19d.3) [concrete = constants.%facet_value] -// CHECK:STDOUT: %.loc31_32.3: %facet_type = converted constants.%E, %facet_value.loc31_32.3 [concrete = constants.%facet_value] -// CHECK:STDOUT: %Make.specific_fn: = specific_function %Make.ref, @Make(constants.%facet_value) [concrete = constants.%Make.specific_fn] -// CHECK:STDOUT: %.loc31_32.4: ref %C.14c = temporary_storage -// CHECK:STDOUT: %.loc31_28.2: ref %E = temporary %.loc31_26.2, %.loc31_28.1 [concrete = constants.%.b7b] -// CHECK:STDOUT: %.loc31_28.3: %E = acquire_value %.loc31_28.2 [concrete = constants.%E.val] -// CHECK:STDOUT: %Make.call: init %C.14c to %.loc31_32.4 = call %Make.specific_fn(%.loc31_28.3, @Make.%.loc25_62.3) -// CHECK:STDOUT: %.loc31_32.5: ref %C.14c = temporary %.loc31_32.4, %Make.call -// CHECK:STDOUT: %.loc31_32.6: %C.14c = acquire_value %.loc31_32.5 -// CHECK:STDOUT: %.loc31_13.1: type = splice_block %C [concrete = constants.%C.14c] { +// CHECK:STDOUT: %E.ref.loc20_22: type = name_ref E, file.%E.decl [concrete = constants.%E] +// CHECK:STDOUT: %.loc20_26: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct] +// CHECK:STDOUT: %E.ref.loc20_31: type = name_ref E, file.%E.decl [concrete = constants.%E] +// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete = constants.%empty_struct] +// CHECK:STDOUT: %.loc20_28.1: %E = as_compatible %empty_struct [concrete = constants.%E.val] +// CHECK:STDOUT: %.loc20_28.2: %E = converted %.loc20_26, %.loc20_28.1 [concrete = constants.%E.val] +// CHECK:STDOUT: %Z.facet.loc20_32.1: %Z.type = facet_value %E.ref.loc20_22, (constants.%Z.impl_witness) [concrete = constants.%Z.facet] +// CHECK:STDOUT: %.loc20_32.1: %Z.type = converted %E.ref.loc20_22, %Z.facet.loc20_32.1 [concrete = constants.%Z.facet] +// CHECK:STDOUT: %Z.facet.loc20_32.2: %Z.type = facet_value constants.%E, (constants.%Z.impl_witness) [concrete = constants.%Z.facet] +// CHECK:STDOUT: %.loc20_32.2: %Z.type = converted constants.%E, %Z.facet.loc20_32.2 [concrete = constants.%Z.facet] +// CHECK:STDOUT: %Z.facet.loc20_32.3: %Z.type = facet_value constants.%E, (constants.%Z.impl_witness) [concrete = constants.%Z.facet] +// CHECK:STDOUT: %.loc20_32.3: %Z.type = converted constants.%E, %Z.facet.loc20_32.3 [concrete = constants.%Z.facet] +// CHECK:STDOUT: %Make.specific_fn: = specific_function %Make.ref, @Make(constants.%Z.facet) [concrete = constants.%Make.specific_fn] +// CHECK:STDOUT: %.loc20_32.4: ref %C.10f = temporary_storage +// CHECK:STDOUT: %Make.call: init %C.10f to %.loc20_32.4 = call %Make.specific_fn(%.loc20_28.2, @Make.%.loc15_46.2) +// CHECK:STDOUT: %.loc20_32.5: ref %C.10f = temporary %.loc20_32.4, %Make.call +// CHECK:STDOUT: %.loc20_32.6: %C.10f = acquire_value %.loc20_32.5 +// CHECK:STDOUT: %.loc20_13.1: type = splice_block %C [concrete = constants.%C.10f] { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [concrete = constants.%C.generic] -// CHECK:STDOUT: %E.ref.loc31_12: type = name_ref E, file.%E.decl [concrete = constants.%E] -// CHECK:STDOUT: %facet_value.loc31_13: %facet_type = facet_value %E.ref.loc31_12, (constants.%Copy.impl_witness.e92, constants.%custom_witness.f8f19d.3) [concrete = constants.%facet_value] -// CHECK:STDOUT: %.loc31_13.2: %facet_type = converted %E.ref.loc31_12, %facet_value.loc31_13 [concrete = constants.%facet_value] -// CHECK:STDOUT: %C: type = class_type @C, @C(constants.%facet_value) [concrete = constants.%C.14c] +// CHECK:STDOUT: %E.ref.loc20_12: type = name_ref E, file.%E.decl [concrete = constants.%E] +// CHECK:STDOUT: %Z.facet.loc20_13: %Z.type = facet_value %E.ref.loc20_12, (constants.%Z.impl_witness) [concrete = constants.%Z.facet] +// CHECK:STDOUT: %.loc20_13.2: %Z.type = converted %E.ref.loc20_12, %Z.facet.loc20_13 [concrete = constants.%Z.facet] +// CHECK:STDOUT: %C: type = class_type @C, @C(constants.%Z.facet) [concrete = constants.%C.10f] // CHECK:STDOUT: } -// CHECK:STDOUT: %_: %C.14c = wrapper_binding _, %.loc31_32.6 +// CHECK:STDOUT: %_: %C.10f = wrapper_binding _, %.loc20_32.6 // CHECK:STDOUT: name_binding_decl { -// CHECK:STDOUT: %_.patt: %pattern_type.2cb = value_binding_pattern _ [concrete = constants.%_.patt] +// CHECK:STDOUT: %_.patt: %pattern_type.b01 = value_binding_pattern _ [concrete = constants.%_.patt] // CHECK:STDOUT: } -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound: = bound_method %.loc31_32.5, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.5 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call.loc31_32: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound(%.loc31_32.5) -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call.loc31_28: init %empty_tuple.type = call constants.%Destroy.WithSelf.SelfDestruct.bound(constants.%.b7b) +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound: = bound_method %.loc20_32.5, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.4 +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound(%.loc20_32.5) // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc31_13(%self.param: ref %E) = "no_op"; +// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc20_32.1(%self.param: ref %empty_struct_type) = "no_op"; // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc31_13(%self.param: ref %E) = "no_op"; +// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc20_32.1(%self.param: ref %empty_struct_type) = "no_op"; // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc31_13(%self.param: ref %E) { +// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc20_32.1(%self.param: ref %empty_struct_type) { +// CHECK:STDOUT: !entry: +// CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.Op.decl.5f94cf.1(%self.param) +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.SubobjectDestroy.decl.763c71.1(%self.param) +// CHECK:STDOUT: return +// CHECK:STDOUT: } +// CHECK:STDOUT: +// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc20_32.2(%self.param: ref %D) = "no_op"; +// CHECK:STDOUT: +// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc20_32.2(%self.param: ref %D) = "no_op"; +// CHECK:STDOUT: +// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc20_32.2(%self.param: ref %D) { +// CHECK:STDOUT: !entry: +// CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.Op.decl.5f94cf.2(%self.param) +// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.SubobjectDestroy.decl.763c71.2(%self.param) +// CHECK:STDOUT: return +// CHECK:STDOUT: } +// CHECK:STDOUT: +// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc20_32.3(%self.param: ref %struct_type.d.67c) { +// CHECK:STDOUT: !entry: +// CHECK:STDOUT: %.loc20: ref %D = struct_access %self.param, element0 +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound: = bound_method %.loc20, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.2 +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound(%.loc20) +// CHECK:STDOUT: return +// CHECK:STDOUT: } +// CHECK:STDOUT: +// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc20_32.3(%self.param: ref %struct_type.d.67c) = "no_op"; +// CHECK:STDOUT: +// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc20_32.3(%self.param: ref %struct_type.d.67c) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.Op.decl.5f94cf.3(%self.param) // CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.SubobjectDestroy.decl.763c71.3(%self.param) // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc31_32.1(%self.param: ref %struct_type.t.d.d81) { +// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc20_32.4(%self.param: ref %C.10f) { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc31_32.1: ref %D = struct_access %self.param, element1 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound.loc31_32.1: = bound_method %.loc31_32.1, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.2 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call.loc31_32.1: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound.loc31_32.1(%.loc31_32.1) -// CHECK:STDOUT: %.loc31_32.2: ref %E = struct_access %self.param, element0 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound.loc31_32.2: = bound_method %.loc31_32.2, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.3 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call.loc31_32.2: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound.loc31_32.2(%.loc31_32.2) +// CHECK:STDOUT: %d.ref: %C.elem.a58 = name_ref d, @C.%field_decl [concrete = @C.%field_decl] +// CHECK:STDOUT: %.loc20: ref %D = class_element_access %self.param, element0 +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound: = bound_method %.loc20, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.2 +// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound(%.loc20) // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc31_32.1(%self.param: ref %struct_type.t.d.d81) = "no_op"; +// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc20_32.4(%self.param: ref %C.10f) = "no_op"; // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc31_32.1(%self.param: ref %struct_type.t.d.d81) { +// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc20_32.4(%self.param: ref %C.10f) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.Op.decl.5f94cf.4(%self.param) // CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.SubobjectDestroy.decl.763c71.4(%self.param) // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.SubobjectDestroy.loc31_32.2(%self.param: ref %C.14c) { -// CHECK:STDOUT: !entry: -// CHECK:STDOUT: %d.ref: %C.elem.4f9 = name_ref d, @C.%field_decl.loc15 [concrete = @C.%field_decl.loc15] -// CHECK:STDOUT: %.loc31_32.1: ref %D = class_element_access %self.param, element1 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound.loc31_32.1: = bound_method %.loc31_32.1, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.2 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call.loc31_32.1: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound.loc31_32.1(%.loc31_32.1) -// CHECK:STDOUT: %t.ref: %C.elem.54c = name_ref t, @C.%field_decl.loc14 [concrete = @C.%field_decl.loc14] -// CHECK:STDOUT: %.loc31_32.2: ref %E = class_element_access %self.param, element0 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.bound.loc31_32.2: = bound_method %.loc31_32.2, constants.%Destroy.WithSelf.SelfDestruct.db3fdb.3 -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.call.loc31_32.2: init %empty_tuple.type = call %Destroy.WithSelf.SelfDestruct.bound.loc31_32.2(%.loc31_32.2) -// CHECK:STDOUT: return +// CHECK:STDOUT: specific @Make(constants.%T) { +// CHECK:STDOUT: %T.patt.loc15_18.2 => constants.%T.patt +// CHECK:STDOUT: %T.loc15_18.1 => constants.%T +// CHECK:STDOUT: %T.as_type.loc15_33.1 => constants.%T.as_type +// CHECK:STDOUT: %pattern_type.loc15_31 => constants.%pattern_type.cab +// CHECK:STDOUT: %t.param_patt.loc15_31.2 => constants.%t.param_patt.571 +// CHECK:STDOUT: %t.patt.loc15_31.2 => constants.%t.patt.a08 +// CHECK:STDOUT: %C.loc15_58.1 => constants.%C.ccf +// CHECK:STDOUT: %.loc15_58.2 => constants.%.20e +// CHECK:STDOUT: %pattern_type.loc15_58 => constants.%pattern_type.aa1 +// CHECK:STDOUT: %return.param_patt.loc15_58.2 => constants.%return.param_patt.c22 +// CHECK:STDOUT: %return.patt.loc15_52.2 => constants.%return.patt.a2c // CHECK:STDOUT: } // CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.Op.loc31_32.2(%self.param: ref %C.14c) = "no_op"; -// CHECK:STDOUT: -// CHECK:STDOUT: fn @Destroy.WithSelf.SelfDestruct.loc31_32.2(%self.param: ref %C.14c) { -// CHECK:STDOUT: !entry: -// CHECK:STDOUT: %Destroy.WithSelf.Op.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.Op.decl.5f94cf.5(%self.param) -// CHECK:STDOUT: %Destroy.WithSelf.SubobjectDestroy.call: init %empty_tuple.type = call generated.%Destroy.WithSelf.SubobjectDestroy.decl.763c71.5(%self.param) -// CHECK:STDOUT: return -// CHECK:STDOUT: } -// CHECK:STDOUT: -// CHECK:STDOUT: specific @Make(constants.%T.dc4) { -// CHECK:STDOUT: %T.patt.loc25_18.2 => constants.%T.patt.256 -// CHECK:STDOUT: %T.loc25_18.1 => constants.%T.dc4 -// CHECK:STDOUT: %T.as_type.loc25_49.1 => constants.%T.as_type.5d6 -// CHECK:STDOUT: %pattern_type.loc25_47 => constants.%pattern_type.0e9 -// CHECK:STDOUT: %t.param_patt.loc25_47.2 => constants.%t.param_patt.081 -// CHECK:STDOUT: %t.patt.loc25_47.2 => constants.%t.patt.4d1 -// CHECK:STDOUT: %C.loc25_74.1 => constants.%C.210 -// CHECK:STDOUT: %.loc25_74.2 => constants.%.501 -// CHECK:STDOUT: %pattern_type.loc25_74 => constants.%pattern_type.0b5 -// CHECK:STDOUT: %return.param_patt.loc25_74.2 => constants.%return.param_patt.2c6 -// CHECK:STDOUT: %return.patt.loc25_68.2 => constants.%return.patt.a82 -// CHECK:STDOUT: } -// CHECK:STDOUT: -// CHECK:STDOUT: specific @Make(constants.%facet_value) { -// CHECK:STDOUT: %T.patt.loc25_18.2 => constants.%T.patt.256 -// CHECK:STDOUT: %T.loc25_18.1 => constants.%facet_value -// CHECK:STDOUT: %T.as_type.loc25_49.1 => constants.%E -// CHECK:STDOUT: %pattern_type.loc25_47 => constants.%pattern_type.849 -// CHECK:STDOUT: %t.param_patt.loc25_47.2 => constants.%t.param_patt.307 -// CHECK:STDOUT: %t.patt.loc25_47.2 => constants.%t.patt.404 -// CHECK:STDOUT: %C.loc25_74.1 => constants.%C.14c -// CHECK:STDOUT: %.loc25_74.2 => constants.%.2c0 -// CHECK:STDOUT: %pattern_type.loc25_74 => constants.%pattern_type.2cb -// CHECK:STDOUT: %return.param_patt.loc25_74.2 => constants.%return.param_patt.ef6 -// CHECK:STDOUT: %return.patt.loc25_68.2 => constants.%return.patt.971 +// CHECK:STDOUT: specific @Make(constants.%Z.facet) { +// CHECK:STDOUT: %T.patt.loc15_18.2 => constants.%T.patt +// CHECK:STDOUT: %T.loc15_18.1 => constants.%Z.facet +// CHECK:STDOUT: %T.as_type.loc15_33.1 => constants.%E +// CHECK:STDOUT: %pattern_type.loc15_31 => constants.%pattern_type.849 +// CHECK:STDOUT: %t.param_patt.loc15_31.2 => constants.%t.param_patt.307 +// CHECK:STDOUT: %t.patt.loc15_31.2 => constants.%t.patt.404 +// CHECK:STDOUT: %C.loc15_58.1 => constants.%C.10f +// CHECK:STDOUT: %.loc15_58.2 => constants.%.c85 +// CHECK:STDOUT: %pattern_type.loc15_58 => constants.%pattern_type.b01 +// CHECK:STDOUT: %return.param_patt.loc15_58.2 => constants.%return.param_patt.a86 +// CHECK:STDOUT: %return.patt.loc15_52.2 => constants.%return.patt.4c6 // CHECK:STDOUT: // CHECK:STDOUT: !definition: -// CHECK:STDOUT: %require_complete.loc25 => constants.%complete_type.357 -// CHECK:STDOUT: %require_complete.loc26 => constants.%complete_type.031 -// CHECK:STDOUT: %c.patt.loc26_8.2 => constants.%c.patt.1a7 -// CHECK:STDOUT: %struct_type.t.d => constants.%struct_type.t.d.d81 -// CHECK:STDOUT: %Copy.lookup_impl_witness.loc26 => constants.%Copy.impl_witness.e92 -// CHECK:STDOUT: %Copy.facet.loc26_23.3 => constants.%Copy.facet.b77 -// CHECK:STDOUT: %Copy.WithSelf.Op.type.loc26 => constants.%Copy.WithSelf.Op.type.0e9 -// CHECK:STDOUT: %.loc26_23.3 => constants.%.01c -// CHECK:STDOUT: %impl.elem0.loc26_23.2 => constants.%E.as.Copy.impl.Op -// CHECK:STDOUT: %specific_impl_fn.loc26_23.2 => constants.%E.as.Copy.impl.Op -// CHECK:STDOUT: %.loc27_10.3 => constants.%.229 -// CHECK:STDOUT: %Copy.lookup_impl_witness.loc27 => constants.%Copy.impl_witness.b05 -// CHECK:STDOUT: %Copy.facet.loc27_10.3 => constants.%Copy.facet.9af -// CHECK:STDOUT: %Copy.WithSelf.Op.type.loc27 => constants.%Copy.WithSelf.Op.type.ccc -// CHECK:STDOUT: %.loc27_10.4 => constants.%.61f -// CHECK:STDOUT: %impl.elem0.loc27_10.2 => constants.%C.as.Copy.impl.Op.159 -// CHECK:STDOUT: %specific_impl_fn.loc27_10.2 => constants.%C.as.Copy.impl.Op.specific_fn -// CHECK:STDOUT: %Destroy.lookup_impl_witness => constants.%custom_witness.f8f19d.5 -// CHECK:STDOUT: %Destroy.facet.loc26_32.3 => constants.%Destroy.facet.64d -// CHECK:STDOUT: %Destroy.WithSelf.SelfDestruct.type => constants.%Destroy.WithSelf.SelfDestruct.type.01e -// CHECK:STDOUT: %.loc26_32.13 => constants.%.1d0 -// CHECK:STDOUT: %impl.elem2.loc26_32.2 => constants.%Destroy.WithSelf.SelfDestruct.db3fdb.5 -// CHECK:STDOUT: %specific_impl_fn.loc26_32.2 => constants.%Destroy.WithSelf.SelfDestruct.db3fdb.5 +// CHECK:STDOUT: %require_complete.loc15_31 => constants.%complete_type.357 +// CHECK:STDOUT: %require_complete.loc15_52 => constants.%complete_type.e41 +// CHECK:STDOUT: %C.val => constants.%C.val.a4f // CHECK:STDOUT: } // CHECK:STDOUT: