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

%"struct.std::_Rb_tree_const_iterator.100" = type { ptr }
%"class.HIR::TypeImpl" = type { %"class.HIR::GenericParams", %"class.HIR::TypeRef", %"class.std::map", %"class.std::map.18", %"struct.HIR::SimplePath" }
%"class.HIR::GenericParams" = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Function>>, std::_Select1st<std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Function>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Function>>, std::_Select1st<std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Function>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.18" = type { %"class.std::_Rb_tree.19" }
%"class.std::_Rb_tree.19" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Constant>>, std::_Select1st<std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Constant>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Constant>>, std::_Select1st<std::pair<const RcString, HIR::TypeImpl::VisImplEnt<HIR::Constant>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.std::pair.101" = type { %class.RcString, %"struct.HIR::TypeImpl::VisImplEnt" }
%class.RcString = type { ptr }
%"struct.HIR::TypeImpl::VisImplEnt" = type { %"class.HIR::Publicity", i8, %"class.HIR::Function" }
%"class.HIR::Publicity" = type { %"class.std::shared_ptr.103" }
%"class.std::shared_ptr.103" = type { %"class.std::__shared_ptr.104" }
%"class.std::__shared_ptr.104" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.HIR::Function" = type { i8, %"struct.HIR::Linkage", i32, %"class.HIR::TypeRef", %class.RcString, i8, i8, %"class.HIR::GenericParams", %"class.std::vector.110", i8, %"class.HIR::TypeRef", %"class.HIR::ExprPtr", %"struct.HIR::Function::Markings" }
%"struct.HIR::Linkage" = type { i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.109 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.109 = type { i64, [8 x i8] }
%"class.std::vector.110" = type { %"struct.std::_Vector_base.111" }
%"struct.std::_Vector_base.111" = type { %"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<HIR::Pattern, HIR::TypeRef>, std::allocator<std::pair<HIR::Pattern, HIR::TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::ExprPtr" = type { %"class.HIR::ExprPtrInner", %"class.std::vector.72", %"class.std::vector.72", %"class.MIR::FunctionPointer", %"class.HIR::ExprStatePtr" }
%"class.HIR::ExprPtrInner" = type { ptr }
%"class.std::vector.72" = type { %"struct.std::_Vector_base.73" }
%"struct.std::_Vector_base.73" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::FunctionPointer" = type { ptr }
%"class.HIR::ExprStatePtr" = type { ptr }
%"struct.HIR::Function::Markings" = type { %"class.std::vector.115", i8, i32 }
%"class.std::vector.115" = type { %"struct.std::_Vector_base.116" }
%"struct.std::_Vector_base.116" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::InherentCache" = type { %"class.std::map.120" }
%"class.std::map.120" = type { %"class.std::_Rb_tree.121" }
%"class.std::_Rb_tree.121" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::InherentCache::Inner>, std::_Select1st<std::pair<const RcString, HIR::InherentCache::Inner>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::InherentCache::Inner>, std::_Select1st<std::pair<const RcString, HIR::InherentCache::Inner>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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" }
%"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" }

@g_debug_indent_level = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@__FUNCTION__._ZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathE = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR13InherentCache5Inner6insertERK4SpanRKNS_7TypeRefERKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(208)) #0 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() #2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #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) #0 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)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.100", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.100", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.HIR::TypeImpl", ptr %16, i32 0, i32 2
  store ptr %17, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = call ptr @_ZNKSt3mapI8RcStringN3HIR8TypeImpl10VisImplEntINS1_8FunctionEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
  %20 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.100", ptr %10, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = call ptr @_ZNKSt3mapI8RcStringN3HIR8TypeImpl10VisImplEntINS1_8FunctionEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #5
  %23 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.100", ptr %11, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  br label %24

24:                                               ; preds = %106, %4
  %25 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %108

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %28 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %28, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.std::pair.101", ptr %29, i32 0, i32 0
  store ptr %30, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.std::pair.101", ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds %"struct.HIR::TypeImpl::VisImplEnt", ptr %32, i32 0, i32 2
  store ptr %33, ptr %14, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %27
  %35 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %35, label %36, label %47

36:                                               ; preds = %34
  %37 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !9
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %37, ptr noundef @__FUNCTION__._ZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathE)
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @.str.6)
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.HIR::Function", ptr %42, i32 0, i32 3
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @_ZSt3decRSt8ios_base)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %47

47:                                               ; preds = %36, %34
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.HIR::Function", ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !11
  switch i32 %52, label %105 [
    i32 0, label %105
    i32 6, label %53
    i32 5, label %61
    i32 1, label %71
    i32 2, label %78
    i32 3, label %87
    i32 4, label %96
  ]

53:                                               ; preds = %49
  %54 = getelementptr inbounds %"class.HIR::InherentCache", ptr %15, i32 0, i32 0
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %54, ptr noundef nonnull align 8 dereferenceable(8) %55)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.HIR::Function", ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3HIR13InherentCache5Inner6insertERK4SpanRKNS_7TypeRefERKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(192) %56, ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(208) %60)
  br label %105

61:                                               ; preds = %49
  %62 = getelementptr inbounds %"class.HIR::InherentCache", ptr %15, i32 0, i32 0
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %62, ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %64, i32 0, i32 7
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %65, ptr noundef nonnull align 8 dereferenceable(8) %66)
  %68 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %68, ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(208) %70)
  br label %105

71:                                               ; preds = %49
  %72 = getelementptr inbounds %"class.HIR::InherentCache", ptr %15, i32 0, i32 0
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %72, ptr noundef nonnull align 8 dereferenceable(8) %73)
  %75 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %75, ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(208) %77)
  br label %105

78:                                               ; preds = %49
  %79 = getelementptr inbounds %"class.HIR::InherentCache", ptr %15, i32 0, i32 0
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %79, ptr noundef nonnull align 8 dereferenceable(8) %80)
  %82 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %81, i32 0, i32 3
  %83 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8) %82)
  %84 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %84, ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(208) %86)
  br label %105

87:                                               ; preds = %49
  %88 = getelementptr inbounds %"class.HIR::InherentCache", ptr %15, i32 0, i32 0
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %88, ptr noundef nonnull align 8 dereferenceable(8) %89)
  %91 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %90, i32 0, i32 2
  %92 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8) %91)
  %93 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %93, ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 8 dereferenceable(208) %95)
  br label %105

96:                                               ; preds = %49
  %97 = getelementptr inbounds %"class.HIR::InherentCache", ptr %15, i32 0, i32 0
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %97, ptr noundef nonnull align 8 dereferenceable(8) %98)
  %100 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %99, i32 0, i32 1
  %101 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8) %100)
  %102 = getelementptr inbounds %"struct.HIR::InherentCache::Inner", ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %102, ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 8 dereferenceable(208) %104)
  br label %105

105:                                              ; preds = %96, %87, %78, %71, %61, %53, %49, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %106

106:                                              ; preds = %105
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %24

108:                                              ; preds = %26
  ret void
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !19, i64 80}
!12 = !{!"_ZTSN3HIR8FunctionE", !13, i64 0, !14, i64 8, !19, i64 80, !20, i64 88, !21, i64 96, !13, i64 104, !13, i64 105, !22, i64 112, !39, i64 208, !13, i64 232, !20, i64 240, !43, i64 248, !51, i64 320}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN3HIR7LinkageE", !15, i64 0, !16, i64 8, !16, i64 40}
!15 = !{!"_ZTSN3HIR7Linkage4TypeE", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN3HIR8Function8ReceiverE", !7, i64 0}
!20 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!21 = !{!"_ZTS8RcString", !6, i64 0}
!22 = !{!"_ZTSN3HIR13GenericParamsE", !23, i64 0, !27, i64 24, !31, i64 48, !35, i64 72}
!23 = !{!"_ZTSSt6vectorIN3HIR12TypeParamDefESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN3HIR12TypeParamDefESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3HIR12TypeParamDefESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3HIR12TypeParamDefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN3HIR11LifetimeDefESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN3HIR11LifetimeDefESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN3HIR11LifetimeDefESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN3HIR11LifetimeDefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIN3HIR13ValueParamDefESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN3HIR13ValueParamDefESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN3HIR13ValueParamDefESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN3HIR13ValueParamDefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorIN3HIR12GenericBoundESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN3HIR12GenericBoundESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN3HIR12GenericBoundESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN3HIR12GenericBoundESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt6vectorISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSN3HIR7ExprPtrE", !44, i64 0, !45, i64 8, !45, i64 32, !49, i64 56, !50, i64 64}
!44 = !{!"_ZTSN3HIR12ExprPtrInnerE", !6, i64 0}
!45 = !{!"_ZTSSt6vectorIN3HIR7TypeRefESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_ZTSN3MIR15FunctionPointerE", !6, i64 0}
!50 = !{!"_ZTSN3HIR12ExprStatePtrE", !6, i64 0}
!51 = !{!"_ZTSN3HIR8Function8MarkingsE", !52, i64 0, !13, i64 24, !56, i64 28}
!52 = !{!"_ZTSSt6vectorIjSaIjEE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!56 = !{!"_ZTSN3HIR8Function8Markings6InlineE", !7, 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"

%"struct.std::_Rb_tree_const_iterator.100" = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@__FUNCTION__._ZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathE = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR13InherentCache5Inner6insertERK4SpanRKNS_7TypeRefERKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #0 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #2

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 #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #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 #0 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)) #3

; 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 #0 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)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %"struct.std::_Rb_tree_const_iterator.100", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator.100", align 8
  %7 = getelementptr inbounds i8, ptr %2, i64 104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %8 = tail call ptr @_ZNKSt3mapI8RcStringN3HIR8TypeImpl10VisImplEntINS1_8FunctionEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  store ptr %8, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %9 = tail call ptr @_ZNKSt3mapI8RcStringN3HIR8TypeImpl10VisImplEntINS1_8FunctionEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  store ptr %9, ptr %6, align 8
  %10 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %46, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret void

.lr.ph:                                           ; preds = %4, %46
  %11 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %12 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %12, label %13, label %22

13:                                               ; preds = %.lr.ph
  %14 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %14, ptr noundef nonnull @__FUNCTION__._ZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathE)
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.6)
  %18 = getelementptr inbounds i8, ptr %11, i64 120
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %22

22:                                               ; preds = %13, %.lr.ph
  %23 = getelementptr inbounds i8, ptr %11, i64 112
  %24 = load i32, ptr %23, align 8, !tbaa !9
  switch i32 %24, label %46 [
    i32 4, label %42
    i32 6, label %25
    i32 5, label %28
    i32 1, label %32
    i32 2, label %34
    i32 3, label %38
  ]

25:                                               ; preds = %22
  %26 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %27 = getelementptr inbounds i8, ptr %11, i64 120
  call void @_ZN3HIR13InherentCache5Inner6insertERK4SpanRKNS_7TypeRefERKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(192) %26, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(208) %2)
  br label %46

28:                                               ; preds = %22
  %29 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %30 = getelementptr inbounds i8, ptr %29, i64 144
  %31 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapIN3HIR10SimplePathENS0_13InherentCache5InnerESt4lessIS1_ESaISt4pairIKS1_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %31, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2)
  br label %46

32:                                               ; preds = %22
  %33 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %33, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2)
  br label %46

34:                                               ; preds = %22
  %35 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %36 = getelementptr inbounds i8, ptr %35, i64 112
  %37 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8) %36)
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %37, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2)
  br label %46

38:                                               ; preds = %22
  %39 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %40 = getelementptr inbounds i8, ptr %39, i64 104
  %41 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8) %40)
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %41, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2)
  br label %46

42:                                               ; preds = %22
  %43 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt3mapI8RcStringN3HIR13InherentCache5InnerESt4lessIS0_ESaISt4pairIKS0_S3_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %44 = getelementptr inbounds i8, ptr %43, i64 96
  %45 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8) %44)
  call void @_ZN3HIR13InherentCache6Lowest6insertERK4SpanRKNS_8TypeImplE(ptr noundef nonnull align 8 dereferenceable(96) %45, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(208) %2)
  br label %46

46:                                               ; preds = %42, %38, %34, %32, %28, %25, %22
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %48 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR8TypeImpl10VisImplEntINS3_8FunctionEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %48, label %.lr.ph, label %._crit_edge
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(192) ptr @_ZZN3HIR13InherentCache10insert_allERK4SpanRKNS_8TypeImplERKNS_10SimplePathEEN1H1gERSt10unique_ptrINS0_5InnerESt14default_deleteISC_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 80}
!10 = !{!"_ZTSN3HIR8FunctionE", !11, i64 0, !12, i64 8, !18, i64 80, !19, i64 88, !20, i64 96, !11, i64 104, !11, i64 105, !21, i64 112, !38, i64 208, !11, i64 232, !19, i64 240, !42, i64 248, !50, i64 320}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSN3HIR7LinkageE", !13, i64 0, !14, i64 8, !14, i64 40}
!13 = !{!"_ZTSN3HIR7Linkage4TypeE", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !17, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN3HIR8Function8ReceiverE", !7, i64 0}
!19 = !{!"_ZTSN3HIR7TypeRefE", !16, i64 0}
!20 = !{!"_ZTS8RcString", !16, i64 0}
!21 = !{!"_ZTSN3HIR13GenericParamsE", !22, i64 0, !26, i64 24, !30, i64 48, !34, i64 72}
!22 = !{!"_ZTSSt6vectorIN3HIR12TypeParamDefESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN3HIR12TypeParamDefESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN3HIR12TypeParamDefESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3HIR12TypeParamDefESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!26 = !{!"_ZTSSt6vectorIN3HIR11LifetimeDefESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN3HIR11LifetimeDefESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN3HIR11LifetimeDefESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN3HIR11LifetimeDefESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!30 = !{!"_ZTSSt6vectorIN3HIR13ValueParamDefESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN3HIR13ValueParamDefESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN3HIR13ValueParamDefESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN3HIR13ValueParamDefESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!34 = !{!"_ZTSSt6vectorIN3HIR12GenericBoundESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIN3HIR12GenericBoundESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN3HIR12GenericBoundESaIS1_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN3HIR12GenericBoundESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!38 = !{!"_ZTSSt6vectorISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3HIR7PatternENS1_7TypeRefEESaIS4_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!42 = !{!"_ZTSN3HIR7ExprPtrE", !43, i64 0, !44, i64 8, !44, i64 32, !48, i64 56, !49, i64 64}
!43 = !{!"_ZTSN3HIR12ExprPtrInnerE", !16, i64 0}
!44 = !{!"_ZTSSt6vectorIN3HIR7TypeRefESaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!48 = !{!"_ZTSN3MIR15FunctionPointerE", !16, i64 0}
!49 = !{!"_ZTSN3HIR12ExprStatePtrE", !16, i64 0}
!50 = !{!"_ZTSN3HIR8Function8MarkingsE", !51, i64 0, !11, i64 24, !55, i64 28}
!51 = !{!"_ZTSSt6vectorIjSaIjEE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!55 = !{!"_ZTSN3HIR8Function8Markings6InlineE", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass