Make SemIR::TypeType be an empty FacetType instruction (#7813)

The type `type` is now a `FacetType` inst with no constraints. This
brings the model implemented in the toolchain into better alignment with
the language design. The `SemIR::TypeType` struct remains as a scope for
holding the `TypeInstId`, `ConstantId`, and `TypeId` constants, but is
not an `InstKind` anymore.

The `TypeType` inst looks a lot like singletons, but there are many
`FacetType` insts so it doesn't quite fit that model. So we put it
alongside singletons with a fixed inst id but refer to it as a more
general "builtin" inst that is not a singleton.
`Namespace::PackageInstId` is similar, and we group it with `TypeType`
conceptually as another builtin instruction with a fixed id.

No conversion is needed anymore to use a `type` as a facet, since types
also have a `FacetType` type. This simplifies and removes a number of
helpers and branches throughout the code.

The `TypeType` inst is now part of the constant store, so we end up
printing it in the constants block in every test. But it's also named
`type` rather than `%type` to preserve the majority of existing
formatting behaviour, though this does look different from other
constants.

Assisted-by: Opus 5 was used to generate a first draft and validate the
refactoring. Though nearly everything non-trivial the tool wrote has
been modified or rewritten.
This commit is contained in:
Dana Jansens
2026-09-22 15:04:40 +00:00
committed by GitHub
parent 83ca5b71e3
commit fcae9610bd
795 changed files with 9505 additions and 8048 deletions
@@ -34,6 +34,7 @@ var a2: Cpp.Second(Cpp.B, Cpp.A) = Cpp.A.A();
// CHECK:STDOUT: --- use_alias_template.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %First.type: type = cpp_type_template_type First [concrete]
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
// CHECK:STDOUT: %First.template: %First.type = struct_value () [concrete]
@@ -121,6 +121,7 @@ var too_many: Cpp.FixedSizePack(Cpp.A, Cpp.A).Inner(Cpp.B, Cpp.B, Cpp.B);
// CHECK:STDOUT: --- valid.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %TwoTypes: type = class_type @TwoTypes [concrete]
// CHECK:STDOUT: %pattern_type.83a: type = pattern_type %TwoTypes [concrete]
// CHECK:STDOUT: %x.patt: %pattern_type.83a = ref_binding_pattern x [concrete]
@@ -168,6 +169,7 @@ var too_many: Cpp.FixedSizePack(Cpp.A, Cpp.A).Inner(Cpp.B, Cpp.B, Cpp.B);
// CHECK:STDOUT: --- pack.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %TypePack.78f: type = class_type @TypePack.1 [concrete]
// CHECK:STDOUT: %pattern_type.a64: type = pattern_type %TypePack.78f [concrete]
// CHECK:STDOUT: %a0.patt: %pattern_type.a64 = ref_binding_pattern a0 [concrete]
@@ -33,6 +33,7 @@ var a: Cpp.A = Cpp.X(Cpp.A, Cpp.B).f({} as Cpp.B);
// CHECK:STDOUT: --- use_class_template.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %A: type = class_type @A [concrete]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
@@ -36,6 +36,7 @@ var x2: X(Cpp.IsLarge(Cpp.Large)) = X(true).Make();
// CHECK:STDOUT: --- use_concept.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %X.type: type = generic_class_type @X [concrete]
// CHECK:STDOUT: %X.generic: %X.type = struct_value () [concrete]
// CHECK:STDOUT: %IsLarge.type: type = cpp_type_template_type IsLarge [concrete]
@@ -36,10 +36,10 @@ fn G() {
// CHECK:STDOUT: --- generic_call.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: %type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %.Self.frozen: %type = symbolic_binding .Self [symbolic_self]
// CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
// CHECK:STDOUT: %T.patt.d47: %pattern_type.98f = symbolic_binding_pattern T, 0 [symbolic]
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %.Self.frozen: type = symbolic_binding .Self [symbolic_self]
// CHECK:STDOUT: %pattern_type.9a5: type = pattern_type type [concrete]
// CHECK:STDOUT: %T.patt.3a0: %pattern_type.9a5 = symbolic_binding_pattern T, 0 [symbolic]
// CHECK:STDOUT: %T.67d: type = symbolic_binding T, 0 [symbolic]
// CHECK:STDOUT: %pattern_type.51d1c4.1: type = pattern_type %T.67d [symbolic]
// CHECK:STDOUT: %x.param_patt.91d: %pattern_type.51d1c4.1 = value_param_pattern [symbolic]
@@ -53,11 +53,11 @@ fn G() {
// CHECK:STDOUT: %.a92: type = template_inst %T.67d [template]
// CHECK:STDOUT: %.d46: type = type_of_inst @F.%.loc8_24.5 [template]
// CHECK:STDOUT: %.de1: %.d46 = splice_inst @F.%.loc8_24.5 [template]
// CHECK:STDOUT: %.bc2: type = splice_inst @F.%.loc8_24.8 [template]
// CHECK:STDOUT: %require_complete.e38: <witness> = require_complete_type %.bc2 [template]
// CHECK:STDOUT: %pattern_type.aa8: type = pattern_type %.bc2 [template]
// CHECK:STDOUT: %v.patt.295: %pattern_type.aa8 = ref_binding_pattern v [template]
// CHECK:STDOUT: %v.var_patt.ab7: %pattern_type.aa8 = var_pattern %v.patt.295 [template]
// CHECK:STDOUT: %.5cd: type = splice_inst @F.%.loc8_24.8 [template]
// CHECK:STDOUT: %require_complete.363: <witness> = require_complete_type %.5cd [template]
// CHECK:STDOUT: %pattern_type.a1f: type = pattern_type %.5cd [template]
// CHECK:STDOUT: %v.patt.019: %pattern_type.a1f = ref_binding_pattern v [template]
// CHECK:STDOUT: %v.var_patt.d78: %pattern_type.a1f = var_pattern %v.patt.019 [template]
// CHECK:STDOUT: %DefaultOrUnformed.type: type = facet_type <@DefaultOrUnformed> [concrete]
// CHECK:STDOUT: %Self.935: %DefaultOrUnformed.type = symbolic_binding Self, 0 [symbolic]
// CHECK:STDOUT: %DefaultOrUnformed.WithSelf.Op.type.8f1: type = fn_type @DefaultOrUnformed.WithSelf.Op, @DefaultOrUnformed.WithSelf(%Self.935) [symbolic]
@@ -66,34 +66,34 @@ fn G() {
// CHECK:STDOUT: %T.b09: %Default.type = symbolic_binding T, 0 [symbolic]
// CHECK:STDOUT: %T.as_type.as.DefaultOrUnformed.impl.Op.type.0c9: type = fn_type @T.as_type.as.DefaultOrUnformed.impl.Op, @T.as_type.as.DefaultOrUnformed.impl(%T.b09) [symbolic]
// CHECK:STDOUT: %T.as_type.as.DefaultOrUnformed.impl.Op.cfe: %T.as_type.as.DefaultOrUnformed.impl.Op.type.0c9 = struct_value () [symbolic]
// CHECK:STDOUT: %DefaultOrUnformed.lookup_impl_witness: <witness> = lookup_impl_witness %.bc2, @DefaultOrUnformed [template]
// CHECK:STDOUT: %.c1c: require_specific_def_type = require_specific_def @T.as.DefaultOrUnformed.impl(%.bc2) [template]
// CHECK:STDOUT: %DefaultOrUnformed.facet.680: %DefaultOrUnformed.type = facet_value %.bc2, (%DefaultOrUnformed.lookup_impl_witness) [template]
// CHECK:STDOUT: %.d9c: type = type_of_inst @F.%.loc8_25.7 [template]
// CHECK:STDOUT: %.b48: %.d9c = splice_inst @F.%.loc8_25.7 [template]
// CHECK:STDOUT: %.8ed: type = type_of_inst @F.%.loc8_25.10 [template]
// CHECK:STDOUT: %.9fe: %.8ed = splice_inst @F.%.loc8_25.10 [template]
// CHECK:STDOUT: %DefaultOrUnformed.lookup_impl_witness: <witness> = lookup_impl_witness %.5cd, @DefaultOrUnformed [template]
// CHECK:STDOUT: %.f4d: require_specific_def_type = require_specific_def @T.as.DefaultOrUnformed.impl(%.5cd) [template]
// CHECK:STDOUT: %DefaultOrUnformed.facet.a1a: %DefaultOrUnformed.type = facet_value %.5cd, (%DefaultOrUnformed.lookup_impl_witness) [template]
// CHECK:STDOUT: %.c72: type = type_of_inst @F.%.loc8_25.7 [template]
// CHECK:STDOUT: %.0a6: %.c72 = splice_inst @F.%.loc8_25.7 [template]
// CHECK:STDOUT: %.463: type = type_of_inst @F.%.loc8_25.10 [template]
// CHECK:STDOUT: %.ba3: %.463 = splice_inst @F.%.loc8_25.10 [template]
// CHECK:STDOUT: %ImplicitAs.type.0ff: type = generic_interface_type @ImplicitAs [concrete]
// CHECK:STDOUT: %ImplicitAs.generic: %ImplicitAs.type.0ff = struct_value () [concrete]
// CHECK:STDOUT: %.7700f4.1: type = type_of_inst @F.%.loc8_3.15 [template]
// CHECK:STDOUT: %.735308.1: %.7700f4.1 = splice_inst @F.%.loc8_3.15 [template]
// CHECK:STDOUT: %.24708c.1: type = type_of_inst @F.%.loc8_3.18 [template]
// CHECK:STDOUT: %.cc0a4d.1: %.24708c.1 = splice_inst @F.%.loc8_3.18 [template]
// CHECK:STDOUT: %.1f2: type = type_of_inst @F.%.loc8_3.21 [template]
// CHECK:STDOUT: %.825: %.1f2 = splice_inst @F.%.loc8_3.21 [template]
// CHECK:STDOUT: %.f83: type = type_of_inst @F.%.loc8_3.24 [template]
// CHECK:STDOUT: %.cd6: %.f83 = splice_inst @F.%.loc8_3.24 [template]
// CHECK:STDOUT: %.e20: %.bc2 = splice_inst @F.%.loc8_3.27 [template]
// CHECK:STDOUT: %.585e1e.1: type = type_of_inst @F.%.loc8_3.15 [template]
// CHECK:STDOUT: %.b296a8.1: %.585e1e.1 = splice_inst @F.%.loc8_3.15 [template]
// CHECK:STDOUT: %.e218d7.1: type = type_of_inst @F.%.loc8_3.18 [template]
// CHECK:STDOUT: %.f58188.1: %.e218d7.1 = splice_inst @F.%.loc8_3.18 [template]
// CHECK:STDOUT: %.797: type = type_of_inst @F.%.loc8_3.21 [template]
// CHECK:STDOUT: %.664: %.797 = splice_inst @F.%.loc8_3.21 [template]
// CHECK:STDOUT: %.9f0: type = type_of_inst @F.%.loc8_3.24 [template]
// CHECK:STDOUT: %.0f3: %.9f0 = splice_inst @F.%.loc8_3.24 [template]
// CHECK:STDOUT: %.e77: %.5cd = splice_inst @F.%.loc8_3.27 [template]
// CHECK:STDOUT: %Destroy.type: type = facet_type <@Destroy> [concrete]
// CHECK:STDOUT: %Self.0e7: %Destroy.type = symbolic_binding Self, 0 [symbolic]
// CHECK:STDOUT: %Destroy.WithSelf.Op.type.d3e: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Self.0e7) [symbolic]
// CHECK:STDOUT: %Destroy.WithSelf.Op.42b: %Destroy.WithSelf.Op.type.d3e = struct_value () [symbolic]
// CHECK:STDOUT: %Destroy.assoc_type: type = assoc_entity_type @Destroy [concrete]
// CHECK:STDOUT: %assoc0.ae8: %Destroy.assoc_type = assoc_entity element0, imports.%Core.import_ref.918 [concrete]
// CHECK:STDOUT: %.d1a: type = type_of_inst @F.%.loc8_3.29 [template]
// CHECK:STDOUT: %.a68: %.d1a = splice_inst @F.%.loc8_3.29 [template]
// CHECK:STDOUT: %.ecf: type = type_of_inst @F.%.loc8_3.32 [template]
// CHECK:STDOUT: %.264: %.ecf = splice_inst @F.%.loc8_3.32 [template]
// CHECK:STDOUT: %.f94: type = type_of_inst @F.%.loc8_3.29 [template]
// CHECK:STDOUT: %.457: %.f94 = splice_inst @F.%.loc8_3.29 [template]
// CHECK:STDOUT: %.98a: type = type_of_inst @F.%.loc8_3.32 [template]
// CHECK:STDOUT: %.610: %.98a = splice_inst @F.%.loc8_3.32 [template]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %X: type = class_type @X [concrete]
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
@@ -102,7 +102,7 @@ fn G() {
// CHECK:STDOUT: %x.patt.af8: %pattern_type.fa7 = wrapper_binding_pattern x, %x.param_patt.468 [concrete]
// CHECK:STDOUT: %S: type = class_type @S [concrete]
// CHECK:STDOUT: %inst.splice_block.5af: <instruction> = inst_value [concrete] {
// CHECK:STDOUT: %.788c: type = splice_block imports.%S.decl [concrete = %S] {}
// CHECK:STDOUT: %.788: type = splice_block imports.%S.decl [concrete = %S] {}
// CHECK:STDOUT: }
// CHECK:STDOUT: %inst.splice_block.c1e: <instruction> = inst_value [concrete] {
// CHECK:STDOUT: %.895: type = splice_block %S [concrete = %S] {}
@@ -138,20 +138,20 @@ fn G() {
// CHECK:STDOUT: %T.as_type.as.DefaultOrUnformed.impl.Op.call: init %S to %.746 = call %T.as_type.as.DefaultOrUnformed.impl.Op.specific_fn.e6b3f4.2()
// CHECK:STDOUT: }
// CHECK:STDOUT: }
// CHECK:STDOUT: %.d2b: <instruction> = call_action (%ImplicitAs.generic, %.bc2), false [template]
// CHECK:STDOUT: %.7700f4.2: type = type_of_inst %.d2b [template]
// CHECK:STDOUT: %.735308.2: %.7700f4.2 = splice_inst %.d2b [template]
// CHECK:STDOUT: %.e6e: <instruction> = access_member_action %.735308.2, Convert [template]
// CHECK:STDOUT: %.24708c.2: type = type_of_inst %.e6e [template]
// CHECK:STDOUT: %.cc0a4d.2: %.24708c.2 = splice_inst %.e6e [template]
// CHECK:STDOUT: %.f9f: <instruction> = compound_member_access_action %.cc7, %.cc0a4d.2 [template]
// CHECK:STDOUT: %.828: type = type_of_inst %.f9f [template]
// CHECK:STDOUT: %.9e3: %.828 = splice_inst %.f9f [template]
// CHECK:STDOUT: %.497: <instruction> = call_action (%.9e3), true [template]
// CHECK:STDOUT: %.30d: type = type_of_inst %.497 [template]
// CHECK:STDOUT: %.1ea: %.30d = splice_inst %.497 [template]
// CHECK:STDOUT: %.7884: <instruction> = convert_to_category_action %.1ea, element10 [template]
// CHECK:STDOUT: %.dcc: %S = splice_inst %.7884 [template]
// CHECK:STDOUT: %.352: <instruction> = call_action (%ImplicitAs.generic, %.5cd), false [template]
// CHECK:STDOUT: %.585e1e.2: type = type_of_inst %.352 [template]
// CHECK:STDOUT: %.b296a8.2: %.585e1e.2 = splice_inst %.352 [template]
// CHECK:STDOUT: %.556: <instruction> = access_member_action %.b296a8.2, Convert [template]
// CHECK:STDOUT: %.e218d7.2: type = type_of_inst %.556 [template]
// CHECK:STDOUT: %.f58188.2: %.e218d7.2 = splice_inst %.556 [template]
// CHECK:STDOUT: %.955: <instruction> = compound_member_access_action %.cc7, %.f58188.2 [template]
// CHECK:STDOUT: %.5c9: type = type_of_inst %.955 [template]
// CHECK:STDOUT: %.2bf: %.5c9 = splice_inst %.955 [template]
// CHECK:STDOUT: %.9a4: <instruction> = call_action (%.2bf), true [template]
// CHECK:STDOUT: %.94b: type = type_of_inst %.9a4 [template]
// CHECK:STDOUT: %.a03: %.94b = splice_inst %.9a4 [template]
// CHECK:STDOUT: %.169: <instruction> = convert_to_category_action %.a03, element10 [template]
// CHECK:STDOUT: %.217: %S = splice_inst %.169 [template]
// CHECK:STDOUT: %S.cpp_destructor.type: type = fn_type @S.cpp_destructor [concrete]
// CHECK:STDOUT: %S.cpp_destructor: %S.cpp_destructor.type = struct_value () [concrete]
// CHECK:STDOUT: %S.Op.type.83af6e.2: type = fn_type @S.Op.2 [concrete]
@@ -160,19 +160,19 @@ fn G() {
// CHECK:STDOUT: %Destroy.facet.2e5: %Destroy.type = facet_value %S, (%custom_witness.e7a31c.2) [concrete]
// CHECK:STDOUT: %Destroy.WithSelf.Op.type.5df: type = fn_type @Destroy.WithSelf.Op, @Destroy.WithSelf(%Destroy.facet.2e5) [concrete]
// CHECK:STDOUT: %.670: type = fn_type_with_self_type %Destroy.WithSelf.Op.type.5df, %Destroy.facet.2e5 [concrete]
// CHECK:STDOUT: %inst.splice_block.9ce: <instruction> = inst_value [concrete] {
// CHECK:STDOUT: %.09f: <bound method> = splice_block %bound_method {
// CHECK:STDOUT: %.b4f: ref %S = specific_inst @F.%v.var, @F(%X)
// CHECK:STDOUT: %inst.splice_block.b32: <instruction> = inst_value [concrete] {
// CHECK:STDOUT: %.ef5: <bound method> = splice_block %bound_method {
// CHECK:STDOUT: %.e7d: ref %S = specific_inst @F.%v.var, @F(%X)
// CHECK:STDOUT: <elided>
// CHECK:STDOUT: %impl.elem0.c3e: %.670 = impl_witness_access %custom_witness.e7a31c.2, element0 [concrete = %S.Op.4dca31.2]
// CHECK:STDOUT: %bound_method: <bound method> = bound_method %.b4f, %impl.elem0.c3e
// CHECK:STDOUT: %bound_method: <bound method> = bound_method %.e7d, %impl.elem0.c3e
// CHECK:STDOUT: }
// CHECK:STDOUT: }
// CHECK:STDOUT: %inst.splice_block.f2c: <instruction> = inst_value [concrete] {
// CHECK:STDOUT: %.88c: init %empty_tuple.type = splice_block %S.cpp_destructor.call {
// CHECK:STDOUT: %inst.splice_block.5c0: <instruction> = inst_value [concrete] {
// CHECK:STDOUT: %.052: init %empty_tuple.type = splice_block %S.cpp_destructor.call {
// CHECK:STDOUT: %Op.ref.6a0: %S.cpp_destructor.type = name_ref Op, imports.%S.cpp_destructor.decl [concrete = %S.cpp_destructor]
// CHECK:STDOUT: %S.cpp_destructor.bound: <bound method> = bound_method %.b4f, %Op.ref.6a0
// CHECK:STDOUT: %S.cpp_destructor.call: init %empty_tuple.type = call %S.cpp_destructor.bound(%.b4f)
// CHECK:STDOUT: %S.cpp_destructor.bound: <bound method> = bound_method %.e7d, %Op.ref.6a0
// CHECK:STDOUT: %S.cpp_destructor.call: init %empty_tuple.type = call %S.cpp_destructor.bound(%.e7d)
// CHECK:STDOUT: }
// CHECK:STDOUT: }
// CHECK:STDOUT: }
@@ -200,12 +200,12 @@ fn G() {
// CHECK:STDOUT:
// CHECK:STDOUT: file {
// CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [concrete = constants.%F] {
// CHECK:STDOUT: %T.patt.loc7_7.1: %pattern_type.98f = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc7_7.2 (constants.%T.patt.d47)]
// CHECK:STDOUT: %T.patt.loc7_7.1: %pattern_type.9a5 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc7_7.2 (constants.%T.patt.3a0)]
// CHECK:STDOUT: %x.param_patt.loc7_23.1: @F.%pattern_type.loc7 (%pattern_type.51d1c4.1) = value_param_pattern [symbolic = %x.param_patt.loc7_23.2 (constants.%x.param_patt.91d)]
// CHECK:STDOUT: %x.patt.loc7_23.1: @F.%pattern_type.loc7 (%pattern_type.51d1c4.1) = wrapper_binding_pattern x, %x.param_patt.loc7_23.1 [symbolic = %x.patt.loc7_23.2 (constants.%x.patt.260)]
// CHECK:STDOUT: } {
// CHECK:STDOUT: %.loc7_9.1: type = splice_block %.loc7_9.2 [concrete = type] {
// CHECK:STDOUT: %.Self.frozen: %type = symbolic_binding .Self [symbolic_self = constants.%.Self.frozen]
// CHECK:STDOUT: %.Self.frozen: type = symbolic_binding .Self [symbolic_self = constants.%.Self.frozen]
// CHECK:STDOUT: %.loc7_9.2: type = type_literal type [concrete = type]
// CHECK:STDOUT: }
// CHECK:STDOUT: %T.loc7_7.2: type = symbolic_binding T, 0 [symbolic = %T.loc7_7.1 (constants.%T.67d)]
@@ -216,7 +216,7 @@ fn G() {
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: generic fn @F(%T.loc7_7.2: type) {
// CHECK:STDOUT: %T.patt.loc7_7.2: %pattern_type.98f = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc7_7.2 (constants.%T.patt.d47)]
// CHECK:STDOUT: %T.patt.loc7_7.2: %pattern_type.9a5 = symbolic_binding_pattern T, 0 [symbolic = %T.patt.loc7_7.2 (constants.%T.patt.3a0)]
// CHECK:STDOUT: %T.loc7_7.1: type = symbolic_binding T, 0 [symbolic = %T.loc7_7.1 (constants.%T.67d)]
// CHECK:STDOUT: %pattern_type.loc7: type = pattern_type %T.loc7_7.1 [symbolic = %pattern_type.loc7 (constants.%pattern_type.51d1c4.1)]
// CHECK:STDOUT: %x.param_patt.loc7_23.2: @F.%pattern_type.loc7 (%pattern_type.51d1c4.1) = value_param_pattern [symbolic = %x.param_patt.loc7_23.2 (constants.%x.param_patt.91d)]
@@ -229,85 +229,85 @@ fn G() {
// CHECK:STDOUT: %.loc8_24.6: type = type_of_inst %.loc8_24.5 [template = %.loc8_24.6 (constants.%.d46)]
// CHECK:STDOUT: %.loc8_24.7: @F.%.loc8_24.6 (%.d46) = splice_inst %.loc8_24.5 [template = %.loc8_24.7 (constants.%.de1)]
// CHECK:STDOUT: %.loc8_24.8: <instruction> = convert_to_value_action %.loc8_24.3, type [template]
// CHECK:STDOUT: %.loc8_24.9: type = splice_inst %.loc8_24.8 [template = %.loc8_24.9 (constants.%.bc2)]
// CHECK:STDOUT: %require_complete.loc8: <witness> = require_complete_type %.loc8_24.9 [template = %require_complete.loc8 (constants.%require_complete.e38)]
// CHECK:STDOUT: %pattern_type.loc8: type = pattern_type %.loc8_24.9 [template = %pattern_type.loc8 (constants.%pattern_type.aa8)]
// CHECK:STDOUT: %v.patt.loc8_15.2: @F.%pattern_type.loc8 (%pattern_type.aa8) = ref_binding_pattern v [template = %v.patt.loc8_15.2 (constants.%v.patt.295)]
// CHECK:STDOUT: %v.var_patt.loc8_3.2: @F.%pattern_type.loc8 (%pattern_type.aa8) = var_pattern %v.patt.loc8_15.2 [template = %v.var_patt.loc8_3.2 (constants.%v.var_patt.ab7)]
// CHECK:STDOUT: %.loc8_25.6: require_specific_def_type = require_specific_def @T.as.DefaultOrUnformed.impl(%.loc8_24.9) [template = %.loc8_25.6 (constants.%.c1c)]
// CHECK:STDOUT: %.loc8_24.9: type = splice_inst %.loc8_24.8 [template = %.loc8_24.9 (constants.%.5cd)]
// CHECK:STDOUT: %require_complete.loc8: <witness> = require_complete_type %.loc8_24.9 [template = %require_complete.loc8 (constants.%require_complete.363)]
// CHECK:STDOUT: %pattern_type.loc8: type = pattern_type %.loc8_24.9 [template = %pattern_type.loc8 (constants.%pattern_type.a1f)]
// CHECK:STDOUT: %v.patt.loc8_15.2: @F.%pattern_type.loc8 (%pattern_type.a1f) = ref_binding_pattern v [template = %v.patt.loc8_15.2 (constants.%v.patt.019)]
// CHECK:STDOUT: %v.var_patt.loc8_3.2: @F.%pattern_type.loc8 (%pattern_type.a1f) = var_pattern %v.patt.loc8_15.2 [template = %v.var_patt.loc8_3.2 (constants.%v.var_patt.d78)]
// CHECK:STDOUT: %.loc8_25.6: require_specific_def_type = require_specific_def @T.as.DefaultOrUnformed.impl(%.loc8_24.9) [template = %.loc8_25.6 (constants.%.f4d)]
// CHECK:STDOUT: %DefaultOrUnformed.lookup_impl_witness: <witness> = lookup_impl_witness %.loc8_24.9, @DefaultOrUnformed [template = %DefaultOrUnformed.lookup_impl_witness (constants.%DefaultOrUnformed.lookup_impl_witness)]
// CHECK:STDOUT: %DefaultOrUnformed.facet.loc8_25.2: %DefaultOrUnformed.type = facet_value %.loc8_24.9, (%DefaultOrUnformed.lookup_impl_witness) [template = %DefaultOrUnformed.facet.loc8_25.2 (constants.%DefaultOrUnformed.facet.680)]
// CHECK:STDOUT: %DefaultOrUnformed.facet.loc8_25.2: %DefaultOrUnformed.type = facet_value %.loc8_24.9, (%DefaultOrUnformed.lookup_impl_witness) [template = %DefaultOrUnformed.facet.loc8_25.2 (constants.%DefaultOrUnformed.facet.a1a)]
// CHECK:STDOUT: %.loc8_25.7: <instruction> = access_member_action %.loc8_25.1, Op [template]
// CHECK:STDOUT: %.loc8_25.8: type = type_of_inst %.loc8_25.7 [template = %.loc8_25.8 (constants.%.d9c)]
// CHECK:STDOUT: %.loc8_25.9: @F.%.loc8_25.8 (%.d9c) = splice_inst %.loc8_25.7 [template = %.loc8_25.9 (constants.%.b48)]
// CHECK:STDOUT: %.loc8_25.8: type = type_of_inst %.loc8_25.7 [template = %.loc8_25.8 (constants.%.c72)]
// CHECK:STDOUT: %.loc8_25.9: @F.%.loc8_25.8 (%.c72) = splice_inst %.loc8_25.7 [template = %.loc8_25.9 (constants.%.0a6)]
// CHECK:STDOUT: %.loc8_25.10: <instruction> = call_action (%.loc8_25.3), false [template]
// CHECK:STDOUT: %.loc8_25.11: type = type_of_inst %.loc8_25.10 [template = %.loc8_25.11 (constants.%.8ed)]
// CHECK:STDOUT: %.loc8_25.12: @F.%.loc8_25.11 (%.8ed) = splice_inst %.loc8_25.10 [template = %.loc8_25.12 (constants.%.9fe)]
// CHECK:STDOUT: %.loc8_3.15: <instruction> = call_action (constants.%ImplicitAs.generic, constants.%.bc2), false [template]
// CHECK:STDOUT: %.loc8_3.16: type = type_of_inst %.loc8_3.15 [template = %.loc8_3.16 (constants.%.7700f4.1)]
// CHECK:STDOUT: %.loc8_3.17: @F.%.loc8_3.16 (%.7700f4.1) = splice_inst %.loc8_3.15 [template = %.loc8_3.17 (constants.%.735308.1)]
// CHECK:STDOUT: %.loc8_25.11: type = type_of_inst %.loc8_25.10 [template = %.loc8_25.11 (constants.%.463)]
// CHECK:STDOUT: %.loc8_25.12: @F.%.loc8_25.11 (%.463) = splice_inst %.loc8_25.10 [template = %.loc8_25.12 (constants.%.ba3)]
// CHECK:STDOUT: %.loc8_3.15: <instruction> = call_action (constants.%ImplicitAs.generic, constants.%.5cd), false [template]
// CHECK:STDOUT: %.loc8_3.16: type = type_of_inst %.loc8_3.15 [template = %.loc8_3.16 (constants.%.585e1e.1)]
// CHECK:STDOUT: %.loc8_3.17: @F.%.loc8_3.16 (%.585e1e.1) = splice_inst %.loc8_3.15 [template = %.loc8_3.17 (constants.%.b296a8.1)]
// CHECK:STDOUT: %.loc8_3.18: <instruction> = access_member_action %.loc8_3.2, Convert [template]
// CHECK:STDOUT: %.loc8_3.19: type = type_of_inst %.loc8_3.18 [template = %.loc8_3.19 (constants.%.24708c.1)]
// CHECK:STDOUT: %.loc8_3.20: @F.%.loc8_3.19 (%.24708c.1) = splice_inst %.loc8_3.18 [template = %.loc8_3.20 (constants.%.cc0a4d.1)]
// CHECK:STDOUT: %.loc8_3.19: type = type_of_inst %.loc8_3.18 [template = %.loc8_3.19 (constants.%.e218d7.1)]
// CHECK:STDOUT: %.loc8_3.20: @F.%.loc8_3.19 (%.e218d7.1) = splice_inst %.loc8_3.18 [template = %.loc8_3.20 (constants.%.f58188.1)]
// CHECK:STDOUT: %.loc8_3.21: <instruction> = compound_member_access_action %.loc8_25.5, %.loc8_3.4 [template]
// CHECK:STDOUT: %.loc8_3.22: type = type_of_inst %.loc8_3.21 [template = %.loc8_3.22 (constants.%.1f2)]
// CHECK:STDOUT: %.loc8_3.23: @F.%.loc8_3.22 (%.1f2) = splice_inst %.loc8_3.21 [template = %.loc8_3.23 (constants.%.825)]
// CHECK:STDOUT: %.loc8_3.22: type = type_of_inst %.loc8_3.21 [template = %.loc8_3.22 (constants.%.797)]
// CHECK:STDOUT: %.loc8_3.23: @F.%.loc8_3.22 (%.797) = splice_inst %.loc8_3.21 [template = %.loc8_3.23 (constants.%.664)]
// CHECK:STDOUT: %.loc8_3.24: <instruction> = call_action (%.loc8_3.6), true [template]
// CHECK:STDOUT: %.loc8_3.25: type = type_of_inst %.loc8_3.24 [template = %.loc8_3.25 (constants.%.f83)]
// CHECK:STDOUT: %.loc8_3.26: @F.%.loc8_3.25 (%.f83) = splice_inst %.loc8_3.24 [template = %.loc8_3.26 (constants.%.cd6)]
// CHECK:STDOUT: %.loc8_3.25: type = type_of_inst %.loc8_3.24 [template = %.loc8_3.25 (constants.%.9f0)]
// CHECK:STDOUT: %.loc8_3.26: @F.%.loc8_3.25 (%.9f0) = splice_inst %.loc8_3.24 [template = %.loc8_3.26 (constants.%.0f3)]
// CHECK:STDOUT: %.loc8_3.27: <instruction> = convert_to_category_action %.loc8_3.9, element10 [template]
// CHECK:STDOUT: %.loc8_3.28: @F.%.loc8_24.9 (%.bc2) = splice_inst %.loc8_3.27 [template = %.loc8_3.28 (constants.%.e20)]
// CHECK:STDOUT: %.loc8_3.28: @F.%.loc8_24.9 (%.5cd) = splice_inst %.loc8_3.27 [template = %.loc8_3.28 (constants.%.e77)]
// CHECK:STDOUT: %.loc8_3.29: <instruction> = compound_member_access_action %v.var, constants.%assoc0.ae8 [template]
// CHECK:STDOUT: %.loc8_3.30: type = type_of_inst %.loc8_3.29 [template = %.loc8_3.30 (constants.%.d1a)]
// CHECK:STDOUT: %.loc8_3.31: @F.%.loc8_3.30 (%.d1a) = splice_inst %.loc8_3.29 [template = %.loc8_3.31 (constants.%.a68)]
// CHECK:STDOUT: %.loc8_3.30: type = type_of_inst %.loc8_3.29 [template = %.loc8_3.30 (constants.%.f94)]
// CHECK:STDOUT: %.loc8_3.31: @F.%.loc8_3.30 (%.f94) = splice_inst %.loc8_3.29 [template = %.loc8_3.31 (constants.%.457)]
// CHECK:STDOUT: %.loc8_3.32: <instruction> = call_action (%.loc8_3.12), true [template]
// CHECK:STDOUT: %.loc8_3.33: type = type_of_inst %.loc8_3.32 [template = %.loc8_3.33 (constants.%.ecf)]
// CHECK:STDOUT: %.loc8_3.34: @F.%.loc8_3.33 (%.ecf) = splice_inst %.loc8_3.32 [template = %.loc8_3.34 (constants.%.264)]
// CHECK:STDOUT: %.loc8_3.33: type = type_of_inst %.loc8_3.32 [template = %.loc8_3.33 (constants.%.98a)]
// CHECK:STDOUT: %.loc8_3.34: @F.%.loc8_3.33 (%.98a) = splice_inst %.loc8_3.32 [template = %.loc8_3.34 (constants.%.610)]
// CHECK:STDOUT:
// CHECK:STDOUT: fn(%x.param: @F.%T.loc7_7.1 (%T.67d)) {
// CHECK:STDOUT: !entry:
// CHECK:STDOUT: %v.var: ref @F.%.loc8_24.9 (%.bc2) = var_storage %v.var_patt.loc8_3.1
// CHECK:STDOUT: %DefaultOrUnformed.facet.loc8_25.1: %DefaultOrUnformed.type = facet_value constants.%.bc2, (constants.%DefaultOrUnformed.lookup_impl_witness) [template = %DefaultOrUnformed.facet.loc8_25.2 (constants.%DefaultOrUnformed.facet.680)]
// CHECK:STDOUT: %.loc8_25.1: %DefaultOrUnformed.type = converted constants.%.bc2, %DefaultOrUnformed.facet.loc8_25.1 [template = %DefaultOrUnformed.facet.loc8_25.2 (constants.%DefaultOrUnformed.facet.680)]
// CHECK:STDOUT: %.loc8_25.2: type = type_of_inst %.loc8_25.7 [template = %.loc8_25.8 (constants.%.d9c)]
// CHECK:STDOUT: %.loc8_25.3: @F.%.loc8_25.8 (%.d9c) = splice_inst %.loc8_25.7 [template = %.loc8_25.9 (constants.%.b48)]
// CHECK:STDOUT: %.loc8_25.4: type = type_of_inst %.loc8_25.10 [template = %.loc8_25.11 (constants.%.8ed)]
// CHECK:STDOUT: %.loc8_25.5: @F.%.loc8_25.11 (%.8ed) = splice_inst %.loc8_25.10 [template = %.loc8_25.12 (constants.%.9fe)]
// CHECK:STDOUT: %.loc8_3.1: type = type_of_inst %.loc8_3.15 [template = %.loc8_3.16 (constants.%.7700f4.1)]
// CHECK:STDOUT: %.loc8_3.2: @F.%.loc8_3.16 (%.7700f4.1) = splice_inst %.loc8_3.15 [template = %.loc8_3.17 (constants.%.735308.1)]
// CHECK:STDOUT: %.loc8_3.3: type = type_of_inst %.loc8_3.18 [template = %.loc8_3.19 (constants.%.24708c.1)]
// CHECK:STDOUT: %.loc8_3.4: @F.%.loc8_3.19 (%.24708c.1) = splice_inst %.loc8_3.18 [template = %.loc8_3.20 (constants.%.cc0a4d.1)]
// CHECK:STDOUT: %.loc8_3.5: type = type_of_inst %.loc8_3.21 [template = %.loc8_3.22 (constants.%.1f2)]
// CHECK:STDOUT: %.loc8_3.6: @F.%.loc8_3.22 (%.1f2) = splice_inst %.loc8_3.21 [template = %.loc8_3.23 (constants.%.825)]
// CHECK:STDOUT: %.loc8_3.7: type = type_of_inst %.loc8_3.24 [template = %.loc8_3.25 (constants.%.f83)]
// CHECK:STDOUT: %.loc8_3.8: @F.%.loc8_3.25 (%.f83) = splice_inst %.loc8_3.24 [template = %.loc8_3.26 (constants.%.cd6)]
// CHECK:STDOUT: %.loc8_3.9: @F.%.loc8_24.9 (%.bc2) = converted %.loc8_25.5, %.loc8_3.8 [template = %.loc8_3.26 (constants.%.cd6)]
// CHECK:STDOUT: %.loc8_3.10: @F.%.loc8_24.9 (%.bc2) = splice_inst %.loc8_3.27 [template = %.loc8_3.28 (constants.%.e20)]
// CHECK:STDOUT: %v.var: ref @F.%.loc8_24.9 (%.5cd) = var_storage %v.var_patt.loc8_3.1
// CHECK:STDOUT: %DefaultOrUnformed.facet.loc8_25.1: %DefaultOrUnformed.type = facet_value constants.%.5cd, (constants.%DefaultOrUnformed.lookup_impl_witness) [template = %DefaultOrUnformed.facet.loc8_25.2 (constants.%DefaultOrUnformed.facet.a1a)]
// CHECK:STDOUT: %.loc8_25.1: %DefaultOrUnformed.type = converted constants.%.5cd, %DefaultOrUnformed.facet.loc8_25.1 [template = %DefaultOrUnformed.facet.loc8_25.2 (constants.%DefaultOrUnformed.facet.a1a)]
// CHECK:STDOUT: %.loc8_25.2: type = type_of_inst %.loc8_25.7 [template = %.loc8_25.8 (constants.%.c72)]
// CHECK:STDOUT: %.loc8_25.3: @F.%.loc8_25.8 (%.c72) = splice_inst %.loc8_25.7 [template = %.loc8_25.9 (constants.%.0a6)]
// CHECK:STDOUT: %.loc8_25.4: type = type_of_inst %.loc8_25.10 [template = %.loc8_25.11 (constants.%.463)]
// CHECK:STDOUT: %.loc8_25.5: @F.%.loc8_25.11 (%.463) = splice_inst %.loc8_25.10 [template = %.loc8_25.12 (constants.%.ba3)]
// CHECK:STDOUT: %.loc8_3.1: type = type_of_inst %.loc8_3.15 [template = %.loc8_3.16 (constants.%.585e1e.1)]
// CHECK:STDOUT: %.loc8_3.2: @F.%.loc8_3.16 (%.585e1e.1) = splice_inst %.loc8_3.15 [template = %.loc8_3.17 (constants.%.b296a8.1)]
// CHECK:STDOUT: %.loc8_3.3: type = type_of_inst %.loc8_3.18 [template = %.loc8_3.19 (constants.%.e218d7.1)]
// CHECK:STDOUT: %.loc8_3.4: @F.%.loc8_3.19 (%.e218d7.1) = splice_inst %.loc8_3.18 [template = %.loc8_3.20 (constants.%.f58188.1)]
// CHECK:STDOUT: %.loc8_3.5: type = type_of_inst %.loc8_3.21 [template = %.loc8_3.22 (constants.%.797)]
// CHECK:STDOUT: %.loc8_3.6: @F.%.loc8_3.22 (%.797) = splice_inst %.loc8_3.21 [template = %.loc8_3.23 (constants.%.664)]
// CHECK:STDOUT: %.loc8_3.7: type = type_of_inst %.loc8_3.24 [template = %.loc8_3.25 (constants.%.9f0)]
// CHECK:STDOUT: %.loc8_3.8: @F.%.loc8_3.25 (%.9f0) = splice_inst %.loc8_3.24 [template = %.loc8_3.26 (constants.%.0f3)]
// CHECK:STDOUT: %.loc8_3.9: @F.%.loc8_24.9 (%.5cd) = converted %.loc8_25.5, %.loc8_3.8 [template = %.loc8_3.26 (constants.%.0f3)]
// CHECK:STDOUT: %.loc8_3.10: @F.%.loc8_24.9 (%.5cd) = splice_inst %.loc8_3.27 [template = %.loc8_3.28 (constants.%.e77)]
// CHECK:STDOUT: assign %v.var, %.loc8_3.10
// CHECK:STDOUT: %.loc8_24.1: type = splice_block %.loc8_24.4 [template = %.loc8_24.9 (constants.%.bc2)] {
// CHECK:STDOUT: %.loc8_24.1: type = splice_block %.loc8_24.4 [template = %.loc8_24.9 (constants.%.5cd)] {
// CHECK:STDOUT: %Cpp.ref: <namespace> = name_ref Cpp, imports.%Cpp [concrete = imports.%Cpp]
// CHECK:STDOUT: %S.ref: %S.type = name_ref S, imports.%S.template [concrete = constants.%S.template]
// CHECK:STDOUT: %T.ref.loc8: type = name_ref T, %T.loc7_7.2 [symbolic = %T.loc7_7.1 (constants.%T.67d)]
// CHECK:STDOUT: %.loc8_23.1: type = template_inst %T.ref.loc8 [template = %.loc8_23.2 (constants.%.a92)]
// CHECK:STDOUT: %.loc8_24.2: type = type_of_inst %.loc8_24.5 [template = %.loc8_24.6 (constants.%.d46)]
// CHECK:STDOUT: %.loc8_24.3: @F.%.loc8_24.6 (%.d46) = splice_inst %.loc8_24.5 [template = %.loc8_24.7 (constants.%.de1)]
// CHECK:STDOUT: %.loc8_24.4: type = splice_inst %.loc8_24.8 [template = %.loc8_24.9 (constants.%.bc2)]
// CHECK:STDOUT: %.loc8_24.4: type = splice_inst %.loc8_24.8 [template = %.loc8_24.9 (constants.%.5cd)]
// CHECK:STDOUT: }
// CHECK:STDOUT: %v: ref @F.%.loc8_24.9 (%.bc2) = wrapper_binding v, %v.var
// CHECK:STDOUT: %v: ref @F.%.loc8_24.9 (%.5cd) = wrapper_binding v, %v.var
// CHECK:STDOUT: name_binding_decl {
// CHECK:STDOUT: %v.patt.loc8_15.1: @F.%pattern_type.loc8 (%pattern_type.aa8) = ref_binding_pattern v [template = %v.patt.loc8_15.2 (constants.%v.patt.295)]
// CHECK:STDOUT: %v.var_patt.loc8_3.1: @F.%pattern_type.loc8 (%pattern_type.aa8) = var_pattern %v.patt.loc8_15.1 [template = %v.var_patt.loc8_3.2 (constants.%v.var_patt.ab7)]
// CHECK:STDOUT: %v.patt.loc8_15.1: @F.%pattern_type.loc8 (%pattern_type.a1f) = ref_binding_pattern v [template = %v.patt.loc8_15.2 (constants.%v.patt.019)]
// CHECK:STDOUT: %v.var_patt.loc8_3.1: @F.%pattern_type.loc8 (%pattern_type.a1f) = var_pattern %v.patt.loc8_15.1 [template = %v.var_patt.loc8_3.2 (constants.%v.var_patt.d78)]
// CHECK:STDOUT: }
// CHECK:STDOUT: %.loc8_3.11: type = type_of_inst %.loc8_3.29 [template = %.loc8_3.30 (constants.%.d1a)]
// CHECK:STDOUT: %.loc8_3.12: @F.%.loc8_3.30 (%.d1a) = splice_inst %.loc8_3.29 [template = %.loc8_3.31 (constants.%.a68)]
// CHECK:STDOUT: %.loc8_3.13: type = type_of_inst %.loc8_3.32 [template = %.loc8_3.33 (constants.%.ecf)]
// CHECK:STDOUT: %.loc8_3.14: @F.%.loc8_3.33 (%.ecf) = splice_inst %.loc8_3.32 [template = %.loc8_3.34 (constants.%.264)]
// CHECK:STDOUT: %.loc8_3.11: type = type_of_inst %.loc8_3.29 [template = %.loc8_3.30 (constants.%.f94)]
// CHECK:STDOUT: %.loc8_3.12: @F.%.loc8_3.30 (%.f94) = splice_inst %.loc8_3.29 [template = %.loc8_3.31 (constants.%.457)]
// CHECK:STDOUT: %.loc8_3.13: type = type_of_inst %.loc8_3.32 [template = %.loc8_3.33 (constants.%.98a)]
// CHECK:STDOUT: %.loc8_3.14: @F.%.loc8_3.33 (%.98a) = splice_inst %.loc8_3.32 [template = %.loc8_3.34 (constants.%.610)]
// CHECK:STDOUT: return
// CHECK:STDOUT: }
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @F(constants.%T.67d) {
// CHECK:STDOUT: %T.patt.loc7_7.2 => constants.%T.patt.d47
// CHECK:STDOUT: %T.patt.loc7_7.2 => constants.%T.patt.3a0
// CHECK:STDOUT: %T.loc7_7.1 => constants.%T.67d
// CHECK:STDOUT: %pattern_type.loc7 => constants.%pattern_type.51d1c4.1
// CHECK:STDOUT: %x.param_patt.loc7_23.2 => constants.%x.param_patt.91d
@@ -315,7 +315,7 @@ fn G() {
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @F(constants.%X) {
// CHECK:STDOUT: %T.patt.loc7_7.2 => constants.%T.patt.d47
// CHECK:STDOUT: %T.patt.loc7_7.2 => constants.%T.patt.3a0
// CHECK:STDOUT: %T.loc7_7.1 => constants.%X
// CHECK:STDOUT: %pattern_type.loc7 => constants.%pattern_type.fa7
// CHECK:STDOUT: %x.param_patt.loc7_23.2 => constants.%x.param_patt.468
@@ -342,24 +342,24 @@ fn G() {
// CHECK:STDOUT: %.loc8_25.10 => constants.%inst.splice_block.7e5
// CHECK:STDOUT: %.loc8_25.11 => constants.%S
// CHECK:STDOUT: %.loc8_25.12 => invalid
// CHECK:STDOUT: %.loc8_3.15 => constants.%.d2b
// CHECK:STDOUT: %.loc8_3.16 => constants.%.7700f4.2
// CHECK:STDOUT: %.loc8_3.17 => constants.%.735308.2
// CHECK:STDOUT: %.loc8_3.18 => constants.%.e6e
// CHECK:STDOUT: %.loc8_3.19 => constants.%.24708c.2
// CHECK:STDOUT: %.loc8_3.20 => constants.%.cc0a4d.2
// CHECK:STDOUT: %.loc8_3.21 => constants.%.f9f
// CHECK:STDOUT: %.loc8_3.22 => constants.%.828
// CHECK:STDOUT: %.loc8_3.23 => constants.%.9e3
// CHECK:STDOUT: %.loc8_3.24 => constants.%.497
// CHECK:STDOUT: %.loc8_3.25 => constants.%.30d
// CHECK:STDOUT: %.loc8_3.26 => constants.%.1ea
// CHECK:STDOUT: %.loc8_3.27 => constants.%.7884
// CHECK:STDOUT: %.loc8_3.28 => constants.%.dcc
// CHECK:STDOUT: %.loc8_3.29 => constants.%inst.splice_block.9ce
// CHECK:STDOUT: %.loc8_3.15 => constants.%.352
// CHECK:STDOUT: %.loc8_3.16 => constants.%.585e1e.2
// CHECK:STDOUT: %.loc8_3.17 => constants.%.b296a8.2
// CHECK:STDOUT: %.loc8_3.18 => constants.%.556
// CHECK:STDOUT: %.loc8_3.19 => constants.%.e218d7.2
// CHECK:STDOUT: %.loc8_3.20 => constants.%.f58188.2
// CHECK:STDOUT: %.loc8_3.21 => constants.%.955
// CHECK:STDOUT: %.loc8_3.22 => constants.%.5c9
// CHECK:STDOUT: %.loc8_3.23 => constants.%.2bf
// CHECK:STDOUT: %.loc8_3.24 => constants.%.9a4
// CHECK:STDOUT: %.loc8_3.25 => constants.%.94b
// CHECK:STDOUT: %.loc8_3.26 => constants.%.a03
// CHECK:STDOUT: %.loc8_3.27 => constants.%.169
// CHECK:STDOUT: %.loc8_3.28 => constants.%.217
// CHECK:STDOUT: %.loc8_3.29 => constants.%inst.splice_block.b32
// CHECK:STDOUT: %.loc8_3.30 => <bound method>
// CHECK:STDOUT: %.loc8_3.31 => invalid
// CHECK:STDOUT: %.loc8_3.32 => constants.%inst.splice_block.f2c
// CHECK:STDOUT: %.loc8_3.32 => constants.%inst.splice_block.5c0
// CHECK:STDOUT: %.loc8_3.33 => constants.%empty_tuple.type
// CHECK:STDOUT: %.loc8_3.34 => invalid
// CHECK:STDOUT: }
@@ -182,6 +182,7 @@ fn G() -> i32 {
// CHECK:STDOUT: --- valid.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %TwoNonType: type = class_type @TwoNonType [concrete]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %pattern_type.2aa: type = pattern_type %TwoNonType [concrete]
@@ -212,6 +213,7 @@ fn G() -> i32 {
// CHECK:STDOUT: --- dependent.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %DependentNonType.type: type = cpp_type_template_type DependentNonType [concrete]
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
// CHECK:STDOUT: %DependentNonType.template: %DependentNonType.type = struct_value () [concrete]
@@ -83,6 +83,7 @@ var x: Cpp.TwoTemplates(Cpp.A, true);
// CHECK:STDOUT: --- valid.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %TwoTemplates: type = class_type @TwoTemplates [concrete]
// CHECK:STDOUT: %pattern_type.f5e: type = pattern_type %TwoTemplates [concrete]
// CHECK:STDOUT: %x.patt: %pattern_type.f5e = ref_binding_pattern x [concrete]
@@ -67,6 +67,7 @@ var x: Cpp.TwoTypes(Cpp.A, {});
// CHECK:STDOUT: --- valid.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %TwoTypes: type = class_type @TwoTypes [concrete]
// CHECK:STDOUT: %pattern_type.83a: type = pattern_type %TwoTypes [concrete]
// CHECK:STDOUT: %x.patt: %pattern_type.83a = ref_binding_pattern x [concrete]
@@ -114,6 +115,7 @@ var x: Cpp.TwoTypes(Cpp.A, {});
// CHECK:STDOUT: --- char.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %TwoTypes: type = class_type @TwoTypes [concrete]
// CHECK:STDOUT: %pattern_type.0c3: type = pattern_type %TwoTypes [concrete]
// CHECK:STDOUT: %x.patt: %pattern_type.0c3 = ref_binding_pattern x [concrete]
@@ -37,6 +37,7 @@ let pwb: Cpp.B* = &Cpp.Wrap.r#var(Cpp.B);
// CHECK:STDOUT: --- use_var_template.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
// CHECK:STDOUT: %A: type = class_type @A [concrete]
// CHECK:STDOUT: %ptr.25f: type = ptr_type %A [concrete]
// CHECK:STDOUT: %pattern_type.1fa: type = pattern_type %ptr.25f [concrete]