; LLVM IR from thepowersgang/mrustc :: src/mir/cleanup.ll (Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE)

; 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::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.453 = type { i8 }
%class.anon.455 = type { ptr }
%class.anon.456 = type { i8 }
%class.anon.458 = type { i8 }
%struct.MonomorphStatePtr = type { %class.MonomorphiserPP, ptr, ptr, ptr, ptr }
%class.MonomorphiserPP = type { %class.Monomorphiser }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.19" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = 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.anon.460 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.462" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.461" = type { ptr }
%"class.MIR::LValue::Wrapper" = type { i32 }
%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector.68" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector.68" = type { %"struct.std::_Vector_base.69" }
%"struct.std::_Vector_base.69" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::TypeResolve" = type { i32, ptr, ptr, ptr, %struct.FmtLambda, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.FmtLambda = type { %"class.std::function" }
%"struct.HIR::TypeData_Path" = type { %"class.HIR::Path", %"class.HIR::TypePathBinding", %"class.std::unique_ptr" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr" }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.0, %class.ThinVector.1, %class.ThinVector.2 }
%class.ThinVector.0 = type { ptr }
%class.ThinVector.1 = type { ptr }
%class.ThinVector.2 = type { ptr }
%"class.HIR::TypePathBinding" = type { i32, %"union.HIR::TypePathBinding::DataUnion" }
%"union.HIR::TypePathBinding::DataUnion" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"class.HIR::Struct" = type <{ %"class.HIR::GenericParams", i32, [4 x i8], %"class.HIR::Struct::Data", i32, i32, %"struct.HIR::TraitMarkings", %"struct.HIR::StructMarkings", i32, [4 x i8] }>
%"class.HIR::GenericParams" = type { %"class.std::vector.24", %"class.std::vector.29", %"class.std::vector.34", %"class.std::vector.39" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = 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.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = 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.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = 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.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = 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::Struct::Data" = type { i32, %"union.HIR::Struct::Data::DataUnion" }
%"union.HIR::Struct::Data::DataUnion" = type { %"class.std::vector.398" }
%"class.std::vector.398" = type { %"struct.std::_Vector_base.399" }
%"struct.std::_Vector_base.399" = type { %"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::VisEnt<HIR::TypeRef>, std::allocator<HIR::VisEnt<HIR::TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HIR::TraitMarkings" = type { i8, i8, i8, %"class.std::map.155" }
%"class.std::map.155" = type { %"class.std::_Rb_tree.156" }
%"class.std::_Rb_tree.156" = type { %"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>, std::_Select1st<std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>>, std::less<HIR::SimplePath>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<HIR::SimplePath, std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>, std::_Select1st<std::pair<const HIR::SimplePath, HIR::TraitMarkings::AutoMarking>>, std::less<HIR::SimplePath>>::_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.HIR::StructMarkings" = type { i8, i32, i32, i32, i32, i32, i32, i8, i8, %class.U128 }
%class.U128 = type { i64, i64 }
%"struct.HIR::VisEnt" = type { %"class.HIR::Publicity", %"class.HIR::TypeRef" }
%"class.HIR::Publicity" = type { %"class.std::shared_ptr.431" }
%"class.std::shared_ptr.431" = type { %"class.std::__shared_ptr.432" }
%"class.std::__shared_ptr.432" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.434" = type { %class.RcString, %"struct.HIR::VisEnt" }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE = external hidden unnamed_addr constant [83 x i8], align 1
@__FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE = external hidden unnamed_addr constant [19 x i8], align 1

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

declare 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR7TypeRefaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184)) #1 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve15get_lvalue_typeERN3HIR7TypeRefERKNS_6LValueEj(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #5

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt4pairI8RcStringN3HIR6VisEntINS2_7TypeRefEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.HIR::TypeRef", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon.453, align 1
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i8, align 1
  %31 = alloca ptr, align 8
  %32 = alloca i8, align 1
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"class.std::function", align 8
  %36 = alloca %class.anon.455, align 8
  %37 = alloca i8, align 1
  %38 = alloca ptr, align 8
  %39 = alloca %"class.std::function", align 8
  %40 = alloca %class.anon.456, align 1
  %41 = alloca i8, align 1
  %42 = alloca ptr, align 8
  %43 = alloca %"class.std::function", align 8
  %44 = alloca %class.anon.458, align 1
  %45 = alloca %"class.HIR::TypeRef", align 8
  %46 = alloca %struct.MonomorphStatePtr, align 8
  %47 = alloca %"class.std::function", align 8
  %48 = alloca %class.anon.460, align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator.462", align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.461", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.461", align 8
  %52 = alloca %"class.MIR::LValue::Wrapper", align 4
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.461", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  store i8 1, ptr %7, align 1, !tbaa !9
  br label %54

54:                                               ; preds = %141, %3
  %55 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %56 = trunc i8 %55 to i1
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  br label %142

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.MIR::LValue", ptr %59, i32 0, i32 0
  store ptr %60, ptr %9, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %139, %58
  %62 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %63 = trunc i8 %62 to i1
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %140

65:                                               ; preds = %61
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call noundef i32 @_ZNK3MIR6LValue7Storage3tagEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  switch i32 %67, label %138 [
    i32 4, label %68
    i32 3, label %69
    i32 0, label %86
    i32 1, label %103
    i32 2, label %120
  ]

68:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 941, ptr noundef @__PRETTY_FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE) #8
  unreachable

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 1, ptr %10, align 1, !tbaa !9
  br label %70

70:                                               ; preds = %84, %69
  %71 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %72 = trunc i8 %71 to i1
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 9, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %85

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = call noundef signext i8 @_ZNK3MIR6LValue7Storage9as_ReturnEv(ptr noundef nonnull align 8 dereferenceable(8) %75)
  store i8 %76, ptr %11, align 1, !tbaa !13
  br label %77

77:                                               ; preds = %82, %74
  %78 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %79 = trunc i8 %78 to i1
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  store i32 12, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %83

81:                                               ; preds = %77
  br label %82

82:                                               ; preds = %81
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %77, !llvm.loop !14

83:                                               ; preds = %80
  br label %84

84:                                               ; preds = %83
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %70, !llvm.loop !16

85:                                               ; preds = %73
  br label %138

86:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 1, ptr %12, align 1, !tbaa !9
  br label %87

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

90:                                               ; preds = %87
  store i32 15, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %102

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = call noundef i32 @_ZNK3MIR6LValue7Storage11as_ArgumentEv(ptr noundef nonnull align 8 dereferenceable(8) %92)
  store i32 %93, ptr %13, align 4, !tbaa !17
  br label %94

94:                                               ; preds = %99, %91
  %95 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %96 = trunc i8 %95 to i1
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 18, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %100

98:                                               ; preds = %94
  br label %99

99:                                               ; preds = %98
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %94, !llvm.loop !19

100:                                              ; preds = %97
  br label %101

101:                                              ; preds = %100
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %87, !llvm.loop !20

102:                                              ; preds = %90
  br label %138

103:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  store i8 1, ptr %14, align 1, !tbaa !9
  br label %104

104:                                              ; preds = %118, %103
  %105 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %106 = trunc i8 %105 to i1
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  store i32 21, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br label %119

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = call noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %109)
  store i32 %110, ptr %15, align 4, !tbaa !17
  br label %111

111:                                              ; preds = %116, %108
  %112 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %113 = trunc i8 %112 to i1
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 24, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %117

115:                                              ; preds = %111
  br label %116

116:                                              ; preds = %115
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %111, !llvm.loop !21

117:                                              ; preds = %114
  br label %118

118:                                              ; preds = %117
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %104, !llvm.loop !22

119:                                              ; preds = %107
  br label %138

120:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  store i8 1, ptr %16, align 1, !tbaa !9
  br label %121

121:                                              ; preds = %136, %120
  %122 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %123 = trunc i8 %122 to i1
  br i1 %123, label %125, label %124

124:                                              ; preds = %121
  store i32 27, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %137

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN3MIR6LValue7Storage9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(8) %126)
  store ptr %127, ptr %17, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %134, %125
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %131 = trunc i8 %130 to i1
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 30, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %135

133:                                              ; preds = %128
  br label %134

134:                                              ; preds = %133
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %128, !llvm.loop !23

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %121, !llvm.loop !24

137:                                              ; preds = %124
  br label %138

138:                                              ; preds = %137, %119, %102, %85, %65
  br label %139

139:                                              ; preds = %138
  store i8 0, ptr %7, align 1, !tbaa !9
  br label %61, !llvm.loop !25

140:                                              ; preds = %64
  br label %141

141:                                              ; preds = %140
  store i8 0, ptr %7, align 1, !tbaa !9
  br label %54, !llvm.loop !26

142:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !27
  br label %143

143:                                              ; preds = %455, %142
  %144 = load i64, ptr %18, align 8, !tbaa !27
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.MIR::LValue", ptr %145, i32 0, i32 1
  %147 = call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #7
  %148 = icmp ult i64 %144, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %143
  store i32 33, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %459

150:                                              ; preds = %143
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.MIR::LValue", ptr %151, i32 0, i32 1
  %153 = load i64, ptr %18, align 8, !tbaa !27
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3MIR6LValue7WrapperESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %153) #7
  %155 = call noundef zeroext i1 @_ZNK3MIR6LValue7Wrapper8is_DerefEv(ptr noundef nonnull align 4 dereferenceable(4) %154)
  br i1 %155, label %157, label %156

156:                                              ; preds = %150
  br label %455

157:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.MIR::LValue", ptr %160, i32 0, i32 1
  %162 = call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %161) #7
  %163 = load i64, ptr %18, align 8, !tbaa !27
  %164 = sub i64 %162, %163
  %165 = trunc i64 %164 to i32
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve15get_lvalue_typeERN3HIR7TypeRefERKNS_6LValueEj(ptr noundef nonnull align 8 dereferenceable(120) %158, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(32) %159, i32 noundef %165)
          to label %167 unwind label %197

167:                                              ; preds = %157
  store ptr %166, ptr %20, align 8, !tbaa !5
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %"class.MIR::TypeResolve", ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !29
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  %172 = invoke noundef ptr @_ZNK18StaticTraitResolve17is_type_owned_boxERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %170, ptr noundef nonnull align 8 dereferenceable(8) %171)
          to label %173 unwind label %197

173:                                              ; preds = %167
  %174 = icmp ne ptr %172, null
  br i1 %174, label %175, label %453

175:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %176 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %176, ptr %24, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %387, %175
  %178 = load ptr, ptr %24, align 8, !tbaa !5
  %179 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %178)
          to label %180 unwind label %201

180:                                              ; preds = %177
  %181 = invoke noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %179)
          to label %182 unwind label %201

182:                                              ; preds = %180
  br i1 %181, label %183, label %407

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %184 = load ptr, ptr %24, align 8, !tbaa !5
  %185 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %184)
          to label %186 unwind label %205

186:                                              ; preds = %183
  %187 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %185)
          to label %188 unwind label %205

188:                                              ; preds = %186
  store ptr %187, ptr %25, align 8, !tbaa !5
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr %25, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %190, i32 0, i32 1
  %192 = invoke noundef zeroext i1 @_ZNK3HIR15TypePathBinding9is_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %191)
          to label %193 unwind label %205

193:                                              ; preds = %189
  br i1 %192, label %213, label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %195, ptr noundef %26)
          to label %196 unwind label %209

196:                                              ; preds = %194
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %213

197:                                              ; preds = %167, %157
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %21, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %22, align 4
  br label %458

201:                                              ; preds = %411, %408, %180, %177
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %21, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %22, align 4
  br label %452

205:                                              ; preds = %189, %186, %183
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %21, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %22, align 4
  br label %406

209:                                              ; preds = %194
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %21, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %22, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %406

213:                                              ; preds = %196, %193
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %216 = load ptr, ptr %25, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %216, i32 0, i32 1
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %217)
          to label %219 unwind label %225

219:                                              ; preds = %215
  %220 = load ptr, ptr %218, align 8, !tbaa !5
  store ptr %220, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store ptr null, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #7
  store i8 1, ptr %30, align 1, !tbaa !9
  br label %221

221:                                              ; preds = %372, %219
  %222 = load i8, ptr %30, align 1, !tbaa !9, !range !11, !noundef !12
  %223 = trunc i8 %222 to i1
  br i1 %223, label %229, label %224

224:                                              ; preds = %221
  store i32 40, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  br label %373

225:                                              ; preds = %215
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %21, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %22, align 4
  br label %405

229:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %230 = load ptr, ptr %28, align 8, !tbaa !5
  %231 = getelementptr inbounds %"class.HIR::Struct", ptr %230, i32 0, i32 3
  store ptr %231, ptr %31, align 8, !tbaa !5
  br label %232

232:                                              ; preds = %369, %229
  %233 = load i8, ptr %30, align 1, !tbaa !9, !range !11, !noundef !12
  %234 = trunc i8 %233 to i1
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  store i32 43, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %371

236:                                              ; preds = %232
  %237 = load ptr, ptr %31, align 8, !tbaa !5
  %238 = invoke noundef i32 @_ZNK3HIR6Struct4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(32) %237)
          to label %239 unwind label %240

239:                                              ; preds = %236
  switch i32 %238, label %368 [
    i32 0, label %244
    i32 1, label %245
    i32 2, label %285
    i32 3, label %326
  ]

240:                                              ; preds = %236
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %21, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %22, align 4
  br label %370

244:                                              ; preds = %239
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 976, ptr noundef @__PRETTY_FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE) #8
  unreachable

245:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #7
  store i8 1, ptr %32, align 1, !tbaa !9
  br label %246

246:                                              ; preds = %283, %245
  %247 = load i8, ptr %32, align 1, !tbaa !9, !range !11, !noundef !12
  %248 = trunc i8 %247 to i1
  br i1 %248, label %250, label %249

249:                                              ; preds = %246
  store i32 47, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  br label %284

250:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %251 = load ptr, ptr %31, align 8, !tbaa !5
  %252 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3HIR6Struct4Data7as_UnitEv(ptr noundef nonnull align 8 dereferenceable(32) %251)
          to label %253 unwind label %259

253:                                              ; preds = %250
  store ptr %252, ptr %33, align 8, !tbaa !5
  br label %254

254:                                              ; preds = %280, %253
  %255 = load ptr, ptr %33, align 8, !tbaa !5
  %256 = load i8, ptr %32, align 1, !tbaa !9, !range !11, !noundef !12
  %257 = trunc i8 %256 to i1
  br i1 %257, label %263, label %258

258:                                              ; preds = %254
  store i32 50, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %282

259:                                              ; preds = %250
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %21, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %22, align 4
  br label %281

263:                                              ; preds = %254
  br label %264

264:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store ptr @__FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE, ptr %34, align 8, !tbaa !5
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %266 = getelementptr inbounds %class.anon.455, ptr %36, i32 0, i32 0
  store ptr %34, ptr %266, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %265, ptr noundef %35)
          to label %267 unwind label %269

267:                                              ; preds = %264
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  %268 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str, ptr %268, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %268, ptr @_ZTIPKc, ptr null) #9
          to label %465 unwind label %273

269:                                              ; preds = %264
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %21, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %22, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %277

273:                                              ; preds = %267
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %21, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %22, align 4
  br label %277

277:                                              ; preds = %273, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %281

278:                                              ; No predecessors!
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  store i8 0, ptr %32, align 1, !tbaa !9
  br label %254, !llvm.loop !34

281:                                              ; preds = %277, %259
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  br label %370

282:                                              ; preds = %258
  br label %283

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

284:                                              ; preds = %249
  br label %368

285:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #7
  store i8 1, ptr %37, align 1, !tbaa !9
  br label %286

286:                                              ; preds = %324, %285
  %287 = load i8, ptr %37, align 1, !tbaa !9, !range !11, !noundef !12
  %288 = trunc i8 %287 to i1
  br i1 %288, label %290, label %289

289:                                              ; preds = %286
  store i32 55, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #7
  br label %325

290:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %291 = load ptr, ptr %31, align 8, !tbaa !5
  %292 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR6Struct4Data8as_TupleEv(ptr noundef nonnull align 8 dereferenceable(32) %291)
          to label %293 unwind label %299

293:                                              ; preds = %290
  store ptr %292, ptr %38, align 8, !tbaa !5
  br label %294

294:                                              ; preds = %321, %293
  %295 = load ptr, ptr %38, align 8, !tbaa !5
  %296 = load i8, ptr %37, align 1, !tbaa !9, !range !11, !noundef !12
  %297 = trunc i8 %296 to i1
  br i1 %297, label %303, label %298

298:                                              ; preds = %294
  store i32 58, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %323

299:                                              ; preds = %290
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %21, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %22, align 4
  br label %322

303:                                              ; preds = %294
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %38, align 8, !tbaa !5
  %306 = call noundef i64 @_ZNKSt6vectorIN3HIR6VisEntINS0_7TypeRefEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %305) #7
  %307 = icmp ugt i64 %306, 0
  br i1 %307, label %315, label %308

308:                                              ; preds = %304
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 1 dereferenceable(1) %40) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %309, ptr noundef %39)
          to label %310 unwind label %311

310:                                              ; preds = %308
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #7
  br label %315

311:                                              ; preds = %308
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %21, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %22, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #7
  br label %322

315:                                              ; preds = %310, %304
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  %318 = load ptr, ptr %38, align 8, !tbaa !5
  %319 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR6VisEntINS0_7TypeRefEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %318, i64 noundef 0) #7
  %320 = getelementptr inbounds %"struct.HIR::VisEnt", ptr %319, i32 0, i32 1
  store ptr %320, ptr %29, align 8, !tbaa !5
  br label %321

321:                                              ; preds = %317
  store i8 0, ptr %37, align 1, !tbaa !9
  br label %294, !llvm.loop !36

322:                                              ; preds = %311, %299
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #7
  br label %370

323:                                              ; preds = %298
  br label %324

324:                                              ; preds = %323
  store i8 0, ptr %37, align 1, !tbaa !9
  br label %286, !llvm.loop !37

325:                                              ; preds = %289
  br label %368

326:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #7
  store i8 1, ptr %41, align 1, !tbaa !9
  br label %327

327:                                              ; preds = %366, %326
  %328 = load i8, ptr %41, align 1, !tbaa !9, !range !11, !noundef !12
  %329 = trunc i8 %328 to i1
  br i1 %329, label %331, label %330

330:                                              ; preds = %327
  store i32 63, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #7
  br label %367

331:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %332 = load ptr, ptr %31, align 8, !tbaa !5
  %333 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR6Struct4Data8as_NamedEv(ptr noundef nonnull align 8 dereferenceable(32) %332)
          to label %334 unwind label %340

334:                                              ; preds = %331
  store ptr %333, ptr %42, align 8, !tbaa !5
  br label %335

335:                                              ; preds = %363, %334
  %336 = load ptr, ptr %42, align 8, !tbaa !5
  %337 = load i8, ptr %41, align 1, !tbaa !9, !range !11, !noundef !12
  %338 = trunc i8 %337 to i1
  br i1 %338, label %344, label %339

339:                                              ; preds = %335
  store i32 66, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %365

340:                                              ; preds = %331
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %21, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %22, align 4
  br label %364

344:                                              ; preds = %335
  br label %345

345:                                              ; preds = %344
  %346 = load ptr, ptr %42, align 8, !tbaa !5
  %347 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringN3HIR6VisEntINS2_7TypeRefEEEESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %346) #7
  %348 = icmp ugt i64 %347, 0
  br i1 %348, label %356, label %349

349:                                              ; preds = %345
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 1 dereferenceable(1) %44) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %350, ptr noundef %43)
          to label %351 unwind label %352

351:                                              ; preds = %349
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #7
  br label %356

352:                                              ; preds = %349
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %21, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %22, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #7
  br label %364

356:                                              ; preds = %351, %345
  br label %357

357:                                              ; preds = %356
  br label %358

358:                                              ; preds = %357
  %359 = load ptr, ptr %42, align 8, !tbaa !5
  %360 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt4pairI8RcStringN3HIR6VisEntINS2_7TypeRefEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef 0) #7
  %361 = getelementptr inbounds %"struct.std::pair.434", ptr %360, i32 0, i32 1
  %362 = getelementptr inbounds %"struct.HIR::VisEnt", ptr %361, i32 0, i32 1
  store ptr %362, ptr %29, align 8, !tbaa !5
  br label %363

363:                                              ; preds = %358
  store i8 0, ptr %41, align 1, !tbaa !9
  br label %335, !llvm.loop !38

364:                                              ; preds = %352, %340
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #7
  br label %370

365:                                              ; preds = %339
  br label %366

366:                                              ; preds = %365
  store i8 0, ptr %41, align 1, !tbaa !9
  br label %327, !llvm.loop !39

367:                                              ; preds = %330
  br label %368

368:                                              ; preds = %367, %325, %284, %239
  br label %369

369:                                              ; preds = %368
  store i8 0, ptr %30, align 1, !tbaa !9
  br label %232, !llvm.loop !40

370:                                              ; preds = %364, %322, %281, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  br label %404

371:                                              ; preds = %235
  br label %372

372:                                              ; preds = %371
  store i8 0, ptr %30, align 1, !tbaa !9
  br label %221, !llvm.loop !41

373:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %46) #7
  %374 = load ptr, ptr %25, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.HIR::TypeData_Path", ptr %374, i32 0, i32 0
  %376 = getelementptr inbounds %"class.HIR::Path", ptr %375, i32 0, i32 0
  %377 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %376)
          to label %378 unwind label %390

378:                                              ; preds = %373
  %379 = getelementptr inbounds %"class.HIR::GenericPath", ptr %377, i32 0, i32 1
  invoke void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128) %46, ptr noundef null, ptr noundef %379, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %380 unwind label %390

380:                                              ; preds = %378
  %381 = load ptr, ptr %4, align 8, !tbaa !5
  %382 = getelementptr inbounds %"class.MIR::TypeResolve", ptr %381, i32 0, i32 1
  %383 = load ptr, ptr %382, align 8, !tbaa !42
  %384 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %45, ptr noundef nonnull align 8 dereferenceable(96) %46, ptr noundef nonnull align 8 dereferenceable(8) %383, ptr noundef nonnull align 8 dereferenceable(8) %384, i1 noundef zeroext true)
          to label %385 unwind label %394

385:                                              ; preds = %380
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR7TypeRefaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %387 unwind label %398

387:                                              ; preds = %385
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %46) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  store ptr %19, ptr %24, align 8, !tbaa !5
  %388 = load i32, ptr %23, align 4, !tbaa !17
  %389 = add i32 %388, 1
  store i32 %389, ptr %23, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %177, !llvm.loop !43

390:                                              ; preds = %378, %373
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %21, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %22, align 4
  br label %403

394:                                              ; preds = %380
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %21, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %22, align 4
  br label %402

398:                                              ; preds = %385
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %21, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %22, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  br label %402

402:                                              ; preds = %398, %394
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %46) #7
  br label %403

403:                                              ; preds = %402, %390
  call void @llvm.lifetime.end.p0(i64 128, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %404

404:                                              ; preds = %403, %370
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %405

405:                                              ; preds = %404, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %406

406:                                              ; preds = %405, %209, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %452

407:                                              ; preds = %182
  br label %408

408:                                              ; preds = %407
  %409 = load ptr, ptr %24, align 8, !tbaa !5
  %410 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %409)
          to label %411 unwind label %201

411:                                              ; preds = %408
  %412 = invoke noundef zeroext i1 @_ZNK3HIR8TypeData10is_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %410)
          to label %413 unwind label %201

413:                                              ; preds = %411
  br i1 %412, label %422, label %414

414:                                              ; preds = %413
  %415 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %416 = getelementptr inbounds %class.anon.460, ptr %48, i32 0, i32 0
  store ptr %24, ptr %416, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %415, ptr noundef %47)
          to label %417 unwind label %418

417:                                              ; preds = %414
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  br label %422

418:                                              ; preds = %414
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %21, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %22, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  br label %452

422:                                              ; preds = %417, %413
  br label %423

423:                                              ; preds = %422
  br label %424

424:                                              ; preds = %423
  br label %425

425:                                              ; preds = %445, %424
  %426 = load i32, ptr %23, align 4, !tbaa !17
  %427 = add i32 %426, -1
  store i32 %427, ptr %23, align 4, !tbaa !17
  %428 = icmp ne i32 %426, 0
  br i1 %428, label %429, label %451

429:                                              ; preds = %425
  %430 = load ptr, ptr %6, align 8, !tbaa !5
  %431 = getelementptr inbounds %"struct.MIR::LValue", ptr %430, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  %432 = load ptr, ptr %6, align 8, !tbaa !5
  %433 = getelementptr inbounds %"struct.MIR::LValue", ptr %432, i32 0, i32 1
  %434 = call ptr @_ZNSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %433) #7
  %435 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.461", ptr %51, i32 0, i32 0
  store ptr %434, ptr %435, align 8
  %436 = load i64, ptr %18, align 8, !tbaa !27
  %437 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR6LValue7WrapperESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %51, i64 noundef %436) #7
  %438 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.461", ptr %50, i32 0, i32 0
  store ptr %437, ptr %438, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %50) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  %439 = invoke i32 @_ZN3MIR6LValue7Wrapper9new_FieldEj(i32 noundef 0)
          to label %440 unwind label %447

440:                                              ; preds = %429
  %441 = getelementptr inbounds %"class.MIR::LValue::Wrapper", ptr %52, i32 0, i32 0
  store i32 %439, ptr %441, align 4
  %442 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.462", ptr %49, i32 0, i32 0
  %443 = load ptr, ptr %442, align 8
  %444 = invoke ptr @_ZNSt6vectorIN3MIR6LValue7WrapperESaIS2_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %431, ptr %443, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %445 unwind label %447

445:                                              ; preds = %440
  %446 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.461", ptr %53, i32 0, i32 0
  store ptr %444, ptr %446, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %425, !llvm.loop !44

447:                                              ; preds = %440, %429
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %21, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %452

451:                                              ; preds = %425
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %454

452:                                              ; preds = %447, %418, %406, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %458

453:                                              ; preds = %173
  br label %454

454:                                              ; preds = %453, %451
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %455

455:                                              ; preds = %454, %156
  %456 = load i64, ptr %18, align 8, !tbaa !27
  %457 = add i64 %456, 1
  store i64 %457, ptr %18, align 8, !tbaa !27
  br label %143, !llvm.loop !45

458:                                              ; preds = %452, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %460

459:                                              ; preds = %149
  ret void

460:                                              ; preds = %458
  %461 = load ptr, ptr %21, align 8
  %462 = load i32, ptr %22, align 4
  %463 = insertvalue { ptr, i32 } poison, ptr %461, 0
  %464 = insertvalue { ptr, i32 } %463, i32 %462, 1
  resume { ptr, i32 } %464

465:                                              ; preds = %267
  unreachable
}

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

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

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

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

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

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

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

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

declare noundef ptr @_ZNK18StaticTraitResolve17is_type_owned_boxERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN3MIR6LValue7Wrapper9new_FieldEj(i32 noundef) #3 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = !{!28, !28, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!30, !6, i64 16}
!30 = !{!"_ZTSN3MIR11TypeResolveE", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !31, i64 32, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !18, i64 112, !18, i64 116}
!31 = !{!"_ZTS9FmtLambda", !32, i64 0}
!32 = !{!"_ZTSSt8functionIFvRSoEE", !33, i64 0, !6, i64 24}
!33 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}
!40 = distinct !{!40, !15}
!41 = distinct !{!41, !15}
!42 = !{!30, !6, i64 8}
!43 = distinct !{!43, !15}
!44 = distinct !{!44, !15}
!45 = distinct !{!45, !15}


; 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::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.453 = type { i8 }
%class.anon.455 = type { ptr }
%class.anon.456 = type { i8 }
%class.anon.458 = type { i8 }
%struct.MonomorphStatePtr = type { %class.MonomorphiserPP, ptr, ptr, ptr, ptr }
%class.MonomorphiserPP = type { %class.Monomorphiser }
%class.Monomorphiser = type { ptr, ptr, %"class.HIR::ItemPath", %"class.std::vector.19" }
%"class.HIR::ItemPath" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = 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.anon.460 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.462" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.461" = type { ptr }
%"class.MIR::LValue::Wrapper" = type { i32 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE = external hidden unnamed_addr constant [83 x i8], align 1
@__FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE = external hidden unnamed_addr constant [19 x i8], align 1

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

declare 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR7TypeRefaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 #2 align 2

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #1 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve15get_lvalue_typeERN3HIR7TypeRefERKNS_6LValueEj(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt4pairI8RcStringN3HIR6VisEntINS2_7TypeRefEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
.lr.ph:
  %3 = alloca %"class.HIR::TypeRef", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %class.anon.453, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon.455, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.456, align 1
  %12 = alloca %"class.std::function", align 8
  %13 = alloca %class.anon.458, align 1
  %14 = alloca %"class.HIR::TypeRef", align 8
  %15 = alloca %struct.MonomorphStatePtr, align 8
  %16 = alloca %"class.std::function", align 8
  %17 = alloca %class.anon.460, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.462", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.461", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.461", align 8
  %21 = alloca %"class.MIR::LValue::Wrapper", align 4
  %22 = tail call noundef i32 @_ZNK3MIR6LValue7Storage3tagEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  switch i32 %22, label %.preheader116.split [
    i32 4, label %.split
    i32 3, label %.preheader121
    i32 0, label %.preheader123
    i32 1, label %.preheader125
    i32 2, label %.preheader127
  ]

.preheader116.split:                              ; preds = %.preheader127, %.preheader125, %.preheader123, %.preheader121, %.lr.ph
  %23 = getelementptr inbounds i8, ptr %2, i64 8
  %24 = tail call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %.not299 = icmp eq i64 %24, 0
  br i1 %.not299, label %._crit_edge298, label %.lr.ph297

.lr.ph297:                                        ; preds = %.preheader116.split
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  br label %31

.preheader127:                                    ; preds = %.lr.ph
  %27 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZN3MIR6LValue7Storage9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %.preheader116.split

.preheader125:                                    ; preds = %.lr.ph
  %28 = tail call noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %.preheader116.split

.preheader123:                                    ; preds = %.lr.ph
  %29 = tail call noundef i32 @_ZNK3MIR6LValue7Storage11as_ArgumentEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %.preheader116.split

.preheader121:                                    ; preds = %.lr.ph
  %30 = tail call noundef signext i8 @_ZNK3MIR6LValue7Storage9as_ReturnEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %.preheader116.split

.split:                                           ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 941, ptr noundef nonnull @__PRETTY_FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE) #8
  unreachable

._crit_edge298:                                   ; preds = %116, %.preheader116.split
  ret void

31:                                               ; preds = %.lr.ph297, %116
  %.082294 = phi i64 [ 0, %.lr.ph297 ], [ %117, %116 ]
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN3MIR6LValue7WrapperESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %.082294) #7
  %33 = call noundef zeroext i1 @_ZNK3MIR6LValue7Wrapper8is_DerefEv(ptr noundef nonnull align 4 dereferenceable(4) %32)
  br i1 %33, label %34, label %116

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %36 = sub i64 %35, %.082294
  %37 = trunc i64 %36 to i32
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve15get_lvalue_typeERN3HIR7TypeRefERKNS_6LValueEj(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %37)
          to label %39 unwind label %52

39:                                               ; preds = %34
  %40 = load ptr, ptr %25, align 8, !tbaa !5
  %41 = invoke noundef ptr @_ZNK18StaticTraitResolve17is_type_owned_boxERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424) %40, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %42 unwind label %52

42:                                               ; preds = %39
  %.not = icmp eq ptr %41, null
  br i1 %.not, label %115, label %.split287

.split287:                                        ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr %38, ptr %4, align 8, !tbaa !14
  %43 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %44 = call noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %43)
  br i1 %44, label %.lr.ph289, label %._crit_edge

.lr.ph289:                                        ; preds = %.split287, %86
  %.083288 = phi i32 [ %88, %86 ], [ 0, %.split287 ]
  %45 = load ptr, ptr %4, align 8, !tbaa !14
  %46 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
  %47 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK3HIR8TypeData7as_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %46)
  %48 = getelementptr inbounds i8, ptr %47, i64 88
  %49 = call noundef zeroext i1 @_ZNK3HIR15TypePathBinding9is_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %48)
  br i1 %49, label %.split266, label %50

50:                                               ; preds = %.lr.ph289
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %5)
          to label %51 unwind label %54

51:                                               ; preds = %50
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %.split266

52:                                               ; preds = %39, %34
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %120

54:                                               ; preds = %50
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %114

.split266:                                        ; preds = %51, %.lr.ph289
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3HIR15TypePathBinding9as_StructEv(ptr noundef nonnull align 8 dereferenceable(16) %48)
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds i8, ptr %57, i64 104
  %59 = call noundef i32 @_ZNK3HIR6Struct4Data3tagEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
  switch i32 %59, label %..loopexit115_crit_edge [
    i32 0, label %.split241
    i32 1, label %.split243
    i32 2, label %.preheader
    i32 3, label %.preheader113
  ]

.preheader113:                                    ; preds = %.split266
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR6Struct4Data8as_NamedEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
  %61 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringN3HIR6VisEntINS2_7TypeRefEEEESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #7
  %.not101 = icmp eq i64 %61, 0
  br i1 %.not101, label %77, label %..loopexit111_crit_edge

.preheader:                                       ; preds = %.split266
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3HIR6Struct4Data8as_TupleEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
  %63 = call noundef i64 @_ZNKSt6vectorIN3HIR6VisEntINS0_7TypeRefEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #7
  %.not102 = icmp eq i64 %63, 0
  br i1 %.not102, label %72, label %..loopexit_crit_edge

.split241:                                        ; preds = %.split266
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 976, ptr noundef nonnull @__PRETTY_FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE) #8
  unreachable

.split243:                                        ; preds = %.split266
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3HIR6Struct4Data7as_UnitEv(ptr noundef nonnull align 8 dereferenceable(32) %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store ptr @__FUNCTION__._Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE, ptr %7, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store ptr %7, ptr %9, align 8, !tbaa !14
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %8)
          to label %65 unwind label %67

65:                                               ; preds = %.split243
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %66 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str, ptr %66, align 16, !tbaa !14
  invoke void @__cxa_throw(ptr nonnull %66, ptr nonnull @_ZTIPKc, ptr null) #9
          to label %121 unwind label %69

67:                                               ; preds = %.split243
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %71

69:                                               ; preds = %65
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %71

71:                                               ; preds = %69, %67
  %.pn103 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %114

72:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %10)
          to label %73 unwind label %.split207.split.split.split

73:                                               ; preds = %72
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %..loopexit_crit_edge

.split207.split.split.split:                      ; preds = %72
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %114

..loopexit_crit_edge:                             ; preds = %73, %.preheader
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3HIR6VisEntINS0_7TypeRefEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 0) #7
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  br label %..loopexit115_crit_edge

77:                                               ; preds = %.preheader113
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %12)
          to label %78 unwind label %.split184.split.split.split

78:                                               ; preds = %77
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %..loopexit111_crit_edge

.split184.split.split.split:                      ; preds = %77
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %114

..loopexit111_crit_edge:                          ; preds = %78, %.preheader113
  %80 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt4pairI8RcStringN3HIR6VisEntINS2_7TypeRefEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #7
  %81 = getelementptr inbounds i8, ptr %80, i64 24
  br label %..loopexit115_crit_edge

..loopexit115_crit_edge:                          ; preds = %..loopexit111_crit_edge, %..loopexit_crit_edge, %.split266
  %.6 = phi ptr [ null, %.split266 ], [ %76, %..loopexit_crit_edge ], [ %81, %..loopexit111_crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #7
  %82 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK3HIR4Path4Data10as_GenericEv(ptr noundef nonnull align 8 dereferenceable(88) %47)
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  invoke void @_ZN17MonomorphStatePtrC2EPKN3HIR7TypeRefEPKNS0_10PathParamsES6_S6_S6_(ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef null, ptr noundef nonnull %83, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %84 unwind label %91

84:                                               ; preds = %..loopexit115_crit_edge
  %85 = load ptr, ptr %26, align 8, !tbaa !15
  invoke void @_ZNK13Monomorphiser14monomorph_typeERK4SpanRKN3HIR7TypeRefEb(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %14, ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(8) %.6, i1 noundef zeroext true)
          to label %86 unwind label %93

86:                                               ; preds = %84
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR7TypeRefaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  store ptr %3, ptr %4, align 8, !tbaa !14
  %88 = add i32 %.083288, 1
  %89 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %90 = call noundef zeroext i1 @_ZNK3HIR8TypeData7is_PathEv(ptr noundef nonnull align 8 dereferenceable(184) %89)
  br i1 %90, label %.lr.ph289, label %._crit_edge, !llvm.loop !16

91:                                               ; preds = %..loopexit115_crit_edge
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %84
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13MonomorphiserD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #7
  br label %95

95:                                               ; preds = %93, %91
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %114

._crit_edge:                                      ; preds = %86, %.split287
  %.083.lcssa = phi i32 [ 0, %.split287 ], [ %88, %86 ]
  %96 = load ptr, ptr %4, align 8, !tbaa !14
  %97 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %96)
  %98 = call noundef zeroext i1 @_ZNK3HIR8TypeData10is_PointerEv(ptr noundef nonnull align 8 dereferenceable(184) %97)
  br i1 %98, label %103, label %99

99:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  store ptr %4, ptr %17, align 8, !tbaa !14
  call void @"_ZNSt8functionIFvRSoEEC2IZ18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS4_6LValueEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %16)
          to label %100 unwind label %101

100:                                              ; preds = %99
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %103

101:                                              ; preds = %99
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %114

103:                                              ; preds = %100, %._crit_edge
  %.not99290 = icmp eq i32 %.083.lcssa, 0
  br i1 %.not99290, label %._crit_edge293, label %.lr.ph292

.lr.ph292:                                        ; preds = %103, %111
  %.in = phi i32 [ %104, %111 ], [ %.083.lcssa, %103 ]
  %104 = add i32 %.in, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %105 = call ptr @_ZNSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %105, ptr %20, align 8
  %106 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR6LValue7WrapperESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef %.082294) #7
  store ptr %106, ptr %19, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %107 = invoke i32 @_ZN3MIR6LValue7Wrapper9new_FieldEj(i32 noundef 0)
          to label %108 unwind label %112

108:                                              ; preds = %.lr.ph292
  store i32 %107, ptr %21, align 4
  %109 = load ptr, ptr %18, align 8
  %110 = invoke ptr @_ZNSt6vectorIN3MIR6LValue7WrapperESaIS2_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %109, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %111 unwind label %112

111:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %.not99 = icmp eq i32 %104, 0
  br i1 %.not99, label %._crit_edge293, label %.lr.ph292, !llvm.loop !18

112:                                              ; preds = %108, %.lr.ph292
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %114

._crit_edge293:                                   ; preds = %111, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %115

114:                                              ; preds = %54, %71, %.split207.split.split.split, %.split184.split.split.split, %95, %112, %101
  %.pn105.pn.pn.pn = phi { ptr, i32 } [ %113, %112 ], [ %102, %101 ], [ %55, %54 ], [ %.pn, %95 ], [ %79, %.split184.split.split.split ], [ %74, %.split207.split.split.split ], [ %.pn103, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %120

115:                                              ; preds = %42, %._crit_edge293
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %116

116:                                              ; preds = %31, %115
  %117 = add nuw i64 %.082294, 1
  %118 = call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %119 = icmp ult i64 %117, %118
  br i1 %119, label %31, label %._crit_edge298, !llvm.loop !19

120:                                              ; preds = %114, %52
  %.pn105.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn105.pn.pn.pn, %114 ], [ %53, %52 ]
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn105.pn.pn.pn.pn

121:                                              ; preds = %65
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(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(88) ptr @_ZN3MIR6LValue7Storage9as_StaticEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

declare noundef ptr @_ZNK18StaticTraitResolve17is_type_owned_boxERKN3HIR7TypeRefE(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN3MIR6LValue7Wrapper9new_FieldEj(i32 noundef) local_unnamed_addr #3 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"_ZTSN3MIR11TypeResolveE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS9FmtLambda", !12, i64 0}
!12 = !{!"_ZTSSt8functionIFvRSoEE", !13, i64 0, !10, i64 24}
!13 = !{!"_ZTSSt14_Function_base", !8, i64 0, !10, i64 16}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !10, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass