Fix mangling collision for C++ class template specializations (#7269)

Carbon-side thunks (for example the `Copy`/`Destroy` witness thunks
generated for imported C++ types) are mangled by Carbon, and their names
incorporate a fingerprint of the involved types. The instruction
fingerprinter identifies a class only by its name and parent scope,
which is sufficient for Carbon classes but not for imported C++ classes:
different specializations of one class template (and other cases such as
types in anonymous namespaces) share a Carbon name and parent scope. As
a result, the thunks for two distinct specializations could mangle to
the same name, producing a single LLVM function with two definitions and
failing `verifyModule` during lowering.

When fingerprinting a class imported from C++, also include the Clang
mangled name of its type.

Test: toolchain/lower/testdata/interop/cpp/thunks.carbon gains a split
with two specializations of one class template, each requiring a thunk;
their thunks now get distinct mangled names instead of colliding.

Assisted-by: Claude Code

---------

Co-authored-by: Christopher Di Bella <cjdb.ns@gmail.com>
This commit is contained in:
Chandler CarruthandChristopher Di Bella authored and GitHub committed 2026-05-30 08:13:00 +00:00
1 parent 3ef128ac91
commit 8a59f2a76b
64 files changed
+4762 -4330

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -135,9 +135,9 @@ fn TestDerefFail(not_ptr: Cpp.NotAPtr) {
// CHECK:STDOUT: %ConstDeref.Op.type: type = fn_type @ConstDeref.Op [concrete]
// CHECK:STDOUT: %ConstDeref.Op: %ConstDeref.Op.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.261: <witness> = custom_witness (%i32, %ConstDeref.Op), @CppUnsafeDeref [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.facet.960: %CppUnsafeDeref.type = facet_value %ConstDeref, (%custom_witness.261) [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.WithSelf.Op.type.f6c: type = fn_type @CppUnsafeDeref.WithSelf.Op, @CppUnsafeDeref.WithSelf(%CppUnsafeDeref.facet.960) [concrete]
// CHECK:STDOUT: %.632: type = fn_type_with_self_type %CppUnsafeDeref.WithSelf.Op.type.f6c, %CppUnsafeDeref.facet.960 [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.facet.f59: %CppUnsafeDeref.type = facet_value %ConstDeref, (%custom_witness.261) [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.WithSelf.Op.type.2e3: type = fn_type @CppUnsafeDeref.WithSelf.Op, @CppUnsafeDeref.WithSelf(%CppUnsafeDeref.facet.f59) [concrete]
// CHECK:STDOUT: %.e15: type = fn_type_with_self_type %CppUnsafeDeref.WithSelf.Op.type.2e3, %CppUnsafeDeref.facet.f59 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -171,7 +171,7 @@ fn TestDerefFail(not_ptr: Cpp.NotAPtr) {
// CHECK:STDOUT: %Op.ref.loc13_38: %CppUnsafeDeref.assoc_type = name_ref Op, imports.%Core.import_ref.ca6 [concrete = constants.%assoc1]
// CHECK:STDOUT: %impl_witness_assoc_constant: type = impl_witness_assoc_constant @ConstDeref.cpp_operator.%i32.2 [concrete = constants.%i32]
// CHECK:STDOUT: <elided>
// CHECK:STDOUT: %impl.elem1: %.632 = impl_witness_access constants.%custom_witness.261, element1 [concrete = constants.%ConstDeref.Op]
// CHECK:STDOUT: %impl.elem1: %.e15 = impl_witness_access constants.%custom_witness.261, element1 [concrete = constants.%ConstDeref.Op]
// CHECK:STDOUT: %bound_method: <bound method> = bound_method %int_ptr.ref, %impl.elem1
// CHECK:STDOUT: %Op.ref.loc13_43: %ConstDeref.cpp_operator.type = name_ref Op, imports.%ConstDeref.cpp_operator.decl [concrete = constants.%ConstDeref.cpp_operator]
// CHECK:STDOUT: %ConstDeref.cpp_operator.bound: <bound method> = bound_method %int_ptr.ref, %Op.ref.loc13_43
@@ -196,9 +196,9 @@ fn TestDerefFail(not_ptr: Cpp.NotAPtr) {
// CHECK:STDOUT: %MutableDeref.cpp_operator.type: type = fn_type @MutableDeref.cpp_operator [concrete]
// CHECK:STDOUT: %MutableDeref.cpp_operator: %MutableDeref.cpp_operator.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.0b1: <witness> = custom_witness (%i32, %MutableDeref.cpp_operator), @CppUnsafeDeref [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.facet.ebc: %CppUnsafeDeref.type = facet_value %MutableDeref, (%custom_witness.0b1) [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.WithSelf.Op.type.473: type = fn_type @CppUnsafeDeref.WithSelf.Op, @CppUnsafeDeref.WithSelf(%CppUnsafeDeref.facet.ebc) [concrete]
// CHECK:STDOUT: %.2ed: type = fn_type_with_self_type %CppUnsafeDeref.WithSelf.Op.type.473, %CppUnsafeDeref.facet.ebc [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.facet.b48: %CppUnsafeDeref.type = facet_value %MutableDeref, (%custom_witness.0b1) [concrete]
// CHECK:STDOUT: %CppUnsafeDeref.WithSelf.Op.type.f94: type = fn_type @CppUnsafeDeref.WithSelf.Op, @CppUnsafeDeref.WithSelf(%CppUnsafeDeref.facet.b48) [concrete]
// CHECK:STDOUT: %.300: type = fn_type_with_self_type %CppUnsafeDeref.WithSelf.Op.type.f94, %CppUnsafeDeref.facet.b48 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -221,7 +221,7 @@ fn TestDerefFail(not_ptr: Cpp.NotAPtr) {
// CHECK:STDOUT: %CppUnsafeDeref.ref: type = name_ref CppUnsafeDeref, imports.%Core.CppUnsafeDeref [concrete = constants.%CppUnsafeDeref.type]
// CHECK:STDOUT: %Op.ref: %CppUnsafeDeref.assoc_type = name_ref Op, imports.%Core.import_ref.ca6 [concrete = constants.%assoc1]
// CHECK:STDOUT: %impl_witness_assoc_constant: type = impl_witness_assoc_constant @MutableDeref.cpp_operator.%i32.2 [concrete = constants.%i32]
// CHECK:STDOUT: %impl.elem1: %.2ed = impl_witness_access constants.%custom_witness.0b1, element1 [concrete = constants.%MutableDeref.cpp_operator]
// CHECK:STDOUT: %impl.elem1: %.300 = impl_witness_access constants.%custom_witness.0b1, element1 [concrete = constants.%MutableDeref.cpp_operator]
// CHECK:STDOUT: %bound_method: <bound method> = bound_method %int_ptr.ref, %impl.elem1
// CHECK:STDOUT: %MutableDeref.cpp_operator.call: ref %i32 = call %bound_method(%int_ptr.ref)
// CHECK:STDOUT: return %MutableDeref.cpp_operator.call
+169 -169
View File
@@ -391,25 +391,25 @@ fn Test(only_neq: Cpp.OnlyNeq,
// CHECK:STDOUT: %impl.elem1: %.2bb = impl_witness_access %EqWith.lookup_impl_witness, element1 [symbolic]
// CHECK:STDOUT: %specific_impl_fn.bc2: <specific function> = specific_impl_function %impl.elem1, @EqWith.WithSelf.NotEqual(%U, %T) [symbolic]
// CHECK:STDOUT: %EqualityComparable: type = class_type @EqualityComparable [concrete]
// CHECK:STDOUT: %pattern_type.6c6: type = pattern_type %EqualityComparable [concrete]
// CHECK:STDOUT: %pattern_type.51b: type = pattern_type %EqualityComparable [concrete]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
// CHECK:STDOUT: %EqWith.type.f1f: type = facet_type <@EqWith.1, @EqWith.1(%EqualityComparable)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.ee4: type = assoc_entity_type @EqWith.1, @EqWith.1(%EqualityComparable) [concrete]
// CHECK:STDOUT: %assoc0.734: %EqWith.assoc_type.ee4 = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.5b4: %EqWith.assoc_type.ee4 = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %EqWith.type.01f: type = facet_type <@EqWith.1, @EqWith.1(%EqualityComparable)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.804: type = assoc_entity_type @EqWith.1, @EqWith.1(%EqualityComparable) [concrete]
// CHECK:STDOUT: %assoc0.614: %EqWith.assoc_type.804 = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.7f7: %EqWith.assoc_type.804 = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %EqualityComparable.Equal.type: type = fn_type @EqualityComparable.Equal [concrete]
// CHECK:STDOUT: %EqualityComparable.Equal: %EqualityComparable.Equal.type = struct_value () [concrete]
// CHECK:STDOUT: %EqualityComparable.NotEqual.type: type = fn_type @EqualityComparable.NotEqual [concrete]
// CHECK:STDOUT: %EqualityComparable.NotEqual: %EqualityComparable.NotEqual.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.416: <witness> = custom_witness (%EqualityComparable.Equal, %EqualityComparable.NotEqual), @EqWith.1, @EqWith.1(%EqualityComparable) [concrete]
// CHECK:STDOUT: %EqWith.facet.607: %EqWith.type.f1f = facet_value %EqualityComparable, (%custom_witness.416) [concrete]
// CHECK:STDOUT: %pattern_type.293: type = pattern_type %EqWith.type.f1f [concrete]
// CHECK:STDOUT: %complete_type.fc9: <witness> = complete_type_witness %EqWith.type.f1f [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.9be: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%EqualityComparable, %EqWith.facet.607) [concrete]
// CHECK:STDOUT: %.608: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.9be, %EqWith.facet.607 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.2b0: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%EqualityComparable, %EqWith.facet.607) [concrete]
// CHECK:STDOUT: %.b22: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.2b0, %EqWith.facet.607 [concrete]
// CHECK:STDOUT: %custom_witness.1b3: <witness> = custom_witness (%EqualityComparable.Equal, %EqualityComparable.NotEqual), @EqWith.1, @EqWith.1(%EqualityComparable) [concrete]
// CHECK:STDOUT: %EqWith.facet.dc5: %EqWith.type.01f = facet_value %EqualityComparable, (%custom_witness.1b3) [concrete]
// CHECK:STDOUT: %pattern_type.6c1: type = pattern_type %EqWith.type.01f [concrete]
// CHECK:STDOUT: %complete_type.bcc: <witness> = complete_type_witness %EqWith.type.01f [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.d46: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%EqualityComparable, %EqWith.facet.dc5) [concrete]
// CHECK:STDOUT: %.5de: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.d46, %EqWith.facet.dc5 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.0ea: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%EqualityComparable, %EqWith.facet.dc5) [concrete]
// CHECK:STDOUT: %.45e: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.0ea, %EqWith.facet.dc5 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -476,29 +476,29 @@ fn Test(only_neq: Cpp.OnlyNeq,
// CHECK:STDOUT: %pattern_type.loc11_48 => constants.%pattern_type.51d1c4.2
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc11(constants.%EqualityComparable, constants.%EqWith.facet.607) {
// CHECK:STDOUT: specific @EqWith.loc11(constants.%EqualityComparable, constants.%EqWith.facet.dc5) {
// CHECK:STDOUT: %U.loc11_12.1 => constants.%EqualityComparable
// CHECK:STDOUT: %EqWith.type.loc11_38.1 => constants.%EqWith.type.f1f
// CHECK:STDOUT: %T.loc11_22.1 => constants.%EqWith.facet.607
// CHECK:STDOUT: %pattern_type.loc11_22 => constants.%pattern_type.293
// CHECK:STDOUT: %EqWith.type.loc11_38.1 => constants.%EqWith.type.01f
// CHECK:STDOUT: %T.loc11_22.1 => constants.%EqWith.facet.dc5
// CHECK:STDOUT: %pattern_type.loc11_22 => constants.%pattern_type.6c1
// CHECK:STDOUT: %T.as_type.loc11_44.1 => constants.%EqualityComparable
// CHECK:STDOUT: %pattern_type.loc11_42 => constants.%pattern_type.6c6
// CHECK:STDOUT: %pattern_type.loc11_48 => constants.%pattern_type.6c6
// CHECK:STDOUT: %pattern_type.loc11_42 => constants.%pattern_type.51b
// CHECK:STDOUT: %pattern_type.loc11_48 => constants.%pattern_type.51b
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc11_42 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc11_48 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc13 => constants.%complete_type.fc9
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.ee4
// CHECK:STDOUT: %assoc0 => constants.%assoc0.734
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.9be
// CHECK:STDOUT: %.loc13_5.2 => constants.%.608
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.416
// CHECK:STDOUT: %require_complete.loc13 => constants.%complete_type.bcc
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.804
// CHECK:STDOUT: %assoc0 => constants.%assoc0.614
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.d46
// CHECK:STDOUT: %.loc13_5.2 => constants.%.5de
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.1b3
// CHECK:STDOUT: %impl.elem0.loc13_5.2 => constants.%EqualityComparable.Equal
// CHECK:STDOUT: %specific_impl_fn.loc13_5.2 => constants.%EqualityComparable.Equal
// CHECK:STDOUT: %assoc1 => constants.%assoc1.5b4
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.2b0
// CHECK:STDOUT: %.loc14_5.2 => constants.%.b22
// CHECK:STDOUT: %assoc1 => constants.%assoc1.7f7
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.0ea
// CHECK:STDOUT: %.loc14_5.2 => constants.%.45e
// CHECK:STDOUT: %impl.elem1.loc14_5.2 => constants.%EqualityComparable.NotEqual
// CHECK:STDOUT: %specific_impl_fn.loc14_5.2 => constants.%EqualityComparable.NotEqual
// CHECK:STDOUT: }
@@ -537,99 +537,99 @@ fn Test(only_neq: Cpp.OnlyNeq,
// CHECK:STDOUT: %impl.elem1: %.2bb = impl_witness_access %EqWith.lookup_impl_witness, element1 [symbolic]
// CHECK:STDOUT: %specific_impl_fn.bc2: <specific function> = specific_impl_function %impl.elem1, @EqWith.WithSelf.NotEqual(%U, %T) [symbolic]
// CHECK:STDOUT: %A1: type = class_type @A1 [concrete]
// CHECK:STDOUT: %pattern_type.489: type = pattern_type %A1 [concrete]
// CHECK:STDOUT: %pattern_type.c8a: type = pattern_type %A1 [concrete]
// CHECK:STDOUT: %B1: type = class_type @B1 [concrete]
// CHECK:STDOUT: %pattern_type.278: type = pattern_type %B1 [concrete]
// CHECK:STDOUT: %pattern_type.e62: type = pattern_type %B1 [concrete]
// CHECK:STDOUT: %A2: type = class_type @A2 [concrete]
// CHECK:STDOUT: %pattern_type.914: type = pattern_type %A2 [concrete]
// CHECK:STDOUT: %pattern_type.1e3: type = pattern_type %A2 [concrete]
// CHECK:STDOUT: %B2: type = class_type @B2 [concrete]
// CHECK:STDOUT: %pattern_type.6a4: type = pattern_type %B2 [concrete]
// CHECK:STDOUT: %pattern_type.fab: type = pattern_type %B2 [concrete]
// CHECK:STDOUT: %A3: type = class_type @A3 [concrete]
// CHECK:STDOUT: %pattern_type.e08: type = pattern_type %A3 [concrete]
// CHECK:STDOUT: %pattern_type.ada: type = pattern_type %A3 [concrete]
// CHECK:STDOUT: %B3: type = class_type @B3 [concrete]
// CHECK:STDOUT: %pattern_type.18a: type = pattern_type %B3 [concrete]
// CHECK:STDOUT: %pattern_type.a20: type = pattern_type %B3 [concrete]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
// CHECK:STDOUT: %EqWith.type.a7b: type = facet_type <@EqWith.1, @EqWith.1(%B1)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.7fe: type = assoc_entity_type @EqWith.1, @EqWith.1(%B1) [concrete]
// CHECK:STDOUT: %assoc0.bd9: %EqWith.assoc_type.7fe = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.16f: %EqWith.assoc_type.7fe = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %EqWith.type.9e4: type = facet_type <@EqWith.1, @EqWith.1(%B1)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.196: type = assoc_entity_type @EqWith.1, @EqWith.1(%B1) [concrete]
// CHECK:STDOUT: %assoc0.f5f: %EqWith.assoc_type.196 = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.511: %EqWith.assoc_type.196 = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %A1.Equal.type: type = fn_type @A1.Equal [concrete]
// CHECK:STDOUT: %A1.Equal: %A1.Equal.type = struct_value () [concrete]
// CHECK:STDOUT: %A1.NotEqual.type: type = fn_type @A1.NotEqual [concrete]
// CHECK:STDOUT: %A1.NotEqual: %A1.NotEqual.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.da5: <witness> = custom_witness (%A1.Equal, %A1.NotEqual), @EqWith.1, @EqWith.1(%B1) [concrete]
// CHECK:STDOUT: %EqWith.facet.ebd: %EqWith.type.a7b = facet_value %A1, (%custom_witness.da5) [concrete]
// CHECK:STDOUT: %pattern_type.70c: type = pattern_type %EqWith.type.a7b [concrete]
// CHECK:STDOUT: %EqWith.type.4bb: type = facet_type <@EqWith.1, @EqWith.1(%A1)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.2fe: type = assoc_entity_type @EqWith.1, @EqWith.1(%A1) [concrete]
// CHECK:STDOUT: %assoc0.d56: %EqWith.assoc_type.2fe = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.839: %EqWith.assoc_type.2fe = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %custom_witness.494: <witness> = custom_witness (%A1.Equal, %A1.NotEqual), @EqWith.1, @EqWith.1(%B1) [concrete]
// CHECK:STDOUT: %EqWith.facet.169: %EqWith.type.9e4 = facet_value %A1, (%custom_witness.494) [concrete]
// CHECK:STDOUT: %pattern_type.443: type = pattern_type %EqWith.type.9e4 [concrete]
// CHECK:STDOUT: %EqWith.type.361: type = facet_type <@EqWith.1, @EqWith.1(%A1)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.56b: type = assoc_entity_type @EqWith.1, @EqWith.1(%A1) [concrete]
// CHECK:STDOUT: %assoc0.eba: %EqWith.assoc_type.56b = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.8ff: %EqWith.assoc_type.56b = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %B1.Equal.type: type = fn_type @B1.Equal [concrete]
// CHECK:STDOUT: %B1.Equal: %B1.Equal.type = struct_value () [concrete]
// CHECK:STDOUT: %B1.NotEqual.type: type = fn_type @B1.NotEqual [concrete]
// CHECK:STDOUT: %B1.NotEqual: %B1.NotEqual.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.359: <witness> = custom_witness (%B1.Equal, %B1.NotEqual), @EqWith.1, @EqWith.1(%A1) [concrete]
// CHECK:STDOUT: %EqWith.facet.116: %EqWith.type.4bb = facet_value %B1, (%custom_witness.359) [concrete]
// CHECK:STDOUT: %pattern_type.a38: type = pattern_type %EqWith.type.4bb [concrete]
// CHECK:STDOUT: %EqWith.type.901: type = facet_type <@EqWith.1, @EqWith.1(%A2)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.e32: type = assoc_entity_type @EqWith.1, @EqWith.1(%A2) [concrete]
// CHECK:STDOUT: %assoc0.8d2: %EqWith.assoc_type.e32 = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.182: %EqWith.assoc_type.e32 = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %custom_witness.9ed: <witness> = custom_witness (%B1.Equal, %B1.NotEqual), @EqWith.1, @EqWith.1(%A1) [concrete]
// CHECK:STDOUT: %EqWith.facet.136: %EqWith.type.361 = facet_value %B1, (%custom_witness.9ed) [concrete]
// CHECK:STDOUT: %pattern_type.144: type = pattern_type %EqWith.type.361 [concrete]
// CHECK:STDOUT: %EqWith.type.cd4: type = facet_type <@EqWith.1, @EqWith.1(%A2)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.4df: type = assoc_entity_type @EqWith.1, @EqWith.1(%A2) [concrete]
// CHECK:STDOUT: %assoc0.d22: %EqWith.assoc_type.4df = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.ae7: %EqWith.assoc_type.4df = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %B2.Equal.type: type = fn_type @B2.Equal [concrete]
// CHECK:STDOUT: %B2.Equal: %B2.Equal.type = struct_value () [concrete]
// CHECK:STDOUT: %B2.NotEqual.type: type = fn_type @B2.NotEqual [concrete]
// CHECK:STDOUT: %B2.NotEqual: %B2.NotEqual.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.354: <witness> = custom_witness (%B2.Equal, %B2.NotEqual), @EqWith.1, @EqWith.1(%A2) [concrete]
// CHECK:STDOUT: %EqWith.facet.a81: %EqWith.type.901 = facet_value %B2, (%custom_witness.354) [concrete]
// CHECK:STDOUT: %pattern_type.9a8: type = pattern_type %EqWith.type.901 [concrete]
// CHECK:STDOUT: %EqWith.type.561: type = facet_type <@EqWith.1, @EqWith.1(%B3)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.15c: type = assoc_entity_type @EqWith.1, @EqWith.1(%B3) [concrete]
// CHECK:STDOUT: %assoc0.6ac: %EqWith.assoc_type.15c = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.666: %EqWith.assoc_type.15c = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %custom_witness.8ba: <witness> = custom_witness (%B2.Equal, %B2.NotEqual), @EqWith.1, @EqWith.1(%A2) [concrete]
// CHECK:STDOUT: %EqWith.facet.e2d: %EqWith.type.cd4 = facet_value %B2, (%custom_witness.8ba) [concrete]
// CHECK:STDOUT: %pattern_type.fdf: type = pattern_type %EqWith.type.cd4 [concrete]
// CHECK:STDOUT: %EqWith.type.07f: type = facet_type <@EqWith.1, @EqWith.1(%B3)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.fb1: type = assoc_entity_type @EqWith.1, @EqWith.1(%B3) [concrete]
// CHECK:STDOUT: %assoc0.5ff: %EqWith.assoc_type.fb1 = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.0e8: %EqWith.assoc_type.fb1 = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %A3.Equal.type: type = fn_type @A3.Equal [concrete]
// CHECK:STDOUT: %A3.Equal: %A3.Equal.type = struct_value () [concrete]
// CHECK:STDOUT: %NotEqual.type: type = fn_type @NotEqual [concrete]
// CHECK:STDOUT: %NotEqual: %NotEqual.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.505: <witness> = custom_witness (%A3.Equal, %NotEqual), @EqWith.1, @EqWith.1(%B3) [concrete]
// CHECK:STDOUT: %EqWith.facet.364: %EqWith.type.561 = facet_value %A3, (%custom_witness.505) [concrete]
// CHECK:STDOUT: %pattern_type.005: type = pattern_type %EqWith.type.561 [concrete]
// CHECK:STDOUT: %EqWith.type.e18: type = facet_type <@EqWith.1, @EqWith.1(%A3)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.d3d: type = assoc_entity_type @EqWith.1, @EqWith.1(%A3) [concrete]
// CHECK:STDOUT: %assoc0.865: %EqWith.assoc_type.d3d = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.afb: %EqWith.assoc_type.d3d = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %custom_witness.4f1: <witness> = custom_witness (%A3.Equal, %NotEqual), @EqWith.1, @EqWith.1(%B3) [concrete]
// CHECK:STDOUT: %EqWith.facet.06d: %EqWith.type.07f = facet_value %A3, (%custom_witness.4f1) [concrete]
// CHECK:STDOUT: %pattern_type.101: type = pattern_type %EqWith.type.07f [concrete]
// CHECK:STDOUT: %EqWith.type.3fd: type = facet_type <@EqWith.1, @EqWith.1(%A3)> [concrete]
// CHECK:STDOUT: %EqWith.assoc_type.796: type = assoc_entity_type @EqWith.1, @EqWith.1(%A3) [concrete]
// CHECK:STDOUT: %assoc0.a60: %EqWith.assoc_type.796 = assoc_entity element0, imports.%Core.import_ref.5f3 [concrete]
// CHECK:STDOUT: %assoc1.dce: %EqWith.assoc_type.796 = assoc_entity element1, imports.%Core.import_ref.515 [concrete]
// CHECK:STDOUT: %Equal.type: type = fn_type @Equal [concrete]
// CHECK:STDOUT: %Equal: %Equal.type = struct_value () [concrete]
// CHECK:STDOUT: %B3.NotEqual.type: type = fn_type @B3.NotEqual [concrete]
// CHECK:STDOUT: %B3.NotEqual: %B3.NotEqual.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.7a4: <witness> = custom_witness (%Equal, %B3.NotEqual), @EqWith.1, @EqWith.1(%A3) [concrete]
// CHECK:STDOUT: %EqWith.facet.967: %EqWith.type.e18 = facet_value %B3, (%custom_witness.7a4) [concrete]
// CHECK:STDOUT: %pattern_type.ea1: type = pattern_type %EqWith.type.e18 [concrete]
// CHECK:STDOUT: %complete_type.e1f: <witness> = complete_type_witness %EqWith.type.a7b [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.18c: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%B1, %EqWith.facet.ebd) [concrete]
// CHECK:STDOUT: %.76d: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.18c, %EqWith.facet.ebd [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.bd2: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%B1, %EqWith.facet.ebd) [concrete]
// CHECK:STDOUT: %.6e6: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.bd2, %EqWith.facet.ebd [concrete]
// CHECK:STDOUT: %complete_type.a8f: <witness> = complete_type_witness %EqWith.type.4bb [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.d12: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%A1, %EqWith.facet.116) [concrete]
// CHECK:STDOUT: %.3f5: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.d12, %EqWith.facet.116 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.1d9: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%A1, %EqWith.facet.116) [concrete]
// CHECK:STDOUT: %.fdb: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.1d9, %EqWith.facet.116 [concrete]
// CHECK:STDOUT: %complete_type.109: <witness> = complete_type_witness %EqWith.type.901 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.f00: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%A2, %EqWith.facet.a81) [concrete]
// CHECK:STDOUT: %.ca5: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.f00, %EqWith.facet.a81 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.ee1: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%A2, %EqWith.facet.a81) [concrete]
// CHECK:STDOUT: %.02f: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.ee1, %EqWith.facet.a81 [concrete]
// CHECK:STDOUT: %complete_type.02e: <witness> = complete_type_witness %EqWith.type.561 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.f3b: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%B3, %EqWith.facet.364) [concrete]
// CHECK:STDOUT: %.eed: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.f3b, %EqWith.facet.364 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.a49: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%B3, %EqWith.facet.364) [concrete]
// CHECK:STDOUT: %.5c9: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.a49, %EqWith.facet.364 [concrete]
// CHECK:STDOUT: %complete_type.d47: <witness> = complete_type_witness %EqWith.type.e18 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.be3: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%A3, %EqWith.facet.967) [concrete]
// CHECK:STDOUT: %.af5: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.be3, %EqWith.facet.967 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.a22: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%A3, %EqWith.facet.967) [concrete]
// CHECK:STDOUT: %.b2b: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.a22, %EqWith.facet.967 [concrete]
// CHECK:STDOUT: %custom_witness.4ed: <witness> = custom_witness (%Equal, %B3.NotEqual), @EqWith.1, @EqWith.1(%A3) [concrete]
// CHECK:STDOUT: %EqWith.facet.2b7: %EqWith.type.3fd = facet_value %B3, (%custom_witness.4ed) [concrete]
// CHECK:STDOUT: %pattern_type.a79: type = pattern_type %EqWith.type.3fd [concrete]
// CHECK:STDOUT: %complete_type.fc0: <witness> = complete_type_witness %EqWith.type.9e4 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.b43: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%B1, %EqWith.facet.169) [concrete]
// CHECK:STDOUT: %.e88: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.b43, %EqWith.facet.169 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.cd5: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%B1, %EqWith.facet.169) [concrete]
// CHECK:STDOUT: %.a12: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.cd5, %EqWith.facet.169 [concrete]
// CHECK:STDOUT: %complete_type.1c8: <witness> = complete_type_witness %EqWith.type.361 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.d63: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%A1, %EqWith.facet.136) [concrete]
// CHECK:STDOUT: %.895: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.d63, %EqWith.facet.136 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.6f4: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%A1, %EqWith.facet.136) [concrete]
// CHECK:STDOUT: %.781: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.6f4, %EqWith.facet.136 [concrete]
// CHECK:STDOUT: %complete_type.017: <witness> = complete_type_witness %EqWith.type.cd4 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.135: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%A2, %EqWith.facet.e2d) [concrete]
// CHECK:STDOUT: %.400: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.135, %EqWith.facet.e2d [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.57a: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%A2, %EqWith.facet.e2d) [concrete]
// CHECK:STDOUT: %.ce7: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.57a, %EqWith.facet.e2d [concrete]
// CHECK:STDOUT: %complete_type.d97: <witness> = complete_type_witness %EqWith.type.07f [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.738: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%B3, %EqWith.facet.06d) [concrete]
// CHECK:STDOUT: %.72a: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.738, %EqWith.facet.06d [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.512: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%B3, %EqWith.facet.06d) [concrete]
// CHECK:STDOUT: %.a1d: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.512, %EqWith.facet.06d [concrete]
// CHECK:STDOUT: %complete_type.fb2: <witness> = complete_type_witness %EqWith.type.3fd [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type.033: type = fn_type @EqWith.WithSelf.Equal, @EqWith.WithSelf(%A3, %EqWith.facet.2b7) [concrete]
// CHECK:STDOUT: %.938: type = fn_type_with_self_type %EqWith.WithSelf.Equal.type.033, %EqWith.facet.2b7 [concrete]
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type.362: type = fn_type @EqWith.WithSelf.NotEqual, @EqWith.WithSelf(%A3, %EqWith.facet.2b7) [concrete]
// CHECK:STDOUT: %.2b0: type = fn_type_with_self_type %EqWith.WithSelf.NotEqual.type.362, %EqWith.facet.2b7 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -696,137 +696,137 @@ fn Test(only_neq: Cpp.OnlyNeq,
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.51d1c4.2
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc34(constants.%B1, constants.%EqWith.facet.ebd) {
// CHECK:STDOUT: specific @EqWith.loc34(constants.%B1, constants.%EqWith.facet.169) {
// CHECK:STDOUT: %U.loc34_12.1 => constants.%B1
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.a7b
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.ebd
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.70c
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.9e4
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.169
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.443
// CHECK:STDOUT: %T.as_type.loc34_44.1 => constants.%A1
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.489
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.278
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.c8a
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.e62
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc34_42 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc34_48 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.e1f
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.7fe
// CHECK:STDOUT: %assoc0 => constants.%assoc0.bd9
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.18c
// CHECK:STDOUT: %.loc36_5.2 => constants.%.76d
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.da5
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.fc0
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.196
// CHECK:STDOUT: %assoc0 => constants.%assoc0.f5f
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.b43
// CHECK:STDOUT: %.loc36_5.2 => constants.%.e88
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.494
// CHECK:STDOUT: %impl.elem0.loc36_5.2 => constants.%A1.Equal
// CHECK:STDOUT: %specific_impl_fn.loc36_5.2 => constants.%A1.Equal
// CHECK:STDOUT: %assoc1 => constants.%assoc1.16f
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.bd2
// CHECK:STDOUT: %.loc37_5.2 => constants.%.6e6
// CHECK:STDOUT: %assoc1 => constants.%assoc1.511
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.cd5
// CHECK:STDOUT: %.loc37_5.2 => constants.%.a12
// CHECK:STDOUT: %impl.elem1.loc37_5.2 => constants.%A1.NotEqual
// CHECK:STDOUT: %specific_impl_fn.loc37_5.2 => constants.%A1.NotEqual
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc34(constants.%A1, constants.%EqWith.facet.116) {
// CHECK:STDOUT: specific @EqWith.loc34(constants.%A1, constants.%EqWith.facet.136) {
// CHECK:STDOUT: %U.loc34_12.1 => constants.%A1
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.4bb
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.116
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.a38
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.361
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.136
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.144
// CHECK:STDOUT: %T.as_type.loc34_44.1 => constants.%B1
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.278
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.489
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.e62
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.c8a
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc34_42 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc34_48 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.a8f
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.2fe
// CHECK:STDOUT: %assoc0 => constants.%assoc0.d56
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.d12
// CHECK:STDOUT: %.loc36_5.2 => constants.%.3f5
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.359
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.1c8
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.56b
// CHECK:STDOUT: %assoc0 => constants.%assoc0.eba
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.d63
// CHECK:STDOUT: %.loc36_5.2 => constants.%.895
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.9ed
// CHECK:STDOUT: %impl.elem0.loc36_5.2 => constants.%B1.Equal
// CHECK:STDOUT: %specific_impl_fn.loc36_5.2 => constants.%B1.Equal
// CHECK:STDOUT: %assoc1 => constants.%assoc1.839
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.1d9
// CHECK:STDOUT: %.loc37_5.2 => constants.%.fdb
// CHECK:STDOUT: %assoc1 => constants.%assoc1.8ff
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.6f4
// CHECK:STDOUT: %.loc37_5.2 => constants.%.781
// CHECK:STDOUT: %impl.elem1.loc37_5.2 => constants.%B1.NotEqual
// CHECK:STDOUT: %specific_impl_fn.loc37_5.2 => constants.%B1.NotEqual
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc34(constants.%A2, constants.%EqWith.facet.a81) {
// CHECK:STDOUT: specific @EqWith.loc34(constants.%A2, constants.%EqWith.facet.e2d) {
// CHECK:STDOUT: %U.loc34_12.1 => constants.%A2
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.901
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.a81
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.9a8
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.cd4
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.e2d
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.fdf
// CHECK:STDOUT: %T.as_type.loc34_44.1 => constants.%B2
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.6a4
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.914
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.fab
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.1e3
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc34_42 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc34_48 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.109
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.e32
// CHECK:STDOUT: %assoc0 => constants.%assoc0.8d2
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.f00
// CHECK:STDOUT: %.loc36_5.2 => constants.%.ca5
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.354
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.017
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.4df
// CHECK:STDOUT: %assoc0 => constants.%assoc0.d22
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.135
// CHECK:STDOUT: %.loc36_5.2 => constants.%.400
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.8ba
// CHECK:STDOUT: %impl.elem0.loc36_5.2 => constants.%B2.Equal
// CHECK:STDOUT: %specific_impl_fn.loc36_5.2 => constants.%B2.Equal
// CHECK:STDOUT: %assoc1 => constants.%assoc1.182
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.ee1
// CHECK:STDOUT: %.loc37_5.2 => constants.%.02f
// CHECK:STDOUT: %assoc1 => constants.%assoc1.ae7
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.57a
// CHECK:STDOUT: %.loc37_5.2 => constants.%.ce7
// CHECK:STDOUT: %impl.elem1.loc37_5.2 => constants.%B2.NotEqual
// CHECK:STDOUT: %specific_impl_fn.loc37_5.2 => constants.%B2.NotEqual
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc34(constants.%B3, constants.%EqWith.facet.364) {
// CHECK:STDOUT: specific @EqWith.loc34(constants.%B3, constants.%EqWith.facet.06d) {
// CHECK:STDOUT: %U.loc34_12.1 => constants.%B3
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.561
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.364
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.005
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.07f
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.06d
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.101
// CHECK:STDOUT: %T.as_type.loc34_44.1 => constants.%A3
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.e08
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.18a
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.ada
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.a20
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc34_42 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc34_48 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.02e
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.15c
// CHECK:STDOUT: %assoc0 => constants.%assoc0.6ac
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.f3b
// CHECK:STDOUT: %.loc36_5.2 => constants.%.eed
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.505
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.d97
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.fb1
// CHECK:STDOUT: %assoc0 => constants.%assoc0.5ff
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.738
// CHECK:STDOUT: %.loc36_5.2 => constants.%.72a
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.4f1
// CHECK:STDOUT: %impl.elem0.loc36_5.2 => constants.%A3.Equal
// CHECK:STDOUT: %specific_impl_fn.loc36_5.2 => constants.%A3.Equal
// CHECK:STDOUT: %assoc1 => constants.%assoc1.666
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.a49
// CHECK:STDOUT: %.loc37_5.2 => constants.%.5c9
// CHECK:STDOUT: %assoc1 => constants.%assoc1.0e8
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.512
// CHECK:STDOUT: %.loc37_5.2 => constants.%.a1d
// CHECK:STDOUT: %impl.elem1.loc37_5.2 => constants.%NotEqual
// CHECK:STDOUT: %specific_impl_fn.loc37_5.2 => constants.%NotEqual
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc34(constants.%A3, constants.%EqWith.facet.967) {
// CHECK:STDOUT: specific @EqWith.loc34(constants.%A3, constants.%EqWith.facet.2b7) {
// CHECK:STDOUT: %U.loc34_12.1 => constants.%A3
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.e18
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.967
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.ea1
// CHECK:STDOUT: %EqWith.type.loc34_38.1 => constants.%EqWith.type.3fd
// CHECK:STDOUT: %T.loc34_22.1 => constants.%EqWith.facet.2b7
// CHECK:STDOUT: %pattern_type.loc34_22 => constants.%pattern_type.a79
// CHECK:STDOUT: %T.as_type.loc34_44.1 => constants.%B3
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.18a
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.e08
// CHECK:STDOUT: %pattern_type.loc34_42 => constants.%pattern_type.a20
// CHECK:STDOUT: %pattern_type.loc34_48 => constants.%pattern_type.ada
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc34_42 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc34_48 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.d47
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.d3d
// CHECK:STDOUT: %assoc0 => constants.%assoc0.865
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.be3
// CHECK:STDOUT: %.loc36_5.2 => constants.%.af5
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.7a4
// CHECK:STDOUT: %require_complete.loc36 => constants.%complete_type.fb2
// CHECK:STDOUT: %EqWith.assoc_type => constants.%EqWith.assoc_type.796
// CHECK:STDOUT: %assoc0 => constants.%assoc0.a60
// CHECK:STDOUT: %EqWith.WithSelf.Equal.type => constants.%EqWith.WithSelf.Equal.type.033
// CHECK:STDOUT: %.loc36_5.2 => constants.%.938
// CHECK:STDOUT: %EqWith.lookup_impl_witness => constants.%custom_witness.4ed
// CHECK:STDOUT: %impl.elem0.loc36_5.2 => constants.%Equal
// CHECK:STDOUT: %specific_impl_fn.loc36_5.2 => constants.%Equal
// CHECK:STDOUT: %assoc1 => constants.%assoc1.afb
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.a22
// CHECK:STDOUT: %.loc37_5.2 => constants.%.b2b
// CHECK:STDOUT: %assoc1 => constants.%assoc1.dce
// CHECK:STDOUT: %EqWith.WithSelf.NotEqual.type => constants.%EqWith.WithSelf.NotEqual.type.362
// CHECK:STDOUT: %.loc37_5.2 => constants.%.2b0
// CHECK:STDOUT: %impl.elem1.loc37_5.2 => constants.%B3.NotEqual
// CHECK:STDOUT: %specific_impl_fn.loc37_5.2 => constants.%B3.NotEqual
// CHECK:STDOUT: }
File diff suppressed because it is too large. Load diff
@@ -439,15 +439,15 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %impl.elem3: %.137 = impl_witness_access %OrderedWith.lookup_impl_witness, element3 [symbolic]
// CHECK:STDOUT: %specific_impl_fn.261: <specific function> = specific_impl_function %impl.elem3, @OrderedWith.WithSelf.GreaterOrEquivalent(%U, %T) [symbolic]
// CHECK:STDOUT: %Ordered: type = class_type @Ordered [concrete]
// CHECK:STDOUT: %pattern_type.cc8: type = pattern_type %Ordered [concrete]
// CHECK:STDOUT: %pattern_type.56a: type = pattern_type %Ordered [concrete]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
// CHECK:STDOUT: %OrderedWith.type.e20: type = facet_type <@OrderedWith.1, @OrderedWith.1(%Ordered)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.78b: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%Ordered) [concrete]
// CHECK:STDOUT: %assoc0.1de: %OrderedWith.assoc_type.78b = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.117: %OrderedWith.assoc_type.78b = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.4c9: %OrderedWith.assoc_type.78b = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.210: %OrderedWith.assoc_type.78b = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %OrderedWith.type.ef0: type = facet_type <@OrderedWith.1, @OrderedWith.1(%Ordered)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.298: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%Ordered) [concrete]
// CHECK:STDOUT: %assoc0.0d2: %OrderedWith.assoc_type.298 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.d8d: %OrderedWith.assoc_type.298 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.1b7: %OrderedWith.assoc_type.298 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.1e4: %OrderedWith.assoc_type.298 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %Ordered.Less.type: type = fn_type @Ordered.Less [concrete]
// CHECK:STDOUT: %Ordered.Less: %Ordered.Less.type = struct_value () [concrete]
// CHECK:STDOUT: %Ordered.LessOrEquivalent.type: type = fn_type @Ordered.LessOrEquivalent [concrete]
@@ -456,18 +456,18 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %Ordered.Greater: %Ordered.Greater.type = struct_value () [concrete]
// CHECK:STDOUT: %Ordered.GreaterOrEquivalent.type: type = fn_type @Ordered.GreaterOrEquivalent [concrete]
// CHECK:STDOUT: %Ordered.GreaterOrEquivalent: %Ordered.GreaterOrEquivalent.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.13d: <witness> = custom_witness (%Ordered.Less, %Ordered.LessOrEquivalent, %Ordered.Greater, %Ordered.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%Ordered) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.8a0: %OrderedWith.type.e20 = facet_value %Ordered, (%custom_witness.13d) [concrete]
// CHECK:STDOUT: %pattern_type.a62: type = pattern_type %OrderedWith.type.e20 [concrete]
// CHECK:STDOUT: %complete_type.051: <witness> = complete_type_witness %OrderedWith.type.e20 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.b67: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.8a0) [concrete]
// CHECK:STDOUT: %.0b2: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.b67, %OrderedWith.facet.8a0 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.e10: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.8a0) [concrete]
// CHECK:STDOUT: %.61a: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.e10, %OrderedWith.facet.8a0 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.c7f: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.8a0) [concrete]
// CHECK:STDOUT: %.f88: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.c7f, %OrderedWith.facet.8a0 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.c39: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.8a0) [concrete]
// CHECK:STDOUT: %.20a: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.c39, %OrderedWith.facet.8a0 [concrete]
// CHECK:STDOUT: %custom_witness.99d: <witness> = custom_witness (%Ordered.Less, %Ordered.LessOrEquivalent, %Ordered.Greater, %Ordered.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%Ordered) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.0d3: %OrderedWith.type.ef0 = facet_value %Ordered, (%custom_witness.99d) [concrete]
// CHECK:STDOUT: %pattern_type.432: type = pattern_type %OrderedWith.type.ef0 [concrete]
// CHECK:STDOUT: %complete_type.831: <witness> = complete_type_witness %OrderedWith.type.ef0 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.d4c: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.0d3) [concrete]
// CHECK:STDOUT: %.2f2: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.d4c, %OrderedWith.facet.0d3 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.e37: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.0d3) [concrete]
// CHECK:STDOUT: %.bcc: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.e37, %OrderedWith.facet.0d3 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.2d4: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.0d3) [concrete]
// CHECK:STDOUT: %.287: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.2d4, %OrderedWith.facet.0d3 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.589: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%Ordered, %OrderedWith.facet.0d3) [concrete]
// CHECK:STDOUT: %.e4e: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.589, %OrderedWith.facet.0d3 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -570,39 +570,39 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %pattern_type.loc13_58 => constants.%pattern_type.51d1c4.2
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc13(constants.%Ordered, constants.%OrderedWith.facet.8a0) {
// CHECK:STDOUT: specific @OrderedWith.loc13(constants.%Ordered, constants.%OrderedWith.facet.0d3) {
// CHECK:STDOUT: %U.loc13_17.1 => constants.%Ordered
// CHECK:STDOUT: %OrderedWith.type.loc13_48.1 => constants.%OrderedWith.type.e20
// CHECK:STDOUT: %T.loc13_27.1 => constants.%OrderedWith.facet.8a0
// CHECK:STDOUT: %pattern_type.loc13_27 => constants.%pattern_type.a62
// CHECK:STDOUT: %OrderedWith.type.loc13_48.1 => constants.%OrderedWith.type.ef0
// CHECK:STDOUT: %T.loc13_27.1 => constants.%OrderedWith.facet.0d3
// CHECK:STDOUT: %pattern_type.loc13_27 => constants.%pattern_type.432
// CHECK:STDOUT: %T.as_type.loc13_54.1 => constants.%Ordered
// CHECK:STDOUT: %pattern_type.loc13_52 => constants.%pattern_type.cc8
// CHECK:STDOUT: %pattern_type.loc13_58 => constants.%pattern_type.cc8
// CHECK:STDOUT: %pattern_type.loc13_52 => constants.%pattern_type.56a
// CHECK:STDOUT: %pattern_type.loc13_58 => constants.%pattern_type.56a
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc13_52 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc13_58 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc15 => constants.%complete_type.051
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.78b
// CHECK:STDOUT: %assoc0 => constants.%assoc0.1de
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.b67
// CHECK:STDOUT: %.loc15_5.2 => constants.%.0b2
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.13d
// CHECK:STDOUT: %require_complete.loc15 => constants.%complete_type.831
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.298
// CHECK:STDOUT: %assoc0 => constants.%assoc0.0d2
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.d4c
// CHECK:STDOUT: %.loc15_5.2 => constants.%.2f2
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.99d
// CHECK:STDOUT: %impl.elem0.loc15_5.2 => constants.%Ordered.Less
// CHECK:STDOUT: %specific_impl_fn.loc15_5.2 => constants.%Ordered.Less
// CHECK:STDOUT: %assoc1 => constants.%assoc1.117
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.e10
// CHECK:STDOUT: %.loc16_5.2 => constants.%.61a
// CHECK:STDOUT: %assoc1 => constants.%assoc1.d8d
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.e37
// CHECK:STDOUT: %.loc16_5.2 => constants.%.bcc
// CHECK:STDOUT: %impl.elem1.loc16_5.2 => constants.%Ordered.LessOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc16_5.2 => constants.%Ordered.LessOrEquivalent
// CHECK:STDOUT: %assoc2 => constants.%assoc2.4c9
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.c7f
// CHECK:STDOUT: %.loc17_5.2 => constants.%.f88
// CHECK:STDOUT: %assoc2 => constants.%assoc2.1b7
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.2d4
// CHECK:STDOUT: %.loc17_5.2 => constants.%.287
// CHECK:STDOUT: %impl.elem2.loc17_5.2 => constants.%Ordered.Greater
// CHECK:STDOUT: %specific_impl_fn.loc17_5.2 => constants.%Ordered.Greater
// CHECK:STDOUT: %assoc3 => constants.%assoc3.210
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.c39
// CHECK:STDOUT: %.loc18_5.2 => constants.%.20a
// CHECK:STDOUT: %assoc3 => constants.%assoc3.1e4
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.589
// CHECK:STDOUT: %.loc18_5.2 => constants.%.e4e
// CHECK:STDOUT: %impl.elem3.loc18_5.2 => constants.%Ordered.GreaterOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc18_5.2 => constants.%Ordered.GreaterOrEquivalent
// CHECK:STDOUT: }
@@ -657,25 +657,25 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %impl.elem3: %.137 = impl_witness_access %OrderedWith.lookup_impl_witness, element3 [symbolic]
// CHECK:STDOUT: %specific_impl_fn.261: <specific function> = specific_impl_function %impl.elem3, @OrderedWith.WithSelf.GreaterOrEquivalent(%U, %T) [symbolic]
// CHECK:STDOUT: %A1: type = class_type @A1 [concrete]
// CHECK:STDOUT: %pattern_type.489: type = pattern_type %A1 [concrete]
// CHECK:STDOUT: %pattern_type.c8a: type = pattern_type %A1 [concrete]
// CHECK:STDOUT: %B1: type = class_type @B1 [concrete]
// CHECK:STDOUT: %pattern_type.278: type = pattern_type %B1 [concrete]
// CHECK:STDOUT: %pattern_type.e62: type = pattern_type %B1 [concrete]
// CHECK:STDOUT: %A2: type = class_type @A2 [concrete]
// CHECK:STDOUT: %pattern_type.914: type = pattern_type %A2 [concrete]
// CHECK:STDOUT: %pattern_type.1e3: type = pattern_type %A2 [concrete]
// CHECK:STDOUT: %B2: type = class_type @B2 [concrete]
// CHECK:STDOUT: %pattern_type.6a4: type = pattern_type %B2 [concrete]
// CHECK:STDOUT: %pattern_type.fab: type = pattern_type %B2 [concrete]
// CHECK:STDOUT: %A3: type = class_type @A3 [concrete]
// CHECK:STDOUT: %pattern_type.e08: type = pattern_type %A3 [concrete]
// CHECK:STDOUT: %pattern_type.ada: type = pattern_type %A3 [concrete]
// CHECK:STDOUT: %B3: type = class_type @B3 [concrete]
// CHECK:STDOUT: %pattern_type.18a: type = pattern_type %B3 [concrete]
// CHECK:STDOUT: %pattern_type.a20: type = pattern_type %B3 [concrete]
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
// CHECK:STDOUT: %OrderedWith.type.848: type = facet_type <@OrderedWith.1, @OrderedWith.1(%B1)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.d2f: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%B1) [concrete]
// CHECK:STDOUT: %assoc0.5f5: %OrderedWith.assoc_type.d2f = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.dd5: %OrderedWith.assoc_type.d2f = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.198: %OrderedWith.assoc_type.d2f = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.40e: %OrderedWith.assoc_type.d2f = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %OrderedWith.type.e85: type = facet_type <@OrderedWith.1, @OrderedWith.1(%B1)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.46d: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%B1) [concrete]
// CHECK:STDOUT: %assoc0.074: %OrderedWith.assoc_type.46d = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.b94: %OrderedWith.assoc_type.46d = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.085: %OrderedWith.assoc_type.46d = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.426: %OrderedWith.assoc_type.46d = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %A1.Less.type: type = fn_type @A1.Less [concrete]
// CHECK:STDOUT: %A1.Less: %A1.Less.type = struct_value () [concrete]
// CHECK:STDOUT: %A1.LessOrEquivalent.type: type = fn_type @A1.LessOrEquivalent [concrete]
@@ -684,15 +684,15 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %A1.Greater: %A1.Greater.type = struct_value () [concrete]
// CHECK:STDOUT: %A1.GreaterOrEquivalent.type: type = fn_type @A1.GreaterOrEquivalent [concrete]
// CHECK:STDOUT: %A1.GreaterOrEquivalent: %A1.GreaterOrEquivalent.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.61b: <witness> = custom_witness (%A1.Less, %A1.LessOrEquivalent, %A1.Greater, %A1.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%B1) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.0b6: %OrderedWith.type.848 = facet_value %A1, (%custom_witness.61b) [concrete]
// CHECK:STDOUT: %pattern_type.b8e: type = pattern_type %OrderedWith.type.848 [concrete]
// CHECK:STDOUT: %OrderedWith.type.3fd: type = facet_type <@OrderedWith.1, @OrderedWith.1(%A1)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.753: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%A1) [concrete]
// CHECK:STDOUT: %assoc0.48a: %OrderedWith.assoc_type.753 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.af7: %OrderedWith.assoc_type.753 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.b59: %OrderedWith.assoc_type.753 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.859: %OrderedWith.assoc_type.753 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %custom_witness.ca6: <witness> = custom_witness (%A1.Less, %A1.LessOrEquivalent, %A1.Greater, %A1.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%B1) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.97c: %OrderedWith.type.e85 = facet_value %A1, (%custom_witness.ca6) [concrete]
// CHECK:STDOUT: %pattern_type.187: type = pattern_type %OrderedWith.type.e85 [concrete]
// CHECK:STDOUT: %OrderedWith.type.de5: type = facet_type <@OrderedWith.1, @OrderedWith.1(%A1)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.6f1: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%A1) [concrete]
// CHECK:STDOUT: %assoc0.5e4: %OrderedWith.assoc_type.6f1 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.547: %OrderedWith.assoc_type.6f1 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.e9f: %OrderedWith.assoc_type.6f1 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.c50: %OrderedWith.assoc_type.6f1 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %B1.Less.type: type = fn_type @B1.Less [concrete]
// CHECK:STDOUT: %B1.Less: %B1.Less.type = struct_value () [concrete]
// CHECK:STDOUT: %B1.LessOrEquivalent.type: type = fn_type @B1.LessOrEquivalent [concrete]
@@ -701,15 +701,15 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %B1.Greater: %B1.Greater.type = struct_value () [concrete]
// CHECK:STDOUT: %B1.GreaterOrEquivalent.type: type = fn_type @B1.GreaterOrEquivalent [concrete]
// CHECK:STDOUT: %B1.GreaterOrEquivalent: %B1.GreaterOrEquivalent.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.831: <witness> = custom_witness (%B1.Less, %B1.LessOrEquivalent, %B1.Greater, %B1.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%A1) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.b58: %OrderedWith.type.3fd = facet_value %B1, (%custom_witness.831) [concrete]
// CHECK:STDOUT: %pattern_type.e33: type = pattern_type %OrderedWith.type.3fd [concrete]
// CHECK:STDOUT: %OrderedWith.type.077: type = facet_type <@OrderedWith.1, @OrderedWith.1(%A2)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.893: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%A2) [concrete]
// CHECK:STDOUT: %assoc0.c31: %OrderedWith.assoc_type.893 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.1c3: %OrderedWith.assoc_type.893 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.dc0: %OrderedWith.assoc_type.893 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.20d: %OrderedWith.assoc_type.893 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %custom_witness.998: <witness> = custom_witness (%B1.Less, %B1.LessOrEquivalent, %B1.Greater, %B1.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%A1) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.53d: %OrderedWith.type.de5 = facet_value %B1, (%custom_witness.998) [concrete]
// CHECK:STDOUT: %pattern_type.18c: type = pattern_type %OrderedWith.type.de5 [concrete]
// CHECK:STDOUT: %OrderedWith.type.b2b: type = facet_type <@OrderedWith.1, @OrderedWith.1(%A2)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.ede: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%A2) [concrete]
// CHECK:STDOUT: %assoc0.ae2: %OrderedWith.assoc_type.ede = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.a64: %OrderedWith.assoc_type.ede = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.24c: %OrderedWith.assoc_type.ede = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.f57: %OrderedWith.assoc_type.ede = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %B2.Less.type: type = fn_type @B2.Less [concrete]
// CHECK:STDOUT: %B2.Less: %B2.Less.type = struct_value () [concrete]
// CHECK:STDOUT: %B2.LessOrEquivalent.type: type = fn_type @B2.LessOrEquivalent [concrete]
@@ -718,15 +718,15 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %B2.Greater: %B2.Greater.type = struct_value () [concrete]
// CHECK:STDOUT: %B2.GreaterOrEquivalent.type: type = fn_type @B2.GreaterOrEquivalent [concrete]
// CHECK:STDOUT: %B2.GreaterOrEquivalent: %B2.GreaterOrEquivalent.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.601: <witness> = custom_witness (%B2.Less, %B2.LessOrEquivalent, %B2.Greater, %B2.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%A2) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.a99: %OrderedWith.type.077 = facet_value %B2, (%custom_witness.601) [concrete]
// CHECK:STDOUT: %pattern_type.1fac: type = pattern_type %OrderedWith.type.077 [concrete]
// CHECK:STDOUT: %OrderedWith.type.bb7: type = facet_type <@OrderedWith.1, @OrderedWith.1(%B3)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.8e0: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%B3) [concrete]
// CHECK:STDOUT: %assoc0.8b3: %OrderedWith.assoc_type.8e0 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.627: %OrderedWith.assoc_type.8e0 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.00e: %OrderedWith.assoc_type.8e0 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.b0d: %OrderedWith.assoc_type.8e0 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %custom_witness.a76: <witness> = custom_witness (%B2.Less, %B2.LessOrEquivalent, %B2.Greater, %B2.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%A2) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.f05: %OrderedWith.type.b2b = facet_value %B2, (%custom_witness.a76) [concrete]
// CHECK:STDOUT: %pattern_type.c18: type = pattern_type %OrderedWith.type.b2b [concrete]
// CHECK:STDOUT: %OrderedWith.type.3b2: type = facet_type <@OrderedWith.1, @OrderedWith.1(%B3)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.b1f: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%B3) [concrete]
// CHECK:STDOUT: %assoc0.635: %OrderedWith.assoc_type.b1f = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.e4a: %OrderedWith.assoc_type.b1f = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.21a: %OrderedWith.assoc_type.b1f = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.1bb: %OrderedWith.assoc_type.b1f = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %A3.Less.type: type = fn_type @A3.Less [concrete]
// CHECK:STDOUT: %A3.Less: %A3.Less.type = struct_value () [concrete]
// CHECK:STDOUT: %LessOrEquivalent.type: type = fn_type @LessOrEquivalent [concrete]
@@ -735,15 +735,15 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %A3.Greater: %A3.Greater.type = struct_value () [concrete]
// CHECK:STDOUT: %GreaterOrEquivalent.type: type = fn_type @GreaterOrEquivalent [concrete]
// CHECK:STDOUT: %GreaterOrEquivalent: %GreaterOrEquivalent.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.4f9: <witness> = custom_witness (%A3.Less, %LessOrEquivalent, %A3.Greater, %GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%B3) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.e01: %OrderedWith.type.bb7 = facet_value %A3, (%custom_witness.4f9) [concrete]
// CHECK:STDOUT: %pattern_type.50d: type = pattern_type %OrderedWith.type.bb7 [concrete]
// CHECK:STDOUT: %OrderedWith.type.852: type = facet_type <@OrderedWith.1, @OrderedWith.1(%A3)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.9b5: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%A3) [concrete]
// CHECK:STDOUT: %assoc0.5fc: %OrderedWith.assoc_type.9b5 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.c88: %OrderedWith.assoc_type.9b5 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.af5: %OrderedWith.assoc_type.9b5 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.d90: %OrderedWith.assoc_type.9b5 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %custom_witness.223: <witness> = custom_witness (%A3.Less, %LessOrEquivalent, %A3.Greater, %GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%B3) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.9e9: %OrderedWith.type.3b2 = facet_value %A3, (%custom_witness.223) [concrete]
// CHECK:STDOUT: %pattern_type.448: type = pattern_type %OrderedWith.type.3b2 [concrete]
// CHECK:STDOUT: %OrderedWith.type.708: type = facet_type <@OrderedWith.1, @OrderedWith.1(%A3)> [concrete]
// CHECK:STDOUT: %OrderedWith.assoc_type.2d1: type = assoc_entity_type @OrderedWith.1, @OrderedWith.1(%A3) [concrete]
// CHECK:STDOUT: %assoc0.cb0: %OrderedWith.assoc_type.2d1 = assoc_entity element0, imports.%Core.import_ref.250 [concrete]
// CHECK:STDOUT: %assoc1.aa4: %OrderedWith.assoc_type.2d1 = assoc_entity element1, imports.%Core.import_ref.af2 [concrete]
// CHECK:STDOUT: %assoc2.ec4: %OrderedWith.assoc_type.2d1 = assoc_entity element2, imports.%Core.import_ref.ece [concrete]
// CHECK:STDOUT: %assoc3.781: %OrderedWith.assoc_type.2d1 = assoc_entity element3, imports.%Core.import_ref.bcf [concrete]
// CHECK:STDOUT: %Less.type: type = fn_type @Less [concrete]
// CHECK:STDOUT: %Less: %Less.type = struct_value () [concrete]
// CHECK:STDOUT: %B3.LessOrEquivalent.type: type = fn_type @B3.LessOrEquivalent [concrete]
@@ -752,54 +752,54 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %Greater: %Greater.type = struct_value () [concrete]
// CHECK:STDOUT: %B3.GreaterOrEquivalent.type: type = fn_type @B3.GreaterOrEquivalent [concrete]
// CHECK:STDOUT: %B3.GreaterOrEquivalent: %B3.GreaterOrEquivalent.type = struct_value () [concrete]
// CHECK:STDOUT: %custom_witness.858: <witness> = custom_witness (%Less, %B3.LessOrEquivalent, %Greater, %B3.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%A3) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.8d9: %OrderedWith.type.852 = facet_value %B3, (%custom_witness.858) [concrete]
// CHECK:STDOUT: %pattern_type.1fab: type = pattern_type %OrderedWith.type.852 [concrete]
// CHECK:STDOUT: %complete_type.4f4: <witness> = complete_type_witness %OrderedWith.type.848 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.12b: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.0b6) [concrete]
// CHECK:STDOUT: %.f93: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.12b, %OrderedWith.facet.0b6 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.448: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.0b6) [concrete]
// CHECK:STDOUT: %.78f: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.448, %OrderedWith.facet.0b6 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.670: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.0b6) [concrete]
// CHECK:STDOUT: %.183: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.670, %OrderedWith.facet.0b6 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.5f2: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.0b6) [concrete]
// CHECK:STDOUT: %.846: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.5f2, %OrderedWith.facet.0b6 [concrete]
// CHECK:STDOUT: %complete_type.213: <witness> = complete_type_witness %OrderedWith.type.3fd [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.d18: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.b58) [concrete]
// CHECK:STDOUT: %.343: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.d18, %OrderedWith.facet.b58 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.e77: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.b58) [concrete]
// CHECK:STDOUT: %.8cf: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.e77, %OrderedWith.facet.b58 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.dd9: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.b58) [concrete]
// CHECK:STDOUT: %.208: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.dd9, %OrderedWith.facet.b58 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.628: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.b58) [concrete]
// CHECK:STDOUT: %.5aa: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.628, %OrderedWith.facet.b58 [concrete]
// CHECK:STDOUT: %complete_type.e9c: <witness> = complete_type_witness %OrderedWith.type.077 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.9b6: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.a99) [concrete]
// CHECK:STDOUT: %.4c2: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.9b6, %OrderedWith.facet.a99 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.920: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.a99) [concrete]
// CHECK:STDOUT: %.712: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.920, %OrderedWith.facet.a99 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.f32: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.a99) [concrete]
// CHECK:STDOUT: %.358: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.f32, %OrderedWith.facet.a99 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.fc7: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.a99) [concrete]
// CHECK:STDOUT: %.c0e: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.fc7, %OrderedWith.facet.a99 [concrete]
// CHECK:STDOUT: %complete_type.c99: <witness> = complete_type_witness %OrderedWith.type.bb7 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.0dc: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.e01) [concrete]
// CHECK:STDOUT: %.894: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.0dc, %OrderedWith.facet.e01 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.713: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.e01) [concrete]
// CHECK:STDOUT: %.c8d: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.713, %OrderedWith.facet.e01 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.f35: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.e01) [concrete]
// CHECK:STDOUT: %.01d: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.f35, %OrderedWith.facet.e01 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.965: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.e01) [concrete]
// CHECK:STDOUT: %.672: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.965, %OrderedWith.facet.e01 [concrete]
// CHECK:STDOUT: %complete_type.50b: <witness> = complete_type_witness %OrderedWith.type.852 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.9da: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.8d9) [concrete]
// CHECK:STDOUT: %.393: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.9da, %OrderedWith.facet.8d9 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.34f: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.8d9) [concrete]
// CHECK:STDOUT: %.8ce: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.34f, %OrderedWith.facet.8d9 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.87e: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.8d9) [concrete]
// CHECK:STDOUT: %.59a: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.87e, %OrderedWith.facet.8d9 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.d85: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.8d9) [concrete]
// CHECK:STDOUT: %.e0e: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.d85, %OrderedWith.facet.8d9 [concrete]
// CHECK:STDOUT: %custom_witness.0c0: <witness> = custom_witness (%Less, %B3.LessOrEquivalent, %Greater, %B3.GreaterOrEquivalent), @OrderedWith.1, @OrderedWith.1(%A3) [concrete]
// CHECK:STDOUT: %OrderedWith.facet.725: %OrderedWith.type.708 = facet_value %B3, (%custom_witness.0c0) [concrete]
// CHECK:STDOUT: %pattern_type.2c5: type = pattern_type %OrderedWith.type.708 [concrete]
// CHECK:STDOUT: %complete_type.979: <witness> = complete_type_witness %OrderedWith.type.e85 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.bd5: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.97c) [concrete]
// CHECK:STDOUT: %.2ff: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.bd5, %OrderedWith.facet.97c [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.651: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.97c) [concrete]
// CHECK:STDOUT: %.b55: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.651, %OrderedWith.facet.97c [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.d8f: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.97c) [concrete]
// CHECK:STDOUT: %.68a: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.d8f, %OrderedWith.facet.97c [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.d67: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%B1, %OrderedWith.facet.97c) [concrete]
// CHECK:STDOUT: %.a97: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.d67, %OrderedWith.facet.97c [concrete]
// CHECK:STDOUT: %complete_type.409: <witness> = complete_type_witness %OrderedWith.type.de5 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.6e7: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.53d) [concrete]
// CHECK:STDOUT: %.866: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.6e7, %OrderedWith.facet.53d [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.03c: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.53d) [concrete]
// CHECK:STDOUT: %.87e: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.03c, %OrderedWith.facet.53d [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.829: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.53d) [concrete]
// CHECK:STDOUT: %.bb6: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.829, %OrderedWith.facet.53d [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.328: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%A1, %OrderedWith.facet.53d) [concrete]
// CHECK:STDOUT: %.d08: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.328, %OrderedWith.facet.53d [concrete]
// CHECK:STDOUT: %complete_type.65d: <witness> = complete_type_witness %OrderedWith.type.b2b [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.c19: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.f05) [concrete]
// CHECK:STDOUT: %.4b8: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.c19, %OrderedWith.facet.f05 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.3f7: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.f05) [concrete]
// CHECK:STDOUT: %.12b: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.3f7, %OrderedWith.facet.f05 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.0a3: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.f05) [concrete]
// CHECK:STDOUT: %.3c2: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.0a3, %OrderedWith.facet.f05 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.04f: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%A2, %OrderedWith.facet.f05) [concrete]
// CHECK:STDOUT: %.ec8: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.04f, %OrderedWith.facet.f05 [concrete]
// CHECK:STDOUT: %complete_type.0be: <witness> = complete_type_witness %OrderedWith.type.3b2 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.cb6: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.9e9) [concrete]
// CHECK:STDOUT: %.74c: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.cb6, %OrderedWith.facet.9e9 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.96c: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.9e9) [concrete]
// CHECK:STDOUT: %.4c8: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.96c, %OrderedWith.facet.9e9 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.6e1: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.9e9) [concrete]
// CHECK:STDOUT: %.685: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.6e1, %OrderedWith.facet.9e9 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.886: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%B3, %OrderedWith.facet.9e9) [concrete]
// CHECK:STDOUT: %.d61: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.886, %OrderedWith.facet.9e9 [concrete]
// CHECK:STDOUT: %complete_type.9fb: <witness> = complete_type_witness %OrderedWith.type.708 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type.c16: type = fn_type @OrderedWith.WithSelf.Less, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.725) [concrete]
// CHECK:STDOUT: %.4d3: type = fn_type_with_self_type %OrderedWith.WithSelf.Less.type.c16, %OrderedWith.facet.725 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type.c04: type = fn_type @OrderedWith.WithSelf.LessOrEquivalent, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.725) [concrete]
// CHECK:STDOUT: %.019: type = fn_type_with_self_type %OrderedWith.WithSelf.LessOrEquivalent.type.c04, %OrderedWith.facet.725 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type.112: type = fn_type @OrderedWith.WithSelf.Greater, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.725) [concrete]
// CHECK:STDOUT: %.d65: type = fn_type_with_self_type %OrderedWith.WithSelf.Greater.type.112, %OrderedWith.facet.725 [concrete]
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type.566: type = fn_type @OrderedWith.WithSelf.GreaterOrEquivalent, @OrderedWith.WithSelf(%A3, %OrderedWith.facet.725) [concrete]
// CHECK:STDOUT: %.9d0: type = fn_type_with_self_type %OrderedWith.WithSelf.GreaterOrEquivalent.type.566, %OrderedWith.facet.725 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -902,187 +902,187 @@ fn Test(missing_less: Cpp.MissingLess,
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.51d1c4.2
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%B1, constants.%OrderedWith.facet.0b6) {
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%B1, constants.%OrderedWith.facet.97c) {
// CHECK:STDOUT: %U.loc54_17.1 => constants.%B1
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.848
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.0b6
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.b8e
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.e85
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.97c
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.187
// CHECK:STDOUT: %T.as_type.loc54_54.1 => constants.%A1
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.489
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.278
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.c8a
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.e62
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc54_52 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc54_58 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.4f4
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.d2f
// CHECK:STDOUT: %assoc0 => constants.%assoc0.5f5
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.12b
// CHECK:STDOUT: %.loc56_5.2 => constants.%.f93
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.61b
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.979
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.46d
// CHECK:STDOUT: %assoc0 => constants.%assoc0.074
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.bd5
// CHECK:STDOUT: %.loc56_5.2 => constants.%.2ff
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.ca6
// CHECK:STDOUT: %impl.elem0.loc56_5.2 => constants.%A1.Less
// CHECK:STDOUT: %specific_impl_fn.loc56_5.2 => constants.%A1.Less
// CHECK:STDOUT: %assoc1 => constants.%assoc1.dd5
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.448
// CHECK:STDOUT: %.loc57_5.2 => constants.%.78f
// CHECK:STDOUT: %assoc1 => constants.%assoc1.b94
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.651
// CHECK:STDOUT: %.loc57_5.2 => constants.%.b55
// CHECK:STDOUT: %impl.elem1.loc57_5.2 => constants.%A1.LessOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc57_5.2 => constants.%A1.LessOrEquivalent
// CHECK:STDOUT: %assoc2 => constants.%assoc2.198
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.670
// CHECK:STDOUT: %.loc58_5.2 => constants.%.183
// CHECK:STDOUT: %assoc2 => constants.%assoc2.085
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.d8f
// CHECK:STDOUT: %.loc58_5.2 => constants.%.68a
// CHECK:STDOUT: %impl.elem2.loc58_5.2 => constants.%A1.Greater
// CHECK:STDOUT: %specific_impl_fn.loc58_5.2 => constants.%A1.Greater
// CHECK:STDOUT: %assoc3 => constants.%assoc3.40e
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.5f2
// CHECK:STDOUT: %.loc59_5.2 => constants.%.846
// CHECK:STDOUT: %assoc3 => constants.%assoc3.426
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.d67
// CHECK:STDOUT: %.loc59_5.2 => constants.%.a97
// CHECK:STDOUT: %impl.elem3.loc59_5.2 => constants.%A1.GreaterOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc59_5.2 => constants.%A1.GreaterOrEquivalent
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%A1, constants.%OrderedWith.facet.b58) {
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%A1, constants.%OrderedWith.facet.53d) {
// CHECK:STDOUT: %U.loc54_17.1 => constants.%A1
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.3fd
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.b58
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.e33
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.de5
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.53d
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.18c
// CHECK:STDOUT: %T.as_type.loc54_54.1 => constants.%B1
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.278
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.489
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.e62
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.c8a
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc54_52 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc54_58 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.213
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.753
// CHECK:STDOUT: %assoc0 => constants.%assoc0.48a
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.d18
// CHECK:STDOUT: %.loc56_5.2 => constants.%.343
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.831
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.409
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.6f1
// CHECK:STDOUT: %assoc0 => constants.%assoc0.5e4
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.6e7
// CHECK:STDOUT: %.loc56_5.2 => constants.%.866
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.998
// CHECK:STDOUT: %impl.elem0.loc56_5.2 => constants.%B1.Less
// CHECK:STDOUT: %specific_impl_fn.loc56_5.2 => constants.%B1.Less
// CHECK:STDOUT: %assoc1 => constants.%assoc1.af7
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.e77
// CHECK:STDOUT: %.loc57_5.2 => constants.%.8cf
// CHECK:STDOUT: %assoc1 => constants.%assoc1.547
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.03c
// CHECK:STDOUT: %.loc57_5.2 => constants.%.87e
// CHECK:STDOUT: %impl.elem1.loc57_5.2 => constants.%B1.LessOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc57_5.2 => constants.%B1.LessOrEquivalent
// CHECK:STDOUT: %assoc2 => constants.%assoc2.b59
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.dd9
// CHECK:STDOUT: %.loc58_5.2 => constants.%.208
// CHECK:STDOUT: %assoc2 => constants.%assoc2.e9f
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.829
// CHECK:STDOUT: %.loc58_5.2 => constants.%.bb6
// CHECK:STDOUT: %impl.elem2.loc58_5.2 => constants.%B1.Greater
// CHECK:STDOUT: %specific_impl_fn.loc58_5.2 => constants.%B1.Greater
// CHECK:STDOUT: %assoc3 => constants.%assoc3.859
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.628
// CHECK:STDOUT: %.loc59_5.2 => constants.%.5aa
// CHECK:STDOUT: %assoc3 => constants.%assoc3.c50
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.328
// CHECK:STDOUT: %.loc59_5.2 => constants.%.d08
// CHECK:STDOUT: %impl.elem3.loc59_5.2 => constants.%B1.GreaterOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc59_5.2 => constants.%B1.GreaterOrEquivalent
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%A2, constants.%OrderedWith.facet.a99) {
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%A2, constants.%OrderedWith.facet.f05) {
// CHECK:STDOUT: %U.loc54_17.1 => constants.%A2
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.077
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.a99
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.1fac
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.b2b
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.f05
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.c18
// CHECK:STDOUT: %T.as_type.loc54_54.1 => constants.%B2
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.6a4
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.914
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.fab
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.1e3
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc54_52 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc54_58 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.e9c
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.893
// CHECK:STDOUT: %assoc0 => constants.%assoc0.c31
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.9b6
// CHECK:STDOUT: %.loc56_5.2 => constants.%.4c2
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.601
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.65d
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.ede
// CHECK:STDOUT: %assoc0 => constants.%assoc0.ae2
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.c19
// CHECK:STDOUT: %.loc56_5.2 => constants.%.4b8
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.a76
// CHECK:STDOUT: %impl.elem0.loc56_5.2 => constants.%B2.Less
// CHECK:STDOUT: %specific_impl_fn.loc56_5.2 => constants.%B2.Less
// CHECK:STDOUT: %assoc1 => constants.%assoc1.1c3
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.920
// CHECK:STDOUT: %.loc57_5.2 => constants.%.712
// CHECK:STDOUT: %assoc1 => constants.%assoc1.a64
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.3f7
// CHECK:STDOUT: %.loc57_5.2 => constants.%.12b
// CHECK:STDOUT: %impl.elem1.loc57_5.2 => constants.%B2.LessOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc57_5.2 => constants.%B2.LessOrEquivalent
// CHECK:STDOUT: %assoc2 => constants.%assoc2.dc0
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.f32
// CHECK:STDOUT: %.loc58_5.2 => constants.%.358
// CHECK:STDOUT: %assoc2 => constants.%assoc2.24c
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.0a3
// CHECK:STDOUT: %.loc58_5.2 => constants.%.3c2
// CHECK:STDOUT: %impl.elem2.loc58_5.2 => constants.%B2.Greater
// CHECK:STDOUT: %specific_impl_fn.loc58_5.2 => constants.%B2.Greater
// CHECK:STDOUT: %assoc3 => constants.%assoc3.20d
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.fc7
// CHECK:STDOUT: %.loc59_5.2 => constants.%.c0e
// CHECK:STDOUT: %assoc3 => constants.%assoc3.f57
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.04f
// CHECK:STDOUT: %.loc59_5.2 => constants.%.ec8
// CHECK:STDOUT: %impl.elem3.loc59_5.2 => constants.%B2.GreaterOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc59_5.2 => constants.%B2.GreaterOrEquivalent
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%B3, constants.%OrderedWith.facet.e01) {
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%B3, constants.%OrderedWith.facet.9e9) {
// CHECK:STDOUT: %U.loc54_17.1 => constants.%B3
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.bb7
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.e01
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.50d
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.3b2
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.9e9
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.448
// CHECK:STDOUT: %T.as_type.loc54_54.1 => constants.%A3
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.e08
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.18a
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.ada
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.a20
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc54_52 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc54_58 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.c99
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.8e0
// CHECK:STDOUT: %assoc0 => constants.%assoc0.8b3
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.0dc
// CHECK:STDOUT: %.loc56_5.2 => constants.%.894
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.4f9
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.0be
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.b1f
// CHECK:STDOUT: %assoc0 => constants.%assoc0.635
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.cb6
// CHECK:STDOUT: %.loc56_5.2 => constants.%.74c
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.223
// CHECK:STDOUT: %impl.elem0.loc56_5.2 => constants.%A3.Less
// CHECK:STDOUT: %specific_impl_fn.loc56_5.2 => constants.%A3.Less
// CHECK:STDOUT: %assoc1 => constants.%assoc1.627
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.713
// CHECK:STDOUT: %.loc57_5.2 => constants.%.c8d
// CHECK:STDOUT: %assoc1 => constants.%assoc1.e4a
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.96c
// CHECK:STDOUT: %.loc57_5.2 => constants.%.4c8
// CHECK:STDOUT: %impl.elem1.loc57_5.2 => constants.%LessOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc57_5.2 => constants.%LessOrEquivalent
// CHECK:STDOUT: %assoc2 => constants.%assoc2.00e
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.f35
// CHECK:STDOUT: %.loc58_5.2 => constants.%.01d
// CHECK:STDOUT: %assoc2 => constants.%assoc2.21a
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.6e1
// CHECK:STDOUT: %.loc58_5.2 => constants.%.685
// CHECK:STDOUT: %impl.elem2.loc58_5.2 => constants.%A3.Greater
// CHECK:STDOUT: %specific_impl_fn.loc58_5.2 => constants.%A3.Greater
// CHECK:STDOUT: %assoc3 => constants.%assoc3.b0d
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.965
// CHECK:STDOUT: %.loc59_5.2 => constants.%.672
// CHECK:STDOUT: %assoc3 => constants.%assoc3.1bb
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.886
// CHECK:STDOUT: %.loc59_5.2 => constants.%.d61
// CHECK:STDOUT: %impl.elem3.loc59_5.2 => constants.%GreaterOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc59_5.2 => constants.%GreaterOrEquivalent
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%A3, constants.%OrderedWith.facet.8d9) {
// CHECK:STDOUT: specific @OrderedWith.loc54(constants.%A3, constants.%OrderedWith.facet.725) {
// CHECK:STDOUT: %U.loc54_17.1 => constants.%A3
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.852
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.8d9
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.1fab
// CHECK:STDOUT: %OrderedWith.type.loc54_48.1 => constants.%OrderedWith.type.708
// CHECK:STDOUT: %T.loc54_27.1 => constants.%OrderedWith.facet.725
// CHECK:STDOUT: %pattern_type.loc54_27 => constants.%pattern_type.2c5
// CHECK:STDOUT: %T.as_type.loc54_54.1 => constants.%B3
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.18a
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.e08
// CHECK:STDOUT: %pattern_type.loc54_52 => constants.%pattern_type.a20
// CHECK:STDOUT: %pattern_type.loc54_58 => constants.%pattern_type.ada
// CHECK:STDOUT:
// CHECK:STDOUT: !definition:
// CHECK:STDOUT: %require_complete.loc54_52 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc54_58 => constants.%complete_type.357
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.50b
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.9b5
// CHECK:STDOUT: %assoc0 => constants.%assoc0.5fc
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.9da
// CHECK:STDOUT: %.loc56_5.2 => constants.%.393
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.858
// CHECK:STDOUT: %require_complete.loc56 => constants.%complete_type.9fb
// CHECK:STDOUT: %OrderedWith.assoc_type => constants.%OrderedWith.assoc_type.2d1
// CHECK:STDOUT: %assoc0 => constants.%assoc0.cb0
// CHECK:STDOUT: %OrderedWith.WithSelf.Less.type => constants.%OrderedWith.WithSelf.Less.type.c16
// CHECK:STDOUT: %.loc56_5.2 => constants.%.4d3
// CHECK:STDOUT: %OrderedWith.lookup_impl_witness => constants.%custom_witness.0c0
// CHECK:STDOUT: %impl.elem0.loc56_5.2 => constants.%Less
// CHECK:STDOUT: %specific_impl_fn.loc56_5.2 => constants.%Less
// CHECK:STDOUT: %assoc1 => constants.%assoc1.c88
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.34f
// CHECK:STDOUT: %.loc57_5.2 => constants.%.8ce
// CHECK:STDOUT: %assoc1 => constants.%assoc1.aa4
// CHECK:STDOUT: %OrderedWith.WithSelf.LessOrEquivalent.type => constants.%OrderedWith.WithSelf.LessOrEquivalent.type.c04
// CHECK:STDOUT: %.loc57_5.2 => constants.%.019
// CHECK:STDOUT: %impl.elem1.loc57_5.2 => constants.%B3.LessOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc57_5.2 => constants.%B3.LessOrEquivalent
// CHECK:STDOUT: %assoc2 => constants.%assoc2.af5
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.87e
// CHECK:STDOUT: %.loc58_5.2 => constants.%.59a
// CHECK:STDOUT: %assoc2 => constants.%assoc2.ec4
// CHECK:STDOUT: %OrderedWith.WithSelf.Greater.type => constants.%OrderedWith.WithSelf.Greater.type.112
// CHECK:STDOUT: %.loc58_5.2 => constants.%.d65
// CHECK:STDOUT: %impl.elem2.loc58_5.2 => constants.%Greater
// CHECK:STDOUT: %specific_impl_fn.loc58_5.2 => constants.%Greater
// CHECK:STDOUT: %assoc3 => constants.%assoc3.d90
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.d85
// CHECK:STDOUT: %.loc59_5.2 => constants.%.e0e
// CHECK:STDOUT: %assoc3 => constants.%assoc3.781
// CHECK:STDOUT: %OrderedWith.WithSelf.GreaterOrEquivalent.type => constants.%OrderedWith.WithSelf.GreaterOrEquivalent.type.566
// CHECK:STDOUT: %.loc59_5.2 => constants.%.9d0
// CHECK:STDOUT: %impl.elem3.loc59_5.2 => constants.%B3.GreaterOrEquivalent
// CHECK:STDOUT: %specific_impl_fn.loc59_5.2 => constants.%B3.GreaterOrEquivalent
// CHECK:STDOUT: }
@@ -303,27 +303,27 @@ fn Test(returns_strong_ordering: Cpp.ReturnsStrongOrdering) {
// CHECK:STDOUT: %impl.elem3: %.137 = impl_witness_access %OrderedWith.lookup_impl_witness, element3 [symbolic]
// CHECK:STDOUT: %specific_impl_fn.261: <specific function> = specific_impl_function %impl.elem3, @OrderedWith.WithSelf.GreaterOrEquivalent(%U, %T.589) [symbolic]
// CHECK:STDOUT: %DefaultSpaceshipOnly: type = class_type @DefaultSpaceshipOnly [concrete]
// CHECK:STDOUT: %pattern_type.1f3b: type = pattern_type %DefaultSpaceshipOnly [concrete]
// CHECK:STDOUT: %pattern_type.cce: type = pattern_type %DefaultSpaceshipOnly [concrete]
// CHECK:STDOUT: %ReturnsStrongOrdering: type = class_type @ReturnsStrongOrdering [concrete]
// CHECK:STDOUT: %pattern_type.87f: type = pattern_type %ReturnsStrongOrdering [concrete]
// CHECK:STDOUT: %pattern_type.a93: type = pattern_type %ReturnsStrongOrdering [concrete]
// CHECK:STDOUT: %ReturnsPartialOrdering: type = class_type @ReturnsPartialOrdering [concrete]
// CHECK:STDOUT: %pattern_type.103: type = pattern_type %ReturnsPartialOrdering [concrete]
// CHECK:STDOUT: %pattern_type.dbf: type = pattern_type %ReturnsPartialOrdering [concrete]
// CHECK:STDOUT: %CrossTypeLhs: type = class_type @CrossTypeLhs [concrete]
// CHECK:STDOUT: %pattern_type.f57: type = pattern_type %CrossTypeLhs [concrete]
// CHECK:STDOUT: %pattern_type.f3d: type = pattern_type %CrossTypeLhs [concrete]
// CHECK:STDOUT: %CrossTypeRhs: type = class_type @CrossTypeRhs [concrete]
// CHECK:STDOUT: %pattern_type.454: type = pattern_type %CrossTypeRhs [concrete]
// CHECK:STDOUT: %EqWith.type.ee6: type = facet_type <@EqWith.1, @EqWith.1(%DefaultSpaceshipOnly)> [concrete]
// CHECK:STDOUT: %pattern_type.f48: type = pattern_type %EqWith.type.ee6 [concrete]
// CHECK:STDOUT: %OrderedWith.type.b43: type = facet_type <@OrderedWith.1, @OrderedWith.1(%DefaultSpaceshipOnly)> [concrete]
// CHECK:STDOUT: %pattern_type.260: type = pattern_type %OrderedWith.type.b43 [concrete]
// CHECK:STDOUT: %OrderedWith.type.dfc: type = facet_type <@OrderedWith.1, @OrderedWith.1(%ReturnsStrongOrdering)> [concrete]
// CHECK:STDOUT: %pattern_type.023: type = pattern_type %OrderedWith.type.dfc [concrete]
// CHECK:STDOUT: %OrderedWith.type.928: type = facet_type <@OrderedWith.1, @OrderedWith.1(%ReturnsPartialOrdering)> [concrete]
// CHECK:STDOUT: %pattern_type.c26: type = pattern_type %OrderedWith.type.928 [concrete]
// CHECK:STDOUT: %OrderedWith.type.d3b: type = facet_type <@OrderedWith.1, @OrderedWith.1(%CrossTypeRhs)> [concrete]
// CHECK:STDOUT: %pattern_type.89f: type = pattern_type %OrderedWith.type.d3b [concrete]
// CHECK:STDOUT: %OrderedWith.type.d59: type = facet_type <@OrderedWith.1, @OrderedWith.1(%CrossTypeLhs)> [concrete]
// CHECK:STDOUT: %pattern_type.912: type = pattern_type %OrderedWith.type.d59 [concrete]
// CHECK:STDOUT: %pattern_type.bd1: type = pattern_type %CrossTypeRhs [concrete]
// CHECK:STDOUT: %EqWith.type.d71: type = facet_type <@EqWith.1, @EqWith.1(%DefaultSpaceshipOnly)> [concrete]
// CHECK:STDOUT: %pattern_type.375: type = pattern_type %EqWith.type.d71 [concrete]
// CHECK:STDOUT: %OrderedWith.type.519: type = facet_type <@OrderedWith.1, @OrderedWith.1(%DefaultSpaceshipOnly)> [concrete]
// CHECK:STDOUT: %pattern_type.0e9: type = pattern_type %OrderedWith.type.519 [concrete]
// CHECK:STDOUT: %OrderedWith.type.62a: type = facet_type <@OrderedWith.1, @OrderedWith.1(%ReturnsStrongOrdering)> [concrete]
// CHECK:STDOUT: %pattern_type.453: type = pattern_type %OrderedWith.type.62a [concrete]
// CHECK:STDOUT: %OrderedWith.type.c87: type = facet_type <@OrderedWith.1, @OrderedWith.1(%ReturnsPartialOrdering)> [concrete]
// CHECK:STDOUT: %pattern_type.ac7: type = pattern_type %OrderedWith.type.c87 [concrete]
// CHECK:STDOUT: %OrderedWith.type.079: type = facet_type <@OrderedWith.1, @OrderedWith.1(%CrossTypeRhs)> [concrete]
// CHECK:STDOUT: %pattern_type.f80: type = pattern_type %OrderedWith.type.079 [concrete]
// CHECK:STDOUT: %OrderedWith.type.ec4: type = facet_type <@OrderedWith.1, @OrderedWith.1(%CrossTypeLhs)> [concrete]
// CHECK:STDOUT: %pattern_type.cee: type = pattern_type %OrderedWith.type.ec4 [concrete]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: imports {
@@ -489,61 +489,61 @@ fn Test(returns_strong_ordering: Cpp.ReturnsStrongOrdering) {
// CHECK:STDOUT:
// CHECK:STDOUT: specific @EqWith.loc4(constants.%DefaultSpaceshipOnly, <error>) {
// CHECK:STDOUT: %U.loc4_12.1 => constants.%DefaultSpaceshipOnly
// CHECK:STDOUT: %EqWith.type.loc4_38.1 => constants.%EqWith.type.ee6
// CHECK:STDOUT: %EqWith.type.loc4_38.1 => constants.%EqWith.type.d71
// CHECK:STDOUT: %T.loc4_22.1 => <error>
// CHECK:STDOUT: %pattern_type.loc4_22 => constants.%pattern_type.f48
// CHECK:STDOUT: %pattern_type.loc4_22 => constants.%pattern_type.375
// CHECK:STDOUT: %T.as_type.loc4_44.1 => <error>
// CHECK:STDOUT: %pattern_type.loc4_42 => <error>
// CHECK:STDOUT: %pattern_type.loc4_48 => constants.%pattern_type.1f3b
// CHECK:STDOUT: %pattern_type.loc4_48 => constants.%pattern_type.cce
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc11(constants.%DefaultSpaceshipOnly, <error>) {
// CHECK:STDOUT: %U.loc11_17.1 => constants.%DefaultSpaceshipOnly
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.b43
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.519
// CHECK:STDOUT: %T.loc11_27.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.260
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.0e9
// CHECK:STDOUT: %T.as_type.loc11_54.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_52 => <error>
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.1f3b
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.cce
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc11(constants.%ReturnsStrongOrdering, <error>) {
// CHECK:STDOUT: %U.loc11_17.1 => constants.%ReturnsStrongOrdering
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.dfc
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.62a
// CHECK:STDOUT: %T.loc11_27.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.023
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.453
// CHECK:STDOUT: %T.as_type.loc11_54.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_52 => <error>
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.87f
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.a93
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc11(constants.%ReturnsPartialOrdering, <error>) {
// CHECK:STDOUT: %U.loc11_17.1 => constants.%ReturnsPartialOrdering
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.928
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.c87
// CHECK:STDOUT: %T.loc11_27.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.c26
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.ac7
// CHECK:STDOUT: %T.as_type.loc11_54.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_52 => <error>
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.103
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.dbf
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc11(constants.%CrossTypeRhs, <error>) {
// CHECK:STDOUT: %U.loc11_17.1 => constants.%CrossTypeRhs
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.d3b
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.079
// CHECK:STDOUT: %T.loc11_27.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.89f
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.f80
// CHECK:STDOUT: %T.as_type.loc11_54.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_52 => <error>
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.454
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.bd1
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: specific @OrderedWith.loc11(constants.%CrossTypeLhs, <error>) {
// CHECK:STDOUT: %U.loc11_17.1 => constants.%CrossTypeLhs
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.d59
// CHECK:STDOUT: %OrderedWith.type.loc11_48.1 => constants.%OrderedWith.type.ec4
// CHECK:STDOUT: %T.loc11_27.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.912
// CHECK:STDOUT: %pattern_type.loc11_27 => constants.%pattern_type.cee
// CHECK:STDOUT: %T.as_type.loc11_54.1 => <error>
// CHECK:STDOUT: %pattern_type.loc11_52 => <error>
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.f57
// CHECK:STDOUT: %pattern_type.loc11_58 => constants.%pattern_type.f3d
// CHECK:STDOUT: }
// CHECK:STDOUT: