; LLVM IR from thepowersgang/mrustc :: src/hir/deserialise.ll (ZN15HirDeserialiser24deserialise_genericboundEv)

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

%"class.HIR::TypeRef" = type { ptr }
%"class.std::unique_ptr.22" = type { %"struct.std::__uniq_ptr_data.23" }
%"struct.std::__uniq_ptr_data.23" = type { %"class.std::__uniq_ptr_impl.24" }
%"class.std::__uniq_ptr_impl.24" = type { %"class.std::tuple.25" }
%"class.std::tuple.25" = type { %"struct.std::_Tuple_impl.26" }
%"struct.std::_Tuple_impl.26" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.HIR::GenericParams" = type { %"class.std::vector.53", %"class.std::vector.58", %"class.std::vector.63", %"class.std::vector.68" }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = 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.58" = type { %"struct.std::_Vector_base.59" }
%"struct.std::_Vector_base.59" = 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.63" = type { %"struct.std::_Vector_base.64" }
%"struct.std::_Vector_base.64" = 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.68" = type { %"struct.std::_Vector_base.69" }
%"struct.std::_Vector_base.69" = 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.HIR::TraitPath" = type { %"class.std::unique_ptr.22", %"class.HIR::GenericPath", %"class.std::map", %"class.std::map.33", ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.19, %class.ThinVector.20, %class.ThinVector.21 }
%class.ThinVector.19 = type { ptr }
%class.ThinVector.20 = type { ptr }
%class.ThinVector.21 = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.33" = type { %"class.std::_Rb_tree.34" }
%"class.std::_Rb_tree.34" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.HIR::GenericBound" = type { i32, %"union.HIR::GenericBound::DataUnion" }
%"union.HIR::GenericBound::DataUnion" = type { %"struct.HIR::GenericBound::Data_TraitBound" }
%"struct.HIR::GenericBound::Data_TraitBound" = type { %"class.std::unique_ptr.22", %"class.HIR::TypeRef", %"class.HIR::TraitPath" }
%"struct.HIR::GenericBound::Data_Lifetime" = type { %"struct.HIR::LifetimeRef", %"struct.HIR::LifetimeRef" }
%"struct.HIR::LifetimeRef" = type { i32 }
%"struct.HIR::GenericBound::Data_TypeLifetime" = type <{ %"class.HIR::TypeRef", %"struct.HIR::LifetimeRef", [4 x i8] }>
%"struct.HIR::GenericBound::Data_TypeEquality" = type { %"class.HIR::TypeRef", %"class.HIR::TypeRef" }
%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.82 = type { ptr }
%class.HirDeserialiser = type { %class.RcString, %"class.std::vector", ptr }
%class.RcString = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.22") align 8, ptr noundef nonnull align 8 dereferenceable(96)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser25deserialise_genericparamsEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericParams") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser21deserialise_traitpathEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::TraitPath") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15HirDeserialiser24deserialise_genericboundEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.HIR::GenericBound::Data_Lifetime", align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.HIR::GenericBound::Data_TypeLifetime", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.HIR::GenericBound::Data_TraitBound", align 8
  %12 = alloca %"class.HIR::GenericParams", align 8
  %13 = alloca i1, align 1
  %14 = alloca i1, align 1
  %15 = alloca %"struct.HIR::GenericBound::Data_TypeEquality", align 8
  %16 = alloca %struct.Span, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca %class.anon.82, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %20 = getelementptr inbounds %class.HirDeserialiser, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call noundef i32 @_ZN3HIR9serialise6Reader8read_tagEv(ptr noundef nonnull align 8 dereferenceable(96) %21)
  store i32 %22, ptr %5, align 4, !tbaa !16
  %23 = load i32, ptr %5, align 4, !tbaa !16
  switch i32 %23, label %104 [
    i32 0, label %24
    i32 1, label %32
    i32 2, label %47
    i32 3, label %91
  ]

24:                                               ; preds = %2
  %25 = getelementptr inbounds %"struct.HIR::GenericBound::Data_Lifetime", ptr %6, i32 0, i32 0
  %26 = call i32 @_ZN15HirDeserialiser23deserialise_lifetimerefEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
  %27 = getelementptr inbounds %"struct.HIR::LifetimeRef", ptr %25, i32 0, i32 0
  store i32 %26, ptr %27, align 4
  %28 = getelementptr inbounds %"struct.HIR::GenericBound::Data_Lifetime", ptr %6, i32 0, i32 1
  %29 = call i32 @_ZN15HirDeserialiser23deserialise_lifetimerefEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
  %30 = getelementptr inbounds %"struct.HIR::LifetimeRef", ptr %28, i32 0, i32 0
  store i32 %29, ptr %30, align 4
  %31 = load i64, ptr %6, align 4
  call void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, i64 %31)
  store i32 1, ptr %7, align 4
  br label %120

32:                                               ; preds = %2
  %33 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %8, i32 0, i32 0
  call void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %33, ptr noundef nonnull align 8 dereferenceable(40) %19)
  %34 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeLifetime", ptr %8, i32 0, i32 1
  %35 = invoke i32 @_ZN15HirDeserialiser23deserialise_lifetimerefEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %36 unwind label %39

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"struct.HIR::LifetimeRef", ptr %34, i32 0, i32 0
  store i32 %35, ptr %37, align 8
  invoke void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef %8)
          to label %38 unwind label %43

38:                                               ; preds = %36
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #6
  store i32 1, ptr %7, align 4
  br label %120

39:                                               ; preds = %32
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %9, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %10, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  br label %124

43:                                               ; preds = %36
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %9, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %10, align 4
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #6
  br label %124

47:                                               ; preds = %2
  %48 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %11, i32 0, i32 0
  %49 = getelementptr inbounds %class.HirDeserialiser, ptr %19, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96) %50)
  store i1 false, ptr %13, align 1
  store i1 false, ptr %14, align 1
  br i1 %51, label %52, label %54

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 96, ptr %12) #6
  store i1 true, ptr %13, align 1
  call void @_ZN15HirDeserialiser25deserialise_genericparamsEv(ptr dead_on_unwind writable sret(%"class.HIR::GenericParams") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %19)
  store i1 true, ptr %14, align 1
  invoke void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.22") align 8 %48, ptr noundef nonnull align 8 dereferenceable(96) %12)
          to label %53 unwind label %67

53:                                               ; preds = %52
  br label %55

54:                                               ; preds = %47
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr null) #6
  br label %55

55:                                               ; preds = %54, %53
  %56 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %11, i32 0, i32 1
  invoke void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %56, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %57 unwind label %71

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TraitBound", ptr %11, i32 0, i32 2
  invoke void @_ZN15HirDeserialiser21deserialise_traitpathEv(ptr dead_on_unwind writable sret(%"class.HIR::TraitPath") align 8 %58, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %59 unwind label %75

59:                                               ; preds = %57
  invoke void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef %11)
          to label %60 unwind label %80

60:                                               ; preds = %59
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %11) #6
  %61 = load i1, ptr %14, align 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %60
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12) #6
  br label %63

63:                                               ; preds = %62, %60
  %64 = load i1, ptr %13, align 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #6
  br label %66

66:                                               ; preds = %65, %63
  store i32 1, ptr %7, align 4
  br label %120

67:                                               ; preds = %52
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  br label %84

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %9, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %10, align 4
  br label %79

75:                                               ; preds = %57
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  br label %79

79:                                               ; preds = %75, %71
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  br label %84

80:                                               ; preds = %59
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %11) #6
  br label %84

84:                                               ; preds = %80, %79, %67
  %85 = load i1, ptr %14, align 1
  br i1 %85, label %86, label %87

86:                                               ; preds = %84
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12) #6
  br label %87

87:                                               ; preds = %86, %84
  %88 = load i1, ptr %13, align 1
  br i1 %88, label %89, label %90

89:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #6
  br label %90

90:                                               ; preds = %89, %87
  br label %124

91:                                               ; preds = %2
  %92 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %15, i32 0, i32 0
  call void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %92, ptr noundef nonnull align 8 dereferenceable(40) %19)
  %93 = getelementptr inbounds %"struct.HIR::GenericBound::Data_TypeEquality", ptr %15, i32 0, i32 1
  invoke void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %93, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %94 unwind label %96

94:                                               ; preds = %91
  invoke void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef %15)
          to label %95 unwind label %100

95:                                               ; preds = %94
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  store i32 1, ptr %7, align 4
  br label %120

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %92) #6
  br label %124

100:                                              ; preds = %94
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %9, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %10, align 4
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %124

104:                                              ; preds = %2
  br label %105

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %106 = getelementptr inbounds %class.anon.82, ptr %18, i32 0, i32 0
  store ptr %5, ptr %106, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN15HirDeserialiser24deserialise_genericboundEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef %17)
          to label %107 unwind label %110

107:                                              ; preds = %105
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %108 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef @.str.2)
          to label %109 unwind label %114

109:                                              ; preds = %107
  call void @__cxa_throw(ptr %108, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

110:                                              ; preds = %105
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %124

114:                                              ; preds = %107
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %9, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %10, align 4
  call void @__cxa_free_exception(ptr %108) #6
  br label %124

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118
  store i32 0, ptr %7, align 4
  br label %120

120:                                              ; preds = %119, %95, %66, %38, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %121 = load i32, ptr %7, align 4
  switch i32 %121, label %131 [
    i32 0, label %122
    i32 1, label %125
  ]

122:                                              ; preds = %120
  br label %123

123:                                              ; preds = %122
  unreachable

124:                                              ; preds = %114, %110, %100, %96, %90, %43, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %126

125:                                              ; preds = %120
  ret void

126:                                              ; preds = %124
  %127 = load ptr, ptr %9, align 8
  %128 = load i32, ptr %10, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130

131:                                              ; preds = %120
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, i64) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) #1 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTS15HirDeserialiser", !11, i64 0, !12, i64 8, !6, i64 32}
!11 = !{!"_ZTS8RcString", !6, i64 0}
!12 = !{!"_ZTSSt6vectorIN3HIR7TypeRefESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}


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

%"class.HIR::TypeRef" = type { ptr }
%"class.std::unique_ptr.22" = type { %"struct.std::__uniq_ptr_data.23" }
%"struct.std::__uniq_ptr_data.23" = type { %"class.std::__uniq_ptr_impl.24" }
%"class.std::__uniq_ptr_impl.24" = type { %"class.std::tuple.25" }
%"class.std::tuple.25" = type { %"struct.std::_Tuple_impl.26" }
%"struct.std::_Tuple_impl.26" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.HIR::GenericParams" = type { %"class.std::vector.53", %"class.std::vector.58", %"class.std::vector.63", %"class.std::vector.68" }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = 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.58" = type { %"struct.std::_Vector_base.59" }
%"struct.std::_Vector_base.59" = 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.63" = type { %"struct.std::_Vector_base.64" }
%"struct.std::_Vector_base.64" = 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.68" = type { %"struct.std::_Vector_base.69" }
%"struct.std::_Vector_base.69" = 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.HIR::TraitPath" = type { %"class.std::unique_ptr.22", %"class.HIR::GenericPath", %"class.std::map", %"class.std::map.33", ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.19, %class.ThinVector.20, %class.ThinVector.21 }
%class.ThinVector.19 = type { ptr }
%class.ThinVector.20 = type { ptr }
%class.ThinVector.21 = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyEqual>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyEqual>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.33" = type { %"class.std::_Rb_tree.34" }
%"class.std::_Rb_tree.34" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, HIR::TraitPath::AtyBound>, std::_Select1st<std::pair<const RcString, HIR::TraitPath::AtyBound>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.HIR::GenericBound" = type { i32, %"union.HIR::GenericBound::DataUnion" }
%"union.HIR::GenericBound::DataUnion" = type { %"struct.HIR::GenericBound::Data_TraitBound" }
%"struct.HIR::GenericBound::Data_TraitBound" = type { %"class.std::unique_ptr.22", %"class.HIR::TypeRef", %"class.HIR::TraitPath" }
%"struct.HIR::GenericBound::Data_TypeLifetime" = type <{ %"class.HIR::TypeRef", %"struct.HIR::LifetimeRef", [4 x i8] }>
%"struct.HIR::LifetimeRef" = type { i32 }
%"struct.HIR::GenericBound::Data_TypeEquality" = type { %"class.HIR::TypeRef", %"class.HIR::TypeRef" }
%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.82 = type { ptr }

@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::TypeRef") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.22") align 8, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser25deserialise_genericparamsEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericParams") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser21deserialise_traitpathEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::TraitPath") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15HirDeserialiser24deserialise_genericboundEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"struct.HIR::GenericBound::Data_TypeLifetime", align 8
  %5 = alloca %"struct.HIR::GenericBound::Data_TraitBound", align 8
  %6 = alloca %"class.HIR::GenericParams", align 8
  %7 = alloca %"struct.HIR::GenericBound::Data_TypeEquality", align 8
  %8 = alloca %struct.Span, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon.82, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %11 = getelementptr inbounds i8, ptr %1, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = tail call noundef i32 @_ZN3HIR9serialise6Reader8read_tagEv(ptr noundef nonnull align 8 dereferenceable(96) %12)
  store i32 %13, ptr %3, align 4, !tbaa !15
  switch i32 %13, label %55 [
    i32 0, label %14
    i32 1, label %17
    i32 2, label %26
    i32 3, label %47
  ]

14:                                               ; preds = %2
  %15 = tail call i32 @_ZN15HirDeserialiser23deserialise_lifetimerefEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %16 = tail call i32 @_ZN15HirDeserialiser23deserialise_lifetimerefEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %.sroa.2.0.insert.ext = zext i32 %16 to i64
  %.sroa.2.0.insert.shift = shl nuw i64 %.sroa.2.0.insert.ext, 32
  %.sroa.0.0.insert.ext = zext i32 %15 to i64
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.2.0.insert.shift, %.sroa.0.0.insert.ext
  tail call void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, i64 %.sroa.0.0.insert.insert)
  br label %.critedge

17:                                               ; preds = %2
  call void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %1)
  %18 = invoke i32 @_ZN15HirDeserialiser23deserialise_lifetimerefEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %19 unwind label %22

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %18, ptr %20, align 8
  invoke void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull %4)
          to label %21 unwind label %24

21:                                               ; preds = %19
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #6
  br label %.critedge

22:                                               ; preds = %17
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %.critedge19

24:                                               ; preds = %19
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR12GenericBound17Data_TypeLifetimeD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #6
  br label %.critedge19

26:                                               ; preds = %2
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = tail call noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96) %27)
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #6
  call void @_ZN15HirDeserialiser25deserialise_genericparamsEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::GenericParams") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %1)
  invoke void @_Z15make_unique_ptrIN3HIR13GenericParamsEESt10unique_ptrIT_St14default_deleteIS3_EEOS3_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.22") align 8 %5, ptr noundef nonnull align 8 dereferenceable(96) %6)
          to label %31 unwind label %.thread

30:                                               ; preds = %26
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr null) #6
  br label %31

31:                                               ; preds = %29, %30
  %32 = getelementptr inbounds i8, ptr %5, i64 8
  invoke void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %32, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %33 unwind label %39

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %5, i64 16
  invoke void @_ZN15HirDeserialiser21deserialise_traitpathEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TraitPath") align 8 %34, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %35 unwind label %41

35:                                               ; preds = %33
  invoke void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull %5)
          to label %36 unwind label %43

36:                                               ; preds = %35
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %5) #6
  br i1 %28, label %37, label %.critedge

37:                                               ; preds = %36
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %6) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #6
  br label %.critedge

.thread:                                          ; preds = %29
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %46

39:                                               ; preds = %31
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %45

41:                                               ; preds = %33
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br label %45

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR12GenericBound15Data_TraitBoundD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %5) #6
  br i1 %28, label %46, label %.critedge19

45:                                               ; preds = %39, %41
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @_ZNSt10unique_ptrIN3HIR13GenericParamsESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %28, label %46, label %.critedge19

46:                                               ; preds = %43, %.thread, %45
  %.pn1422 = phi { ptr, i32 } [ %38, %.thread ], [ %.pn, %45 ], [ %44, %43 ]
  call void @_ZN3HIR13GenericParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %6) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #6
  br label %.critedge19

47:                                               ; preds = %2
  call void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %1)
  %48 = getelementptr inbounds i8, ptr %7, i64 8
  invoke void @_ZN15HirDeserialiser16deserialise_typeEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %48, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %49 unwind label %51

49:                                               ; preds = %47
  invoke void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind writable sret(%"class.HIR::GenericBound") align 8 %0, ptr noundef nonnull %7)
          to label %50 unwind label %53

50:                                               ; preds = %49
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %.critedge

51:                                               ; preds = %47
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %.critedge19

53:                                               ; preds = %49
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR12GenericBound17Data_TypeEqualityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %.critedge19

55:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store ptr %3, ptr %10, align 8, !tbaa !17
  call void @"_ZNSt8functionIFvRSoEEC2IZN15HirDeserialiser24deserialise_genericboundEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %9)
          to label %56 unwind label %59

56:                                               ; preds = %55
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %57 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull @.str.2)
          to label %58 unwind label %61

58:                                               ; preds = %56
  call void @__cxa_throw(ptr nonnull %57, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #7
  unreachable

59:                                               ; preds = %55
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %.critedge19

61:                                               ; preds = %56
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %57) #6
  br label %.critedge19

.critedge:                                        ; preds = %37, %36, %50, %21, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret void

.critedge19:                                      ; preds = %43, %45, %46, %61, %59, %53, %51, %24, %22
  %.pn16 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ], [ %54, %53 ], [ %52, %51 ], [ %.pn1422, %46 ], [ %25, %24 ], [ %23, %22 ], [ %.pn, %45 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn16
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound13make_LifetimeENS0_13Data_LifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, i64) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeLifetimeENS0_17Data_TypeLifetimeE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound15make_TraitBoundENS0_15Data_TraitBoundE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR12GenericBound17make_TypeEqualityENS0_17Data_TypeEqualityE(ptr dead_on_unwind noalias writable sret(%"class.HIR::GenericBound") align 8, ptr noundef) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { 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, !8, i64 32}
!6 = !{!"_ZTS15HirDeserialiser", !7, i64 0, !11, i64 8, !8, i64 32}
!7 = !{!"_ZTS8RcString", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIN3HIR7TypeRefESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass