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

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

%"struct.HIR::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.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.622 = type { ptr }
%"class.std::function.221" = type { %"class.std::_Function_base", ptr }
%class.anon.623 = 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_Path" = type { %"class.HIR::Path", %"class.HIR::TypePathBinding", %"class.std::unique_ptr.29" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.29" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%class.RcString = type { ptr }
%"class.HIR::TypePathBinding" = type { i32, %"union.HIR::TypePathBinding::DataUnion" }
%"union.HIR::TypePathBinding::DataUnion" = type { ptr }
%"class.std::unique_ptr.29" = type { %"struct.std::__uniq_ptr_data.30" }
%"struct.std::__uniq_ptr_data.30" = type { %"class.std::__uniq_ptr_impl.31" }
%"class.std::__uniq_ptr_impl.31" = type { %"class.std::tuple.32" }
%"class.std::tuple.32" = type { %"struct.std::_Tuple_impl.33" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { 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 }
%"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
@__PRETTY_FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [89 x i8], align 1
@__FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [26 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

; 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 @_ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE(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 ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca %"struct.HIR::PathParams", align 8
  %15 = alloca %"class.std::function.444", align 8
  %16 = alloca %class.anon.622, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i8, align 1
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::function.221", align 8
  %24 = alloca %class.anon.623, align 1
  %25 = alloca i8, align 1
  %26 = alloca ptr, align 8
  %27 = alloca i8, align 1
  %28 = alloca ptr, align 8
  %29 = alloca i8, align 1
  %30 = alloca ptr, align 8
  %31 = alloca i8, align 1
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca i8, align 1
  %40 = alloca ptr, align 8
  %41 = alloca i8, align 1
  %42 = alloca ptr, align 8
  %43 = alloca i8, align 1
  %44 = alloca ptr, align 8
  %45 = alloca i8, align 1
  %46 = alloca ptr, align 8
  %47 = alloca i8, align 1
  %48 = 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
  %49 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %50 = getelementptr inbounds %class.TraitResolution, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK16HMTypeInferrence8get_typeERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(49) %51, ptr noundef nonnull align 8 dereferenceable(8) %52)
  store ptr %53, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 1, ptr %9, align 1, !tbaa !33
  br label %54

54:                                               ; preds = %411, %3
  %55 = load i8, ptr %9, align 1, !tbaa !33, !range !35, !noundef !36
  %56 = trunc i8 %55 to i1
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 2, ptr %10, align 4
  br label %412

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %59)
  store ptr %60, ptr %11, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %406, %58
  %62 = load i8, ptr %9, align 1, !tbaa !33, !range !35, !noundef !36
  %63 = trunc i8 %62 to i1
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  store i32 5, ptr %10, align 4
  br label %407

65:                                               ; preds = %61
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = call noundef i32 @_ZNK3HIR8TypeData3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %66)
  switch i32 %67, label %69 [
    i32 0, label %68
    i32 1, label %101
    i32 5, label %139
    i32 3, label %172
    i32 11, label %199
    i32 12, label %227
    i32 10, label %249
    i32 9, label %291
    i32 13, label %313
    i32 14, label %335
    i32 15, label %357
    i32 8, label %379
  ]

68:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.7, i32 noundef 4011, ptr noundef @__PRETTY_FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE) #8
  unreachable

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 0, ptr %12, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TraitResolveCommon, ptr %49, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %73 = getelementptr inbounds %class.anon.622, ptr %16, i32 0, i32 0
  store ptr %12, ptr %73, align 8, !tbaa !5
  call void @"_ZNSt8functionIFb7ImplRefN3HIR7CompareEEEC2IZNK15TraitResolution12type_is_copyERK4SpanRKNS1_7TypeRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %74 = invoke noundef zeroext i1 @_ZNK15TraitResolution16find_trait_implsERK4SpanRKN3HIR10SimplePathERKNS3_10PathParamsERKNS3_7TypeRefESt8functionIFb7ImplRefNS3_7CompareEEEb(ptr noundef nonnull align 8 dereferenceable(280) %49, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef %15, i1 noundef zeroext false)
          to label %75 unwind label %80

75:                                               ; preds = %69
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  %76 = zext i1 %74 to i8
  store i8 %76, ptr %13, align 1, !tbaa !33
  %77 = load i8, ptr %13, align 1, !tbaa !33, !range !35, !noundef !36
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %84

79:                                               ; preds = %75
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %100

80:                                               ; preds = %69
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %17, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %409

84:                                               ; preds = %75
  %85 = load i8, ptr %12, align 1, !tbaa !33, !range !35, !noundef !36
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  store i32 1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %100

88:                                               ; preds = %84
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %89)
  %91 = call noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %90)
  br i1 %91, label %92, label %99

92:                                               ; preds = %88
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %93)
  %95 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %94)
  %96 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %95, i32 0, i32 1
  %97 = call noundef zeroext i1 @_ZNK3HIR15TypePathBinding10is_UnboundEv(ptr noundef nonnull align 8 dereferenceable(16) %96)
  br i1 %97, label %98, label %99

98:                                               ; preds = %92
  store i32 1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %100

99:                                               ; preds = %92, %88
  store i32 2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %100

100:                                              ; preds = %99, %98, %87, %79
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %407

101:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 1, ptr %19, align 1, !tbaa !33
  br label %102

102:                                              ; preds = %135, %101
  %103 = load i8, ptr %19, align 1, !tbaa !33, !range !35, !noundef !36
  %104 = trunc i8 %103 to i1
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  store i32 9, ptr %10, align 4
  br label %136

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_InferEv(ptr noundef nonnull align 8 dereferenceable(184) %107)
  store ptr %108, ptr %20, align 8, !tbaa !5
  br label %109

109:                                              ; preds = %131, %106
  %110 = load ptr, ptr %20, align 8, !tbaa !5
  %111 = load i8, ptr %19, align 1, !tbaa !33, !range !35, !noundef !36
  %112 = trunc i8 %111 to i1
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 12, ptr %10, align 4
  br label %132

114:                                              ; preds = %109
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.HIR::TypeData::Data_Infer", ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !37
  switch i32 %117, label %119 [
    i32 1, label %118
    i32 2, label %118
  ]

118:                                              ; preds = %114, %114
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %132

119:                                              ; preds = %114
  br label %120

120:                                              ; preds = %119
  %121 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %121, label %122, label %128

122:                                              ; preds = %120
  %123 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !41
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %123, ptr noundef @__FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef @.str.167)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef @_ZSt3decRSt8ios_base)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %128

128:                                              ; preds = %122, %120
  br label %129

129:                                              ; preds = %128
  br label %130

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

131:                                              ; No predecessors!
  store i8 0, ptr %19, align 1, !tbaa !33
  br label %109, !llvm.loop !42

132:                                              ; preds = %130, %118, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %133 = load i32, ptr %10, align 4
  switch i32 %133, label %136 [
    i32 12, label %134
  ]

134:                                              ; preds = %132
  br label %135

135:                                              ; preds = %134
  store i8 0, ptr %19, align 1, !tbaa !33
  br label %102, !llvm.loop !44

136:                                              ; preds = %132, %105
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  %137 = load i32, ptr %10, align 4
  switch i32 %137, label %407 [
    i32 9, label %138
  ]

138:                                              ; preds = %136
  br label %405

139:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 1, ptr %21, align 1, !tbaa !33
  br label %140

140:                                              ; preds = %168, %139
  %141 = load i8, ptr %21, align 1, !tbaa !33, !range !35, !noundef !36
  %142 = trunc i8 %141 to i1
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 18, ptr %10, align 4
  br label %169

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR8TypeData10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(184) %145)
  store ptr %146, ptr %22, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %164, %144
  %148 = load ptr, ptr %22, align 8, !tbaa !5
  %149 = load i8, ptr %21, align 1, !tbaa !33, !range !35, !noundef !36
  %150 = trunc i8 %149 to i1
  br i1 %150, label %152, label %151

151:                                              ; preds = %147
  store i32 21, ptr %10, align 4
  br label %165

152:                                              ; preds = %147
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.TraitResolveCommon, ptr %49, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  call void @"_ZNSt8functionIFbN3HIR7CompareERKNS0_7TypeRefERKNS0_11GenericPathERKN18TraitResolveCommon11CachedBoundEEEC2IZNK15TraitResolution12type_is_copyERK4SpanS4_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 1 dereferenceable(1) %24) #7
  %156 = invoke noundef zeroext i1 @_ZNK15TraitResolution21iterate_bounds_traitsERK4SpanRKN3HIR7TypeRefERKNS3_10SimplePathESt8functionIFbNS3_7CompareES6_RKNS3_11GenericPathERKN18TraitResolveCommon11CachedBoundEEE(ptr noundef nonnull align 8 dereferenceable(280) %49, ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef %23)
          to label %157 unwind label %160

157:                                              ; preds = %152
  %158 = zext i1 %156 to i64
  %159 = select i1 %156, i32 0, i32 2
  store i32 %159, ptr %4, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  store i32 1, ptr %10, align 4
  br label %165

160:                                              ; preds = %152
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %17, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %409

164:                                              ; No predecessors!
  store i8 0, ptr %21, align 1, !tbaa !33
  br label %147, !llvm.loop !45

165:                                              ; preds = %157, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %166 = load i32, ptr %10, align 4
  switch i32 %166, label %169 [
    i32 21, label %167
  ]

167:                                              ; preds = %165
  br label %168

168:                                              ; preds = %167
  store i8 0, ptr %21, align 1, !tbaa !33
  br label %140, !llvm.loop !46

169:                                              ; preds = %165, %143
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  %170 = load i32, ptr %10, align 4
  switch i32 %170, label %407 [
    i32 18, label %171
  ]

171:                                              ; preds = %169
  br label %405

172:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  store i8 1, ptr %25, align 1, !tbaa !33
  br label %173

173:                                              ; preds = %195, %172
  %174 = load i8, ptr %25, align 1, !tbaa !33, !range !35, !noundef !36
  %175 = trunc i8 %174 to i1
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  store i32 24, ptr %10, align 4
  br label %196

177:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR8TypeData12as_PrimitiveEv(ptr noundef nonnull align 8 dereferenceable(184) %178)
  store ptr %179, ptr %26, align 8, !tbaa !5
  br label %180

180:                                              ; preds = %191, %177
  %181 = load ptr, ptr %26, align 8, !tbaa !5
  %182 = load i8, ptr %25, align 1, !tbaa !33, !range !35, !noundef !36
  %183 = trunc i8 %182 to i1
  br i1 %183, label %185, label %184

184:                                              ; preds = %180
  store i32 27, ptr %10, align 4
  br label %192

185:                                              ; preds = %180
  %186 = load ptr, ptr %26, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !47
  %188 = icmp eq i32 %187, 16
  br i1 %188, label %189, label %190

189:                                              ; preds = %185
  store i32 2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %192

190:                                              ; preds = %185
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %192

191:                                              ; No predecessors!
  store i8 0, ptr %25, align 1, !tbaa !33
  br label %180, !llvm.loop !49

192:                                              ; preds = %190, %189, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %193 = load i32, ptr %10, align 4
  switch i32 %193, label %196 [
    i32 27, label %194
  ]

194:                                              ; preds = %192
  br label %195

195:                                              ; preds = %194
  store i8 0, ptr %25, align 1, !tbaa !33
  br label %173, !llvm.loop !50

196:                                              ; preds = %192, %176
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  %197 = load i32, ptr %10, align 4
  switch i32 %197, label %407 [
    i32 24, label %198
  ]

198:                                              ; preds = %196
  br label %405

199:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  store i8 1, ptr %27, align 1, !tbaa !33
  br label %200

200:                                              ; preds = %223, %199
  %201 = load i8, ptr %27, align 1, !tbaa !33, !range !35, !noundef !36
  %202 = trunc i8 %201 to i1
  br i1 %202, label %204, label %203

203:                                              ; preds = %200
  store i32 30, ptr %10, align 4
  br label %224

204:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %205)
  store ptr %206, ptr %28, align 8, !tbaa !5
  br label %207

207:                                              ; preds = %219, %204
  %208 = load ptr, ptr %28, align 8, !tbaa !5
  %209 = load i8, ptr %27, align 1, !tbaa !33, !range !35, !noundef !36
  %210 = trunc i8 %209 to i1
  br i1 %210, label %212, label %211

211:                                              ; preds = %207
  store i32 33, ptr %10, align 4
  br label %220

212:                                              ; preds = %207
  %213 = load ptr, ptr %28, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.HIR::TypeData::Data_Borrow", ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !51
  %216 = icmp eq i32 %215, 0
  %217 = zext i1 %216 to i64
  %218 = select i1 %216, i32 0, i32 2
  store i32 %218, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %220

219:                                              ; No predecessors!
  store i8 0, ptr %27, align 1, !tbaa !33
  br label %207, !llvm.loop !56

220:                                              ; preds = %212, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  %221 = load i32, ptr %10, align 4
  switch i32 %221, label %224 [
    i32 33, label %222
  ]

222:                                              ; preds = %220
  br label %223

223:                                              ; preds = %222
  store i8 0, ptr %27, align 1, !tbaa !33
  br label %200, !llvm.loop !57

224:                                              ; preds = %220, %203
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  %225 = load i32, ptr %10, align 4
  switch i32 %225, label %407 [
    i32 30, label %226
  ]

226:                                              ; preds = %224
  br label %405

227:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  store i8 1, ptr %29, align 1, !tbaa !33
  br label %228

228:                                              ; preds = %245, %227
  %229 = load i8, ptr %29, align 1, !tbaa !33, !range !35, !noundef !36
  %230 = trunc i8 %229 to i1
  br i1 %230, label %232, label %231

231:                                              ; preds = %228
  store i32 36, ptr %10, align 4
  br label %246

232:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %233)
  store ptr %234, ptr %30, align 8, !tbaa !5
  br label %235

235:                                              ; preds = %241, %232
  %236 = load ptr, ptr %30, align 8, !tbaa !5
  %237 = load i8, ptr %29, align 1, !tbaa !33, !range !35, !noundef !36
  %238 = trunc i8 %237 to i1
  br i1 %238, label %240, label %239

239:                                              ; preds = %235
  store i32 39, ptr %10, align 4
  br label %242

240:                                              ; preds = %235
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %242

241:                                              ; No predecessors!
  store i8 0, ptr %29, align 1, !tbaa !33
  br label %235, !llvm.loop !58

242:                                              ; preds = %240, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  %243 = load i32, ptr %10, align 4
  switch i32 %243, label %246 [
    i32 39, label %244
  ]

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244
  store i8 0, ptr %29, align 1, !tbaa !33
  br label %228, !llvm.loop !59

246:                                              ; preds = %242, %231
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  %247 = load i32, ptr %10, align 4
  switch i32 %247, label %407 [
    i32 36, label %248
  ]

248:                                              ; preds = %246
  br label %405

249:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #7
  store i8 1, ptr %31, align 1, !tbaa !33
  br label %250

250:                                              ; preds = %287, %249
  %251 = load i8, ptr %31, align 1, !tbaa !33, !range !35, !noundef !36
  %252 = trunc i8 %251 to i1
  br i1 %252, label %254, label %253

253:                                              ; preds = %250
  store i32 42, ptr %10, align 4
  br label %288

254:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR8TypeData8as_TupleEv(ptr noundef nonnull align 8 dereferenceable(184) %255)
  store ptr %256, ptr %32, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %283, %254
  %258 = load ptr, ptr %32, align 8, !tbaa !5
  %259 = load i8, ptr %31, align 1, !tbaa !33, !range !35, !noundef !36
  %260 = trunc i8 %259 to i1
  br i1 %260, label %262, label %261

261:                                              ; preds = %257
  store i32 45, ptr %10, align 4
  br label %284

262:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %263 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %263, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %264 = load ptr, ptr %34, align 8, !tbaa !5
  %265 = call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %264) #7
  %266 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.152", ptr %35, i32 0, i32 0
  store ptr %265, ptr %266, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %267 = load ptr, ptr %34, align 8, !tbaa !5
  %268 = call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %267) #7
  %269 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.152", ptr %36, i32 0, i32 0
  store ptr %268, ptr %269, align 8
  br label %270

270:                                              ; preds = %279, %262
  %271 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  br i1 %271, label %273, label %272

272:                                              ; preds = %270
  store i32 48, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %281

273:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  store ptr %274, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = load ptr, ptr %37, align 8, !tbaa !5
  %277 = call noundef i32 @_ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %49, ptr noundef nonnull align 8 dereferenceable(8) %275, ptr noundef nonnull align 8 dereferenceable(8) %276)
  store i32 %277, ptr %38, align 4, !tbaa !60
  %278 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3HIRaNERNS_7CompareERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %38)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %279

279:                                              ; preds = %273
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %270

281:                                              ; preds = %272
  %282 = load i32, ptr %33, align 4, !tbaa !60
  store i32 %282, ptr %4, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %284

283:                                              ; No predecessors!
  store i8 0, ptr %31, align 1, !tbaa !33
  br label %257, !llvm.loop !62

284:                                              ; preds = %281, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  %285 = load i32, ptr %10, align 4
  switch i32 %285, label %288 [
    i32 45, label %286
  ]

286:                                              ; preds = %284
  br label %287

287:                                              ; preds = %286
  store i8 0, ptr %31, align 1, !tbaa !33
  br label %250, !llvm.loop !63

288:                                              ; preds = %284, %253
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #7
  %289 = load i32, ptr %10, align 4
  switch i32 %289, label %407 [
    i32 42, label %290
  ]

290:                                              ; preds = %288
  br label %405

291:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #7
  store i8 1, ptr %39, align 1, !tbaa !33
  br label %292

292:                                              ; preds = %309, %291
  %293 = load i8, ptr %39, align 1, !tbaa !33, !range !35, !noundef !36
  %294 = trunc i8 %293 to i1
  br i1 %294, label %296, label %295

295:                                              ; preds = %292
  store i32 50, ptr %10, align 4
  br label %310

296:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %297 = load ptr, ptr %11, align 8, !tbaa !5
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_SliceEv(ptr noundef nonnull align 8 dereferenceable(184) %297)
  store ptr %298, ptr %40, align 8, !tbaa !5
  br label %299

299:                                              ; preds = %305, %296
  %300 = load ptr, ptr %40, align 8, !tbaa !5
  %301 = load i8, ptr %39, align 1, !tbaa !33, !range !35, !noundef !36
  %302 = trunc i8 %301 to i1
  br i1 %302, label %304, label %303

303:                                              ; preds = %299
  store i32 53, ptr %10, align 4
  br label %306

304:                                              ; preds = %299
  store i32 2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %306

305:                                              ; No predecessors!
  store i8 0, ptr %39, align 1, !tbaa !33
  br label %299, !llvm.loop !64

306:                                              ; preds = %304, %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  %307 = load i32, ptr %10, align 4
  switch i32 %307, label %310 [
    i32 53, label %308
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308
  store i8 0, ptr %39, align 1, !tbaa !33
  br label %292, !llvm.loop !65

310:                                              ; preds = %306, %295
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  %311 = load i32, ptr %10, align 4
  switch i32 %311, label %407 [
    i32 50, label %312
  ]

312:                                              ; preds = %310
  br label %405

313:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #7
  store i8 1, ptr %41, align 1, !tbaa !33
  br label %314

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

317:                                              ; preds = %314
  store i32 56, ptr %10, align 4
  br label %332

318:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  %320 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData16as_NamedFunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %319)
  store ptr %320, ptr %42, align 8, !tbaa !5
  br label %321

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

325:                                              ; preds = %321
  store i32 59, ptr %10, align 4
  br label %328

326:                                              ; preds = %321
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %328

327:                                              ; No predecessors!
  store i8 0, ptr %41, align 1, !tbaa !33
  br label %321, !llvm.loop !66

328:                                              ; preds = %326, %325
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  %329 = load i32, ptr %10, align 4
  switch i32 %329, label %332 [
    i32 59, label %330
  ]

330:                                              ; preds = %328
  br label %331

331:                                              ; preds = %330
  store i8 0, ptr %41, align 1, !tbaa !33
  br label %314, !llvm.loop !67

332:                                              ; preds = %328, %317
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #7
  %333 = load i32, ptr %10, align 4
  switch i32 %333, label %407 [
    i32 56, label %334
  ]

334:                                              ; preds = %332
  br label %405

335:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #7
  store i8 1, ptr %43, align 1, !tbaa !33
  br label %336

336:                                              ; preds = %353, %335
  %337 = load i8, ptr %43, align 1, !tbaa !33, !range !35, !noundef !36
  %338 = trunc i8 %337 to i1
  br i1 %338, label %340, label %339

339:                                              ; preds = %336
  store i32 62, ptr %10, align 4
  br label %354

340:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %341 = load ptr, ptr %11, align 8, !tbaa !5
  %342 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3HIR8TypeData11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %341)
  store ptr %342, ptr %44, align 8, !tbaa !5
  br label %343

343:                                              ; preds = %349, %340
  %344 = load ptr, ptr %44, align 8, !tbaa !5
  %345 = load i8, ptr %43, align 1, !tbaa !33, !range !35, !noundef !36
  %346 = trunc i8 %345 to i1
  br i1 %346, label %348, label %347

347:                                              ; preds = %343
  store i32 65, ptr %10, align 4
  br label %350

348:                                              ; preds = %343
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %350

349:                                              ; No predecessors!
  store i8 0, ptr %43, align 1, !tbaa !33
  br label %343, !llvm.loop !68

350:                                              ; preds = %348, %347
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  %351 = load i32, ptr %10, align 4
  switch i32 %351, label %354 [
    i32 65, label %352
  ]

352:                                              ; preds = %350
  br label %353

353:                                              ; preds = %352
  store i8 0, ptr %43, align 1, !tbaa !33
  br label %336, !llvm.loop !69

354:                                              ; preds = %350, %339
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #7
  %355 = load i32, ptr %10, align 4
  switch i32 %355, label %407 [
    i32 62, label %356
  ]

356:                                              ; preds = %354
  br label %405

357:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #7
  store i8 1, ptr %45, align 1, !tbaa !33
  br label %358

358:                                              ; preds = %375, %357
  %359 = load i8, ptr %45, align 1, !tbaa !33, !range !35, !noundef !36
  %360 = trunc i8 %359 to i1
  br i1 %360, label %362, label %361

361:                                              ; preds = %358
  store i32 68, ptr %10, align 4
  br label %376

362:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %363 = load ptr, ptr %11, align 8, !tbaa !5
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData10as_ClosureEv(ptr noundef nonnull align 8 dereferenceable(184) %363)
  store ptr %364, ptr %46, align 8, !tbaa !5
  br label %365

365:                                              ; preds = %371, %362
  %366 = load ptr, ptr %46, align 8, !tbaa !5
  %367 = load i8, ptr %45, align 1, !tbaa !33, !range !35, !noundef !36
  %368 = trunc i8 %367 to i1
  br i1 %368, label %370, label %369

369:                                              ; preds = %365
  store i32 71, ptr %10, align 4
  br label %372

370:                                              ; preds = %365
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %372

371:                                              ; No predecessors!
  store i8 0, ptr %45, align 1, !tbaa !33
  br label %365, !llvm.loop !70

372:                                              ; preds = %370, %369
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  %373 = load i32, ptr %10, align 4
  switch i32 %373, label %376 [
    i32 71, label %374
  ]

374:                                              ; preds = %372
  br label %375

375:                                              ; preds = %374
  store i8 0, ptr %45, align 1, !tbaa !33
  br label %358, !llvm.loop !71

376:                                              ; preds = %372, %361
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #7
  %377 = load i32, ptr %10, align 4
  switch i32 %377, label %407 [
    i32 68, label %378
  ]

378:                                              ; preds = %376
  br label %405

379:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #7
  store i8 1, ptr %47, align 1, !tbaa !33
  br label %380

380:                                              ; preds = %401, %379
  %381 = load i8, ptr %47, align 1, !tbaa !33, !range !35, !noundef !36
  %382 = trunc i8 %381 to i1
  br i1 %382, label %384, label %383

383:                                              ; preds = %380
  store i32 74, ptr %10, align 4
  br label %402

384:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %385 = load ptr, ptr %11, align 8, !tbaa !5
  %386 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR8TypeData8as_ArrayEv(ptr noundef nonnull align 8 dereferenceable(184) %385)
  store ptr %386, ptr %48, align 8, !tbaa !5
  br label %387

387:                                              ; preds = %397, %384
  %388 = load ptr, ptr %48, align 8, !tbaa !5
  %389 = load i8, ptr %47, align 1, !tbaa !33, !range !35, !noundef !36
  %390 = trunc i8 %389 to i1
  br i1 %390, label %392, label %391

391:                                              ; preds = %387
  store i32 77, ptr %10, align 4
  br label %398

392:                                              ; preds = %387
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  %394 = load ptr, ptr %48, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.HIR::TypeData::Data_Array", ptr %394, i32 0, i32 0
  %396 = call noundef i32 @_ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %49, ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef nonnull align 8 dereferenceable(8) %395)
  store i32 %396, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %398

397:                                              ; No predecessors!
  store i8 0, ptr %47, align 1, !tbaa !33
  br label %387, !llvm.loop !72

398:                                              ; preds = %392, %391
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  %399 = load i32, ptr %10, align 4
  switch i32 %399, label %402 [
    i32 77, label %400
  ]

400:                                              ; preds = %398
  br label %401

401:                                              ; preds = %400
  store i8 0, ptr %47, align 1, !tbaa !33
  br label %380, !llvm.loop !73

402:                                              ; preds = %398, %383
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #7
  %403 = load i32, ptr %10, align 4
  switch i32 %403, label %407 [
    i32 74, label %404
  ]

404:                                              ; preds = %402
  br label %405

405:                                              ; preds = %404, %378, %356, %334, %312, %290, %248, %226, %198, %171, %138
  br label %406

406:                                              ; preds = %405
  store i8 0, ptr %9, align 1, !tbaa !33
  br label %61, !llvm.loop !74

407:                                              ; preds = %402, %376, %354, %332, %310, %288, %246, %224, %196, %169, %136, %100, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %408 = load i32, ptr %10, align 4
  switch i32 %408, label %412 [
    i32 5, label %410
  ]

409:                                              ; preds = %160, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %418

410:                                              ; preds = %407
  br label %411

411:                                              ; preds = %410
  store i8 0, ptr %9, align 1, !tbaa !33
  br label %54, !llvm.loop !75

412:                                              ; preds = %407, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  %413 = load i32, ptr %10, align 4
  switch i32 %413, label %416 [
    i32 2, label %414
  ]

414:                                              ; preds = %412
  %415 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.15, ptr %415, align 16, !tbaa !5
  call void @__cxa_throw(ptr %415, ptr @_ZTIPKc, ptr null) #9
  unreachable

416:                                              ; preds = %412
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %417 = load i32, ptr %4, align 4
  ret i32 %417

418:                                              ; preds = %409
  %419 = load ptr, ptr %17, align 8
  %420 = load i32, ptr %18, align 4
  %421 = insertvalue { ptr, i32 } poison, ptr %419, 0
  %422 = insertvalue { ptr, i32 } %421, i32 %420, 1
  resume { ptr, i32 } %422
}

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

; 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 @"_ZNSt8functionIFb7ImplRefN3HIR7CompareEEEC2IZNK15TraitResolution12type_is_copyERK4SpanRKNS1_7TypeRefEE3$_0vEEOT_"(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_11GenericPathERKN18TraitResolveCommon11CachedBoundEEEC2IZNK15TraitResolution12type_is_copyERK4SpanS4_E3$_1vEEOT_"(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 }
attributes #8 = { noreturn nounwind }
attributes #9 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !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"

%"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.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.622 = type { ptr }
%"class.std::function.221" = type { %"class.std::_Function_base", ptr }
%class.anon.623 = 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
@__PRETTY_FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [89 x i8], align 1
@__FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [26 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

; 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 @_ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE(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 i8, align 1
  %5 = alloca %"struct.HIR::PathParams", align 8
  %6 = alloca %"class.std::function.444", align 8
  %7 = alloca %class.anon.622, align 8
  %8 = alloca %"class.std::function.221", align 8
  %9 = alloca %class.anon.623, align 1
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.152", align 8
  %13 = alloca i32, align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 224
  br label %tailrecurse

tailrecurse:                                      ; preds = %90, %3
  %.tr158 = phi ptr [ %2, %3 ], [ %91, %90 ]
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK16HMTypeInferrence8get_typeERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(49) %15, ptr noundef nonnull align 8 dereferenceable(8) %.tr158)
  %17 = tail call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %18 = tail call noundef i32 @_ZNK3HIR8TypeData3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  switch i32 %18, label %20 [
    i32 0, label %19
    i32 1, label %39
    i32 5, label %51
    i32 3, label %59
    i32 11, label %63
    i32 12, label %69
    i32 10, label %71
    i32 9, label %82
    i32 13, label %84
    i32 14, label %86
    i32 15, label %88
    i32 8, label %90
  ]

19:                                               ; preds = %tailrecurse
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.7, i32 noundef 4011, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE) #7
  unreachable

20:                                               ; preds = %tailrecurse
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  store i8 0, ptr %4, align 1, !tbaa !32
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store ptr %4, ptr %7, align 8, !tbaa !34
  call void @"_ZNSt8functionIFb7ImplRefN3HIR7CompareEEEC2IZNK15TraitResolution12type_is_copyERK4SpanRKNS1_7TypeRefEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %22 = 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) %21, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %.tr158, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %23 unwind label %24

23:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br i1 %22, label %38, label %26

24:                                               ; preds = %20
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %92

26:                                               ; preds = %23
  %27 = load i8, ptr %4, align 1, !tbaa !32, !range !35, !noundef !36
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %38, label %29

29:                                               ; preds = %26
  %30 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %31 = call noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %30)
  br i1 %31, label %32, label %37

32:                                               ; preds = %29
  %33 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %34 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %33)
  %35 = getelementptr inbounds i8, ptr %34, i64 88
  %36 = call noundef zeroext i1 @_ZNK3HIR15TypePathBinding10is_UnboundEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
  br i1 %36, label %38, label %37

37:                                               ; preds = %32, %29
  br label %38

38:                                               ; preds = %32, %26, %23, %37
  %.2 = phi i32 [ 2, %37 ], [ 0, %23 ], [ 1, %26 ], [ 1, %32 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %93

39:                                               ; preds = %tailrecurse
  %40 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_InferEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  %41 = getelementptr inbounds i8, ptr %40, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !37
  %.off = add i32 %42, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %93, label %43

43:                                               ; preds = %39
  %44 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %44, label %45, label %93

45:                                               ; preds = %43
  %46 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !41
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %46, ptr noundef nonnull @__FUNCTION__._ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE)
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @.str.167)
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %93

51:                                               ; preds = %tailrecurse
  %52 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK3HIR8TypeData10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  %53 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @"_ZNSt8functionIFbN3HIR7CompareERKNS0_7TypeRefERKNS0_11GenericPathERKN18TraitResolveCommon11CachedBoundEEEC2IZNK15TraitResolution12type_is_copyERK4SpanS4_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  %54 = 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) %.tr158, ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull %8)
          to label %55 unwind label %57

55:                                               ; preds = %51
  %56 = select i1 %54, i32 0, i32 2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %93

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %92

59:                                               ; preds = %tailrecurse
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3HIR8TypeData12as_PrimitiveEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  %61 = load i32, ptr %60, align 4, !tbaa !42
  %62 = icmp eq i32 %61, 16
  %.10 = select i1 %62, i32 2, i32 0
  br label %93

63:                                               ; preds = %tailrecurse
  %64 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  %65 = getelementptr inbounds i8, ptr %64, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !44
  %67 = icmp eq i32 %66, 0
  %68 = select i1 %67, i32 0, i32 2
  br label %93

69:                                               ; preds = %tailrecurse
  %70 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData10as_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  br label %93

71:                                               ; preds = %tailrecurse
  %72 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR8TypeData8as_TupleEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 0, ptr %10, align 4, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %73 = tail call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #8
  store ptr %73, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %74 = tail call ptr @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #8
  store ptr %74, ptr %12, align 8
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %75, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %10, align 4, !tbaa !49
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %71
  %76 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ 0, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %93

.lr.ph:                                           ; preds = %71, %.lr.ph
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %78 = call noundef i32 @_ZNK15TraitResolution12type_is_copyERK4SpanRKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %77)
  store i32 %78, ptr %13, align 4, !tbaa !49
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3HIRaNERNS_7CompareERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR7TypeRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %81, label %.lr.ph, label %._crit_edge.loopexit

82:                                               ; preds = %tailrecurse
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData8as_SliceEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  br label %93

84:                                               ; preds = %tailrecurse
  %85 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData16as_NamedFunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  br label %93

86:                                               ; preds = %tailrecurse
  %87 = tail call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3HIR8TypeData11as_FunctionEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  br label %93

88:                                               ; preds = %tailrecurse
  %89 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR8TypeData10as_ClosureEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  br label %93

90:                                               ; preds = %tailrecurse
  %91 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3HIR8TypeData8as_ArrayEv(ptr noundef nonnull align 8 dereferenceable(184) %17)
  br label %tailrecurse

92:                                               ; preds = %57, %24
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %58, %57 ]
  resume { ptr, i32 } %.pn

93:                                               ; preds = %39, %43, %45, %88, %86, %84, %82, %._crit_edge, %69, %63, %59, %55, %38
  %.37 = phi i32 [ %.2, %38 ], [ 0, %88 ], [ 0, %86 ], [ 0, %84 ], [ 2, %82 ], [ %76, %._crit_edge ], [ 0, %69 ], [ %68, %63 ], [ %.10, %59 ], [ %56, %55 ], [ 0, %39 ], [ 1, %45 ], [ 1, %43 ]
  ret i32 %.37
}

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

; 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 @"_ZNSt8functionIFb7ImplRefN3HIR7CompareEEEC2IZNK15TraitResolution12type_is_copyERK4SpanRKNS1_7TypeRefEE3$_0vEEOT_"(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_11GenericPathERKN18TraitResolveCommon11CachedBoundEEEC2IZNK15TraitResolution12type_is_copyERK4SpanS4_E3$_1vEEOT_"(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 = { noreturn nounwind }
attributes #8 = { 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, !8, i64 224}
!6 = !{!"_ZTS15TraitResolution", !7, i64 0, !8, i64 216, !8, i64 224, !8, i64 232, !8, i64 240, !8, i64 248, !28, i64 256}
!7 = !{!"_ZTS18TraitResolveCommon", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !20, i64 72, !26, i64 104, !26, i64 112, !26, i64 120, !26, i64 128, !26, i64 136, !26, i64 144, !26, i64 152, !26, i64 160, !26, i64 168, !26, i64 176, !26, i64 184, !26, i64 192, !26, i64 200, !26, i64 208}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt3mapIN3HIR7TypeRefEN18TraitResolveCommon14CachedEqualityESt4lessIS1_ESaISt4pairIKS1_S3_EEE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeIN3HIR7TypeRefESt4pairIKS1_N18TraitResolveCommon14CachedEqualityEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeIN3HIR7TypeRefESt4pairIKS1_N18TraitResolveCommon14CachedEqualityEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN3HIR7TypeRefEEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessIN3HIR7TypeRefEE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!19 = !{!"long", !9, i64 0}
!20 = !{!"_ZTS11RangeVecMapISt4pairIN3HIR7TypeRefENS1_11GenericPathEEN18TraitResolveCommon11CachedBoundENS5_14CachedBoundCmpEE", !21, i64 0, !25, i64 24}
!21 = !{!"_ZTSSt6vectorISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrISt4pairIS1_IN3HIR7TypeRefENS2_11GenericPathEEN18TraitResolveCommon11CachedBoundEESt14default_deleteIS8_EESaISB_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!25 = !{!"_ZTSN18TraitResolveCommon14CachedBoundCmpE"}
!26 = !{!"_ZTSN3HIR10SimplePathE", !27, i64 0}
!27 = !{!"_ZTS10ThinVectorI8RcStringE", !8, i64 0}
!28 = !{!"_ZTSSt6vectorISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3HIR7TypeRefESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!32 = !{!33, !33, i64 0}
!33 = !{!"bool", !9, i64 0}
!34 = !{!8, !8, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!38, !40, i64 4}
!38 = !{!"_ZTSN3HIR8TypeData10Data_InferE", !39, i64 0, !40, i64 4}
!39 = !{!"int", !9, i64 0}
!40 = !{!"_ZTSN3HIR10InferClassE", !9, i64 0}
!41 = !{!39, !39, i64 0}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTSN3HIR8CoreTypeE", !9, i64 0}
!44 = !{!45, !47, i64 4}
!45 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !46, i64 0, !47, i64 4, !48, i64 8}
!46 = !{!"_ZTSN3HIR11LifetimeRefE", !39, i64 0}
!47 = !{!"_ZTSN3HIR10BorrowTypeE", !9, i64 0}
!48 = !{!"_ZTSN3HIR7TypeRefE", !8, i64 0}
!49 = !{!50, !50, i64 0}
!50 = !{!"_ZTSN3HIR7CompareE", !9, i64 0}


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