; LLVM IR from thepowersgang/mrustc :: src/hir/generic_params.ll (ZNK3HIR12GenericBound5cloneEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.HIR::GenericParams" = type { %"class.std::vector", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericBound" = type { i32, %"union.HIR::GenericBound::DataUnion" }
%"union.HIR::GenericBound::DataUnion" = type { %"struct.HIR::GenericBound::Data_TraitBound" }
%"struct.HIR::GenericBound::Data_TraitBound" = type { %"class.std::unique_ptr", %"class.HIR::TypeRef", %"class.HIR::TraitPath" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.HIR::TraitPath" = type { %"class.std::unique_ptr", %"class.HIR::GenericPath", %"class.std::map", %"class.std::map.5", ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.2, %class.ThinVector.3, %class.ThinVector.4 }
%class.ThinVector.2 = type { ptr }
%class.ThinVector.3 = type { ptr }
%class.ThinVector.4 = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.5" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.HIR::GenericBound::Data_Lifetime" = type { %"struct.HIR::LifetimeRef", %"struct.HIR::LifetimeRef" }
%"struct.HIR::LifetimeRef" = type { i32 }
%"struct.HIR::GenericBound::Data_TypeLifetime" = type <{ %"class.HIR::TypeRef", %"struct.HIR::LifetimeRef", [4 x i8] }>
%"struct.HIR::GenericBound::Data_TypeEquality" = type { %"class.HIR::TypeRef", %"class.HIR::TypeRef" }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12GenericBound5cloneEv = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTIPKc = external constant ptr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168)) #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR13GenericParams5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericParams") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #5 align 2

declare void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3HIR12GenericBound5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.HIR::GenericBound::Data_Lifetime", align 4
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.HIR::GenericBound::Data_TypeLifetime", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.HIR::GenericBound::Data_TraitBound", align 8
  %19 = alloca %"class.HIR::GenericParams", align 8
  %20 = alloca i1, align 1
  %21 = alloca i1, align 1
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.HIR::GenericBound::Data_TypeEquality", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  store i8 1, ptr %5, align 1, !tbaa !9
  br label %26

26:                                               ; preds = %213, %2
  %27 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %28 = trunc i8 %27 to i1
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 2, ptr %6, align 4
  br label %214

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr %25, ptr %7, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %208, %30
  %32 = load i8, ptr %5, align 1, !tbaa !9, !range !11, !noundef !12
  %33 = trunc i8 %32 to i1
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  store i32 5, ptr %6, align 4
  br label %209

35:                                               ; preds = %31
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %36)
  switch i32 %37, label %207 [
    i32 0, label %38
    i32 1, label %39
    i32 2, label %63
    i32 3, label %96
    i32 4, label %168
  ]

38:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 162, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR12GenericBound5cloneEv) #8
  unreachable

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %40

40:                                               ; preds = %59, %39
  %41 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %42 = trunc i8 %41 to i1
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 9, ptr %6, align 4
  br label %60

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %45)
  store ptr %46, ptr %9, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %55, %44
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %50 = trunc i8 %49 to i1
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 12, ptr %6, align 4
  br label %56

52:                                               ; preds = %47
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %53, i64 8, i1 false), !tbaa.struct !13
  %54 = load i64, ptr %10, align 4
  call void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, i64 %54)
  store i32 1, ptr %6, align 4
  br label %56

55:                                               ; No predecessors!
  store i8 0, ptr %8, align 1, !tbaa !9
  br label %47, !llvm.loop !16

56:                                               ; preds = %52, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %57 = load i32, ptr %6, align 4
  switch i32 %57, label %60 [
    i32 12, label %58
  ]

58:                                               ; preds = %56
  br label %59

59:                                               ; preds = %58
  store i8 0, ptr %8, align 1, !tbaa !9
  br label %40, !llvm.loop !18

60:                                               ; preds = %56, %43
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  %61 = load i32, ptr %6, align 4
  switch i32 %61, label %209 [
    i32 9, label %62
  ]

62:                                               ; preds = %60
  br label %207

63:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 1, ptr %11, align 1, !tbaa !9
  br label %64

64:                                               ; preds = %92, %63
  %65 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %66 = trunc i8 %65 to i1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 15, ptr %6, align 4
  br label %93

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %69)
  store ptr %70, ptr %12, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %88, %68
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %74 = trunc i8 %73 to i1
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  store i32 18, ptr %6, align 4
  br label %89

76:                                               ; preds = %71
  %77 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %13, i32 0, i32 0
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %78, i32 0, i32 0
  call void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %77, ptr noundef nonnull align 8 dereferenceable(8) %79)
  %80 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %13, i32 0, i32 1
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %81, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %80, ptr align 8 %82, i64 4, i1 false), !tbaa.struct !19
  invoke void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef %13)
          to label %83 unwind label %84

83:                                               ; preds = %76
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %13) #7
  store i32 1, ptr %6, align 4
  br label %89

84:                                               ; preds = %76
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %14, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %15, align 4
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %211

88:                                               ; No predecessors!
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %71, !llvm.loop !20

89:                                               ; preds = %83, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %90 = load i32, ptr %6, align 4
  switch i32 %90, label %93 [
    i32 18, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %64, !llvm.loop !21

93:                                               ; preds = %89, %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  %94 = load i32, ptr %6, align 4
  switch i32 %94, label %209 [
    i32 15, label %95
  ]

95:                                               ; preds = %93
  br label %207

96:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %97

97:                                               ; preds = %164, %96
  %98 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %99 = trunc i8 %98 to i1
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 21, ptr %6, align 4
  br label %165

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168) %102)
  store ptr %103, ptr %17, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %160, %101
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %107 = trunc i8 %106 to i1
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 24, ptr %6, align 4
  br label %161

109:                                              ; preds = %104
  %110 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %18, i32 0, i32 0
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %111, i32 0, i32 0
  %113 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %112) #7
  store i1 false, ptr %20, align 1
  store i1 false, ptr %21, align 1
  br i1 %113, label %114, label %119

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 96, ptr %19) #7
  store i1 true, ptr %20, align 1
  %115 = load ptr, ptr %17, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %115, i32 0, i32 0
  %117 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %116) #7
  call void @_ZNK3HIR13GenericParams5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::GenericParams") align 8 %19, ptr noundef nonnull align 8 dereferenceable(96) %117)
  store i1 true, ptr %21, align 1
  invoke void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %110, ptr noundef nonnull align 8 dereferenceable(96) %19)
          to label %118 unwind label %136

118:                                              ; preds = %114
  br label %120

119:                                              ; preds = %109
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr null) #7
  br label %120

120:                                              ; preds = %119, %118
  %121 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %18, i32 0, i32 1
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %122, i32 0, i32 1
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %121, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %124 unwind label %140

124:                                              ; preds = %120
  %125 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %18, i32 0, i32 2
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %126, i32 0, i32 2
  invoke void @_ZNK3HIR9TraitPath5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TraitPath") align 8 %125, ptr noundef nonnull align 8 dereferenceable(144) %127)
          to label %128 unwind label %144

128:                                              ; preds = %124
  invoke void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef %18)
          to label %129 unwind label %149

129:                                              ; preds = %128
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %18) #7
  %130 = load i1, ptr %21, align 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %19) #7
  br label %132

132:                                              ; preds = %131, %129
  %133 = load i1, ptr %20, align 1
  br i1 %133, label %134, label %135

134:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 96, ptr %19) #7
  br label %135

135:                                              ; preds = %134, %132
  store i32 1, ptr %6, align 4
  br label %161

136:                                              ; preds = %114
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %14, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %15, align 4
  br label %153

140:                                              ; preds = %120
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %14, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %15, align 4
  br label %148

144:                                              ; preds = %124
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %14, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %15, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %121) #7
  br label %148

148:                                              ; preds = %144, %140
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %110) #7
  br label %153

149:                                              ; preds = %128
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %14, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %15, align 4
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %18) #7
  br label %153

153:                                              ; preds = %149, %148, %136
  %154 = load i1, ptr %21, align 1
  br i1 %154, label %155, label %156

155:                                              ; preds = %153
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %19) #7
  br label %156

156:                                              ; preds = %155, %153
  %157 = load i1, ptr %20, align 1
  br i1 %157, label %158, label %159

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 96, ptr %19) #7
  br label %159

159:                                              ; preds = %158, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %211

160:                                              ; No predecessors!
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %104, !llvm.loop !22

161:                                              ; preds = %135, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %162 = load i32, ptr %6, align 4
  switch i32 %162, label %165 [
    i32 24, label %163
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %97, !llvm.loop !23

165:                                              ; preds = %161, %100
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  %166 = load i32, ptr %6, align 4
  switch i32 %166, label %209 [
    i32 21, label %167
  ]

167:                                              ; preds = %165
  br label %207

168:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 1, ptr %22, align 1, !tbaa !9
  br label %169

169:                                              ; preds = %203, %168
  %170 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %171 = trunc i8 %170 to i1
  br i1 %171, label %173, label %172

172:                                              ; preds = %169
  store i32 27, ptr %6, align 4
  br label %204

173:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168) %174)
  store ptr %175, ptr %23, align 8, !tbaa !5
  br label %176

176:                                              ; preds = %198, %173
  %177 = load ptr, ptr %23, align 8, !tbaa !5
  %178 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %179 = trunc i8 %178 to i1
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 30, ptr %6, align 4
  br label %199

181:                                              ; preds = %176
  %182 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %24, i32 0, i32 0
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %183, i32 0, i32 0
  call void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %182, ptr noundef nonnull align 8 dereferenceable(8) %184)
  %185 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %24, i32 0, i32 1
  %186 = load ptr, ptr %23, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %186, i32 0, i32 1
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %185, ptr noundef nonnull align 8 dereferenceable(8) %187)
          to label %188 unwind label %190

188:                                              ; preds = %181
  invoke void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef %24)
          to label %189 unwind label %194

189:                                              ; preds = %188
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  store i32 1, ptr %6, align 4
  br label %199

190:                                              ; preds = %181
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %14, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %15, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %182) #7
  br label %201

194:                                              ; preds = %188
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %14, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %15, align 4
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %201

198:                                              ; No predecessors!
  store i8 0, ptr %22, align 1, !tbaa !9
  br label %176, !llvm.loop !24

199:                                              ; preds = %189, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %200 = load i32, ptr %6, align 4
  switch i32 %200, label %204 [
    i32 30, label %202
  ]

201:                                              ; preds = %194, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %211

202:                                              ; preds = %199
  br label %203

203:                                              ; preds = %202
  store i8 0, ptr %22, align 1, !tbaa !9
  br label %169, !llvm.loop !25

204:                                              ; preds = %199, %172
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  %205 = load i32, ptr %6, align 4
  switch i32 %205, label %209 [
    i32 27, label %206
  ]

206:                                              ; preds = %204
  br label %207

207:                                              ; preds = %206, %167, %95, %62, %35
  br label %208

208:                                              ; preds = %207
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %31, !llvm.loop !26

209:                                              ; preds = %204, %165, %93, %60, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %210 = load i32, ptr %6, align 4
  switch i32 %210, label %214 [
    i32 5, label %212
  ]

211:                                              ; preds = %201, %159, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %219

212:                                              ; preds = %209
  br label %213

213:                                              ; preds = %212
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %26, !llvm.loop !27

214:                                              ; preds = %209, %29
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  %215 = load i32, ptr %6, align 4
  switch i32 %215, label %224 [
    i32 2, label %216
    i32 1, label %218
  ]

216:                                              ; preds = %214
  %217 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.14, ptr %217, align 16, !tbaa !5
  call void @__cxa_throw(ptr %217, ptr @_ZTIPKc, ptr null) #9
  unreachable

218:                                              ; preds = %214
  ret void

219:                                              ; preds = %211
  %220 = load ptr, ptr %14, align 8
  %221 = load i32, ptr %15, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223

224:                                              ; preds = %214
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, i64) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8), ptr) unnamed_addr #0 align 2

declare void @_ZNK3HIR9TraitPath5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TraitPath") align 8, ptr noundef nonnull align 8 dereferenceable(144)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{i64 0, i64 4, !14}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.HIR::GenericParams" = type { %"class.std::vector", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericBound" = type { i32, %"union.HIR::GenericBound::DataUnion" }
%"union.HIR::GenericBound::DataUnion" = type { %"struct.HIR::GenericBound::Data_TraitBound" }
%"struct.HIR::GenericBound::Data_TraitBound" = type { %"class.std::unique_ptr", %"class.HIR::TypeRef", %"class.HIR::TraitPath" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.HIR::TraitPath" = type { %"class.std::unique_ptr", %"class.HIR::GenericPath", %"class.std::map", %"class.std::map.5", ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.2, %class.ThinVector.3, %class.ThinVector.4 }
%class.ThinVector.2 = type { ptr }
%class.ThinVector.3 = type { ptr }
%class.ThinVector.4 = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.5" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.HIR::GenericBound::Data_TypeLifetime" = type <{ %"class.HIR::TypeRef", %"struct.HIR::LifetimeRef", [4 x i8] }>
%"struct.HIR::LifetimeRef" = type { i32 }
%"struct.HIR::GenericBound::Data_TypeEquality" = type { %"class.HIR::TypeRef", %"class.HIR::TypeRef" }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12GenericBound5cloneEv = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTIPKc = external constant ptr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR13GenericParams5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericParams") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #4 align 2

declare void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3HIR12GenericBound5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
.preheader.preheader:
  %2 = alloca %"struct.HIR::GenericBound::Data_TypeLifetime", align 8
  %3 = alloca %"struct.HIR::GenericBound::Data_TraitBound", align 8
  %4 = alloca %"class.HIR::GenericParams", align 8
  %5 = alloca %"struct.HIR::GenericBound::Data_TypeEquality", align 8
  %6 = tail call noundef i32 @_ZNK3HIR12GenericBound3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  switch i32 %6, label %.critedge.loopexit [
    i32 0, label %.split88.us
    i32 1, label %.split90.us
    i32 2, label %.split92.us
    i32 3, label %.split94.us
    i32 4, label %.split96.us
  ], !llvm.loop !5

.split88.us:                                      ; preds = %.preheader.preheader
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 162, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR12GenericBound5cloneEv) #6
  unreachable

.split90.us:                                      ; preds = %.preheader.preheader
  %7 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR12GenericBound11as_LifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %.sroa.0.0.copyload = load i64, ptr %7, align 4
  tail call void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, i64 %.sroa.0.0.copyload)
  br label %48

.split92.us:                                      ; preds = %.preheader.preheader
  %8 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12GenericBound15as_TypeLifetimeEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  call void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %2, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %2, i64 8
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !7
  store i32 %11, ptr %9, align 8, !tbaa !7
  invoke void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull %2)
          to label %12 unwind label %13

12:                                               ; preds = %.split92.us
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %2) #7
  br label %48

13:                                               ; preds = %.split92.us
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %2) #7
  br label %.critedge77

.split94.us:                                      ; preds = %.preheader.preheader
  %15 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK3HIR12GenericBound13as_TraitBoundEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  %16 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %16, label %17, label %19

17:                                               ; preds = %.split94.us
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #7
  %18 = tail call noundef ptr @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @_ZNK3HIR13GenericParams5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::GenericParams") align 8 %4, ptr noundef nonnull align 8 dereferenceable(96) %18)
  invoke void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(96) %4)
          to label %20 unwind label %.thread

19:                                               ; preds = %.split94.us
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr null) #7
  br label %20

20:                                               ; preds = %17, %19
  %21 = getelementptr inbounds i8, ptr %3, i64 8
  %22 = getelementptr inbounds i8, ptr %15, i64 8
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %23 unwind label %30

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %3, i64 16
  %25 = getelementptr inbounds i8, ptr %15, i64 16
  invoke void @_ZNK3HIR9TraitPath5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TraitPath") align 8 %24, ptr noundef nonnull align 8 dereferenceable(144) %25)
          to label %26 unwind label %32

26:                                               ; preds = %23
  invoke void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull %3)
          to label %27 unwind label %34

27:                                               ; preds = %26
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %3) #7
  br i1 %16, label %28, label %48

28:                                               ; preds = %27
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #7
  br label %48

.thread:                                          ; preds = %17
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %37

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %36

32:                                               ; preds = %23
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %36

34:                                               ; preds = %26
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %3) #7
  br i1 %16, label %37, label %.critedge77

36:                                               ; preds = %30, %32
  %.pn71 = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %16, label %37, label %.critedge77

37:                                               ; preds = %34, %.thread, %36
  %.pn7380 = phi { ptr, i32 } [ %29, %.thread ], [ %.pn71, %36 ], [ %35, %34 ]
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %4) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #7
  br label %.critedge77

.split96.us:                                      ; preds = %.preheader.preheader
  %38 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR12GenericBound15as_TypeEqualityEv(ptr noundef nonnull align 8 dereferenceable(168) %1)
  call void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %38)
  %39 = getelementptr inbounds i8, ptr %5, i64 8
  %40 = getelementptr inbounds i8, ptr %38, i64 8
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %41 unwind label %43

41:                                               ; preds = %.split96.us
  invoke void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull %5)
          to label %42 unwind label %45

42:                                               ; preds = %41
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %48

43:                                               ; preds = %.split96.us
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %.critedge77

45:                                               ; preds = %41
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %.critedge77

.critedge77:                                      ; preds = %34, %43, %45, %37, %36, %13
  %.pn.pn = phi { ptr, i32 } [ %14, %13 ], [ %.pn71, %36 ], [ %.pn7380, %37 ], [ %46, %45 ], [ %44, %43 ], [ %35, %34 ]
  resume { ptr, i32 } %.pn.pn

.critedge.loopexit:                               ; preds = %.preheader.preheader
  %47 = tail call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.14, ptr %47, align 16, !tbaa !11
  tail call void @__cxa_throw(ptr nonnull %47, ptr nonnull @_ZTIPKc, ptr null) #8
  unreachable

48:                                               ; preds = %.split90.us, %12, %42, %27, %28
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, i64) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8), ptr) unnamed_addr #0 align 2

declare void @_ZNK3HIR9TraitPath5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TraitPath") align 8, ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass