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

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

%"class.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 }
%"class.HIR::TypeRef" = type { 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.Span = 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.210 = type { i8 }
%struct.MonomorphHrlsOnly = type { %class.Monomorphiser, ptr }
%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 }
%"struct.ImplRef::Data::Data_BoundedPtr" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__PRETTY_FUNCTION__._ZNK7ImplRef18get_trait_ty_paramEj = external hidden unnamed_addr constant [63 x i8], align 1

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @__cxa_free_exception(ptr)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7ImplRef18get_trait_ty_paramEj(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, i32 noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.Span, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca %struct.Span, align 8
  %16 = alloca %"class.std::function.201", align 8
  %17 = alloca %class.anon.210, align 1
  %18 = alloca %"class.ImplRef::Monomorph", align 8
  %19 = alloca %"struct.HIR::PathParams", align 8
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca %struct.MonomorphHrlsOnly, align 8
  %23 = alloca %"struct.HIR::PathParams", align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca %struct.MonomorphHrlsOnly, align 8
  %27 = alloca %"struct.HIR::PathParams", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %28 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  store i8 1, ptr %8, align 1, !tbaa !11
  br label %29

29:                                               ; preds = %288, %3
  %30 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %31 = trunc i8 %30 to i1
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 2, ptr %9, align 4
  br label %289

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %34 = getelementptr inbounds %struct.ImplRef, ptr %28, i32 0, i32 0
  store ptr %34, ptr %10, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %283, %33
  %36 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %37 = trunc i8 %36 to i1
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 5, ptr %9, align 4
  br label %284

39:                                               ; preds = %35
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = invoke noundef i32 @_ZNK7ImplRef4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %40)
          to label %42 unwind label %43

42:                                               ; preds = %39
  switch i32 %41, label %282 [
    i32 0, label %47
    i32 1, label %48
    i32 2, label %141
    i32 3, label %217
  ]

43:                                               ; preds = %39
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %11, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %12, align 4
  br label %286

47:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 205, ptr noundef @__PRETTY_FUNCTION__._ZNK7ImplRef18get_trait_ty_paramEj) #9
  unreachable

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  store i8 1, ptr %13, align 1, !tbaa !11
  br label %49

49:                                               ; preds = %137, %48
  %50 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %51 = trunc i8 %50 to i1
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 9, ptr %9, align 4
  br label %138

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7ImplRef4Data12as_TraitImplEv(ptr noundef nonnull align 8 dereferenceable(184) %54)
          to label %56 unwind label %62

56:                                               ; preds = %53
  store ptr %55, ptr %14, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %132, %56
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %66, label %61

61:                                               ; preds = %57
  store i32 12, ptr %9, align 4
  br label %133

62:                                               ; preds = %103, %92, %76, %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  br label %135

66:                                               ; preds = %57
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %92

71:                                               ; preds = %66
  br label %72

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  invoke void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %73 unwind label %77

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  call void @"_ZNSt8functionIFvRSoEEC2IZNK7ImplRef18get_trait_ty_paramEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %16)
          to label %74 unwind label %81

74:                                               ; preds = %73
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %75 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef @.str.7)
          to label %76 unwind label %86

76:                                               ; preds = %74
  invoke void @__cxa_throw(ptr %75, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %304 unwind label %62

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  br label %85

81:                                               ; preds = %73
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %85

85:                                               ; preds = %81, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %135

86:                                               ; preds = %74
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  call void @__cxa_free_exception(ptr %75) #8
  br label %135

90:                                               ; No predecessors!
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %66
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.ImplRef::Data::Data_TraitImpl", ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !15
  %98 = getelementptr inbounds %"class.HIR::TraitImpl", ptr %97, i32 0, i32 1
  %99 = getelementptr inbounds %"struct.HIR::PathParams", ptr %98, i32 0, i32 1
  %100 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %99)
          to label %101 unwind label %62

101:                                              ; preds = %92
  %102 = icmp uge i64 %94, %100
  br i1 %102, label %103, label %105

103:                                              ; preds = %101
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %104 unwind label %62

104:                                              ; preds = %103
  store i32 1, ptr %9, align 4
  br label %133

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 112, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %106 unwind label %118

106:                                              ; preds = %105
  invoke void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind writable sret(%"class.ImplRef::Monomorph") align 8 %18, ptr noundef nonnull align 8 dereferenceable(184) %28, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %107 unwind label %122

107:                                              ; preds = %106
  %108 = load ptr, ptr %14, 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 1
  %112 = getelementptr inbounds %"struct.HIR::PathParams", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %112, i64 noundef %114)
          to label %116 unwind label %126

116:                                              ; preds = %107
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %115, i1 noundef zeroext true)
          to label %117 unwind label %126

117:                                              ; preds = %116
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %18) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %18) #8
  store i32 1, ptr %9, align 4
  br label %133

118:                                              ; preds = %105
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %11, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %12, align 4
  br label %131

122:                                              ; preds = %106
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %11, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %12, align 4
  br label %130

126:                                              ; preds = %116, %107
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %18) #8
  br label %130

130:                                              ; preds = %126, %122
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %131

131:                                              ; preds = %130, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %18) #8
  br label %135

132:                                              ; No predecessors!
  store i8 0, ptr %13, align 1, !tbaa !11
  br label %57, !llvm.loop !22

133:                                              ; preds = %117, %104, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %134 = load i32, ptr %9, align 4
  switch i32 %134, label %138 [
    i32 12, label %136
  ]

135:                                              ; preds = %131, %86, %85, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %286

136:                                              ; preds = %133
  br label %137

137:                                              ; preds = %136
  store i8 0, ptr %13, align 1, !tbaa !11
  br label %49, !llvm.loop !24

138:                                              ; preds = %133, %52
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  %139 = load i32, ptr %9, align 4
  switch i32 %139, label %284 [
    i32 9, label %140
  ]

140:                                              ; preds = %138
  br label %282

141:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  store i8 1, ptr %20, align 1, !tbaa !11
  br label %142

142:                                              ; preds = %213, %141
  %143 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %144 = trunc i8 %143 to i1
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  store i32 17, ptr %9, align 4
  br label %214

146:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ImplRef4Data13as_BoundedPtrEv(ptr noundef nonnull align 8 dereferenceable(184) %147)
          to label %149 unwind label %155

149:                                              ; preds = %146
  store ptr %148, ptr %21, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %208, %149
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %153 = trunc i8 %152 to i1
  br i1 %153, label %159, label %154

154:                                              ; preds = %150
  store i32 20, ptr %9, align 4
  br label %209

155:                                              ; preds = %169, %159, %146
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %11, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %12, align 4
  br label %211

159:                                              ; preds = %150
  %160 = load i32, ptr %6, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %162, i32 0, i32 2
  %164 = load ptr, ptr %163, align 8, !tbaa !25
  %165 = getelementptr inbounds %"struct.HIR::PathParams", ptr %164, i32 0, i32 1
  %166 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %165)
          to label %167 unwind label %155

167:                                              ; preds = %159
  %168 = icmp uge i64 %161, %166
  br i1 %168, label %169, label %171

169:                                              ; preds = %167
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %170 unwind label %155

170:                                              ; preds = %169
  store i32 1, ptr %9, align 4
  br label %209

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 104, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  %172 = load ptr, ptr %21, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !27
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %181

176:                                              ; preds = %171
  %177 = load ptr, ptr %21, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !27
  invoke void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8 %23, ptr noundef nonnull align 8 dereferenceable(96) %179, i1 noundef zeroext true)
          to label %180 unwind label %194

180:                                              ; preds = %176
  br label %183

181:                                              ; preds = %171
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %182 unwind label %194

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182, %180
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %184 unwind label %198

184:                                              ; preds = %183
  %185 = load ptr, ptr %21, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.ImplRef::Data::Data_BoundedPtr", ptr %185, i32 0, i32 2
  %187 = load ptr, ptr %186, align 8, !tbaa !25
  %188 = getelementptr inbounds %"struct.HIR::PathParams", ptr %187, i32 0, i32 1
  %189 = load i32, ptr %6, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEE2atEm(ptr noundef nonnull align 8 dereferenceable(8) %188, i64 noundef %190)
          to label %192 unwind label %202

192:                                              ; preds = %184
  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) %7, ptr noundef nonnull align 8 dereferenceable(8) %191, i1 noundef zeroext true)
          to label %193 unwind label %202

193:                                              ; preds = %192
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %22) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %22) #8
  store i32 1, ptr %9, align 4
  br label %209

194:                                              ; preds = %181, %176
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %11, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %12, align 4
  br label %207

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

202:                                              ; preds = %192, %184
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %11, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %12, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %22) #8
  br label %206

206:                                              ; preds = %202, %198
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br label %207

207:                                              ; preds = %206, %194
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %22) #8
  br label %211

208:                                              ; No predecessors!
  store i8 0, ptr %20, align 1, !tbaa !11
  br label %150, !llvm.loop !28

209:                                              ; preds = %193, %170, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %210 = load i32, ptr %9, align 4
  switch i32 %210, label %214 [
    i32 20, label %212
  ]

211:                                              ; preds = %207, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  br label %286

212:                                              ; preds = %209
  br label %213

213:                                              ; preds = %212
  store i8 0, ptr %20, align 1, !tbaa !11
  br label %142, !llvm.loop !29

214:                                              ; preds = %209, %145
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  %215 = load i32, ptr %9, align 4
  switch i32 %215, label %284 [
    i32 17, label %216
  ]

216:                                              ; preds = %214
  br label %282

217:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  store i8 1, ptr %24, align 1, !tbaa !11
  br label %218

218:                                              ; preds = %278, %217
  %219 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %220 = trunc i8 %219 to i1
  br i1 %220, label %222, label %221

221:                                              ; preds = %218
  store i32 23, ptr %9, align 4
  br label %279

222:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = invoke noundef nonnull align 8 dereferenceable(176) ptr @_ZNK7ImplRef4Data10as_BoundedEv(ptr noundef nonnull align 8 dereferenceable(184) %223)
          to label %225 unwind label %231

225:                                              ; preds = %222
  store ptr %224, ptr %25, align 8, !tbaa !5
  br label %226

226:                                              ; preds = %273, %225
  %227 = load ptr, ptr %25, align 8, !tbaa !5
  %228 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %229 = trunc i8 %228 to i1
  br i1 %229, label %235, label %230

230:                                              ; preds = %226
  store i32 26, ptr %9, align 4
  br label %274

231:                                              ; preds = %244, %235, %222
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %11, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %12, align 4
  br label %276

235:                                              ; preds = %226
  %236 = load i32, ptr %6, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = load ptr, ptr %25, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.ImplRef::Data::Data_Bounded", ptr %238, i32 0, i32 2
  %240 = getelementptr inbounds %"struct.HIR::PathParams", ptr %239, i32 0, i32 1
  %241 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %240)
          to label %242 unwind label %231

242:                                              ; preds = %235
  %243 = icmp uge i64 %237, %241
  br i1 %243, label %244, label %246

244:                                              ; preds = %242
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %245 unwind label %231

245:                                              ; preds = %244
  store i32 1, ptr %9, align 4
  br label %274

246:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 104, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  %247 = load ptr, ptr %25, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.ImplRef::Data::Data_Bounded", ptr %247, i32 0, i32 0
  invoke void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind writable sret(%"struct.HIR::PathParams") align 8 %27, ptr noundef nonnull align 8 dereferenceable(96) %248, i1 noundef zeroext true)
          to label %249 unwind label %259

249:                                              ; preds = %246
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %250 unwind label %263

250:                                              ; preds = %249
  %251 = load ptr, ptr %25, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.ImplRef::Data::Data_Bounded", ptr %251, i32 0, i32 2
  %253 = getelementptr inbounds %"struct.HIR::PathParams", ptr %252, i32 0, i32 1
  %254 = load i32, ptr %6, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEE2atEm(ptr noundef nonnull align 8 dereferenceable(8) %253, i64 noundef %255)
          to label %257 unwind label %267

257:                                              ; preds = %250
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %26, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %256, i1 noundef zeroext true)
          to label %258 unwind label %267

258:                                              ; preds = %257
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %26) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %26) #8
  store i32 1, ptr %9, align 4
  br label %274

259:                                              ; preds = %246
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %11, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %12, align 4
  br label %272

263:                                              ; preds = %249
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %11, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %12, align 4
  br label %271

267:                                              ; preds = %257, %250
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %11, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %12, align 4
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %26) #8
  br label %271

271:                                              ; preds = %267, %263
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  br label %272

272:                                              ; preds = %271, %259
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %26) #8
  br label %276

273:                                              ; No predecessors!
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %226, !llvm.loop !30

274:                                              ; preds = %258, %245, %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  %275 = load i32, ptr %9, align 4
  switch i32 %275, label %279 [
    i32 26, label %277
  ]

276:                                              ; preds = %272, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %286

277:                                              ; preds = %274
  br label %278

278:                                              ; preds = %277
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %218, !llvm.loop !31

279:                                              ; preds = %274, %221
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  %280 = load i32, ptr %9, align 4
  switch i32 %280, label %284 [
    i32 23, label %281
  ]

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %281, %216, %140, %42
  br label %283

283:                                              ; preds = %282
  store i8 0, ptr %8, align 1, !tbaa !11
  br label %35, !llvm.loop !32

284:                                              ; preds = %279, %214, %138, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %285 = load i32, ptr %9, align 4
  switch i32 %285, label %289 [
    i32 5, label %287
  ]

286:                                              ; preds = %276, %211, %135, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %298

287:                                              ; preds = %284
  br label %288

288:                                              ; preds = %287
  store i8 0, ptr %8, align 1, !tbaa !11
  br label %29, !llvm.loop !33

289:                                              ; preds = %284, %32
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  %290 = load i32, ptr %9, align 4
  switch i32 %290, label %297 [
    i32 2, label %291
  ]

291:                                              ; preds = %289
  %292 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.6, ptr %292, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %292, ptr @_ZTIPKc, ptr null) #10
          to label %304 unwind label %293

293:                                              ; preds = %291
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %11, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %12, align 4
  br label %298

297:                                              ; preds = %289
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret void

298:                                              ; preds = %293, %286
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %299

299:                                              ; preds = %298
  %300 = load ptr, ptr %11, align 8
  %301 = load i32, ptr %12, align 4
  %302 = insertvalue { ptr, i32 } poison, ptr %300, 0
  %303 = insertvalue { ptr, i32 } %302, i32 %301, 1
  resume { ptr, i32 } %303

304:                                              ; preds = %291, %76
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!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 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !6, i64 16}
!26 = !{!"_ZTSN7ImplRef4Data15Data_BoundedPtrE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!26, !6, i64 0}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}


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

%"class.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 }
%"class.HIR::TypeRef" = type { 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.Span = 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.210 = type { i8 }
%struct.MonomorphHrlsOnly = type { %class.Monomorphiser, ptr }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__PRETTY_FUNCTION__._ZNK7ImplRef18get_trait_ty_paramEj = external hidden unnamed_addr constant [63 x i8], align 1

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7ImplRef18get_trait_ty_paramEj(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
.preheader:
  %3 = alloca %struct.Span, align 8
  %4 = alloca %struct.Span, align 8
  %5 = alloca %"class.std::function.201", align 8
  %6 = alloca %class.anon.210, align 1
  %7 = alloca %"class.ImplRef::Monomorph", align 8
  %8 = alloca %"struct.HIR::PathParams", align 8
  %9 = alloca %struct.MonomorphHrlsOnly, align 8
  %10 = alloca %"struct.HIR::PathParams", align 8
  %11 = alloca %struct.MonomorphHrlsOnly, align 8
  %12 = alloca %"struct.HIR::PathParams", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %13 = call noundef i32 @_ZNK7ImplRef4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  switch i32 %13, label %.critedge98 [
    i32 0, label %.split105.us
    i32 1, label %.split107.us
    i32 2, label %.split109.us
    i32 3, label %.split112.us
  ], !llvm.loop !5

.split105.us:                                     ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 205, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7ImplRef18get_trait_ty_paramEj) #9
  unreachable

.split107.us:                                     ; preds = %.preheader
  %14 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK7ImplRef4Data12as_TraitImplEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %15 = getelementptr inbounds i8, ptr %14, i64 40
  %16 = load ptr, ptr %15, align 8, !tbaa !7
  %17 = icmp eq ptr %16, null
  br i1 %17, label %20, label %28

18:                                               ; preds = %33, %28, %23
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %104

20:                                               ; preds = %.split107.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @"_ZNSt8functionIFvRSoEEC2IZNK7ImplRef18get_trait_ty_paramEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %5)
          to label %21 unwind label %24

21:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %22 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull @.str.7)
          to label %23 unwind label %26

23:                                               ; preds = %21
  invoke void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %105 unwind label %18

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

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %22) #8
  br label %104

28:                                               ; preds = %.split107.us
  %29 = zext i32 %2 to i64
  %30 = getelementptr inbounds i8, ptr %16, i64 104
  %31 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %32 unwind label %18

32:                                               ; preds = %28
  %.not88 = icmp ugt i64 %31, %29
  br i1 %.not88, label %34, label %33

33:                                               ; preds = %32
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %103 unwind label %18

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %35 unwind label %41

35:                                               ; preds = %34
  invoke void @_ZNK7ImplRef26get_cb_monomorph_traitimplERK4SpanRKN3HIR10PathParamsE(ptr dead_on_unwind nonnull writable sret(%"class.ImplRef::Monomorph") align 8 %7, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %36 unwind label %43

36:                                               ; preds = %35
  %37 = load ptr, ptr %15, align 8, !tbaa !7
  %38 = getelementptr inbounds i8, ptr %37, i64 104
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8) %38, i64 noundef %29)
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %7, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %39, i1 noundef zeroext true)
          to label %40 unwind label %45

40:                                               ; preds = %36
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %7) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %7) #8
  br label %103

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

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %36
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %7) #8
  br label %47

47:                                               ; preds = %45, %43
  %.pn89 = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %48

48:                                               ; preds = %47, %41
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %47 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %7) #8
  br label %104

.split109.us:                                     ; preds = %.preheader
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7ImplRef4Data13as_BoundedPtrEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %50 = zext i32 %2 to i64
  %51 = getelementptr inbounds i8, ptr %49, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %57 unwind label %55

55:                                               ; preds = %58, %.split109.us
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %104

57:                                               ; preds = %.split109.us
  %.not81 = icmp ugt i64 %54, %50
  br i1 %.not81, label %59, label %58

58:                                               ; preds = %57
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %103 unwind label %55

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  %60 = load ptr, ptr %49, align 8, !tbaa !19
  %.not82 = icmp eq ptr %60, null
  br i1 %.not82, label %62, label %61

61:                                               ; preds = %59
  invoke void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::PathParams") align 8 %10, ptr noundef nonnull align 8 dereferenceable(96) %60, i1 noundef zeroext true)
          to label %63 unwind label %70

62:                                               ; preds = %59
  invoke void @_ZN3HIR10PathParamsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %63 unwind label %70

63:                                               ; preds = %62, %61
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %64 unwind label %72

64:                                               ; preds = %63
  %65 = load ptr, ptr %51, align 8, !tbaa !17
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEE2atEm(ptr noundef nonnull align 8 dereferenceable(8) %66, i64 noundef %50)
          to label %68 unwind label %74

68:                                               ; preds = %64
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %9, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %67, i1 noundef zeroext true)
          to label %69 unwind label %74

69:                                               ; preds = %68
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %9) #8
  br label %103

70:                                               ; preds = %62, %61
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %77

72:                                               ; preds = %63
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %68, %64
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %9) #8
  br label %76

76:                                               ; preds = %74, %72
  %.pn83 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %77

77:                                               ; preds = %76, %70
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %76 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %9) #8
  br label %104

.split112.us:                                     ; preds = %.preheader
  %78 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNK7ImplRef4Data10as_BoundedEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %79 = zext i32 %2 to i64
  %80 = getelementptr inbounds i8, ptr %78, i64 112
  %81 = invoke noundef i64 @_ZNK10ThinVectorIN3HIR7TypeRefEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
          to label %84 unwind label %82

82:                                               ; preds = %85, %.split112.us
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %104

84:                                               ; preds = %.split112.us
  %.not = icmp ugt i64 %81, %79
  br i1 %.not, label %86, label %85

85:                                               ; preds = %84
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %103 unwind label %82

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  invoke void @_ZNK3HIR13GenericParams17make_empty_paramsEb(ptr dead_on_unwind nonnull writable sret(%"struct.HIR::PathParams") align 8 %12, ptr noundef nonnull align 8 dereferenceable(96) %78, i1 noundef zeroext true)
          to label %87 unwind label %92

87:                                               ; preds = %86
  invoke void @_ZN17MonomorphHrlsOnlyC2ERKN3HIR10PathParamsE(ptr noundef nonnull align 8 dereferenceable(104) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %88 unwind label %94

88:                                               ; preds = %87
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEE2atEm(ptr noundef nonnull align 8 dereferenceable(8) %80, i64 noundef %79)
          to label %90 unwind label %96

90:                                               ; preds = %88
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %0, ptr noundef nonnull align 8 dereferenceable(96) %11, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %89, i1 noundef zeroext true)
          to label %91 unwind label %96

91:                                               ; preds = %90
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %11) #8
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %11) #8
  br label %103

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

94:                                               ; preds = %87
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %90, %88
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %11) #8
  br label %98

98:                                               ; preds = %96, %94
  %.pn = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @_ZN3HIR10PathParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %99

99:                                               ; preds = %98, %92
  %.pn.pn = phi { ptr, i32 } [ %.pn, %98 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %11) #8
  br label %104

.critedge98:                                      ; preds = %.preheader
  %100 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.6, ptr %100, align 16, !tbaa !20
  invoke void @__cxa_throw(ptr nonnull %100, ptr nonnull @_ZTIPKc, ptr null) #10
          to label %105 unwind label %101

101:                                              ; preds = %.critedge98
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %104

103:                                              ; preds = %85, %91, %58, %69, %33, %40
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret void

104:                                              ; preds = %48, %26, %24, %18, %77, %55, %99, %82, %101
  %.pn95 = phi { ptr, i32 } [ %102, %101 ], [ %19, %18 ], [ %27, %26 ], [ %25, %24 ], [ %.pn89.pn, %48 ], [ %56, %55 ], [ %.pn83.pn, %77 ], [ %83, %82 ], [ %.pn.pn, %99 ]
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn95

105:                                              ; preds = %.critedge98, %23
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK10ThinVectorIN3HIR7TypeRefEEixEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !11, i64 40}
!8 = !{!"_ZTSN7ImplRef4Data14Data_TraitImplE", !9, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !16, i64 48}
!9 = !{!"_ZTSN3HIR10PathParamsE", !10, i64 0, !14, i64 8, !15, i64 16}
!10 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !11, i64 0}
!15 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !11, i64 0}
!16 = !{!"_ZTSN3HIR7TypeRefE", !11, i64 0}
!17 = !{!18, !11, i64 16}
!18 = !{!"_ZTSN7ImplRef4Data15Data_BoundedPtrE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!18, !11, i64 0}
!20 = !{!11, !11, i64 0}


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