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

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

%"class.HIR::GenericParams" = type { %"class.std::vector.65", %"class.std::vector.70", %"class.std::vector.75", %"class.std::vector.80" }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.70" = type { %"struct.std::_Vector_base.71" }
%"struct.std::_Vector_base.71" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.80" = type { %"struct.std::_Vector_base.81" }
%"struct.std::_Vector_base.81" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Monomorphiser::PopOnDrop" = type { ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.617 = type { ptr, ptr }
%class.anon.618 = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.26, %class.ThinVector.27, %class.ThinVector.28 }
%class.ThinVector.26 = type { ptr }
%class.ThinVector.27 = type { ptr }
%class.ThinVector.28 = type { ptr }
%struct.MonomorphStatePtr = type { %class.MonomorphiserPP, ptr, ptr, ptr, ptr }
%class.MonomorphiserPP = type { %class.Monomorphiser }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.181" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.181" = type { %"struct.std::_Vector_base.182" }
%"struct.std::_Vector_base.182" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.154" = type { ptr }
%"class.HIR::Trait" = type { %"class.HIR::GenericParams", %"struct.HIR::LifetimeRef", %"class.std::vector.50", i8, %"class.std::unordered_map.385", %"class.std::unordered_map.399", %"class.std::unordered_multimap", %"class.std::unordered_map.426", i32, %"class.std::vector.50", %"struct.HIR::SimplePath" }
%"struct.HIR::LifetimeRef" = type { i32 }
%"class.std::unordered_map.385" = type { %"class.std::_Hashtable.386" }
%"class.std::_Hashtable.386" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.399" = type { %"class.std::_Hashtable.400" }
%"class.std::_Hashtable.400" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_multimap" = type { %"class.std::_Hashtable.413" }
%"class.std::_Hashtable.413" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.426" = type { %"class.std::_Hashtable.427" }
%"class.std::_Hashtable.427" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TraitPath, std::allocator<HIR::TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.HIR::TraitPath" = type { %"class.std::unique_ptr.29", %"class.HIR::GenericPath", %"class.std::map", %"class.std::map.40", 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 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.40" = type { %"class.std::_Rb_tree.41" }
%"class.std::_Rb_tree.41" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@__dso_handle = external hidden global i8
@.str.7 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_ = external hidden unnamed_addr constant [22 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_ = external hidden unnamed_addr constant [196 x i8], align 1
@_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs = external hidden global %"class.HIR::GenericParams", align 8
@_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs = external hidden global i64, align 8

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

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

declare noundef zeroext i1 @_Z13debug_enabledv() #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR11GenericPathD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #7 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR13GenericParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK13Monomorphiser8push_hrbERKN3HIR13GenericParamsE(ptr dead_on_unwind noalias writable sret(%"class.Monomorphiser::PopOnDrop") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) #7 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(400) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %6) #7 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.TraceLog, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.617, align 8
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %class.anon.618, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.HIR::GenericPath", align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.MonomorphStatePtr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.154", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.154", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.Monomorphiser::PopOnDrop", align 8
  %32 = alloca %"struct.HIR::PathParams", align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #0
  %34 = call noundef zeroext i1 @_Z13debug_enabledv()
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, ptr @__func__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_, ptr null
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #0
  %37 = getelementptr inbounds %class.anon.617, ptr %18, i32 0, i32 0
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %38, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.anon.617, ptr %18, i32 0, i32 1
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %40, ptr %39, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS8_5TraitERKNS8_7TypeRefERK8RcStringRS9_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(16) %18) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #0
  %41 = getelementptr inbounds %class.anon.618, ptr %20, i32 0, i32 0
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %42, ptr %41, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS8_5TraitERKNS8_7TypeRefERK8RcStringRS9_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #0
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %36, ptr noundef %17, ptr noundef %19)
          to label %43 unwind label %53

43:                                               ; preds = %7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #0
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #0
  store ptr null, ptr %23, align 8, !tbaa !5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_127trait_contains_method_innerERKN3HIR5TraitERK8RcStringRPKNS0_8FunctionE(ptr noundef nonnull align 8 dereferenceable(400) %44, ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %47 unwind label %57

47:                                               ; preds = %43
  br i1 %46, label %48, label %78

48:                                               ; preds = %47
  %49 = load ptr, ptr %23, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  br label %62

52:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.164, ptr noundef @.str.7, i32 noundef 3861, ptr noundef @__PRETTY_FUNCTION__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_) #9
  unreachable

53:                                               ; preds = %7
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %21, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %22, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #0
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #0
  br label %187

57:                                               ; preds = %43
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %21, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %22, align 4
  br label %186

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #0
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK3HIR11GenericPath5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::GenericPath") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %64 unwind label %69

64:                                               ; preds = %62
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR11GenericPathaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %67 unwind label %73

67:                                               ; preds = %64
  call void @_ZN3HIR11GenericPathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #0
  %68 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %68, ptr %8, align 8
  store i32 1, ptr %25, align 4
  br label %184

69:                                               ; preds = %62
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %21, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %22, align 4
  br label %77

73:                                               ; preds = %64
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %21, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %22, align 4
  call void @_ZN3HIR11GenericPathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #0
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #0
  br label %186

78:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 128, ptr %26) #0
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.HIR::GenericPath", ptr %80, i32 0, i32 1
  invoke void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128) %26, ptr noundef %79, ptr noundef %81, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %82 unwind label %94

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #0
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.HIR::Trait", ptr %83, i32 0, i32 9
  store ptr %84, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #0
  %85 = load ptr, ptr %27, align 8, !tbaa !5
  %86 = call ptr @_ZNKSt6vectorIN3HIR9TraitPathESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #0
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.154", ptr %28, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #0
  %88 = load ptr, ptr %27, align 8, !tbaa !5
  %89 = call ptr @_ZNKSt6vectorIN3HIR9TraitPathESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #0
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.154", ptr %29, i32 0, i32 0
  store ptr %89, ptr %90, align 8
  br label %91

91:                                               ; preds = %176, %82
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #0
  br i1 %92, label %98, label %93

93:                                               ; preds = %91
  store i32 2, ptr %25, align 4
  br label %179

94:                                               ; preds = %78
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %21, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %22, align 4
  br label %183

98:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #0
  %99 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #0
  store ptr %99, ptr %30, align 8, !tbaa !5
  %100 = load ptr, ptr %30, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.HIR::TraitPath", ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_127trait_contains_method_innerERKN3HIR5TraitERK8RcStringRPKNS0_8FunctionE(ptr noundef nonnull align 8 dereferenceable(400) %102, ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %105 unwind label %111

105:                                              ; preds = %98
  br i1 %104, label %106, label %172

106:                                              ; preds = %105
  %107 = load ptr, ptr %23, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  br label %116

110:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.164, ptr noundef @.str.7, i32 noundef 3871, ptr noundef @__PRETTY_FUNCTION__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_) #9
  unreachable

111:                                              ; preds = %98
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %21, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %22, align 4
  br label %178

115:                                              ; No predecessors!
  br label %116

116:                                              ; preds = %115, %109
  %117 = load atomic i8, ptr @_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs acquire, align 8
  %118 = icmp eq i8 %117, 0
  br i1 %118, label %119, label %124, !prof !36

119:                                              ; preds = %116
  %120 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs) #0
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  call void @_ZN3HIR13GenericParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(96) @_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs) #0
  %123 = call i32 @__cxa_atexit(ptr @_ZN3HIR13GenericParamsD2Ev, ptr @_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs) #0
  br label %124

124:                                              ; preds = %122, %119, %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #0
  %125 = load ptr, ptr %30, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.HIR::TraitPath", ptr %125, i32 0, i32 0
  %127 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %126) #0
  br i1 %127, label %128, label %132

128:                                              ; preds = %124
  %129 = load ptr, ptr %30, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.HIR::TraitPath", ptr %129, i32 0, i32 0
  %131 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %130) #0
  br label %133

132:                                              ; preds = %124
  br label %133

133:                                              ; preds = %132, %128
  %134 = phi ptr [ %131, %128 ], [ @_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs, %132 ]
  invoke void @_ZNK13Monomorphiser8push_hrbERKN3HIR13GenericParamsE(ptr dead_on_unwind writable sret(%"class.Monomorphiser::PopOnDrop") align 8 %31, ptr noundef nonnull align 8 dereferenceable(96) %26, ptr noundef nonnull align 8 dereferenceable(96) %134)
          to label %135 unwind label %153

135:                                              ; preds = %133
  %136 = load ptr, ptr %30, align 8, !tbaa !5
  %137 = getelementptr inbounds %"class.HIR::TraitPath", ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds %"class.HIR::GenericPath", ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %"class.HIR::GenericPath", ptr %139, i32 0, i32 0
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR10SimplePathaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull align 8 dereferenceable(8) %138)
          to label %142 unwind label %157

142:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #0
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = load ptr, ptr %30, align 8, !tbaa !5
  %145 = getelementptr inbounds %"class.HIR::TraitPath", ptr %144, i32 0, i32 1
  %146 = getelementptr inbounds %"class.HIR::GenericPath", ptr %145, i32 0, i32 1
  invoke void @_ZNK13Monomorphiser21monomorph_path_paramsERK4SpanRKN3HIR10PathParamsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8 %32, ptr noundef nonnull align 8 dereferenceable(96) %26, ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull align 8 dereferenceable(24) %146, i1 noundef zeroext false)
          to label %147 unwind label %161

147:                                              ; preds = %142
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = getelementptr inbounds %"class.HIR::GenericPath", ptr %148, i32 0, i32 1
  %150 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3HIR10PathParamsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %151 unwind label %165

151:                                              ; preds = %147
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #0
  %152 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %152, ptr %8, align 8
  store i32 1, ptr %25, align 4
  call void @_ZN13Monomorphiser9PopOnDropD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #0
  br label %173

153:                                              ; preds = %133
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %21, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %22, align 4
  br label %171

157:                                              ; preds = %135
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %21, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %22, align 4
  br label %170

161:                                              ; preds = %142
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %21, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %22, align 4
  br label %169

165:                                              ; preds = %147
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %21, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %22, align 4
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #0
  br label %169

169:                                              ; preds = %165, %161
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #0
  br label %170

170:                                              ; preds = %169, %157
  call void @_ZN13Monomorphiser9PopOnDropD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #0
  br label %171

171:                                              ; preds = %170, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #0
  br label %178

172:                                              ; preds = %105
  store i32 0, ptr %25, align 4
  br label %173

173:                                              ; preds = %172, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #0
  %174 = load i32, ptr %25, align 4
  switch i32 %174, label %179 [
    i32 0, label %175
  ]

175:                                              ; preds = %173
  br label %176

176:                                              ; preds = %175
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #0
  br label %91

178:                                              ; preds = %171, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %26) #0
  br label %183

179:                                              ; preds = %173, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  %180 = load i32, ptr %25, align 4
  switch i32 %180, label %182 [
    i32 2, label %181
  ]

181:                                              ; preds = %179
  store ptr null, ptr %8, align 8
  store i32 1, ptr %25, align 4
  br label %182

182:                                              ; preds = %181, %179
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %26) #0
  call void @llvm.lifetime.end.p0(i64 128, ptr %26) #0
  br label %184

183:                                              ; preds = %178, %94
  call void @llvm.lifetime.end.p0(i64 128, ptr %26) #0
  br label %186

184:                                              ; preds = %182, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #0
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #0
  %185 = load ptr, ptr %8, align 8
  ret ptr %185

186:                                              ; preds = %183, %77, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #0
  br label %187

187:                                              ; preds = %186, %53
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #0
  br label %188

188:                                              ; preds = %187
  %189 = load ptr, ptr %21, align 8
  %190 = load i32, ptr %22, align 4
  %191 = insertvalue { ptr, i32 } poison, ptr %189, 0
  %192 = insertvalue { ptr, i32 } %191, i32 %190, 1
  resume { ptr, i32 } %192
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_127trait_contains_method_innerERKN3HIR5TraitERK8RcStringRPKNS0_8FunctionE(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

declare void @_ZNK3HIR11GenericPath5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::GenericPath") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

declare void @_ZNK13Monomorphiser21monomorph_path_paramsERK4SpanRKN3HIR10PathParamsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 136}
!10 = !{!"_ZTSN3HIR9TraitPathE", !11, i64 0, !17, i64 8, !24, i64 40, !33, i64 88, !6, i64 136}
!11 = !{!"_ZTSSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN3HIR13GenericParamsESt14default_deleteIS1_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN3HIR13GenericParamsESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN3HIR13GenericParamsESt14default_deleteIS1_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN3HIR13GenericParamsESt14default_deleteIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN3HIR13GenericParamsELb0EE", !6, i64 0}
!17 = !{!"_ZTSN3HIR11GenericPathE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSN3HIR10SimplePathE", !19, i64 0}
!19 = !{!"_ZTS10ThinVectorI8RcStringE", !6, i64 0}
!20 = !{!"_ZTSN3HIR10PathParamsE", !21, i64 0, !22, i64 8, !23, i64 16}
!21 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !6, i64 0}
!22 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !6, i64 0}
!23 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !6, i64 0}
!24 = !{!"_ZTSSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyEqualEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyEqualEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI8RcStringEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessI8RcStringE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !32, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSSt3mapI8RcStringN3HIR9TraitPath8AtyBoundESt4lessIS0_ESaISt4pairIKS0_S3_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyBoundEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyBoundEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !27, i64 0, !29, i64 8}
!36 = !{!"branch_weights", i32 1, i32 1048575}


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

%"class.HIR::GenericParams" = type { %"class.std::vector.65", %"class.std::vector.70", %"class.std::vector.75", %"class.std::vector.80" }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.70" = type { %"struct.std::_Vector_base.71" }
%"struct.std::_Vector_base.71" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::LifetimeDef, std::allocator<HIR::LifetimeDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::ValueParamDef, std::allocator<HIR::ValueParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.80" = type { %"struct.std::_Vector_base.81" }
%"struct.std::_Vector_base.81" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::GenericBound, std::allocator<HIR::GenericBound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Monomorphiser::PopOnDrop" = type { ptr }
%class.TraceLog = type { ptr, %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.617 = type { ptr, ptr }
%class.anon.618 = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.26, %class.ThinVector.27, %class.ThinVector.28 }
%class.ThinVector.26 = type { ptr }
%class.ThinVector.27 = type { ptr }
%class.ThinVector.28 = type { ptr }
%struct.MonomorphStatePtr = type { %class.MonomorphiserPP, ptr, ptr, ptr, ptr }
%class.MonomorphiserPP = type { %class.Monomorphiser }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.181" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.181" = type { %"struct.std::_Vector_base.182" }
%"struct.std::_Vector_base.182" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const HIR::GenericParams *, std::allocator<const HIR::GenericParams *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.154" = type { ptr }

@__dso_handle = external hidden global i8
@.str.7 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_ = external hidden unnamed_addr constant [22 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_ = external hidden unnamed_addr constant [196 x i8], align 1
@_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs = external hidden global %"class.HIR::GenericParams", align 8
@_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs = external hidden global i64, align 8

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR11GenericPathD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #7 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3HIR13GenericParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK13Monomorphiser8push_hrbERKN3HIR13GenericParamsE(ptr dead_on_unwind noalias writable sret(%"class.Monomorphiser::PopOnDrop") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(400) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %6) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.TraceLog, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon.617, align 8
  %11 = alloca %"class.std::function", align 8
  %12 = alloca %class.anon.618, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.HIR::GenericPath", align 8
  %15 = alloca %struct.MonomorphStatePtr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.154", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.154", align 8
  %18 = alloca %"class.Monomorphiser::PopOnDrop", align 8
  %19 = alloca %"struct.HIR::PathParams", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #9
  %20 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %21 = select i1 %20, ptr @__func__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_, ptr null
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  store ptr %2, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %5, ptr %22, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS8_5TraitERKNS8_7TypeRefERK8RcStringRS9_E3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store ptr %6, ptr %12, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS8_5TraitERKNS8_7TypeRefERK8RcStringRS9_E3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef %21, ptr noundef nonnull %9, ptr noundef nonnull %11)
          to label %23 unwind label %29

23:                                               ; preds = %7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  store ptr null, ptr %13, align 8, !tbaa !5
  %24 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_127trait_contains_method_innerERKN3HIR5TraitERK8RcStringRPKNS0_8FunctionE(ptr noundef nonnull align 8 dereferenceable(400) %3, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %25 unwind label %31

25:                                               ; preds = %23
  br i1 %24, label %26, label %43

26:                                               ; preds = %25
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %.not48 = icmp eq ptr %27, null
  br i1 %.not48, label %28, label %33

28:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.164, ptr noundef nonnull @.str.7, i32 noundef 3861, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_) #10
  unreachable

29:                                               ; preds = %7
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %102

31:                                               ; preds = %23
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %101

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZNK3HIR11GenericPath5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::GenericPath") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %34 unwind label %38

34:                                               ; preds = %33
  %35 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3HIR11GenericPathaSEOS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %36 unwind label %40

36:                                               ; preds = %34
  call void @_ZN3HIR11GenericPathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  br label %100

38:                                               ; preds = %33
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %34
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR11GenericPathD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %42

42:                                               ; preds = %40, %38
  %.pn49 = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  br label %101

43:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #9
  %44 = getelementptr inbounds i8, ptr %2, i64 8
  invoke void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef nonnull %4, ptr noundef nonnull %44, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %45 unwind label %50

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %3, i64 368
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %47 = call ptr @_ZNKSt6vectorIN3HIR9TraitPathESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  store ptr %47, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %48 = call ptr @_ZNKSt6vectorIN3HIR9TraitPathESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  store ptr %48, ptr %17, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %49, label %.lr.ph, label %.loopexit

50:                                               ; preds = %43
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %99

.lr.ph:                                           ; preds = %45, %95
  %52 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %53 = getelementptr inbounds i8, ptr %52, i64 136
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_127trait_contains_method_innerERKN3HIR5TraitERK8RcStringRPKNS0_8FunctionE(ptr noundef nonnull align 8 dereferenceable(400) %54, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %56 unwind label %60

56:                                               ; preds = %.lr.ph
  br i1 %55, label %57, label %95

57:                                               ; preds = %56
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %.not = icmp eq ptr %58, null
  br i1 %.not, label %59, label %62

59:                                               ; preds = %57
  call void @__assert_fail(ptr noundef nonnull @.str.164, ptr noundef nonnull @.str.7, i32 noundef 3871, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_) #10
  unreachable

60:                                               ; preds = %.lr.ph
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %98

62:                                               ; preds = %57
  %63 = load atomic i8, ptr @_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs acquire, align 8
  %64 = icmp eq i8 %63, 0
  br i1 %64, label %65, label %69, !prof !36

65:                                               ; preds = %62
  %66 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs) #9
  %.not42 = icmp eq i32 %66, 0
  br i1 %.not42, label %69, label %67

67:                                               ; preds = %65
  call void @_ZN3HIR13GenericParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(96) @_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs) #9
  %68 = call i32 @__cxa_atexit(ptr nonnull @_ZN3HIR13GenericParamsD2Ev, ptr nonnull @_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs, ptr nonnull @__dso_handle) #9
  call void @__cxa_guard_release(ptr nonnull @_ZGVZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs) #9
  br label %69

69:                                               ; preds = %67, %65, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %70 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #9
  br i1 %70, label %71, label %73

71:                                               ; preds = %69
  %72 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #9
  br label %73

73:                                               ; preds = %69, %71
  %74 = phi ptr [ %72, %71 ], [ @_ZZNK15TraitResolution21trait_contains_methodERK4SpanRKN3HIR11GenericPathERKNS3_5TraitERKNS3_7TypeRefERK8RcStringRS4_E11empty_hrtbs, %69 ]
  invoke void @_ZNK13Monomorphiser8push_hrbERKN3HIR13GenericParamsE(ptr dead_on_unwind nonnull writable sret(%"class.Monomorphiser::PopOnDrop") align 8 %18, ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull align 8 dereferenceable(96) %74)
          to label %75 unwind label %84

75:                                               ; preds = %73
  %76 = getelementptr inbounds i8, ptr %52, i64 8
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR10SimplePathaSERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %78 unwind label %86

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  %79 = getelementptr inbounds i8, ptr %52, i64 16
  invoke void @_ZNK13Monomorphiser21monomorph_path_paramsERK4SpanRKN3HIR10PathParamsEb(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::PathParams") align 8 %19, ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %79, i1 noundef zeroext false)
          to label %80 unwind label %88

80:                                               ; preds = %78
  %81 = getelementptr inbounds i8, ptr %6, i64 8
  %82 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3HIR10PathParamsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %.thread unwind label %90

.thread:                                          ; preds = %80
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN13Monomorphiser9PopOnDropD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br label %.loopexit

84:                                               ; preds = %73
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %94

86:                                               ; preds = %75
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %93

88:                                               ; preds = %78
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %80
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  br label %92

92:                                               ; preds = %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  br label %93

93:                                               ; preds = %92, %86
  %.pn.pn = phi { ptr, i32 } [ %.pn, %92 ], [ %87, %86 ]
  call void @_ZN13Monomorphiser9PopOnDropD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br label %94

94:                                               ; preds = %93, %84
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %93 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br label %98

95:                                               ; preds = %56
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3HIR9TraitPathESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %97, label %.lr.ph, label %.loopexit

98:                                               ; preds = %94, %60
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %94 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #9
  br label %99

.loopexit:                                        ; preds = %95, %45, %.thread
  %spec.select = phi ptr [ %83, %.thread ], [ null, %45 ], [ null, %95 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #9
  br label %100

99:                                               ; preds = %98, %50
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %98 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #9
  br label %101

100:                                              ; preds = %.loopexit, %36
  %.4 = phi ptr [ %37, %36 ], [ %spec.select, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #9
  ret ptr %.4

101:                                              ; preds = %99, %42, %31
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %42 ], [ %.pn.pn.pn.pn.pn, %99 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #9
  br label %102

102:                                              ; preds = %101, %29
  %.pn49.pn.pn = phi { ptr, i32 } [ %.pn49.pn, %101 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #9
  resume { ptr, i32 } %.pn49.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_127trait_contains_method_innerERKN3HIR5TraitERK8RcStringRPKNS0_8FunctionE(ptr noundef nonnull align 8 dereferenceable(400), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

declare void @_ZNK3HIR11GenericPath5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::GenericPath") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

declare void @_ZNK13Monomorphiser21monomorph_path_paramsERK4SpanRKN3HIR10PathParamsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 136}
!10 = !{!"_ZTSN3HIR9TraitPathE", !11, i64 0, !17, i64 8, !24, i64 40, !33, i64 88, !6, i64 136}
!11 = !{!"_ZTSSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN3HIR13GenericParamsESt14default_deleteIS1_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN3HIR13GenericParamsESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN3HIR13GenericParamsESt14default_deleteIS1_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN3HIR13GenericParamsESt14default_deleteIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN3HIR13GenericParamsELb0EE", !6, i64 0}
!17 = !{!"_ZTSN3HIR11GenericPathE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSN3HIR10SimplePathE", !19, i64 0}
!19 = !{!"_ZTS10ThinVectorI8RcStringE", !6, i64 0}
!20 = !{!"_ZTSN3HIR10PathParamsE", !21, i64 0, !22, i64 8, !23, i64 16}
!21 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !6, i64 0}
!22 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !6, i64 0}
!23 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !6, i64 0}
!24 = !{!"_ZTSSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyEqualEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyEqualEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI8RcStringEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessI8RcStringE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !32, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSSt3mapI8RcStringN3HIR9TraitPath8AtyBoundESt4lessIS0_ESaISt4pairIKS0_S3_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyBoundEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeI8RcStringSt4pairIKS0_N3HIR9TraitPath8AtyBoundEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !27, i64 0, !29, i64 8}
!36 = !{!"branch_weights", i32 1, i32 1048575}


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