; LLVM IR from thepowersgang/mrustc :: src/hir_typeck/impl_ref.ll (ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE)

; 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.Span = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.ImplRef::Monomorph" = type { %class.Monomorphiser, ptr, ptr }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.196" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.196" = type { %"struct.std::_Vector_base.197" }
%"struct.std::_Vector_base.197" = 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 }
%"struct.HIR::PathParams" = type { %class.ThinVector, %class.ThinVector.0, %class.ThinVector.1 }
%class.ThinVector = type { ptr }
%class.ThinVector.0 = type { ptr }
%class.ThinVector.1 = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.RcString = type { ptr }
%struct.MonomorphStatePtr = type { %class.MonomorphiserPP, ptr, ptr, ptr, ptr }
%class.MonomorphiserPP = type { %class.Monomorphiser }
%"struct.std::_Rb_tree_const_iterator.272" = type { ptr }
%"class.std::function.201" = 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.273 = type { i8 }
%struct.MonomorphHrlsOnly = type { %class.Monomorphiser, ptr }
%class.anon.277 = type { i8 }
%struct.ImplRef = type { %"class.ImplRef::Data" }
%"class.ImplRef::Data" = type { i32, %"union.ImplRef::Data::DataUnion" }
%"union.ImplRef::Data::DataUnion" = type { %"struct.ImplRef::Data::Data_Bounded" }
%"struct.ImplRef::Data::Data_Bounded" = type { %"class.HIR::GenericParams", %"class.HIR::TypeRef", %"struct.HIR::PathParams", %"class.std::map" }
%"class.HIR::GenericParams" = type { %"class.std::vector", %"class.std::vector.2", %"class.std::vector.7", %"class.std::vector.12" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeParamDef, std::allocator<HIR::TypeParamDef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = 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.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = 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.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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.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 }
%"struct.ImplRef::Data::Data_TraitImpl" = type { %"struct.HIR::PathParams", ptr, ptr, ptr, %"class.HIR::TypeRef" }
%"class.HIR::TraitImpl" = type { %"class.HIR::GenericParams", %"struct.HIR::PathParams", %"class.HIR::TypeRef", %"class.std::map.20", %"class.std::map.25", %"class.std::map.30", %"class.std::map.35", %"struct.HIR::SimplePath" }
%"class.std::map.20" = type { %"class.std::_Rb_tree.21" }
%"class.std::_Rb_tree.21" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Function>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Function>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Function>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Function>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.25" = type { %"class.std::_Rb_tree.26" }
%"class.std::_Rb_tree.26" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Constant>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Constant>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Constant>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Constant>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.30" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Static>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Static>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Static>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::Static>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.35" = type { %"class.std::_Rb_tree.36" }
%"class.std::_Rb_tree.36" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::TypeRef>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::TypeRef>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::TypeRef>>, std::_Select1st<std::pair<const RcString, HIR::TraitImpl::ImplEnt<HIR::TypeRef>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.HIR::SimplePath" = type { %class.ThinVector.40 }
%class.ThinVector.40 = type { ptr }
%"class.HIR::Trait" = type { %"class.HIR::GenericParams", %"struct.HIR::LifetimeRef", %"class.std::vector.212", i8, %"class.std::unordered_map.217", %"class.std::unordered_map.231", %"class.std::unordered_multimap", %"class.std::unordered_map.258", i32, %"class.std::vector.212", %"struct.HIR::SimplePath" }
%"struct.HIR::LifetimeRef" = type { i32 }
%"class.std::unordered_map.217" = type { %"class.std::_Hashtable.218" }
%"class.std::_Hashtable.218" = 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.231" = type { %"class.std::_Hashtable.232" }
%"class.std::_Hashtable.232" = 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.245" }
%"class.std::_Hashtable.245" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.258" = type { %"class.std::_Hashtable.259" }
%"class.std::_Hashtable.259" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.212" = type { %"struct.std::_Vector_base.213" }
%"struct.std::_Vector_base.213" = 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 }
%"struct.HIR::AssociatedType" = type { %"class.HIR::GenericParams", i8, %"struct.HIR::LifetimeRef", %"class.std::vector.212", %"class.HIR::TypeRef" }
%"struct.std::pair" = type { %class.RcString, %"struct.HIR::TraitImpl::ImplEnt" }
%"struct.HIR::TraitImpl::ImplEnt" = type { i8, %"class.HIR::TypeRef" }
%"struct.ImplRef::Data::Data_BoundedPtr" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair.275" = type { %class.RcString, %"struct.HIR::TraitPath::AtyEqual" }
%"struct.HIR::TraitPath::AtyEqual" = type { %"class.HIR::GenericPath", %"class.HIR::TypeRef" }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }

@__dso_handle = external hidden global i8
@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp = external hidden global %struct.Span, align 8
@_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp = external hidden global i64, align 8
@__PRETTY_FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE = external hidden unnamed_addr constant [78 x i8], align 1
@_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self = external hidden global %"class.HIR::TypeRef", align 8
@_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self = external hidden global i64, align 8
@g_debug_indent_level = external global i32, align 4
@__FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind noalias writable sret(%"class.ImplRef::Monomorph") align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

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

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #8

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

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #8

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #8

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

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

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

declare void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) unnamed_addr #8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind noalias writable sret(%"struct.HIR::PathParams") align 8, ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104), 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca %class.RcString, align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %class.RcString, align 8
  %20 = alloca %class.RcString, align 8
  %21 = alloca i1, align 1
  %22 = alloca i1, align 1
  %23 = alloca %"class.HIR::TypeRef", align 8
  %24 = alloca i1, align 1
  %25 = alloca i1, align 1
  %26 = alloca %"class.HIR::TypeRef", align 8
  %27 = alloca %struct.MonomorphStatePtr, align 8
  %28 = alloca %class.RcString, align 8
  %29 = alloca %"class.ImplRef::Monomorph", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.ImplRef::Monomorph", align 8
  %32 = alloca i8, align 1
  %33 = alloca ptr, align 8
  %34 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %35 = alloca %class.RcString, align 8
  %36 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %37 = alloca %struct.Span, align 8
  %38 = alloca %"class.std::function.201", align 8
  %39 = alloca %class.anon.273, align 1
  %40 = alloca %struct.MonomorphHrlsOnly, align 8
  %41 = alloca %"struct.HIR::PathParams", align 8
  %42 = alloca i8, align 1
  %43 = alloca ptr, align 8
  %44 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %45 = alloca %class.RcString, align 8
  %46 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %47 = alloca %struct.Span, align 8
  %48 = alloca %"class.std::function.201", align 8
  %49 = alloca %class.anon.277, align 1
  %50 = alloca %struct.MonomorphHrlsOnly, align 8
  %51 = alloca %"struct.HIR::PathParams", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 0
  %55 = load i8, ptr %54, align 1, !tbaa !9
  %56 = icmp ne i8 %55, 0
  br i1 %56, label %58, label %57

57:                                               ; preds = %4
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %457

58:                                               ; preds = %4
  %59 = load atomic i8, ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp acquire, align 8
  %60 = icmp eq i8 %59, 0
  br i1 %60, label %61, label %67, !prof !10

61:                                               ; preds = %58
  %62 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp) #0
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %61
  invoke void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp)
          to label %65 unwind label %72

65:                                               ; preds = %64
  %66 = call i32 @__cxa_atexit(ptr @_ZN4SpanD1Ev, ptr @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp) #0
  br label %67

67:                                               ; preds = %65, %61, %58
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #0
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %68

68:                                               ; preds = %453, %67
  %69 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  br i1 %70, label %76, label %71

71:                                               ; preds = %68
  store i32 2, ptr %12, align 4
  br label %454

72:                                               ; preds = %64
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp) #0
  br label %458

76:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #0
  %77 = getelementptr inbounds %struct.ImplRef, ptr %52, i32 0, i32 0
  store ptr %77, ptr %13, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %448, %76
  %79 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %80 = trunc i8 %79 to i1
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 5, ptr %12, align 4
  br label %449

82:                                               ; preds = %78
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = call noundef i32 @_ZNK7ImplRef4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %83)
  switch i32 %84, label %447 [
    i32 0, label %85
    i32 1, label %86
    i32 2, label %287
    i32 3, label %372
  ]

85:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 235, ptr noundef @__PRETTY_FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE) #9
  unreachable

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #0
  store i8 1, ptr %14, align 1, !tbaa !11
  br label %87

87:                                               ; preds = %283, %86
  %88 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 9, ptr %12, align 4
  br label %284

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #0
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7ImplRef4Data12as_TraitImplEv(ptr noundef nonnull align 8 dereferenceable(184) %92)
  store ptr %93, ptr %15, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %279, %91
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 12, ptr %12, align 4
  br label %280

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #0
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %100, i32 0, i32 3
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = getelementptr inbounds %"class.HIR::TraitImpl", ptr %102, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #0
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef %104)
  %105 = invoke ptr @_ZNKSt3mapI8RcStringN3HIR9TraitImpl7ImplEntINS1_7TypeRefEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(48) %103, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %106 unwind label %178

106:                                              ; preds = %99
  %107 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %105, ptr %107, align 8
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = getelementptr inbounds %"class.HIR::TraitImpl", ptr %110, i32 0, i32 6
  %112 = call ptr @_ZNKSt3mapI8RcStringN3HIR9TraitImpl7ImplEntINS1_7TypeRefEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %111) #0
  %113 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %112, ptr %113, align 8
  %114 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitImpl7ImplEntINS3_7TypeRefEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  br i1 %114, label %115, label %242

115:                                              ; preds = %106
  %116 = load atomic i8, ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self acquire, align 8
  %117 = icmp eq i8 %116, 0
  br i1 %117, label %118, label %124, !prof !10

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

121:                                              ; preds = %118
  invoke void @_ZN3HIR7TypeRef8new_selfEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self)
          to label %122 unwind label %182

122:                                              ; preds = %121
  %123 = call i32 @__cxa_atexit(ptr @_ZN3HIR7TypeRefD2Ev, ptr @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self) #0
  br label %124

124:                                              ; preds = %122, %118, %115
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = getelementptr inbounds %"class.HIR::Trait", ptr %127, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #0
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %129)
  store i1 false, ptr %21, align 1
  store i1 false, ptr %22, align 1
  store i1 false, ptr %24, align 1
  store i1 false, ptr %25, align 1
  %130 = invoke noundef i64 @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %128, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %131 unwind label %186

131:                                              ; preds = %124
  %132 = icmp ne i64 %130, 0
  br i1 %132, label %133, label %146

133:                                              ; preds = %131
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !22
  %137 = getelementptr inbounds %"class.HIR::Trait", ptr %136, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #0
  store i1 true, ptr %21, align 1
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %138)
          to label %139 unwind label %190

139:                                              ; preds = %133
  store i1 true, ptr %22, align 1
  %140 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56) %137, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %141 unwind label %194

141:                                              ; preds = %139
  %142 = getelementptr inbounds %"struct.HIR::AssociatedType", ptr %140, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #0
  store i1 true, ptr %24, align 1
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %143 unwind label %198

143:                                              ; preds = %141
  store i1 true, ptr %25, align 1
  %144 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefneERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %145 unwind label %202

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %131
  %147 = phi i1 [ false, %131 ], [ %144, %145 ]
  %148 = load i1, ptr %25, align 1
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #0
  br label %150

150:                                              ; preds = %149, %146
  %151 = load i1, ptr %24, align 1
  br i1 %151, label %152, label %153

152:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  br label %153

153:                                              ; preds = %152, %150
  %154 = load i1, ptr %22, align 1
  br i1 %154, label %155, label %156

155:                                              ; preds = %153
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #0
  br label %156

156:                                              ; preds = %155, %153
  %157 = load i1, ptr %21, align 1
  br i1 %157, label %158, label %159

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #0
  br label %159

159:                                              ; preds = %158, %156
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br i1 %147, label %160, label %241

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #0
  call void @llvm.lifetime.start.p0(i64 128, ptr %27) #0
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %161, i32 0, i32 3
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = getelementptr inbounds %"class.HIR::TraitImpl", ptr %163, i32 0, i32 1
  call void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128) %27, ptr noundef @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self, ptr noundef %164, ptr noundef null, ptr noundef null, ptr noundef null)
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !22
  %168 = getelementptr inbounds %"class.HIR::Trait", ptr %167, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #0
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %169)
          to label %170 unwind label %222

170:                                              ; preds = %160
  %171 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56) %168, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %172 unwind label %226

172:                                              ; preds = %170
  %173 = getelementptr inbounds %"struct.HIR::AssociatedType", ptr %171, i32 0, i32 4
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %26, ptr noundef nonnull align 8 dereferenceable(96) %27, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %173, i1 noundef zeroext true)
          to label %174 unwind label %226

174:                                              ; preds = %172
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %27) #0
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #0
  call void @llvm.lifetime.start.p0(i64 112, ptr %29) #0
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind writable sret(%"class.ImplRef::Monomorph") align 8 %29, ptr noundef nonnull align 8 dereferenceable(184) %52, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(24) %175)
          to label %176 unwind label %231

176:                                              ; preds = %174
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %29, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %26, i1 noundef zeroext true)
          to label %177 unwind label %235

177:                                              ; preds = %176
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %29) #0
  call void @llvm.lifetime.end.p0(i64 112, ptr %29) #0
  store i32 1, ptr %12, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #0
  br label %277

178:                                              ; preds = %99
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %9, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %10, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  br label %278

182:                                              ; preds = %121
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %9, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %10, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self) #0
  br label %278

186:                                              ; preds = %124
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %9, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %10, align 4
  br label %221

190:                                              ; preds = %133
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %9, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %10, align 4
  br label %217

194:                                              ; preds = %139
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %9, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %10, align 4
  br label %213

198:                                              ; preds = %141
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %9, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %10, align 4
  br label %209

202:                                              ; preds = %143
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %9, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %10, align 4
  %206 = load i1, ptr %25, align 1
  br i1 %206, label %207, label %208

207:                                              ; preds = %202
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #0
  br label %208

208:                                              ; preds = %207, %202
  br label %209

209:                                              ; preds = %208, %198
  %210 = load i1, ptr %24, align 1
  br i1 %210, label %211, label %212

211:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  br label %212

212:                                              ; preds = %211, %209
  br label %213

213:                                              ; preds = %212, %194
  %214 = load i1, ptr %22, align 1
  br i1 %214, label %215, label %216

215:                                              ; preds = %213
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #0
  br label %216

216:                                              ; preds = %215, %213
  br label %217

217:                                              ; preds = %216, %190
  %218 = load i1, ptr %21, align 1
  br i1 %218, label %219, label %220

219:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #0
  br label %220

220:                                              ; preds = %219, %217
  br label %221

221:                                              ; preds = %220, %186
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br label %278

222:                                              ; preds = %160
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %9, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %10, align 4
  br label %230

226:                                              ; preds = %172, %170
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %9, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %10, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #0
  br label %230

230:                                              ; preds = %226, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %27) #0
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #0
  br label %240

231:                                              ; preds = %174
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %9, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %10, align 4
  br label %239

235:                                              ; preds = %176
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %9, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %10, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %29) #0
  br label %239

239:                                              ; preds = %235, %231
  call void @llvm.lifetime.end.p0(i64 112, ptr %29) #0
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #0
  br label %240

240:                                              ; preds = %239, %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #0
  br label %278

241:                                              ; preds = %159
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  store i32 1, ptr %12, align 4
  br label %277

242:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #0
  %243 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitImpl7ImplEntINS3_7TypeRefEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #0
  %244 = getelementptr inbounds %"struct.std::pair", ptr %243, i32 0, i32 1
  %245 = getelementptr inbounds %"struct.HIR::TraitImpl::ImplEnt", ptr %244, i32 0, i32 1
  store ptr %245, ptr %30, align 8, !tbaa !5
  br label %246

246:                                              ; preds = %242
  %247 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %247, label %248, label %261

248:                                              ; preds = %246
  %249 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !23
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %249, ptr noundef @__FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE)
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @.str.8)
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef %252)
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @.str.9)
  %255 = load ptr, ptr %30, align 8, !tbaa !5
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef nonnull align 8 dereferenceable(8) %255)
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef @.str.10)
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7ImplRef(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef nonnull align 8 dereferenceable(184) %52)
  %259 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef @_ZSt3decRSt8ios_base)
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %261

261:                                              ; preds = %248, %246
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  %264 = load ptr, ptr %30, align 8, !tbaa !5
  %265 = call noundef zeroext i1 @_Z24monomorphise_type_neededRKN3HIR7TypeRefEb(ptr noundef nonnull align 8 dereferenceable(8) %264, i1 noundef zeroext false)
  br i1 %265, label %266, label %274

266:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 112, ptr %31) #0
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind writable sret(%"class.ImplRef::Monomorph") align 8 %31, ptr noundef nonnull align 8 dereferenceable(184) %52, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(24) %267)
  %268 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %31, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %268, i1 noundef zeroext true)
          to label %269 unwind label %270

269:                                              ; preds = %266
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %31) #0
  call void @llvm.lifetime.end.p0(i64 112, ptr %31) #0
  store i32 1, ptr %12, align 4
  br label %276

270:                                              ; preds = %266
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %9, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %10, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %31) #0
  call void @llvm.lifetime.end.p0(i64 112, ptr %31) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #0
  br label %278

274:                                              ; preds = %263
  %275 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %275)
  store i32 1, ptr %12, align 4
  br label %276

276:                                              ; preds = %274, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #0
  br label %277

277:                                              ; preds = %276, %241, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  br label %280

278:                                              ; preds = %270, %240, %221, %182, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #0
  br label %451

279:                                              ; No predecessors!
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %94, !llvm.loop !25

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

282:                                              ; preds = %280
  br label %283

283:                                              ; preds = %282
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %87, !llvm.loop !27

284:                                              ; preds = %280, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #0
  %285 = load i32, ptr %12, align 4
  switch i32 %285, label %449 [
    i32 9, label %286
  ]

286:                                              ; preds = %284
  br label %447

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

288:                                              ; preds = %368, %287
  %289 = load i8, ptr %32, align 1, !tbaa !11, !range !13, !noundef !14
  %290 = trunc i8 %289 to i1
  br i1 %290, label %292, label %291

291:                                              ; preds = %288
  store i32 17, ptr %12, align 4
  br label %369

292:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #0
  %293 = load ptr, ptr %13, align 8, !tbaa !5
  %294 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ImplRef4Data13as_BoundedPtrEv(ptr noundef nonnull align 8 dereferenceable(184) %293)
  store ptr %294, ptr %33, align 8, !tbaa !5
  br label %295

295:                                              ; preds = %364, %292
  %296 = load ptr, ptr %33, align 8, !tbaa !5
  %297 = load i8, ptr %32, align 1, !tbaa !11, !range !13, !noundef !14
  %298 = trunc i8 %297 to i1
  br i1 %298, label %300, label %299

299:                                              ; preds = %295
  store i32 20, ptr %12, align 4
  br label %365

300:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #0
  %301 = load ptr, ptr %33, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %301, i32 0, i32 3
  %303 = load ptr, ptr %302, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #0
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %304)
  %305 = invoke ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) %303, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %306 unwind label %315

306:                                              ; preds = %300
  %307 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.272", ptr %34, i32 0, i32 0
  store ptr %305, ptr %307, align 8
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #0
  %308 = load ptr, ptr %33, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %308, i32 0, i32 3
  %310 = load ptr, ptr %309, align 8, !tbaa !28
  %311 = call ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %310) #0
  %312 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.272", ptr %36, i32 0, i32 0
  store ptr %311, ptr %312, align 8
  %313 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %36) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #0
  br i1 %313, label %314, label %319

314:                                              ; preds = %306
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  store i32 1, ptr %12, align 4
  br label %362

315:                                              ; preds = %300
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %9, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %10, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #0
  br label %363

319:                                              ; preds = %306
  br label %320

320:                                              ; preds = %319
  %321 = load ptr, ptr %8, align 8, !tbaa !5
  %322 = call noundef zeroext i1 @_ZNK3HIR10PathParams10has_paramsEv(ptr noundef nonnull align 8 dereferenceable(24) %321)
  br i1 %322, label %323, label %335

323:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #0
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37)
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #0
  call void @"_ZNSt8functionIFvRSoEEC2IZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 1 dereferenceable(1) %39) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef %38)
          to label %324 unwind label %327

324:                                              ; preds = %323
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #0
  %325 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %325, ptr noundef @.str.7)
          to label %326 unwind label %331

326:                                              ; preds = %324
  call void @__cxa_throw(ptr %325, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
  unreachable

327:                                              ; preds = %323
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %9, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #0
  br label %363

331:                                              ; preds = %324
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %9, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %10, align 4
  call void @__cxa_free_exception(ptr %325) #0
  br label %363

335:                                              ; preds = %320
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 104, ptr %40) #0
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #0
  %338 = load ptr, ptr %33, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %338, i32 0, i32 0
  %340 = load ptr, ptr %339, align 8, !tbaa !30
  %341 = icmp ne ptr %340, null
  br i1 %341, label %342, label %346

342:                                              ; preds = %337
  %343 = load ptr, ptr %33, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %343, i32 0, i32 0
  %345 = load ptr, ptr %344, align 8, !tbaa !30
  call void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8 %41, ptr noundef nonnull align 8 dereferenceable(96) %345, i1 noundef zeroext true)
  br label %347

346:                                              ; preds = %337
  call void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %41)
  br label %347

347:                                              ; preds = %346, %342
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %40, ptr noundef nonnull align 8 dereferenceable(24) %41)
          to label %348 unwind label %353

348:                                              ; preds = %347
  %349 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #0
  %350 = getelementptr inbounds %"struct.std::pair.275", ptr %349, i32 0, i32 1
  %351 = getelementptr inbounds %"struct.HIR::TraitPath::AtyEqual", ptr %350, i32 0, i32 1
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %40, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %351, i1 noundef zeroext true)
          to label %352 unwind label %357

352:                                              ; preds = %348
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %40) #0
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #0
  call void @llvm.lifetime.end.p0(i64 104, ptr %40) #0
  store i32 1, ptr %12, align 4
  br label %362

353:                                              ; preds = %347
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %9, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %10, align 4
  br label %361

357:                                              ; preds = %348
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %9, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %10, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %40) #0
  br label %361

361:                                              ; preds = %357, %353
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #0
  call void @llvm.lifetime.end.p0(i64 104, ptr %40) #0
  br label %363

362:                                              ; preds = %352, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #0
  br label %365

363:                                              ; preds = %361, %331, %327, %315
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #0
  br label %451

364:                                              ; No predecessors!
  store i8 0, ptr %32, align 1, !tbaa !11
  br label %295, !llvm.loop !31

365:                                              ; preds = %362, %299
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #0
  %366 = load i32, ptr %12, align 4
  switch i32 %366, label %369 [
    i32 20, label %367
  ]

367:                                              ; preds = %365
  br label %368

368:                                              ; preds = %367
  store i8 0, ptr %32, align 1, !tbaa !11
  br label %288, !llvm.loop !32

369:                                              ; preds = %365, %291
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #0
  %370 = load i32, ptr %12, align 4
  switch i32 %370, label %449 [
    i32 17, label %371
  ]

371:                                              ; preds = %369
  br label %447

372:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #0
  store i8 1, ptr %42, align 1, !tbaa !11
  br label %373

373:                                              ; preds = %443, %372
  %374 = load i8, ptr %42, align 1, !tbaa !11, !range !13, !noundef !14
  %375 = trunc i8 %374 to i1
  br i1 %375, label %377, label %376

376:                                              ; preds = %373
  store i32 25, ptr %12, align 4
  br label %444

377:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #0
  %378 = load ptr, ptr %13, align 8, !tbaa !5
  %379 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNK7ImplRef4Data10as_BoundedEv(ptr noundef nonnull align 8 dereferenceable(184) %378)
  store ptr %379, ptr %43, align 8, !tbaa !5
  br label %380

380:                                              ; preds = %439, %377
  %381 = load ptr, ptr %43, align 8, !tbaa !5
  %382 = load i8, ptr %42, align 1, !tbaa !11, !range !13, !noundef !14
  %383 = trunc i8 %382 to i1
  br i1 %383, label %385, label %384

384:                                              ; preds = %380
  store i32 28, ptr %12, align 4
  br label %440

385:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #0
  %386 = load ptr, ptr %43, align 8, !tbaa !5
  %387 = getelementptr inbounds %"struct.ImplRef::Data::Data_Bounded", ptr %386, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #0
  %388 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef %388)
  %389 = invoke ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) %387, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %390 unwind label %398

390:                                              ; preds = %385
  %391 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.272", ptr %44, i32 0, i32 0
  store ptr %389, ptr %391, align 8
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #0
  %392 = load ptr, ptr %43, align 8, !tbaa !5
  %393 = getelementptr inbounds %"struct.ImplRef::Data::Data_Bounded", ptr %392, i32 0, i32 3
  %394 = call ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %393) #0
  %395 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.272", ptr %46, i32 0, i32 0
  store ptr %394, ptr %395, align 8
  %396 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %46) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #0
  br i1 %396, label %397, label %402

397:                                              ; preds = %390
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  store i32 1, ptr %12, align 4
  br label %437

398:                                              ; preds = %385
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %9, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %10, align 4
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #0
  br label %438

402:                                              ; preds = %390
  br label %403

403:                                              ; preds = %402
  %404 = load ptr, ptr %8, align 8, !tbaa !5
  %405 = call noundef zeroext i1 @_ZNK3HIR10PathParams10has_paramsEv(ptr noundef nonnull align 8 dereferenceable(24) %404)
  br i1 %405, label %406, label %418

406:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #0
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47)
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #0
  call void @"_ZNSt8functionIFvRSoEEC2IZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 1 dereferenceable(1) %49) #0
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %48)
          to label %407 unwind label %410

407:                                              ; preds = %406
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #0
  %408 = call ptr @__cxa_allocate_exception(i64 16) #0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %408, ptr noundef @.str.7)
          to label %409 unwind label %414

409:                                              ; preds = %407
  call void @__cxa_throw(ptr %408, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
  unreachable

410:                                              ; preds = %406
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %9, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #0
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #0
  br label %438

414:                                              ; preds = %407
  %415 = landingpad { ptr, i32 }
          cleanup
  %416 = extractvalue { ptr, i32 } %415, 0
  store ptr %416, ptr %9, align 8
  %417 = extractvalue { ptr, i32 } %415, 1
  store i32 %417, ptr %10, align 4
  call void @__cxa_free_exception(ptr %408) #0
  br label %438

418:                                              ; preds = %403
  br label %419

419:                                              ; preds = %418
  br label %420

420:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 104, ptr %50) #0
  call void @llvm.lifetime.start.p0(i64 24, ptr %51) #0
  %421 = load ptr, ptr %43, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.ImplRef::Data::Data_Bounded", ptr %421, i32 0, i32 0
  call void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8 %51, ptr noundef nonnull align 8 dereferenceable(96) %422, i1 noundef zeroext true)
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %50, ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %423 unwind label %428

423:                                              ; preds = %420
  %424 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #0
  %425 = getelementptr inbounds %"struct.std::pair.275", ptr %424, i32 0, i32 1
  %426 = getelementptr inbounds %"struct.HIR::TraitPath::AtyEqual", ptr %425, i32 0, i32 1
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %50, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %426, i1 noundef zeroext true)
          to label %427 unwind label %432

427:                                              ; preds = %423
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %50) #0
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #0
  call void @llvm.lifetime.end.p0(i64 104, ptr %50) #0
  store i32 1, ptr %12, align 4
  br label %437

428:                                              ; preds = %420
  %429 = landingpad { ptr, i32 }
          cleanup
  %430 = extractvalue { ptr, i32 } %429, 0
  store ptr %430, ptr %9, align 8
  %431 = extractvalue { ptr, i32 } %429, 1
  store i32 %431, ptr %10, align 4
  br label %436

432:                                              ; preds = %423
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %9, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %10, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %50) #0
  br label %436

436:                                              ; preds = %432, %428
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #0
  call void @llvm.lifetime.end.p0(i64 104, ptr %50) #0
  br label %438

437:                                              ; preds = %427, %397
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #0
  br label %440

438:                                              ; preds = %436, %414, %410, %398
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #0
  br label %451

439:                                              ; No predecessors!
  store i8 0, ptr %42, align 1, !tbaa !11
  br label %380, !llvm.loop !33

440:                                              ; preds = %437, %384
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #0
  %441 = load i32, ptr %12, align 4
  switch i32 %441, label %444 [
    i32 28, label %442
  ]

442:                                              ; preds = %440
  br label %443

443:                                              ; preds = %442
  store i8 0, ptr %42, align 1, !tbaa !11
  br label %373, !llvm.loop !34

444:                                              ; preds = %440, %376
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #0
  %445 = load i32, ptr %12, align 4
  switch i32 %445, label %449 [
    i32 25, label %446
  ]

446:                                              ; preds = %444
  br label %447

447:                                              ; preds = %446, %371, %286, %82
  br label %448

448:                                              ; preds = %447
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %78, !llvm.loop !35

449:                                              ; preds = %444, %369, %284, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  %450 = load i32, ptr %12, align 4
  switch i32 %450, label %454 [
    i32 5, label %452
  ]

451:                                              ; preds = %438, %363, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  br label %458

452:                                              ; preds = %449
  br label %453

453:                                              ; preds = %452
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %68, !llvm.loop !36

454:                                              ; preds = %449, %71
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #0
  %455 = load i32, ptr %12, align 4
  switch i32 %455, label %463 [
    i32 2, label %456
    i32 1, label %457
  ]

456:                                              ; preds = %454
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %457

457:                                              ; preds = %456, %454, %57
  ret void

458:                                              ; preds = %451, %72
  %459 = load ptr, ptr %9, align 8
  %460 = load i32, ptr %10, align 4
  %461 = insertvalue { ptr, i32 } poison, ptr %459, 0
  %462 = insertvalue { ptr, i32 } %461, i32 %460, 1
  resume { ptr, i32 } %462

463:                                              ; preds = %454
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3HIR7TypeRef8new_selfEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7ImplRef(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(184)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

declare noundef zeroext i1 @_Z24monomorphise_type_neededRKN3HIR7TypeRefEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #8

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!"branch_weights", i32 1, i32 1048575}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 40}
!16 = !{!"_ZTSN7ImplRef4Data14Data_TraitImplE", !17, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !21, i64 48}
!17 = !{!"_ZTSN3HIR10PathParamsE", !18, i64 0, !19, i64 8, !20, i64 16}
!18 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !6, i64 0}
!19 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !6, i64 0}
!20 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !6, i64 0}
!21 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!22 = !{!16, !6, i64 24}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!29, !6, i64 24}
!29 = !{!"_ZTSN7ImplRef4Data15Data_BoundedPtrE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!30 = !{!29, !6, i64 0}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !26}


; 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.Span = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.ImplRef::Monomorph" = type { %class.Monomorphiser, ptr, ptr }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.196" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.196" = type { %"struct.std::_Vector_base.197" }
%"struct.std::_Vector_base.197" = 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 }
%"struct.HIR::PathParams" = type { %class.ThinVector, %class.ThinVector.0, %class.ThinVector.1 }
%class.ThinVector = type { ptr }
%class.ThinVector.0 = type { ptr }
%class.ThinVector.1 = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.RcString = type { ptr }
%struct.MonomorphStatePtr = type { %class.MonomorphiserPP, ptr, ptr, ptr, ptr }
%class.MonomorphiserPP = type { %class.Monomorphiser }
%"struct.std::_Rb_tree_const_iterator.272" = type { ptr }
%"class.std::function.201" = 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.273 = type { i8 }
%struct.MonomorphHrlsOnly = type { %class.Monomorphiser, ptr }
%class.anon.277 = type { i8 }

@__dso_handle = external hidden global i8
@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp = external hidden global %struct.Span, align 8
@_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp = external hidden global i64, align 8
@__PRETTY_FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE = external hidden unnamed_addr constant [78 x i8], align 1
@_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self = external hidden global %"class.HIR::TypeRef", align 8
@_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self = external hidden global i64, align 8
@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind noalias writable sret(%"class.ImplRef::Monomorph") align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

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

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #8

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

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #8

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #8

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

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

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

declare void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) unnamed_addr #8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind noalias writable sret(%"struct.HIR::PathParams") align 8, ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104), 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %class.RcString, align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %class.RcString, align 8
  %9 = alloca %class.RcString, align 8
  %10 = alloca %"class.HIR::TypeRef", align 8
  %11 = alloca %"class.HIR::TypeRef", align 8
  %12 = alloca %struct.MonomorphStatePtr, align 8
  %13 = alloca %class.RcString, align 8
  %14 = alloca %"class.ImplRef::Monomorph", align 8
  %15 = alloca %"class.ImplRef::Monomorph", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %17 = alloca %class.RcString, align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %19 = alloca %struct.Span, align 8
  %20 = alloca %"class.std::function.201", align 8
  %21 = alloca %class.anon.273, align 1
  %22 = alloca %struct.MonomorphHrlsOnly, align 8
  %23 = alloca %"struct.HIR::PathParams", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %25 = alloca %class.RcString, align 8
  %26 = alloca %"struct.std::_Rb_tree_const_iterator.272", align 8
  %27 = alloca %struct.Span, align 8
  %28 = alloca %"class.std::function.201", align 8
  %29 = alloca %class.anon.277, align 1
  %30 = alloca %struct.MonomorphHrlsOnly, align 8
  %31 = alloca %"struct.HIR::PathParams", align 8
  %32 = load i8, ptr %2, align 1, !tbaa !5
  %.not = icmp eq i8 %32, 0
  br i1 %.not, label %33, label %34

33:                                               ; preds = %4
  tail call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %210

34:                                               ; preds = %4
  %35 = load atomic i8, ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp acquire, align 8
  %36 = icmp eq i8 %35, 0
  br i1 %36, label %37, label %.preheader.preheader, !prof !8

37:                                               ; preds = %34
  %38 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp) #9
  %.not103 = icmp eq i32 %38, 0
  br i1 %.not103, label %.preheader.preheader, label %39

39:                                               ; preds = %37
  tail call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp)
  %40 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN4SpanD1Ev, ptr nonnull @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr nonnull @__dso_handle) #9
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp) #9
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %34, %37, %39
  %41 = tail call noundef i32 @_ZNK7ImplRef4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  switch i32 %41, label %.loopexit [
    i32 0, label %.split136.us
    i32 1, label %.split138.us
    i32 2, label %.split140.us
    i32 3, label %.split142.us
  ], !llvm.loop !9

.split136.us:                                     ; preds = %.preheader.preheader
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 235, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE) #10
  unreachable

.split138.us:                                     ; preds = %.preheader.preheader
  %42 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7ImplRef4Data12as_TraitImplEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %43 = getelementptr inbounds i8, ptr %42, i64 40
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %44, i64 272
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %2)
  %46 = invoke ptr @_ZNKSt3mapI8RcStringN3HIR9TraitImpl7ImplEntINS1_7TypeRefEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE4findERS9_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %47 unwind label %87

47:                                               ; preds = %.split138.us
  store ptr %46, ptr %5, align 8
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %48 = load ptr, ptr %43, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %48, i64 272
  %50 = call ptr @_ZNKSt3mapI8RcStringN3HIR9TraitImpl7ImplEntINS1_7TypeRefEEESt4lessIS0_ESaISt4pairIKS0_S5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %49) #9
  store ptr %50, ptr %7, align 8
  %51 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitImpl7ImplEntINS3_7TypeRefEEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br i1 %51, label %52, label %117

52:                                               ; preds = %47
  %53 = load atomic i8, ptr @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self acquire, align 8
  %54 = icmp eq i8 %53, 0
  br i1 %54, label %55, label %60, !prof !8

55:                                               ; preds = %52
  %56 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self) #9
  %.not112 = icmp eq i32 %56, 0
  br i1 %.not112, label %60, label %57

57:                                               ; preds = %55
  invoke void @_ZN3HIR7TypeRef8new_selfEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self)
          to label %58 unwind label %89

58:                                               ; preds = %57
  %59 = call i32 @__cxa_atexit(ptr nonnull @_ZN3HIR7TypeRefD2Ev, ptr nonnull @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self, ptr nonnull @__dso_handle) #9
  call void @__cxa_guard_release(ptr nonnull @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self) #9
  br label %60

60:                                               ; preds = %58, %55, %52
  %61 = getelementptr inbounds i8, ptr %42, i64 24
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds i8, ptr %62, i64 136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %2)
  %64 = invoke noundef i64 @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE5countERS8_(ptr noundef nonnull align 8 dereferenceable(56) %63, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %65 unwind label %91

65:                                               ; preds = %60
  %.not113.not = icmp eq i64 %64, 0
  br i1 %.not113.not, label %.critedge127.thread, label %66

.critedge127.thread:                              ; preds = %65
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %116

66:                                               ; preds = %65
  %67 = load ptr, ptr %61, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  invoke void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %2)
          to label %68 unwind label %93

68:                                               ; preds = %66
  %69 = getelementptr inbounds i8, ptr %67, i64 136
  %70 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56) %69, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %71 unwind label %95

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %72 unwind label %97

72:                                               ; preds = %71
  %73 = getelementptr inbounds i8, ptr %70, i64 128
  %74 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefneERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %.critedge127 unwind label %99

.critedge127:                                     ; preds = %72
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br i1 %74, label %75, label %116

75:                                               ; preds = %.critedge127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #9
  %76 = load ptr, ptr %43, align 8, !tbaa !11
  %77 = getelementptr inbounds i8, ptr %76, i64 96
  call void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self, ptr noundef nonnull %77, ptr noundef null, ptr noundef null, ptr noundef null)
  %78 = load ptr, ptr %61, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  invoke void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %2)
          to label %79 unwind label %105

79:                                               ; preds = %75
  %80 = getelementptr inbounds i8, ptr %78, i64 136
  %81 = invoke noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %82 unwind label %107

82:                                               ; preds = %79
  %83 = getelementptr inbounds i8, ptr %81, i64 128
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %11, ptr noundef nonnull align 8 dereferenceable(96) %12, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %83, i1 noundef zeroext true)
          to label %84 unwind label %107

84:                                               ; preds = %82
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %14) #9
  invoke void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind nonnull writable sret(%"class.ImplRef::Monomorph") align 8 %14, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %85 unwind label %110

85:                                               ; preds = %84
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %14, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %11, i1 noundef zeroext true)
          to label %86 unwind label %112

86:                                               ; preds = %85
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %14) #9
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %14) #9
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %139

87:                                               ; preds = %.split138.us
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %140

89:                                               ; preds = %57
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE7ty_self) #9
  br label %140

91:                                               ; preds = %60
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %104

93:                                               ; preds = %66
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %103

95:                                               ; preds = %68
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %102

97:                                               ; preds = %71
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %101

99:                                               ; preds = %72
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %101

101:                                              ; preds = %97, %99
  %.pn114 = phi { ptr, i32 } [ %100, %99 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %102

102:                                              ; preds = %95, %101
  %.pn114.pn = phi { ptr, i32 } [ %.pn114, %101 ], [ %96, %95 ]
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %103

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

104:                                              ; preds = %103, %91
  %.pn114.pn.pn.pn = phi { ptr, i32 } [ %.pn114.pn.pn, %103 ], [ %92, %91 ]
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %140

105:                                              ; preds = %75
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %109

107:                                              ; preds = %82, %79
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %109

109:                                              ; preds = %107, %105
  %.pn119 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %12) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #9
  br label %115

110:                                              ; preds = %84
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %114

112:                                              ; preds = %85
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %14) #9
  br label %114

114:                                              ; preds = %112, %110
  %.pn121 = phi { ptr, i32 } [ %113, %112 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %14) #9
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %115

115:                                              ; preds = %114, %109
  %.pn121.pn = phi { ptr, i32 } [ %.pn121, %114 ], [ %.pn119, %109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %140

116:                                              ; preds = %.critedge127.thread, %.critedge127
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %139

117:                                              ; preds = %47
  %118 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitImpl7ImplEntINS3_7TypeRefEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  %119 = getelementptr inbounds i8, ptr %118, i64 16
  %120 = call noundef zeroext i1 @_Z13debug_enabledv()
  br i1 %120, label %121, label %132

121:                                              ; preds = %117
  %122 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !20
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %122, ptr noundef nonnull @__FUNCTION__._ZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsE)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @.str.8)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull %2)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.9)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_7TypeRefE(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull align 8 dereferenceable(8) %119)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.10)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7ImplRef(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(184) %1)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %132

132:                                              ; preds = %121, %117
  %133 = call noundef zeroext i1 @_Z24monomorphise_type_neededRKN3HIR7TypeRefEb(ptr noundef nonnull align 8 dereferenceable(8) %119, i1 noundef zeroext false)
  br i1 %133, label %134, label %138

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %15) #9
  call void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind nonnull writable sret(%"class.ImplRef::Monomorph") align 8 %15, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(24) %3)
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %119, i1 noundef zeroext true)
          to label %135 unwind label %136

135:                                              ; preds = %134
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #9
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %15) #9
  br label %139

136:                                              ; preds = %134
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #9
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %15) #9
  br label %140

138:                                              ; preds = %132
  call void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %119)
  br label %139

139:                                              ; preds = %135, %138, %116, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %210

140:                                              ; preds = %136, %115, %104, %89, %87
  %.pn121.pn.pn = phi { ptr, i32 } [ %.pn121.pn, %115 ], [ %.pn114.pn.pn.pn, %104 ], [ %90, %89 ], [ %137, %136 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %209

.split140.us:                                     ; preds = %.preheader.preheader
  %141 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ImplRef4Data13as_BoundedPtrEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %142 = getelementptr inbounds i8, ptr %141, i64 24
  %143 = load ptr, ptr %142, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull %2)
  %144 = invoke ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) %143, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %145 unwind label %150

145:                                              ; preds = %.split140.us
  store ptr %144, ptr %16, align 8
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %146 = load ptr, ptr %142, align 8, !tbaa !22
  %147 = call ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %146) #9
  store ptr %147, ptr %18, align 8
  %148 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br i1 %148, label %149, label %152

149:                                              ; preds = %145
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %176

150:                                              ; preds = %.split140.us
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br label %177

152:                                              ; preds = %145
  %153 = call noundef zeroext i1 @_ZNK3HIR10PathParams10has_paramsEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  br i1 %153, label %154, label %162

154:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %20)
          to label %155 unwind label %158

155:                                              ; preds = %154
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  %156 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %156, ptr noundef nonnull @.str.7)
          to label %157 unwind label %160

157:                                              ; preds = %155
  call void @__cxa_throw(ptr nonnull %156, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
  unreachable

158:                                              ; preds = %154
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %177

160:                                              ; preds = %155
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %156) #9
  br label %177

162:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #9
  %163 = load ptr, ptr %141, align 8, !tbaa !24
  %.not107 = icmp eq ptr %163, null
  br i1 %.not107, label %165, label %164

164:                                              ; preds = %162
  call void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::PathParams") align 8 %23, ptr noundef nonnull align 8 dereferenceable(96) %163, i1 noundef zeroext true)
  br label %166

165:                                              ; preds = %162
  call void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23)
  br label %166

166:                                              ; preds = %165, %164
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %167 unwind label %171

167:                                              ; preds = %166
  %168 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %169 = getelementptr inbounds i8, ptr %168, i64 40
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %22, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %169, i1 noundef zeroext true)
          to label %170 unwind label %173

170:                                              ; preds = %167
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %22) #9
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %22) #9
  br label %176

171:                                              ; preds = %166
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %167
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %22) #9
  br label %175

175:                                              ; preds = %173, %171
  %.pn108 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %22) #9
  br label %177

176:                                              ; preds = %170, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %210

177:                                              ; preds = %175, %160, %158, %150
  %.pn110 = phi { ptr, i32 } [ %161, %160 ], [ %159, %158 ], [ %.pn108, %175 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %209

.split142.us:                                     ; preds = %.preheader.preheader
  %178 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNK7ImplRef4Data10as_BoundedEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  %179 = getelementptr inbounds i8, ptr %178, i64 128
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #9
  call void @_ZN8RcStringC2EPKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull %2)
  %180 = invoke ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) %179, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %181 unwind label %185

181:                                              ; preds = %.split142.us
  store ptr %180, ptr %24, align 8
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  %182 = call ptr @_ZNKSt3mapI8RcStringN3HIR9TraitPath8AtyEqualESt4lessIS0_ESaISt4pairIKS0_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %179) #9
  store ptr %182, ptr %26, align 8
  %183 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  br i1 %183, label %184, label %187

184:                                              ; preds = %181
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %207

185:                                              ; preds = %.split142.us
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  br label %208

187:                                              ; preds = %181
  %188 = call noundef zeroext i1 @_ZNK3HIR10PathParams10has_paramsEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  br i1 %188, label %189, label %197

189:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #9
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #9
  call void @"_ZNSt8functionIFvRSoEEC2IZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull %28)
          to label %190 unwind label %193

190:                                              ; preds = %189
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #9
  %191 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %191, ptr noundef nonnull @.str.7)
          to label %192 unwind label %195

192:                                              ; preds = %190
  call void @__cxa_throw(ptr nonnull %191, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
  unreachable

193:                                              ; preds = %189
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #9
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #9
  br label %208

195:                                              ; preds = %190
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %191) #9
  br label %208

197:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #9
  call void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::PathParams") align 8 %31, ptr noundef nonnull align 8 dereferenceable(96) %178, i1 noundef zeroext true)
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %30, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %198 unwind label %202

198:                                              ; preds = %197
  %199 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIK8RcStringN3HIR9TraitPath8AtyEqualEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  %200 = getelementptr inbounds i8, ptr %199, i64 40
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %30, ptr noundef nonnull align 8 dereferenceable(8) @_ZZNK7ImplRef8get_typeEPKcRKN3HIR10PathParamsEE2sp, ptr noundef nonnull align 8 dereferenceable(8) %200, i1 noundef zeroext true)
          to label %201 unwind label %204

201:                                              ; preds = %198
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %30) #9
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %30) #9
  br label %207

202:                                              ; preds = %197
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %206

204:                                              ; preds = %198
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %30) #9
  br label %206

206:                                              ; preds = %204, %202
  %.pn = phi { ptr, i32 } [ %205, %204 ], [ %203, %202 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %30) #9
  br label %208

207:                                              ; preds = %201, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  br label %210

208:                                              ; preds = %206, %195, %193, %185
  %.pn105 = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ], [ %.pn, %206 ], [ %186, %185 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  br label %209

209:                                              ; preds = %208, %177, %140
  %.pn105.pn = phi { ptr, i32 } [ %.pn105, %208 ], [ %.pn110, %177 ], [ %.pn121.pn.pn, %140 ]
  resume { ptr, i32 } %.pn105.pn

.loopexit:                                        ; preds = %.preheader.preheader
  tail call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %210

210:                                              ; preds = %139, %176, %207, %.loopexit, %33
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3HIR7TypeRef8new_selfEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(136) ptr @_ZNKSt13unordered_mapI8RcStringN3HIR14AssociatedTypeESt4hashIS0_ESt8equal_toIS0_ESaISt4pairIKS0_S2_EEE2atERS8_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7ImplRef(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

declare noundef zeroext i1 @_Z24monomorphise_type_neededRKN3HIR7TypeRefEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #8

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

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

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

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

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

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

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

attributes #0 = { nofree nounwind }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { "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 }
attributes #11 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!"branch_weights", i32 1, i32 1048575}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !15, i64 40}
!12 = !{!"_ZTSN7ImplRef4Data14Data_TraitImplE", !13, i64 0, !15, i64 24, !15, i64 32, !15, i64 40, !18, i64 48}
!13 = !{!"_ZTSN3HIR10PathParamsE", !14, i64 0, !16, i64 8, !17, i64 16}
!14 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !15, i64 0}
!17 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !15, i64 0}
!18 = !{!"_ZTSN3HIR7TypeRefE", !15, i64 0}
!19 = !{!12, !15, i64 24}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !6, i64 0}
!22 = !{!23, !15, i64 24}
!23 = !{!"_ZTSN7ImplRef4Data15Data_BoundedPtrE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!24 = !{!23, !15, i64 0}


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