|
|
@@ -12,6 +12,32 @@
|
|
|
// TIP: To dump output, run:
|
|
|
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/import_generic.carbon
|
|
|
|
|
|
+// --- basic_import_generic_interface.carbon
|
|
|
+library "[[@TEST_NAME]]";
|
|
|
+
|
|
|
+interface I(T:! type) {}
|
|
|
+interface J(T:! type) {
|
|
|
+ extend require impls I(T);
|
|
|
+}
|
|
|
+
|
|
|
+// --- basic_import_generic_interface.impl.carbon
|
|
|
+impl library "[[@TEST_NAME]]";
|
|
|
+
|
|
|
+impl {} as J({}) {}
|
|
|
+
|
|
|
+// --- basic_import_generic_constraint.carbon
|
|
|
+library "[[@TEST_NAME]]";
|
|
|
+
|
|
|
+interface I(T:! type) {}
|
|
|
+constraint J(T:! type) {
|
|
|
+ extend require impls I(T);
|
|
|
+}
|
|
|
+
|
|
|
+// --- basic_import_generic_constraint.impl.carbon
|
|
|
+impl library "[[@TEST_NAME]]";
|
|
|
+
|
|
|
+impl {} as J({}) {}
|
|
|
+
|
|
|
// --- import_generic.carbon
|
|
|
|
|
|
library "[[@TEST_NAME]]";
|
|
|
@@ -157,6 +183,520 @@ impl forall [T:! type] D as N(T) {}
|
|
|
// CHECK:STDERR:
|
|
|
impl forall [T:! type] D as N(T*) {}
|
|
|
|
|
|
+// CHECK:STDOUT: --- basic_import_generic_interface.carbon
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: constants {
|
|
|
+// CHECK:STDOUT: %type: type = facet_type <type> [concrete]
|
|
|
+// CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic]
|
|
|
+// CHECK:STDOUT: %pattern_type: type = pattern_type type [concrete]
|
|
|
+// CHECK:STDOUT: %I.type.dac: type = generic_interface_type @I [concrete]
|
|
|
+// CHECK:STDOUT: %I.generic: %I.type.dac = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %I.type.070: type = facet_type <@I, @I(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.269: %I.type.070 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %J.type.2b8: type = generic_interface_type @J [concrete]
|
|
|
+// CHECK:STDOUT: %J.generic: %J.type.2b8 = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %J.type.8ec: type = facet_type <@J, @J(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.f68: %J.type.8ec = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.f68 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type.070 [symbolic]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: file {
|
|
|
+// CHECK:STDOUT: package: <namespace> = namespace [concrete] {
|
|
|
+// CHECK:STDOUT: .I = %I.decl
|
|
|
+// CHECK:STDOUT: .J = %J.decl
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %I.decl: %I.type.dac = interface_decl @I [concrete = constants.%I.generic] {
|
|
|
+// CHECK:STDOUT: %T.patt: %pattern_type = symbolic_binding_pattern T, 0 [concrete]
|
|
|
+// CHECK:STDOUT: } {
|
|
|
+// CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
|
|
|
+// CHECK:STDOUT: %T.loc3_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc3_13.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %J.decl: %J.type.2b8 = interface_decl @J [concrete = constants.%J.generic] {
|
|
|
+// CHECK:STDOUT: %T.patt: %pattern_type = symbolic_binding_pattern T, 0 [concrete]
|
|
|
+// CHECK:STDOUT: } {
|
|
|
+// CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
|
|
|
+// CHECK:STDOUT: %T.loc4_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc4_13.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic interface @I(%T.loc3_13.2: type) {
|
|
|
+// CHECK:STDOUT: %T.loc3_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc3_13.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc3_13.1)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %Self.loc3_23.2: @I.%I.type (%I.type.070) = symbolic_binding Self, 1 [symbolic = %Self.loc3_23.2 (constants.%Self.269)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: interface {
|
|
|
+// CHECK:STDOUT: %Self.loc3_23.1: @I.%I.type (%I.type.070) = symbolic_binding Self, 1 [symbolic = %Self.loc3_23.2 (constants.%Self.269)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = %Self.loc3_23.1
|
|
|
+// CHECK:STDOUT: witness = ()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic interface @J(%T.loc4_13.2: type) {
|
|
|
+// CHECK:STDOUT: %T.loc4_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc4_13.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T.loc4_13.1)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
+// CHECK:STDOUT: %Self.loc4_23.2: @J.%J.type (%J.type.8ec) = symbolic_binding Self, 1 [symbolic = %Self.loc4_23.2 (constants.%Self.f68)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc4_13.1)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: interface {
|
|
|
+// CHECK:STDOUT: %Self.loc4_23.1: @J.%J.type (%J.type.8ec) = symbolic_binding Self, 1 [symbolic = %Self.loc4_23.2 (constants.%Self.f68)]
|
|
|
+// CHECK:STDOUT: %J.require0.decl = require_decl @J.require0 [concrete] {
|
|
|
+// CHECK:STDOUT: require %Self.as_type impls <@I, @I(constants.%T)>
|
|
|
+// CHECK:STDOUT: } {
|
|
|
+// CHECK:STDOUT: %Self.as_type: type = facet_access_type @J.%Self.loc4_23.1 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
+// CHECK:STDOUT: %I.ref: %I.type.dac = name_ref I, file.%I.decl [concrete = constants.%I.generic]
|
|
|
+// CHECK:STDOUT: %T.ref: type = name_ref T, @J.%T.loc4_13.2 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %I.type.loc5_27.1: type = facet_type <@I, @I(constants.%T)> [symbolic = %I.type.loc5_27.2 (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = %Self.loc4_23.1
|
|
|
+// CHECK:STDOUT: .I = <poisoned>
|
|
|
+// CHECK:STDOUT: .T = <poisoned>
|
|
|
+// CHECK:STDOUT: witness = ()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: @J.require0 {
|
|
|
+// CHECK:STDOUT: require @J.require0.%Self.as_type impls <@I, @I(constants.%T)>
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic require @J.require0(@J.%T.loc4_13.2: type, @J.%Self.loc4_23.1: @J.%J.type (%J.type.8ec)) {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
+// CHECK:STDOUT: %Self: @J.require0.%J.type (%J.type.8ec) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.f68)]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
+// CHECK:STDOUT: %I.type.loc5_27.2: type = facet_type <@I, @I(%T)> [symbolic = %I.type.loc5_27.2 (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T.loc3_13.1 => constants.%T
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: %Self.loc3_23.2 => constants.%Self.269
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T.loc4_13.1 => constants.%T
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J.require0(constants.%T, constants.%Self.f68) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.8ec
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.f68
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type
|
|
|
+// CHECK:STDOUT: %I.type.loc5_27.2 => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: --- basic_import_generic_interface.impl.carbon
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: constants {
|
|
|
+// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
|
+// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %J.type.2b8: type = generic_interface_type @J [concrete]
|
|
|
+// CHECK:STDOUT: %J.generic: %J.type.2b8 = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic]
|
|
|
+// CHECK:STDOUT: %J.type.8ec: type = facet_type <@J, @J(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.f68: %J.type.8ec = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %I.type.070: type = facet_type <@I, @I(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.269: %I.type.070 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.f68 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type.070 [symbolic]
|
|
|
+// CHECK:STDOUT: %J.type.457: type = facet_type <@J, @J(%empty_struct_type)> [concrete]
|
|
|
+// CHECK:STDOUT: %Self.07b: %J.type.457 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %I.type.399: type = facet_type <@I, @I(%empty_struct_type)> [concrete]
|
|
|
+// CHECK:STDOUT: %Self.32d: %I.type.399 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %I.type.399 [concrete]
|
|
|
+// CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness file.%J.impl_witness_table [concrete]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: imports {
|
|
|
+// CHECK:STDOUT: %Main.I = import_ref Main//basic_import_generic_interface, I, unloaded
|
|
|
+// CHECK:STDOUT: %Main.J: %J.type.2b8 = import_ref Main//basic_import_generic_interface, J, loaded [concrete = constants.%J.generic]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.769 = import_ref Main//basic_import_generic_interface, loc3_23, unloaded
|
|
|
+// CHECK:STDOUT: %Main.import_ref.efcd44.1: type = import_ref Main//basic_import_generic_interface, loc3_13, loaded [symbolic = @I.%T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.ce5: type = import_ref Main//basic_import_generic_interface, loc5_18, loaded [symbolic = constants.%Self.binding.as_type]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.efcd44.2: type = import_ref Main//basic_import_generic_interface, loc4_13, loaded [symbolic = @J.%T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.cc4: @J.%J.type (%J.type.8ec) = import_ref Main//basic_import_generic_interface, loc4_23, loaded [symbolic = @J.%Self (constants.%Self.f68)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.b3b = import_ref Main//basic_import_generic_interface, loc4_23, unloaded
|
|
|
+// CHECK:STDOUT: %Main.import_ref.efcd44.3: type = import_ref Main//basic_import_generic_interface, loc4_13, loaded [symbolic = @J.%T (constants.%T)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: file {
|
|
|
+// CHECK:STDOUT: package: <namespace> = namespace [concrete] {
|
|
|
+// CHECK:STDOUT: .I = imports.%Main.I
|
|
|
+// CHECK:STDOUT: .J = imports.%Main.J
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %default.import.loc1_46.1 = import <none>
|
|
|
+// CHECK:STDOUT: %default.import.loc1_46.2 = import <none>
|
|
|
+// CHECK:STDOUT: impl_decl @empty_struct_type.as.J.impl [concrete] {} {
|
|
|
+// CHECK:STDOUT: %.loc3_7.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
|
+// CHECK:STDOUT: %.loc3_7.2: type = converted %.loc3_7.1, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
|
+// CHECK:STDOUT: %J.ref: %J.type.2b8 = name_ref J, imports.%Main.J [concrete = constants.%J.generic]
|
|
|
+// CHECK:STDOUT: %.loc3_15: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
|
|
+// CHECK:STDOUT: %.loc3_16: type = converted %.loc3_15, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(constants.%empty_struct_type)> [concrete = constants.%J.type.457]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %J.impl_witness_table = impl_witness_table (), @empty_struct_type.as.J.impl [concrete]
|
|
|
+// CHECK:STDOUT: %J.impl_witness: <witness> = impl_witness %J.impl_witness_table [concrete = constants.%J.impl_witness]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic interface @J(imports.%Main.import_ref.efcd44.3: type) [from "basic_import_generic_interface.carbon"] {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
+// CHECK:STDOUT: %Self: @J.%J.type (%J.type.8ec) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.f68)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: interface {
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = imports.%Main.import_ref.b3b
|
|
|
+// CHECK:STDOUT: witness = ()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: @J.require0 {
|
|
|
+// CHECK:STDOUT: require imports.%Main.import_ref.ce5 impls <@I, @I(constants.%T)>
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic interface @I(imports.%Main.import_ref.efcd44.1: type) [from "basic_import_generic_interface.carbon"] {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %Self: @I.%I.type (%I.type.070) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.269)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: interface {
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = imports.%Main.import_ref.769
|
|
|
+// CHECK:STDOUT: witness = ()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic require @J.require0(imports.%Main.import_ref.efcd44.2: type, imports.%Main.import_ref.cc4: @J.%J.type (%J.type.8ec)) [from "basic_import_generic_interface.carbon"] {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
+// CHECK:STDOUT: %Self: @J.require0.%J.type (%J.type.8ec) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.f68)]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: impl @empty_struct_type.as.J.impl: %.loc3_7.2 as %J.type {
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: witness = file.%J.impl_witness
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.269
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J.require0(constants.%T, constants.%Self.f68) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.8ec
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.f68
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J(constants.%empty_struct_type) {
|
|
|
+// CHECK:STDOUT: %T => constants.%empty_struct_type
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.457
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.07b
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.399
|
|
|
+// CHECK:STDOUT: %require_complete => constants.%complete_type
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%empty_struct_type) {
|
|
|
+// CHECK:STDOUT: %T => constants.%empty_struct_type
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.399
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.32d
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: --- basic_import_generic_constraint.carbon
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: constants {
|
|
|
+// CHECK:STDOUT: %type: type = facet_type <type> [concrete]
|
|
|
+// CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self]
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic]
|
|
|
+// CHECK:STDOUT: %pattern_type: type = pattern_type type [concrete]
|
|
|
+// CHECK:STDOUT: %I.type.dac: type = generic_interface_type @I [concrete]
|
|
|
+// CHECK:STDOUT: %I.generic: %I.type.dac = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %I.type.070: type = facet_type <@I, @I(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.269: %I.type.070 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %J.type.267: type = generic_named_constaint_type @J [concrete]
|
|
|
+// CHECK:STDOUT: %empty_struct: %J.type.267 = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %J.type.b8d: type = facet_type <@J, @J(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.aa1: %J.type.b8d = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type.070 [symbolic]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: file {
|
|
|
+// CHECK:STDOUT: package: <namespace> = namespace [concrete] {
|
|
|
+// CHECK:STDOUT: .I = %I.decl
|
|
|
+// CHECK:STDOUT: .J = %J.decl
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %I.decl: %I.type.dac = interface_decl @I [concrete = constants.%I.generic] {
|
|
|
+// CHECK:STDOUT: %T.patt: %pattern_type = symbolic_binding_pattern T, 0 [concrete]
|
|
|
+// CHECK:STDOUT: } {
|
|
|
+// CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
|
|
|
+// CHECK:STDOUT: %T.loc3_13.2: type = symbolic_binding T, 0 [symbolic = %T.loc3_13.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %J.decl: %J.type.267 = constraint_decl @J [concrete = constants.%empty_struct] {
|
|
|
+// CHECK:STDOUT: %T.patt: %pattern_type = symbolic_binding_pattern T, 0 [concrete]
|
|
|
+// CHECK:STDOUT: } {
|
|
|
+// CHECK:STDOUT: %.Self: %type = symbolic_binding .Self [symbolic_self = constants.%.Self]
|
|
|
+// CHECK:STDOUT: %T.loc4_14.2: type = symbolic_binding T, 0 [symbolic = %T.loc4_14.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic interface @I(%T.loc3_13.2: type) {
|
|
|
+// CHECK:STDOUT: %T.loc3_13.1: type = symbolic_binding T, 0 [symbolic = %T.loc3_13.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc3_13.1)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %Self.loc3_23.2: @I.%I.type (%I.type.070) = symbolic_binding Self, 1 [symbolic = %Self.loc3_23.2 (constants.%Self.269)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: interface {
|
|
|
+// CHECK:STDOUT: %Self.loc3_23.1: @I.%I.type (%I.type.070) = symbolic_binding Self, 1 [symbolic = %Self.loc3_23.2 (constants.%Self.269)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = %Self.loc3_23.1
|
|
|
+// CHECK:STDOUT: witness = ()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic constraint @J(%T.loc4_14.2: type) {
|
|
|
+// CHECK:STDOUT: %T.loc4_14.1: type = symbolic_binding T, 0 [symbolic = %T.loc4_14.1 (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T.loc4_14.1)> [symbolic = %J.type (constants.%J.type.b8d)]
|
|
|
+// CHECK:STDOUT: %Self.loc4_24.2: @J.%J.type (%J.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc4_24.2 (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc4_14.1)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: constraint {
|
|
|
+// CHECK:STDOUT: %Self.loc4_24.1: @J.%J.type (%J.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc4_24.2 (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %J.require0.decl = require_decl @J.require0 [concrete] {
|
|
|
+// CHECK:STDOUT: require %Self.as_type impls <@I, @I(constants.%T)>
|
|
|
+// CHECK:STDOUT: } {
|
|
|
+// CHECK:STDOUT: %Self.as_type: type = facet_access_type @J.%Self.loc4_24.1 [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
+// CHECK:STDOUT: %I.ref: %I.type.dac = name_ref I, file.%I.decl [concrete = constants.%I.generic]
|
|
|
+// CHECK:STDOUT: %T.ref: type = name_ref T, @J.%T.loc4_14.2 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %I.type.loc5_27.1: type = facet_type <@I, @I(constants.%T)> [symbolic = %I.type.loc5_27.2 (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = %Self.loc4_24.1
|
|
|
+// CHECK:STDOUT: .I = <poisoned>
|
|
|
+// CHECK:STDOUT: .T = <poisoned>
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: @J.require0 {
|
|
|
+// CHECK:STDOUT: require @J.require0.%Self.as_type impls <@I, @I(constants.%T)>
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic require @J.require0(@J.%T.loc4_14.2: type, @J.%Self.loc4_24.1: @J.%J.type (%J.type.b8d)) {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.b8d)]
|
|
|
+// CHECK:STDOUT: %Self: @J.require0.%J.type (%J.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
+// CHECK:STDOUT: %I.type.loc5_27.2: type = facet_type <@I, @I(%T)> [symbolic = %I.type.loc5_27.2 (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T.loc3_13.1 => constants.%T
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: %Self.loc3_23.2 => constants.%Self.269
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T.loc4_14.1 => constants.%T
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J.require0(constants.%T, constants.%Self.aa1) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.b8d
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type
|
|
|
+// CHECK:STDOUT: %I.type.loc5_27.2 => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: --- basic_import_generic_constraint.impl.carbon
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: constants {
|
|
|
+// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
|
|
+// CHECK:STDOUT: %empty_struct.a40: %empty_struct_type = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %J.type.267: type = generic_named_constaint_type @J [concrete]
|
|
|
+// CHECK:STDOUT: %empty_struct.b6f: %J.type.267 = struct_value () [concrete]
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic]
|
|
|
+// CHECK:STDOUT: %J.type.b8d23b.1: type = facet_type <@J, @J(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.aa1546.1: %J.type.b8d23b.1 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %I.type.070: type = facet_type <@I, @I(%T)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.269: %I.type.070 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1546.1 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type.070 [symbolic]
|
|
|
+// CHECK:STDOUT: %J.type.b8d23b.2: type = facet_type <@J, @J(%empty_struct_type)> [concrete]
|
|
|
+// CHECK:STDOUT: %Self.aa1546.2: %J.type.b8d23b.2 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %I.type.399: type = facet_type <@I, @I(%empty_struct_type)> [concrete]
|
|
|
+// CHECK:STDOUT: %Self.32d: %I.type.399 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %I.type.399 [concrete]
|
|
|
+// CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness file.%I.impl_witness_table [concrete]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: imports {
|
|
|
+// CHECK:STDOUT: %Main.I = import_ref Main//basic_import_generic_constraint, I, unloaded
|
|
|
+// CHECK:STDOUT: %Main.J: %J.type.267 = import_ref Main//basic_import_generic_constraint, J, loaded [concrete = constants.%empty_struct.b6f]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.769 = import_ref Main//basic_import_generic_constraint, loc3_23, unloaded
|
|
|
+// CHECK:STDOUT: %Main.import_ref.efcd44.1: type = import_ref Main//basic_import_generic_constraint, loc3_13, loaded [symbolic = @I.%T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.f92: type = import_ref Main//basic_import_generic_constraint, loc5_18, loaded [symbolic = constants.%Self.binding.as_type]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.efcd44.2: type = import_ref Main//basic_import_generic_constraint, loc4_14, loaded [symbolic = @J.%T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.d4d: @J.%J.type (%J.type.b8d23b.1) = import_ref Main//basic_import_generic_constraint, loc4_24, loaded [symbolic = @J.%Self (constants.%Self.aa1546.1)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.388 = import_ref Main//basic_import_generic_constraint, loc4_24, unloaded
|
|
|
+// CHECK:STDOUT: %Main.import_ref.efcd44.3: type = import_ref Main//basic_import_generic_constraint, loc4_14, loaded [symbolic = @J.%T (constants.%T)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: file {
|
|
|
+// CHECK:STDOUT: package: <namespace> = namespace [concrete] {
|
|
|
+// CHECK:STDOUT: .I = imports.%Main.I
|
|
|
+// CHECK:STDOUT: .J = imports.%Main.J
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %default.import.loc1_47.1 = import <none>
|
|
|
+// CHECK:STDOUT: %default.import.loc1_47.2 = import <none>
|
|
|
+// CHECK:STDOUT: impl_decl @empty_struct_type.as.I.impl [concrete] {} {
|
|
|
+// CHECK:STDOUT: %.loc3_7.1: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct.a40]
|
|
|
+// CHECK:STDOUT: %.loc3_7.2: type = converted %.loc3_7.1, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
|
+// CHECK:STDOUT: %J.ref: %J.type.267 = name_ref J, imports.%Main.J [concrete = constants.%empty_struct.b6f]
|
|
|
+// CHECK:STDOUT: %.loc3_15: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct.a40]
|
|
|
+// CHECK:STDOUT: %.loc3_16: type = converted %.loc3_15, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(constants.%empty_struct_type)> [concrete = constants.%J.type.b8d23b.2]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: %I.impl_witness_table = impl_witness_table (), @empty_struct_type.as.I.impl [concrete]
|
|
|
+// CHECK:STDOUT: %I.impl_witness: <witness> = impl_witness %I.impl_witness_table [concrete = constants.%I.impl_witness]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic interface @I(imports.%Main.import_ref.efcd44.1: type) [from "basic_import_generic_constraint.carbon"] {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %Self: @I.%I.type (%I.type.070) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.269)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: interface {
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = imports.%Main.import_ref.769
|
|
|
+// CHECK:STDOUT: witness = ()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic constraint @J(imports.%Main.import_ref.efcd44.3: type) [from "basic_import_generic_constraint.carbon"] {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.b8d23b.1)]
|
|
|
+// CHECK:STDOUT: %Self: @J.%J.type (%J.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1546.1)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete)]
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: constraint {
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: .Self = imports.%Main.import_ref.388
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !requires:
|
|
|
+// CHECK:STDOUT: @J.require0 {
|
|
|
+// CHECK:STDOUT: require imports.%Main.import_ref.f92 impls <@I, @I(constants.%T)>
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: generic require @J.require0(imports.%Main.import_ref.efcd44.2: type, imports.%Main.import_ref.d4d: @J.%J.type (%J.type.b8d23b.1)) [from "basic_import_generic_constraint.carbon"] {
|
|
|
+// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.b8d23b.1)]
|
|
|
+// CHECK:STDOUT: %Self: @J.require0.%J.type (%J.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1546.1)]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: impl @empty_struct_type.as.I.impl: %.loc3_7.2 as %J.type {
|
|
|
+// CHECK:STDOUT: !members:
|
|
|
+// CHECK:STDOUT: witness = file.%I.impl_witness
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%T) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.269
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J.require0(constants.%T, constants.%Self.aa1546.1) {
|
|
|
+// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.b8d23b.1
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.1
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @J(constants.%empty_struct_type) {
|
|
|
+// CHECK:STDOUT: %T => constants.%empty_struct_type
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.b8d23b.2
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.2
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.399
|
|
|
+// CHECK:STDOUT: %require_complete => constants.%complete_type
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%empty_struct_type) {
|
|
|
+// CHECK:STDOUT: %T => constants.%empty_struct_type
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.399
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.32d
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- import_generic.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
@@ -265,6 +805,8 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T.loc14_14.1)> [symbolic = %N.type (constants.%N.type.b8d)]
|
|
|
// CHECK:STDOUT: %Self.loc14_24.2: @N.%N.type (%N.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc14_24.2 (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc14_14.1)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete.c94)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constraint {
|
|
|
// CHECK:STDOUT: %Self.loc14_24.1: @N.%N.type (%N.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc14_24.2 (constants.%Self.aa1)]
|
|
|
@@ -531,6 +1073,8 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T)> [symbolic = %N.type (constants.%N.type.b8d23b.1)]
|
|
|
// CHECK:STDOUT: %Self: @N.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete.c94)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constraint {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
@@ -805,6 +1349,8 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T.loc9_14.1)> [symbolic = %N.type (constants.%N.type.b8d)]
|
|
|
// CHECK:STDOUT: %Self.loc9_24.2: @N.%N.type (%N.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc9_24.2 (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T.loc9_14.1)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constraint {
|
|
|
// CHECK:STDOUT: %Self.loc9_24.1: @N.%N.type (%N.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc9_24.2 (constants.%Self.aa1)]
|
|
|
@@ -910,10 +1456,13 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %N.type.673: type = generic_named_constaint_type @N [concrete]
|
|
|
// CHECK:STDOUT: %empty_struct: %N.type.673 = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %N.type.b8d23b.1: type = facet_type <@N, @N(%T)> [symbolic]
|
|
|
-// CHECK:STDOUT: %Self.aa1: %N.type.b8d23b.1 = symbolic_binding Self, 1 [symbolic]
|
|
|
-// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.aa1546.1: %N.type.b8d23b.1 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1546.1 [symbolic]
|
|
|
// CHECK:STDOUT: %ptr.3f2: type = ptr_type %ptr.4f0 [symbolic]
|
|
|
// CHECK:STDOUT: %N.type.b8d23b.2: type = facet_type <@N, @N(%ptr.3f2)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.aa1546.2: %N.type.b8d23b.2 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %I.type.71a: type = facet_type <@I, @I(%ptr.3f2)> [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete.08c: <witness> = require_complete_type %I.type.71a [symbolic]
|
|
|
// CHECK:STDOUT: %require_complete.a37: <witness> = require_complete_type %N.type.b8d23b.2 [symbolic]
|
|
|
// CHECK:STDOUT: %I.impl_witness.524: <witness> = impl_witness file.%I.impl_witness_table.loc6, @C.as.I.impl.3f8(%T) [symbolic]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -933,7 +1482,7 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %Main.import_ref.efcd44.2: type = import_ref Main//import_generic_with_different_specific, loc7_14, loaded [symbolic = @C.as.I.impl.f3e.%T (constants.%T)]
|
|
|
// CHECK:STDOUT: %Main.import_ref.f92: type = import_ref Main//import_generic_with_different_specific, loc10_18, loaded [symbolic = constants.%Self.binding.as_type]
|
|
|
// CHECK:STDOUT: %Main.import_ref.efcd44.3: type = import_ref Main//import_generic_with_different_specific, loc9_14, loaded [symbolic = @N.%T (constants.%T)]
|
|
|
-// CHECK:STDOUT: %Main.import_ref.d4d: @N.%N.type (%N.type.b8d23b.1) = import_ref Main//import_generic_with_different_specific, loc9_24, loaded [symbolic = @N.%Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.d4d: @N.%N.type (%N.type.b8d23b.1) = import_ref Main//import_generic_with_different_specific, loc9_24, loaded [symbolic = @N.%Self (constants.%Self.aa1546.1)]
|
|
|
// CHECK:STDOUT: %Main.import_ref.388 = import_ref Main//import_generic_with_different_specific, loc9_24, unloaded
|
|
|
// CHECK:STDOUT: %Main.import_ref.efcd44.4: type = import_ref Main//import_generic_with_different_specific, loc9_14, loaded [symbolic = @N.%T (constants.%T)]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -996,7 +1545,9 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T)> [symbolic = %N.type (constants.%N.type.b8d23b.1)]
|
|
|
-// CHECK:STDOUT: %Self: @N.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Self: @N.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1546.1)]
|
|
|
+// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %I.type [symbolic = %require_complete (constants.%require_complete.c94)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constraint {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
@@ -1012,7 +1563,7 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: generic require @N.require0(imports.%Main.import_ref.efcd44.3: type, imports.%Main.import_ref.d4d: @N.%N.type (%N.type.b8d23b.1)) [from "import_generic_with_different_specific.carbon"] {
|
|
|
// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T)> [symbolic = %N.type (constants.%N.type.b8d23b.1)]
|
|
|
-// CHECK:STDOUT: %Self: @N.require0.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Self: @N.require0.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1546.1)]
|
|
|
// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
// CHECK:STDOUT: %I.type: type = facet_type <@I, @I(%T)> [symbolic = %I.type (constants.%I.type.070)]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1104,16 +1655,22 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %T => constants.%T
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @N.require0(constants.%T, constants.%Self.aa1) {
|
|
|
+// CHECK:STDOUT: specific @N.require0(constants.%T, constants.%Self.aa1546.1) {
|
|
|
// CHECK:STDOUT: %T => constants.%T
|
|
|
// CHECK:STDOUT: %N.type => constants.%N.type.b8d23b.1
|
|
|
-// CHECK:STDOUT: %Self => constants.%Self.aa1
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.1
|
|
|
// CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type
|
|
|
// CHECK:STDOUT: %I.type => constants.%I.type.070
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @N(constants.%ptr.3f2) {
|
|
|
// CHECK:STDOUT: %T => constants.%ptr.3f2
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %N.type => constants.%N.type.b8d23b.2
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.2
|
|
|
+// CHECK:STDOUT: %I.type => constants.%I.type.71a
|
|
|
+// CHECK:STDOUT: %require_complete => constants.%require_complete.08c
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @C.as.I.impl.3f8(constants.%T) {
|
|
|
@@ -1125,6 +1682,10 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %I.impl_witness => constants.%I.impl_witness.524
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: specific @I(constants.%ptr.3f2) {
|
|
|
+// CHECK:STDOUT: %T => constants.%ptr.3f2
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- fail_import_generic_decl.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
@@ -1144,6 +1705,7 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %N.type.b8d: type = facet_type <@N, @N(%T)> [symbolic]
|
|
|
// CHECK:STDOUT: %Self.aa1: %N.type.b8d = symbolic_binding Self, 1 [symbolic]
|
|
|
// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %J.type.8ec [symbolic]
|
|
|
// CHECK:STDOUT: %J.impl_witness.224: <witness> = impl_witness file.%J.impl_witness_table.loc15, @D.as.J.impl.b47(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %ptr: type = ptr_type %T [symbolic]
|
|
|
// CHECK:STDOUT: %J.type.4fa: type = facet_type <@J, @J(%ptr)> [symbolic]
|
|
|
@@ -1220,6 +1782,8 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T.loc7_14.1)> [symbolic = %N.type (constants.%N.type.b8d)]
|
|
|
// CHECK:STDOUT: %Self.loc7_24.2: @N.%N.type (%N.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc7_24.2 (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T.loc7_14.1)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %J.type [symbolic = %require_complete (constants.%require_complete)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constraint {
|
|
|
// CHECK:STDOUT: %Self.loc7_24.1: @N.%N.type (%N.type.b8d) = symbolic_binding Self, 1 [symbolic = %Self.loc7_24.2 (constants.%Self.aa1)]
|
|
|
@@ -1279,6 +1843,10 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @J(constants.%T) {
|
|
|
// CHECK:STDOUT: %T.loc5_13.1 => constants.%T
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.8ec
|
|
|
+// CHECK:STDOUT: %Self.loc5_23.2 => constants.%Self.f68
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @N(constants.%T) {
|
|
|
@@ -1331,11 +1899,14 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %N.type.673: type = generic_named_constaint_type @N [concrete]
|
|
|
// CHECK:STDOUT: %empty_struct: %N.type.673 = struct_value () [concrete]
|
|
|
// CHECK:STDOUT: %N.type.b8d23b.1: type = facet_type <@N, @N(%T)> [symbolic]
|
|
|
-// CHECK:STDOUT: %Self.aa1: %N.type.b8d23b.1 = symbolic_binding Self, 1 [symbolic]
|
|
|
-// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.aa1546.1: %N.type.b8d23b.1 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self.aa1546.1 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete.387: <witness> = require_complete_type %J.type.8ec [symbolic]
|
|
|
// CHECK:STDOUT: %require_complete.a37d6c.1: <witness> = require_complete_type %N.type.b8d23b.1 [symbolic]
|
|
|
// CHECK:STDOUT: %J.impl_witness.b5245e.1: <witness> = impl_witness file.%J.impl_witness_table.loc29, @D.as.J.impl.3b0484.1(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %N.type.b8d23b.2: type = facet_type <@N, @N(%ptr)> [symbolic]
|
|
|
+// CHECK:STDOUT: %Self.aa1546.2: %N.type.b8d23b.2 = symbolic_binding Self, 1 [symbolic]
|
|
|
+// CHECK:STDOUT: %require_complete.d4d: <witness> = require_complete_type %J.type.4fa [symbolic]
|
|
|
// CHECK:STDOUT: %require_complete.a37d6c.2: <witness> = require_complete_type %N.type.b8d23b.2 [symbolic]
|
|
|
// CHECK:STDOUT: %J.impl_witness.b5245e.2: <witness> = impl_witness file.%J.impl_witness_table.loc39, @D.as.J.impl.3b0484.2(%T) [symbolic]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1358,7 +1929,7 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: %Main.import_ref.efcd44.3: type = import_ref Main//import_generic_decl, loc21_14, loaded [symbolic = @D.as.J.impl.265db6.1.%T (constants.%T)]
|
|
|
// CHECK:STDOUT: %Main.import_ref.f92: type = import_ref Main//import_generic_decl, loc8_18, loaded [symbolic = constants.%Self.binding.as_type]
|
|
|
// CHECK:STDOUT: %Main.import_ref.efcd44.4: type = import_ref Main//import_generic_decl, loc7_14, loaded [symbolic = @N.%T (constants.%T)]
|
|
|
-// CHECK:STDOUT: %Main.import_ref.d4d: @N.%N.type (%N.type.b8d23b.1) = import_ref Main//import_generic_decl, loc7_24, loaded [symbolic = @N.%Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Main.import_ref.d4d: @N.%N.type (%N.type.b8d23b.1) = import_ref Main//import_generic_decl, loc7_24, loaded [symbolic = @N.%Self (constants.%Self.aa1546.1)]
|
|
|
// CHECK:STDOUT: %Main.import_ref.388 = import_ref Main//import_generic_decl, loc7_24, unloaded
|
|
|
// CHECK:STDOUT: %Main.import_ref.efcd44.5: type = import_ref Main//import_generic_decl, loc7_14, loaded [symbolic = @N.%T (constants.%T)]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1461,7 +2032,9 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !definition:
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T)> [symbolic = %N.type (constants.%N.type.b8d23b.1)]
|
|
|
-// CHECK:STDOUT: %Self: @N.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Self: @N.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1546.1)]
|
|
|
+// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
+// CHECK:STDOUT: %require_complete: <witness> = require_complete_type %J.type [symbolic = %require_complete (constants.%require_complete.387)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constraint {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
@@ -1477,7 +2050,7 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT: generic require @N.require0(imports.%Main.import_ref.efcd44.4: type, imports.%Main.import_ref.d4d: @N.%N.type (%N.type.b8d23b.1)) [from "fail_import_generic_decl.carbon"] {
|
|
|
// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic = %T (constants.%T)]
|
|
|
// CHECK:STDOUT: %N.type: type = facet_type <@N, @N(%T)> [symbolic = %N.type (constants.%N.type.b8d23b.1)]
|
|
|
-// CHECK:STDOUT: %Self: @N.require0.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1)]
|
|
|
+// CHECK:STDOUT: %Self: @N.require0.%N.type (%N.type.b8d23b.1) = symbolic_binding Self, 1 [symbolic = %Self (constants.%Self.aa1546.1)]
|
|
|
// CHECK:STDOUT: %Self.binding.as_type: type = symbolic_binding_type Self, 1, %Self [symbolic = %Self.binding.as_type (constants.%Self.binding.as_type)]
|
|
|
// CHECK:STDOUT: %J.type: type = facet_type <@J, @J(%T)> [symbolic = %J.type (constants.%J.type.8ec)]
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1624,12 +2197,18 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @N(constants.%T) {
|
|
|
// CHECK:STDOUT: %T => constants.%T
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %N.type => constants.%N.type.b8d23b.1
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.1
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.8ec
|
|
|
+// CHECK:STDOUT: %require_complete => constants.%require_complete.387
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: specific @N.require0(constants.%T, constants.%Self.aa1) {
|
|
|
+// CHECK:STDOUT: specific @N.require0(constants.%T, constants.%Self.aa1546.1) {
|
|
|
// CHECK:STDOUT: %T => constants.%T
|
|
|
// CHECK:STDOUT: %N.type => constants.%N.type.b8d23b.1
|
|
|
-// CHECK:STDOUT: %Self => constants.%Self.aa1
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.1
|
|
|
// CHECK:STDOUT: %Self.binding.as_type => constants.%Self.binding.as_type
|
|
|
// CHECK:STDOUT: %J.type => constants.%J.type.8ec
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1643,6 +2222,12 @@ impl forall [T:! type] D as N(T*) {}
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @N(constants.%ptr) {
|
|
|
// CHECK:STDOUT: %T => constants.%ptr
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: !definition:
|
|
|
+// CHECK:STDOUT: %N.type => constants.%N.type.b8d23b.2
|
|
|
+// CHECK:STDOUT: %Self => constants.%Self.aa1546.2
|
|
|
+// CHECK:STDOUT: %J.type => constants.%J.type.4fa
|
|
|
+// CHECK:STDOUT: %require_complete => constants.%require_complete.d4d
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: specific @D.as.J.impl.3b0484.2(constants.%T) {
|