; LLVM IR from thepowersgang/mrustc :: src/hir (inherent_cache)

; 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.77" }
%"class.std::function.77" = 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.96 = type { ptr }
%"struct.std::_Rb_tree_const_iterator.97" = type { ptr }
%"struct.HIR::InherentCache::Inner" = type { %"struct.HIR::InherentCache::Lowest", %"class.std::unique_ptr.80", %"class.std::unique_ptr.80", %"class.std::unique_ptr.80", %"class.std::unique_ptr.80", %"class.std::unique_ptr.80", %"class.std::unique_ptr.80", %"class.std::map.88" }
%"struct.HIR::InherentCache::Lowest" = type { %"class.std::map.23", %"class.std::vector.29", %"class.std::vector.29" }
%"class.std::map.23" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = type { %"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, std::vector<const HIR::TypeImpl *>>, std::_Select1st<std::pair<const HIR::SimplePath, std::vector<const HIR::TypeImpl *>>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, std::vector<const HIR::TypeImpl *>>, std::_Select1st<std::pair<const HIR::SimplePath, std::vector<const HIR::TypeImpl *>>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<const HIR::TypeImpl *, std::allocator<const HIR::TypeImpl *>>::_Vector_impl" }
%"struct.std::_Vector_base<const HIR::TypeImpl *, std::allocator<const HIR::TypeImpl *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const HIR::TypeImpl *, std::allocator<const HIR::TypeImpl *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const HIR::TypeImpl *, std::allocator<const HIR::TypeImpl *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.80" = type { %"struct.std::__uniq_ptr_data.81" }
%"struct.std::__uniq_ptr_data.81" = type { %"class.std::__uniq_ptr_impl.82" }
%"class.std::__uniq_ptr_impl.82" = type { %"class.std::tuple.83" }
%"class.std::tuple.83" = type { %"struct.std::_Tuple_impl.84" }
%"struct.std::_Tuple_impl.84" = type { %"struct.std::_Head_base.87" }
%"struct.std::_Head_base.87" = type { ptr }
%"class.std::map.88" = type { %"class.std::_Rb_tree.89" }
%"class.std::_Rb_tree.89" = type { %"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, HIR::InherentCache::Inner>, std::_Select1st<std::pair<const HIR::SimplePath, HIR::InherentCache::Inner>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, HIR::InherentCache::Inner>, std::_Select1st<std::pair<const HIR::SimplePath, HIR::InherentCache::Inner>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.HIR::TypeData::Data_Borrow" = type { %"struct.HIR::LifetimeRef", i32, %"class.HIR::TypeRef" }
%"struct.HIR::LifetimeRef" = type { i32 }
%"class.HIR::TypeRef" = type { ptr }
%"struct.HIR::TypeData::Data_Pointer" = type { i32, %"class.HIR::TypeRef" }
%"struct.HIR::TypeData_Path" = type { %"class.HIR::Path", %"class.HIR::TypePathBinding", %"class.std::unique_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::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.34, %class.ThinVector.35, %class.ThinVector.36 }
%class.ThinVector.34 = type { ptr }
%class.ThinVector.35 = type { ptr }
%class.ThinVector.36 = type { ptr }
%"class.HIR::TypePathBinding" = type { i32, %"union.HIR::TypePathBinding::DataUnion" }
%"union.HIR::TypePathBinding::DataUnion" = 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.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"struct.std::pair.98" = type { %"struct.HIR::SimplePath", %"struct.HIR::InherentCache::Inner" }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@g_debug_indent_level = external global i32, align 4
@__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE = external hidden unnamed_addr constant [5 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE = external hidden unnamed_addr constant [133 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR13InherentCache6Lowest7iterateERKNS_7TypeRefERSt8functionIFvS4_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88)) #3 align 2

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

declare noundef zeroext i1 @_Z13debug_enabledv() #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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) #2 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 uwtable
define dso_local void @_ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %class.TraceLog, align 8
  %13 = alloca %"class.std::function.77", align 8
  %14 = alloca %class.anon.96, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca i8, align 1
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator.97", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator.97", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %32, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 0
  %37 = load ptr, ptr %36, align 8
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr %37(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34)
  store ptr %38, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #8
  %39 = call noundef zeroext i1 @_Z13debug_enabledv()
  %40 = zext i1 %39 to i64
  %41 = select i1 %39, ptr @__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %42 = getelementptr inbounds %class.anon.96, ptr %14, i32 0, i32 0
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %43, ptr %42, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK3HIR13InherentCache5Inner4findERK4SpanRKNS4_7TypeRefERKNS4_19ResolvePlaceholdersERS_IFvSC_RKNS4_8TypeImplEEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %41, ptr noundef %13)
          to label %44 unwind label %53

44:                                               ; preds = %5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %45 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 0
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK3HIR13InherentCache6Lowest7iterateERKNS_7TypeRefERSt8functionIFvS4_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(96) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %48 unwind label %57

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %49

49:                                               ; preds = %231, %48
  %50 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %51 = trunc i8 %50 to i1
  br i1 %51, label %61, label %52

52:                                               ; preds = %49
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %232

53:                                               ; preds = %5
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %15, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %16, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %291

57:                                               ; preds = %44
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %15, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %16, align 4
  br label %290

61:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %62)
          to label %64 unwind label %69

64:                                               ; preds = %61
  store ptr %63, ptr %21, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %228, %64
  %66 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %73, label %68

68:                                               ; preds = %65
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %230

69:                                               ; preds = %73, %61
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %15, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %16, align 4
  br label %229

73:                                               ; preds = %65
  %74 = load ptr, ptr %21, align 8, !tbaa !5
  %75 = invoke noundef i32 @_ZNK3HIR8TypeData3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %74)
          to label %76 unwind label %69

76:                                               ; preds = %73
  switch i32 %75, label %78 [
    i32 0, label %77
    i32 11, label %79
    i32 12, label %117
    i32 4, label %155
  ]

77:                                               ; preds = %76
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 125, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE) #9
  unreachable

78:                                               ; preds = %76
  br label %227

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  store i8 1, ptr %22, align 1, !tbaa !11
  br label %80

80:                                               ; preds = %115, %79
  %81 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %82 = trunc i8 %81 to i1
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 9, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %116

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %85)
          to label %87 unwind label %93

87:                                               ; preds = %84
  store ptr %86, ptr %23, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %113, %87
  %89 = load ptr, ptr %23, align 8, !tbaa !5
  %90 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %91 = trunc i8 %90 to i1
  br i1 %91, label %97, label %92

92:                                               ; preds = %88
  store i32 12, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %114

93:                                               ; preds = %84
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %15, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %229

97:                                               ; preds = %88
  %98 = load ptr, ptr %23, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.HIR::TypeData::Data_Borrow", ptr %98, i32 0, i32 2
  store ptr %99, ptr %18, align 8, !tbaa !5
  %100 = load ptr, ptr %23, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.HIR::TypeData::Data_Borrow", ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !15
  switch i32 %102, label %112 [
    i32 0, label %103
    i32 1, label %106
    i32 2, label %109
  ]

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 1
  %105 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %104) #8
  store ptr %105, ptr %17, align 8, !tbaa !5
  br label %112

106:                                              ; preds = %97
  %107 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 2
  %108 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %107) #8
  store ptr %108, ptr %17, align 8, !tbaa !5
  br label %112

109:                                              ; preds = %97
  %110 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 3
  %111 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %110) #8
  store ptr %111, ptr %17, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %109, %106, %103, %97
  br label %113

113:                                              ; preds = %112
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %88, !llvm.loop !21

114:                                              ; preds = %92
  br label %115

115:                                              ; preds = %114
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %80, !llvm.loop !23

116:                                              ; preds = %83
  br label %227

117:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  store i8 1, ptr %24, align 1, !tbaa !11
  br label %118

118:                                              ; preds = %153, %117
  %119 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %120 = trunc i8 %119 to i1
  br i1 %120, label %122, label %121

121:                                              ; preds = %118
  store i32 16, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %154

122:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %123)
          to label %125 unwind label %131

125:                                              ; preds = %122
  store ptr %124, ptr %25, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %151, %125
  %127 = load ptr, ptr %25, align 8, !tbaa !5
  %128 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %129 = trunc i8 %128 to i1
  br i1 %129, label %135, label %130

130:                                              ; preds = %126
  store i32 19, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %152

131:                                              ; preds = %122
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %15, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %229

135:                                              ; preds = %126
  %136 = load ptr, ptr %25, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.HIR::TypeData::Data_Pointer", ptr %136, i32 0, i32 1
  store ptr %137, ptr %18, align 8, !tbaa !5
  %138 = load ptr, ptr %25, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.HIR::TypeData::Data_Pointer", ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 8, !tbaa !24
  switch i32 %140, label %150 [
    i32 0, label %141
    i32 1, label %144
    i32 2, label %147
  ]

141:                                              ; preds = %135
  %142 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 4
  %143 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %142) #8
  store ptr %143, ptr %17, align 8, !tbaa !5
  br label %150

144:                                              ; preds = %135
  %145 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 5
  %146 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %145) #8
  store ptr %146, ptr %17, align 8, !tbaa !5
  br label %150

147:                                              ; preds = %135
  %148 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 6
  %149 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %148) #8
  store ptr %149, ptr %17, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %147, %144, %141, %135
  br label %151

151:                                              ; preds = %150
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %126, !llvm.loop !26

152:                                              ; preds = %130
  br label %153

153:                                              ; preds = %152
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %118, !llvm.loop !27

154:                                              ; preds = %121
  br label %227

155:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #8
  store i8 1, ptr %26, align 1, !tbaa !11
  br label %156

156:                                              ; preds = %225, %155
  %157 = load i8, ptr %26, align 1, !tbaa !11, !range !13, !noundef !14
  %158 = trunc i8 %157 to i1
  br i1 %158, label %160, label %159

159:                                              ; preds = %156
  store i32 23, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  br label %226

160:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %161)
          to label %163 unwind label %169

163:                                              ; preds = %160
  store ptr %162, ptr %27, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %222, %163
  %165 = load ptr, ptr %27, align 8, !tbaa !5
  %166 = load i8, ptr %26, align 1, !tbaa !11, !range !13, !noundef !14
  %167 = trunc i8 %166 to i1
  br i1 %167, label %173, label %168

168:                                              ; preds = %164
  store i32 26, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %224

169:                                              ; preds = %173, %160
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %15, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %16, align 4
  br label %223

173:                                              ; preds = %164
  %174 = load ptr, ptr %27, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %"class.HIR::Path", ptr %175, i32 0, i32 0
  %177 = invoke noundef zeroext i1 @_ZNK3HIR4Path4Data10is_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %176)
          to label %178 unwind label %169

178:                                              ; preds = %173
  br i1 %177, label %179, label %221

179:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %180 = load ptr, ptr %27, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds %"class.HIR::Path", ptr %181, i32 0, i32 0
  %183 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %182)
          to label %184 unwind label %210

184:                                              ; preds = %179
  store ptr %183, ptr %28, align 8, !tbaa !5
  %185 = load ptr, ptr %28, align 8, !tbaa !5
  %186 = getelementptr inbounds %"class.HIR::GenericPath", ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds %"struct.HIR::PathParams", ptr %186, i32 0, i32 1
  %188 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %187)
          to label %189 unwind label %210

189:                                              ; preds = %184
  %190 = icmp ugt i64 %188, 0
  br i1 %190, label %191, label %219

191:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %192 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 7
  %193 = load ptr, ptr %28, align 8, !tbaa !5
  %194 = getelementptr inbounds %"class.HIR::GenericPath", ptr %193, i32 0, i32 0
  %195 = invoke ptr @_ZNKSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) %192, ptr noundef nonnull align 8 dereferenceable(8) %194)
          to label %196 unwind label %214

196:                                              ; preds = %191
  %197 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.97", ptr %29, i32 0, i32 0
  store ptr %195, ptr %197, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %198 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %31, i32 0, i32 7
  %199 = call ptr @_ZNKSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %198) #8
  %200 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.97", ptr %30, i32 0, i32 0
  store ptr %199, ptr %200, align 8
  %201 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN3HIR10SimplePathENS1_13InherentCache5InnerEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br i1 %201, label %202, label %218

202:                                              ; preds = %196
  %203 = load ptr, ptr %28, align 8, !tbaa !5
  %204 = getelementptr inbounds %"class.HIR::GenericPath", ptr %203, i32 0, i32 1
  %205 = getelementptr inbounds %"struct.HIR::PathParams", ptr %204, i32 0, i32 1
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEE2atEm(ptr noundef nonnull align 8 dereferenceable(8) %205, i64 noundef 0)
          to label %207 unwind label %214

207:                                              ; preds = %202
  store ptr %206, ptr %18, align 8, !tbaa !5
  %208 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN3HIR10SimplePathENS1_13InherentCache5InnerEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %209 = getelementptr inbounds %"struct.std::pair.98", ptr %208, i32 0, i32 1
  store ptr %209, ptr %17, align 8, !tbaa !5
  br label %218

210:                                              ; preds = %184, %179
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %15, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %16, align 4
  br label %220

214:                                              ; preds = %202, %191
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %15, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %220

218:                                              ; preds = %207, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %219

219:                                              ; preds = %218, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %221

220:                                              ; preds = %214, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %223

221:                                              ; preds = %219, %178
  br label %222

222:                                              ; preds = %221
  store i8 0, ptr %26, align 1, !tbaa !11
  br label %164, !llvm.loop !28

223:                                              ; preds = %220, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  br label %229

224:                                              ; preds = %168
  br label %225

225:                                              ; preds = %224
  store i8 0, ptr %26, align 1, !tbaa !11
  br label %156, !llvm.loop !29

226:                                              ; preds = %159
  br label %227

227:                                              ; preds = %226, %154, %116, %78
  br label %228

228:                                              ; preds = %227
  store i8 0, ptr %19, align 1, !tbaa !11
  br label %65, !llvm.loop !30

229:                                              ; preds = %223, %131, %93, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %289

230:                                              ; preds = %68
  br label %231

231:                                              ; preds = %230
  store i8 0, ptr %19, align 1, !tbaa !11
  br label %49, !llvm.loop !31

232:                                              ; preds = %52
  %233 = load ptr, ptr %17, align 8, !tbaa !5
  %234 = icmp ne ptr %233, null
  br i1 %234, label %235, label %271

235:                                              ; preds = %232
  %236 = load ptr, ptr %18, align 8, !tbaa !5
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %239

238:                                              ; preds = %235
  br label %241

239:                                              ; preds = %235
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 164, ptr noundef @__PRETTY_FUNCTION__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE) #9
  unreachable

240:                                              ; No predecessors!
  br label %241

241:                                              ; preds = %240, %238
  br label %242

242:                                              ; preds = %241
  %243 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %244 unwind label %258

244:                                              ; preds = %242
  br i1 %243, label %245, label %262

245:                                              ; preds = %244
  %246 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !32
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %246, ptr noundef @__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE)
          to label %248 unwind label %258

248:                                              ; preds = %245
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef @.str.8)
          to label %250 unwind label %258

250:                                              ; preds = %248
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef nonnull align 8 dereferenceable(8) %251)
          to label %253 unwind label %258

253:                                              ; preds = %250
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef @_ZSt3decRSt8ios_base)
          to label %255 unwind label %258

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %258

257:                                              ; preds = %255
  br label %262

258:                                              ; preds = %282, %280, %278, %275, %272, %264, %255, %253, %250, %248, %245, %242
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %15, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %16, align 4
  br label %289

262:                                              ; preds = %257, %244
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %17, align 8, !tbaa !5
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = load ptr, ptr %18, align 8, !tbaa !5
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(192) %265, ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef nonnull align 8 dereferenceable(8) %267, ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef nonnull align 8 dereferenceable(32) %269)
          to label %270 unwind label %258

270:                                              ; preds = %264
  br label %288

271:                                              ; preds = %232
  br label %272

272:                                              ; preds = %271
  %273 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %274 unwind label %258

274:                                              ; preds = %272
  br i1 %273, label %275, label %285

275:                                              ; preds = %274
  %276 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !32
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %276, ptr noundef @__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE)
          to label %278 unwind label %258

278:                                              ; preds = %275
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %277, ptr noundef @.str.9)
          to label %280 unwind label %258

280:                                              ; preds = %278
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef @_ZSt3decRSt8ios_base)
          to label %282 unwind label %258

282:                                              ; preds = %280
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %284 unwind label %258

284:                                              ; preds = %282
  br label %285

285:                                              ; preds = %284, %274
  br label %286

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287, %270
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  ret void

289:                                              ; preds = %258, %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %290

290:                                              ; preds = %289, %57
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  br label %291

291:                                              ; preds = %290, %53
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %15, align 8
  %294 = load i32, ptr %16, align 4
  %295 = insertvalue { ptr, i32 } poison, ptr %293, 0
  %296 = insertvalue { ptr, i32 } %295, i32 %294, 1
  resume { ptr, i32 } %296
}

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 "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 nounwind }

!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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !19, i64 4}
!16 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !17, i64 0, !19, i64 4, !20, i64 8}
!17 = !{!"_ZTSN3HIR11LifetimeRefE", !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN3HIR10BorrowTypeE", !7, i64 0}
!20 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !19, i64 0}
!25 = !{!"_ZTSN3HIR8TypeData12Data_PointerE", !19, i64 0, !20, i64 8}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = !{!18, !18, i64 0}


; 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.77" }
%"class.std::function.77" = 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.96 = type { ptr }
%"struct.std::_Rb_tree_const_iterator.97" = type { ptr }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE = external hidden unnamed_addr constant [5 x i8], align 1
@__PRETTY_FUNCTION__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE = external hidden unnamed_addr constant [133 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR13InherentCache6Lowest7iterateERKNS_7TypeRefERSt8functionIFvS4_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3 align 2

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; 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 #2 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 #2 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 uwtable
define dso_local void @_ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.TraceLog, align 8
  %7 = alloca %"class.std::function.77", align 8
  %8 = alloca %class.anon.96, align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator.97", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.97", align 8
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr %12(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #8
  %14 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %15 = select i1 %14, ptr @__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store ptr %13, ptr %8, align 8, !tbaa !8
  call void @"_ZNSt8functionIFvRSoEEC2IZNK3HIR13InherentCache5Inner4findERK4SpanRKNS4_7TypeRefERKNS4_19ResolvePlaceholdersERS_IFvSC_RKNS4_8TypeImplEEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef %15, ptr noundef nonnull %7)
          to label %16 unwind label %17

16:                                               ; preds = %5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  invoke void @_ZNK3HIR13InherentCache6Lowest7iterateERKNS_7TypeRefERSt8functionIFvS4_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %.lr.ph unwind label %19

.loopexit82:                                      ; preds = %..loopexit_crit_edge, %..loopexit75_crit_edge, %63
  %.154.lcssa = phi ptr [ %41, %..loopexit_crit_edge ], [ %45, %..loopexit75_crit_edge ], [ %.861, %63 ]
  %.148.lcssa = phi ptr [ %.4, %..loopexit_crit_edge ], [ %.7, %..loopexit75_crit_edge ], [ %.10, %63 ]
  %.not = icmp eq ptr %.148.lcssa, null
  br i1 %.not, label %.loopexit82.thread, label %64

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

19:                                               ; preds = %16
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %95

.lr.ph:                                           ; preds = %16
  %21 = getelementptr inbounds i8, ptr %0, i64 144
  %22 = getelementptr inbounds i8, ptr %0, i64 136
  %23 = getelementptr inbounds i8, ptr %0, i64 128
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  %25 = getelementptr inbounds i8, ptr %0, i64 104
  %26 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %27 = call noundef i32 @_ZNK3HIR8TypeData3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %26)
  switch i32 %27, label %.loopexit82.thread [
    i32 0, label %37
    i32 11, label %.preheader
    i32 12, label %.preheader78
    i32 4, label %.preheader80
  ]

.preheader80:                                     ; preds = %.lr.ph
  %28 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %26)
  %29 = call noundef zeroext i1 @_ZNK3HIR4Path4Data10is_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %28)
  br i1 %29, label %46, label %.loopexit82.thread

.preheader78:                                     ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %0, i64 120
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %26)
  %32 = load i32, ptr %31, align 8, !tbaa !11
  switch i32 %32, label %..loopexit75_crit_edge [
    i32 0, label %..loopexit75_crit_edge.sink.split
    i32 1, label %42
    i32 2, label %43
  ]

.preheader:                                       ; preds = %.lr.ph
  %33 = getelementptr inbounds i8, ptr %0, i64 96
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %26)
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !15
  switch i32 %36, label %..loopexit_crit_edge [
    i32 0, label %..loopexit_crit_edge.sink.split
    i32 1, label %38
    i32 2, label %39
  ]

37:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 125, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE) #9
  unreachable

38:                                               ; preds = %.preheader
  br label %..loopexit_crit_edge.sink.split

39:                                               ; preds = %.preheader
  br label %..loopexit_crit_edge.sink.split

..loopexit_crit_edge.sink.split:                  ; preds = %.preheader, %39, %38
  %.sink = phi ptr [ %25, %38 ], [ %24, %39 ], [ %33, %.preheader ]
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %.sink) #8
  br label %..loopexit_crit_edge

..loopexit_crit_edge:                             ; preds = %..loopexit_crit_edge.sink.split, %.preheader
  %.4 = phi ptr [ null, %.preheader ], [ %40, %..loopexit_crit_edge.sink.split ]
  %41 = getelementptr inbounds i8, ptr %34, i64 8
  br label %.loopexit82

42:                                               ; preds = %.preheader78
  br label %..loopexit75_crit_edge.sink.split

43:                                               ; preds = %.preheader78
  br label %..loopexit75_crit_edge.sink.split

..loopexit75_crit_edge.sink.split:                ; preds = %.preheader78, %43, %42
  %.sink247 = phi ptr [ %23, %42 ], [ %22, %43 ], [ %30, %.preheader78 ]
  %44 = call noundef ptr @_ZNKSt10unique_ptrIN3HIR13InherentCache5InnerESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %.sink247) #8
  br label %..loopexit75_crit_edge

..loopexit75_crit_edge:                           ; preds = %..loopexit75_crit_edge.sink.split, %.preheader78
  %.7 = phi ptr [ null, %.preheader78 ], [ %44, %..loopexit75_crit_edge.sink.split ]
  %45 = getelementptr inbounds i8, ptr %31, i64 8
  br label %.loopexit82

46:                                               ; preds = %.preheader80
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %28)
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %50 unwind label %.split.split

50:                                               ; preds = %46
  %.not70 = icmp eq i64 %49, 0
  br i1 %.not70, label %.loopexit82.thread, label %51

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %52 = invoke ptr @_ZNKSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %53 unwind label %.split108.split

53:                                               ; preds = %51
  store ptr %52, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %54 = call ptr @_ZNKSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  store ptr %54, ptr %10, align 8
  %55 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN3HIR10SimplePathENS1_13InherentCache5InnerEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br i1 %55, label %56, label %63

56:                                               ; preds = %53
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEE2atEm(ptr noundef nonnull align 8 dereferenceable(8) %48, i64 noundef 0)
          to label %58 unwind label %.split108.split

58:                                               ; preds = %56
  %59 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN3HIR10SimplePathENS1_13InherentCache5InnerEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  br label %63

.split.split:                                     ; preds = %46
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %95

.split108.split:                                  ; preds = %56, %51
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %95

63:                                               ; preds = %58, %53
  %.861 = phi ptr [ %57, %58 ], [ null, %53 ]
  %.10 = phi ptr [ %60, %58 ], [ null, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %.loopexit82

64:                                               ; preds = %.loopexit82
  %.not69 = icmp eq ptr %.154.lcssa, null
  br i1 %.not69, label %65, label %66

65:                                               ; preds = %64
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 164, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE) #9
  unreachable

66:                                               ; preds = %64
  %67 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %68 unwind label %80

68:                                               ; preds = %66
  br i1 %67, label %69, label %82

69:                                               ; preds = %68
  %70 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !19
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %70, ptr noundef nonnull @__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE)
          to label %72 unwind label %80

72:                                               ; preds = %69
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.8)
          to label %74 unwind label %80

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %.154.lcssa)
          to label %76 unwind label %80

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %78 unwind label %80

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %82 unwind label %80

80:                                               ; preds = %92, %90, %88, %85, %.loopexit82.thread, %82, %78, %76, %74, %72, %69, %66
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %95

82:                                               ; preds = %78, %68
  invoke void @_ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE(ptr noundef nonnull align 8 dereferenceable(192) %.148.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %.154.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %94 unwind label %80

.loopexit82.thread:                               ; preds = %50, %.preheader80, %.lr.ph, %.loopexit82
  %83 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %84 unwind label %80

84:                                               ; preds = %.loopexit82.thread
  br i1 %83, label %85, label %94

85:                                               ; preds = %84
  %86 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !19
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %86, ptr noundef nonnull @__func__._ZNK3HIR13InherentCache5Inner4findERK4SpanRKNS_7TypeRefERKNS_19ResolvePlaceholdersERSt8functionIFvS7_RKNS_8TypeImplEEE)
          to label %88 unwind label %80

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @.str.9)
          to label %90 unwind label %80

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %92 unwind label %80

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %94 unwind label %80

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

95:                                               ; preds = %80, %.split108.split, %.split.split, %19
  %.pn.pn.pn = phi { ptr, i32 } [ %20, %19 ], [ %81, %80 ], [ %62, %.split108.split ], [ %61, %.split.split ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  br label %96

96:                                               ; preds = %95, %17
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %95 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) unnamed_addr #5

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 "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 nounwind }

!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 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3HIR8TypeData12Data_PointerE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN3HIR10BorrowTypeE", !10, i64 0}
!14 = !{!"_ZTSN3HIR7TypeRefE", !9, i64 0}
!15 = !{!16, !13, i64 4}
!16 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !17, i64 0, !13, i64 4, !14, i64 8}
!17 = !{!"_ZTSN3HIR11LifetimeRefE", !18, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = !{!18, !18, i64 0}


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