; LLVM IR from thepowersgang/mrustc :: src/hir_typeck/helpers.ll (ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE)

; 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" }
%"class.std::function" = 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.625 = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.26, %class.ThinVector.27, %class.ThinVector.28 }
%class.ThinVector.26 = type { ptr }
%class.ThinVector.27 = type { ptr }
%class.ThinVector.28 = type { ptr }
%"class.std::function.444" = type { %"class.std::_Function_base", ptr }
%class.anon.626 = type { ptr }
%"class.std::function.221" = type { %"class.std::_Function_base", ptr }
%class.anon.627 = type { i8 }
%"class.__gnu_cxx::__normal_iterator.152" = type { ptr }
%class.TraitResolution = type { %struct.TraitResolveCommon, ptr, ptr, ptr, ptr, ptr, %"class.std::vector.216" }
%struct.TraitResolveCommon = type { ptr, ptr, ptr, %"class.std::map.205", %class.RangeVecMap, %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath", %"struct.HIR::SimplePath" }
%"class.std::map.205" = type { %"class.std::_Rb_tree.206" }
%"class.std::_Rb_tree.206" = type { %"struct.std::_Rb_tree<HIR::TypeRef, std::pair<const HIR::TypeRef, TraitResolveCommon::CachedEquality>, std::_Select1st<std::pair<const HIR::TypeRef, TraitResolveCommon::CachedEquality>>, std::less<HIR::TypeRef>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::TypeRef, std::pair<const HIR::TypeRef, TraitResolveCommon::CachedEquality>, std::_Select1st<std::pair<const HIR::TypeRef, TraitResolveCommon::CachedEquality>>, std::less<HIR::TypeRef>>::_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.RangeVecMap = type <{ %"class.std::vector.211", [8 x i8] }>
%"class.std::vector.211" = type { %"struct.std::_Vector_base.212" }
%"struct.std::_Vector_base.212" = type { %"struct.std::_Vector_base<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>, std::allocator<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>, std::allocator<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>, std::allocator<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>, std::allocator<std::unique_ptr<std::pair<std::pair<HIR::TypeRef, HIR::GenericPath>, TraitResolveCommon::CachedBound>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"class.std::vector.216" = type { %"struct.std::_Vector_base.217" }
%"struct.std::_Vector_base.217" = type { %"struct.std::_Vector_base<std::unique_ptr<HIR::TypeRef>, std::allocator<std::unique_ptr<HIR::TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<HIR::TypeRef>, std::allocator<std::unique_ptr<HIR::TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<HIR::TypeRef>, std::allocator<std::unique_ptr<HIR::TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<HIR::TypeRef>, std::allocator<std::unique_ptr<HIR::TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::TypeData::Data_Infer" = type { i32, i32 }
%"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_Array" = type { %"class.HIR::TypeRef", %"class.HIR::ArraySize" }
%"class.HIR::ArraySize" = type { i32, %"union.HIR::ArraySize::DataUnion" }
%"union.HIR::ArraySize::DataUnion" = type { %"class.HIR::ConstGeneric" }
%"class.HIR::ConstGeneric" = type { i32, %"union.HIR::ConstGeneric::DataUnion" }
%"union.HIR::ConstGeneric::DataUnion" = type { %"class.std::unique_ptr.16", [8 x i8] }
%"class.std::unique_ptr.16" = type { %"struct.std::__uniq_ptr_data.17" }
%"struct.std::__uniq_ptr_data.17" = type { %"class.std::__uniq_ptr_impl.18" }
%"class.std::__uniq_ptr_impl.18" = type { %"class.std::tuple.19" }
%"class.std::tuple.19" = type { %"struct.std::_Tuple_impl.20" }
%"struct.std::_Tuple_impl.20" = type { %"struct.std::_Head_base.23" }
%"struct.std::_Head_base.23" = type { ptr }

@g_debug_indent_level = external global i32, align 4
@.str.7 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@__func__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [90 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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)) #4 align 2

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR8TypeData10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(184)) #6 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)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184)) #6 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)) #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR8TypeData8as_ArrayEv(ptr noundef nonnull align 8 dereferenceable(184)) #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3HIR8TypeData11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(184)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(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(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZN3HIRaNERNS_7CompareERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %class.TraceLog, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon.625, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca %"struct.HIR::PathParams", align 8
  %20 = alloca %"class.std::function.444", align 8
  %21 = alloca %class.anon.626, align 8
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::function.221", align 8
  %27 = alloca %class.anon.627, align 1
  %28 = alloca i8, align 1
  %29 = alloca ptr, align 8
  %30 = alloca i8, align 1
  %31 = alloca ptr, align 8
  %32 = alloca i8, align 1
  %33 = alloca ptr, align 8
  %34 = alloca i8, align 1
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca i8, align 1
  %43 = alloca ptr, align 8
  %44 = alloca i8, align 1
  %45 = alloca ptr, align 8
  %46 = alloca i8, align 1
  %47 = alloca ptr, align 8
  %48 = alloca i8, align 1
  %49 = alloca ptr, align 8
  %50 = alloca i8, align 1
  %51 = 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
  %52 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #8
  %53 = call noundef zeroext i1 @_Z13debug_enabledv()
  %54 = zext i1 %53 to i64
  %55 = select i1 %53, ptr @__func__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %56 = getelementptr inbounds %class.anon.625, ptr %10, i32 0, i32 0
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %57, ptr %56, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef %55, ptr noundef %9)
          to label %58 unwind label %68

58:                                               ; preds = %3
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %59 = getelementptr inbounds %class.TraitResolution, ptr %52, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK16HMTypeInferrence8get_typeERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(49) %60, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %63 unwind label %72

63:                                               ; preds = %58
  store ptr %62, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 1, ptr %14, align 1, !tbaa !33
  br label %64

64:                                               ; preds = %514, %63
  %65 = load i8, ptr %14, align 1, !tbaa !33, !range !35, !noundef !36
  %66 = trunc i8 %65 to i1
  br i1 %66, label %76, label %67

67:                                               ; preds = %64
  store i32 2, ptr %15, align 4
  br label %515

68:                                               ; preds = %3
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %522

72:                                               ; preds = %517, %58
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  br label %521

76:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %77)
          to label %79 unwind label %84

79:                                               ; preds = %76
  store ptr %78, ptr %16, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %509, %79
  %81 = load i8, ptr %14, align 1, !tbaa !33, !range !35, !noundef !36
  %82 = trunc i8 %81 to i1
  br i1 %82, label %88, label %83

83:                                               ; preds = %80
  store i32 5, ptr %15, align 4
  br label %510

84:                                               ; preds = %104, %102, %99, %96, %93, %88, %76
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %11, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %12, align 4
  br label %512

88:                                               ; preds = %80
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = invoke noundef i32 @_ZNK3HIR8TypeData3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %89)
          to label %91 unwind label %84

91:                                               ; preds = %88
  switch i32 %90, label %93 [
    i32 0, label %92
    i32 1, label %135
    i32 5, label %183
    i32 3, label %222
    i32 11, label %254
    i32 12, label %287
    i32 10, label %314
    i32 9, label %368
    i32 13, label %395
    i32 14, label %422
    i32 15, label %449
    i32 8, label %476
  ]

92:                                               ; preds = %91
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.7, i32 noundef 4096, ptr noundef @__PRETTY_FUNCTION__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE) #9
  unreachable

93:                                               ; preds = %91
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %96 unwind label %84

96:                                               ; preds = %93
  %97 = invoke noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %95)
          to label %98 unwind label %84

98:                                               ; preds = %96
  br i1 %97, label %99, label %108

99:                                               ; preds = %98
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %100)
          to label %102 unwind label %84

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %101)
          to label %104 unwind label %84

104:                                              ; preds = %102
  %105 = invoke noundef zeroext i1 @_ZNK3HIR13TypeData_Path10is_closureEv(ptr noundef nonnull align 8 dereferenceable(112) %103)
          to label %106 unwind label %84

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

107:                                              ; preds = %106
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %510

108:                                              ; preds = %106, %98
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  store i8 0, ptr %17, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TraitResolveCommon, ptr %52, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %111 unwind label %120

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %113 = getelementptr inbounds %class.anon.626, ptr %21, i32 0, i32 0
  store ptr %17, ptr %113, align 8, !tbaa !5
  call void @"_ZNSt8functionIFb7ImplRefN3HIR7CompareEEEC2IZNK15TraitResolution13type_is_cloneERK4SpanRKNS1_7TypeRefEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %114 = invoke noundef zeroext i1 @_ZNK15TraitResolution16find_trait_implsERK4SpanRKN3HIR10SimplePathERKNS3_10PathParamsERKNS3_7TypeRefESt8functionIFb7ImplRefNS3_7CompareEEEb(ptr noundef nonnull align 8 dereferenceable(280) %52, ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef %20, i1 noundef zeroext false)
          to label %115 unwind label %124

115:                                              ; preds = %111
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  %116 = zext i1 %114 to i8
  store i8 %116, ptr %18, align 1, !tbaa !33
  %117 = load i8, ptr %18, align 1, !tbaa !33, !range !35, !noundef !36
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %129

119:                                              ; preds = %115
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %134

120:                                              ; preds = %108
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  br label %128

124:                                              ; preds = %111
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  br label %512

129:                                              ; preds = %115
  %130 = load i8, ptr %17, align 1, !tbaa !33, !range !35, !noundef !36
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %133

132:                                              ; preds = %129
  store i32 1, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %134

133:                                              ; preds = %129
  store i32 2, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %134

134:                                              ; preds = %133, %132, %119
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  br label %510

135:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  store i8 1, ptr %22, align 1, !tbaa !33
  br label %136

136:                                              ; preds = %179, %135
  %137 = load i8, ptr %22, align 1, !tbaa !33, !range !35, !noundef !36
  %138 = trunc i8 %137 to i1
  br i1 %138, label %140, label %139

139:                                              ; preds = %136
  store i32 9, ptr %15, align 4
  br label %180

140:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_InferEv(ptr noundef nonnull align 8 dereferenceable(184) %141)
          to label %143 unwind label %149

143:                                              ; preds = %140
  store ptr %142, ptr %23, align 8, !tbaa !5
  br label %144

144:                                              ; preds = %175, %143
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = load i8, ptr %22, align 1, !tbaa !33, !range !35, !noundef !36
  %147 = trunc i8 %146 to i1
  br i1 %147, label %153, label %148

148:                                              ; preds = %144
  store i32 12, ptr %15, align 4
  br label %176

149:                                              ; preds = %169, %167, %165, %162, %159, %140
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %11, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %12, 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 %512

153:                                              ; preds = %144
  %154 = load ptr, ptr %23, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.HIR::TypeData::Data_Infer", ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !37
  switch i32 %156, label %158 [
    i32 1, label %157
    i32 2, label %157
  ]

157:                                              ; preds = %153, %153
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %176

158:                                              ; preds = %153
  br label %159

159:                                              ; preds = %158
  %160 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %161 unwind label %149

161:                                              ; preds = %159
  br i1 %160, label %162, label %172

162:                                              ; preds = %161
  %163 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !41
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %163, ptr noundef @__func__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE)
          to label %165 unwind label %149

165:                                              ; preds = %162
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef @.str.168)
          to label %167 unwind label %149

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @_ZSt3decRSt8ios_base)
          to label %169 unwind label %149

169:                                              ; preds = %167
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %171 unwind label %149

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171, %161
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  store i32 1, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %176

175:                                              ; No predecessors!
  store i8 0, ptr %22, align 1, !tbaa !33
  br label %144, !llvm.loop !42

176:                                              ; preds = %174, %157, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %177 = load i32, ptr %15, align 4
  switch i32 %177, label %180 [
    i32 12, label %178
  ]

178:                                              ; preds = %176
  br label %179

179:                                              ; preds = %178
  store i8 0, ptr %22, align 1, !tbaa !33
  br label %136, !llvm.loop !44

180:                                              ; preds = %176, %139
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  %181 = load i32, ptr %15, align 4
  switch i32 %181, label %510 [
    i32 9, label %182
  ]

182:                                              ; preds = %180
  br label %508

183:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  store i8 1, ptr %24, align 1, !tbaa !33
  br label %184

184:                                              ; preds = %218, %183
  %185 = load i8, ptr %24, align 1, !tbaa !33, !range !35, !noundef !36
  %186 = trunc i8 %185 to i1
  br i1 %186, label %188, label %187

187:                                              ; preds = %184
  store i32 18, ptr %15, align 4
  br label %219

188:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR8TypeData10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(184) %189)
          to label %191 unwind label %197

191:                                              ; preds = %188
  store ptr %190, ptr %25, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %213, %191
  %193 = load ptr, ptr %25, align 8, !tbaa !5
  %194 = load i8, ptr %24, align 1, !tbaa !33, !range !35, !noundef !36
  %195 = trunc i8 %194 to i1
  br i1 %195, label %201, label %196

196:                                              ; preds = %192
  store i32 21, ptr %15, align 4
  br label %214

197:                                              ; preds = %188
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %11, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %12, align 4
  br label %216

201:                                              ; preds = %192
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.TraitResolveCommon, ptr %52, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  call void @"_ZNSt8functionIFbN3HIR7CompareERKNS0_7TypeRefERKNS0_11GenericPathERKN18TraitResolveCommon11CachedBoundEEEC2IZNK15TraitResolution13type_is_cloneERK4SpanS4_E3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  %205 = invoke noundef zeroext i1 @_ZNK15TraitResolution21iterate_bounds_traitsERK4SpanRKN3HIR7TypeRefERKNS3_10SimplePathESt8functionIFbNS3_7CompareES6_RKNS3_11GenericPathERKN18TraitResolveCommon11CachedBoundEEE(ptr noundef nonnull align 8 dereferenceable(280) %52, ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef %26)
          to label %206 unwind label %209

206:                                              ; preds = %201
  %207 = zext i1 %205 to i64
  %208 = select i1 %205, i32 0, i32 2
  store i32 %208, ptr %4, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  store i32 1, ptr %15, align 4
  br label %214

209:                                              ; preds = %201
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %11, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %216

213:                                              ; No predecessors!
  store i8 0, ptr %24, align 1, !tbaa !33
  br label %192, !llvm.loop !45

214:                                              ; preds = %206, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  %215 = load i32, ptr %15, align 4
  switch i32 %215, label %219 [
    i32 21, label %217
  ]

216:                                              ; preds = %209, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %512

217:                                              ; preds = %214
  br label %218

218:                                              ; preds = %217
  store i8 0, ptr %24, align 1, !tbaa !33
  br label %184, !llvm.loop !46

219:                                              ; preds = %214, %187
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  %220 = load i32, ptr %15, align 4
  switch i32 %220, label %510 [
    i32 18, label %221
  ]

221:                                              ; preds = %219
  br label %508

222:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  store i8 1, ptr %28, align 1, !tbaa !33
  br label %223

223:                                              ; preds = %250, %222
  %224 = load i8, ptr %28, align 1, !tbaa !33, !range !35, !noundef !36
  %225 = trunc i8 %224 to i1
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  store i32 24, ptr %15, align 4
  br label %251

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR8TypeData12as_PrimitiveEv(ptr noundef nonnull align 8 dereferenceable(184) %228)
          to label %230 unwind label %236

230:                                              ; preds = %227
  store ptr %229, ptr %29, align 8, !tbaa !5
  br label %231

231:                                              ; preds = %246, %230
  %232 = load ptr, ptr %29, align 8, !tbaa !5
  %233 = load i8, ptr %28, align 1, !tbaa !33, !range !35, !noundef !36
  %234 = trunc i8 %233 to i1
  br i1 %234, label %240, label %235

235:                                              ; preds = %231
  store i32 27, ptr %15, align 4
  br label %247

236:                                              ; preds = %227
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %11, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  br label %512

240:                                              ; preds = %231
  %241 = load ptr, ptr %29, align 8, !tbaa !5
  %242 = load i32, ptr %241, align 4, !tbaa !47
  %243 = icmp eq i32 %242, 16
  br i1 %243, label %244, label %245

244:                                              ; preds = %240
  store i32 2, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %247

245:                                              ; preds = %240
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %247

246:                                              ; No predecessors!
  store i8 0, ptr %28, align 1, !tbaa !33
  br label %231, !llvm.loop !49

247:                                              ; preds = %245, %244, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  %248 = load i32, ptr %15, align 4
  switch i32 %248, label %251 [
    i32 27, label %249
  ]

249:                                              ; preds = %247
  br label %250

250:                                              ; preds = %249
  store i8 0, ptr %28, align 1, !tbaa !33
  br label %223, !llvm.loop !50

251:                                              ; preds = %247, %226
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  %252 = load i32, ptr %15, align 4
  switch i32 %252, label %510 [
    i32 24, label %253
  ]

253:                                              ; preds = %251
  br label %508

254:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  store i8 1, ptr %30, align 1, !tbaa !33
  br label %255

255:                                              ; preds = %283, %254
  %256 = load i8, ptr %30, align 1, !tbaa !33, !range !35, !noundef !36
  %257 = trunc i8 %256 to i1
  br i1 %257, label %259, label %258

258:                                              ; preds = %255
  store i32 30, ptr %15, align 4
  br label %284

259:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %260)
          to label %262 unwind label %268

262:                                              ; preds = %259
  store ptr %261, ptr %31, align 8, !tbaa !5
  br label %263

263:                                              ; preds = %279, %262
  %264 = load ptr, ptr %31, align 8, !tbaa !5
  %265 = load i8, ptr %30, align 1, !tbaa !33, !range !35, !noundef !36
  %266 = trunc i8 %265 to i1
  br i1 %266, label %272, label %267

267:                                              ; preds = %263
  store i32 33, ptr %15, align 4
  br label %280

268:                                              ; preds = %259
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %11, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  br label %512

272:                                              ; preds = %263
  %273 = load ptr, ptr %31, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.HIR::TypeData::Data_Borrow", ptr %273, i32 0, i32 1
  %275 = load i32, ptr %274, align 4, !tbaa !51
  %276 = icmp eq i32 %275, 0
  %277 = zext i1 %276 to i64
  %278 = select i1 %276, i32 0, i32 2
  store i32 %278, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %280

279:                                              ; No predecessors!
  store i8 0, ptr %30, align 1, !tbaa !33
  br label %263, !llvm.loop !56

280:                                              ; preds = %272, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %281 = load i32, ptr %15, align 4
  switch i32 %281, label %284 [
    i32 33, label %282
  ]

282:                                              ; preds = %280
  br label %283

283:                                              ; preds = %282
  store i8 0, ptr %30, align 1, !tbaa !33
  br label %255, !llvm.loop !57

284:                                              ; preds = %280, %258
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  %285 = load i32, ptr %15, align 4
  switch i32 %285, label %510 [
    i32 30, label %286
  ]

286:                                              ; preds = %284
  br label %508

287:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #8
  store i8 1, ptr %32, align 1, !tbaa !33
  br label %288

288:                                              ; preds = %310, %287
  %289 = load i8, ptr %32, align 1, !tbaa !33, !range !35, !noundef !36
  %290 = trunc i8 %289 to i1
  br i1 %290, label %292, label %291

291:                                              ; preds = %288
  store i32 36, ptr %15, align 4
  br label %311

292:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %293 = load ptr, ptr %16, align 8, !tbaa !5
  %294 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %293)
          to label %295 unwind label %301

295:                                              ; preds = %292
  store ptr %294, ptr %33, align 8, !tbaa !5
  br label %296

296:                                              ; preds = %306, %295
  %297 = load ptr, ptr %33, align 8, !tbaa !5
  %298 = load i8, ptr %32, align 1, !tbaa !33, !range !35, !noundef !36
  %299 = trunc i8 %298 to i1
  br i1 %299, label %305, label %300

300:                                              ; preds = %296
  store i32 39, ptr %15, align 4
  br label %307

301:                                              ; preds = %292
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %11, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #8
  br label %512

305:                                              ; preds = %296
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %307

306:                                              ; No predecessors!
  store i8 0, ptr %32, align 1, !tbaa !33
  br label %296, !llvm.loop !58

307:                                              ; preds = %305, %300
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  %308 = load i32, ptr %15, align 4
  switch i32 %308, label %311 [
    i32 39, label %309
  ]

309:                                              ; preds = %307
  br label %310

310:                                              ; preds = %309
  store i8 0, ptr %32, align 1, !tbaa !33
  br label %288, !llvm.loop !59

311:                                              ; preds = %307, %291
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #8
  %312 = load i32, ptr %15, align 4
  switch i32 %312, label %510 [
    i32 36, label %313
  ]

313:                                              ; preds = %311
  br label %508

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

315:                                              ; preds = %364, %314
  %316 = load i8, ptr %34, align 1, !tbaa !33, !range !35, !noundef !36
  %317 = trunc i8 %316 to i1
  br i1 %317, label %319, label %318

318:                                              ; preds = %315
  store i32 42, ptr %15, align 4
  br label %365

319:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  %321 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR8TypeData8as_TupleEv(ptr noundef nonnull align 8 dereferenceable(184) %320)
          to label %322 unwind label %328

322:                                              ; preds = %319
  store ptr %321, ptr %35, align 8, !tbaa !5
  br label %323

323:                                              ; preds = %359, %322
  %324 = load ptr, ptr %35, align 8, !tbaa !5
  %325 = load i8, ptr %34, align 1, !tbaa !33, !range !35, !noundef !36
  %326 = trunc i8 %325 to i1
  br i1 %326, label %332, label %327

327:                                              ; preds = %323
  store i32 45, ptr %15, align 4
  br label %360

328:                                              ; preds = %319
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %11, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %12, align 4
  br label %362

332:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %333 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %333, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %334 = load ptr, ptr %37, align 8, !tbaa !5
  %335 = call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #8
  %336 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.152", ptr %38, i32 0, i32 0
  store ptr %335, ptr %336, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %337 = load ptr, ptr %37, align 8, !tbaa !5
  %338 = call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %337) #8
  %339 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.152", ptr %39, i32 0, i32 0
  store ptr %338, ptr %339, align 8
  br label %340

340:                                              ; preds = %351, %332
  %341 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  br i1 %341, label %343, label %342

342:                                              ; preds = %340
  store i32 48, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %357

343:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  store ptr %344, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %345 = load ptr, ptr %6, align 8, !tbaa !5
  %346 = load ptr, ptr %40, align 8, !tbaa !5
  %347 = invoke noundef i32 @_ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %52, ptr noundef nonnull align 8 dereferenceable(8) %345, ptr noundef nonnull align 8 dereferenceable(8) %346)
          to label %348 unwind label %353

348:                                              ; preds = %343
  store i32 %347, ptr %41, align 4, !tbaa !60
  %349 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3HIRaNERNS_7CompareERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %350 unwind label %353

350:                                              ; preds = %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %351

351:                                              ; preds = %350
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br label %340

353:                                              ; preds = %348, %343
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %11, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %362

357:                                              ; preds = %342
  %358 = load i32, ptr %36, align 4, !tbaa !60
  store i32 %358, ptr %4, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %360

359:                                              ; No predecessors!
  store i8 0, ptr %34, align 1, !tbaa !33
  br label %323, !llvm.loop !62

360:                                              ; preds = %357, %327
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  %361 = load i32, ptr %15, align 4
  switch i32 %361, label %365 [
    i32 45, label %363
  ]

362:                                              ; preds = %353, %328
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  br label %512

363:                                              ; preds = %360
  br label %364

364:                                              ; preds = %363
  store i8 0, ptr %34, align 1, !tbaa !33
  br label %315, !llvm.loop !63

365:                                              ; preds = %360, %318
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  %366 = load i32, ptr %15, align 4
  switch i32 %366, label %510 [
    i32 42, label %367
  ]

367:                                              ; preds = %365
  br label %508

368:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #8
  store i8 1, ptr %42, align 1, !tbaa !33
  br label %369

369:                                              ; preds = %391, %368
  %370 = load i8, ptr %42, align 1, !tbaa !33, !range !35, !noundef !36
  %371 = trunc i8 %370 to i1
  br i1 %371, label %373, label %372

372:                                              ; preds = %369
  store i32 50, ptr %15, align 4
  br label %392

373:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %374 = load ptr, ptr %16, align 8, !tbaa !5
  %375 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_SliceEv(ptr noundef nonnull align 8 dereferenceable(184) %374)
          to label %376 unwind label %382

376:                                              ; preds = %373
  store ptr %375, ptr %43, align 8, !tbaa !5
  br label %377

377:                                              ; preds = %387, %376
  %378 = load ptr, ptr %43, align 8, !tbaa !5
  %379 = load i8, ptr %42, align 1, !tbaa !33, !range !35, !noundef !36
  %380 = trunc i8 %379 to i1
  br i1 %380, label %386, label %381

381:                                              ; preds = %377
  store i32 53, ptr %15, align 4
  br label %388

382:                                              ; preds = %373
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %11, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #8
  br label %512

386:                                              ; preds = %377
  store i32 2, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %388

387:                                              ; No predecessors!
  store i8 0, ptr %42, align 1, !tbaa !33
  br label %377, !llvm.loop !64

388:                                              ; preds = %386, %381
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  %389 = load i32, ptr %15, align 4
  switch i32 %389, label %392 [
    i32 53, label %390
  ]

390:                                              ; preds = %388
  br label %391

391:                                              ; preds = %390
  store i8 0, ptr %42, align 1, !tbaa !33
  br label %369, !llvm.loop !65

392:                                              ; preds = %388, %372
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #8
  %393 = load i32, ptr %15, align 4
  switch i32 %393, label %510 [
    i32 50, label %394
  ]

394:                                              ; preds = %392
  br label %508

395:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #8
  store i8 1, ptr %44, align 1, !tbaa !33
  br label %396

396:                                              ; preds = %418, %395
  %397 = load i8, ptr %44, align 1, !tbaa !33, !range !35, !noundef !36
  %398 = trunc i8 %397 to i1
  br i1 %398, label %400, label %399

399:                                              ; preds = %396
  store i32 56, ptr %15, align 4
  br label %419

400:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %401 = load ptr, ptr %16, align 8, !tbaa !5
  %402 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData16as_NamedFunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %401)
          to label %403 unwind label %409

403:                                              ; preds = %400
  store ptr %402, ptr %45, align 8, !tbaa !5
  br label %404

404:                                              ; preds = %414, %403
  %405 = load ptr, ptr %45, align 8, !tbaa !5
  %406 = load i8, ptr %44, align 1, !tbaa !33, !range !35, !noundef !36
  %407 = trunc i8 %406 to i1
  br i1 %407, label %413, label %408

408:                                              ; preds = %404
  store i32 59, ptr %15, align 4
  br label %415

409:                                              ; preds = %400
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %11, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #8
  br label %512

413:                                              ; preds = %404
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %415

414:                                              ; No predecessors!
  store i8 0, ptr %44, align 1, !tbaa !33
  br label %404, !llvm.loop !66

415:                                              ; preds = %413, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  %416 = load i32, ptr %15, align 4
  switch i32 %416, label %419 [
    i32 59, label %417
  ]

417:                                              ; preds = %415
  br label %418

418:                                              ; preds = %417
  store i8 0, ptr %44, align 1, !tbaa !33
  br label %396, !llvm.loop !67

419:                                              ; preds = %415, %399
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #8
  %420 = load i32, ptr %15, align 4
  switch i32 %420, label %510 [
    i32 56, label %421
  ]

421:                                              ; preds = %419
  br label %508

422:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #8
  store i8 1, ptr %46, align 1, !tbaa !33
  br label %423

423:                                              ; preds = %445, %422
  %424 = load i8, ptr %46, align 1, !tbaa !33, !range !35, !noundef !36
  %425 = trunc i8 %424 to i1
  br i1 %425, label %427, label %426

426:                                              ; preds = %423
  store i32 62, ptr %15, align 4
  br label %446

427:                                              ; preds = %423
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %428 = load ptr, ptr %16, align 8, !tbaa !5
  %429 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3HIR8TypeData11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %428)
          to label %430 unwind label %436

430:                                              ; preds = %427
  store ptr %429, ptr %47, align 8, !tbaa !5
  br label %431

431:                                              ; preds = %441, %430
  %432 = load ptr, ptr %47, align 8, !tbaa !5
  %433 = load i8, ptr %46, align 1, !tbaa !33, !range !35, !noundef !36
  %434 = trunc i8 %433 to i1
  br i1 %434, label %440, label %435

435:                                              ; preds = %431
  store i32 65, ptr %15, align 4
  br label %442

436:                                              ; preds = %427
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %11, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #8
  br label %512

440:                                              ; preds = %431
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %442

441:                                              ; No predecessors!
  store i8 0, ptr %46, align 1, !tbaa !33
  br label %431, !llvm.loop !68

442:                                              ; preds = %440, %435
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  %443 = load i32, ptr %15, align 4
  switch i32 %443, label %446 [
    i32 65, label %444
  ]

444:                                              ; preds = %442
  br label %445

445:                                              ; preds = %444
  store i8 0, ptr %46, align 1, !tbaa !33
  br label %423, !llvm.loop !69

446:                                              ; preds = %442, %426
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #8
  %447 = load i32, ptr %15, align 4
  switch i32 %447, label %510 [
    i32 62, label %448
  ]

448:                                              ; preds = %446
  br label %508

449:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #8
  store i8 1, ptr %48, align 1, !tbaa !33
  br label %450

450:                                              ; preds = %472, %449
  %451 = load i8, ptr %48, align 1, !tbaa !33, !range !35, !noundef !36
  %452 = trunc i8 %451 to i1
  br i1 %452, label %454, label %453

453:                                              ; preds = %450
  store i32 68, ptr %15, align 4
  br label %473

454:                                              ; preds = %450
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %455 = load ptr, ptr %16, align 8, !tbaa !5
  %456 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData10as_ClosureEv(ptr noundef nonnull align 8 dereferenceable(184) %455)
          to label %457 unwind label %463

457:                                              ; preds = %454
  store ptr %456, ptr %49, align 8, !tbaa !5
  br label %458

458:                                              ; preds = %468, %457
  %459 = load ptr, ptr %49, align 8, !tbaa !5
  %460 = load i8, ptr %48, align 1, !tbaa !33, !range !35, !noundef !36
  %461 = trunc i8 %460 to i1
  br i1 %461, label %467, label %462

462:                                              ; preds = %458
  store i32 71, ptr %15, align 4
  br label %469

463:                                              ; preds = %454
  %464 = landingpad { ptr, i32 }
          cleanup
  %465 = extractvalue { ptr, i32 } %464, 0
  store ptr %465, ptr %11, align 8
  %466 = extractvalue { ptr, i32 } %464, 1
  store i32 %466, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #8
  br label %512

467:                                              ; preds = %458
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %469

468:                                              ; No predecessors!
  store i8 0, ptr %48, align 1, !tbaa !33
  br label %458, !llvm.loop !70

469:                                              ; preds = %467, %462
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  %470 = load i32, ptr %15, align 4
  switch i32 %470, label %473 [
    i32 71, label %471
  ]

471:                                              ; preds = %469
  br label %472

472:                                              ; preds = %471
  store i8 0, ptr %48, align 1, !tbaa !33
  br label %450, !llvm.loop !71

473:                                              ; preds = %469, %453
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #8
  %474 = load i32, ptr %15, align 4
  switch i32 %474, label %510 [
    i32 68, label %475
  ]

475:                                              ; preds = %473
  br label %508

476:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #8
  store i8 1, ptr %50, align 1, !tbaa !33
  br label %477

477:                                              ; preds = %504, %476
  %478 = load i8, ptr %50, align 1, !tbaa !33, !range !35, !noundef !36
  %479 = trunc i8 %478 to i1
  br i1 %479, label %481, label %480

480:                                              ; preds = %477
  store i32 74, ptr %15, align 4
  br label %505

481:                                              ; preds = %477
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %482 = load ptr, ptr %16, align 8, !tbaa !5
  %483 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR8TypeData8as_ArrayEv(ptr noundef nonnull align 8 dereferenceable(184) %482)
          to label %484 unwind label %490

484:                                              ; preds = %481
  store ptr %483, ptr %51, align 8, !tbaa !5
  br label %485

485:                                              ; preds = %500, %484
  %486 = load ptr, ptr %51, align 8, !tbaa !5
  %487 = load i8, ptr %50, align 1, !tbaa !33, !range !35, !noundef !36
  %488 = trunc i8 %487 to i1
  br i1 %488, label %494, label %489

489:                                              ; preds = %485
  store i32 77, ptr %15, align 4
  br label %501

490:                                              ; preds = %494, %481
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %11, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #8
  br label %512

494:                                              ; preds = %485
  %495 = load ptr, ptr %6, align 8, !tbaa !5
  %496 = load ptr, ptr %51, align 8, !tbaa !5
  %497 = getelementptr inbounds %"struct.HIR::TypeData::Data_Array", ptr %496, i32 0, i32 0
  %498 = invoke noundef i32 @_ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %52, ptr noundef nonnull align 8 dereferenceable(8) %495, ptr noundef nonnull align 8 dereferenceable(8) %497)
          to label %499 unwind label %490

499:                                              ; preds = %494
  store i32 %498, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %501

500:                                              ; No predecessors!
  store i8 0, ptr %50, align 1, !tbaa !33
  br label %485, !llvm.loop !72

501:                                              ; preds = %499, %489
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  %502 = load i32, ptr %15, align 4
  switch i32 %502, label %505 [
    i32 77, label %503
  ]

503:                                              ; preds = %501
  br label %504

504:                                              ; preds = %503
  store i8 0, ptr %50, align 1, !tbaa !33
  br label %477, !llvm.loop !73

505:                                              ; preds = %501, %480
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #8
  %506 = load i32, ptr %15, align 4
  switch i32 %506, label %510 [
    i32 74, label %507
  ]

507:                                              ; preds = %505
  br label %508

508:                                              ; preds = %507, %475, %448, %421, %394, %367, %313, %286, %253, %221, %182
  br label %509

509:                                              ; preds = %508
  store i8 0, ptr %14, align 1, !tbaa !33
  br label %80, !llvm.loop !74

510:                                              ; preds = %505, %473, %446, %419, %392, %365, %311, %284, %251, %219, %180, %134, %107, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %511 = load i32, ptr %15, align 4
  switch i32 %511, label %515 [
    i32 5, label %513
  ]

512:                                              ; preds = %490, %463, %436, %409, %382, %362, %301, %268, %236, %216, %149, %128, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  br label %521

513:                                              ; preds = %510
  br label %514

514:                                              ; preds = %513
  store i8 0, ptr %14, align 1, !tbaa !33
  br label %64, !llvm.loop !75

515:                                              ; preds = %510, %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  %516 = load i32, ptr %15, align 4
  switch i32 %516, label %519 [
    i32 2, label %517
  ]

517:                                              ; preds = %515
  %518 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.15, ptr %518, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %518, ptr @_ZTIPKc, ptr null) #10
          to label %528 unwind label %72

519:                                              ; preds = %515
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #8
  %520 = load i32, ptr %4, align 4
  ret i32 %520

521:                                              ; preds = %512, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  br label %522

522:                                              ; preds = %521, %68
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #8
  br label %523

523:                                              ; preds = %522
  %524 = load ptr, ptr %11, align 8
  %525 = load i32, ptr %12, align 4
  %526 = insertvalue { ptr, i32 } poison, ptr %524, 0
  %527 = insertvalue { ptr, i32 } %526, i32 %525, 1
  resume { ptr, i32 } %527

528:                                              ; preds = %517
  unreachable
}

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 224}
!10 = !{!"_ZTS15TraitResolution", !11, i64 0, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !29, i64 256}
!11 = !{!"_ZTS18TraitResolveCommon", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !21, i64 72, !27, i64 104, !27, i64 112, !27, i64 120, !27, i64 128, !27, i64 136, !27, i64 144, !27, i64 152, !27, i64 160, !27, i64 168, !27, i64 176, !27, i64 184, !27, i64 192, !27, i64 200, !27, i64 208}
!12 = !{!"_ZTSSt3mapIN3HIR7TypeRefEN18TraitResolveCommon14CachedEqualityESt4lessIS1_ESaISt4pairIKS1_S3_EEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIN3HIR7TypeRefESt4pairIKS1_N18TraitResolveCommon14CachedEqualityEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIN3HIR7TypeRefESt4pairIKS1_N18TraitResolveCommon14CachedEqualityEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN3HIR7TypeRefEEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIN3HIR7TypeRefEE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTS11RangeVecMapISt4pairIN3HIR7TypeRefENS1_11GenericPathEEN18TraitResolveCommon11CachedBoundENS5_14CachedBoundCmpEE", !22, i64 0, !26, i64 24}
!22 = !{!"_ZTSSt6vectorISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN18TraitResolveCommon14CachedBoundCmpE"}
!27 = !{!"_ZTSN3HIR10SimplePathE", !28, i64 0}
!28 = !{!"_ZTS10ThinVectorI8RcStringE", !6, i64 0}
!29 = !{!"_ZTSSt6vectorISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!34, !34, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!38, !40, i64 4}
!38 = !{!"_ZTSN3HIR8TypeData10Data_InferE", !39, i64 0, !40, i64 4}
!39 = !{!"int", !7, i64 0}
!40 = !{!"_ZTSN3HIR10InferClassE", !7, i64 0}
!41 = !{!39, !39, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = distinct !{!45, !43}
!46 = distinct !{!46, !43}
!47 = !{!48, !48, i64 0}
!48 = !{!"_ZTSN3HIR8CoreTypeE", !7, i64 0}
!49 = distinct !{!49, !43}
!50 = distinct !{!50, !43}
!51 = !{!52, !54, i64 4}
!52 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !53, i64 0, !54, i64 4, !55, i64 8}
!53 = !{!"_ZTSN3HIR11LifetimeRefE", !39, i64 0}
!54 = !{!"_ZTSN3HIR10BorrowTypeE", !7, i64 0}
!55 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!56 = distinct !{!56, !43}
!57 = distinct !{!57, !43}
!58 = distinct !{!58, !43}
!59 = distinct !{!59, !43}
!60 = !{!61, !61, i64 0}
!61 = !{!"_ZTSN3HIR7CompareE", !7, i64 0}
!62 = distinct !{!62, !43}
!63 = distinct !{!63, !43}
!64 = distinct !{!64, !43}
!65 = distinct !{!65, !43}
!66 = distinct !{!66, !43}
!67 = distinct !{!67, !43}
!68 = distinct !{!68, !43}
!69 = distinct !{!69, !43}
!70 = distinct !{!70, !43}
!71 = distinct !{!71, !43}
!72 = distinct !{!72, !43}
!73 = distinct !{!73, !43}
!74 = distinct !{!74, !43}
!75 = distinct !{!75, !43}


; 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" }
%"class.std::function" = 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.625 = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.26, %class.ThinVector.27, %class.ThinVector.28 }
%class.ThinVector.26 = type { ptr }
%class.ThinVector.27 = type { ptr }
%class.ThinVector.28 = type { ptr }
%"class.std::function.444" = type { %"class.std::_Function_base", ptr }
%class.anon.626 = type { ptr }
%"class.std::function.221" = type { %"class.std::_Function_base", ptr }
%class.anon.627 = type { i8 }
%"class.__gnu_cxx::__normal_iterator.152" = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.7 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@__func__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [90 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: 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 #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR8TypeData10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #6 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 #6 align 2

; 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 #6 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 #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR8TypeData8as_ArrayEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3HIR8TypeData11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(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(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZN3HIRaNERNS_7CompareERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.TraceLog, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %class.anon.625, align 8
  %7 = alloca i8, align 1
  %8 = alloca %"struct.HIR::PathParams", align 8
  %9 = alloca %"class.std::function.444", align 8
  %10 = alloca %class.anon.626, align 8
  %11 = alloca %"class.std::function.221", align 8
  %12 = alloca %class.anon.627, align 1
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  %17 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %18 = select i1 %17, ptr @__func__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE, ptr null
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %18, ptr noundef nonnull %5)
          to label %19 unwind label %23

19:                                               ; preds = %3
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %20 = getelementptr inbounds i8, ptr %0, i64 224
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK16HMTypeInferrence8get_typeERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(49) %21, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %27 unwind label %25

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

25:                                               ; preds = %19
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %119

27:                                               ; preds = %19
  %28 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %29 = call noundef i32 @_ZNK3HIR8TypeData3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  switch i32 %29, label %33 [
    i32 0, label %32
    i32 1, label %53
    i32 5, label %71
    i32 3, label %79
    i32 11, label %83
    i32 12, label %89
    i32 10, label %91
    i32 9, label %105
    i32 13, label %107
    i32 14, label %109
    i32 15, label %111
    i32 8, label %113
  ]

30:                                               ; preds = %36
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %119

32:                                               ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.7, i32 noundef 4096, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE) #9
  unreachable

33:                                               ; preds = %27
  %34 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %35 = call noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %34)
  br i1 %35, label %36, label %41

36:                                               ; preds = %33
  %37 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %38 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %37)
  %39 = invoke noundef zeroext i1 @_ZNK3HIR13TypeData_Path10is_closureEv(ptr noundef nonnull align 8 dereferenceable(112) %38)
          to label %40 unwind label %30

40:                                               ; preds = %36
  br i1 %39, label %118, label %41

41:                                               ; preds = %40, %33
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  store i8 0, ptr %7, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %42 unwind label %48

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %0, i64 112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store ptr %7, ptr %10, align 8, !tbaa !5
  call void @"_ZNSt8functionIFb7ImplRefN3HIR7CompareEEEC2IZNK15TraitResolution13type_is_cloneERK4SpanRKNS1_7TypeRefEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %44 = invoke noundef zeroext i1 @_ZNK15TraitResolution16find_trait_implsERK4SpanRKN3HIR10SimplePathERKNS3_10PathParamsERKNS3_7TypeRefESt8functionIFb7ImplRefNS3_7CompareEEEb(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %9, i1 noundef zeroext false)
          to label %45 unwind label %50

45:                                               ; preds = %42
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  %46 = load i8, ptr %7, align 1, !range !35
  %47 = trunc nuw i8 %46 to i1
  %. = select i1 %47, i32 1, i32 2
  %.2 = select i1 %44, i32 0, i32 %.
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %118

48:                                               ; preds = %41
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

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

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %119

53:                                               ; preds = %27
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_InferEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  %55 = getelementptr inbounds i8, ptr %54, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !36
  %.off = add i32 %56, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %118, label %59

57:                                               ; preds = %69, %67, %65, %62, %59
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %119

59:                                               ; preds = %53
  %60 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %61 unwind label %57

61:                                               ; preds = %59
  br i1 %60, label %62, label %118

62:                                               ; preds = %61
  %63 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !40
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %63, ptr noundef nonnull @__func__._ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE)
          to label %65 unwind label %57

65:                                               ; preds = %62
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.168)
          to label %67 unwind label %57

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %69 unwind label %57

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %118 unwind label %57

71:                                               ; preds = %27
  %72 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR8TypeData10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  %73 = getelementptr inbounds i8, ptr %0, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @"_ZNSt8functionIFbN3HIR7CompareERKNS0_7TypeRefERKNS0_11GenericPathERKN18TraitResolveCommon11CachedBoundEEEC2IZNK15TraitResolution13type_is_cloneERK4SpanS4_E3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  %74 = invoke noundef zeroext i1 @_ZNK15TraitResolution21iterate_bounds_traitsERK4SpanRKN3HIR7TypeRefERKNS3_10SimplePathESt8functionIFbNS3_7CompareES6_RKNS3_11GenericPathERKN18TraitResolveCommon11CachedBoundEEE(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull %11)
          to label %75 unwind label %77

75:                                               ; preds = %71
  %76 = select i1 %74, i32 0, i32 2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  br label %118

77:                                               ; preds = %71
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  br label %119

79:                                               ; preds = %27
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR8TypeData12as_PrimitiveEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  %81 = load i32, ptr %80, align 4, !tbaa !41
  %82 = icmp eq i32 %81, 16
  %.10 = select i1 %82, i32 2, i32 0
  br label %118

83:                                               ; preds = %27
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  %85 = getelementptr inbounds i8, ptr %84, i64 4
  %86 = load i32, ptr %85, align 4, !tbaa !43
  %87 = icmp eq i32 %86, 0
  %88 = select i1 %87, i32 0, i32 2
  br label %118

89:                                               ; preds = %27
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  br label %118

91:                                               ; preds = %27
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR8TypeData8as_TupleEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  store i32 0, ptr %13, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %93 = call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #8
  store ptr %93, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %94 = call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #8
  store ptr %94, ptr %15, align 8
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %95, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %99
  %.pre = load i32, ptr %13, align 4, !tbaa !48
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %91
  %96 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ 0, %91 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %118

.lr.ph:                                           ; preds = %91, %99
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  %98 = invoke noundef i32 @_ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %99 unwind label %103

99:                                               ; preds = %.lr.ph
  store i32 %98, ptr %16, align 4, !tbaa !48
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3HIRaNERNS_7CompareERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %102, label %.lr.ph, label %._crit_edge.loopexit

103:                                              ; preds = %.lr.ph
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %119

105:                                              ; preds = %27
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_SliceEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  br label %118

107:                                              ; preds = %27
  %108 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData16as_NamedFunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  br label %118

109:                                              ; preds = %27
  %110 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3HIR8TypeData11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  br label %118

111:                                              ; preds = %27
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData10as_ClosureEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  br label %118

113:                                              ; preds = %27
  %114 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR8TypeData8as_ArrayEv(ptr noundef nonnull align 8 dereferenceable(184) %28)
  %115 = invoke noundef i32 @_ZNK15TraitResolution13type_is_cloneERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %114)
          to label %118 unwind label %116

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

118:                                              ; preds = %53, %113, %61, %69, %40, %111, %109, %107, %105, %._crit_edge, %89, %83, %79, %75, %45
  %.37 = phi i32 [ %.2, %45 ], [ 0, %111 ], [ 0, %109 ], [ 0, %107 ], [ 2, %105 ], [ %96, %._crit_edge ], [ 0, %89 ], [ %88, %83 ], [ %.10, %79 ], [ %76, %75 ], [ 0, %40 ], [ 0, %53 ], [ 1, %69 ], [ 1, %61 ], [ %115, %113 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  ret i32 %.37

119:                                              ; preds = %30, %52, %57, %77, %103, %116, %25
  %.pn165 = phi { ptr, i32 } [ %26, %25 ], [ %.pn, %52 ], [ %31, %30 ], [ %117, %116 ], [ %104, %103 ], [ %78, %77 ], [ %58, %57 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  br label %120

120:                                              ; preds = %119, %23
  %.pn165.pn = phi { ptr, i32 } [ %.pn165, %119 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn165.pn
}

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #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, !6, i64 224}
!10 = !{!"_ZTS15TraitResolution", !11, i64 0, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !29, i64 256}
!11 = !{!"_ZTS18TraitResolveCommon", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !21, i64 72, !27, i64 104, !27, i64 112, !27, i64 120, !27, i64 128, !27, i64 136, !27, i64 144, !27, i64 152, !27, i64 160, !27, i64 168, !27, i64 176, !27, i64 184, !27, i64 192, !27, i64 200, !27, i64 208}
!12 = !{!"_ZTSSt3mapIN3HIR7TypeRefEN18TraitResolveCommon14CachedEqualityESt4lessIS1_ESaISt4pairIKS1_S3_EEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIN3HIR7TypeRefESt4pairIKS1_N18TraitResolveCommon14CachedEqualityEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIN3HIR7TypeRefESt4pairIKS1_N18TraitResolveCommon14CachedEqualityEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN3HIR7TypeRefEEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIN3HIR7TypeRefEE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTS11RangeVecMapISt4pairIN3HIR7TypeRefENS1_11GenericPathEEN18TraitResolveCommon11CachedBoundENS5_14CachedBoundCmpEE", !22, i64 0, !26, i64 24}
!22 = !{!"_ZTSSt6vectorISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN18TraitResolveCommon14CachedBoundCmpE"}
!27 = !{!"_ZTSN3HIR10SimplePathE", !28, i64 0}
!28 = !{!"_ZTS10ThinVectorI8RcStringE", !6, i64 0}
!29 = !{!"_ZTSSt6vectorISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!34, !34, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{!37, !39, i64 4}
!37 = !{!"_ZTSN3HIR8TypeData10Data_InferE", !38, i64 0, !39, i64 4}
!38 = !{!"int", !7, i64 0}
!39 = !{!"_ZTSN3HIR10InferClassE", !7, i64 0}
!40 = !{!38, !38, i64 0}
!41 = !{!42, !42, i64 0}
!42 = !{!"_ZTSN3HIR8CoreTypeE", !7, i64 0}
!43 = !{!44, !46, i64 4}
!44 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !45, i64 0, !46, i64 4, !47, i64 8}
!45 = !{!"_ZTSN3HIR11LifetimeRefE", !38, i64 0}
!46 = !{!"_ZTSN3HIR10BorrowTypeE", !7, i64 0}
!47 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!48 = !{!49, !49, i64 0}
!49 = !{!"_ZTSN3HIR7CompareE", !7, i64 0}


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