; LLVM IR from thepowersgang/mrustc :: src/mir/optimise.ll (Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_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"

%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.384 = type { i8 }
%class.anon.386 = type { ptr }
%"class.std::map.387" = type { %"class.std::_Rb_tree.388" }
%"class.std::_Rb_tree.388" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.393 = type { ptr, ptr, ptr }
%class.anon.394 = type { ptr, ptr, ptr, ptr, ptr }
%"class.std::function.226" = type { %"class.std::_Function_base", ptr }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%class.anon.395 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.260" = type { ptr }
%class.anon.396 = type { i8 }
%"struct.std::pair.400" = type { i32, i32 }
%"struct.std::pair.398" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.147" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.189" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.148" = 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" }
%"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.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_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" }

@g_debug_indent_level = external global i32, align 4
@__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [25 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [20 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 uwtable
define dso_local noundef zeroext i1 @_Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) #3 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.384, align 1
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.386, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::map.387", align 8
  %18 = alloca %"class.std::vector.111", align 8
  %19 = alloca %class.anon.393, align 8
  %20 = alloca %class.anon.394, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::function.226", align 8
  %24 = alloca %"class.std::function.267", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::function.226", align 8
  %28 = alloca %class.anon.395, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.260", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.260", align 8
  %31 = alloca %class.anon.396, align 1
  %32 = alloca %"struct.std::pair.400", align 4
  %33 = alloca i32, align 4
  %34 = alloca %"struct.std::pair.398", align 8
  %35 = alloca %"class.std::function.226", align 8
  %36 = alloca %"class.std::function.267", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.147", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.147", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator.148", 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) #6
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #6
  %43 = call noundef zeroext i1 @_Z13debug_enabledv()
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, ptr @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @"_ZNSt8functionIFvRSoEEC2IZ24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS4_8FunctionEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %46 = getelementptr inbounds %class.anon.386, ptr %11, i32 0, i32 0
  store ptr %6, ptr %46, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS4_8FunctionEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %45, ptr noundef %8, ptr noundef %10)
          to label %47 unwind label %64

47:                                               ; preds = %2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = invoke noundef zeroext i1 @_Z40MIR_Optimise_DeTemporary_SingleSetAndUseRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %48, ptr noundef nonnull align 8 dereferenceable(96) %49)
          to label %51 unwind label %68

51:                                               ; preds = %47
  %52 = zext i1 %50 to i32
  %53 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  %55 = zext i1 %54 to i32
  %56 = or i32 %55, %52
  %57 = icmp ne i32 %56, 0
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %6, align 1, !tbaa !9
  %59 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %72

61:                                               ; preds = %51
  %62 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %63 = trunc i8 %62 to i1
  store i1 %63, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %426

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

68:                                               ; preds = %89, %72, %47
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %12, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %13, align 4
  br label %428

72:                                               ; preds = %51
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = invoke noundef zeroext i1 @_Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %73, ptr noundef nonnull align 8 dereferenceable(96) %74)
          to label %76 unwind label %68

76:                                               ; preds = %72
  %77 = zext i1 %75 to i32
  %78 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %79 = trunc i8 %78 to i1
  %80 = zext i1 %79 to i32
  %81 = or i32 %80, %77
  %82 = icmp ne i32 %81, 0
  %83 = zext i1 %82 to i8
  store i8 %83, ptr %6, align 1, !tbaa !9
  %84 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %89

86:                                               ; preds = %76
  %87 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %88 = trunc i8 %87 to i1
  store i1 %88, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %426

89:                                               ; preds = %76
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = invoke noundef zeroext i1 @_Z41MIR_Optimise_DeTemporary_ReborrowOfUnusedRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %90, ptr noundef nonnull align 8 dereferenceable(96) %91)
          to label %93 unwind label %68

93:                                               ; preds = %89
  %94 = zext i1 %92 to i32
  %95 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %96 = trunc i8 %95 to i1
  %97 = zext i1 %96 to i32
  %98 = or i32 %97, %94
  %99 = icmp ne i32 %98, 0
  %100 = zext i1 %99 to i8
  store i8 %100, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !13
  br label %101

101:                                              ; preds = %419, %93
  %102 = load i32, ptr %15, align 4, !tbaa !13
  %103 = zext i32 %102 to i64
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.MIR::Function", ptr %104, i32 0, i32 2
  %106 = call noundef i64 @_ZNKSt6vectorIN3MIR10BasicBlockESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #6
  %107 = icmp ult i64 %103, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %101
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %423

109:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.MIR::Function", ptr %110, i32 0, i32 2
  %112 = load i32, ptr %15, align 4, !tbaa !13
  %113 = zext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #6
  store ptr %114, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #6
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %115 = getelementptr inbounds %class.anon.393, ptr %19, i32 0, i32 0
  store ptr %17, ptr %115, align 8, !tbaa !5
  %116 = getelementptr inbounds %class.anon.393, ptr %19, i32 0, i32 1
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %117, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds %class.anon.393, ptr %19, i32 0, i32 2
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %119, ptr %118, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %120 = getelementptr inbounds %class.anon.394, ptr %20, i32 0, i32 0
  store ptr %17, ptr %120, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.anon.394, ptr %20, i32 0, i32 1
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %122, ptr %121, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.anon.394, ptr %20, i32 0, i32 2
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %124, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.anon.394, ptr %20, i32 0, i32 3
  store ptr %6, ptr %125, align 8, !tbaa !5
  %126 = getelementptr inbounds %class.anon.394, ptr %20, i32 0, i32 4
  store ptr %18, ptr %126, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %127

127:                                              ; preds = %328, %109
  %128 = load i32, ptr %21, align 4, !tbaa !13
  %129 = zext i32 %128 to i64
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %130, i32 0, i32 0
  %132 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #6
  %133 = icmp ult i64 %129, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %127
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %332

135:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %136, i32 0, i32 0
  %138 = load i32, ptr %21, align 4, !tbaa !13
  %139 = zext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #6
  store ptr %140, ptr %22, align 8, !tbaa !5
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load i32, ptr %15, align 4, !tbaa !13
  %143 = load i32, ptr %21, align 4, !tbaa !13
  invoke void @_ZN3MIR11TypeResolve12set_cur_stmtEjj(ptr noundef nonnull align 8 dereferenceable(120) %141, i32 noundef %142, i32 noundef %143)
          to label %144 unwind label %162

144:                                              ; preds = %135
  br label %145

145:                                              ; preds = %144
  %146 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %147 unwind label %162

147:                                              ; preds = %145
  br i1 %146, label %148, label %166

148:                                              ; preds = %147
  %149 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %149, ptr noundef @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %151 unwind label %162

151:                                              ; preds = %148
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull align 8 dereferenceable(120) %152)
          to label %154 unwind label %162

154:                                              ; preds = %151
  %155 = load ptr, ptr %22, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull align 8 dereferenceable(152) %155)
          to label %157 unwind label %162

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

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

161:                                              ; preds = %159
  br label %166

162:                                              ; preds = %190, %187, %183, %180, %176, %172, %168, %159, %157, %154, %151, %148, %145, %135
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  br label %331

166:                                              ; preds = %161, %147
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %170 unwind label %162

170:                                              ; preds = %168
  %171 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR9StatementESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %169, ptr noundef %23)
          to label %172 unwind label %227

172:                                              ; preds = %170
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  %173 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %174 unwind label %162

174:                                              ; preds = %172
  %175 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR9StatementESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %173, ptr noundef %24)
          to label %176 unwind label %231

176:                                              ; preds = %174
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  %177 = load ptr, ptr %22, align 8, !tbaa !5
  %178 = invoke noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %177)
          to label %179 unwind label %162

179:                                              ; preds = %176
  br i1 %178, label %180, label %327

180:                                              ; preds = %179
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %181)
          to label %183 unwind label %162

183:                                              ; preds = %180
  %184 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %182, i32 0, i32 0
  %185 = invoke noundef zeroext i1 @_ZNK3MIR6LValue8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %184)
          to label %186 unwind label %162

186:                                              ; preds = %183
  br i1 %185, label %187, label %327

187:                                              ; preds = %186
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %188)
          to label %190 unwind label %162

190:                                              ; preds = %187
  %191 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %189, i32 0, i32 1
  %192 = invoke noundef zeroext i1 @_ZNK3MIR6RValue6is_UseEv(ptr noundef nonnull align 8 dereferenceable(112) %191)
          to label %193 unwind label %162

193:                                              ; preds = %190
  br i1 %192, label %194, label %327

194:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %195 = load ptr, ptr %22, align 8, !tbaa !5
  %196 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %195)
          to label %197 unwind label %235

197:                                              ; preds = %194
  %198 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %196, i32 0, i32 0
  store ptr %198, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %199 = load ptr, ptr %22, align 8, !tbaa !5
  %200 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %199)
          to label %201 unwind label %239

201:                                              ; preds = %197
  %202 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %200, i32 0, i32 1
  %203 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3MIR6RValue6as_UseEv(ptr noundef nonnull align 8 dereferenceable(112) %202)
          to label %204 unwind label %239

204:                                              ; preds = %201
  store ptr %203, ptr %26, align 8, !tbaa !5
  %205 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %206 = getelementptr inbounds %class.anon.395, ptr %28, i32 0, i32 0
  %207 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %207, ptr %206, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  %208 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_123visit_mir_lvalues_innerERKN3MIR6LValueENS_8ValUsageESt8functionIFbS3_S4_EE(ptr noundef nonnull align 8 dereferenceable(32) %205, i32 noundef 1, ptr noundef %27)
          to label %209 unwind label %243

209:                                              ; preds = %204
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br i1 %208, label %210, label %250

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210
  %212 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %213 unwind label %239

213:                                              ; preds = %211
  br i1 %212, label %214, label %247

214:                                              ; preds = %213
  %215 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %215, ptr noundef @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %217 unwind label %239

217:                                              ; preds = %214
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef nonnull align 8 dereferenceable(120) %218)
          to label %220 unwind label %239

220:                                              ; preds = %217
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef @.str.65)
          to label %222 unwind label %239

222:                                              ; preds = %220
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef @_ZSt3decRSt8ios_base)
          to label %224 unwind label %239

224:                                              ; preds = %222
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %226 unwind label %239

226:                                              ; preds = %224
  br label %247

227:                                              ; preds = %170
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %12, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %331

231:                                              ; preds = %174
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %12, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %331

235:                                              ; preds = %194
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %12, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %13, align 4
  br label %326

239:                                              ; preds = %313, %311, %309, %306, %303, %300, %279, %277, %275, %272, %269, %266, %250, %224, %222, %220, %217, %214, %211, %201, %197
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %12, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %13, align 4
  br label %325

243:                                              ; preds = %204
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %12, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %325

247:                                              ; preds = %226, %213
  br label %248

248:                                              ; preds = %247
  br label %249

249:                                              ; preds = %248
  br label %324

250:                                              ; preds = %209
  %251 = load ptr, ptr %26, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.MIR::LValue", ptr %251, i32 0, i32 1
  %253 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %252) #6
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %29, i32 0, i32 0
  store ptr %253, ptr %254, align 8
  %255 = load ptr, ptr %26, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.MIR::LValue", ptr %255, i32 0, i32 1
  %257 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %256) #6
  %258 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %30, i32 0, i32 0
  store ptr %257, ptr %258, align 8
  %259 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %29, i32 0, i32 0
  %260 = load ptr, ptr %259, align 8
  %261 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.260", ptr %30, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8
  %263 = invoke noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ24MIR_Optimise_DeTemporaryRNS2_11TypeResolveERNS2_8FunctionEE3$_5EbT_SG_T0_"(ptr %260, ptr %262)
          to label %264 unwind label %239

264:                                              ; preds = %250
  br i1 %263, label %265, label %285

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265
  %267 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %268 unwind label %239

268:                                              ; preds = %266
  br i1 %267, label %269, label %282

269:                                              ; preds = %268
  %270 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %270, ptr noundef @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %272 unwind label %239

272:                                              ; preds = %269
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef nonnull align 8 dereferenceable(120) %273)
          to label %275 unwind label %239

275:                                              ; preds = %272
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %274, ptr noundef @.str.66)
          to label %277 unwind label %239

277:                                              ; preds = %275
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef @_ZSt3decRSt8ios_base)
          to label %279 unwind label %239

279:                                              ; preds = %277
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %278, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %281 unwind label %239

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %281, %268
  br label %283

283:                                              ; preds = %282
  br label %284

284:                                              ; preds = %283
  br label %323

285:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  %287 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %286)
          to label %288 unwind label %316

288:                                              ; preds = %285
  %289 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %287, i32 0, i32 0
  %290 = invoke noundef i32 @_ZNK3MIR6LValue8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %289)
          to label %291 unwind label %316

291:                                              ; preds = %288
  store i32 %290, ptr %33, align 4, !tbaa !13
  %292 = invoke i64 @_ZSt9make_pairIjRjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %293 unwind label %316

293:                                              ; preds = %291
  store i64 %292, ptr %32, align 4
  %294 = invoke { ptr, i8 } @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEE6insertIS2_IjjEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %295 unwind label %316

295:                                              ; preds = %293
  %296 = getelementptr inbounds { ptr, i8 }, ptr %34, i32 0, i32 0
  %297 = extractvalue { ptr, i8 } %294, 0
  store ptr %297, ptr %296, align 8
  %298 = getelementptr inbounds { ptr, i8 }, ptr %34, i32 0, i32 1
  %299 = extractvalue { ptr, i8 } %294, 1
  store i8 %299, ptr %298, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %300

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

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

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

306:                                              ; preds = %303
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef nonnull align 8 dereferenceable(120) %307)
          to label %309 unwind label %239

309:                                              ; preds = %306
  %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.67)
          to label %311 unwind label %239

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 %239

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 %239

315:                                              ; preds = %313
  br label %320

316:                                              ; preds = %293, %291, %288, %285
  %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
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %325

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

321:                                              ; preds = %320
  br label %322

322:                                              ; preds = %321
  br label %323

323:                                              ; preds = %322, %284
  br label %324

324:                                              ; preds = %323, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %327

325:                                              ; preds = %316, %243, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %326

326:                                              ; preds = %325, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %331

327:                                              ; preds = %324, %193, %186, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %328

328:                                              ; preds = %327
  %329 = load i32, ptr %21, align 4, !tbaa !13
  %330 = add i32 %329, 1
  store i32 %330, ptr %21, align 4, !tbaa !13
  br label %127, !llvm.loop !15

331:                                              ; preds = %326, %231, %227, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %422

332:                                              ; preds = %134
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = load i32, ptr %15, align 4, !tbaa !13
  invoke void @_ZN3MIR11TypeResolve17set_cur_stmt_termEj(ptr noundef nonnull align 8 dereferenceable(120) %333, i32 noundef %334)
          to label %335 unwind label %354

335:                                              ; preds = %332
  br label %336

336:                                              ; preds = %335
  %337 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %338 unwind label %354

338:                                              ; preds = %336
  br i1 %337, label %339, label %358

339:                                              ; preds = %338
  %340 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %340, ptr noundef @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %342 unwind label %354

342:                                              ; preds = %339
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %341, ptr noundef nonnull align 8 dereferenceable(120) %343)
          to label %345 unwind label %354

345:                                              ; preds = %342
  %346 = load ptr, ptr %16, align 8, !tbaa !5
  %347 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %346, i32 0, i32 1
  %348 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_10TerminatorE(ptr noundef nonnull align 8 dereferenceable(8) %344, ptr noundef nonnull align 8 dereferenceable(168) %347)
          to label %349 unwind label %354

349:                                              ; preds = %345
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %348, ptr noundef @_ZSt3decRSt8ios_base)
          to label %351 unwind label %354

351:                                              ; preds = %349
  %352 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %353 unwind label %354

353:                                              ; preds = %351
  br label %358

354:                                              ; preds = %384, %370, %365, %360, %351, %349, %345, %342, %339, %336, %332
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %12, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %13, align 4
  br label %422

358:                                              ; preds = %353, %338
  br label %359

359:                                              ; preds = %358
  br label %360

360:                                              ; preds = %359
  %361 = load ptr, ptr %16, align 8, !tbaa !5
  %362 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %361, i32 0, i32 1
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %363 unwind label %354

363:                                              ; preds = %360
  %364 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR10TerminatorESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %362, ptr noundef %35)
          to label %365 unwind label %376

365:                                              ; preds = %363
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  %366 = load ptr, ptr %16, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %366, i32 0, i32 1
  %368 = invoke noundef zeroext i1 @_ZNK3MIR10Terminator9is_SwitchEv(ptr noundef nonnull align 8 dereferenceable(168) %367)
          to label %369 unwind label %354

369:                                              ; preds = %365
  br i1 %368, label %384, label %370

370:                                              ; preds = %369
  %371 = load ptr, ptr %16, align 8, !tbaa !5
  %372 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %371, i32 0, i32 1
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %373 unwind label %354

373:                                              ; preds = %370
  %374 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR10TerminatorESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %372, ptr noundef %36)
          to label %375 unwind label %380

375:                                              ; preds = %373
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  br label %384

376:                                              ; preds = %363
  %377 = landingpad { ptr, i32 }
          cleanup
  %378 = extractvalue { ptr, i32 } %377, 0
  store ptr %378, ptr %12, align 8
  %379 = extractvalue { ptr, i32 } %377, 1
  store i32 %379, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %422

380:                                              ; preds = %373
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %12, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  br label %422

384:                                              ; preds = %375, %369
  %385 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %386 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.147", ptr %37, i32 0, i32 0
  store ptr %385, ptr %386, align 8
  %387 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %388 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.147", ptr %38, i32 0, i32 0
  store ptr %387, ptr %388, align 8
  %389 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.147", ptr %37, i32 0, i32 0
  %390 = load ptr, ptr %389, align 8
  %391 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.147", ptr %38, i32 0, i32 0
  %392 = load ptr, ptr %391, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEEvT_S7_(ptr %390, ptr %392)
          to label %393 unwind label %354

393:                                              ; preds = %384
  br label %394

394:                                              ; preds = %412, %393
  %395 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %396 = xor i1 %395, true
  br i1 %396, label %397, label %418

397:                                              ; preds = %394
  %398 = load ptr, ptr %16, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %398, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %400 = load ptr, ptr %16, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %400, i32 0, i32 0
  %402 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %401) #6
  %403 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %41, i32 0, i32 0
  store ptr %402, ptr %403, align 8
  %404 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %405 = load i32, ptr %404, align 4, !tbaa !13
  %406 = zext i32 %405 to i64
  %407 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %406) #6
  %408 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %40, i32 0, i32 0
  store ptr %407, ptr %408, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  %409 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %39, i32 0, i32 0
  %410 = load ptr, ptr %409, align 8
  %411 = invoke ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %399, ptr %410)
          to label %412 unwind label %414

412:                                              ; preds = %397
  %413 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %42, i32 0, i32 0
  store ptr %411, ptr %413, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  store i8 1, ptr %6, align 1, !tbaa !9
  br label %394, !llvm.loop !17

414:                                              ; preds = %397
  %415 = landingpad { ptr, i32 }
          cleanup
  %416 = extractvalue { ptr, i32 } %415, 0
  store ptr %416, ptr %12, align 8
  %417 = extractvalue { ptr, i32 } %415, 1
  store i32 %417, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %422

418:                                              ; preds = %394
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %419

419:                                              ; preds = %418
  %420 = load i32, ptr %15, align 4, !tbaa !13
  %421 = add i32 %420, 1
  store i32 %421, ptr %15, align 4, !tbaa !13
  br label %101, !llvm.loop !18

422:                                              ; preds = %414, %380, %376, %354, %331
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %428

423:                                              ; preds = %108
  %424 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %425 = trunc i8 %424 to i1
  store i1 %425, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %426

426:                                              ; preds = %423, %86, %61
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  %427 = load i1, ptr %3, align 1
  ret i1 %427

428:                                              ; preds = %422, %68
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #6
  br label %429

429:                                              ; preds = %428, %64
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %430

430:                                              ; preds = %429
  %431 = load ptr, ptr %12, align 8
  %432 = load i32, ptr %13, align 4
  %433 = insertvalue { ptr, i32 } poison, ptr %431, 0
  %434 = insertvalue { ptr, i32 } %433, i32 %432, 1
  resume { ptr, i32 } %434
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR10Terminator9is_SwitchEv(ptr noundef nonnull align 8 dereferenceable(168)) #4 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 @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 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) #3 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 i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEEvT_S7_(ptr, ptr) #5

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3MIR11TypeResolve17set_cur_stmt_termEj(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef) #4 align 2

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

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 noundef zeroext i1 @_Z40MIR_Optimise_DeTemporary_SingleSetAndUseRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) #4 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)) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z41MIR_Optimise_DeTemporary_ReborrowOfUnusedRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3MIR11TypeResolve12set_cur_stmtEjj(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, i32 noundef) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_123visit_mir_lvalues_innerERKN3MIR6LValueENS_8ValUsageESt8functionIFbS3_S4_EE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ24MIR_Optimise_DeTemporaryRNS2_11TypeResolveERNS2_8FunctionEE3$_5EbT_SG_T0_"(ptr, ptr) #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEE6insertIS2_IjjEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 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 = { 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 = { nounwind }

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

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


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

%class.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.384 = type { i8 }
%class.anon.386 = type { ptr }
%"class.std::map.387" = type { %"class.std::_Rb_tree.388" }
%"class.std::_Rb_tree.388" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.393 = type { ptr, ptr, ptr }
%class.anon.394 = type { ptr, ptr, ptr, ptr, ptr }
%"class.std::function.226" = type { %"class.std::_Function_base", ptr }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%class.anon.395 = type { ptr }
%"struct.std::pair.400" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator.189" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.148" = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [25 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [20 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 uwtable
define dso_local noundef zeroext i1 @_Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) local_unnamed_addr #3 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.384, align 1
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.386, align 8
  %9 = alloca %"class.std::map.387", align 8
  %10 = alloca %"class.std::vector.111", align 8
  %11 = alloca %class.anon.393, align 8
  %12 = alloca %class.anon.394, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::function.226", align 8
  %15 = alloca %"class.std::function.267", align 8
  %16 = alloca %"class.std::function.226", align 8
  %17 = alloca %class.anon.395, align 8
  %18 = alloca %"struct.std::pair.400", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::function.226", align 8
  %21 = alloca %"class.std::function.267", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  store i8 0, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  %25 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %26 = select i1 %25, ptr @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @"_ZNSt8functionIFvRSoEEC2IZ24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS4_8FunctionEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZ24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS4_8FunctionEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %26, ptr noundef nonnull %5, ptr noundef nonnull %7)
          to label %27 unwind label %33

27:                                               ; preds = %2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %28 = invoke noundef zeroext i1 @_Z40MIR_Optimise_DeTemporary_SingleSetAndUseRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %29 unwind label %35

29:                                               ; preds = %27
  %30 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %31 = zext i1 %28 to i8
  %32 = or i8 %30, %31
  %.not = icmp eq i8 %32, 0
  store i8 %32, ptr %3, align 1, !tbaa !5
  br i1 %.not, label %37, label %212

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

35:                                               ; preds = %43, %37, %27
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %213

37:                                               ; preds = %29
  %38 = invoke noundef zeroext i1 @_Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %39 unwind label %35

39:                                               ; preds = %37
  %40 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %41 = zext i1 %38 to i8
  %42 = or i8 %40, %41
  %.not62 = icmp eq i8 %42, 0
  store i8 %42, ptr %3, align 1, !tbaa !5
  br i1 %.not62, label %43, label %212

43:                                               ; preds = %39
  %44 = invoke noundef zeroext i1 @_Z41MIR_Optimise_DeTemporary_ReborrowOfUnusedRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %45 unwind label %35

45:                                               ; preds = %43
  %46 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %47 = zext i1 %44 to i8
  %48 = or i8 %46, %47
  store i8 %48, ptr %3, align 1, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %1, i64 64
  %50 = call noundef i64 @_ZNKSt6vectorIN3MIR10BasicBlockESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  %.not74 = icmp eq i64 %50, 0
  br i1 %.not74, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %45
  %51 = getelementptr inbounds i8, ptr %11, i64 8
  %52 = getelementptr inbounds i8, ptr %11, i64 16
  %53 = getelementptr inbounds i8, ptr %12, i64 8
  %54 = getelementptr inbounds i8, ptr %12, i64 16
  %55 = getelementptr inbounds i8, ptr %12, i64 24
  %56 = getelementptr inbounds i8, ptr %12, i64 32
  br label %59

._crit_edge73:                                    ; preds = %._crit_edge69, %45
  %57 = load i8, ptr %3, align 1, !tbaa !5, !range !11, !noundef !12
  %58 = trunc nuw i8 %57 to i1
  br label %212

59:                                               ; preds = %.lr.ph72, %._crit_edge69
  %60 = phi i64 [ 0, %.lr.ph72 ], [ %208, %._crit_edge69 ]
  %.05870 = phi i32 [ 0, %.lr.ph72 ], [ %207, %._crit_edge69 ]
  %61 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %60) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #6
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  store ptr %9, ptr %11, align 8, !tbaa !9
  store ptr %61, ptr %51, align 8, !tbaa !9
  store ptr %0, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  store ptr %9, ptr %12, align 8, !tbaa !9
  store ptr %61, ptr %53, align 8, !tbaa !9
  store ptr %0, ptr %54, align 8, !tbaa !9
  store ptr %3, ptr %55, align 8, !tbaa !9
  store ptr %10, ptr %56, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store i32 0, ptr %13, align 4, !tbaa !13
  %62 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %.not75 = icmp eq i64 %62, 0
  br i1 %.not75, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %156, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @_ZN3MIR11TypeResolve17set_cur_stmt_termEj(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %.05870)
  %63 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %163 unwind label %176

.lr.ph:                                           ; preds = %59, %156
  %64 = load i32, ptr %13, align 4, !tbaa !13
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %65) #6
  %67 = load i32, ptr %13, align 4, !tbaa !13
  call void @_ZN3MIR11TypeResolve12set_cur_stmtEjj(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %.05870, i32 noundef %67)
  %68 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %69 unwind label %81

69:                                               ; preds = %.lr.ph
  br i1 %68, label %70, label %83

70:                                               ; preds = %69
  %71 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %71, ptr noundef nonnull @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %73 unwind label %81

73:                                               ; preds = %70
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %75 unwind label %81

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(152) %66)
          to label %77 unwind label %81

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %79 unwind label %81

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %83 unwind label %81

81:                                               ; preds = %86, %83, %79, %77, %75, %73, %70, %.lr.ph
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %162

83:                                               ; preds = %79, %69
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %84 unwind label %81

84:                                               ; preds = %83
  %85 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR9StatementESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %66, ptr noundef nonnull %14)
          to label %86 unwind label %113

86:                                               ; preds = %84
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %87 unwind label %81

87:                                               ; preds = %86
  %88 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR9StatementESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(152) %66, ptr noundef nonnull %15)
          to label %89 unwind label %115

89:                                               ; preds = %87
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  %90 = call noundef zeroext i1 @_ZNK3MIR9Statement9is_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %66)
  br i1 %90, label %91, label %156

91:                                               ; preds = %89
  %92 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %66)
  %93 = call noundef zeroext i1 @_ZNK3MIR6LValue8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %92)
  br i1 %93, label %94, label %156

94:                                               ; preds = %91
  %95 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %66)
  %96 = getelementptr inbounds i8, ptr %95, i64 32
  %97 = call noundef zeroext i1 @_ZNK3MIR6RValue6is_UseEv(ptr noundef nonnull align 8 dereferenceable(112) %96)
  br i1 %97, label %98, label %156

98:                                               ; preds = %94
  %99 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %66)
  %100 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %66)
  %101 = getelementptr inbounds i8, ptr %100, i64 32
  %102 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN3MIR6RValue6as_UseEv(ptr noundef nonnull align 8 dereferenceable(112) %101)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  store ptr %99, ptr %17, align 8, !tbaa !9
  call void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %103 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_123visit_mir_lvalues_innerERKN3MIR6LValueENS_8ValUsageESt8functionIFbS3_S4_EE(ptr noundef nonnull align 8 dereferenceable(32) %102, i32 noundef 1, ptr noundef nonnull %16)
          to label %104 unwind label %119

104:                                              ; preds = %98
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br i1 %103, label %105, label %121

105:                                              ; preds = %104
  %106 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %107 unwind label %117

107:                                              ; preds = %105
  br i1 %106, label %108, label %156

108:                                              ; preds = %107
  %109 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %109, ptr noundef nonnull @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %111 unwind label %117

111:                                              ; preds = %108
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %.invoke77 unwind label %117

113:                                              ; preds = %84
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %162

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

117:                                              ; preds = %.invoke77, %.invoke76, %.invoke, %147, %144, %141, %133, %130, %127, %121, %111, %108, %105
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %162

119:                                              ; preds = %98
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %162

121:                                              ; preds = %104
  %122 = getelementptr inbounds i8, ptr %102, i64 8
  %123 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #6
  %124 = call ptr @_ZNKSt6vectorIN3MIR6LValue7WrapperESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #6
  %125 = invoke noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ24MIR_Optimise_DeTemporaryRNS2_11TypeResolveERNS2_8FunctionEE3$_5EbT_SG_T0_"(ptr %123, ptr %124)
          to label %126 unwind label %117

126:                                              ; preds = %121
  br i1 %125, label %127, label %135

127:                                              ; preds = %126
  %128 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %129 unwind label %117

129:                                              ; preds = %127
  br i1 %128, label %130, label %156

130:                                              ; preds = %129
  %131 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %131, ptr noundef nonnull @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %133 unwind label %117

133:                                              ; preds = %130
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %.invoke77 unwind label %117

135:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  %136 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %66)
  %137 = call noundef i32 @_ZNK3MIR6LValue8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %136)
  store i32 %137, ptr %19, align 4, !tbaa !13
  %138 = invoke i64 @_ZSt9make_pairIjRjESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %139 unwind label %154

139:                                              ; preds = %135
  store i64 %138, ptr %18, align 8
  %140 = invoke { ptr, i8 } @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEE6insertIS2_IjjEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %141 unwind label %154

141:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  %142 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %143 unwind label %117

143:                                              ; preds = %141
  br i1 %142, label %144, label %156

144:                                              ; preds = %143
  %145 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %145, ptr noundef nonnull @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %147 unwind label %117

147:                                              ; preds = %144
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %.invoke77 unwind label %117

.invoke77:                                        ; preds = %111, %147, %133
  %149 = phi ptr [ %134, %133 ], [ %148, %147 ], [ %112, %111 ]
  %150 = phi ptr [ @.str.66, %133 ], [ @.str.67, %147 ], [ @.str.65, %111 ]
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef nonnull %150)
          to label %.invoke76 unwind label %117

.invoke76:                                        ; preds = %.invoke77
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %.invoke unwind label %117

.invoke:                                          ; preds = %.invoke76
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %156 unwind label %117

154:                                              ; preds = %139, %135
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %162

156:                                              ; preds = %.invoke, %107, %143, %129, %94, %91, %89
  %157 = load i32, ptr %13, align 4, !tbaa !13
  %158 = add i32 %157, 1
  store i32 %158, ptr %13, align 4, !tbaa !13
  %159 = zext i32 %158 to i64
  %160 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %161 = icmp ugt i64 %160, %159
  br i1 %161, label %.lr.ph, label %._crit_edge, !llvm.loop !15

162:                                              ; preds = %117, %119, %154, %115, %113, %81
  %.pn.pn = phi { ptr, i32 } [ %116, %115 ], [ %82, %81 ], [ %114, %113 ], [ %118, %117 ], [ %155, %154 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %211

163:                                              ; preds = %._crit_edge
  br i1 %63, label %164, label %178

164:                                              ; preds = %163
  %165 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %165, ptr noundef nonnull @__func__._Z24MIR_Optimise_DeTemporaryRN3MIR11TypeResolveERNS_8FunctionE)
          to label %167 unwind label %176

167:                                              ; preds = %164
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_11TypeResolveE(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %169 unwind label %176

169:                                              ; preds = %167
  %170 = getelementptr inbounds i8, ptr %61, i64 24
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_10TerminatorE(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef nonnull align 8 dereferenceable(168) %170)
          to label %172 unwind label %176

172:                                              ; preds = %169
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %174 unwind label %176

174:                                              ; preds = %172
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %178 unwind label %176

176:                                              ; preds = %192, %184, %178, %174, %172, %169, %167, %164, %._crit_edge
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %211

178:                                              ; preds = %174, %163
  %179 = getelementptr inbounds i8, ptr %61, i64 24
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %180 unwind label %176

180:                                              ; preds = %178
  %181 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_117visit_mir_lvaluesERKN3MIR10TerminatorESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %179, ptr noundef nonnull %20)
          to label %182 unwind label %188

182:                                              ; preds = %180
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  %183 = call noundef zeroext i1 @_ZNK3MIR10Terminator9is_SwitchEv(ptr noundef nonnull align 8 dereferenceable(168) %179)
  br i1 %183, label %192, label %184

184:                                              ; preds = %182
  invoke void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IRZ24MIR_Optimise_DeTemporaryRNS0_11TypeResolveERNS0_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %185 unwind label %176

185:                                              ; preds = %184
  %186 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR10TerminatorESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(168) %179, ptr noundef nonnull %21)
          to label %187 unwind label %190

187:                                              ; preds = %185
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %192

188:                                              ; preds = %180
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %211

190:                                              ; preds = %185
  %191 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %211

192:                                              ; preds = %187, %182
  %193 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %194 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEEvT_S7_(ptr %193, ptr %194)
          to label %.preheader unwind label %176

.preheader:                                       ; preds = %192
  %195 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br i1 %195, label %._crit_edge69, label %.lr.ph68

.lr.ph68:                                         ; preds = %.preheader, %203
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #6
  %196 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  store ptr %196, ptr %24, align 8
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %198 = load i32, ptr %197, align 4, !tbaa !13
  %199 = zext i32 %198 to i64
  %200 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %199) #6
  store ptr %200, ptr %23, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN3MIR9StatementESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %201 = load ptr, ptr %22, align 8
  %202 = invoke ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr %201)
          to label %203 unwind label %205

203:                                              ; preds = %.lr.ph68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store i8 1, ptr %3, align 1, !tbaa !5
  %204 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br i1 %204, label %._crit_edge69, label %.lr.ph68, !llvm.loop !17

205:                                              ; preds = %.lr.ph68
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  br label %211

._crit_edge69:                                    ; preds = %203, %.preheader
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  %207 = add i32 %.05870, 1
  %208 = zext i32 %207 to i64
  %209 = call noundef i64 @_ZNKSt6vectorIN3MIR10BasicBlockESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  %210 = icmp ugt i64 %209, %208
  br i1 %210, label %59, label %._crit_edge73, !llvm.loop !18

211:                                              ; preds = %205, %190, %188, %176, %162
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %162 ], [ %206, %205 ], [ %177, %176 ], [ %191, %190 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br label %213

212:                                              ; preds = %39, %29, %._crit_edge73
  %.0 = phi i1 [ %58, %._crit_edge73 ], [ true, %29 ], [ true, %39 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  ret i1 %.0

213:                                              ; preds = %211, %35
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %211 ], [ %36, %35 ]
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  br label %214

214:                                              ; preds = %213, %33
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %213 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR10Terminator9is_SwitchEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #4 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 @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 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 #3 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 i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3MIR11TypeResolve17set_cur_stmt_termEj(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef) local_unnamed_addr #4 align 2

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

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 noundef zeroext i1 @_Z40MIR_Optimise_DeTemporary_SingleSetAndUseRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z32MIR_Optimise_DeTemporary_BorrowsRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z41MIR_Optimise_DeTemporary_ReborrowOfUnusedRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3MIR11TypeResolve12set_cur_stmtEjj(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_123visit_mir_lvalues_innerERKN3MIR6LValueENS_8ValUsageESt8functionIFbS3_S4_EE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKN3MIR6LValue7WrapperESt6vectorIS4_SaIS4_EEEEZ24MIR_Optimise_DeTemporaryRNS2_11TypeResolveERNS2_8FunctionEE3$_5EbT_SG_T0_"(ptr, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEE6insertIS2_IjjEEENSt9enable_ifIXsr16is_constructibleIS4_T_EE5valueES2_ISt17_Rb_tree_iteratorIS4_EbEE4typeEOSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 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 = { 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 = { 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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass