; LLVM IR from thepowersgang/mrustc :: src/hir_typeck (static)

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

%class.TraceLog = type { ptr, %"class.std::function.0" }
%"class.std::function.0" = 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.521 = type { ptr }
%class.anon.522 = type { ptr }
%struct.Span = type { ptr }
%class.anon.523 = type { ptr }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.17, %class.ThinVector.18, %class.ThinVector.19 }
%class.ThinVector.17 = type { ptr }
%class.ThinVector.18 = type { ptr }
%class.ThinVector.19 = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.46" }
%"struct.std::_Head_base.46" = type { ptr }
%"struct.HIR::Path::Data::Data_UfcsInherent" = type { %"class.HIR::TypeRef", %class.RcString, %"struct.HIR::PathParams", %"struct.HIR::PathParams" }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [80 x i8], align 1
@__func__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE = external hidden unnamed_addr constant [89 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 noundef zeroext i1 @_Z13debug_enabledv() #1

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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(88) %2) #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.TraceLog, align 8
  %8 = alloca %"class.std::function.0", align 8
  %9 = alloca %class.anon.521, align 8
  %10 = alloca %"class.std::function.0", align 8
  %11 = alloca %class.anon.522, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i8, align 1
  %26 = alloca ptr, align 8
  %27 = alloca i8, align 1
  %28 = alloca ptr, align 8
  %29 = alloca %struct.Span, align 8
  %30 = alloca %"class.std::function.0", align 8
  %31 = alloca %class.anon.523, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #6
  %33 = call noundef zeroext i1 @_Z13debug_enabledv()
  %34 = zext i1 %33 to i64
  %35 = select i1 %33, ptr @__func__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %36 = getelementptr inbounds %class.anon.521, ptr %9, i32 0, i32 0
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %37, ptr %36, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %38 = getelementptr inbounds %class.anon.522, ptr %11, i32 0, i32 0
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %39, ptr %38, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %35, ptr noundef %8, ptr noundef %10)
          to label %40 unwind label %45

40:                                               ; preds = %3
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 1, ptr %14, align 1, !tbaa !9
  br label %41

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

44:                                               ; preds = %41
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %249

45:                                               ; preds = %3
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %12, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %250

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.HIR::Path", ptr %50, i32 0, i32 0
  store ptr %51, ptr %16, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %245, %49
  %53 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %247

56:                                               ; preds = %52
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  %58 = invoke noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %57)
          to label %59 unwind label %60

59:                                               ; preds = %56
  switch i32 %58, label %244 [
    i32 0, label %64
    i32 1, label %65
    i32 2, label %92
    i32 3, label %161
    i32 4, label %197
  ]

60:                                               ; preds = %56
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %12, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %13, align 4
  br label %246

64:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 1459, ptr noundef @__PRETTY_FUNCTION__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE) #7
  unreachable

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

66:                                               ; preds = %90, %65
  %67 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %68 = trunc i8 %67 to i1
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  store i32 9, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %91

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %71)
          to label %73 unwind label %79

73:                                               ; preds = %70
  store ptr %72, ptr %18, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %88, %73
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = load i8, ptr %17, align 1, !tbaa !9, !range !11, !noundef !12
  %77 = trunc i8 %76 to i1
  br i1 %77, label %83, label %78

78:                                               ; preds = %74
  store i32 12, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %89

79:                                               ; preds = %83, %70
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %246

83:                                               ; preds = %74
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.HIR::GenericPath", ptr %85, i32 0, i32 1
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(24) %86)
          to label %87 unwind label %79

87:                                               ; preds = %83
  br label %88

88:                                               ; preds = %87
  store i8 0, ptr %17, align 1, !tbaa !9
  br label %74, !llvm.loop !13

89:                                               ; preds = %78
  br label %90

90:                                               ; preds = %89
  store i8 0, ptr %17, align 1, !tbaa !9
  br label %66, !llvm.loop !15

91:                                               ; preds = %69
  br label %244

92:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 1, ptr %19, align 1, !tbaa !9
  br label %93

93:                                               ; preds = %159, %92
  %94 = load i8, ptr %19, align 1, !tbaa !9, !range !11, !noundef !12
  %95 = trunc i8 %94 to i1
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  store i32 15, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %160

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %98)
          to label %100 unwind label %106

100:                                              ; preds = %97
  store ptr %99, ptr %20, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %156, %100
  %102 = load ptr, ptr %20, align 8, !tbaa !5
  %103 = load i8, ptr %19, align 1, !tbaa !9, !range !11, !noundef !12
  %104 = trunc i8 %103 to i1
  br i1 %104, label %110, label %105

105:                                              ; preds = %101
  store i32 18, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %158

106:                                              ; preds = %114, %110, %97
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  br label %157

110:                                              ; preds = %101
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %112, i32 0, i32 0
  invoke void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %114 unwind label %106

114:                                              ; preds = %110
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %116, i32 0, i32 2
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 8 dereferenceable(24) %117)
          to label %118 unwind label %106

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %119 = load ptr, ptr %20, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsInherent", ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %"struct.HIR::PathParams", ptr %120, i32 0, i32 1
  store ptr %121, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = invoke noundef ptr @_ZN10ThinVectorIN3HIR7TypeRefEE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %122)
          to label %124 unwind label %133

124:                                              ; preds = %118
  store ptr %123, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = invoke noundef ptr @_ZN10ThinVectorIN3HIR7TypeRefEE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %125)
          to label %127 unwind label %137

127:                                              ; preds = %124
  store ptr %126, ptr %23, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %146, %127
  %129 = load ptr, ptr %22, align 8, !tbaa !5
  %130 = load ptr, ptr %23, align 8, !tbaa !5
  %131 = icmp ne ptr %129, %130
  br i1 %131, label %141, label %132

132:                                              ; preds = %128
  store i32 21, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %155

133:                                              ; preds = %118
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %12, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %13, align 4
  br label %154

137:                                              ; preds = %124
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %12, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %13, align 4
  br label %153

141:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %142, ptr %24, align 8, !tbaa !5
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load ptr, ptr %24, align 8, !tbaa !5
  invoke void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull align 8 dereferenceable(8) %144)
          to label %145 unwind label %149

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %146

146:                                              ; preds = %145
  %147 = load ptr, ptr %22, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.HIR::TypeRef", ptr %147, i32 1
  store ptr %148, ptr %22, align 8, !tbaa !5
  br label %128

149:                                              ; preds = %141
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %12, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %153

153:                                              ; preds = %149, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %154

154:                                              ; preds = %153, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %157

155:                                              ; preds = %132
  br label %156

156:                                              ; preds = %155
  store i8 0, ptr %19, align 1, !tbaa !9
  br label %101, !llvm.loop !16

157:                                              ; preds = %154, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %246

158:                                              ; preds = %105
  br label %159

159:                                              ; preds = %158
  store i8 0, ptr %19, align 1, !tbaa !9
  br label %93, !llvm.loop !17

160:                                              ; preds = %96
  br label %244

161:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  store i8 1, ptr %25, align 1, !tbaa !9
  br label %162

162:                                              ; preds = %195, %161
  %163 = load i8, ptr %25, align 1, !tbaa !9, !range !11, !noundef !12
  %164 = trunc i8 %163 to i1
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  store i32 23, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %196

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %167)
          to label %169 unwind label %175

169:                                              ; preds = %166
  store ptr %168, ptr %26, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %193, %169
  %171 = load ptr, ptr %26, align 8, !tbaa !5
  %172 = load i8, ptr %25, align 1, !tbaa !9, !range !11, !noundef !12
  %173 = trunc i8 %172 to i1
  br i1 %173, label %179, label %174

174:                                              ; preds = %170
  store i32 26, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %194

175:                                              ; preds = %188, %183, %179, %166
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %12, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %246

179:                                              ; preds = %170
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load ptr, ptr %26, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %181, i32 0, i32 0
  invoke void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull align 8 dereferenceable(8) %182)
          to label %183 unwind label %175

183:                                              ; preds = %179
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds %"class.HIR::GenericPath", ptr %186, i32 0, i32 1
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef nonnull align 8 dereferenceable(24) %187)
          to label %188 unwind label %175

188:                                              ; preds = %183
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = load ptr, ptr %26, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.HIR::Path::Data::Data_UfcsKnown", ptr %190, i32 0, i32 3
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %32, ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef nonnull align 8 dereferenceable(24) %191)
          to label %192 unwind label %175

192:                                              ; preds = %188
  br label %193

193:                                              ; preds = %192
  store i8 0, ptr %25, align 1, !tbaa !9
  br label %170, !llvm.loop !18

194:                                              ; preds = %174
  br label %195

195:                                              ; preds = %194
  store i8 0, ptr %25, align 1, !tbaa !9
  br label %162, !llvm.loop !19

196:                                              ; preds = %165
  br label %244

197:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  store i8 1, ptr %27, align 1, !tbaa !9
  br label %198

198:                                              ; preds = %242, %197
  %199 = load i8, ptr %27, align 1, !tbaa !9, !range !11, !noundef !12
  %200 = trunc i8 %199 to i1
  br i1 %200, label %202, label %201

201:                                              ; preds = %198
  store i32 29, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %243

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %203)
          to label %205 unwind label %211

205:                                              ; preds = %202
  store ptr %204, ptr %28, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %239, %205
  %207 = load ptr, ptr %28, align 8, !tbaa !5
  %208 = load i8, ptr %27, align 1, !tbaa !9, !range !11, !noundef !12
  %209 = trunc i8 %208 to i1
  br i1 %209, label %215, label %210

210:                                              ; preds = %206
  store i32 32, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %241

211:                                              ; preds = %223, %202
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %12, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %13, align 4
  br label %240

215:                                              ; preds = %206
  br label %216

216:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %217)
          to label %218 unwind label %224

218:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %219 = getelementptr inbounds %class.anon.523, ptr %31, i32 0, i32 0
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %220, ptr %219, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %30)
          to label %221 unwind label %228

221:                                              ; preds = %218
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  %222 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %222, ptr noundef @.str)
          to label %223 unwind label %233

223:                                              ; preds = %221
  invoke void @__cxa_throw(ptr %222, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
          to label %256 unwind label %211

224:                                              ; preds = %216
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %12, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %13, align 4
  br label %232

228:                                              ; preds = %218
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %12, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %232

232:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %240

233:                                              ; preds = %221
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %12, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %13, align 4
  call void @__cxa_free_exception(ptr %222) #6
  br label %240

237:                                              ; No predecessors!
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238
  store i8 0, ptr %27, align 1, !tbaa !9
  br label %206, !llvm.loop !20

240:                                              ; preds = %233, %232, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %246

241:                                              ; preds = %210
  br label %242

242:                                              ; preds = %241
  store i8 0, ptr %27, align 1, !tbaa !9
  br label %198, !llvm.loop !21

243:                                              ; preds = %201
  br label %244

244:                                              ; preds = %243, %196, %160, %91, %59
  br label %245

245:                                              ; preds = %244
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %52, !llvm.loop !22

246:                                              ; preds = %240, %175, %157, %79, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #6
  br label %250

247:                                              ; preds = %55
  br label %248

248:                                              ; preds = %247
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %41, !llvm.loop !23

249:                                              ; preds = %44
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #6
  ret void

250:                                              ; preds = %246, %45
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #6
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %12, align 8
  %253 = load i32, ptr %13, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255

256:                                              ; preds = %223
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_0vEEOT_"(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 @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_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 dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_2vEEOT_"(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 dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 = { nounwind }
attributes #7 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


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

%class.TraceLog = type { ptr, %"class.std::function.0" }
%"class.std::function.0" = 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.521 = type { ptr }
%class.anon.522 = type { ptr }
%struct.Span = type { ptr }
%class.anon.523 = type { ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [80 x i8], align 1
@__func__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE = external hidden unnamed_addr constant [89 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 noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(88) %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.TraceLog, align 8
  %5 = alloca %"class.std::function.0", align 8
  %6 = alloca %class.anon.521, align 8
  %7 = alloca %"class.std::function.0", align 8
  %8 = alloca %class.anon.522, align 8
  %9 = alloca %struct.Span, align 8
  %10 = alloca %"class.std::function.0", align 8
  %11 = alloca %class.anon.523, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  %12 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %13 = select i1 %12, ptr @__func__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store ptr %2, ptr %8, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %13, ptr noundef nonnull %5, ptr noundef nonnull %7)
          to label %.lr.ph124 unwind label %14

.loopexit81:                                      ; preds = %32, %38, %.preheader74.split, %.lr.ph124, %.preheader
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  ret void

14:                                               ; preds = %3
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %55

.lr.ph124:                                        ; preds = %3
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %16 = call noundef i32 @_ZNK3HIR4Path4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  switch i32 %16, label %.loopexit81 [
    i32 0, label %23
    i32 1, label %.preheader74.split
    i32 2, label %.preheader76.split.split
    i32 3, label %.preheader78.split
    i32 4, label %39
  ]

.preheader78.split:                               ; preds = %.lr.ph124
  %17 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %18 = getelementptr inbounds i8, ptr %17, i64 48
  invoke void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %36 unwind label %.split

.preheader76.split.split:                         ; preds = %.lr.ph124
  %19 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %20 = getelementptr inbounds i8, ptr %19, i64 48
  invoke void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %26 unwind label %.split87.split

.preheader74.split:                               ; preds = %.lr.ph124
  %21 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %.loopexit81 unwind label %.split121, !llvm.loop !9

23:                                               ; preds = %.lr.ph124
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 1459, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathE) #7
  unreachable

.split121:                                        ; preds = %.preheader74.split
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %54

.split87.split:                                   ; preds = %26, %.preheader76.split.split
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %54

26:                                               ; preds = %.preheader76.split.split
  %27 = getelementptr inbounds i8, ptr %19, i64 16
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %28 unwind label %.split87.split

28:                                               ; preds = %26
  %29 = call noundef ptr @_ZN10ThinVectorIN3HIR7TypeRefEE5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %30 = invoke noundef ptr @_ZN10ThinVectorIN3HIR7TypeRefEE3endEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %.preheader unwind label %.split90.split

.preheader:                                       ; preds = %28
  %.not83 = icmp eq ptr %29, %30
  br i1 %.not83, label %.loopexit81, label %.lr.ph

.split90.split:                                   ; preds = %28
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %54

.lr.ph:                                           ; preds = %.preheader, %32
  %.05884 = phi ptr [ %33, %32 ], [ %29, %.preheader ]
  invoke void @_ZNK18StaticTraitResolve29expand_associated_types_innerERK4SpanRN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %.05884)
          to label %32 unwind label %.split93.split

32:                                               ; preds = %.lr.ph
  %33 = getelementptr inbounds i8, ptr %.05884, i64 8
  %.not = icmp eq ptr %33, %30
  br i1 %.not, label %.loopexit81, label %.lr.ph

.split93.split:                                   ; preds = %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %54

.split:                                           ; preds = %38, %36, %.preheader78.split
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %54

36:                                               ; preds = %.preheader78.split
  %37 = getelementptr inbounds i8, ptr %17, i64 16
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %38 unwind label %.split

38:                                               ; preds = %36
  invoke void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %.loopexit81 unwind label %.split, !llvm.loop !11

39:                                               ; preds = %.lr.ph124
  %40 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  invoke void @_ZN4SpanC1ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %43 unwind label %47

41:                                               ; preds = %46
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %54

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store ptr %2, ptr %11, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %10)
          to label %44 unwind label %49

44:                                               ; preds = %43
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %45 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull @.str)
          to label %46 unwind label %52

46:                                               ; preds = %44
  invoke void @__cxa_throw(ptr nonnull %45, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %56 unwind label %41

47:                                               ; preds = %39
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %43
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %54

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %45) #6
  br label %54

54:                                               ; preds = %41, %51, %52, %.split87.split, %.split93.split, %.split90.split, %.split, %.split121
  %.pn64.pn = phi { ptr, i32 } [ %35, %.split ], [ %24, %.split121 ], [ %25, %.split87.split ], [ %34, %.split93.split ], [ %31, %.split90.split ], [ %42, %41 ], [ %53, %52 ], [ %.pn, %51 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  br label %55

55:                                               ; preds = %54, %14
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %54 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn64.pn.pn

56:                                               ; preds = %46
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_0vEEOT_"(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 @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_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 dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK18StaticTraitResolve30expand_associated_types_paramsERK4SpanRN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN3HIR4Path4Data15as_UfcsInherentEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN3HIR4Path4Data12as_UfcsKnownEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN3HIR4Path4Data14as_UfcsUnknownEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZNK18StaticTraitResolve28expand_associated_types_pathERK4SpanRN3HIR4PathEE3$_2vEEOT_"(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 dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 = { nounwind }
attributes #7 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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