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

; 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.MIR::RValue" = type { i32, %"union.MIR::RValue::DataUnion" }
%"union.MIR::RValue::DataUnion" = type { %"struct.MIR::RValue::Data_BinOp" }
%"struct.MIR::RValue::Data_BinOp" = type { %"class.MIR::Param", i32, %"class.MIR::Param" }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"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 }
%struct.EncodedLiteralSlice = type { ptr, i64, i64 }
%"class.HIR::TypeRef" = type { ptr }
%struct.MonomorphState = type { %class.MonomorphiserPP, %"class.HIR::TypeRef", ptr, ptr, %"struct.HIR::PathParams" }
%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 }
%"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::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 }
%"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.MIR::Constant" = type { i32, %"union.MIR::Constant::DataUnion" }
%"union.MIR::Constant::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.MIR::Constant::Data_Const" = type { %"class.std::unique_ptr.76" }
%"class.std::unique_ptr.76" = type { %"struct.std::__uniq_ptr_data.77" }
%"struct.std::__uniq_ptr_data.77" = type { %"class.std::__uniq_ptr_impl.78" }
%"class.std::__uniq_ptr_impl.78" = type { %"class.std::tuple.79" }
%"class.std::tuple.79" = type { %"struct.std::_Tuple_impl.80" }
%"struct.std::_Tuple_impl.80" = type { %"struct.std::_Head_base.83" }
%"struct.std::_Head_base.83" = type { 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
@g_debug_indent_level = external global i32, align 4
@__PRETTY_FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE = external hidden unnamed_addr constant [81 x i8], align 1
@__FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z23MIR_Cleanup_GetConstantRKN3MIR11TypeResolveERKN3HIR4PathERNS3_7TypeRefER14MonomorphState(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(144)) #0

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

declare noundef zeroext i1 @_Z13debug_enabledv() #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z27MIR_Cleanup_LiteralToRValueRKN3MIR11TypeResolveER10MirMutator19EncodedLiteralSliceN3HIR7TypeRefERK14MonomorphStateNS6_4PathE(ptr dead_on_unwind noalias writable sret(%"class.MIR::RValue") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%struct.EncodedLiteralSlice) align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(144), ptr noundef) #0

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(88)) #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10MirMutator12in_temporaryEN3HIR7TypeRefEN3MIR6RValueE(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20MIR_Cleanup_ConstantRKN3MIR11TypeResolveER10MirMutatorRNS_8ConstantE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) #0 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 ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.HIR::TypeRef", align 8
  %18 = alloca %struct.MonomorphState, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.MIR::RValue", align 8
  %23 = alloca %struct.EncodedLiteralSlice, align 8
  %24 = alloca %"class.HIR::TypeRef", align 8
  %25 = alloca %"class.HIR::Path", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.MIR::Param", align 8
  %28 = alloca %"struct.MIR::LValue", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.MIR::Param", align 8
  %31 = alloca %"class.MIR::Constant", align 8
  %32 = alloca %"struct.MIR::LValue", align 8
  %33 = alloca %"class.HIR::TypeRef", align 8
  %34 = alloca %"class.MIR::RValue", align 8
  %35 = alloca %"class.MIR::Param", align 8
  %36 = alloca %"struct.MIR::LValue", 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 %37

37:                                               ; preds = %118, %3
  %38 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %39 = trunc i8 %38 to i1
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %42, ptr %9, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %116, %41
  %44 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %45 = trunc i8 %44 to i1
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %43
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call noundef i32 @_ZNK3MIR5Param3tagEv(ptr noundef nonnull align 8 dereferenceable(48) %48)
  switch i32 %49, label %115 [
    i32 0, label %50
    i32 1, label %51
    i32 2, label %72
    i32 3, label %94
  ]

50:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 1027, ptr noundef @__PRETTY_FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE) #8
  unreachable

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

52:                                               ; preds = %70, %51
  %53 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3MIR5Param9as_LValueEv(ptr noundef nonnull align 8 dereferenceable(48) %57)
  store ptr %58, ptr %11, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %68, %56
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %62 = trunc i8 %61 to i1
  br i1 %62, label %64, label %63

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

64:                                               ; preds = %59
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120) %65, ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull align 8 dereferenceable(32) %67)
  br label %68

68:                                               ; preds = %64
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %59, !llvm.loop !13

69:                                               ; preds = %63
  br label %70

70:                                               ; preds = %69
  store i8 0, ptr %10, align 1, !tbaa !9
  br label %52, !llvm.loop !15

71:                                               ; preds = %55
  br label %115

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

73:                                               ; preds = %92, %72
  %74 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %75 = trunc i8 %74 to i1
  br i1 %75, label %77, label %76

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

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(48) %78)
  store ptr %79, ptr %13, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %90, %77
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %83 = trunc i8 %82 to i1
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.MIR::Param::Data_Borrow", ptr %88, i32 0, i32 1
  call void @_Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120) %86, ptr noundef nonnull align 8 dereferenceable(40) %87, ptr noundef nonnull align 8 dereferenceable(32) %89)
  br label %90

90:                                               ; preds = %85
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %80, !llvm.loop !16

91:                                               ; preds = %84
  br label %92

92:                                               ; preds = %91
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %73, !llvm.loop !17

93:                                               ; preds = %76
  br label %115

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

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

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

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %100)
  store ptr %101, ptr %15, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %111, %99
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %105 = trunc i8 %104 to i1
  br i1 %105, label %107, label %106

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

107:                                              ; preds = %102
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_Z20MIR_Cleanup_ConstantRKN3MIR11TypeResolveER10MirMutatorRNS_8ConstantE(ptr noundef nonnull align 8 dereferenceable(120) %108, ptr noundef nonnull align 8 dereferenceable(40) %109, ptr noundef nonnull align 8 dereferenceable(40) %110)
  br label %111

111:                                              ; preds = %107
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %102, !llvm.loop !18

112:                                              ; preds = %106
  br label %113

113:                                              ; preds = %112
  store i8 0, ptr %14, align 1, !tbaa !9
  br label %95, !llvm.loop !19

114:                                              ; preds = %98
  br label %115

115:                                              ; preds = %114, %93, %71, %47
  br label %116

116:                                              ; preds = %115
  store i8 0, ptr %7, align 1, !tbaa !9
  br label %43, !llvm.loop !20

117:                                              ; preds = %46
  br label %118

118:                                              ; preds = %117
  store i8 0, ptr %7, align 1, !tbaa !9
  br label %37, !llvm.loop !21

119:                                              ; preds = %40
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZNK3MIR5Param11is_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %120)
  br i1 %121, label %122, label %310

122:                                              ; preds = %119
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %123)
  %125 = call noundef zeroext i1 @_ZNK3MIR8Constant8is_ConstEv(ptr noundef nonnull align 8 dereferenceable(40) %124)
  br i1 %125, label %126, label %310

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %127)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIR8Constant8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(40) %128)
  store ptr %129, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.start.p0(i64 144, ptr %18) #7
  invoke void @_ZN14MonomorphStateC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %130 unwind label %163

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.MIR::Constant::Data_Const", ptr %132, i32 0, i32 0
  %134 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %133) #7
  %135 = invoke noundef ptr @_Z23MIR_Cleanup_GetConstantRKN3MIR11TypeResolveERKN3HIR4PathERNS3_7TypeRefER14MonomorphState(ptr noundef nonnull align 8 dereferenceable(120) %131, ptr noundef nonnull align 8 dereferenceable(88) %134, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %136 unwind label %167

136:                                              ; preds = %130
  store ptr %135, ptr %21, align 8, !tbaa !5
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %285

139:                                              ; preds = %136
  br label %140

140:                                              ; preds = %139
  %141 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %142 unwind label %167

142:                                              ; preds = %140
  br i1 %141, label %143, label %171

143:                                              ; preds = %142
  %144 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %144, ptr noundef @__FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE)
          to label %146 unwind label %167

146:                                              ; preds = %143
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @.str.18)
          to label %148 unwind label %167

148:                                              ; preds = %146
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.MIR::Constant::Data_Const", ptr %149, i32 0, i32 0
  %151 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %150) #7
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull align 8 dereferenceable(88) %151)
          to label %153 unwind label %167

153:                                              ; preds = %148
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef @.str.19)
          to label %155 unwind label %167

155:                                              ; preds = %153
  %156 = load ptr, ptr %21, align 8, !tbaa !5
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(48) %156)
          to label %158 unwind label %167

158:                                              ; preds = %155
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @_ZSt3decRSt8ios_base)
          to label %160 unwind label %167

160:                                              ; preds = %158
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %162 unwind label %167

162:                                              ; preds = %160
  br label %171

163:                                              ; preds = %126
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %19, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %20, align 4
  br label %309

167:                                              ; preds = %301, %299, %294, %292, %289, %286, %160, %158, %155, %153, %148, %146, %143, %140, %130
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %19, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %20, align 4
  br label %308

171:                                              ; preds = %162, %142
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 112, ptr %22) #7
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(48) %176)
          to label %177 unwind label %194

177:                                              ; preds = %173
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %24, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %178 unwind label %194

178:                                              ; preds = %177
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.MIR::Constant::Data_Const", ptr %179, i32 0, i32 0
  %181 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %180) #7
  call void @_ZN3HIR4PathC2EOS0_(ptr noundef nonnull align 8 dereferenceable(88) %25, ptr noundef nonnull align 8 dereferenceable(88) %181) #7
  invoke void @_Z27MIR_Cleanup_LiteralToRValueRKN3MIR11TypeResolveER10MirMutator19EncodedLiteralSliceN3HIR7TypeRefERK14MonomorphStateNS6_4PathE(ptr dead_on_unwind writable sret(%"class.MIR::RValue") align 8 %22, ptr noundef nonnull align 8 dereferenceable(120) %174, ptr noundef nonnull align 8 dereferenceable(40) %175, ptr noundef byval(%struct.EncodedLiteralSlice) align 8 %23, ptr noundef %24, ptr noundef nonnull align 8 dereferenceable(144) %18, ptr noundef %25)
          to label %182 unwind label %198

182:                                              ; preds = %178
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %25) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %183 = invoke noundef ptr @_ZN3MIR6RValue7opt_UseEv(ptr noundef nonnull align 8 dereferenceable(112) %22)
          to label %184 unwind label %202

184:                                              ; preds = %182
  store ptr %183, ptr %26, align 8, !tbaa !5
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %220

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #7
  %188 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %188)
          to label %189 unwind label %206

189:                                              ; preds = %187
  invoke void @_ZN3MIR5Param11make_LValueENS_6LValueE(ptr dead_on_unwind writable sret(%"class.MIR::Param") align 8 %27, ptr noundef %28)
          to label %190 unwind label %210

190:                                              ; preds = %189
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3MIR5ParamaSEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %191, ptr noundef nonnull align 8 dereferenceable(48) %27)
          to label %193 unwind label %214

193:                                              ; preds = %190
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #7
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #7
  br label %282

194:                                              ; preds = %177, %173
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %19, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %20, align 4
  br label %284

198:                                              ; preds = %178
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %19, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %20, align 4
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %25) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %284

202:                                              ; preds = %182
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %19, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %20, align 4
  br label %283

206:                                              ; preds = %187
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %19, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %20, align 4
  br label %219

210:                                              ; preds = %189
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %19, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %20, align 4
  br label %218

214:                                              ; preds = %190
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %19, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %20, align 4
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #7
  br label %218

218:                                              ; preds = %214, %210
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  br label %219

219:                                              ; preds = %218, %206
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #7
  br label %283

220:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %221 = invoke noundef ptr @_ZN3MIR6RValue12opt_ConstantEv(ptr noundef nonnull align 8 dereferenceable(112) %22)
          to label %222 unwind label %235

222:                                              ; preds = %220
  store ptr %221, ptr %29, align 8, !tbaa !5
  %223 = load ptr, ptr %29, align 8, !tbaa !5
  %224 = icmp ne ptr %223, null
  br i1 %224, label %225, label %248

225:                                              ; preds = %222
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_Z20MIR_Cleanup_ConstantRKN3MIR11TypeResolveER10MirMutatorRNS_8ConstantE(ptr noundef nonnull align 8 dereferenceable(120) %226, ptr noundef nonnull align 8 dereferenceable(40) %227, ptr noundef nonnull align 8 dereferenceable(40) %228)
          to label %229 unwind label %235

229:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #7
  %230 = load ptr, ptr %29, align 8, !tbaa !5
  call void @_ZN3MIR8ConstantC2EOS0_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef nonnull align 8 dereferenceable(40) %230) #7
  invoke void @_ZN3MIR5Param13make_ConstantENS_8ConstantE(ptr dead_on_unwind writable sret(%"class.MIR::Param") align 8 %30, ptr noundef %31)
          to label %231 unwind label %239

231:                                              ; preds = %229
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3MIR5ParamaSEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %232, ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %234 unwind label %243

234:                                              ; preds = %231
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #7
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %31) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #7
  br label %280

235:                                              ; preds = %225, %220
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %19, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %20, align 4
  br label %281

239:                                              ; preds = %229
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %19, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %20, align 4
  br label %247

243:                                              ; preds = %231
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %19, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %20, align 4
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #7
  br label %247

247:                                              ; preds = %243, %239
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %31) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #7
  br label %281

248:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #7
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3HIR7TypeRefC2EOS0_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %250 unwind label %257

250:                                              ; preds = %248
  call void @_ZN3MIR6RValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(112) %34, ptr noundef nonnull align 8 dereferenceable(112) %22) #7
  invoke void @_ZN10MirMutator12in_temporaryEN3HIR7TypeRefEN3MIR6RValueE(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %32, ptr noundef nonnull align 8 dereferenceable(40) %249, ptr noundef %33, ptr noundef %34)
          to label %251 unwind label %261

251:                                              ; preds = %250
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %34) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %35) #7
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %252 unwind label %265

252:                                              ; preds = %251
  invoke void @_ZN3MIR5Param11make_LValueENS_6LValueE(ptr dead_on_unwind writable sret(%"class.MIR::Param") align 8 %35, ptr noundef %36)
          to label %253 unwind label %269

253:                                              ; preds = %252
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3MIR5ParamaSEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %254, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %256 unwind label %273

256:                                              ; preds = %253
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #7
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  br label %280

257:                                              ; preds = %248
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %19, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %20, align 4
  br label %279

261:                                              ; preds = %250
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %19, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %20, align 4
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %34) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %279

265:                                              ; preds = %251
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %19, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %20, align 4
  br label %278

269:                                              ; preds = %252
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %19, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %20, align 4
  br label %277

273:                                              ; preds = %253
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %19, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %20, align 4
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  br label %277

277:                                              ; preds = %273, %269
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  br label %278

278:                                              ; preds = %277, %265
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #7
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %279

279:                                              ; preds = %278, %261, %257
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  br label %281

280:                                              ; preds = %256, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %282

281:                                              ; preds = %279, %247, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %283

282:                                              ; preds = %280, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %22) #7
  call void @llvm.lifetime.end.p0(i64 112, ptr %22) #7
  br label %307

283:                                              ; preds = %281, %219, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %22) #7
  br label %284

284:                                              ; preds = %283, %198, %194
  call void @llvm.lifetime.end.p0(i64 112, ptr %22) #7
  br label %308

285:                                              ; preds = %136
  br label %286

286:                                              ; preds = %285
  %287 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %288 unwind label %167

288:                                              ; preds = %286
  br i1 %287, label %289, label %304

289:                                              ; preds = %288
  %290 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %290, ptr noundef @__FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE)
          to label %292 unwind label %167

292:                                              ; preds = %289
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef @.str.20)
          to label %294 unwind label %167

294:                                              ; preds = %292
  %295 = load ptr, ptr %16, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.MIR::Constant::Data_Const", ptr %295, i32 0, i32 0
  %297 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %296) #7
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(8) %293, ptr noundef nonnull align 8 dereferenceable(88) %297)
          to label %299 unwind label %167

299:                                              ; preds = %294
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %298, ptr noundef @_ZSt3decRSt8ios_base)
          to label %301 unwind label %167

301:                                              ; preds = %299
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %303 unwind label %167

303:                                              ; preds = %301
  br label %304

304:                                              ; preds = %303, %288
  br label %305

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @_ZN14MonomorphStateD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %18) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %18) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %310

308:                                              ; preds = %284, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @_ZN14MonomorphStateD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %18) #7
  br label %309

309:                                              ; preds = %308, %163
  call void @llvm.lifetime.end.p0(i64 144, ptr %18) #7
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %311

310:                                              ; preds = %307, %122, %119
  ret void

311:                                              ; preds = %309
  %312 = load ptr, ptr %19, align 8
  %313 = load i32, ptr %20, align 4
  %314 = insertvalue { ptr, i32 } poison, ptr %312, 0
  %315 = insertvalue { ptr, i32 } %314, i32 %313, 1
  resume { ptr, i32 } %315
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR5Param11make_LValueENS_6LValueE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Param") align 8, ptr noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR5Param13make_ConstantENS_8ConstantE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Param") align 8, ptr noundef) #0 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !7, i64 0}


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

%"class.MIR::RValue" = type { i32, %"union.MIR::RValue::DataUnion" }
%"union.MIR::RValue::DataUnion" = type { %"struct.MIR::RValue::Data_BinOp" }
%"struct.MIR::RValue::Data_BinOp" = type { %"class.MIR::Param", i32, %"class.MIR::Param" }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"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 }
%struct.EncodedLiteralSlice = type { ptr, i64, i64 }
%"class.HIR::TypeRef" = type { ptr }
%struct.MonomorphState = type { %class.MonomorphiserPP, %"class.HIR::TypeRef", ptr, ptr, %"struct.HIR::PathParams" }
%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 }
%"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::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 }
%"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.MIR::Constant" = type { i32, %"union.MIR::Constant::DataUnion" }
%"union.MIR::Constant::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [74 x i8], align 1
@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__PRETTY_FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE = external hidden unnamed_addr constant [81 x i8], align 1
@__FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z23MIR_Cleanup_GetConstantRKN3MIR11TypeResolveERKN3HIR4PathERNS3_7TypeRefER14MonomorphState(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z27MIR_Cleanup_LiteralToRValueRKN3MIR11TypeResolveER10MirMutator19EncodedLiteralSliceN3HIR7TypeRefERK14MonomorphStateNS6_4PathE(ptr dead_on_unwind noalias writable sret(%"class.MIR::RValue") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%struct.EncodedLiteralSlice) align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(144), ptr noundef) local_unnamed_addr #0

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10MirMutator12in_temporaryEN3HIR7TypeRefEN3MIR6RValueE(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18MIR_Cleanup_LValueRKN3MIR11TypeResolveER10MirMutatorRNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20MIR_Cleanup_ConstantRKN3MIR11TypeResolveER10MirMutatorRNS_8ConstantE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
.lr.ph:
  %3 = alloca %"class.HIR::TypeRef", align 8
  %4 = alloca %struct.MonomorphState, align 8
  %5 = alloca %"class.MIR::RValue", align 8
  %6 = alloca %struct.EncodedLiteralSlice, align 8
  %7 = alloca %"class.HIR::TypeRef", align 8
  %8 = alloca %"class.HIR::Path", align 8
  %9 = alloca %"class.MIR::Param", align 8
  %10 = alloca %"struct.MIR::LValue", align 8
  %11 = alloca %"class.MIR::Param", align 8
  %12 = alloca %"class.MIR::Constant", align 8
  %13 = alloca %"struct.MIR::LValue", align 8
  %14 = alloca %"class.HIR::TypeRef", align 8
  %15 = alloca %"class.MIR::RValue", align 8
  %16 = alloca %"class.MIR::Param", align 8
  %17 = alloca %"struct.MIR::LValue", align 8
  %18 = tail call noundef i32 @_ZNK3MIR5Param3tagEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  switch i32 %18, label %.loopexit95 [
    i32 0, label %.split
    i32 1, label %.preheader
    i32 2, label %.preheader90
    i32 3, label %.preheader92
  ]

.loopexit95:                                      ; preds = %.lr.ph, %.preheader, %.preheader90, %.preheader92
  %19 = tail call noundef zeroext i1 @_ZNK3MIR5Param11is_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  br i1 %19, label %24, label %131

.preheader92:                                     ; preds = %.lr.ph
  %20 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  tail call void @_Z20MIR_Cleanup_ConstantRKN3MIR11TypeResolveER10MirMutatorRNS_8ConstantE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %20)
  br label %.loopexit95

.preheader90:                                     ; preds = %.lr.ph
  %21 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  tail call 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) %22)
  br label %.loopexit95

.preheader:                                       ; preds = %.lr.ph
  %23 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3MIR5Param9as_LValueEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  tail call 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) %23)
  br label %.loopexit95

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

24:                                               ; preds = %.loopexit95
  %25 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  %26 = tail call noundef zeroext i1 @_ZNK3MIR8Constant8is_ConstEv(ptr noundef nonnull align 8 dereferenceable(40) %25)
  br i1 %26, label %27, label %131

27:                                               ; preds = %24
  %28 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR5Param11as_ConstantEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIR8Constant8as_ConstEv(ptr noundef nonnull align 8 dereferenceable(40) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %4) #8
  invoke void @_ZN14MonomorphStateC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %4)
          to label %30 unwind label %53

30:                                               ; preds = %27
  %31 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %32 = invoke noundef ptr @_Z23MIR_Cleanup_GetConstantRKN3MIR11TypeResolveERKN3HIR4PathERNS3_7TypeRefER14MonomorphState(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(88) %31, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(144) %4)
          to label %33 unwind label %55

33:                                               ; preds = %30
  %.not = icmp eq ptr %32, null
  br i1 %.not, label %113, label %34

34:                                               ; preds = %33
  %35 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %36 unwind label %55

36:                                               ; preds = %34
  br i1 %35, label %37, label %57

37:                                               ; preds = %36
  %38 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %38, ptr noundef nonnull @__FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE)
          to label %40 unwind label %55

40:                                               ; preds = %37
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.18)
          to label %42 unwind label %55

42:                                               ; preds = %40
  %43 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(88) %43)
          to label %45 unwind label %55

45:                                               ; preds = %42
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.19)
          to label %47 unwind label %55

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(48) %32)
          to label %49 unwind label %55

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %51 unwind label %55

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %57 unwind label %55

53:                                               ; preds = %27
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %130

55:                                               ; preds = %126, %124, %121, %119, %116, %113, %51, %49, %47, %45, %42, %40, %37, %34, %30
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %129

57:                                               ; preds = %51, %36
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #8
  call void @_ZN19EncodedLiteralSliceC2ERK14EncodedLiteral(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(48) %32)
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %58 unwind label %67

58:                                               ; preds = %57
  %59 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  call void @_ZN3HIR4PathC2EOS0_(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(88) %59) #8
  invoke void @_Z27MIR_Cleanup_LiteralToRValueRKN3MIR11TypeResolveER10MirMutator19EncodedLiteralSliceN3HIR7TypeRefERK14MonomorphStateNS6_4PathE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::RValue") align 8 %5, ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull byval(%struct.EncodedLiteralSlice) align 8 %6, ptr noundef nonnull %7, ptr noundef nonnull align 8 dereferenceable(144) %4, ptr noundef nonnull %8)
          to label %60 unwind label %69

60:                                               ; preds = %58
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #8
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %61 = call noundef ptr @_ZN3MIR6RValue7opt_UseEv(ptr noundef nonnull align 8 dereferenceable(112) %5)
  %.not72 = icmp eq ptr %61, null
  br i1 %.not72, label %79, label %62

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %61)
          to label %63 unwind label %71

63:                                               ; preds = %62
  invoke void @_ZN3MIR5Param11make_LValueENS_6LValueE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Param") align 8 %9, ptr noundef nonnull %10)
          to label %64 unwind label %73

64:                                               ; preds = %63
  %65 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3MIR5ParamaSEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %66 unwind label %75

66:                                               ; preds = %64
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  br label %110

67:                                               ; preds = %57
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %112

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #8
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %112

71:                                               ; preds = %62
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %78

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

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

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

78:                                               ; preds = %77, %71
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %77 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  br label %111

79:                                               ; preds = %60
  %80 = call noundef ptr @_ZN3MIR6RValue12opt_ConstantEv(ptr noundef nonnull align 8 dereferenceable(112) %5)
  %.not73 = icmp eq ptr %80, null
  br i1 %.not73, label %93, label %81

81:                                               ; preds = %79
  invoke void @_Z20MIR_Cleanup_ConstantRKN3MIR11TypeResolveER10MirMutatorRNS_8ConstantE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %80)
          to label %82 unwind label %86

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #8
  call void @_ZN3MIR8ConstantC2EOS0_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %80) #8
  invoke void @_ZN3MIR5Param13make_ConstantENS_8ConstantE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Param") align 8 %11, ptr noundef nonnull %12)
          to label %83 unwind label %88

83:                                               ; preds = %82
  %84 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3MIR5ParamaSEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %85 unwind label %90

85:                                               ; preds = %83
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #8
  br label %110

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

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

90:                                               ; preds = %83
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  br label %92

92:                                               ; preds = %90, %88
  %.pn77 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #8
  br label %111

93:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  call void @_ZN3HIR7TypeRefC2EOS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @_ZN3MIR6RValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(112) %15, ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  invoke void @_ZN10MirMutator12in_temporaryEN3HIR7TypeRefEN3MIR6RValueE(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull %14, ptr noundef nonnull %15)
          to label %94 unwind label %99

94:                                               ; preds = %93
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #8
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %16) #8
  invoke void @_ZN3MIR6LValueC2EOS0_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %95 unwind label %101

95:                                               ; preds = %94
  invoke void @_ZN3MIR5Param11make_LValueENS_6LValueE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Param") align 8 %16, ptr noundef nonnull %17)
          to label %96 unwind label %103

96:                                               ; preds = %95
  %97 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3MIR5ParamaSEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %98 unwind label %105

98:                                               ; preds = %96
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  br label %110

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #8
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br label %109

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %108

103:                                              ; preds = %95
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %96
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #8
  br label %107

107:                                              ; preds = %105, %103
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %108

108:                                              ; preds = %107, %101
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %109

109:                                              ; preds = %108, %99
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %108 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  br label %111

110:                                              ; preds = %85, %98, %66
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #8
  br label %128

111:                                              ; preds = %86, %92, %109, %78
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %78 ], [ %.pn77, %92 ], [ %87, %86 ], [ %.pn.pn.pn, %109 ]
  call void @_ZN3MIR6RValueD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #8
  br label %112

112:                                              ; preds = %111, %69, %67
  %.pn80.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn, %111 ], [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #8
  br label %129

113:                                              ; preds = %33
  %114 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %115 unwind label %55

115:                                              ; preds = %113
  br i1 %114, label %116, label %128

116:                                              ; preds = %115
  %117 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !5
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %117, ptr noundef nonnull @__FUNCTION__._Z17MIR_Cleanup_ParamRKN3MIR11TypeResolveER10MirMutatorRNS_5ParamE)
          to label %119 unwind label %55

119:                                              ; preds = %116
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @.str.20)
          to label %121 unwind label %55

121:                                              ; preds = %119
  %122 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt10unique_ptrIN3HIR4PathESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIRlsERSoRKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull align 8 dereferenceable(88) %122)
          to label %124 unwind label %55

124:                                              ; preds = %121
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %126 unwind label %55

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %128 unwind label %55

128:                                              ; preds = %115, %126, %110
  call void @_ZN14MonomorphStateD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %4) #8
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %131

129:                                              ; preds = %112, %55
  %.pn80.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn.pn, %112 ], [ %56, %55 ]
  call void @_ZN14MonomorphStateD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #8
  br label %130

130:                                              ; preds = %129, %53
  %.pn80.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn.pn.pn, %129 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %4) #8
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn80.pn.pn.pn.pn.pn

131:                                              ; preds = %128, %24, %.loopexit95
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR5Param11make_LValueENS_6LValueE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Param") align 8, ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR5Param13make_ConstantENS_8ConstantE(ptr dead_on_unwind noalias writable sret(%"class.MIR::Param") align 8, ptr noundef) local_unnamed_addr #0 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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