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

; 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"

%"struct.HIR::ConstGeneric_Unevaluated" = type { %"struct.HIR::PathParams", %"struct.HIR::PathParams", %"class.std::shared_ptr.5" }
%"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::shared_ptr.5" = type { %"class.std::__shared_ptr.6" }
%"class.std::__shared_ptr.6" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.HIR::ConstGeneric" = type { i32, %"union.HIR::ConstGeneric::DataUnion" }
%"union.HIR::ConstGeneric::DataUnion" = type { %"class.std::unique_ptr", [8 x i8] }
%"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 }
%"struct.HIR::ConstGeneric::InferData" = type { i32 }
%"struct.HIR::GenericRef" = type <{ %class.RcString, i32, [4 x i8] }>
%class.RcString = type { ptr }
%"class.HIR::EncodedLiteralPtr" = type { ptr }
%struct.EncodedLiteral = type { %"class.std::vector", %"class.std::vector.8" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric5cloneEv = external hidden unnamed_addr constant [51 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR24ConstGeneric_Unevaluated5cloneEv(ptr dead_on_unwind noalias writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8, ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3HIR12ConstGeneric5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::ConstGeneric") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #3 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::ConstGeneric::InferData", align 4
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::unique_ptr", align 8
  %14 = alloca %"struct.HIR::ConstGeneric_Unevaluated", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.HIR::GenericRef", align 8
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca %"class.HIR::EncodedLiteralPtr", align 8
  %23 = alloca %struct.EncodedLiteral, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #9
  store i8 1, ptr %5, align 1, !tbaa !9
  br label %25

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

28:                                               ; preds = %25
  store i32 2, ptr %6, align 4
  br label %168

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

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

33:                                               ; preds = %30
  store i32 5, ptr %6, align 4
  br label %163

34:                                               ; preds = %30
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  switch i32 %36, label %161 [
    i32 0, label %37
    i32 1, label %38
    i32 2, label %63
    i32 3, label %98
    i32 4, label %126
  ]

37:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 195, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric5cloneEv) #10
  unreachable

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

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

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

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

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

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

51:                                               ; preds = %46
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %52, i64 4, i1 false), !tbaa.struct !13
  %53 = getelementptr inbounds %"struct.HIR::ConstGeneric::InferData", ptr %10, i32 0, i32 0
  %54 = load i32, ptr %53, align 4
  call void @_ZN3HIR12ConstGenericC2ENS0_9InferDataE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 %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 %46, !llvm.loop !16

56:                                               ; preds = %51, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  %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 %39, !llvm.loop !18

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

62:                                               ; preds = %60
  br label %161

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

64:                                               ; preds = %94, %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 %95

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

71:                                               ; preds = %90, %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 %91

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #9
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %77) #9
  call void @_ZNK3HIR24ConstGeneric_Unevaluated5cloneEv(ptr dead_on_unwind writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8 %14, ptr noundef nonnull align 8 dereferenceable(64) %78)
  invoke void @_ZSt11make_uniqueIN3HIR24ConstGeneric_UnevaluatedEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(64) %14)
          to label %79 unwind label %81

79:                                               ; preds = %76
  invoke void @_ZN3HIR12ConstGenericC2ESt10unique_ptrINS_24ConstGeneric_UnevaluatedESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %13)
          to label %80 unwind label %85

80:                                               ; preds = %79
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %14) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #9
  store i32 1, ptr %6, align 4
  br label %91

81:                                               ; preds = %76
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %15, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %16, align 4
  br label %89

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %15, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %16, align 4
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %89

89:                                               ; preds = %85, %81
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %14) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #9
  br label %165

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

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

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %64, !llvm.loop !20

95:                                               ; preds = %91, %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #9
  %96 = load i32, ptr %6, align 4
  switch i32 %96, label %163 [
    i32 15, label %97
  ]

97:                                               ; preds = %95
  br label %161

98:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %99

99:                                               ; preds = %122, %98
  %100 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %101 = trunc i8 %100 to i1
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  store i32 21, ptr %6, align 4
  br label %123

103:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
  store ptr %105, ptr %18, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %118, %103
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %109 = trunc i8 %108 to i1
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 24, ptr %6, align 4
  br label %119

111:                                              ; preds = %106
  %112 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(12) %112)
  invoke void @_ZN3HIR12ConstGenericC2ENS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %19)
          to label %113 unwind label %114

113:                                              ; preds = %111
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19) #9
  store i32 1, ptr %6, align 4
  br label %119

114:                                              ; preds = %111
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %15, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %16, align 4
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  br label %165

118:                                              ; No predecessors!
  store i8 0, ptr %17, align 1, !tbaa !9
  br label %106, !llvm.loop !21

119:                                              ; preds = %113, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  %120 = load i32, ptr %6, align 4
  switch i32 %120, label %123 [
    i32 24, label %121
  ]

121:                                              ; preds = %119
  br label %122

122:                                              ; preds = %121
  store i8 0, ptr %17, align 1, !tbaa !9
  br label %99, !llvm.loop !22

123:                                              ; preds = %119, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  %124 = load i32, ptr %6, align 4
  switch i32 %124, label %163 [
    i32 21, label %125
  ]

125:                                              ; preds = %123
  br label %161

126:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #9
  store i8 1, ptr %20, align 1, !tbaa !9
  br label %127

127:                                              ; preds = %157, %126
  %128 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %129 = trunc i8 %128 to i1
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  store i32 27, ptr %6, align 4
  br label %158

131:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %132)
  store ptr %133, ptr %21, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %153, %131
  %135 = load ptr, ptr %21, align 8, !tbaa !5
  %136 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %137 = trunc i8 %136 to i1
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  store i32 30, ptr %6, align 4
  br label %154

139:                                              ; preds = %134
  %140 = load ptr, ptr %21, align 8, !tbaa !5
  %141 = call noundef ptr @_ZNK3HIR17EncodedLiteralPtrptEv(ptr noundef nonnull align 8 dereferenceable(8) %140)
  call void @_ZNK14EncodedLiteral5cloneEv(ptr dead_on_unwind writable sret(%struct.EncodedLiteral) align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %141)
  invoke void @_ZN3HIR17EncodedLiteralPtrC1E14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef %23)
          to label %142 unwind label %144

142:                                              ; preds = %139
  invoke void @_ZN3HIR12ConstGenericC2ENS_17EncodedLiteralPtrE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %22)
          to label %143 unwind label %148

143:                                              ; preds = %142
  call void @_ZN3HIR17EncodedLiteralPtrD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @_ZN14EncodedLiteralD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #9
  store i32 1, ptr %6, align 4
  br label %154

144:                                              ; preds = %139
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %15, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %16, align 4
  br label %152

148:                                              ; preds = %142
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %15, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %16, align 4
  call void @_ZN3HIR17EncodedLiteralPtrD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %152

152:                                              ; preds = %148, %144
  call void @_ZN14EncodedLiteralD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  br label %165

153:                                              ; No predecessors!
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %134, !llvm.loop !23

154:                                              ; preds = %143, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %155 = load i32, ptr %6, align 4
  switch i32 %155, label %158 [
    i32 30, label %156
  ]

156:                                              ; preds = %154
  br label %157

157:                                              ; preds = %156
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %127, !llvm.loop !24

158:                                              ; preds = %154, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  %159 = load i32, ptr %6, align 4
  switch i32 %159, label %163 [
    i32 27, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %125, %97, %62, %34
  br label %162

162:                                              ; preds = %161
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %30, !llvm.loop !25

163:                                              ; preds = %158, %123, %95, %60, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  %164 = load i32, ptr %6, align 4
  switch i32 %164, label %168 [
    i32 5, label %166
  ]

165:                                              ; preds = %152, %114, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #9
  br label %173

166:                                              ; preds = %163
  br label %167

167:                                              ; preds = %166
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %25, !llvm.loop !26

168:                                              ; preds = %163, %28
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #9
  %169 = load i32, ptr %6, align 4
  switch i32 %169, label %178 [
    i32 2, label %170
    i32 1, label %172
  ]

170:                                              ; preds = %168
  %171 = call ptr @__cxa_allocate_exception(i64 8) #9
  store ptr @.str.25, ptr %171, align 16, !tbaa !5
  call void @__cxa_throw(ptr %171, ptr @_ZTIPKc, ptr null) #11
  unreachable

172:                                              ; preds = %168
  ret void

173:                                              ; preds = %165
  %174 = load ptr, ptr %15, align 8
  %175 = load i32, ptr %16, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177

178:                                              ; preds = %168
  unreachable
}

; 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) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ENS0_9InferDataE(ptr noundef nonnull align 8 dereferenceable(24), i32) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ESt10unique_ptrINS_24ConstGeneric_UnevaluatedESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ENS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3 align 2

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

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

declare void @_ZNK14EncodedLiteral5cloneEv(ptr dead_on_unwind writable sret(%struct.EncodedLiteral) align 8, ptr noundef nonnull align 8 dereferenceable(48)) #7

declare void @_ZN3HIR17EncodedLiteralPtrC1E14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ENS_17EncodedLiteralPtrE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN3HIR17EncodedLiteralPtrD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #7 = { "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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { 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}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!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}


; 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"

%"struct.HIR::ConstGeneric_Unevaluated" = type { %"struct.HIR::PathParams", %"struct.HIR::PathParams", %"class.std::shared_ptr.5" }
%"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::shared_ptr.5" = type { %"class.std::__shared_ptr.6" }
%"class.std::__shared_ptr.6" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.HIR::ConstGeneric" = type { i32, %"union.HIR::ConstGeneric::DataUnion" }
%"union.HIR::ConstGeneric::DataUnion" = type { %"class.std::unique_ptr", [8 x i8] }
%"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 }
%"struct.HIR::GenericRef" = type <{ %class.RcString, i32, [4 x i8] }>
%class.RcString = type { ptr }
%"class.HIR::EncodedLiteralPtr" = type { ptr }
%struct.EncodedLiteral = type { %"class.std::vector", %"class.std::vector.8" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl" = type { %"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Reloc, std::allocator<Reloc>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric5cloneEv = external hidden unnamed_addr constant [51 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR24ConstGeneric_Unevaluated5cloneEv(ptr dead_on_unwind noalias writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3 align 2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3HIR12ConstGeneric5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::ConstGeneric") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
.preheader.preheader:
  %2 = alloca %"class.std::unique_ptr", align 8
  %3 = alloca %"struct.HIR::ConstGeneric_Unevaluated", align 8
  %4 = alloca %"struct.HIR::GenericRef", align 8
  %5 = alloca %"class.HIR::EncodedLiteralPtr", align 8
  %6 = alloca %struct.EncodedLiteral, align 8
  %7 = tail call noundef i32 @_ZNK3HIR12ConstGeneric3tagEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  switch i32 %7, label %.loopexit [
    i32 0, label %.split66.us
    i32 1, label %.split68.us
    i32 2, label %.split70.us
    i32 3, label %.split72.us
    i32 4, label %.split74.us
  ], !llvm.loop !5

.split66.us:                                      ; preds = %.preheader.preheader
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 195, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR12ConstGeneric5cloneEv) #8
  unreachable

.split68.us:                                      ; preds = %.preheader.preheader
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR12ConstGeneric8as_InferEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.sroa.0.0.copyload = load i32, ptr %8, align 4, !tbaa !7
  tail call void @_ZN3HIR12ConstGenericC2ENS0_9InferDataE(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 %.sroa.0.0.copyload)
  br label %33

.split70.us:                                      ; preds = %.preheader.preheader
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric14as_UnevaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #9
  %10 = tail call noundef ptr @_ZNKSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @_ZNK3HIR24ConstGeneric_Unevaluated5cloneEv(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::ConstGeneric_Unevaluated") align 8 %3, ptr noundef nonnull align 8 dereferenceable(64) %10)
  invoke void @_ZSt11make_uniqueIN3HIR24ConstGeneric_UnevaluatedEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %2, ptr noundef nonnull align 8 dereferenceable(64) %3)
          to label %11 unwind label %13

11:                                               ; preds = %.split70.us
  invoke void @_ZN3HIR12ConstGenericC2ESt10unique_ptrINS_24ConstGeneric_UnevaluatedESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %2)
          to label %12 unwind label %15

12:                                               ; preds = %11
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #9
  br label %33

13:                                               ; preds = %.split70.us
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %17

15:                                               ; preds = %11
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN3HIR24ConstGeneric_UnevaluatedESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br label %17

17:                                               ; preds = %15, %13
  %.pn56 = phi { ptr, i32 } [ %16, %15 ], [ %14, %13 ]
  call void @_ZN3HIR24ConstGeneric_UnevaluatedD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #9
  br label %31

.split72.us:                                      ; preds = %.preheader.preheader
  %18 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR12ConstGeneric10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %18)
  invoke void @_ZN3HIR12ConstGenericC2ENS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %4)
          to label %19 unwind label %20

19:                                               ; preds = %.split72.us
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #9
  br label %33

20:                                               ; preds = %.split72.us
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR10GenericRefD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #9
  br label %31

.split74.us:                                      ; preds = %.preheader.preheader
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR12ConstGeneric12as_EvaluatedEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %23 = tail call noundef ptr @_ZNK3HIR17EncodedLiteralPtrptEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @_ZNK14EncodedLiteral5cloneEv(ptr dead_on_unwind nonnull writable sret(%struct.EncodedLiteral) align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %23)
  invoke void @_ZN3HIR17EncodedLiteralPtrC1E14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %6)
          to label %24 unwind label %26

24:                                               ; preds = %.split74.us
  invoke void @_ZN3HIR12ConstGenericC2ENS_17EncodedLiteralPtrE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %5)
          to label %25 unwind label %28

25:                                               ; preds = %24
  call void @_ZN3HIR17EncodedLiteralPtrD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @_ZN14EncodedLiteralD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #9
  br label %33

26:                                               ; preds = %.split74.us
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR17EncodedLiteralPtrD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZN14EncodedLiteralD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #9
  br label %31

31:                                               ; preds = %30, %20, %17
  %.pn.pn = phi { ptr, i32 } [ %.pn, %30 ], [ %21, %20 ], [ %.pn56, %17 ]
  resume { ptr, i32 } %.pn.pn

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

33:                                               ; preds = %.split68.us, %12, %19, %25
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ENS0_9InferDataE(ptr noundef nonnull align 8 dereferenceable(24), i32) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ESt10unique_ptrINS_24ConstGeneric_UnevaluatedESt14default_deleteIS2_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3HIR10GenericRefC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ENS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3 align 2

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

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

declare void @_ZNK14EncodedLiteral5cloneEv(ptr dead_on_unwind writable sret(%struct.EncodedLiteral) align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #6

declare void @_ZN3HIR17EncodedLiteralPtrC1E14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12ConstGenericC2ENS_17EncodedLiteralPtrE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN3HIR17EncodedLiteralPtrD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 = { inlinehint 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 "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 #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { 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