; LLVM IR from thepowersgang/mrustc :: src/mir/optimise.ll (Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)

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

%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector.106" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = 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.TraceLog = type { ptr, %"class.std::function" }
%"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.270 = type { i8 }
%class.anon.272 = type { ptr }
%"class.std::vector.273" = type { %"struct.std::_Vector_base.274" }
%"struct.std::_Vector_base.274" = type { %"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl.275" }
%"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl.275" = type { %"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl_data.279" }
%"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl_data.279" = type { ptr, ptr, ptr }
%"class.std::allocator.276" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.(anonymous namespace)::StmtRef" = type { i32, i32 }
%class.anon.280 = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.189" = type { ptr }
%"class.std::function.226" = type { %"class.std::_Function_base", ptr }
%"class.__gnu_cxx::__normal_iterator.260" = type { ptr }
%class.anon.287 = type { i8 }
%class.anon.335 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%"class.MIR::Statement" = type { i32, %"union.MIR::Statement::DataUnion" }
%"union.MIR::Statement::DataUnion" = type { %"struct.MIR::Statement::Data_Assign" }
%"struct.MIR::Statement::Data_Assign" = type { %"struct.MIR::LValue", %"class.MIR::RValue" }
%"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" }
%"class.__gnu_cxx::__normal_iterator.336" = type { ptr }
%"class.MIR::Function" = type { %"class.std::vector.20", %"class.std::vector.25", %"class.std::vector.29", %"class.MIR::EnumCachePtr" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::EnumCachePtr" = type { ptr }
%"struct.MIR::BasicBlock" = type { %"class.std::vector.101", %"class.MIR::Terminator" }
%"class.std::vector.101" = type { %"struct.std::_Vector_base.102" }
%"struct.std::_Vector_base.102" = type { %"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::Terminator" = type { i32, %"union.MIR::Terminator::DataUnion" }
%"union.MIR::Terminator::DataUnion" = type { %"struct.MIR::Terminator::Data_Call" }
%"struct.MIR::Terminator::Data_Call" = type { i32, i32, %"struct.MIR::LValue", %"class.MIR::CallTarget", %"class.std::vector.138" }
%"class.MIR::CallTarget" = type { i32, %"union.MIR::CallTarget::DataUnion" }
%"union.MIR::CallTarget::DataUnion" = type { %"class.HIR::Path" }
%"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::TypeRef" = type { 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.133, %class.ThinVector.134, %class.ThinVector.135 }
%class.ThinVector.133 = type { ptr }
%class.ThinVector.134 = type { ptr }
%class.ThinVector.135 = 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.137" }
%"struct.std::_Head_base.137" = type { ptr }
%"class.std::vector.138" = type { %"struct.std::_Vector_base.139" }
%"struct.std::_Vector_base.139" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Param, std::allocator<MIR::Param>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MIR::Statement::Data_Drop" = type <{ i32, [4 x i8], %"struct.MIR::LValue", i32, [4 x i8] }>
%struct.LocalUsage.281 = type { i32, i32, i32, %"struct.(anonymous namespace)::StmtRef", %"class.std::vector.282" }
%"class.std::vector.282" = type { %"struct.std::_Vector_base.283" }
%"struct.std::_Vector_base.283" = type { %"struct.std::_Vector_base<(anonymous namespace)::StmtRef, std::allocator<(anonymous namespace)::StmtRef>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::StmtRef, std::allocator<(anonymous namespace)::StmtRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::StmtRef, std::allocator<(anonymous namespace)::StmtRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::StmtRef, std::allocator<(anonymous namespace)::StmtRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MIR::RValue::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"struct.HIR::TypeData::Data_Borrow" = type { %"struct.HIR::LifetimeRef", i32, %"class.HIR::TypeRef" }
%"struct.HIR::LifetimeRef" = type { i32 }

@g_debug_indent_level = external global i32, align 4
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [79 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_Z13debug_enabledv() #1

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

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 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) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6 align 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) #6 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) #6 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(152)) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_10TerminatorE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(168)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR6LValue9new_LocalEj(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, i32 noundef) #6 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare noundef zeroext i1 @_ZNK3MIR11TypeResolve14lvalue_is_copyERKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR9StatementESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR10TerminatorESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) #6 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %class.TraceLog, align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon.270, align 1
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.272, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.273", align 8
  %15 = alloca %"class.std::allocator.276", align 1
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.(anonymous namespace)::StmtRef", align 4
  %22 = alloca %class.anon.280, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.(anonymous namespace)::StmtRef", align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.std::function.226", align 8
  %31 = alloca %"struct.(anonymous namespace)::StmtRef", align 4
  %32 = alloca %"class.std::function.226", align 8
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"struct.MIR::LValue", align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.260", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.260", align 8
  %40 = alloca %class.anon.287, align 1
  %41 = alloca i8, align 1
  %42 = alloca %"struct.(anonymous namespace)::StmtRef", align 4
  %43 = alloca i32, align 4
  %44 = alloca %class.anon.335, align 8
  %45 = alloca i8, align 1
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i8, align 1
  %49 = alloca %"class.std::function.267", align 8
  %50 = alloca %"class.std::function.267", align 8
  %51 = alloca i8, align 1
  %52 = alloca ptr, align 8
  %53 = alloca %"class.MIR::Statement", align 8
  %54 = alloca ptr, align 8
  %55 = alloca %"class.__gnu_cxx::__normal_iterator.336", align 8
  %56 = alloca %"class.__gnu_cxx::__normal_iterator.336", align 8
  %57 = alloca ptr, align 8
  %58 = alloca %"class.MIR::Statement", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #9
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #9
  %59 = call noundef zeroext i1 @_Z13debug_enabledv()
  %60 = zext i1 %59 to i64
  %61 = select i1 %59, ptr @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #9
  call void @"_ZNSt8functionIFvRSoEEC2IZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS4_8FunctionEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %62 = getelementptr inbounds %class.anon.272, ptr %11, i32 0, i32 0
  store ptr %6, ptr %62, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS4_8FunctionEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %61, ptr noundef %8, ptr noundef %10)
          to label %63 unwind label %79

63:                                               ; preds = %2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.MIR::Function", ptr %64, i32 0, i32 0
  %66 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #9
  call void @_ZNSaIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionEE10LocalUsageEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  invoke void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %66, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %67 unwind label %83

67:                                               ; preds = %63
  call void @_ZNSt15__new_allocatorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.MIR::Function", ptr %68, i32 0, i32 2
  store ptr %69, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %71, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #9
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  br label %76

76:                                               ; preds = %212, %67
  %77 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br i1 %77, label %87, label %78

78:                                               ; preds = %76
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %228

79:                                               ; preds = %2
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #9
  br label %957

83:                                               ; preds = %63
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #9
  br label %956

87:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %88 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  store ptr %88, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  invoke void @_ZN12_GLOBAL__N_17StmtRefC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %89 unwind label %105

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #9
  %90 = getelementptr inbounds %class.anon.280, ptr %22, i32 0, i32 0
  store ptr %14, ptr %90, align 8, !tbaa !5
  %91 = getelementptr inbounds %class.anon.280, ptr %22, i32 0, i32 1
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %92, ptr %91, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.anon.280, ptr %22, i32 0, i32 2
  store ptr %21, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %94, i32 0, i32 0
  store ptr %95, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = call ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #9
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %24, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %99 = load ptr, ptr %23, align 8, !tbaa !5
  %100 = call ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #9
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %25, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  br label %102

102:                                              ; preds = %185, %89
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  br i1 %103, label %109, label %104

104:                                              ; preds = %102
  store i32 4, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %192

105:                                              ; preds = %87
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  br label %227

109:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %110 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  store ptr %110, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.MIR::Function", ptr %112, i32 0, i32 2
  %114 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #9
  %115 = ptrtoint ptr %111 to i64
  %116 = ptrtoint ptr %114 to i64
  %117 = sub i64 %115, %116
  %118 = sdiv exact i64 %117, 192
  %119 = trunc i64 %118 to i32
  %120 = load ptr, ptr %26, align 8, !tbaa !5
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %121, i32 0, i32 0
  %123 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #9
  %124 = ptrtoint ptr %120 to i64
  %125 = ptrtoint ptr %123 to i64
  %126 = sub i64 %124, %125
  %127 = sdiv exact i64 %126, 152
  %128 = trunc i64 %127 to i32
  invoke void @_ZN12_GLOBAL__N_17StmtRefC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %27, i32 noundef %119, i32 noundef %128)
          to label %129 unwind label %156

129:                                              ; preds = %109
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  %130 = load ptr, ptr %26, align 8, !tbaa !5
  %131 = invoke noundef zeroext i1 @_ZNK3MIR9Statement7is_DropEv(ptr noundef nonnull align 8 dereferenceable(152) %130)
          to label %132 unwind label %160

132:                                              ; preds = %129
  br i1 %131, label %133, label %177

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %134 = load ptr, ptr %26, align 8, !tbaa !5
  %135 = invoke noundef nonnull align 8 dereferenceable(44) ptr @_ZNK3MIR9Statement7as_DropEv(ptr noundef nonnull align 8 dereferenceable(152) %134)
          to label %136 unwind label %164

136:                                              ; preds = %133
  %137 = getelementptr inbounds %"struct.MIR::Statement::Data_Drop", ptr %135, i32 0, i32 2
  store ptr %137, ptr %28, align 8, !tbaa !5
  %138 = load ptr, ptr %28, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.MIR::LValue", ptr %138, i32 0, i32 0
  %140 = invoke noundef zeroext i1 @_ZNK3MIR6LValue7Storage8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %139)
          to label %141 unwind label %164

141:                                              ; preds = %136
  br i1 %140, label %142, label %172

142:                                              ; preds = %141
  %143 = load ptr, ptr %28, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.MIR::LValue", ptr %143, i32 0, i32 1
  %145 = call noundef zeroext i1 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #9
  br i1 %145, label %146, label %172

146:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %147 = load ptr, ptr %28, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.MIR::LValue", ptr %147, i32 0, i32 0
  %149 = invoke noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %148)
          to label %150 unwind label %168

150:                                              ; preds = %146
  %151 = zext i32 %149 to i64
  %152 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %151) #9
  store ptr %152, ptr %29, align 8, !tbaa !5
  %153 = load ptr, ptr %29, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.LocalUsage.281, ptr %153, i32 0, i32 4
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %155 unwind label %168

155:                                              ; preds = %150
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %173

156:                                              ; preds = %109
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %12, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %191

160:                                              ; preds = %177, %129
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %12, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %13, align 4
  br label %191

164:                                              ; preds = %136, %133
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %12, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %13, align 4
  br label %176

168:                                              ; preds = %150, %146
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %12, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %176

172:                                              ; preds = %142, %141
  store i32 0, ptr %19, align 4
  br label %173

173:                                              ; preds = %172, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  %174 = load i32, ptr %19, align 4
  switch i32 %174, label %182 [
    i32 0, label %175
  ]

175:                                              ; preds = %173
  br label %177

176:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %191

177:                                              ; preds = %175, %132
  %178 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %179 unwind label %160

179:                                              ; preds = %177
  %180 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR9StatementESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %178, ptr noundef %30)
          to label %181 unwind label %187

181:                                              ; preds = %179
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  store i32 0, ptr %19, align 4
  br label %182

182:                                              ; preds = %181, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  %183 = load i32, ptr %19, align 4
  switch i32 %183, label %963 [
    i32 0, label %184
    i32 5, label %185
  ]

184:                                              ; preds = %182
  br label %185

185:                                              ; preds = %184, %182
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br label %102

187:                                              ; preds = %179
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %12, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  br label %191

191:                                              ; preds = %187, %176, %160, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %226

192:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.MIR::Function", ptr %194, i32 0, i32 2
  %196 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %195) #9
  %197 = ptrtoint ptr %193 to i64
  %198 = ptrtoint ptr %196 to i64
  %199 = sub i64 %197, %198
  %200 = sdiv exact i64 %199, 192
  %201 = trunc i64 %200 to i32
  %202 = load ptr, ptr %20, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %202, i32 0, i32 0
  %204 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %203) #9
  %205 = trunc i64 %204 to i32
  invoke void @_ZN12_GLOBAL__N_17StmtRefC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %31, i32 noundef %201, i32 noundef %205)
          to label %206 unwind label %214

206:                                              ; preds = %192
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  %207 = load ptr, ptr %20, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %207, i32 0, i32 1
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %209 unwind label %218

209:                                              ; preds = %206
  %210 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR10TerminatorESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %208, ptr noundef %32)
          to label %211 unwind label %222

211:                                              ; preds = %209
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %212

212:                                              ; preds = %211
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br label %76

214:                                              ; preds = %192
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %12, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %226

218:                                              ; preds = %206
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %12, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %13, align 4
  br label %226

222:                                              ; preds = %209
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %12, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  br label %226

226:                                              ; preds = %222, %218, %214, %191
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #9
  br label %227

227:                                              ; preds = %226, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %955

228:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  store i64 0, ptr %33, align 8, !tbaa !14
  br label %229

229:                                              ; preds = %940, %228
  %230 = load i64, ptr %33, align 8, !tbaa !14
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %"class.MIR::Function", ptr %231, i32 0, i32 0
  %233 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %232) #9
  %234 = icmp ult i64 %230, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %229
  store i32 6, ptr %19, align 4
  br label %948

236:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %237 = load i64, ptr %33, align 8, !tbaa !14
  %238 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %237) #9
  store ptr %238, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #9
  %239 = load i64, ptr %33, align 8, !tbaa !14
  %240 = trunc i64 %239 to i32
  invoke void @_ZN3MIR6LValue9new_LocalEj(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %35, i32 noundef %240)
          to label %241 unwind label %247

241:                                              ; preds = %236
  %242 = load ptr, ptr %34, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.LocalUsage.281, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 8, !tbaa !16
  %245 = icmp ne i32 %244, 1
  br i1 %245, label %246, label %251

246:                                              ; preds = %241
  store i32 8, ptr %19, align 4
  br label %937

247:                                              ; preds = %236
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %12, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %13, align 4
  br label %947

251:                                              ; preds = %241
  %252 = load ptr, ptr %34, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.LocalUsage.281, ptr %252, i32 0, i32 2
  %254 = load i32, ptr %253, align 8, !tbaa !23
  %255 = icmp eq i32 %254, 0
  br i1 %255, label %256, label %257

256:                                              ; preds = %251
  store i32 8, ptr %19, align 4
  br label %937

257:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %"class.MIR::Function", ptr %258, i32 0, i32 2
  %260 = load ptr, ptr %34, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.LocalUsage.281, ptr %260, i32 0, i32 3
  %262 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %261, i32 0, i32 0
  %263 = load i32, ptr %262, align 4, !tbaa !24
  %264 = zext i32 %263 to i64
  %265 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %259, i64 noundef %264) #9
  store ptr %265, ptr %36, align 8, !tbaa !5
  %266 = load ptr, ptr %34, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.LocalUsage.281, ptr %266, i32 0, i32 3
  %268 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %267, i32 0, i32 1
  %269 = load i32, ptr %268, align 4, !tbaa !25
  %270 = zext i32 %269 to i64
  %271 = load ptr, ptr %36, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %271, i32 0, i32 0
  %273 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %272) #9
  %274 = icmp ult i64 %270, %273
  br i1 %274, label %275, label %300

275:                                              ; preds = %257
  %276 = load ptr, ptr %36, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %34, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.LocalUsage.281, ptr %278, i32 0, i32 3
  %280 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %279, i32 0, i32 1
  %281 = load i32, ptr %280, align 4, !tbaa !25
  %282 = zext i32 %281 to i64
  %283 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %282) #9
  %284 = invoke noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %283)
          to label %285 unwind label %316

285:                                              ; preds = %275
  br i1 %284, label %286, label %300

286:                                              ; preds = %285
  %287 = load ptr, ptr %36, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %287, i32 0, i32 0
  %289 = load ptr, ptr %34, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.LocalUsage.281, ptr %289, i32 0, i32 3
  %291 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %290, i32 0, i32 1
  %292 = load i32, ptr %291, align 4, !tbaa !25
  %293 = zext i32 %292 to i64
  %294 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %293) #9
  %295 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %294)
          to label %296 unwind label %316

296:                                              ; preds = %286
  %297 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %295, i32 0, i32 1
  %298 = invoke noundef zeroext i1 @_ZNK3MIR6RValue9is_BorrowEv(ptr noundef nonnull align 8 dereferenceable(112) %297)
          to label %299 unwind label %316

299:                                              ; preds = %296
  br i1 %298, label %323, label %300

300:                                              ; preds = %299, %285, %257
  br label %301

301:                                              ; preds = %300
  %302 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %303 unwind label %316

303:                                              ; preds = %301
  br i1 %302, label %304, label %320

304:                                              ; preds = %303
  %305 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %305, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %307 unwind label %316

307:                                              ; preds = %304
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %309 unwind label %316

309:                                              ; preds = %307
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef @.str.45)
          to label %311 unwind label %316

311:                                              ; preds = %309
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef @_ZSt3decRSt8ios_base)
          to label %313 unwind label %316

313:                                              ; preds = %311
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %312, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %315 unwind label %316

315:                                              ; preds = %313
  br label %320

316:                                              ; preds = %313, %311, %309, %307, %304, %301, %296, %286, %275
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %12, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %13, align 4
  br label %946

320:                                              ; preds = %315, %303
  br label %321

321:                                              ; preds = %320
  br label %322

322:                                              ; preds = %321
  store i32 8, ptr %19, align 4
  br label %936

323:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %324 = load ptr, ptr %36, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %324, i32 0, i32 0
  %326 = load ptr, ptr %34, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.LocalUsage.281, ptr %326, i32 0, i32 3
  %328 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %327, i32 0, i32 1
  %329 = load i32, ptr %328, align 4, !tbaa !25
  %330 = zext i32 %329 to i64
  %331 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %325, i64 noundef %330) #9
  %332 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %331)
          to label %333 unwind label %366

333:                                              ; preds = %323
  %334 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %332, i32 0, i32 1
  %335 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR6RValue9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(112) %334)
          to label %336 unwind label %366

336:                                              ; preds = %333
  %337 = getelementptr inbounds %"struct.MIR::RValue::Data_Borrow", ptr %335, i32 0, i32 1
  store ptr %337, ptr %37, align 8, !tbaa !5
  %338 = load ptr, ptr %34, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.LocalUsage.281, ptr %338, i32 0, i32 2
  %340 = load i32, ptr %339, align 8, !tbaa !23
  %341 = icmp ugt i32 %340, 1
  br i1 %341, label %342, label %373

342:                                              ; preds = %336
  %343 = load ptr, ptr %37, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.MIR::LValue", ptr %343, i32 0, i32 1
  %345 = call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %344) #9
  %346 = icmp uge i64 %345, 2
  br i1 %346, label %347, label %373

347:                                              ; preds = %342
  br label %348

348:                                              ; preds = %347
  %349 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %350 unwind label %366

350:                                              ; preds = %348
  br i1 %349, label %351, label %370

351:                                              ; preds = %350
  %352 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %353 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %352, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %354 unwind label %366

354:                                              ; preds = %351
  %355 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %353, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %356 unwind label %366

356:                                              ; preds = %354
  %357 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %355, ptr noundef @.str.46)
          to label %358 unwind label %366

358:                                              ; preds = %356
  %359 = load ptr, ptr %37, align 8, !tbaa !5
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %357, ptr noundef nonnull align 8 dereferenceable(32) %359)
          to label %361 unwind label %366

361:                                              ; preds = %358
  %362 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %360, ptr noundef @_ZSt3decRSt8ios_base)
          to label %363 unwind label %366

363:                                              ; preds = %361
  %364 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %362, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %365 unwind label %366

365:                                              ; preds = %363
  br label %370

366:                                              ; preds = %488, %486, %484, %480, %478, %473, %471, %467, %465, %462, %460, %458, %455, %452, %445, %443, %441, %439, %436, %433, %426, %420, %405, %403, %400, %398, %396, %393, %390, %373, %363, %361, %358, %356, %354, %351, %348, %333, %323
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %12, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %13, align 4
  br label %945

370:                                              ; preds = %365, %350
  br label %371

371:                                              ; preds = %370
  br label %372

372:                                              ; preds = %371
  store i32 8, ptr %19, align 4
  br label %935

373:                                              ; preds = %342, %336
  %374 = load ptr, ptr %37, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.MIR::LValue", ptr %374, i32 0, i32 1
  %376 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %375) #9
  %377 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %38, i32 0, i32 0
  store ptr %376, ptr %377, align 8
  %378 = load ptr, ptr %37, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.MIR::LValue", ptr %378, i32 0, i32 1
  %380 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %379) #9
  %381 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %39, i32 0, i32 0
  store ptr %380, ptr %381, align 8
  %382 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %38, i32 0, i32 0
  %383 = load ptr, ptr %382, align 8
  %384 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %39, i32 0, i32 0
  %385 = load ptr, ptr %384, align 8
  %386 = invoke noundef i64 @"_ZSt8count_ifIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ32MIR_Optimise_DeTemporary_BorrowsRNS2_11TypeResolveERNS2_8FunctionEE3$_4ENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_"(ptr %383, ptr %385)
          to label %387 unwind label %366

387:                                              ; preds = %373
  %388 = icmp sgt i64 %386, 1
  br i1 %388, label %389, label %411

389:                                              ; preds = %387
  br label %390

390:                                              ; preds = %389
  %391 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %392 unwind label %366

392:                                              ; preds = %390
  br i1 %391, label %393, label %408

393:                                              ; preds = %392
  %394 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %394, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %396 unwind label %366

396:                                              ; preds = %393
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %398 unwind label %366

398:                                              ; preds = %396
  %399 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %397, ptr noundef @.str.47)
          to label %400 unwind label %366

400:                                              ; preds = %398
  %401 = load ptr, ptr %37, align 8, !tbaa !5
  %402 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %399, ptr noundef nonnull align 8 dereferenceable(32) %401)
          to label %403 unwind label %366

403:                                              ; preds = %400
  %404 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %402, ptr noundef @_ZSt3decRSt8ios_base)
          to label %405 unwind label %366

405:                                              ; preds = %403
  %406 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %404, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %407 unwind label %366

407:                                              ; preds = %405
  br label %408

408:                                              ; preds = %407, %392
  br label %409

409:                                              ; preds = %408
  br label %410

410:                                              ; preds = %409
  store i32 8, ptr %19, align 4
  br label %935

411:                                              ; preds = %387
  %412 = load ptr, ptr %34, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.LocalUsage.281, ptr %412, i32 0, i32 2
  %414 = load i32, ptr %413, align 8, !tbaa !23
  %415 = load ptr, ptr %34, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.LocalUsage.281, ptr %415, i32 0, i32 1
  %417 = load i32, ptr %416, align 4, !tbaa !26
  %418 = add i32 %414, %417
  %419 = icmp ugt i32 %418, 1
  br i1 %419, label %420, label %451

420:                                              ; preds = %411
  %421 = load ptr, ptr %5, align 8, !tbaa !5
  %422 = getelementptr inbounds %"class.MIR::Function", ptr %421, i32 0, i32 0
  %423 = load i64, ptr %33, align 8, !tbaa !14
  %424 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %422, i64 noundef %423) #9
  %425 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %424)
          to label %426 unwind label %366

426:                                              ; preds = %420
  %427 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %425)
          to label %428 unwind label %366

428:                                              ; preds = %426
  %429 = getelementptr inbounds %"struct.HIR::TypeData::Data_Borrow", ptr %427, i32 0, i32 1
  %430 = load i32, ptr %429, align 4, !tbaa !27
  %431 = icmp ne i32 %430, 0
  br i1 %431, label %432, label %451

432:                                              ; preds = %428
  br label %433

433:                                              ; preds = %432
  %434 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %435 unwind label %366

435:                                              ; preds = %433
  br i1 %434, label %436, label %448

436:                                              ; preds = %435
  %437 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %438 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %437, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %439 unwind label %366

439:                                              ; preds = %436
  %440 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %438, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %441 unwind label %366

441:                                              ; preds = %439
  %442 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %440, ptr noundef @.str.48)
          to label %443 unwind label %366

443:                                              ; preds = %441
  %444 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %442, ptr noundef @_ZSt3decRSt8ios_base)
          to label %445 unwind label %366

445:                                              ; preds = %443
  %446 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %444, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %447 unwind label %366

447:                                              ; preds = %445
  br label %448

448:                                              ; preds = %447, %435
  br label %449

449:                                              ; preds = %448
  br label %450

450:                                              ; preds = %449
  store i32 8, ptr %19, align 4
  br label %935

451:                                              ; preds = %428, %411
  br label %452

452:                                              ; preds = %451
  %453 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %454 unwind label %366

454:                                              ; preds = %452
  br i1 %453, label %455, label %491

455:                                              ; preds = %454
  %456 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %457 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %456, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %458 unwind label %366

458:                                              ; preds = %455
  %459 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %457, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %460 unwind label %366

460:                                              ; preds = %458
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %459, ptr noundef @.str.49)
          to label %462 unwind label %366

462:                                              ; preds = %460
  %463 = load ptr, ptr %37, align 8, !tbaa !5
  %464 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %461, ptr noundef nonnull align 8 dereferenceable(32) %463)
          to label %465 unwind label %366

465:                                              ; preds = %462
  %466 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %464, ptr noundef @.str.50)
          to label %467 unwind label %366

467:                                              ; preds = %465
  %468 = load ptr, ptr %34, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.LocalUsage.281, ptr %468, i32 0, i32 3
  %470 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %466, ptr noundef nonnull align 4 dereferenceable(8) %469)
          to label %471 unwind label %366

471:                                              ; preds = %467
  %472 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %470, ptr noundef @.str.51)
          to label %473 unwind label %366

473:                                              ; preds = %471
  %474 = load ptr, ptr %34, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.LocalUsage.281, ptr %474, i32 0, i32 2
  %476 = load i32, ptr %475, align 8, !tbaa !23
  %477 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %472, i32 noundef %476)
          to label %478 unwind label %366

478:                                              ; preds = %473
  %479 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %477, ptr noundef @.str.52)
          to label %480 unwind label %366

480:                                              ; preds = %478
  %481 = load ptr, ptr %34, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.LocalUsage.281, ptr %481, i32 0, i32 4
  %483 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIN12_GLOBAL__N_17StmtRefEERSoS2_RKSt6vectorIT_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %479, ptr noundef nonnull align 8 dereferenceable(24) %482)
          to label %484 unwind label %366

484:                                              ; preds = %480
  %485 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %483, ptr noundef @.str.53)
          to label %486 unwind label %366

486:                                              ; preds = %484
  %487 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %485, ptr noundef @_ZSt3decRSt8ios_base)
          to label %488 unwind label %366

488:                                              ; preds = %486
  %489 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %487, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %490 unwind label %366

490:                                              ; preds = %488
  br label %491

491:                                              ; preds = %490, %454
  br label %492

492:                                              ; preds = %491
  br label %493

493:                                              ; preds = %492
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #9
  %494 = load ptr, ptr %4, align 8, !tbaa !5
  %495 = load ptr, ptr %37, align 8, !tbaa !5
  %496 = invoke noundef zeroext i1 @_ZNK3MIR11TypeResolve14lvalue_is_copyERKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120) %494, ptr noundef nonnull align 8 dereferenceable(32) %495)
          to label %497 unwind label %518

497:                                              ; preds = %493
  %498 = zext i1 %496 to i8
  store i8 %498, ptr %41, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %499 = load ptr, ptr %34, align 8, !tbaa !5
  %500 = getelementptr inbounds %struct.LocalUsage.281, ptr %499, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %500, i64 8, i1 false), !tbaa.struct !11
  %501 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %42, i32 0, i32 1
  %502 = load i32, ptr %501, align 4, !tbaa !32
  %503 = add i32 %502, 1
  store i32 %503, ptr %501, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  store i32 0, ptr %43, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 48, ptr %44) #9
  %504 = getelementptr inbounds %class.anon.335, ptr %44, i32 0, i32 0
  store ptr %35, ptr %504, align 8, !tbaa !5
  %505 = getelementptr inbounds %class.anon.335, ptr %44, i32 0, i32 1
  store ptr %42, ptr %505, align 8, !tbaa !5
  %506 = getelementptr inbounds %class.anon.335, ptr %44, i32 0, i32 2
  %507 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %507, ptr %506, align 8, !tbaa !5
  %508 = getelementptr inbounds %class.anon.335, ptr %44, i32 0, i32 3
  %509 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %509, ptr %508, align 8, !tbaa !5
  %510 = getelementptr inbounds %class.anon.335, ptr %44, i32 0, i32 4
  store ptr %43, ptr %510, align 8, !tbaa !5
  %511 = getelementptr inbounds %class.anon.335, ptr %44, i32 0, i32 5
  %512 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %512, ptr %511, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #9
  store i8 0, ptr %45, align 1, !tbaa !9
  br label %513

513:                                              ; preds = %721, %497
  %514 = load i8, ptr %45, align 1, !tbaa !9, !range !33, !noundef !34
  %515 = trunc i8 %514 to i1
  %516 = xor i1 %515, true
  br i1 %516, label %522, label %517

517:                                              ; preds = %513
  store i32 19, ptr %19, align 4
  br label %723

518:                                              ; preds = %493
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %12, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %13, align 4
  br label %944

522:                                              ; preds = %513
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %523 = load ptr, ptr %5, align 8, !tbaa !5
  %524 = getelementptr inbounds %"class.MIR::Function", ptr %523, i32 0, i32 2
  %525 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %42, i32 0, i32 0
  %526 = load i32, ptr %525, align 4, !tbaa !35
  %527 = zext i32 %526 to i64
  %528 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %524, i64 noundef %527) #9
  store ptr %528, ptr %46, align 8, !tbaa !5
  br label %529

529:                                              ; preds = %627, %522
  %530 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %42, i32 0, i32 1
  %531 = load i32, ptr %530, align 4, !tbaa !32
  %532 = zext i32 %531 to i64
  %533 = load ptr, ptr %46, align 8, !tbaa !5
  %534 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %533, i32 0, i32 0
  %535 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %534) #9
  %536 = icmp ult i64 %532, %535
  br i1 %536, label %537, label %633

537:                                              ; preds = %529
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %538 = load ptr, ptr %46, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %538, i32 0, i32 0
  %540 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %42, i32 0, i32 1
  %541 = load i32, ptr %540, align 4, !tbaa !32
  %542 = zext i32 %541 to i64
  %543 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %539, i64 noundef %542) #9
  store ptr %543, ptr %47, align 8, !tbaa !5
  br label %544

544:                                              ; preds = %537
  %545 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %546 unwind label %562

546:                                              ; preds = %544
  br i1 %545, label %547, label %566

547:                                              ; preds = %546
  %548 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %549 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %548, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %550 unwind label %562

550:                                              ; preds = %547
  %551 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %549, ptr noundef nonnull align 4 dereferenceable(8) %42)
          to label %552 unwind label %562

552:                                              ; preds = %550
  %553 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %551, ptr noundef @.str.38)
          to label %554 unwind label %562

554:                                              ; preds = %552
  %555 = load ptr, ptr %47, align 8, !tbaa !5
  %556 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %553, ptr noundef nonnull align 8 dereferenceable(152) %555)
          to label %557 unwind label %562

557:                                              ; preds = %554
  %558 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %556, ptr noundef @_ZSt3decRSt8ios_base)
          to label %559 unwind label %562

559:                                              ; preds = %557
  %560 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %558, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %561 unwind label %562

561:                                              ; preds = %559
  br label %566

562:                                              ; preds = %559, %557, %554, %552, %550, %547, %544
  %563 = landingpad { ptr, i32 }
          cleanup
  %564 = extractvalue { ptr, i32 } %563, 0
  store ptr %564, ptr %12, align 8
  %565 = extractvalue { ptr, i32 } %563, 1
  store i32 %565, ptr %13, align 4
  br label %632

566:                                              ; preds = %561, %546
  br label %567

567:                                              ; preds = %566
  br label %568

568:                                              ; preds = %567
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #9
  %569 = load ptr, ptr %47, align 8, !tbaa !5
  %570 = load ptr, ptr %37, align 8, !tbaa !5
  %571 = load i8, ptr %41, align 1, !tbaa !9, !range !33, !noundef !34
  %572 = trunc i8 %571 to i1
  %573 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR9StatementERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(152) %569, ptr noundef nonnull align 8 dereferenceable(32) %570, i1 noundef zeroext %572, i1 noundef zeroext false)
          to label %574 unwind label %601

574:                                              ; preds = %568
  %575 = zext i1 %573 to i8
  store i8 %575, ptr %48, align 1, !tbaa !9
  %576 = load i8, ptr %48, align 1, !tbaa !9, !range !33, !noundef !34
  %577 = trunc i8 %576 to i1
  br i1 %577, label %578, label %608

578:                                              ; preds = %574
  br label %579

579:                                              ; preds = %578
  %580 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %581 unwind label %601

581:                                              ; preds = %579
  br i1 %580, label %582, label %605

582:                                              ; preds = %581
  %583 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %584 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %583, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %585 unwind label %601

585:                                              ; preds = %582
  %586 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %584, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %587 unwind label %601

587:                                              ; preds = %585
  %588 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %586, ptr noundef @.str.54)
          to label %589 unwind label %601

589:                                              ; preds = %587
  %590 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %588, ptr noundef nonnull align 4 dereferenceable(8) %42)
          to label %591 unwind label %601

591:                                              ; preds = %589
  %592 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %590, ptr noundef @.str.40)
          to label %593 unwind label %601

593:                                              ; preds = %591
  %594 = load ptr, ptr %47, align 8, !tbaa !5
  %595 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %592, ptr noundef nonnull align 8 dereferenceable(152) %594)
          to label %596 unwind label %601

596:                                              ; preds = %593
  %597 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %595, ptr noundef @_ZSt3decRSt8ios_base)
          to label %598 unwind label %601

598:                                              ; preds = %596
  %599 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %597, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %600 unwind label %601

600:                                              ; preds = %598
  br label %605

601:                                              ; preds = %608, %598, %596, %593, %591, %589, %587, %585, %582, %579, %568
  %602 = landingpad { ptr, i32 }
          cleanup
  %603 = extractvalue { ptr, i32 } %602, 0
  store ptr %603, ptr %12, align 8
  %604 = extractvalue { ptr, i32 } %602, 1
  store i32 %604, ptr %13, align 4
  br label %631

605:                                              ; preds = %600, %581
  br label %606

606:                                              ; preds = %605
  br label %607

607:                                              ; preds = %606
  store i8 1, ptr %45, align 1, !tbaa !9
  store i32 21, ptr %19, align 4
  br label %624

608:                                              ; preds = %574
  %609 = load ptr, ptr %47, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(48) %44)
          to label %610 unwind label %601

610:                                              ; preds = %608
  %611 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR9StatementESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %609, ptr noundef %49)
          to label %612 unwind label %619

612:                                              ; preds = %610
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #9
  %613 = load i32, ptr %43, align 4, !tbaa !12
  %614 = load ptr, ptr %34, align 8, !tbaa !5
  %615 = getelementptr inbounds %struct.LocalUsage.281, ptr %614, i32 0, i32 2
  %616 = load i32, ptr %615, align 8, !tbaa !23
  %617 = icmp eq i32 %613, %616
  br i1 %617, label %618, label %623

618:                                              ; preds = %612
  store i8 1, ptr %45, align 1, !tbaa !9
  store i32 21, ptr %19, align 4
  br label %624

619:                                              ; preds = %610
  %620 = landingpad { ptr, i32 }
          cleanup
  %621 = extractvalue { ptr, i32 } %620, 0
  store ptr %621, ptr %12, align 8
  %622 = extractvalue { ptr, i32 } %620, 1
  store i32 %622, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #9
  br label %631

623:                                              ; preds = %612
  store i32 0, ptr %19, align 4
  br label %624

624:                                              ; preds = %623, %618, %607
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  %625 = load i32, ptr %19, align 4
  switch i32 %625, label %963 [
    i32 0, label %626
    i32 21, label %633
  ]

626:                                              ; preds = %624
  br label %627

627:                                              ; preds = %626
  %628 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %42, i32 0, i32 1
  %629 = load i32, ptr %628, align 4, !tbaa !32
  %630 = add i32 %629, 1
  store i32 %630, ptr %628, align 4, !tbaa !32
  br label %529, !llvm.loop !36

631:                                              ; preds = %619, %601
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #9
  br label %632

632:                                              ; preds = %631, %562
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  br label %722

633:                                              ; preds = %624, %529
  %634 = load i8, ptr %45, align 1, !tbaa !9, !range !33, !noundef !34
  %635 = trunc i8 %634 to i1
  br i1 %635, label %636, label %637

636:                                              ; preds = %633
  store i32 19, ptr %19, align 4
  br label %719

637:                                              ; preds = %633
  %638 = load ptr, ptr %46, align 8, !tbaa !5
  %639 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %638, i32 0, i32 1
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(48) %44)
          to label %640 unwind label %649

640:                                              ; preds = %637
  %641 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR10TerminatorESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %639, ptr noundef %50)
          to label %642 unwind label %653

642:                                              ; preds = %640
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  %643 = load i32, ptr %43, align 4, !tbaa !12
  %644 = load ptr, ptr %34, align 8, !tbaa !5
  %645 = getelementptr inbounds %struct.LocalUsage.281, ptr %644, i32 0, i32 2
  %646 = load i32, ptr %645, align 8, !tbaa !23
  %647 = icmp eq i32 %643, %646
  br i1 %647, label %648, label %657

648:                                              ; preds = %642
  store i8 1, ptr %45, align 1, !tbaa !9
  store i32 19, ptr %19, align 4
  br label %719

649:                                              ; preds = %686, %684, %680, %678, %676, %674, %672, %669, %666, %657, %637
  %650 = landingpad { ptr, i32 }
          cleanup
  %651 = extractvalue { ptr, i32 } %650, 0
  store ptr %651, ptr %12, align 8
  %652 = extractvalue { ptr, i32 } %650, 1
  store i32 %652, ptr %13, align 4
  br label %722

653:                                              ; preds = %640
  %654 = landingpad { ptr, i32 }
          cleanup
  %655 = extractvalue { ptr, i32 } %654, 0
  store ptr %655, ptr %12, align 8
  %656 = extractvalue { ptr, i32 } %654, 1
  store i32 %656, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  br label %722

657:                                              ; preds = %642
  %658 = load ptr, ptr %46, align 8, !tbaa !5
  %659 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %658, i32 0, i32 1
  %660 = load ptr, ptr %37, align 8, !tbaa !5
  %661 = load i8, ptr %41, align 1, !tbaa !9, !range !33, !noundef !34
  %662 = trunc i8 %661 to i1
  %663 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR10TerminatorERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(168) %659, ptr noundef nonnull align 8 dereferenceable(32) %660, i1 noundef zeroext %662, i1 noundef zeroext false)
          to label %664 unwind label %649

664:                                              ; preds = %657
  br i1 %663, label %665, label %692

665:                                              ; preds = %664
  br label %666

666:                                              ; preds = %665
  %667 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %668 unwind label %649

668:                                              ; preds = %666
  br i1 %667, label %669, label %689

669:                                              ; preds = %668
  %670 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %671 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %670, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %672 unwind label %649

672:                                              ; preds = %669
  %673 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %671, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %674 unwind label %649

674:                                              ; preds = %672
  %675 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %673, ptr noundef @.str.54)
          to label %676 unwind label %649

676:                                              ; preds = %674
  %677 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %675, ptr noundef nonnull align 4 dereferenceable(8) %42)
          to label %678 unwind label %649

678:                                              ; preds = %676
  %679 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %677, ptr noundef @.str.40)
          to label %680 unwind label %649

680:                                              ; preds = %678
  %681 = load ptr, ptr %46, align 8, !tbaa !5
  %682 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %681, i32 0, i32 1
  %683 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_10TerminatorE(ptr noundef nonnull align 8 dereferenceable(8) %679, ptr noundef nonnull align 8 dereferenceable(168) %682)
          to label %684 unwind label %649

684:                                              ; preds = %680
  %685 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %683, ptr noundef @_ZSt3decRSt8ios_base)
          to label %686 unwind label %649

686:                                              ; preds = %684
  %687 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %685, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %688 unwind label %649

688:                                              ; preds = %686
  br label %689

689:                                              ; preds = %688, %668
  br label %690

690:                                              ; preds = %689
  br label %691

691:                                              ; preds = %690
  store i8 1, ptr %45, align 1, !tbaa !9
  store i32 19, ptr %19, align 4
  br label %719

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

693:                                              ; preds = %717, %692
  %694 = load i8, ptr %51, align 1, !tbaa !9, !range !33, !noundef !34
  %695 = trunc i8 %694 to i1
  br i1 %695, label %697, label %696

696:                                              ; preds = %693
  store i32 30, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #9
  br label %718

697:                                              ; preds = %693
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  %698 = load ptr, ptr %46, align 8, !tbaa !5
  %699 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %698, i32 0, i32 1
  store ptr %699, ptr %52, align 8, !tbaa !5
  br label %700

700:                                              ; preds = %715, %697
  %701 = load i8, ptr %51, align 1, !tbaa !9, !range !33, !noundef !34
  %702 = trunc i8 %701 to i1
  br i1 %702, label %704, label %703

703:                                              ; preds = %700
  store i32 33, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  br label %716

704:                                              ; preds = %700
  %705 = load ptr, ptr %52, align 8, !tbaa !5
  %706 = invoke noundef i32 @_ZNK3MIR10Terminator3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %705)
          to label %707 unwind label %708

707:                                              ; preds = %704
  switch i32 %706, label %713 [
    i32 0, label %712
  ]

708:                                              ; preds = %704
  %709 = landingpad { ptr, i32 }
          cleanup
  %710 = extractvalue { ptr, i32 } %709, 0
  store ptr %710, ptr %12, align 8
  %711 = extractvalue { ptr, i32 } %709, 1
  store i32 %711, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #9
  br label %722

712:                                              ; preds = %707
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.8, i32 noundef 2507, ptr noundef @__PRETTY_FUNCTION__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE) #10
  unreachable

713:                                              ; preds = %707
  store i8 1, ptr %45, align 1, !tbaa !9
  br label %714

714:                                              ; preds = %713
  br label %715

715:                                              ; preds = %714
  store i8 0, ptr %51, align 1, !tbaa !9
  br label %700, !llvm.loop !38

716:                                              ; preds = %703
  br label %717

717:                                              ; preds = %716
  store i8 0, ptr %51, align 1, !tbaa !9
  br label %693, !llvm.loop !39

718:                                              ; preds = %696
  store i32 0, ptr %19, align 4
  br label %719

719:                                              ; preds = %718, %691, %648, %636
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  %720 = load i32, ptr %19, align 4
  switch i32 %720, label %723 [
    i32 0, label %721
  ]

721:                                              ; preds = %719
  br label %513, !llvm.loop !40

722:                                              ; preds = %708, %653, %649, %632
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #9
  br label %943

723:                                              ; preds = %719, %517
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #9
  br label %724

724:                                              ; preds = %723
  %725 = load ptr, ptr %37, align 8, !tbaa !5
  %726 = getelementptr inbounds %"struct.MIR::LValue", ptr %725, i32 0, i32 0
  %727 = invoke noundef zeroext i1 @_ZNK3MIR6LValue7Storage8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %726)
          to label %728 unwind label %765

728:                                              ; preds = %724
  br i1 %727, label %729, label %770

729:                                              ; preds = %728
  %730 = load ptr, ptr %37, align 8, !tbaa !5
  %731 = getelementptr inbounds %"struct.MIR::LValue", ptr %730, i32 0, i32 1
  %732 = call noundef zeroext i1 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %731) #9
  br i1 %732, label %770, label %733

733:                                              ; preds = %729
  %734 = load ptr, ptr %37, align 8, !tbaa !5
  %735 = getelementptr inbounds %"struct.MIR::LValue", ptr %734, i32 0, i32 1
  %736 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %735) #9
  %737 = invoke noundef zeroext i1 @_ZNK3MIR6LValue7Wrapper8is_DerefEv(ptr noundef nonnull align 4 dereferenceable(4) %736)
          to label %738 unwind label %765

738:                                              ; preds = %733
  br i1 %737, label %739, label %770

739:                                              ; preds = %738
  %740 = load i32, ptr %43, align 4, !tbaa !12
  %741 = load ptr, ptr %37, align 8, !tbaa !5
  %742 = getelementptr inbounds %"struct.MIR::LValue", ptr %741, i32 0, i32 0
  %743 = invoke noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %742)
          to label %744 unwind label %765

744:                                              ; preds = %739
  %745 = zext i32 %743 to i64
  %746 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %745) #9
  %747 = getelementptr inbounds %struct.LocalUsage.281, ptr %746, i32 0, i32 2
  %748 = load i32, ptr %747, align 8, !tbaa !23
  %749 = add i32 %748, %740
  store i32 %749, ptr %747, align 8, !tbaa !23
  %750 = load i32, ptr %43, align 4, !tbaa !12
  %751 = load ptr, ptr %34, align 8, !tbaa !5
  %752 = getelementptr inbounds %struct.LocalUsage.281, ptr %751, i32 0, i32 2
  %753 = load i32, ptr %752, align 8, !tbaa !23
  %754 = icmp eq i32 %750, %753
  br i1 %754, label %755, label %769

755:                                              ; preds = %744
  %756 = load ptr, ptr %37, align 8, !tbaa !5
  %757 = getelementptr inbounds %"struct.MIR::LValue", ptr %756, i32 0, i32 0
  %758 = invoke noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %757)
          to label %759 unwind label %765

759:                                              ; preds = %755
  %760 = zext i32 %758 to i64
  %761 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %760) #9
  %762 = getelementptr inbounds %struct.LocalUsage.281, ptr %761, i32 0, i32 2
  %763 = load i32, ptr %762, align 8, !tbaa !23
  %764 = sub i32 %763, 1
  store i32 %764, ptr %762, align 8, !tbaa !23
  br label %769

765:                                              ; preds = %921, %919, %915, %913, %911, %908, %905, %811, %809, %807, %797, %795, %791, %789, %787, %784, %781, %755, %739, %733, %724
  %766 = landingpad { ptr, i32 }
          cleanup
  %767 = extractvalue { ptr, i32 } %766, 0
  store ptr %767, ptr %12, align 8
  %768 = extractvalue { ptr, i32 } %766, 1
  store i32 %768, ptr %13, align 4
  br label %943

769:                                              ; preds = %759, %744
  br label %770

770:                                              ; preds = %769, %738, %729, %728
  %771 = load i32, ptr %43, align 4, !tbaa !12
  %772 = load ptr, ptr %34, align 8, !tbaa !5
  %773 = getelementptr inbounds %struct.LocalUsage.281, ptr %772, i32 0, i32 2
  %774 = load i32, ptr %773, align 8, !tbaa !23
  %775 = load ptr, ptr %34, align 8, !tbaa !5
  %776 = getelementptr inbounds %struct.LocalUsage.281, ptr %775, i32 0, i32 1
  %777 = load i32, ptr %776, align 4, !tbaa !26
  %778 = add i32 %774, %777
  %779 = icmp eq i32 %771, %778
  br i1 %779, label %780, label %904

780:                                              ; preds = %770
  br label %781

781:                                              ; preds = %780
  %782 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %783 unwind label %765

783:                                              ; preds = %781
  br i1 %782, label %784, label %814

784:                                              ; preds = %783
  %785 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %786 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %785, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %787 unwind label %765

787:                                              ; preds = %784
  %788 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %786, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %789 unwind label %765

789:                                              ; preds = %787
  %790 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %788, ptr noundef @.str.55)
          to label %791 unwind label %765

791:                                              ; preds = %789
  %792 = load ptr, ptr %34, align 8, !tbaa !5
  %793 = getelementptr inbounds %struct.LocalUsage.281, ptr %792, i32 0, i32 3
  %794 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %790, ptr noundef nonnull align 4 dereferenceable(8) %793)
          to label %795 unwind label %765

795:                                              ; preds = %791
  %796 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %794, ptr noundef @.str.56)
          to label %797 unwind label %765

797:                                              ; preds = %795
  %798 = load ptr, ptr %36, align 8, !tbaa !5
  %799 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %798, i32 0, i32 0
  %800 = load ptr, ptr %34, align 8, !tbaa !5
  %801 = getelementptr inbounds %struct.LocalUsage.281, ptr %800, i32 0, i32 3
  %802 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %801, i32 0, i32 1
  %803 = load i32, ptr %802, align 4, !tbaa !25
  %804 = zext i32 %803 to i64
  %805 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %799, i64 noundef %804) #9
  %806 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %796, ptr noundef nonnull align 8 dereferenceable(152) %805)
          to label %807 unwind label %765

807:                                              ; preds = %797
  %808 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %806, ptr noundef @.str.18)
          to label %809 unwind label %765

809:                                              ; preds = %807
  %810 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %808, ptr noundef @_ZSt3decRSt8ios_base)
          to label %811 unwind label %765

811:                                              ; preds = %809
  %812 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %810, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %813 unwind label %765

813:                                              ; preds = %811
  br label %814

814:                                              ; preds = %813, %783
  br label %815

815:                                              ; preds = %814
  br label %816

816:                                              ; preds = %815
  call void @llvm.lifetime.start.p0(i64 152, ptr %53) #9
  invoke void @_ZN3MIR9StatementC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %53)
          to label %817 unwind label %839

817:                                              ; preds = %816
  %818 = load ptr, ptr %36, align 8, !tbaa !5
  %819 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %818, i32 0, i32 0
  %820 = load ptr, ptr %34, align 8, !tbaa !5
  %821 = getelementptr inbounds %struct.LocalUsage.281, ptr %820, i32 0, i32 3
  %822 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %821, i32 0, i32 1
  %823 = load i32, ptr %822, align 4, !tbaa !25
  %824 = zext i32 %823 to i64
  %825 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %819, i64 noundef %824) #9
  %826 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152) %825, ptr noundef nonnull align 8 dereferenceable(152) %53)
          to label %827 unwind label %843

827:                                              ; preds = %817
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %53) #9
  call void @llvm.lifetime.end.p0(i64 152, ptr %53) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #9
  %828 = load ptr, ptr %34, align 8, !tbaa !5
  %829 = getelementptr inbounds %struct.LocalUsage.281, ptr %828, i32 0, i32 4
  store ptr %829, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  %830 = load ptr, ptr %54, align 8, !tbaa !5
  %831 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %830) #9
  %832 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.336", ptr %55, i32 0, i32 0
  store ptr %831, ptr %832, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #9
  %833 = load ptr, ptr %54, align 8, !tbaa !5
  %834 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %833) #9
  %835 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.336", ptr %56, i32 0, i32 0
  store ptr %834, ptr %835, align 8
  br label %836

836:                                              ; preds = %891, %827
  %837 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %56) #9
  br i1 %837, label %848, label %838

838:                                              ; preds = %836
  store i32 39, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  br label %903

839:                                              ; preds = %816
  %840 = landingpad { ptr, i32 }
          cleanup
  %841 = extractvalue { ptr, i32 } %840, 0
  store ptr %841, ptr %12, align 8
  %842 = extractvalue { ptr, i32 } %840, 1
  store i32 %842, ptr %13, align 4
  br label %847

843:                                              ; preds = %817
  %844 = landingpad { ptr, i32 }
          cleanup
  %845 = extractvalue { ptr, i32 } %844, 0
  store ptr %845, ptr %12, align 8
  %846 = extractvalue { ptr, i32 } %844, 1
  store i32 %846, ptr %13, align 4
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %53) #9
  br label %847

847:                                              ; preds = %843, %839
  call void @llvm.lifetime.end.p0(i64 152, ptr %53) #9
  br label %943

848:                                              ; preds = %836
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  %849 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #9
  store ptr %849, ptr %57, align 8, !tbaa !5
  br label %850

850:                                              ; preds = %848
  %851 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %852 unwind label %868

852:                                              ; preds = %850
  br i1 %851, label %853, label %872

853:                                              ; preds = %852
  %854 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %855 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %854, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %856 unwind label %868

856:                                              ; preds = %853
  %857 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %855, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %858 unwind label %868

858:                                              ; preds = %856
  %859 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %857, ptr noundef @.str.57)
          to label %860 unwind label %868

860:                                              ; preds = %858
  %861 = load ptr, ptr %57, align 8, !tbaa !5
  %862 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %859, ptr noundef nonnull align 4 dereferenceable(8) %861)
          to label %863 unwind label %868

863:                                              ; preds = %860
  %864 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %862, ptr noundef @_ZSt3decRSt8ios_base)
          to label %865 unwind label %868

865:                                              ; preds = %863
  %866 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %864, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %867 unwind label %868

867:                                              ; preds = %865
  br label %872

868:                                              ; preds = %865, %863, %860, %858, %856, %853, %850
  %869 = landingpad { ptr, i32 }
          cleanup
  %870 = extractvalue { ptr, i32 } %869, 0
  store ptr %870, ptr %12, align 8
  %871 = extractvalue { ptr, i32 } %869, 1
  store i32 %871, ptr %13, align 4
  br label %902

872:                                              ; preds = %867, %852
  br label %873

873:                                              ; preds = %872
  br label %874

874:                                              ; preds = %873
  call void @llvm.lifetime.start.p0(i64 152, ptr %58) #9
  invoke void @_ZN3MIR9StatementC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %58)
          to label %875 unwind label %893

875:                                              ; preds = %874
  %876 = load ptr, ptr %5, align 8, !tbaa !5
  %877 = getelementptr inbounds %"class.MIR::Function", ptr %876, i32 0, i32 2
  %878 = load ptr, ptr %57, align 8, !tbaa !5
  %879 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %878, i32 0, i32 0
  %880 = load i32, ptr %879, align 4, !tbaa !35
  %881 = zext i32 %880 to i64
  %882 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %877, i64 noundef %881) #9
  %883 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %882, i32 0, i32 0
  %884 = load ptr, ptr %57, align 8, !tbaa !5
  %885 = getelementptr inbounds %"struct.(anonymous namespace)::StmtRef", ptr %884, i32 0, i32 1
  %886 = load i32, ptr %885, align 4, !tbaa !32
  %887 = zext i32 %886 to i64
  %888 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %883, i64 noundef %887) #9
  %889 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152) %888, ptr noundef nonnull align 8 dereferenceable(152) %58)
          to label %890 unwind label %897

890:                                              ; preds = %875
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %58) #9
  call void @llvm.lifetime.end.p0(i64 152, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  br label %891

891:                                              ; preds = %890
  %892 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #9
  br label %836

893:                                              ; preds = %874
  %894 = landingpad { ptr, i32 }
          cleanup
  %895 = extractvalue { ptr, i32 } %894, 0
  store ptr %895, ptr %12, align 8
  %896 = extractvalue { ptr, i32 } %894, 1
  store i32 %896, ptr %13, align 4
  br label %901

897:                                              ; preds = %875
  %898 = landingpad { ptr, i32 }
          cleanup
  %899 = extractvalue { ptr, i32 } %898, 0
  store ptr %899, ptr %12, align 8
  %900 = extractvalue { ptr, i32 } %898, 1
  store i32 %900, ptr %13, align 4
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %58) #9
  br label %901

901:                                              ; preds = %897, %893
  call void @llvm.lifetime.end.p0(i64 152, ptr %58) #9
  br label %902

902:                                              ; preds = %901, %868
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  br label %943

903:                                              ; preds = %838
  br label %927

904:                                              ; preds = %770
  br label %905

905:                                              ; preds = %904
  %906 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %907 unwind label %765

907:                                              ; preds = %905
  br i1 %906, label %908, label %924

908:                                              ; preds = %907
  %909 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !12
  %910 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %909, ptr noundef @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %911 unwind label %765

911:                                              ; preds = %908
  %912 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %910, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %913 unwind label %765

913:                                              ; preds = %911
  %914 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %912, ptr noundef @.str.58)
          to label %915 unwind label %765

915:                                              ; preds = %913
  %916 = load ptr, ptr %34, align 8, !tbaa !5
  %917 = getelementptr inbounds %struct.LocalUsage.281, ptr %916, i32 0, i32 3
  %918 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %914, ptr noundef nonnull align 4 dereferenceable(8) %917)
          to label %919 unwind label %765

919:                                              ; preds = %915
  %920 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %918, ptr noundef @_ZSt3decRSt8ios_base)
          to label %921 unwind label %765

921:                                              ; preds = %919
  %922 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %920, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %923 unwind label %765

923:                                              ; preds = %921
  br label %924

924:                                              ; preds = %923, %907
  br label %925

925:                                              ; preds = %924
  br label %926

926:                                              ; preds = %925
  br label %927

927:                                              ; preds = %926, %903
  %928 = load i32, ptr %43, align 4, !tbaa !12
  %929 = icmp ugt i32 %928, 0
  br i1 %929, label %930, label %933

930:                                              ; preds = %927
  store i8 1, ptr %6, align 1, !tbaa !9
  %931 = load i8, ptr %6, align 1, !tbaa !9, !range !33, !noundef !34
  %932 = trunc i8 %931 to i1
  store i1 %932, ptr %3, align 1
  store i32 1, ptr %19, align 4
  br label %934

933:                                              ; preds = %927
  store i32 0, ptr %19, align 4
  br label %934

934:                                              ; preds = %933, %930
  call void @llvm.lifetime.end.p0(i64 48, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #9
  br label %935

935:                                              ; preds = %934, %450, %410, %372
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %936

936:                                              ; preds = %935, %322
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %937

937:                                              ; preds = %936, %256, %246
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  %938 = load i32, ptr %19, align 4
  switch i32 %938, label %948 [
    i32 0, label %939
    i32 8, label %940
  ]

939:                                              ; preds = %937
  br label %940

940:                                              ; preds = %939, %937
  %941 = load i64, ptr %33, align 8, !tbaa !14
  %942 = add i64 %941, 1
  store i64 %942, ptr %33, align 8, !tbaa !14
  br label %229, !llvm.loop !41

943:                                              ; preds = %902, %847, %765, %722
  call void @llvm.lifetime.end.p0(i64 48, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %944

944:                                              ; preds = %943, %518
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #9
  br label %945

945:                                              ; preds = %944, %366
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %946

946:                                              ; preds = %945, %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  br label %947

947:                                              ; preds = %946, %247
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %955

948:                                              ; preds = %937, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  %949 = load i32, ptr %19, align 4
  switch i32 %949, label %953 [
    i32 6, label %950
  ]

950:                                              ; preds = %948
  %951 = load i8, ptr %6, align 1, !tbaa !9, !range !33, !noundef !34
  %952 = trunc i8 %951 to i1
  store i1 %952, ptr %3, align 1
  store i32 1, ptr %19, align 4
  br label %953

953:                                              ; preds = %950, %948
  call void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
  %954 = load i1, ptr %3, align 1
  ret i1 %954

955:                                              ; preds = %947, %227
  call void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %956

956:                                              ; preds = %955, %83
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #9
  br label %957

957:                                              ; preds = %956, %79
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
  br label %958

958:                                              ; preds = %957
  %959 = load ptr, ptr %12, align 8
  %960 = load i32, ptr %13, align 4
  %961 = insertvalue { ptr, i32 } poison, ptr %959, 0
  %962 = insertvalue { ptr, i32 } %961, i32 %960, 1
  resume { ptr, i32 } %962

963:                                              ; preds = %624, %182
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSaIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionEE10LocalUsageEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_17StmtRefC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_17StmtRefC2Ejj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR9Statement7is_DropEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(44) ptr @_ZNK3MIR9Statement7as_DropEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR9StatementESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #6

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR10TerminatorESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR6RValue9is_BorrowEv(ptr noundef nonnull align 8 dereferenceable(112)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @"_ZSt8count_ifIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ32MIR_Optimise_DeTemporary_BorrowsRNS2_11TypeResolveERNS2_8FunctionEE3$_4ENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_"(ptr, ptr) #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR9StatementERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, i1 noundef zeroext) #6

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR10TerminatorERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, i1 noundef zeroext) #6

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt15__new_allocatorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"_ZTSZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionEE10LocalUsage", !13, i64 0, !13, i64 4, !13, i64 8, !18, i64 12, !19, i64 24}
!18 = !{!"_ZTSN12_GLOBAL__N_17StmtRefE", !13, i64 0, !13, i64 4}
!19 = !{!"_ZTSSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN12_GLOBAL__N_17StmtRefESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN12_GLOBAL__N_17StmtRefESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN12_GLOBAL__N_17StmtRefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!17, !13, i64 8}
!24 = !{!17, !13, i64 12}
!25 = !{!17, !13, i64 16}
!26 = !{!17, !13, i64 4}
!27 = !{!28, !30, i64 4}
!28 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !29, i64 0, !30, i64 4, !31, i64 8}
!29 = !{!"_ZTSN3HIR11LifetimeRefE", !13, i64 0}
!30 = !{!"_ZTSN3HIR10BorrowTypeE", !7, i64 0}
!31 = !{!"_ZTSN3HIR7TypeRefE", !6, i64 0}
!32 = !{!18, !13, i64 4}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!18, !13, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !37}
!41 = distinct !{!41, !37}


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

%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector.106" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = 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.TraceLog = type { ptr, %"class.std::function" }
%"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.270 = type { i8 }
%class.anon.272 = type { ptr }
%"class.std::vector.273" = type { %"struct.std::_Vector_base.274" }
%"struct.std::_Vector_base.274" = type { %"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl.275" }
%"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl.275" = type { %"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl_data.279" }
%"struct.std::_Vector_base<LocalUsage, std::allocator<LocalUsage>>::_Vector_impl_data.279" = type { ptr, ptr, ptr }
%"class.std::allocator.276" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.(anonymous namespace)::StmtRef" = type { i32, i32 }
%class.anon.280 = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.189" = type { ptr }
%"class.std::function.226" = type { %"class.std::_Function_base", ptr }
%class.anon.335 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%"class.MIR::Statement" = type { i32, %"union.MIR::Statement::DataUnion" }
%"union.MIR::Statement::DataUnion" = type { %"struct.MIR::Statement::Data_Assign" }
%"struct.MIR::Statement::Data_Assign" = type { %"struct.MIR::LValue", %"class.MIR::RValue" }
%"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" }
%"class.__gnu_cxx::__normal_iterator.336" = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [79 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2

declare void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEdeEv(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(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 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 #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #6 align 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 #6 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 #6 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #1

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_10TerminatorE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR6LValue9new_LocalEj(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, i32 noundef) local_unnamed_addr #6 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3MIR11TypeResolve14lvalue_is_copyERKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR9StatementESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR10TerminatorESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %3 = alloca i8, align 1
  %4 = alloca %class.TraceLog, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %class.anon.270, align 1
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.272, align 8
  %9 = alloca %"class.std::vector.273", align 8
  %10 = alloca %"class.std::allocator.276", align 1
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"struct.(anonymous namespace)::StmtRef", align 8
  %14 = alloca %class.anon.280, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %17 = alloca %"struct.(anonymous namespace)::StmtRef", align 8
  %18 = alloca %"class.std::function.226", align 8
  %19 = alloca %"struct.(anonymous namespace)::StmtRef", align 8
  %20 = alloca %"class.std::function.226", align 8
  %21 = alloca %"struct.MIR::LValue", align 8
  %22 = alloca %"struct.(anonymous namespace)::StmtRef", align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.anon.335, align 8
  %25 = alloca %"class.std::function.267", align 8
  %26 = alloca %"class.std::function.267", align 8
  %27 = alloca %"class.MIR::Statement", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.336", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.336", align 8
  %30 = alloca %"class.MIR::Statement", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  store i8 0, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  %31 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %32 = select i1 %31, ptr @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @"_ZNSt8functionIFvRSoEEC2IZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS4_8FunctionEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS4_8FunctionEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %32, ptr noundef nonnull %5, ptr noundef nonnull %7)
          to label %33 unwind label %49

33:                                               ; preds = %2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %34 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionEE10LocalUsageEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %35 unwind label %51

35:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  %36 = getelementptr inbounds i8, ptr %1, i64 64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %37 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  store ptr %37, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %38 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  store ptr %38, ptr %12, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %39, label %.lr.ph212, label %._crit_edge213

.lr.ph212:                                        ; preds = %35
  %40 = getelementptr inbounds i8, ptr %14, i64 8
  %41 = getelementptr inbounds i8, ptr %14, i64 16
  br label %53

._crit_edge213:                                   ; preds = %109, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %42 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not173236.not = icmp eq i64 %42, 0
  br i1 %.not173236.not, label %.critedge181, label %.lr.ph238

.lr.ph238:                                        ; preds = %._crit_edge213
  %43 = getelementptr inbounds i8, ptr %22, i64 4
  %44 = getelementptr inbounds i8, ptr %24, i64 8
  %45 = getelementptr inbounds i8, ptr %24, i64 16
  %46 = getelementptr inbounds i8, ptr %24, i64 24
  %47 = getelementptr inbounds i8, ptr %24, i64 32
  %48 = getelementptr inbounds i8, ptr %24, i64 40
  br label %117

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

51:                                               ; preds = %33
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  br label %511

53:                                               ; preds = %.lr.ph212, %109
  %54 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @_ZN12_GLOBAL__N_17StmtRefC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  store ptr %9, ptr %14, align 8, !tbaa !9
  store ptr %1, ptr %40, align 8, !tbaa !9
  store ptr %13, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %55 = call ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  store ptr %55, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %56 = call ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  store ptr %56, ptr %16, align 8
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %58 = ptrtoint ptr %54 to i64
  br i1 %57, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.critedge, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %59 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %60 = ptrtoint ptr %59 to i64
  %61 = sub i64 %58, %60
  %62 = sdiv exact i64 %61, 192
  %63 = trunc i64 %62 to i32
  %64 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  %65 = trunc i64 %64 to i32
  call void @_ZN12_GLOBAL__N_17StmtRefC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %19, i32 noundef %63, i32 noundef %65)
  %66 = load i64, ptr %19, align 8
  store i64 %66, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %106 unwind label %112

.lr.ph:                                           ; preds = %53, %.critedge
  %67 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %68 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %69 = ptrtoint ptr %68 to i64
  %70 = sub i64 %58, %69
  %71 = sdiv exact i64 %70, 192
  %72 = trunc i64 %71 to i32
  %73 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  %74 = ptrtoint ptr %67 to i64
  %75 = ptrtoint ptr %73 to i64
  %76 = sub i64 %74, %75
  %77 = sdiv exact i64 %76, 152
  %78 = trunc i64 %77 to i32
  call void @_ZN12_GLOBAL__N_17StmtRefC2Ejj(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %72, i32 noundef %78)
  %79 = load i64, ptr %17, align 8
  store i64 %79, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  %80 = call noundef zeroext i1 @_ZNK3MIR9Statement7is_DropEv(ptr noundef nonnull align 8 dereferenceable(152) %67)
  br i1 %80, label %81, label %97

81:                                               ; preds = %.lr.ph
  %82 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNK3MIR9Statement7as_DropEv(ptr noundef nonnull align 8 dereferenceable(152) %67)
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = call noundef zeroext i1 @_ZNK3MIR6LValue7Storage8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %83)
  br i1 %84, label %85, label %97

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %82, i64 16
  %87 = call noundef zeroext i1 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #8
  br i1 %87, label %88, label %97

88:                                               ; preds = %85
  %89 = call noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %83)
  %90 = zext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %90) #8
  %92 = getelementptr inbounds i8, ptr %91, i64 24
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %.critedge unwind label %95

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

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

97:                                               ; preds = %85, %81, %.lr.ph
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %98 unwind label %93

98:                                               ; preds = %97
  %99 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR9StatementESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %67, ptr noundef nonnull %18)
          to label %100 unwind label %103

100:                                              ; preds = %98
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %.critedge

.critedge:                                        ; preds = %88, %100
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %102, label %.lr.ph, label %._crit_edge

103:                                              ; preds = %98
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %105

105:                                              ; preds = %103, %95, %93
  %.pn174 = phi { ptr, i32 } [ %104, %103 ], [ %94, %93 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %116

106:                                              ; preds = %._crit_edge
  %107 = getelementptr inbounds i8, ptr %54, i64 24
  %108 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR10TerminatorESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %107, ptr noundef nonnull %20)
          to label %109 unwind label %114

109:                                              ; preds = %106
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %111, label %53, label %._crit_edge213

112:                                              ; preds = %._crit_edge
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %106
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  br label %116

116:                                              ; preds = %114, %112, %105
  %.pn174.pn = phi { ptr, i32 } [ %.pn174, %105 ], [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %510

117:                                              ; preds = %.lr.ph238, %500
  %.0148237 = phi i64 [ 0, %.lr.ph238 ], [ %501, %500 ]
  %118 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0148237) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #8
  %119 = trunc i64 %.0148237 to i32
  invoke void @_ZN3MIR6LValue9new_LocalEj(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %21, i32 noundef %119)
          to label %120 unwind label %122

120:                                              ; preds = %117
  %121 = load i32, ptr %118, align 8, !tbaa !11
  %.not = icmp eq i32 %121, 1
  br i1 %.not, label %124, label %.thread190

122:                                              ; preds = %117
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %505

124:                                              ; preds = %120
  %125 = getelementptr inbounds i8, ptr %118, i64 8
  %126 = load i32, ptr %125, align 8, !tbaa !19
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %.thread190, label %128

128:                                              ; preds = %124
  %129 = getelementptr inbounds i8, ptr %118, i64 12
  %130 = load i32, ptr %129, align 4, !tbaa !20
  %131 = zext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %131) #8
  %133 = getelementptr inbounds i8, ptr %118, i64 16
  %134 = load i32, ptr %133, align 8, !tbaa !21
  %135 = zext i32 %134 to i64
  %136 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #8
  %137 = icmp ugt i64 %136, %135
  br i1 %137, label %138, label %150

138:                                              ; preds = %128
  %139 = load i32, ptr %133, align 8, !tbaa !21
  %140 = zext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %140) #8
  %142 = call noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %141)
  br i1 %142, label %143, label %150

143:                                              ; preds = %138
  %144 = load i32, ptr %133, align 8, !tbaa !21
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %145) #8
  %147 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %146)
  %148 = getelementptr inbounds i8, ptr %147, i64 32
  %149 = call noundef zeroext i1 @_ZNK3MIR6RValue9is_BorrowEv(ptr noundef nonnull align 8 dereferenceable(112) %148)
  br i1 %149, label %166, label %150

150:                                              ; preds = %128, %138, %143
  %151 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %152 unwind label %164

152:                                              ; preds = %150
  br i1 %151, label %153, label %.thread190

153:                                              ; preds = %152
  %154 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %154, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %156 unwind label %164

156:                                              ; preds = %153
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %158 unwind label %164

158:                                              ; preds = %156
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull @.str.45)
          to label %160 unwind label %164

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

162:                                              ; preds = %160
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread190 unwind label %164

164:                                              ; preds = %162, %160, %158, %156, %153, %150
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %504

166:                                              ; preds = %143
  %167 = load i32, ptr %133, align 8, !tbaa !21
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %168) #8
  %170 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %169)
  %171 = getelementptr inbounds i8, ptr %170, i64 32
  %172 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3MIR6RValue9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(112) %171)
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = load i32, ptr %125, align 8, !tbaa !19
  %175 = icmp ugt i32 %174, 1
  br i1 %175, label %176, label %190

176:                                              ; preds = %166
  %177 = getelementptr inbounds i8, ptr %172, i64 16
  %178 = call noundef i64 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #8
  %179 = icmp ugt i64 %178, 1
  br i1 %179, label %180, label %190

180:                                              ; preds = %176
  %181 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %182 unwind label %188

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

183:                                              ; preds = %182
  %184 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %184, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %186 unwind label %188

186:                                              ; preds = %183
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %.invoke251 unwind label %188

188:                                              ; preds = %.invoke251, %.invoke250, %.invoke249, %.invoke, %264, %262, %260, %257, %255, %252, %250, %248, %246, %244, %242, %240, %237, %234, %229, %227, %224, %221, %203, %200, %197, %190, %186, %183, %180
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %504

190:                                              ; preds = %176, %166
  %191 = getelementptr inbounds i8, ptr %172, i64 16
  %192 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #8
  %193 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #8
  %194 = invoke noundef i64 @"_ZSt8count_ifIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ32MIR_Optimise_DeTemporary_BorrowsRNS2_11TypeResolveERNS2_8FunctionEE3$_4ENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_"(ptr %192, ptr %193)
          to label %195 unwind label %188

195:                                              ; preds = %190
  %196 = icmp sgt i64 %194, 1
  br i1 %196, label %197, label %209

197:                                              ; preds = %195
  %198 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %199 unwind label %188

199:                                              ; preds = %197
  br i1 %198, label %200, label %.thread190

200:                                              ; preds = %199
  %201 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %201, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %203 unwind label %188

203:                                              ; preds = %200
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %.invoke251 unwind label %188

.invoke251:                                       ; preds = %186, %203
  %205 = phi ptr [ %204, %203 ], [ %187, %186 ]
  %206 = phi ptr [ @.str.47, %203 ], [ @.str.46, %186 ]
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull %206)
          to label %.invoke250 unwind label %188

.invoke250:                                       ; preds = %.invoke251
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull align 8 dereferenceable(32) %173)
          to label %.invoke249 unwind label %188

209:                                              ; preds = %195
  %210 = load i32, ptr %125, align 8, !tbaa !19
  %211 = getelementptr inbounds i8, ptr %118, i64 4
  %212 = load i32, ptr %211, align 4, !tbaa !23
  %213 = add i32 %212, %210
  %214 = icmp ugt i32 %213, 1
  br i1 %214, label %215, label %234

215:                                              ; preds = %209
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0148237) #8
  %217 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZNK3HIR7TypeRef4dataEv(ptr noundef nonnull align 8 dereferenceable(8) %216)
  %218 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3HIR8TypeData9as_BorrowEv(ptr noundef nonnull align 8 dereferenceable(184) %217)
  %219 = getelementptr inbounds i8, ptr %218, i64 4
  %220 = load i32, ptr %219, align 4, !tbaa !24
  %.not156 = icmp eq i32 %220, 0
  br i1 %.not156, label %234, label %221

221:                                              ; preds = %215
  %222 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %223 unwind label %188

223:                                              ; preds = %221
  br i1 %222, label %224, label %.thread190

224:                                              ; preds = %223
  %225 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %225, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %227 unwind label %188

227:                                              ; preds = %224
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %229 unwind label %188

229:                                              ; preds = %227
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %228, ptr noundef nonnull @.str.48)
          to label %.invoke249 unwind label %188

.invoke249:                                       ; preds = %.invoke250, %229
  %231 = phi ptr [ %230, %229 ], [ %208, %.invoke250 ]
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %.invoke unwind label %188

.invoke:                                          ; preds = %.invoke249
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread190 unwind label %188

234:                                              ; preds = %209, %215
  %235 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %236 unwind label %188

236:                                              ; preds = %234
  br i1 %235, label %237, label %266

237:                                              ; preds = %236
  %238 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %238, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %240 unwind label %188

240:                                              ; preds = %237
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %242 unwind label %188

242:                                              ; preds = %240
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef nonnull @.str.49)
          to label %244 unwind label %188

244:                                              ; preds = %242
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef nonnull align 8 dereferenceable(32) %173)
          to label %246 unwind label %188

246:                                              ; preds = %244
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %245, ptr noundef nonnull @.str.50)
          to label %248 unwind label %188

248:                                              ; preds = %246
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %247, ptr noundef nonnull align 4 dereferenceable(8) %129)
          to label %250 unwind label %188

250:                                              ; preds = %248
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef nonnull @.str.51)
          to label %252 unwind label %188

252:                                              ; preds = %250
  %253 = load i32, ptr %125, align 8, !tbaa !19
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %251, i32 noundef %253)
          to label %255 unwind label %188

255:                                              ; preds = %252
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef nonnull @.str.52)
          to label %257 unwind label %188

257:                                              ; preds = %255
  %258 = getelementptr inbounds i8, ptr %118, i64 24
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIN12_GLOBAL__N_17StmtRefEERSoS2_RKSt6vectorIT_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull align 8 dereferenceable(24) %258)
          to label %260 unwind label %188

260:                                              ; preds = %257
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef nonnull @.str.53)
          to label %262 unwind label %188

262:                                              ; preds = %260
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %264 unwind label %188

264:                                              ; preds = %262
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %266 unwind label %188

266:                                              ; preds = %264, %236
  %267 = invoke noundef zeroext i1 @_ZNK3MIR11TypeResolve14lvalue_is_copyERKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(32) %173)
          to label %.split230 unwind label %278

.split230:                                        ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %268 = load i64, ptr %129, align 4
  store i64 %268, ptr %22, align 8
  %269 = lshr i64 %268, 32
  %270 = trunc nuw i64 %269 to i32
  %271 = add i32 %270, 1
  store i32 %271, ptr %43, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  store i32 0, ptr %23, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %24) #8
  store ptr %21, ptr %24, align 8, !tbaa !9
  store ptr %22, ptr %44, align 8, !tbaa !9
  store ptr %0, ptr %45, align 8, !tbaa !9
  store ptr %173, ptr %46, align 8, !tbaa !9
  store ptr %23, ptr %47, align 8, !tbaa !9
  store ptr %118, ptr %48, align 8, !tbaa !9
  %272 = and i64 %268, 4294967295
  %273 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %272) #8
  %274 = load i32, ptr %43, align 4, !tbaa !29
  %275 = zext i32 %274 to i64
  %276 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %273) #8
  %277 = icmp ugt i64 %276, %275
  br i1 %277, label %.lr.ph215, label %.loopexit

278:                                              ; preds = %266
  %279 = landingpad { ptr, i32 }
          cleanup
  br label %504

.lr.ph215:                                        ; preds = %.split230, %332
  %280 = load i32, ptr %43, align 4, !tbaa !29
  %281 = zext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %281) #8
  %283 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %284 unwind label %298

284:                                              ; preds = %.lr.ph215
  br i1 %283, label %285, label %300

285:                                              ; preds = %284
  %286 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %286, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %288 unwind label %298

288:                                              ; preds = %285
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %290 unwind label %298

290:                                              ; preds = %288
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %289, ptr noundef nonnull @.str.38)
          to label %292 unwind label %298

292:                                              ; preds = %290
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef nonnull align 8 dereferenceable(152) %282)
          to label %294 unwind label %298

294:                                              ; preds = %292
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %293, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %296 unwind label %298

296:                                              ; preds = %294
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %295, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %300 unwind label %298

298:                                              ; preds = %296, %294, %292, %290, %288, %285, %.lr.ph215
  %299 = landingpad { ptr, i32 }
          cleanup
  br label %503

300:                                              ; preds = %296, %284
  %301 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR9StatementERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(152) %282, ptr noundef nonnull align 8 dereferenceable(32) %173, i1 noundef zeroext %267, i1 noundef zeroext false)
          to label %302 unwind label %.loopexit197

302:                                              ; preds = %300
  br i1 %301, label %303, label %323

303:                                              ; preds = %302
  %304 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %305 unwind label %.loopexit.split-lp

305:                                              ; preds = %303
  br i1 %304, label %306, label %.thread186

306:                                              ; preds = %305
  %307 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %307, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %309 unwind label %.loopexit.split-lp

309:                                              ; preds = %306
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %311 unwind label %.loopexit.split-lp

311:                                              ; preds = %309
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef nonnull @.str.54)
          to label %313 unwind label %.loopexit.split-lp

313:                                              ; preds = %311
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %312, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %315 unwind label %.loopexit.split-lp

315:                                              ; preds = %313
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %314, ptr noundef nonnull @.str.40)
          to label %317 unwind label %.loopexit.split-lp

317:                                              ; preds = %315
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %316, ptr noundef nonnull align 8 dereferenceable(152) %282)
          to label %319 unwind label %.loopexit.split-lp

319:                                              ; preds = %317
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %321 unwind label %.loopexit.split-lp

321:                                              ; preds = %319
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %320, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread186 unwind label %.loopexit.split-lp

.loopexit197:                                     ; preds = %300, %323
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %503

.loopexit.split-lp:                               ; preds = %303, %306, %309, %311, %313, %315, %317, %319, %321
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %503

323:                                              ; preds = %302
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %324 unwind label %.loopexit197

324:                                              ; preds = %323
  %325 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR9StatementESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %282, ptr noundef nonnull %25)
          to label %326 unwind label %330

326:                                              ; preds = %324
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  %327 = load i32, ptr %23, align 4, !tbaa !22
  %328 = load i32, ptr %125, align 8, !tbaa !19
  %329 = icmp eq i32 %327, %328
  br i1 %329, label %.thread186, label %332

330:                                              ; preds = %324
  %331 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  br label %503

332:                                              ; preds = %326
  %333 = load i32, ptr %43, align 4, !tbaa !29
  %334 = add i32 %333, 1
  store i32 %334, ptr %43, align 4, !tbaa !29
  %335 = zext i32 %334 to i64
  %336 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %273) #8
  %337 = icmp ugt i64 %336, %335
  br i1 %337, label %.lr.ph215, label %.loopexit, !llvm.loop !30

.loopexit:                                        ; preds = %332, %.split230
  %338 = getelementptr inbounds i8, ptr %273, i64 24
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ32MIR_Optimise_DeTemporary_BorrowsRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %339 unwind label %.loopexit198

339:                                              ; preds = %.loopexit
  %340 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR10TerminatorESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %338, ptr noundef nonnull %26)
          to label %341 unwind label %345

341:                                              ; preds = %339
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  %342 = load i32, ptr %23, align 4, !tbaa !22
  %343 = load i32, ptr %125, align 8, !tbaa !19
  %344 = icmp eq i32 %342, %343
  br i1 %344, label %.thread186, label %347

.loopexit198:                                     ; preds = %.loopexit, %347
  %lpad.loopexit200 = landingpad { ptr, i32 }
          cleanup
  br label %503

.loopexit.split-lp199:                            ; preds = %350, %353, %356, %358, %360, %362, %364, %366, %368
  %lpad.loopexit.split-lp201 = landingpad { ptr, i32 }
          cleanup
  br label %503

345:                                              ; preds = %339
  %346 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  br label %503

347:                                              ; preds = %341
  %348 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR10TerminatorERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(168) %338, ptr noundef nonnull align 8 dereferenceable(32) %173, i1 noundef zeroext %267, i1 noundef zeroext false)
          to label %349 unwind label %.loopexit198

349:                                              ; preds = %347
  br i1 %348, label %350, label %.preheader195

350:                                              ; preds = %349
  %351 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %352 unwind label %.loopexit.split-lp199

352:                                              ; preds = %350
  br i1 %351, label %353, label %.thread186

353:                                              ; preds = %352
  %354 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %355 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %354, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %356 unwind label %.loopexit.split-lp199

356:                                              ; preds = %353
  %357 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %355, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %358 unwind label %.loopexit.split-lp199

358:                                              ; preds = %356
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %357, ptr noundef nonnull @.str.54)
          to label %360 unwind label %.loopexit.split-lp199

360:                                              ; preds = %358
  %361 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %362 unwind label %.loopexit.split-lp199

362:                                              ; preds = %360
  %363 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %361, ptr noundef nonnull @.str.40)
          to label %364 unwind label %.loopexit.split-lp199

364:                                              ; preds = %362
  %365 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_10TerminatorE(ptr noundef nonnull align 8 dereferenceable(8) %363, ptr noundef nonnull align 8 dereferenceable(168) %338)
          to label %366 unwind label %.loopexit.split-lp199

366:                                              ; preds = %364
  %367 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %365, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %368 unwind label %.loopexit.split-lp199

368:                                              ; preds = %366
  %369 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %367, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread186 unwind label %.loopexit.split-lp199

..loopexit_crit_edge:                             ; preds = %.preheader195
  br label %.thread186, !llvm.loop !32

.preheader195:                                    ; preds = %349
  %370 = call noundef i32 @_ZNK3MIR10Terminator3tagEv(ptr noundef nonnull align 8 dereferenceable(168) %338)
  %cond2 = icmp eq i32 %370, 0
  br i1 %cond2, label %.split, label %..loopexit_crit_edge, !llvm.loop !33

.split:                                           ; preds = %.preheader195
  call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.8, i32 noundef 2507, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE) #9
  unreachable

.thread186:                                       ; preds = %326, %341, %..loopexit_crit_edge, %321, %305, %352, %368
  %371 = call noundef zeroext i1 @_ZNK3MIR6LValue7Storage8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %173)
  br i1 %371, label %372, label %397

372:                                              ; preds = %.thread186
  %373 = call noundef zeroext i1 @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #8
  br i1 %373, label %397, label %374

374:                                              ; preds = %372
  %375 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #8
  %376 = call noundef zeroext i1 @_ZNK3MIR6LValue7Wrapper8is_DerefEv(ptr noundef nonnull align 4 dereferenceable(4) %375)
  br i1 %376, label %377, label %397

377:                                              ; preds = %374
  %378 = load i32, ptr %23, align 4, !tbaa !22
  %379 = call noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %173)
  %380 = zext i32 %379 to i64
  %381 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %380) #8
  %382 = getelementptr inbounds i8, ptr %381, i64 8
  %383 = load i32, ptr %382, align 8, !tbaa !19
  %384 = add i32 %383, %378
  store i32 %384, ptr %382, align 8, !tbaa !19
  %385 = load i32, ptr %23, align 4, !tbaa !22
  %386 = load i32, ptr %125, align 8, !tbaa !19
  %387 = icmp eq i32 %385, %386
  br i1 %387, label %388, label %397

388:                                              ; preds = %377
  %389 = call noundef i32 @_ZNK3MIR6LValue7Storage8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(8) %173)
  %390 = zext i32 %389 to i64
  %391 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %390) #8
  %392 = getelementptr inbounds i8, ptr %391, i64 8
  %393 = load i32, ptr %392, align 8, !tbaa !19
  %394 = add i32 %393, -1
  store i32 %394, ptr %392, align 8, !tbaa !19
  br label %397

395:                                              ; preds = %495, %493, %491, %489, %487, %484, %481, %426, %424, %422, %417, %415, %413, %411, %409, %406, %403
  %396 = landingpad { ptr, i32 }
          cleanup
  br label %503

397:                                              ; preds = %377, %388, %374, %372, %.thread186
  %398 = load i32, ptr %23, align 4, !tbaa !22
  %399 = load i32, ptr %125, align 8, !tbaa !19
  %400 = load i32, ptr %211, align 4, !tbaa !23
  %401 = add i32 %400, %399
  %402 = icmp eq i32 %398, %401
  br i1 %402, label %403, label %481

403:                                              ; preds = %397
  %404 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %405 unwind label %395

405:                                              ; preds = %403
  br i1 %404, label %406, label %428

406:                                              ; preds = %405
  %407 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %407, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %409 unwind label %395

409:                                              ; preds = %406
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %411 unwind label %395

411:                                              ; preds = %409
  %412 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %410, ptr noundef nonnull @.str.55)
          to label %413 unwind label %395

413:                                              ; preds = %411
  %414 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %412, ptr noundef nonnull align 4 dereferenceable(8) %129)
          to label %415 unwind label %395

415:                                              ; preds = %413
  %416 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %414, ptr noundef nonnull @.str.56)
          to label %417 unwind label %395

417:                                              ; preds = %415
  %418 = load i32, ptr %133, align 8, !tbaa !21
  %419 = zext i32 %418 to i64
  %420 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %419) #8
  %421 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %416, ptr noundef nonnull align 8 dereferenceable(152) %420)
          to label %422 unwind label %395

422:                                              ; preds = %417
  %423 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %421, ptr noundef nonnull @.str.18)
          to label %424 unwind label %395

424:                                              ; preds = %422
  %425 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %423, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %426 unwind label %395

426:                                              ; preds = %424
  %427 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %425, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %428 unwind label %395

428:                                              ; preds = %426, %405
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %27) #8
  invoke void @_ZN3MIR9StatementC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %27)
          to label %429 unwind label %439

429:                                              ; preds = %428
  %430 = load i32, ptr %133, align 8, !tbaa !21
  %431 = zext i32 %430 to i64
  %432 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %431) #8
  %433 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152) %432, ptr noundef nonnull align 8 dereferenceable(152) %27)
          to label %434 unwind label %441

434:                                              ; preds = %429
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %27) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %27) #8
  %435 = getelementptr inbounds i8, ptr %118, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #8
  %436 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %435) #8
  store ptr %436, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #8
  %437 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %435) #8
  store ptr %437, ptr %29, align 8
  %438 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  br i1 %438, label %.lr.ph233, label %._crit_edge234

._crit_edge234:                                   ; preds = %472, %434
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  br label %497

439:                                              ; preds = %428
  %440 = landingpad { ptr, i32 }
          cleanup
  br label %443

441:                                              ; preds = %429
  %442 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %27) #8
  br label %443

443:                                              ; preds = %441, %439
  %.pn161 = phi { ptr, i32 } [ %442, %441 ], [ %440, %439 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %27) #8
  br label %503

.lr.ph233:                                        ; preds = %434, %472
  %444 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %445 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %446 unwind label %460

446:                                              ; preds = %.lr.ph233
  br i1 %445, label %447, label %462

447:                                              ; preds = %446
  %448 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %449 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %448, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %450 unwind label %460

450:                                              ; preds = %447
  %451 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %449, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %452 unwind label %460

452:                                              ; preds = %450
  %453 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %451, ptr noundef nonnull @.str.57)
          to label %454 unwind label %460

454:                                              ; preds = %452
  %455 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %453, ptr noundef nonnull align 4 dereferenceable(8) %444)
          to label %456 unwind label %460

456:                                              ; preds = %454
  %457 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %455, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %458 unwind label %460

458:                                              ; preds = %456
  %459 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %457, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %462 unwind label %460

460:                                              ; preds = %458, %456, %454, %452, %450, %447, %.lr.ph233
  %461 = landingpad { ptr, i32 }
          cleanup
  br label %480

462:                                              ; preds = %458, %446
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %30) #8
  invoke void @_ZN3MIR9StatementC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %30)
          to label %463 unwind label %475

463:                                              ; preds = %462
  %464 = load i32, ptr %444, align 4, !tbaa !34
  %465 = zext i32 %464 to i64
  %466 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %465) #8
  %467 = getelementptr inbounds i8, ptr %444, i64 4
  %468 = load i32, ptr %467, align 4, !tbaa !29
  %469 = zext i32 %468 to i64
  %470 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %466, i64 noundef %469) #8
  %471 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152) %470, ptr noundef nonnull align 8 dereferenceable(152) %30)
          to label %472 unwind label %477

472:                                              ; preds = %463
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %30) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %30) #8
  %473 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %474 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  br i1 %474, label %.lr.ph233, label %._crit_edge234

475:                                              ; preds = %462
  %476 = landingpad { ptr, i32 }
          cleanup
  br label %479

477:                                              ; preds = %463
  %478 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %30) #8
  br label %479

479:                                              ; preds = %477, %475
  %.pn164 = phi { ptr, i32 } [ %478, %477 ], [ %476, %475 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %30) #8
  br label %480

480:                                              ; preds = %479, %460
  %.pn164.pn = phi { ptr, i32 } [ %.pn164, %479 ], [ %461, %460 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  br label %503

481:                                              ; preds = %397
  %482 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %483 unwind label %395

483:                                              ; preds = %481
  br i1 %482, label %484, label %497

484:                                              ; preds = %483
  %485 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !22
  %486 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %485, ptr noundef nonnull @__func__._Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE)
          to label %487 unwind label %395

487:                                              ; preds = %484
  %488 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_6LValueE(ptr noundef nonnull align 8 dereferenceable(8) %486, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %489 unwind label %395

489:                                              ; preds = %487
  %490 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %488, ptr noundef nonnull @.str.58)
          to label %491 unwind label %395

491:                                              ; preds = %489
  %492 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN12_GLOBAL__N_1lsERSoRKNS_7StmtRefE(ptr noundef nonnull align 8 dereferenceable(8) %490, ptr noundef nonnull align 4 dereferenceable(8) %129)
          to label %493 unwind label %395

493:                                              ; preds = %491
  %494 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %492, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %495 unwind label %395

495:                                              ; preds = %493
  %496 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %494, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %497 unwind label %395

497:                                              ; preds = %483, %495, %._crit_edge234
  %498 = load i32, ptr %23, align 4, !tbaa !22
  %.not163 = icmp eq i32 %498, 0
  br i1 %.not163, label %499, label %506

.thread190:                                       ; preds = %.invoke, %120, %124, %162, %152, %182, %199, %223
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %500

499:                                              ; preds = %497
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %500

500:                                              ; preds = %499, %.thread190
  %501 = add nuw i64 %.0148237, 1
  %502 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not173 = icmp ult i64 %501, %502
  br i1 %.not173, label %117, label %.critedge181, !llvm.loop !35

503:                                              ; preds = %.loopexit198, %.loopexit.split-lp199, %.loopexit197, %.loopexit.split-lp, %345, %330, %298, %480, %443, %395
  %.pn164.pn.pn = phi { ptr, i32 } [ %.pn164.pn, %480 ], [ %.pn161, %443 ], [ %396, %395 ], [ %346, %345 ], [ %299, %298 ], [ %331, %330 ], [ %lpad.loopexit, %.loopexit197 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit200, %.loopexit198 ], [ %lpad.loopexit.split-lp201, %.loopexit.split-lp199 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  br label %504

504:                                              ; preds = %188, %503, %278, %164
  %.pn169.pn = phi { ptr, i32 } [ %165, %164 ], [ %189, %188 ], [ %.pn164.pn.pn, %503 ], [ %279, %278 ]
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  br label %505

505:                                              ; preds = %504, %122
  %.pn169.pn.pn = phi { ptr, i32 } [ %.pn169.pn, %504 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %510

506:                                              ; preds = %497
  store i8 1, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %509

.critedge181:                                     ; preds = %500, %._crit_edge213
  %507 = load i8, ptr %3, align 1, !tbaa !5, !range !36, !noundef !37
  %508 = trunc nuw i8 %507 to i1
  br label %509

509:                                              ; preds = %506, %.critedge181
  %.6 = phi i1 [ %508, %.critedge181 ], [ true, %506 ]
  call void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  ret i1 %.6

510:                                              ; preds = %505, %116
  %.pn174.pn.pn = phi { ptr, i32 } [ %.pn174.pn, %116 ], [ %.pn169.pn.pn, %505 ]
  call void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %511

511:                                              ; preds = %510, %51
  %.pn174.pn.pn.pn = phi { ptr, i32 } [ %.pn174.pn.pn, %510 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  br label %512

512:                                              ; preds = %511, %49
  %.pn174.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn174.pn.pn.pn, %511 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn174.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSaIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionEE10LocalUsageEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_17StmtRefC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEdeEv(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(152) ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_17StmtRefC2Ejj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR9Statement7is_DropEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(44) ptr @_ZNK3MIR9Statement7as_DropEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageSaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR9StatementESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR10TerminatorESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR6RValue9is_BorrowEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @"_ZSt8count_ifIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ32MIR_Optimise_DeTemporary_BorrowsRNS2_11TypeResolveERNS2_8FunctionEE3$_4ENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_"(ptr, ptr) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR9StatementERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_124check_invalidates_lvalueERKN3MIR10TerminatorERKNS0_6LValueEbb(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_17StmtRefESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt15__new_allocatorIZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS0_8FunctionEE10LocalUsageED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 #3 align 2

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

!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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSZ32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionEE10LocalUsage", !13, i64 0, !13, i64 4, !13, i64 8, !14, i64 12, !15, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN12_GLOBAL__N_17StmtRefE", !13, i64 0, !13, i64 4}
!15 = !{!"_ZTSSt6vectorIN12_GLOBAL__N_17StmtRefESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN12_GLOBAL__N_17StmtRefESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN12_GLOBAL__N_17StmtRefESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN12_GLOBAL__N_17StmtRefESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!12, !13, i64 8}
!20 = !{!12, !13, i64 12}
!21 = !{!12, !13, i64 16}
!22 = !{!13, !13, i64 0}
!23 = !{!12, !13, i64 4}
!24 = !{!25, !27, i64 4}
!25 = !{!"_ZTSN3HIR8TypeData11Data_BorrowE", !26, i64 0, !27, i64 4, !28, i64 8}
!26 = !{!"_ZTSN3HIR11LifetimeRefE", !13, i64 0}
!27 = !{!"_ZTSN3HIR10BorrowTypeE", !7, i64 0}
!28 = !{!"_ZTSN3HIR7TypeRefE", !10, i64 0}
!29 = !{!14, !13, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = !{!14, !13, i64 0}
!35 = distinct !{!35, !31}
!36 = !{i8 0, i8 2}
!37 = !{}


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