; LLVM IR from thepowersgang/mrustc :: src/hir_typeck/common.ll (ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE)

; 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::LifetimeRef" = type { i32 }
%"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 }
%struct.Span = type { ptr }
%"class.std::function.60" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.264 = type { ptr, ptr }
%class.anon.265 = type { ptr }
%class.anon.266 = type { ptr, ptr }
%class.anon.267 = type { ptr }
%class.anon.268 = type { ptr, ptr }
%class.anon.269 = type { ptr }
%class.anon.270 = type { ptr }
%"struct.HIR::GenericRef" = type <{ %class.RcString, i32, [4 x i8] }>
%class.RcString = type { ptr }

@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@g_debug_indent_level = external global i32, align 4
@__FUNCTION__._ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR10GenericRef5groupEv(ptr noundef nonnull align 8 dereferenceable(12)) #4 align 2

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

declare void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(12) %2) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.HIR::LifetimeRef", align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.HIR::PathParams", align 8
  %9 = alloca i1, align 1
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.HIR::PathParams", align 8
  %14 = alloca i1, align 1
  %15 = alloca i1, align 1
  %16 = alloca %"struct.HIR::PathParams", align 8
  %17 = alloca i1, align 1
  %18 = alloca i1, align 1
  %19 = alloca ptr, align 8
  %20 = alloca %struct.Span, align 8
  %21 = alloca %"class.std::function.60", align 8
  %22 = alloca %class.anon.264, align 8
  %23 = alloca i32, align 4
  %24 = alloca %struct.Span, align 8
  %25 = alloca %"class.std::function.60", align 8
  %26 = alloca %class.anon.265, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %struct.Span, align 8
  %29 = alloca %"class.std::function.60", align 8
  %30 = alloca %class.anon.266, align 8
  %31 = alloca %struct.Span, align 8
  %32 = alloca %"class.std::function.60", align 8
  %33 = alloca %class.anon.267, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %struct.Span, align 8
  %36 = alloca %"class.std::function.60", align 8
  %37 = alloca %class.anon.268, align 8
  %38 = alloca %struct.Span, align 8
  %39 = alloca %"class.std::function.60", align 8
  %40 = alloca %class.anon.269, align 8
  %41 = alloca %struct.Span, align 8
  %42 = alloca %"class.std::function.60", align 8
  %43 = alloca %class.anon.270, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 9
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef ptr %47(ptr noundef nonnull align 8 dereferenceable(96) %44)
  %49 = icmp ne ptr %48, null
  store i1 false, ptr %9, align 1
  store i1 false, ptr %10, align 1
  store i1 false, ptr %14, align 1
  store i1 false, ptr %15, align 1
  store i1 false, ptr %17, align 1
  store i1 false, ptr %18, align 1
  br i1 %49, label %50, label %66

50:                                               ; preds = %3
  %51 = load ptr, ptr %44, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 9
  %53 = load ptr, ptr %52, align 8
  %54 = call noundef ptr %53(ptr noundef nonnull align 8 dereferenceable(96) %44)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  store i1 true, ptr %9, align 1
  call void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
  store i1 true, ptr %10, align 1
  %55 = invoke noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %56 unwind label %151

56:                                               ; preds = %50
  br i1 %55, label %57, label %120

57:                                               ; preds = %56
  %58 = load ptr, ptr %44, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 9
  %60 = load ptr, ptr %59, align 8
  %61 = invoke noundef ptr %60(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %62 unwind label %151

62:                                               ; preds = %57
  %63 = getelementptr inbounds %"struct.HIR::PathParams", ptr %61, i32 0, i32 0
  %64 = invoke noundef zeroext i1 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %65 unwind label %151

65:                                               ; preds = %62
  br i1 %64, label %66, label %120

66:                                               ; preds = %65, %3
  %67 = load ptr, ptr %44, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 10
  %69 = load ptr, ptr %68, align 8
  %70 = invoke noundef ptr %69(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %71 unwind label %151

71:                                               ; preds = %66
  %72 = icmp ne ptr %70, null
  br i1 %72, label %73, label %91

73:                                               ; preds = %71
  %74 = load ptr, ptr %44, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %74, i64 10
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef ptr %76(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %78 unwind label %151

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  store i1 true, ptr %14, align 1
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %79 unwind label %155

79:                                               ; preds = %78
  store i1 true, ptr %15, align 1
  %80 = invoke noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %81 unwind label %159

81:                                               ; preds = %79
  br i1 %80, label %82, label %120

82:                                               ; preds = %81
  %83 = load ptr, ptr %44, align 8, !tbaa !9
  %84 = getelementptr inbounds ptr, ptr %83, i64 10
  %85 = load ptr, ptr %84, align 8
  %86 = invoke noundef ptr %85(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %87 unwind label %159

87:                                               ; preds = %82
  %88 = getelementptr inbounds %"struct.HIR::PathParams", ptr %86, i32 0, i32 0
  %89 = invoke noundef zeroext i1 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %90 unwind label %159

90:                                               ; preds = %87
  br i1 %89, label %91, label %120

91:                                               ; preds = %90, %71
  %92 = load ptr, ptr %44, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %92, i64 11
  %94 = load ptr, ptr %93, align 8
  %95 = invoke noundef ptr %94(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %96 unwind label %159

96:                                               ; preds = %91
  %97 = icmp ne ptr %95, null
  br i1 %97, label %98, label %118

98:                                               ; preds = %96
  %99 = load ptr, ptr %44, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 11
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef ptr %101(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %103 unwind label %159

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  store i1 true, ptr %17, align 1
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %104 unwind label %163

104:                                              ; preds = %103
  store i1 true, ptr %18, align 1
  %105 = invoke noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %106 unwind label %167

106:                                              ; preds = %104
  br i1 %105, label %107, label %116

107:                                              ; preds = %106
  %108 = load ptr, ptr %44, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %108, i64 11
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef ptr %110(ptr noundef nonnull align 8 dereferenceable(96) %44)
          to label %112 unwind label %167

112:                                              ; preds = %107
  %113 = getelementptr inbounds %"struct.HIR::PathParams", ptr %111, i32 0, i32 0
  %114 = invoke noundef zeroext i1 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %115 unwind label %167

115:                                              ; preds = %112
  br label %116

116:                                              ; preds = %115, %106
  %117 = phi i1 [ false, %106 ], [ %114, %115 ]
  br label %118

118:                                              ; preds = %116, %96
  %119 = phi i1 [ true, %96 ], [ %117, %116 ]
  br label %120

120:                                              ; preds = %118, %90, %81, %65, %56
  %121 = phi i1 [ false, %90 ], [ false, %81 ], [ false, %65 ], [ false, %56 ], [ %119, %118 ]
  %122 = load i1, ptr %18, align 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %120
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %124

124:                                              ; preds = %123, %120
  %125 = load i1, ptr %17, align 1
  br i1 %125, label %126, label %127

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  br label %127

127:                                              ; preds = %126, %124
  %128 = load i1, ptr %15, align 1
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %130

130:                                              ; preds = %129, %127
  %131 = load i1, ptr %14, align 1
  br i1 %131, label %132, label %133

132:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %133

133:                                              ; preds = %132, %130
  %134 = load i1, ptr %10, align 1
  br i1 %134, label %135, label %136

135:                                              ; preds = %133
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %136

136:                                              ; preds = %135, %133
  %137 = load i1, ptr %9, align 1
  br i1 %137, label %138, label %139

138:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  br label %139

139:                                              ; preds = %138, %136
  br i1 %121, label %140, label %198

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %142, label %143, label %193

143:                                              ; preds = %141
  %144 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %144, ptr noundef @__FUNCTION__._ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @.str.7)
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 8 dereferenceable(12) %147)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef @_ZSt3decRSt8ios_base)
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %193

151:                                              ; preds = %73, %66, %62, %57, %50
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %11, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %12, align 4
  br label %186

155:                                              ; preds = %78
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %11, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %12, align 4
  br label %182

159:                                              ; preds = %98, %91, %87, %82, %79
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %11, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %12, align 4
  br label %178

163:                                              ; preds = %103
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %11, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %12, align 4
  br label %174

167:                                              ; preds = %112, %107, %104
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %11, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %12, align 4
  %171 = load i1, ptr %18, align 1
  br i1 %171, label %172, label %173

172:                                              ; preds = %167
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %173

173:                                              ; preds = %172, %167
  br label %174

174:                                              ; preds = %173, %163
  %175 = load i1, ptr %17, align 1
  br i1 %175, label %176, label %177

176:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  br label %177

177:                                              ; preds = %176, %174
  br label %178

178:                                              ; preds = %177, %159
  %179 = load i1, ptr %15, align 1
  br i1 %179, label %180, label %181

180:                                              ; preds = %178
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %181

181:                                              ; preds = %180, %178
  br label %182

182:                                              ; preds = %181, %155
  %183 = load i1, ptr %14, align 1
  br i1 %183, label %184, label %185

184:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %185

185:                                              ; preds = %184, %182
  br label %186

186:                                              ; preds = %185, %151
  %187 = load i1, ptr %10, align 1
  br i1 %187, label %188, label %189

188:                                              ; preds = %186
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %189

189:                                              ; preds = %188, %186
  %190 = load i1, ptr %9, align 1
  br i1 %190, label %191, label %192

191:                                              ; preds = %189
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  br label %192

192:                                              ; preds = %191, %189
  br label %430

193:                                              ; preds = %143, %141
  br label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.HIR::GenericRef", ptr %195, i32 0, i32 1
  %197 = load i32, ptr %196, align 8, !tbaa !13
  call void @_ZN3HIR11LifetimeRefC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %197)
  br label %427

198:                                              ; preds = %139
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = call noundef i32 @_ZNK3HIR10GenericRef5groupEv(ptr noundef nonnull align 8 dereferenceable(12) %199)
  switch i32 %200, label %409 [
    i32 0, label %201
    i32 1, label %265
    i32 2, label %329
    i32 3, label %345
  ]

201:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %202 = load ptr, ptr %44, align 8, !tbaa !9
  %203 = getelementptr inbounds ptr, ptr %202, i64 9
  %204 = load ptr, ptr %203, align 8
  %205 = call noundef ptr %204(ptr noundef nonnull align 8 dereferenceable(96) %44)
  store ptr %205, ptr %19, align 8, !tbaa !5
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %242

208:                                              ; preds = %201
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %210)
  %212 = zext i32 %211 to i64
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.HIR::PathParams", ptr %213, i32 0, i32 0
  %215 = call noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %214)
  %216 = icmp ult i64 %212, %215
  br i1 %216, label %233, label %217

217:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %218)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %219 = getelementptr inbounds %class.anon.264, ptr %22, i32 0, i32 0
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %220, ptr %219, align 8, !tbaa !5
  %221 = getelementptr inbounds %class.anon.264, ptr %22, i32 0, i32 1
  store ptr %19, ptr %221, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(16) %22) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %21)
          to label %222 unwind label %225

222:                                              ; preds = %217
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %223 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %223, ptr noundef @.str.2)
          to label %224 unwind label %229

224:                                              ; preds = %222
  call void @__cxa_throw(ptr %223, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

225:                                              ; preds = %217
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %11, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %264

229:                                              ; preds = %222
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %11, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %12, align 4
  call void @__cxa_free_exception(ptr %223) #8
  br label %264

233:                                              ; preds = %209
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr %19, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.HIR::PathParams", ptr %236, i32 0, i32 0
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %238)
  %240 = zext i32 %239 to i64
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %237, i64 noundef %240)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %241, i64 4, i1 false), !tbaa.struct !16
  store i32 1, ptr %23, align 4
  br label %261

242:                                              ; preds = %201
  br label %243

243:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %244)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %245 = getelementptr inbounds %class.anon.265, ptr %26, i32 0, i32 0
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %246, ptr %245, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef %25)
          to label %247 unwind label %250

247:                                              ; preds = %243
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  %248 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %248, ptr noundef @.str.2)
          to label %249 unwind label %254

249:                                              ; preds = %247
  call void @__cxa_throw(ptr %248, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

250:                                              ; preds = %243
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %11, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %264

254:                                              ; preds = %247
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %11, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %12, align 4
  call void @__cxa_free_exception(ptr %248) #8
  br label %264

258:                                              ; No predecessors!
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  store i32 0, ptr %23, align 4
  br label %261

261:                                              ; preds = %260, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %262 = load i32, ptr %23, align 4
  switch i32 %262, label %435 [
    i32 0, label %263
    i32 1, label %427
  ]

263:                                              ; preds = %261
  br label %426

264:                                              ; preds = %254, %250, %229, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %430

265:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %266 = load ptr, ptr %44, align 8, !tbaa !9
  %267 = getelementptr inbounds ptr, ptr %266, i64 10
  %268 = load ptr, ptr %267, align 8
  %269 = call noundef ptr %268(ptr noundef nonnull align 8 dereferenceable(96) %44)
  store ptr %269, ptr %27, align 8, !tbaa !5
  %270 = load ptr, ptr %27, align 8, !tbaa !5
  %271 = icmp ne ptr %270, null
  br i1 %271, label %272, label %306

272:                                              ; preds = %265
  br label %273

273:                                              ; preds = %272
  %274 = load ptr, ptr %7, align 8, !tbaa !5
  %275 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %274)
  %276 = zext i32 %275 to i64
  %277 = load ptr, ptr %27, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.HIR::PathParams", ptr %277, i32 0, i32 0
  %279 = call noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %278)
  %280 = icmp ult i64 %276, %279
  br i1 %280, label %297, label %281

281:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %282)
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %283 = getelementptr inbounds %class.anon.266, ptr %30, i32 0, i32 0
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %284, ptr %283, align 8, !tbaa !5
  %285 = getelementptr inbounds %class.anon.266, ptr %30, i32 0, i32 1
  store ptr %27, ptr %285, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %29)
          to label %286 unwind label %289

286:                                              ; preds = %281
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  %287 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %287, ptr noundef @.str.2)
          to label %288 unwind label %293

288:                                              ; preds = %286
  call void @__cxa_throw(ptr %287, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

289:                                              ; preds = %281
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %11, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %328

293:                                              ; preds = %286
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %11, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %12, align 4
  call void @__cxa_free_exception(ptr %287) #8
  br label %328

297:                                              ; preds = %273
  br label %298

298:                                              ; preds = %297
  br label %299

299:                                              ; preds = %298
  %300 = load ptr, ptr %27, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.HIR::PathParams", ptr %300, i32 0, i32 0
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %302)
  %304 = zext i32 %303 to i64
  %305 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %301, i64 noundef %304)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %305, i64 4, i1 false), !tbaa.struct !16
  store i32 1, ptr %23, align 4
  br label %325

306:                                              ; preds = %265
  br label %307

307:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %308)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %309 = getelementptr inbounds %class.anon.267, ptr %33, i32 0, i32 0
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %310, ptr %309, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %32)
          to label %311 unwind label %314

311:                                              ; preds = %307
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %312 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %312, ptr noundef @.str.2)
          to label %313 unwind label %318

313:                                              ; preds = %311
  call void @__cxa_throw(ptr %312, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

314:                                              ; preds = %307
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %11, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %328

318:                                              ; preds = %311
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %11, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %12, align 4
  call void @__cxa_free_exception(ptr %312) #8
  br label %328

322:                                              ; No predecessors!
  br label %323

323:                                              ; preds = %322
  br label %324

324:                                              ; preds = %323
  store i32 0, ptr %23, align 4
  br label %325

325:                                              ; preds = %324, %299
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %326 = load i32, ptr %23, align 4
  switch i32 %326, label %435 [
    i32 0, label %327
    i32 1, label %427
  ]

327:                                              ; preds = %325
  br label %426

328:                                              ; preds = %318, %314, %293, %289
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %430

329:                                              ; preds = %198
  br label %330

330:                                              ; preds = %329
  %331 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %331, label %332, label %340

332:                                              ; preds = %330
  %333 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %334 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %333, ptr noundef @__FUNCTION__._ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE)
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %334, ptr noundef @.str.8)
  %336 = load ptr, ptr %7, align 8, !tbaa !5
  %337 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(8) %335, ptr noundef nonnull align 8 dereferenceable(12) %336)
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %337, ptr noundef @_ZSt3decRSt8ios_base)
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %340

340:                                              ; preds = %332, %330
  br label %341

341:                                              ; preds = %340
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.HIR::GenericRef", ptr %342, i32 0, i32 1
  %344 = load i32, ptr %343, align 8, !tbaa !13
  call void @_ZN3HIR11LifetimeRefC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %344)
  br label %427

345:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %346 = load ptr, ptr %44, align 8, !tbaa !9
  %347 = getelementptr inbounds ptr, ptr %346, i64 11
  %348 = load ptr, ptr %347, align 8
  %349 = call noundef ptr %348(ptr noundef nonnull align 8 dereferenceable(96) %44)
  store ptr %349, ptr %34, align 8, !tbaa !5
  %350 = load ptr, ptr %34, align 8, !tbaa !5
  %351 = icmp ne ptr %350, null
  br i1 %351, label %352, label %386

352:                                              ; preds = %345
  br label %353

353:                                              ; preds = %352
  %354 = load ptr, ptr %7, align 8, !tbaa !5
  %355 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %354)
  %356 = zext i32 %355 to i64
  %357 = load ptr, ptr %34, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.HIR::PathParams", ptr %357, i32 0, i32 0
  %359 = call noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %358)
  %360 = icmp ult i64 %356, %359
  br i1 %360, label %377, label %361

361:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %362)
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  %363 = getelementptr inbounds %class.anon.268, ptr %37, i32 0, i32 0
  %364 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %364, ptr %363, align 8, !tbaa !5
  %365 = getelementptr inbounds %class.anon.268, ptr %37, i32 0, i32 1
  store ptr %34, ptr %365, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(16) %37) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %36)
          to label %366 unwind label %369

366:                                              ; preds = %361
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  %367 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %367, ptr noundef @.str.2)
          to label %368 unwind label %373

368:                                              ; preds = %366
  call void @__cxa_throw(ptr %367, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

369:                                              ; preds = %361
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %11, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %408

373:                                              ; preds = %366
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %11, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %12, align 4
  call void @__cxa_free_exception(ptr %367) #8
  br label %408

377:                                              ; preds = %353
  br label %378

378:                                              ; preds = %377
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %34, align 8, !tbaa !5
  %381 = getelementptr inbounds %"struct.HIR::PathParams", ptr %380, i32 0, i32 0
  %382 = load ptr, ptr %7, align 8, !tbaa !5
  %383 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %382)
  %384 = zext i32 %383 to i64
  %385 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %381, i64 noundef %384)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %385, i64 4, i1 false), !tbaa.struct !16
  store i32 1, ptr %23, align 4
  br label %405

386:                                              ; preds = %345
  br label %387

387:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %388 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %388)
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %389 = getelementptr inbounds %class.anon.269, ptr %40, i32 0, i32 0
  %390 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %390, ptr %389, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef %39)
          to label %391 unwind label %394

391:                                              ; preds = %387
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  %392 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %392, ptr noundef @.str.2)
          to label %393 unwind label %398

393:                                              ; preds = %391
  call void @__cxa_throw(ptr %392, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

394:                                              ; preds = %387
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %11, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %408

398:                                              ; preds = %391
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %11, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %12, align 4
  call void @__cxa_free_exception(ptr %392) #8
  br label %408

402:                                              ; No predecessors!
  br label %403

403:                                              ; preds = %402
  br label %404

404:                                              ; preds = %403
  store i32 0, ptr %23, align 4
  br label %405

405:                                              ; preds = %404, %379
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  %406 = load i32, ptr %23, align 4
  switch i32 %406, label %435 [
    i32 0, label %407
    i32 1, label %427
  ]

407:                                              ; preds = %405
  br label %426

408:                                              ; preds = %398, %394, %373, %369
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %430

409:                                              ; preds = %198
  br label %410

410:                                              ; preds = %409
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %411 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %411)
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %412 = getelementptr inbounds %class.anon.270, ptr %43, i32 0, i32 0
  %413 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %413, ptr %412, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_6vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef %42)
          to label %414 unwind label %417

414:                                              ; preds = %410
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  %415 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %415, ptr noundef @.str.2)
          to label %416 unwind label %421

416:                                              ; preds = %414
  call void @__cxa_throw(ptr %415, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

417:                                              ; preds = %410
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %11, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %430

421:                                              ; preds = %414
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %11, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %12, align 4
  call void @__cxa_free_exception(ptr %415) #8
  br label %430

425:                                              ; No predecessors!
  br label %426

426:                                              ; preds = %425, %407, %327, %263
  unreachable

427:                                              ; preds = %405, %341, %325, %261, %194
  %428 = getelementptr inbounds %"struct.HIR::LifetimeRef", ptr %4, i32 0, i32 0
  %429 = load i32, ptr %428, align 4
  ret i32 %429

430:                                              ; preds = %421, %417, %408, %328, %264, %192
  %431 = load ptr, ptr %11, align 8
  %432 = load i32, ptr %12, align 4
  %433 = insertvalue { ptr, i32 } poison, ptr %431, 0
  %434 = insertvalue { ptr, i32 } %433, i32 %432, 1
  resume { ptr, i32 } %434

435:                                              ; preds = %405, %325, %261
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR11LifetimeRefC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_6vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 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 #6 = { 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 = { 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 #8 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN3HIR10GenericRefE", !15, i64 0, !12, i64 8}
!15 = !{!"_ZTS8RcString", !6, i64 0}
!16 = !{i64 0, i64 4, !11}


; 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::LifetimeRef" = type { i32 }
%"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 }
%struct.Span = type { ptr }
%"class.std::function.60" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.264 = type { ptr, ptr }
%class.anon.265 = type { ptr }
%class.anon.266 = type { ptr, ptr }
%class.anon.267 = type { ptr }
%class.anon.268 = type { ptr, ptr }
%class.anon.269 = type { ptr }
%class.anon.270 = type { ptr }

@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__FUNCTION__._ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR10GenericRef5groupEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

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

declare void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(12) %2) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.HIR::LifetimeRef", align 4
  %5 = alloca %"struct.HIR::PathParams", align 8
  %6 = alloca %"struct.HIR::PathParams", align 8
  %7 = alloca %"struct.HIR::PathParams", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.Span, align 8
  %10 = alloca %"class.std::function.60", align 8
  %11 = alloca %class.anon.264, align 8
  %12 = alloca %struct.Span, align 8
  %13 = alloca %"class.std::function.60", align 8
  %14 = alloca %class.anon.265, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.Span, align 8
  %17 = alloca %"class.std::function.60", align 8
  %18 = alloca %class.anon.266, align 8
  %19 = alloca %struct.Span, align 8
  %20 = alloca %"class.std::function.60", align 8
  %21 = alloca %class.anon.267, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %struct.Span, align 8
  %24 = alloca %"class.std::function.60", align 8
  %25 = alloca %class.anon.268, align 8
  %26 = alloca %struct.Span, align 8
  %27 = alloca %"class.std::function.60", align 8
  %28 = alloca %class.anon.269, align 8
  %29 = alloca %struct.Span, align 8
  %30 = alloca %"class.std::function.60", align 8
  %31 = alloca %class.anon.270, align 8
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 72
  %34 = load ptr, ptr %33, align 8
  %35 = tail call noundef ptr %34(ptr noundef nonnull align 8 dereferenceable(96) %0)
  %.not.not = icmp eq ptr %35, null
  br i1 %.not.not, label %50, label %36

36:                                               ; preds = %3
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 72
  %39 = load ptr, ptr %38, align 8
  %40 = tail call noundef ptr %39(ptr noundef nonnull align 8 dereferenceable(96) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %41 = invoke noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %42 unwind label %.thread123

42:                                               ; preds = %36
  br i1 %41, label %43, label %.thread118

43:                                               ; preds = %42
  %44 = load ptr, ptr %0, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 72
  %46 = load ptr, ptr %45, align 8
  %47 = invoke noundef ptr %46(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %48 unwind label %.thread123

48:                                               ; preds = %43
  %49 = call noundef zeroext i1 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  br i1 %49, label %50, label %.thread118

50:                                               ; preds = %48, %3
  %51 = load ptr, ptr %0, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 80
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef ptr %53(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %55 unwind label %109

55:                                               ; preds = %50
  %.not66.not = icmp eq ptr %54, null
  br i1 %.not66.not, label %72, label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %0, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 80
  %59 = load ptr, ptr %58, align 8
  %60 = invoke noundef ptr %59(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %61 unwind label %109

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %62 unwind label %110

62:                                               ; preds = %61
  %63 = invoke noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %64 unwind label %.thread99

64:                                               ; preds = %62
  br i1 %63, label %65, label %.thread.thread

65:                                               ; preds = %64
  %66 = load ptr, ptr %0, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 80
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef ptr %68(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %70 unwind label %.thread99

70:                                               ; preds = %65
  %71 = call noundef zeroext i1 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
  br i1 %71, label %72, label %.thread.thread

72:                                               ; preds = %70, %55
  %73 = load ptr, ptr %0, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 88
  %75 = load ptr, ptr %74, align 8
  %76 = invoke noundef ptr %75(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %77 unwind label %117

77:                                               ; preds = %72
  %.not67 = icmp eq ptr %76, null
  br i1 %.not67, label %.thread, label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %0, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 88
  %81 = load ptr, ptr %80, align 8
  %82 = invoke noundef ptr %81(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %83 unwind label %117

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %84 unwind label %112

84:                                               ; preds = %83
  %85 = invoke noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %86 unwind label %114

86:                                               ; preds = %84
  br i1 %85, label %87, label %.critedge

87:                                               ; preds = %86
  %88 = load ptr, ptr %0, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 88
  %90 = load ptr, ptr %89, align 8
  %91 = invoke noundef ptr %90(ptr noundef nonnull align 8 dereferenceable(96) %0)
          to label %92 unwind label %114

92:                                               ; preds = %87
  %93 = call noundef zeroext i1 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %91)
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br i1 %.not66.not, label %.critedge84, label %94

.thread.thread:                                   ; preds = %64, %70
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br i1 %.not.not, label %.critedge86.thread, label %.thread118

.thread:                                          ; preds = %77
  br i1 %.not66.not, label %.critedge84, label %94

.critedge:                                        ; preds = %86
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br i1 %.not66.not, label %.critedge84, label %94

94:                                               ; preds = %92, %.thread, %.critedge
  %95 = phi i1 [ true, %.thread ], [ false, %.critedge ], [ %93, %92 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br i1 %.not.not, label %.critedge86, label %97

.critedge84:                                      ; preds = %92, %.thread, %.critedge
  %96 = phi i1 [ true, %.thread ], [ false, %.critedge ], [ %93, %92 ]
  br i1 %.not.not, label %.critedge86, label %97

.thread118:                                       ; preds = %.thread.thread, %48, %42
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %.critedge86.thread

97:                                               ; preds = %94, %.critedge84
  %98 = phi i1 [ %95, %94 ], [ %96, %.critedge84 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br i1 %98, label %100, label %.critedge86.thread

.critedge86:                                      ; preds = %94, %.critedge84
  %99 = phi i1 [ %95, %94 ], [ %96, %.critedge84 ]
  br i1 %99, label %100, label %.critedge86.thread

100:                                              ; preds = %97, %.critedge86
  %101 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %101, label %102, label %122

102:                                              ; preds = %100
  %103 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !8
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %103, ptr noundef nonnull @__FUNCTION__._ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.7)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %122

.thread123:                                       ; preds = %43, %36
  %lpad.thr_comm121 = landingpad { ptr, i32 }
          cleanup
  br label %121

109:                                              ; preds = %56, %50
  %lpad.thr_comm.split-lp122 = landingpad { ptr, i32 }
          cleanup
  br i1 %.not.not, label %.critedge88, label %121

110:                                              ; preds = %61
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %119

112:                                              ; preds = %83
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %87, %84
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %116

116:                                              ; preds = %112, %114
  %.pn = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br i1 %.not66.not, label %120, label %118

.thread99:                                        ; preds = %65, %62
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %118

117:                                              ; preds = %72, %78
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  br i1 %.not66.not, label %120, label %118

118:                                              ; preds = %.thread99, %116, %117
  %.pn.pn96 = phi { ptr, i32 } [ %.pn, %116 ], [ %lpad.thr_comm.split-lp, %117 ], [ %lpad.thr_comm, %.thread99 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %119

119:                                              ; preds = %118, %110
  %.pn.pn.pn.ph = phi { ptr, i32 } [ %111, %110 ], [ %.pn.pn96, %118 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br i1 %.not.not, label %.critedge88, label %121

120:                                              ; preds = %117, %116
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %117 ], [ %.pn, %116 ]
  br i1 %.not.not, label %.critedge88, label %121

121:                                              ; preds = %.thread123, %109, %119, %120
  %.pn.pn.pn.pn107 = phi { ptr, i32 } [ %.pn.pn.pn.ph, %119 ], [ %.pn.pn.pn.pn, %120 ], [ %lpad.thr_comm.split-lp122, %109 ], [ %lpad.thr_comm121, %.thread123 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %.critedge88

122:                                              ; preds = %100, %102
  %123 = getelementptr inbounds i8, ptr %2, i64 8
  %124 = load i32, ptr %123, align 8, !tbaa !11
  call void @_ZN3HIR11LifetimeRefC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %124)
  br label %245

.critedge86.thread:                               ; preds = %.thread.thread, %.thread118, %97, %.critedge86
  %125 = call noundef i32 @_ZNK3HIR10GenericRef5groupEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  switch i32 %125, label %237 [
    i32 0, label %126
    i32 1, label %159
    i32 2, label %192
    i32 3, label %204
  ]

126:                                              ; preds = %.critedge86.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %127 = load ptr, ptr %0, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 72
  %129 = load ptr, ptr %128, align 8
  %130 = call noundef ptr %129(ptr noundef nonnull align 8 dereferenceable(96) %0)
  store ptr %130, ptr %8, align 8, !tbaa !15
  %.not78 = icmp eq ptr %130, null
  br i1 %.not78, label %150, label %131

131:                                              ; preds = %126
  %132 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %133 = zext i32 %132 to i64
  %134 = call noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %130)
  %135 = icmp ugt i64 %134, %133
  br i1 %135, label %145, label %136

136:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  store ptr %2, ptr %11, align 8, !tbaa !15
  %137 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %8, ptr %137, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %10)
          to label %138 unwind label %141

138:                                              ; preds = %136
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %139 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %139, ptr noundef nonnull @.str.2)
          to label %140 unwind label %143

140:                                              ; preds = %138
  call void @__cxa_throw(ptr nonnull %139, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

141:                                              ; preds = %136
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %158

143:                                              ; preds = %138
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %139) #7
  br label %158

145:                                              ; preds = %131
  %146 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %147 = zext i32 %146 to i64
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %130, i64 noundef %147)
  %149 = load i32, ptr %148, align 4, !tbaa !8
  store i32 %149, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %245

150:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  store ptr %2, ptr %14, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13)
          to label %151 unwind label %154

151:                                              ; preds = %150
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %152 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %152, ptr noundef nonnull @.str.2)
          to label %153 unwind label %156

153:                                              ; preds = %151
  call void @__cxa_throw(ptr nonnull %152, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

154:                                              ; preds = %150
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %158

156:                                              ; preds = %151
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %152) #7
  br label %158

158:                                              ; preds = %156, %154, %143, %141
  %.pn79 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ], [ %157, %156 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %.critedge88

159:                                              ; preds = %.critedge86.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %160 = load ptr, ptr %0, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 80
  %162 = load ptr, ptr %161, align 8
  %163 = call noundef ptr %162(ptr noundef nonnull align 8 dereferenceable(96) %0)
  store ptr %163, ptr %15, align 8, !tbaa !15
  %.not75 = icmp eq ptr %163, null
  br i1 %.not75, label %183, label %164

164:                                              ; preds = %159
  %165 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %166 = zext i32 %165 to i64
  %167 = call noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %163)
  %168 = icmp ugt i64 %167, %166
  br i1 %168, label %178, label %169

169:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  store ptr %2, ptr %18, align 8, !tbaa !15
  %170 = getelementptr inbounds i8, ptr %18, i64 8
  store ptr %15, ptr %170, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull %17)
          to label %171 unwind label %174

171:                                              ; preds = %169
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %172 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %172, ptr noundef nonnull @.str.2)
          to label %173 unwind label %176

173:                                              ; preds = %171
  call void @__cxa_throw(ptr nonnull %172, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

174:                                              ; preds = %169
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %191

176:                                              ; preds = %171
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %172) #7
  br label %191

178:                                              ; preds = %164
  %179 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %180 = zext i32 %179 to i64
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %163, i64 noundef %180)
  %182 = load i32, ptr %181, align 4, !tbaa !8
  store i32 %182, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %245

183:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  store ptr %2, ptr %21, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %20)
          to label %184 unwind label %187

184:                                              ; preds = %183
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %185 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %185, ptr noundef nonnull @.str.2)
          to label %186 unwind label %189

186:                                              ; preds = %184
  call void @__cxa_throw(ptr nonnull %185, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

187:                                              ; preds = %183
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %191

189:                                              ; preds = %184
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %185) #7
  br label %191

191:                                              ; preds = %189, %187, %176, %174
  %.pn76 = phi { ptr, i32 } [ %177, %176 ], [ %175, %174 ], [ %190, %189 ], [ %188, %187 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %.critedge88

192:                                              ; preds = %.critedge86.thread
  %193 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %193, label %194, label %201

194:                                              ; preds = %192
  %195 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !8
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %195, ptr noundef nonnull @__FUNCTION__._ZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefE)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @.str.8)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef nonnull align 8 dereferenceable(12) %2)
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %201

201:                                              ; preds = %192, %194
  %202 = getelementptr inbounds i8, ptr %2, i64 8
  %203 = load i32, ptr %202, align 8, !tbaa !11
  call void @_ZN3HIR11LifetimeRefC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %203)
  br label %245

204:                                              ; preds = %.critedge86.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %205 = load ptr, ptr %0, align 8, !tbaa !5
  %206 = getelementptr inbounds i8, ptr %205, i64 88
  %207 = load ptr, ptr %206, align 8
  %208 = call noundef ptr %207(ptr noundef nonnull align 8 dereferenceable(96) %0)
  store ptr %208, ptr %22, align 8, !tbaa !15
  %.not72 = icmp eq ptr %208, null
  br i1 %.not72, label %228, label %209

209:                                              ; preds = %204
  %210 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %211 = zext i32 %210 to i64
  %212 = call noundef i64 @_ZNK10ThinVectorIN3HIR11LifetimeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %208)
  %213 = icmp ugt i64 %212, %211
  br i1 %213, label %223, label %214

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  store ptr %2, ptr %25, align 8, !tbaa !15
  %215 = getelementptr inbounds i8, ptr %25, i64 8
  store ptr %22, ptr %215, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull %24)
          to label %216 unwind label %219

216:                                              ; preds = %214
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  %217 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %217, ptr noundef nonnull @.str.2)
          to label %218 unwind label %221

218:                                              ; preds = %216
  call void @__cxa_throw(ptr nonnull %217, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

219:                                              ; preds = %214
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %236

221:                                              ; preds = %216
  %222 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %217) #7
  br label %236

223:                                              ; preds = %209
  %224 = call noundef i32 @_ZNK3HIR10GenericRef3idxEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %225 = zext i32 %224 to i64
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %208, i64 noundef %225)
  %227 = load i32, ptr %226, align 4, !tbaa !8
  store i32 %227, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %245

228:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  store ptr %2, ptr %28, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull %27)
          to label %229 unwind label %232

229:                                              ; preds = %228
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  %230 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %230, ptr noundef nonnull @.str.2)
          to label %231 unwind label %234

231:                                              ; preds = %229
  call void @__cxa_throw(ptr nonnull %230, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

232:                                              ; preds = %228
  %233 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %236

234:                                              ; preds = %229
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %230) #7
  br label %236

236:                                              ; preds = %234, %232, %221, %219
  %.pn73 = phi { ptr, i32 } [ %222, %221 ], [ %220, %219 ], [ %235, %234 ], [ %233, %232 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %.critedge88

237:                                              ; preds = %.critedge86.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  call void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  store ptr %2, ptr %31, align 8, !tbaa !15
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_6vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull %30)
          to label %238 unwind label %241

238:                                              ; preds = %237
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  %239 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %239, ptr noundef nonnull @.str.2)
          to label %240 unwind label %243

240:                                              ; preds = %238
  call void @__cxa_throw(ptr nonnull %239, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

241:                                              ; preds = %237
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  br label %.critedge88

243:                                              ; preds = %238
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %239) #7
  br label %.critedge88

245:                                              ; preds = %223, %178, %145, %201, %122
  %246 = load i32, ptr %4, align 4
  ret i32 %246

.critedge88:                                      ; preds = %109, %119, %120, %121, %243, %241, %236, %191, %158
  %.pn81 = phi { ptr, i32 } [ %244, %243 ], [ %242, %241 ], [ %.pn73, %236 ], [ %.pn76, %191 ], [ %.pn79, %158 ], [ %.pn.pn.pn.pn107, %121 ], [ %.pn.pn.pn.pn, %120 ], [ %.pn.pn.pn.ph, %119 ], [ %lpad.thr_comm.split-lp122, %109 ]
  resume { ptr, i32 } %.pn81
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3HIR10PathParamseqERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_10GenericRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR11LifetimeRefC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10ThinVectorIN3HIR11LifetimeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK15MonomorphiserPP12get_lifetimeERK4SpanRKN3HIR10GenericRefEE3$_6vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 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 = { 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 = { 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 = { 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 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 8}
!12 = !{!"_ZTSN3HIR10GenericRefE", !13, i64 0, !9, i64 8}
!13 = !{!"_ZTS8RcString", !14, i64 0}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!14, !14, i64 0}


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