; LLVM IR from thepowersgang/mrustc :: src/mir/optimise.ll (Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_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.551 = type { i8 }
%class.anon.553 = type { ptr }
%"class.std::map.554" = type { %"class.std::_Rb_tree.555" }
%"class.std::_Rb_tree.555" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, Potential>, std::_Select1st<std::pair<const unsigned int, Potential>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, Potential>, std::_Select1st<std::pair<const unsigned int, Potential>>, 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.563" = type { i32, %struct.Potential }
%struct.Potential = type { i64, i64, i32, i8, i32, %"class.std::vector.111" }
%"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 }
%"struct.std::pair.559" = type <{ %"struct.std::_Rb_tree_iterator.561", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator.561" = type { ptr }
%"class.std::function.226" = type { %"class.std::_Function_base", ptr }
%class.anon.565 = type { ptr, ptr, 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 }
%class.anon.568 = type { ptr, ptr }
%class.anon.569 = type { i8 }
%"class.__gnu_cxx::__normal_iterator.148" = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.MIR::Statement" = type { i32, %"union.MIR::Statement::DataUnion" }
%"union.MIR::Statement::DataUnion" = type { %"struct.MIR::Statement::Data_Assign" }
%"struct.MIR::Statement::Data_Assign" = type { %"struct.MIR::LValue", %"class.MIR::RValue" }
%"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::RValue" = type { i32, %"union.MIR::RValue::DataUnion" }
%"union.MIR::RValue::DataUnion" = type { %"struct.MIR::RValue::Data_BinOp" }
%"struct.MIR::RValue::Data_BinOp" = type { %"class.MIR::Param", i32, %"class.MIR::Param" }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%class.anon.571 = type { ptr, ptr }
%"class.MIR::Function" = type { %"class.std::vector.20", %"class.std::vector.25", %"class.std::vector.29", %"class.MIR::EnumCachePtr" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::BasicBlock, std::allocator<MIR::BasicBlock>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::EnumCachePtr" = type { ptr }
%"struct.MIR::BasicBlock" = type { %"class.std::vector.101", %"class.MIR::Terminator" }
%"class.std::vector.101" = type { %"struct.std::_Vector_base.102" }
%"struct.std::_Vector_base.102" = type { %"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::Statement, std::allocator<MIR::Statement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.MIR::Terminator" = type { i32, %"union.MIR::Terminator::DataUnion" }
%"union.MIR::Terminator::DataUnion" = type { %"struct.MIR::Terminator::Data_Call" }
%"struct.MIR::Terminator::Data_Call" = type { i32, i32, %"struct.MIR::LValue", %"class.MIR::CallTarget", %"class.std::vector.138" }
%"class.MIR::CallTarget" = type { i32, %"union.MIR::CallTarget::DataUnion" }
%"union.MIR::CallTarget::DataUnion" = type { %"class.HIR::Path" }
%"class.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr" }
%"class.HIR::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 }
%"struct.MIR::RValue::Data_Struct" = type { %"class.HIR::GenericPath", %"class.std::vector.138" }
%"struct.MIR::RValue::Data_Tuple" = type { %"class.std::vector.138" }
%"struct.MIR::RValue::Data_Array" = type { %"class.std::vector.138" }
%"struct.MIR::RValue::Data_EnumVariant" = type { %"class.HIR::GenericPath", i32, %"class.std::vector.138" }
%"struct.std::pair.566" = type { i32, %struct.Potential }
%"struct.MIR::RValue::Data_UnionVariant" = type { %"class.HIR::GenericPath", i32, %"class.MIR::Param" }

@g_debug_indent_level = external global i32, align 4
@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [29 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [5 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
declare dso_local void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_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.551, align 1
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.553, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::map.554", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.std::pair.563", align 8
  %29 = alloca i32, align 4
  %30 = alloca %struct.Potential, align 8
  %31 = alloca %"struct.std::pair.559", align 8
  %32 = alloca %"struct.std::pair.563", align 8
  %33 = alloca i32, align 4
  %34 = alloca %struct.Potential, align 8
  %35 = alloca %"struct.std::pair.559", align 8
  %36 = alloca %"class.std::function.226", align 8
  %37 = alloca %class.anon.565, align 8
  %38 = alloca ptr, align 8
  %39 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %40 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %41 = alloca ptr, align 8
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca ptr, align 8
  %45 = alloca %"class.std::vector.138", align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca %"class.std::function", align 8
  %54 = alloca %class.anon.568, align 8
  %55 = alloca %"class.std::function", align 8
  %56 = alloca %class.anon.569, align 1
  %57 = alloca i64, align 8
  %58 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %61 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %62 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %63 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %64 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %65 = alloca i64, align 8
  %66 = alloca i64, align 8
  %67 = alloca i32, align 4
  %68 = alloca %"class.HIR::TypeRef", align 8
  %69 = alloca %"class.HIR::TypeRef", align 8
  %70 = alloca %"class.MIR::Statement", align 8
  %71 = alloca %"struct.MIR::Statement::Data_Assign", align 8
  %72 = alloca %"class.MIR::Param", align 8
  %73 = alloca i1, align 1
  %74 = alloca ptr, align 8
  %75 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %76 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %77 = alloca ptr, align 8
  %78 = alloca %"class.std::function.267", align 8
  %79 = alloca %class.anon.571, 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) #7
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #7
  %80 = call noundef zeroext i1 @_Z13debug_enabledv()
  %81 = zext i1 %80 to i64
  %82 = select i1 %80, ptr @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %83 = getelementptr inbounds %class.anon.553, ptr %11, i32 0, i32 0
  store ptr %6, ptr %83, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %82, ptr noundef %8, ptr noundef %10)
          to label %84 unwind label %96

84:                                               ; preds = %2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #7
  call void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.MIR::Function", ptr %85, i32 0, i32 2
  store ptr %86, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #7
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #7
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  br label %93

93:                                               ; preds = %366, %84
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %94, label %100, label %95

95:                                               ; preds = %93
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %368

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

100:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %101 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store ptr %101, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.MIR::Function", ptr %103, i32 0, i32 2
  %105 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #7
  %106 = ptrtoint ptr %102 to i64
  %107 = ptrtoint ptr %105 to i64
  %108 = sub i64 %106, %107
  %109 = sdiv exact i64 %108, 192
  store i64 %109, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %110

110:                                              ; preds = %361, %100
  %111 = load i64, ptr %21, align 8, !tbaa !11
  %112 = load ptr, ptr %19, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %112, i32 0, i32 0
  %114 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #7
  %115 = icmp ult i64 %111, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %110
  store i32 4, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %365

117:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %118, i32 0, i32 0
  %120 = load i64, ptr %21, align 8, !tbaa !11
  %121 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %120) #7
  store ptr %121, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %122 = load ptr, ptr %22, align 8, !tbaa !5
  %123 = invoke noundef ptr @_ZNK3MIR9Statement10opt_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %122)
          to label %124 unwind label %133

124:                                              ; preds = %117
  store ptr %123, ptr %23, align 8, !tbaa !5
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %354

127:                                              ; preds = %124
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %128, i32 0, i32 0
  %130 = invoke noundef zeroext i1 @_ZNK3MIR6LValue8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %129)
          to label %131 unwind label %133

131:                                              ; preds = %127
  br i1 %130, label %137, label %132

132:                                              ; preds = %131
  store i32 6, ptr %18, align 4
  br label %355

133:                                              ; preds = %314, %312, %309, %307, %304, %302, %299, %297, %294, %291, %127, %117
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %12, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %13, align 4
  br label %364

137:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %138 = load ptr, ptr %23, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %138, i32 0, i32 1
  %140 = invoke noundef ptr @_ZNK3MIR6RValue10opt_StructEv(ptr noundef nonnull align 8 dereferenceable(112) %139)
          to label %141 unwind label %150

141:                                              ; preds = %137
  store ptr %140, ptr %24, align 8, !tbaa !5
  %142 = load ptr, ptr %24, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %155

144:                                              ; preds = %141
  %145 = load ptr, ptr %24, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.MIR::RValue::Data_Struct", ptr %145, i32 0, i32 1
  %147 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #7
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %149, label %154

149:                                              ; preds = %144
  store i32 6, ptr %18, align 4
  br label %288

150:                                              ; preds = %137
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %12, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %13, align 4
  br label %317

154:                                              ; preds = %144
  br label %287

155:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %156, i32 0, i32 1
  %158 = invoke noundef ptr @_ZNK3MIR6RValue9opt_TupleEv(ptr noundef nonnull align 8 dereferenceable(112) %157)
          to label %159 unwind label %168

159:                                              ; preds = %155
  store ptr %158, ptr %25, align 8, !tbaa !5
  %160 = load ptr, ptr %25, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %173

162:                                              ; preds = %159
  %163 = load ptr, ptr %25, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.MIR::RValue::Data_Tuple", ptr %163, i32 0, i32 0
  %165 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #7
  %166 = icmp eq i64 %165, 0
  br i1 %166, label %167, label %172

167:                                              ; preds = %162
  store i32 6, ptr %18, align 4
  br label %283

168:                                              ; preds = %155
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %12, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %13, align 4
  br label %286

172:                                              ; preds = %162
  br label %282

173:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %174 = load ptr, ptr %23, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %174, i32 0, i32 1
  %176 = invoke noundef ptr @_ZNK3MIR6RValue9opt_ArrayEv(ptr noundef nonnull align 8 dereferenceable(112) %175)
          to label %177 unwind label %186

177:                                              ; preds = %173
  store ptr %176, ptr %26, align 8, !tbaa !5
  %178 = load ptr, ptr %26, align 8, !tbaa !5
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %191

180:                                              ; preds = %177
  %181 = load ptr, ptr %26, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.MIR::RValue::Data_Array", ptr %181, i32 0, i32 0
  %183 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #7
  %184 = icmp eq i64 %183, 0
  br i1 %184, label %185, label %190

185:                                              ; preds = %180
  store i32 6, ptr %18, align 4
  br label %278

186:                                              ; preds = %173
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %12, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %13, align 4
  br label %281

190:                                              ; preds = %180
  br label %277

191:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %192 = load ptr, ptr %23, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %192, i32 0, i32 1
  %194 = invoke noundef ptr @_ZNK3MIR6RValue15opt_EnumVariantEv(ptr noundef nonnull align 8 dereferenceable(112) %193)
          to label %195 unwind label %204

195:                                              ; preds = %191
  store ptr %194, ptr %27, align 8, !tbaa !5
  %196 = load ptr, ptr %27, align 8, !tbaa !5
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %274

198:                                              ; preds = %195
  %199 = load ptr, ptr %27, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.MIR::RValue::Data_EnumVariant", ptr %199, i32 0, i32 2
  %201 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %200) #7
  %202 = icmp eq i64 %201, 0
  br i1 %202, label %203, label %208

203:                                              ; preds = %198
  store i32 6, ptr %18, align 4
  br label %275

204:                                              ; preds = %232, %230, %227, %225, %222, %220, %217, %215, %212, %209, %191
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %12, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %13, align 4
  br label %276

208:                                              ; preds = %198
  br label %209

209:                                              ; preds = %208
  %210 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %211 unwind label %204

211:                                              ; preds = %209
  br i1 %210, label %212, label %235

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

215:                                              ; preds = %212
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @.str.98)
          to label %217 unwind label %204

217:                                              ; preds = %215
  %218 = load i64, ptr %20, align 8, !tbaa !11
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %216, i64 noundef %218)
          to label %220 unwind label %204

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.37)
          to label %222 unwind label %204

222:                                              ; preds = %220
  %223 = load i64, ptr %21, align 8, !tbaa !11
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %221, i64 noundef %223)
          to label %225 unwind label %204

225:                                              ; preds = %222
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef @.str.99)
          to label %227 unwind label %204

227:                                              ; preds = %225
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull align 8 dereferenceable(152) %228)
          to label %230 unwind label %204

230:                                              ; preds = %227
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @_ZSt3decRSt8ios_base)
          to label %232 unwind label %204

232:                                              ; preds = %230
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %234 unwind label %204

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234, %211
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %238 = load ptr, ptr %23, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %238, i32 0, i32 0
  %240 = invoke noundef i32 @_ZNK3MIR6LValue8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %239)
          to label %241 unwind label %255

241:                                              ; preds = %237
  store i32 %240, ptr %29, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 56, ptr %30) #7
  %242 = load i64, ptr %20, align 8, !tbaa !11
  %243 = load i64, ptr %21, align 8, !tbaa !11
  %244 = load ptr, ptr %27, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.MIR::RValue::Data_EnumVariant", ptr %244, i32 0, i32 1
  %246 = load i32, ptr %245, align 8, !tbaa !15
  invoke void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialC2Emmj(ptr noundef nonnull align 8 dereferenceable(56) %30, i64 noundef %242, i64 noundef %243, i32 noundef %246)
          to label %247 unwind label %259

247:                                              ; preds = %241
  invoke void @_ZSt9make_pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind writable sret(%"struct.std::pair.563") align 8 %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 8 dereferenceable(56) %30)
          to label %248 unwind label %263

248:                                              ; preds = %247
  %249 = invoke { ptr, i8 } @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE6insertIS8_IjS5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(64) %28)
          to label %250 unwind label %267

250:                                              ; preds = %248
  %251 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
  %252 = extractvalue { ptr, i8 } %249, 0
  store ptr %252, ptr %251, align 8
  %253 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
  %254 = extractvalue { ptr, i8 } %249, 1
  store i8 %254, ptr %253, align 8
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %28) #7
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #7
  store i32 6, ptr %18, align 4
  br label %275

255:                                              ; preds = %237
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %12, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %13, align 4
  br label %273

259:                                              ; preds = %241
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %12, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %13, align 4
  br label %272

263:                                              ; preds = %247
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %12, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %13, align 4
  br label %271

267:                                              ; preds = %248
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %12, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %13, align 4
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %28) #7
  br label %271

271:                                              ; preds = %267, %263
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #7
  br label %272

272:                                              ; preds = %271, %259
  call void @llvm.lifetime.end.p0(i64 56, ptr %30) #7
  br label %273

273:                                              ; preds = %272, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #7
  br label %276

274:                                              ; preds = %195
  store i32 6, ptr %18, align 4
  br label %275

275:                                              ; preds = %274, %250, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %278

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

277:                                              ; preds = %190
  store i32 0, ptr %18, align 4
  br label %278

278:                                              ; preds = %277, %275, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %279 = load i32, ptr %18, align 4
  switch i32 %279, label %283 [
    i32 0, label %280
  ]

280:                                              ; preds = %278
  br label %282

281:                                              ; preds = %276, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %286

282:                                              ; preds = %280, %172
  store i32 0, ptr %18, align 4
  br label %283

283:                                              ; preds = %282, %278, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  %284 = load i32, ptr %18, align 4
  switch i32 %284, label %288 [
    i32 0, label %285
  ]

285:                                              ; preds = %283
  br label %287

286:                                              ; preds = %281, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %317

287:                                              ; preds = %285, %154
  store i32 0, ptr %18, align 4
  br label %288

288:                                              ; preds = %287, %283, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %289 = load i32, ptr %18, align 4
  switch i32 %289, label %355 [
    i32 0, label %290
  ]

290:                                              ; preds = %288
  br label %291

291:                                              ; preds = %290
  %292 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %293 unwind label %133

293:                                              ; preds = %291
  br i1 %292, label %294, label %318

294:                                              ; preds = %293
  %295 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %296 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %295, ptr noundef @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %297 unwind label %133

297:                                              ; preds = %294
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef @.str.98)
          to label %299 unwind label %133

299:                                              ; preds = %297
  %300 = load i64, ptr %20, align 8, !tbaa !11
  %301 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %298, i64 noundef %300)
          to label %302 unwind label %133

302:                                              ; preds = %299
  %303 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %301, ptr noundef @.str.37)
          to label %304 unwind label %133

304:                                              ; preds = %302
  %305 = load i64, ptr %21, align 8, !tbaa !11
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %303, i64 noundef %305)
          to label %307 unwind label %133

307:                                              ; preds = %304
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef @.str.99)
          to label %309 unwind label %133

309:                                              ; preds = %307
  %310 = load ptr, ptr %22, align 8, !tbaa !5
  %311 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef nonnull align 8 dereferenceable(152) %310)
          to label %312 unwind label %133

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

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

316:                                              ; preds = %314
  br label %318

317:                                              ; preds = %286, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %364

318:                                              ; preds = %316, %293
  br label %319

319:                                              ; preds = %318
  br label %320

320:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %321 = load ptr, ptr %23, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %321, i32 0, i32 0
  %323 = invoke noundef i32 @_ZNK3MIR6LValue8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %322)
          to label %324 unwind label %335

324:                                              ; preds = %320
  store i32 %323, ptr %33, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 56, ptr %34) #7
  %325 = load i64, ptr %20, align 8, !tbaa !11
  %326 = load i64, ptr %21, align 8, !tbaa !11
  invoke void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialC2Emmj(ptr noundef nonnull align 8 dereferenceable(56) %34, i64 noundef %325, i64 noundef %326, i32 noundef -1)
          to label %327 unwind label %339

327:                                              ; preds = %324
  invoke void @_ZSt9make_pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind writable sret(%"struct.std::pair.563") align 8 %32, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 8 dereferenceable(56) %34)
          to label %328 unwind label %343

328:                                              ; preds = %327
  %329 = invoke { ptr, i8 } @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE6insertIS8_IjS5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(64) %32)
          to label %330 unwind label %347

330:                                              ; preds = %328
  %331 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 0
  %332 = extractvalue { ptr, i8 } %329, 0
  store ptr %332, ptr %331, align 8
  %333 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 1
  %334 = extractvalue { ptr, i8 } %329, 1
  store i8 %334, ptr %333, align 8
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %32) #7
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %34) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #7
  br label %354

335:                                              ; preds = %320
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %12, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %13, align 4
  br label %353

339:                                              ; preds = %324
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %12, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %13, align 4
  br label %352

343:                                              ; preds = %327
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %12, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %13, align 4
  br label %351

347:                                              ; preds = %328
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %12, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %13, align 4
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %32) #7
  br label %351

351:                                              ; preds = %347, %343
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %34) #7
  br label %352

352:                                              ; preds = %351, %339
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #7
  br label %353

353:                                              ; preds = %352, %335
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #7
  br label %364

354:                                              ; preds = %330, %124
  store i32 0, ptr %18, align 4
  br label %355

355:                                              ; preds = %354, %288, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %356 = load i32, ptr %18, align 4
  switch i32 %356, label %358 [
    i32 0, label %357
  ]

357:                                              ; preds = %355
  store i32 0, ptr %18, align 4
  br label %358

358:                                              ; preds = %357, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %359 = load i32, ptr %18, align 4
  switch i32 %359, label %849 [
    i32 0, label %360
    i32 6, label %361
  ]

360:                                              ; preds = %358
  br label %361

361:                                              ; preds = %360, %358
  %362 = load i64, ptr %21, align 8, !tbaa !11
  %363 = add i64 %362, 1
  store i64 %363, ptr %21, align 8, !tbaa !11
  br label %110, !llvm.loop !28

364:                                              ; preds = %353, %317, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %842

365:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %366

366:                                              ; preds = %365
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %93

368:                                              ; preds = %95
  %369 = call noundef zeroext i1 @_ZNKSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  br i1 %369, label %370, label %371

370:                                              ; preds = %368
  store i1 false, ptr %3, align 1
  store i32 1, ptr %18, align 4
  br label %840

371:                                              ; preds = %368
  %372 = load ptr, ptr %4, align 8, !tbaa !5
  %373 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #7
  %374 = getelementptr inbounds %class.anon.565, ptr %37, i32 0, i32 0
  store ptr %14, ptr %374, align 8, !tbaa !5
  %375 = getelementptr inbounds %class.anon.565, ptr %37, i32 0, i32 1
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %376, ptr %375, align 8, !tbaa !5
  %377 = getelementptr inbounds %class.anon.565, ptr %37, i32 0, i32 2
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %378, ptr %377, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ28MIR_Optimise_SplitAggregatesRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %379 unwind label %383

379:                                              ; preds = %371
  invoke void @_ZN12_GLOBAL__N_117visit_mir_lvaluesERN3MIR11TypeResolveERKNS0_8FunctionESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120) %372, ptr noundef nonnull align 8 dereferenceable(96) %373, ptr noundef %36)
          to label %380 unwind label %387

380:                                              ; preds = %379
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  %381 = call noundef zeroext i1 @_ZNKSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  br i1 %381, label %382, label %392

382:                                              ; preds = %380
  store i1 false, ptr %3, align 1
  store i32 1, ptr %18, align 4
  br label %840

383:                                              ; preds = %371
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %12, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %13, align 4
  br label %391

387:                                              ; preds = %379
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %12, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  br label %391

391:                                              ; preds = %387, %383
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  br label %842

392:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store ptr %14, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %393 = load ptr, ptr %38, align 8, !tbaa !5
  %394 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %393) #7
  %395 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.561", ptr %39, i32 0, i32 0
  store ptr %394, ptr %395, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %396 = load ptr, ptr %38, align 8, !tbaa !5
  %397 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %396) #7
  %398 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.561", ptr %40, i32 0, i32 0
  store ptr %397, ptr %398, align 8
  br label %399

399:                                              ; preds = %822, %392
  %400 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEESB_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #7
  br i1 %400, label %402, label %401

401:                                              ; preds = %399
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %829

402:                                              ; preds = %399
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %403 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  store ptr %403, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %404 = load ptr, ptr %41, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.std::pair.566", ptr %404, i32 0, i32 1
  %406 = getelementptr inbounds %struct.Potential, ptr %405, i32 0, i32 0
  %407 = load i64, ptr %406, align 8, !tbaa !30
  store i64 %407, ptr %42, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %408 = load ptr, ptr %41, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.std::pair.566", ptr %408, i32 0, i32 1
  %410 = getelementptr inbounds %struct.Potential, ptr %409, i32 0, i32 1
  %411 = load i64, ptr %410, align 8, !tbaa !37
  store i64 %411, ptr %43, align 8, !tbaa !11
  %412 = load ptr, ptr %4, align 8, !tbaa !5
  %413 = load i64, ptr %42, align 8, !tbaa !11
  %414 = trunc i64 %413 to i32
  %415 = load i64, ptr %43, align 8, !tbaa !11
  %416 = trunc i64 %415 to i32
  invoke void @_ZN3MIR11TypeResolve12set_cur_stmtEjj(ptr noundef nonnull align 8 dereferenceable(120) %412, i32 noundef %414, i32 noundef %416)
          to label %417 unwind label %451

417:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %418 = load ptr, ptr %5, align 8, !tbaa !5
  %419 = getelementptr inbounds %"class.MIR::Function", ptr %418, i32 0, i32 2
  %420 = load i64, ptr %42, align 8, !tbaa !11
  %421 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %419, i64 noundef %420) #7
  store ptr %421, ptr %44, align 8, !tbaa !5
  br label %422

422:                                              ; preds = %417
  %423 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %424 unwind label %455

424:                                              ; preds = %422
  br i1 %423, label %425, label %459

425:                                              ; preds = %424
  %426 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %427 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %426, ptr noundef @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %428 unwind label %455

428:                                              ; preds = %425
  %429 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %427, ptr noundef @.str.100)
          to label %430 unwind label %455

430:                                              ; preds = %428
  %431 = load i64, ptr %42, align 8, !tbaa !11
  %432 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %429, i64 noundef %431)
          to label %433 unwind label %455

433:                                              ; preds = %430
  %434 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %432, ptr noundef @.str.37)
          to label %435 unwind label %455

435:                                              ; preds = %433
  %436 = load i64, ptr %43, align 8, !tbaa !11
  %437 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %434, i64 noundef %436)
          to label %438 unwind label %455

438:                                              ; preds = %435
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %437, ptr noundef @.str.23)
          to label %440 unwind label %455

440:                                              ; preds = %438
  %441 = load ptr, ptr %44, align 8, !tbaa !5
  %442 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %441, i32 0, i32 0
  %443 = load i64, ptr %43, align 8, !tbaa !11
  %444 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %442, i64 noundef %443) #7
  %445 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %439, ptr noundef nonnull align 8 dereferenceable(152) %444)
          to label %446 unwind label %455

446:                                              ; preds = %440
  %447 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %445, ptr noundef @_ZSt3decRSt8ios_base)
          to label %448 unwind label %455

448:                                              ; preds = %446
  %449 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %447, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %450 unwind label %455

450:                                              ; preds = %448
  br label %459

451:                                              ; preds = %402
  %452 = landingpad { ptr, i32 }
          cleanup
  %453 = extractvalue { ptr, i32 } %452, 0
  store ptr %453, ptr %12, align 8
  %454 = extractvalue { ptr, i32 } %452, 1
  store i32 %454, ptr %13, align 4
  br label %828

455:                                              ; preds = %448, %446, %440, %438, %435, %433, %430, %428, %425, %422
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %12, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %13, align 4
  br label %827

459:                                              ; preds = %450, %424
  br label %460

460:                                              ; preds = %459
  br label %461

461:                                              ; preds = %460
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #7
  call void @_ZNSt6vectorIN3MIR5ParamESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %462 = load ptr, ptr %44, align 8, !tbaa !5
  %463 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %462, i32 0, i32 0
  %464 = load i64, ptr %43, align 8, !tbaa !11
  %465 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %463, i64 noundef %464) #7
  %466 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %465)
          to label %467 unwind label %478

467:                                              ; preds = %461
  %468 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %466, i32 0, i32 1
  store ptr %468, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %469 = load ptr, ptr %46, align 8, !tbaa !5
  %470 = invoke noundef ptr @_ZN3MIR6RValue10opt_StructEv(ptr noundef nonnull align 8 dereferenceable(112) %469)
          to label %471 unwind label %482

471:                                              ; preds = %467
  store ptr %470, ptr %47, align 8, !tbaa !5
  %472 = load ptr, ptr %47, align 8, !tbaa !5
  %473 = icmp ne ptr %472, null
  br i1 %473, label %474, label %486

474:                                              ; preds = %471
  %475 = load ptr, ptr %47, align 8, !tbaa !5
  %476 = getelementptr inbounds %"struct.MIR::RValue::Data_Struct", ptr %475, i32 0, i32 1
  %477 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %476) #7
  br label %569

478:                                              ; preds = %461
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %12, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %13, align 4
  br label %577

482:                                              ; preds = %467
  %483 = landingpad { ptr, i32 }
          cleanup
  %484 = extractvalue { ptr, i32 } %483, 0
  store ptr %484, ptr %12, align 8
  %485 = extractvalue { ptr, i32 } %483, 1
  store i32 %485, ptr %13, align 4
  br label %576

486:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %487 = load ptr, ptr %46, align 8, !tbaa !5
  %488 = invoke noundef ptr @_ZN3MIR6RValue9opt_TupleEv(ptr noundef nonnull align 8 dereferenceable(112) %487)
          to label %489 unwind label %496

489:                                              ; preds = %486
  store ptr %488, ptr %48, align 8, !tbaa !5
  %490 = load ptr, ptr %48, align 8, !tbaa !5
  %491 = icmp ne ptr %490, null
  br i1 %491, label %492, label %500

492:                                              ; preds = %489
  %493 = load ptr, ptr %48, align 8, !tbaa !5
  %494 = getelementptr inbounds %"struct.MIR::RValue::Data_Tuple", ptr %493, i32 0, i32 0
  %495 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %494) #7
  br label %567

496:                                              ; preds = %486
  %497 = landingpad { ptr, i32 }
          cleanup
  %498 = extractvalue { ptr, i32 } %497, 0
  store ptr %498, ptr %12, align 8
  %499 = extractvalue { ptr, i32 } %497, 1
  store i32 %499, ptr %13, align 4
  br label %568

500:                                              ; preds = %489
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %501 = load ptr, ptr %46, align 8, !tbaa !5
  %502 = invoke noundef ptr @_ZN3MIR6RValue9opt_ArrayEv(ptr noundef nonnull align 8 dereferenceable(112) %501)
          to label %503 unwind label %510

503:                                              ; preds = %500
  store ptr %502, ptr %49, align 8, !tbaa !5
  %504 = load ptr, ptr %49, align 8, !tbaa !5
  %505 = icmp ne ptr %504, null
  br i1 %505, label %506, label %514

506:                                              ; preds = %503
  %507 = load ptr, ptr %49, align 8, !tbaa !5
  %508 = getelementptr inbounds %"struct.MIR::RValue::Data_Array", ptr %507, i32 0, i32 0
  %509 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %508) #7
  br label %565

510:                                              ; preds = %500
  %511 = landingpad { ptr, i32 }
          cleanup
  %512 = extractvalue { ptr, i32 } %511, 0
  store ptr %512, ptr %12, align 8
  %513 = extractvalue { ptr, i32 } %511, 1
  store i32 %513, ptr %13, align 4
  br label %566

514:                                              ; preds = %503
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  %515 = load ptr, ptr %46, align 8, !tbaa !5
  %516 = invoke noundef ptr @_ZN3MIR6RValue15opt_EnumVariantEv(ptr noundef nonnull align 8 dereferenceable(112) %515)
          to label %517 unwind label %524

517:                                              ; preds = %514
  store ptr %516, ptr %50, align 8, !tbaa !5
  %518 = load ptr, ptr %50, align 8, !tbaa !5
  %519 = icmp ne ptr %518, null
  br i1 %519, label %520, label %528

520:                                              ; preds = %517
  %521 = load ptr, ptr %50, align 8, !tbaa !5
  %522 = getelementptr inbounds %"struct.MIR::RValue::Data_EnumVariant", ptr %521, i32 0, i32 2
  %523 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %522) #7
  br label %563

524:                                              ; preds = %514
  %525 = landingpad { ptr, i32 }
          cleanup
  %526 = extractvalue { ptr, i32 } %525, 0
  store ptr %526, ptr %12, align 8
  %527 = extractvalue { ptr, i32 } %525, 1
  store i32 %527, ptr %13, align 4
  br label %564

528:                                              ; preds = %517
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  %529 = load ptr, ptr %46, align 8, !tbaa !5
  %530 = invoke noundef ptr @_ZN3MIR6RValue16opt_UnionVariantEv(ptr noundef nonnull align 8 dereferenceable(112) %529)
          to label %531 unwind label %538

531:                                              ; preds = %528
  store ptr %530, ptr %51, align 8, !tbaa !5
  %532 = load ptr, ptr %51, align 8, !tbaa !5
  %533 = icmp ne ptr %532, null
  br i1 %533, label %534, label %542

534:                                              ; preds = %531
  %535 = load ptr, ptr %51, align 8, !tbaa !5
  %536 = getelementptr inbounds %"struct.MIR::RValue::Data_UnionVariant", ptr %535, i32 0, i32 2
  invoke void @_ZNSt6vectorIN3MIR5ParamESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(48) %536)
          to label %537 unwind label %538

537:                                              ; preds = %534
  br label %561

538:                                              ; preds = %534, %528
  %539 = landingpad { ptr, i32 }
          cleanup
  %540 = extractvalue { ptr, i32 } %539, 0
  store ptr %540, ptr %12, align 8
  %541 = extractvalue { ptr, i32 } %539, 1
  store i32 %541, ptr %13, align 4
  br label %562

542:                                              ; preds = %531
  br label %543

543:                                              ; preds = %542
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #7
  store ptr @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE, ptr %52, align 8, !tbaa !5
  %544 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #7
  %545 = getelementptr inbounds %class.anon.568, ptr %54, i32 0, i32 0
  store ptr %52, ptr %545, align 8, !tbaa !5
  %546 = getelementptr inbounds %class.anon.568, ptr %54, i32 0, i32 1
  %547 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %547, ptr %546, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(16) %54) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %544, ptr noundef %53)
          to label %548 unwind label %550

548:                                              ; preds = %543
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #7
  %549 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.11, ptr %549, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %549, ptr @_ZTIPKc, ptr null) #8
          to label %849 unwind label %554

550:                                              ; preds = %543
  %551 = landingpad { ptr, i32 }
          cleanup
  %552 = extractvalue { ptr, i32 } %551, 0
  store ptr %552, ptr %12, align 8
  %553 = extractvalue { ptr, i32 } %551, 1
  store i32 %553, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #7
  br label %558

554:                                              ; preds = %548
  %555 = landingpad { ptr, i32 }
          cleanup
  %556 = extractvalue { ptr, i32 } %555, 0
  store ptr %556, ptr %12, align 8
  %557 = extractvalue { ptr, i32 } %555, 1
  store i32 %557, ptr %13, align 4
  br label %558

558:                                              ; preds = %554, %550
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  br label %562

559:                                              ; No predecessors!
  br label %560

560:                                              ; preds = %559
  br label %561

561:                                              ; preds = %560, %537
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %563

562:                                              ; preds = %558, %538
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %564

563:                                              ; preds = %561, %520
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %565

564:                                              ; preds = %562, %524
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %566

565:                                              ; preds = %563, %506
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  br label %567

566:                                              ; preds = %564, %510
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  br label %568

567:                                              ; preds = %565, %492
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  br label %569

568:                                              ; preds = %566, %496
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  br label %576

569:                                              ; preds = %567, %474
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %570

570:                                              ; preds = %569
  %571 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  %572 = icmp ugt i64 %571, 0
  br i1 %572, label %582, label %573

573:                                              ; preds = %570
  %574 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 1 dereferenceable(1) %56) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %574, ptr noundef %55)
          to label %575 unwind label %578

575:                                              ; preds = %573
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #7
  br label %582

576:                                              ; preds = %568, %482
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %577

577:                                              ; preds = %576, %478
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %826

578:                                              ; preds = %573
  %579 = landingpad { ptr, i32 }
          cleanup
  %580 = extractvalue { ptr, i32 } %579, 0
  store ptr %580, ptr %12, align 8
  %581 = extractvalue { ptr, i32 } %579, 1
  store i32 %581, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #7
  br label %826

582:                                              ; preds = %575, %570
  br label %583

583:                                              ; preds = %582
  br label %584

584:                                              ; preds = %583
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #7
  %585 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  %586 = sub i64 %585, 1
  store i64 %586, ptr %57, align 8, !tbaa !11
  %587 = load i64, ptr %57, align 8, !tbaa !11
  %588 = icmp ugt i64 %587, 0
  br i1 %588, label %589, label %635

589:                                              ; preds = %584
  %590 = load ptr, ptr %44, align 8, !tbaa !5
  %591 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %590, i32 0, i32 0
  %592 = load ptr, ptr %44, align 8, !tbaa !5
  %593 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %592, i32 0, i32 0
  %594 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %593) #7
  %595 = load i64, ptr %57, align 8, !tbaa !11
  %596 = add i64 %594, %595
  invoke void @_ZNSt6vectorIN3MIR9StatementESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %591, i64 noundef %596)
          to label %597 unwind label %627

597:                                              ; preds = %589
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #7
  %598 = load ptr, ptr %44, align 8, !tbaa !5
  %599 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %598, i32 0, i32 0
  %600 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %599) #7
  %601 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %60, i32 0, i32 0
  store ptr %600, ptr %601, align 8
  %602 = load i64, ptr %43, align 8, !tbaa !11
  %603 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %60, i64 noundef %602) #7
  %604 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %59, i32 0, i32 0
  store ptr %603, ptr %604, align 8
  %605 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %59, i64 noundef 1) #7
  %606 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %58, i32 0, i32 0
  store ptr %605, ptr %606, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #7
  %607 = load ptr, ptr %44, align 8, !tbaa !5
  %608 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %607, i32 0, i32 0
  %609 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %608) #7
  %610 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %62, i32 0, i32 0
  store ptr %609, ptr %610, align 8
  %611 = load i64, ptr %57, align 8, !tbaa !11
  %612 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %62, i64 noundef %611) #7
  %613 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %61, i32 0, i32 0
  store ptr %612, ptr %613, align 8
  %614 = load ptr, ptr %44, align 8, !tbaa !5
  %615 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %614, i32 0, i32 0
  %616 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %615) #7
  %617 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %63, i32 0, i32 0
  store ptr %616, ptr %617, align 8
  %618 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %58, i32 0, i32 0
  %619 = load ptr, ptr %618, align 8
  %620 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %61, i32 0, i32 0
  %621 = load ptr, ptr %620, align 8
  %622 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %63, i32 0, i32 0
  %623 = load ptr, ptr %622, align 8
  %624 = invoke ptr @_ZSt13move_backwardIN9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %619, ptr %621, ptr %623)
          to label %625 unwind label %631

625:                                              ; preds = %597
  %626 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.148", ptr %64, i32 0, i32 0
  store ptr %624, ptr %626, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #7
  br label %635

627:                                              ; preds = %589
  %628 = landingpad { ptr, i32 }
          cleanup
  %629 = extractvalue { ptr, i32 } %628, 0
  store ptr %629, ptr %12, align 8
  %630 = extractvalue { ptr, i32 } %628, 1
  store i32 %630, ptr %13, align 4
  br label %825

631:                                              ; preds = %597
  %632 = landingpad { ptr, i32 }
          cleanup
  %633 = extractvalue { ptr, i32 } %632, 0
  store ptr %633, ptr %12, align 8
  %634 = extractvalue { ptr, i32 } %632, 1
  store i32 %634, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #7
  br label %825

635:                                              ; preds = %625, %584
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #7
  %636 = load ptr, ptr %5, align 8, !tbaa !5
  %637 = getelementptr inbounds %"class.MIR::Function", ptr %636, i32 0, i32 0
  %638 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %637) #7
  store i64 %638, ptr %65, align 8, !tbaa !11
  %639 = load ptr, ptr %5, align 8, !tbaa !5
  %640 = getelementptr inbounds %"class.MIR::Function", ptr %639, i32 0, i32 0
  %641 = load ptr, ptr %5, align 8, !tbaa !5
  %642 = getelementptr inbounds %"class.MIR::Function", ptr %641, i32 0, i32 0
  %643 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %642) #7
  %644 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  %645 = add i64 %643, %644
  invoke void @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %640, i64 noundef %645)
          to label %646 unwind label %657

646:                                              ; preds = %635
  %647 = load ptr, ptr %41, align 8, !tbaa !5
  %648 = getelementptr inbounds %"struct.std::pair.566", ptr %647, i32 0, i32 1
  %649 = getelementptr inbounds %struct.Potential, ptr %648, i32 0, i32 5
  %650 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %649, i64 noundef %650)
          to label %651 unwind label %657

651:                                              ; preds = %646
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #7
  store i64 0, ptr %66, align 8, !tbaa !11
  br label %652

652:                                              ; preds = %777, %651
  %653 = load i64, ptr %66, align 8, !tbaa !11
  %654 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  %655 = icmp ult i64 %653, %654
  br i1 %655, label %661, label %656

656:                                              ; preds = %652
  store i32 19, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #7
  br label %782

657:                                              ; preds = %646, %635
  %658 = landingpad { ptr, i32 }
          cleanup
  %659 = extractvalue { ptr, i32 } %658, 0
  store ptr %659, ptr %12, align 8
  %660 = extractvalue { ptr, i32 } %658, 1
  store i32 %660, ptr %13, align 4
  br label %824

661:                                              ; preds = %652
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #7
  %662 = load i64, ptr %65, align 8, !tbaa !11
  %663 = load i64, ptr %66, align 8, !tbaa !11
  %664 = add i64 %662, %663
  %665 = trunc i64 %664 to i32
  store i32 %665, ptr %67, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #7
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %666 unwind label %735

666:                                              ; preds = %661
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #7
  %667 = load ptr, ptr %4, align 8, !tbaa !5
  %668 = load i64, ptr %66, align 8, !tbaa !11
  %669 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %668) #7
  %670 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve14get_param_typeERN3HIR7TypeRefERKNS_5ParamE(ptr noundef nonnull align 8 dereferenceable(120) %667, ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(48) %669)
          to label %671 unwind label %739

671:                                              ; preds = %666
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%"class.HIR::TypeRef") align 8 %69, ptr noundef nonnull align 8 dereferenceable(8) %670)
          to label %672 unwind label %739

672:                                              ; preds = %671
  %673 = load ptr, ptr %5, align 8, !tbaa !5
  %674 = getelementptr inbounds %"class.MIR::Function", ptr %673, i32 0, i32 0
  %675 = load i32, ptr %67, align 4, !tbaa !13
  %676 = zext i32 %675 to i64
  %677 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %674, i64 noundef %676) #7
  %678 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR7TypeRefaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %677, ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %679 unwind label %743

679:                                              ; preds = %672
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #7
  %680 = load i32, ptr %67, align 4, !tbaa !13
  %681 = load ptr, ptr %41, align 8, !tbaa !5
  %682 = getelementptr inbounds %"struct.std::pair.566", ptr %681, i32 0, i32 1
  %683 = getelementptr inbounds %struct.Potential, ptr %682, i32 0, i32 5
  %684 = load i64, ptr %66, align 8, !tbaa !11
  %685 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %683, i64 noundef %684) #7
  store i32 %680, ptr %685, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 152, ptr %70) #7
  %686 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %71, i32 0, i32 0
  %687 = load i32, ptr %67, align 4, !tbaa !13
  invoke void @_ZN3MIR6LValue9new_LocalEj(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %686, i32 noundef %687)
          to label %688 unwind label %748

688:                                              ; preds = %679
  store i1 true, ptr %73, align 1
  %689 = getelementptr inbounds %"struct.MIR::Statement::Data_Assign", ptr %71, i32 0, i32 1
  %690 = load i64, ptr %66, align 8, !tbaa !11
  %691 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %690) #7
  call void @_ZN3MIR5ParamC2EOS0_(ptr noundef nonnull align 8 dereferenceable(48) %72, ptr noundef nonnull align 8 dereferenceable(48) %691) #7
  invoke void @_ZN12_GLOBAL__N_115param_to_rvalueEN3MIR5ParamE(ptr dead_on_unwind writable sret(%"class.MIR::RValue") align 8 %689, ptr noundef %72)
          to label %692 unwind label %752

692:                                              ; preds = %688
  store i1 false, ptr %73, align 1
  invoke void @_ZN3MIR9Statement11make_AssignENS0_11Data_AssignE(ptr dead_on_unwind writable sret(%"class.MIR::Statement") align 8 %70, ptr noundef %71)
          to label %693 unwind label %756

693:                                              ; preds = %692
  %694 = load ptr, ptr %44, align 8, !tbaa !5
  %695 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %694, i32 0, i32 0
  %696 = load i64, ptr %43, align 8, !tbaa !11
  %697 = load i64, ptr %66, align 8, !tbaa !11
  %698 = add i64 %696, %697
  %699 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %695, i64 noundef %698) #7
  %700 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152) %699, ptr noundef nonnull align 8 dereferenceable(152) %70)
          to label %701 unwind label %760

701:                                              ; preds = %693
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %70) #7
  call void @_ZN3MIR9Statement11Data_AssignD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %71) #7
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %72) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %70) #7
  br label %702

702:                                              ; preds = %701
  %703 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %704 unwind label %770

704:                                              ; preds = %702
  br i1 %703, label %705, label %774

705:                                              ; preds = %704
  %706 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !13
  %707 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %706, ptr noundef @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %708 unwind label %770

708:                                              ; preds = %705
  %709 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %707, ptr noundef @.str.101)
          to label %710 unwind label %770

710:                                              ; preds = %708
  %711 = load i64, ptr %42, align 8, !tbaa !11
  %712 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %709, i64 noundef %711)
          to label %713 unwind label %770

713:                                              ; preds = %710
  %714 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %712, ptr noundef @.str.37)
          to label %715 unwind label %770

715:                                              ; preds = %713
  %716 = load i64, ptr %43, align 8, !tbaa !11
  %717 = load i64, ptr %66, align 8, !tbaa !11
  %718 = add i64 %716, %717
  %719 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %714, i64 noundef %718)
          to label %720 unwind label %770

720:                                              ; preds = %715
  %721 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %719, ptr noundef @.str.23)
          to label %722 unwind label %770

722:                                              ; preds = %720
  %723 = load ptr, ptr %44, align 8, !tbaa !5
  %724 = getelementptr inbounds %"struct.MIR::BasicBlock", ptr %723, i32 0, i32 0
  %725 = load i64, ptr %43, align 8, !tbaa !11
  %726 = load i64, ptr %66, align 8, !tbaa !11
  %727 = add i64 %725, %726
  %728 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %724, i64 noundef %727) #7
  %729 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %721, ptr noundef nonnull align 8 dereferenceable(152) %728)
          to label %730 unwind label %770

730:                                              ; preds = %722
  %731 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %729, ptr noundef @_ZSt3decRSt8ios_base)
          to label %732 unwind label %770

732:                                              ; preds = %730
  %733 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %731, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %734 unwind label %770

734:                                              ; preds = %732
  br label %774

735:                                              ; preds = %661
  %736 = landingpad { ptr, i32 }
          cleanup
  %737 = extractvalue { ptr, i32 } %736, 0
  store ptr %737, ptr %12, align 8
  %738 = extractvalue { ptr, i32 } %736, 1
  store i32 %738, ptr %13, align 4
  br label %781

739:                                              ; preds = %671, %666
  %740 = landingpad { ptr, i32 }
          cleanup
  %741 = extractvalue { ptr, i32 } %740, 0
  store ptr %741, ptr %12, align 8
  %742 = extractvalue { ptr, i32 } %740, 1
  store i32 %742, ptr %13, align 4
  br label %747

743:                                              ; preds = %672
  %744 = landingpad { ptr, i32 }
          cleanup
  %745 = extractvalue { ptr, i32 } %744, 0
  store ptr %745, ptr %12, align 8
  %746 = extractvalue { ptr, i32 } %744, 1
  store i32 %746, ptr %13, align 4
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %69) #7
  br label %747

747:                                              ; preds = %743, %739
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #7
  br label %780

748:                                              ; preds = %679
  %749 = landingpad { ptr, i32 }
          cleanup
  %750 = extractvalue { ptr, i32 } %749, 0
  store ptr %750, ptr %12, align 8
  %751 = extractvalue { ptr, i32 } %749, 1
  store i32 %751, ptr %13, align 4
  br label %769

752:                                              ; preds = %688
  %753 = landingpad { ptr, i32 }
          cleanup
  %754 = extractvalue { ptr, i32 } %753, 0
  store ptr %754, ptr %12, align 8
  %755 = extractvalue { ptr, i32 } %753, 1
  store i32 %755, ptr %13, align 4
  br label %765

756:                                              ; preds = %692
  %757 = landingpad { ptr, i32 }
          cleanup
  %758 = extractvalue { ptr, i32 } %757, 0
  store ptr %758, ptr %12, align 8
  %759 = extractvalue { ptr, i32 } %757, 1
  store i32 %759, ptr %13, align 4
  br label %764

760:                                              ; preds = %693
  %761 = landingpad { ptr, i32 }
          cleanup
  %762 = extractvalue { ptr, i32 } %761, 0
  store ptr %762, ptr %12, align 8
  %763 = extractvalue { ptr, i32 } %761, 1
  store i32 %763, ptr %13, align 4
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %70) #7
  br label %764

764:                                              ; preds = %760, %756
  call void @_ZN3MIR9Statement11Data_AssignD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %71) #7
  br label %765

765:                                              ; preds = %764, %752
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %72) #7
  %766 = load i1, ptr %73, align 1
  br i1 %766, label %767, label %768

767:                                              ; preds = %765
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %686) #7
  br label %768

768:                                              ; preds = %767, %765
  br label %769

769:                                              ; preds = %768, %748
  call void @llvm.lifetime.end.p0(i64 152, ptr %70) #7
  br label %780

770:                                              ; preds = %732, %730, %722, %720, %715, %713, %710, %708, %705, %702
  %771 = landingpad { ptr, i32 }
          cleanup
  %772 = extractvalue { ptr, i32 } %771, 0
  store ptr %772, ptr %12, align 8
  %773 = extractvalue { ptr, i32 } %771, 1
  store i32 %773, ptr %13, align 4
  br label %780

774:                                              ; preds = %734, %704
  br label %775

775:                                              ; preds = %774
  br label %776

776:                                              ; preds = %775
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #7
  br label %777

777:                                              ; preds = %776
  %778 = load i64, ptr %66, align 8, !tbaa !11
  %779 = add i64 %778, 1
  store i64 %779, ptr %66, align 8, !tbaa !11
  br label %652, !llvm.loop !38

780:                                              ; preds = %770, %769, %747
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #7
  br label %781

781:                                              ; preds = %780, %735
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #7
  br label %824

782:                                              ; preds = %656
  %783 = load i64, ptr %57, align 8, !tbaa !11
  %784 = icmp ugt i64 %783, 0
  br i1 %784, label %785, label %821

785:                                              ; preds = %782
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #7
  store ptr %14, ptr %74, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #7
  %786 = load ptr, ptr %74, align 8, !tbaa !5
  %787 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %786) #7
  %788 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.561", ptr %75, i32 0, i32 0
  store ptr %787, ptr %788, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #7
  %789 = load ptr, ptr %74, align 8, !tbaa !5
  %790 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %789) #7
  %791 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.561", ptr %76, i32 0, i32 0
  store ptr %790, ptr %791, align 8
  br label %792

792:                                              ; preds = %818, %785
  %793 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEESB_(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %76) #7
  br i1 %793, label %795, label %794

794:                                              ; preds = %792
  store i32 24, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #7
  br label %820

795:                                              ; preds = %792
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #7
  %796 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  store ptr %796, ptr %77, align 8, !tbaa !5
  %797 = load ptr, ptr %77, align 8, !tbaa !5
  %798 = getelementptr inbounds %"struct.std::pair.566", ptr %797, i32 0, i32 1
  %799 = getelementptr inbounds %struct.Potential, ptr %798, i32 0, i32 0
  %800 = load i64, ptr %799, align 8, !tbaa !30
  %801 = load i64, ptr %42, align 8, !tbaa !11
  %802 = icmp eq i64 %800, %801
  br i1 %802, label %803, label %817

803:                                              ; preds = %795
  %804 = load ptr, ptr %77, align 8, !tbaa !5
  %805 = getelementptr inbounds %"struct.std::pair.566", ptr %804, i32 0, i32 1
  %806 = getelementptr inbounds %struct.Potential, ptr %805, i32 0, i32 1
  %807 = load i64, ptr %806, align 8, !tbaa !37
  %808 = load i64, ptr %43, align 8, !tbaa !11
  %809 = icmp ugt i64 %807, %808
  br i1 %809, label %810, label %817

810:                                              ; preds = %803
  %811 = load i64, ptr %57, align 8, !tbaa !11
  %812 = load ptr, ptr %77, align 8, !tbaa !5
  %813 = getelementptr inbounds %"struct.std::pair.566", ptr %812, i32 0, i32 1
  %814 = getelementptr inbounds %struct.Potential, ptr %813, i32 0, i32 1
  %815 = load i64, ptr %814, align 8, !tbaa !37
  %816 = add i64 %815, %811
  store i64 %816, ptr %814, align 8, !tbaa !37
  br label %817

817:                                              ; preds = %810, %803, %795
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #7
  br label %818

818:                                              ; preds = %817
  %819 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  br label %792

820:                                              ; preds = %794
  br label %821

821:                                              ; preds = %820, %782
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  call void @_ZNSt6vectorIN3MIR5ParamESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %822

822:                                              ; preds = %821
  %823 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  br label %399

824:                                              ; preds = %781, %657
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #7
  br label %825

825:                                              ; preds = %824, %631, %627
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  br label %826

826:                                              ; preds = %825, %578, %577
  call void @_ZNSt6vectorIN3MIR5ParamESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #7
  br label %827

827:                                              ; preds = %826, %455
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %828

828:                                              ; preds = %827, %451
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %842

829:                                              ; preds = %401
  %830 = load ptr, ptr %4, align 8, !tbaa !5
  %831 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %79) #7
  %832 = getelementptr inbounds %class.anon.571, ptr %79, i32 0, i32 0
  store ptr %14, ptr %832, align 8, !tbaa !5
  %833 = getelementptr inbounds %class.anon.571, ptr %79, i32 0, i32 1
  %834 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %834, ptr %833, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ28MIR_Optimise_SplitAggregatesRNS0_11TypeResolveERNS0_8FunctionEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %78, ptr noundef nonnull align 8 dereferenceable(16) %79) #7
  invoke void @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR11TypeResolveERNS0_8FunctionESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120) %830, ptr noundef nonnull align 8 dereferenceable(96) %831, ptr noundef %78)
          to label %835 unwind label %836

835:                                              ; preds = %829
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %78) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %79) #7
  store i8 1, ptr %6, align 1, !tbaa !9
  store i1 true, ptr %3, align 1
  store i32 1, ptr %18, align 4
  br label %840

836:                                              ; preds = %829
  %837 = landingpad { ptr, i32 }
          cleanup
  %838 = extractvalue { ptr, i32 } %837, 0
  store ptr %838, ptr %12, align 8
  %839 = extractvalue { ptr, i32 } %837, 1
  store i32 %839, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %78) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %79) #7
  br label %842

840:                                              ; preds = %835, %382, %370
  call void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  %841 = load i1, ptr %3, align 1
  ret i1 %841

842:                                              ; preds = %836, %828, %391, %364
  call void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  br label %843

843:                                              ; preds = %842, %96
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  br label %844

844:                                              ; preds = %843
  %845 = load ptr, ptr %12, align 8
  %846 = load i32, ptr %13, align 4
  %847 = insertvalue { ptr, i32 } poison, ptr %845, 0
  %848 = insertvalue { ptr, i32 } %847, i32 %846, 1
  resume { ptr, i32 } %848

849:                                              ; preds = %548, %358
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #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: 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) #6

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)) #6

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

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

; 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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117visit_mir_lvaluesERN3MIR11TypeResolveERKNS0_8FunctionESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #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 nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) #4 align 2

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

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

; 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 uwtable
declare hidden void @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR11TypeResolveERNS0_8FunctionESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_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 @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_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 hidden void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZSt9make_pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.563") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(56)) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNKSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ28MIR_Optimise_SplitAggregatesRNS0_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 nounwind uwtable
declare hidden ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13move_backwardIN9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr, ptr, ptr) #6

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve14get_param_typeERN3HIR7TypeRefERKNS_5ParamE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48)) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_115param_to_rvalueEN3MIR5ParamE(ptr dead_on_unwind noalias writable sret(%"class.MIR::RValue") align 8, ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEED2Ev(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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 32}
!16 = !{!"_ZTSN3MIR6RValue16Data_EnumVariantE", !17, i64 0, !14, i64 32, !24, i64 40}
!17 = !{!"_ZTSN3HIR11GenericPathE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSN3HIR10SimplePathE", !19, i64 0}
!19 = !{!"_ZTS10ThinVectorI8RcStringE", !6, i64 0}
!20 = !{!"_ZTSN3HIR10PathParamsE", !21, i64 0, !22, i64 8, !23, i64 16}
!21 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !6, i64 0}
!22 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !6, i64 0}
!23 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !6, i64 0}
!24 = !{!"_ZTSSt6vectorIN3MIR5ParamESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN3MIR5ParamESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3MIR5ParamESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3MIR5ParamESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !12, i64 8}
!31 = !{!"_ZTSSt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS1_8FunctionEE9PotentialE", !14, i64 0, !32, i64 8}
!32 = !{!"_ZTSZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEE9Potential", !12, i64 0, !12, i64 8, !14, i64 16, !10, i64 20, !14, i64 24, !33, i64 32}
!33 = !{!"_ZTSSt6vectorIjSaIjEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!31, !12, i64 16}
!38 = distinct !{!38, !29}


; 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.551 = type { i8 }
%class.anon.553 = type { ptr }
%"class.std::map.554" = type { %"class.std::_Rb_tree.555" }
%"class.std::_Rb_tree.555" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, Potential>, std::_Select1st<std::pair<const unsigned int, Potential>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, Potential>, std::_Select1st<std::pair<const unsigned int, Potential>>, 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.563" = type { i32, %struct.Potential }
%struct.Potential = type { i64, i64, i32, i8, i32, %"class.std::vector.111" }
%"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.std::function.226" = type { %"class.std::_Function_base", ptr }
%class.anon.565 = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator.561" = 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 }
%class.anon.568 = type { ptr, ptr }
%class.anon.569 = type { i8 }
%"class.__gnu_cxx::__normal_iterator.148" = type { ptr }
%"class.HIR::TypeRef" = type { ptr }
%"class.MIR::Statement" = type { i32, %"union.MIR::Statement::DataUnion" }
%"union.MIR::Statement::DataUnion" = type { %"struct.MIR::Statement::Data_Assign" }
%"struct.MIR::Statement::Data_Assign" = type { %"struct.MIR::LValue", %"class.MIR::RValue" }
%"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::RValue" = type { i32, %"union.MIR::RValue::DataUnion" }
%"union.MIR::RValue::DataUnion" = type { %"struct.MIR::RValue::Data_BinOp" }
%"struct.MIR::RValue::Data_BinOp" = type { %"class.MIR::Param", i32, %"class.MIR::Param" }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%class.anon.571 = type { ptr, ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [29 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [5 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
declare dso_local void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_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.551, align 1
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.553, align 8
  %9 = alloca %"class.std::map.554", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"struct.std::pair.563", align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.Potential, align 8
  %15 = alloca %"struct.std::pair.563", align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.Potential, align 8
  %18 = alloca %"class.std::function.226", align 8
  %19 = alloca %class.anon.565, align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %22 = alloca %"class.std::vector.138", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.std::function", align 8
  %25 = alloca %class.anon.568, align 8
  %26 = alloca %"class.std::function", align 8
  %27 = alloca %class.anon.569, align 1
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.148", align 8
  %31 = alloca %"class.HIR::TypeRef", align 8
  %32 = alloca %"class.HIR::TypeRef", align 8
  %33 = alloca %"class.MIR::Statement", align 8
  %34 = alloca %"struct.MIR::Statement::Data_Assign", align 8
  %35 = alloca %"class.MIR::Param", align 8
  %36 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %37 = alloca %"struct.std::_Rb_tree_iterator.561", align 8
  %38 = alloca %"class.std::function.267", align 8
  %39 = alloca %class.anon.571, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  store i8 0, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  %40 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %41 = select i1 %40, ptr @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  invoke void @_ZN8TraceLogC1EPKcSt8functionIFvRSoEES5_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %41, ptr noundef nonnull %5, ptr noundef nonnull %7)
          to label %42 unwind label %48

42:                                               ; preds = %2
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  call void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  %43 = getelementptr inbounds i8, ptr %1, i64 64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %44 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  store ptr %44, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %45 = call ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  store ptr %45, ptr %11, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br i1 %46, label %.lr.ph242, label %._crit_edge243

._crit_edge243:                                   ; preds = %._crit_edge, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %47 = call noundef zeroext i1 @_ZNKSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  br i1 %47, label %363, label %158

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

.lr.ph242:                                        ; preds = %42, %._crit_edge
  %50 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %51 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %52 = ptrtoint ptr %50 to i64
  %53 = ptrtoint ptr %51 to i64
  %54 = sub i64 %52, %53
  %55 = sdiv exact i64 %54, 192
  %56 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %.not253 = icmp eq i64 %56, 0
  br i1 %.not253, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.thread217, %.lr.ph242
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %58 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3MIR10BasicBlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br i1 %58, label %.lr.ph242, label %._crit_edge243

.lr.ph:                                           ; preds = %.lr.ph242, %.thread217
  %.0164240 = phi i64 [ %154, %.thread217 ], [ 0, %.lr.ph242 ]
  %59 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNKSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %.0164240) #7
  %60 = call noundef ptr @_ZNK3MIR9Statement10opt_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %59)
  %.not200 = icmp eq ptr %60, null
  br i1 %.not200, label %.thread217, label %61

61:                                               ; preds = %.lr.ph
  %62 = call noundef zeroext i1 @_ZNK3MIR6LValue8is_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %60)
  br i1 %62, label %65, label %.thread217

63:                                               ; preds = %142, %140, %138, %136, %134, %132, %130, %128, %125, %.critedge
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %157

65:                                               ; preds = %61
  %66 = getelementptr inbounds i8, ptr %60, i64 32
  %67 = call noundef ptr @_ZNK3MIR6RValue10opt_StructEv(ptr noundef nonnull align 8 dereferenceable(112) %66)
  %.not201 = icmp eq ptr %67, null
  br i1 %.not201, label %72, label %68

68:                                               ; preds = %65
  %69 = getelementptr inbounds i8, ptr %67, i64 32
  %70 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %.thread217, label %.critedge

72:                                               ; preds = %65
  %73 = call noundef ptr @_ZNK3MIR6RValue9opt_TupleEv(ptr noundef nonnull align 8 dereferenceable(112) %66)
  %.not202 = icmp eq ptr %73, null
  br i1 %.not202, label %77, label %74

74:                                               ; preds = %72
  %75 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #7
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %.thread217, label %.critedge

77:                                               ; preds = %72
  %78 = call noundef ptr @_ZNK3MIR6RValue9opt_ArrayEv(ptr noundef nonnull align 8 dereferenceable(112) %66)
  %.not203 = icmp eq ptr %78, null
  br i1 %.not203, label %79, label %121

79:                                               ; preds = %77
  %80 = call noundef ptr @_ZNK3MIR6RValue15opt_EnumVariantEv(ptr noundef nonnull align 8 dereferenceable(112) %66)
  %.not204 = icmp eq ptr %80, null
  br i1 %.not204, label %.thread217, label %81

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %80, i64 40
  %83 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #7
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %.thread217, label %87

85:                                               ; preds = %107, %105, %103, %101, %99, %97, %95, %93, %90, %87
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %157

87:                                               ; preds = %81
  %88 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %89 unwind label %85

89:                                               ; preds = %87
  br i1 %88, label %90, label %109

90:                                               ; preds = %89
  %91 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %91, ptr noundef nonnull @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %93 unwind label %85

93:                                               ; preds = %90
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.98)
          to label %95 unwind label %85

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %94, i64 noundef %55)
          to label %97 unwind label %85

97:                                               ; preds = %95
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @.str.37)
          to label %99 unwind label %85

99:                                               ; preds = %97
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %98, i64 noundef %.0164240)
          to label %101 unwind label %85

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.99)
          to label %103 unwind label %85

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull align 8 dereferenceable(152) %59)
          to label %105 unwind label %85

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %107 unwind label %85

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %109 unwind label %85

109:                                              ; preds = %107, %89
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %110 = call noundef i32 @_ZNK3MIR6LValue8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %60)
  store i32 %110, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #7
  %111 = getelementptr inbounds i8, ptr %80, i64 32
  %112 = load i32, ptr %111, align 8, !tbaa !13
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialC2Emmj(ptr noundef nonnull align 8 dereferenceable(56) %14, i64 noundef %55, i64 noundef %.0164240, i32 noundef %112)
  invoke void @_ZSt9make_pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.563") align 8 %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %113 unwind label %116

113:                                              ; preds = %109
  %114 = invoke { ptr, i8 } @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE6insertIS8_IjS5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(64) %12)
          to label %115 unwind label %118

115:                                              ; preds = %113
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %12) #7
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  br label %.thread217

116:                                              ; preds = %109
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %113
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %12) #7
  br label %120

120:                                              ; preds = %118, %116
  %.pn205 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  br label %157

121:                                              ; preds = %77
  %122 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %.not227 = icmp eq i64 %122, 0
  br i1 %.not227, label %.thread217, label %.critedge

.critedge:                                        ; preds = %121, %74, %68
  %123 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %124 unwind label %63

124:                                              ; preds = %.critedge
  br i1 %123, label %125, label %144

125:                                              ; preds = %124
  %126 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %126, ptr noundef nonnull @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %128 unwind label %63

128:                                              ; preds = %125
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.98)
          to label %130 unwind label %63

130:                                              ; preds = %128
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %129, i64 noundef %55)
          to label %132 unwind label %63

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull @.str.37)
          to label %134 unwind label %63

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %133, i64 noundef %.0164240)
          to label %136 unwind label %63

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull @.str.99)
          to label %138 unwind label %63

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull align 8 dereferenceable(152) %59)
          to label %140 unwind label %63

140:                                              ; preds = %138
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %142 unwind label %63

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %144 unwind label %63

144:                                              ; preds = %142, %124
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %145 = call noundef i32 @_ZNK3MIR6LValue8as_LocalEv(ptr noundef nonnull align 8 dereferenceable(32) %60)
  store i32 %145, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #7
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialC2Emmj(ptr noundef nonnull align 8 dereferenceable(56) %17, i64 noundef %55, i64 noundef %.0164240, i32 noundef -1)
  invoke void @_ZSt9make_pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.563") align 8 %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %146 unwind label %149

146:                                              ; preds = %144
  %147 = invoke { ptr, i8 } @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE6insertIS8_IjS5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(64) %15)
          to label %148 unwind label %151

148:                                              ; preds = %146
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #7
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  br label %.thread217

149:                                              ; preds = %144
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %153

151:                                              ; preds = %146
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %15) #7
  br label %153

153:                                              ; preds = %151, %149
  %.pn208 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @_ZZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEEN9PotentialD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  br label %157

.thread217:                                       ; preds = %121, %115, %81, %79, %74, %.lr.ph, %148, %68, %61
  %154 = add nuw i64 %.0164240, 1
  %155 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %156 = icmp ult i64 %154, %155
  br i1 %156, label %.lr.ph, label %._crit_edge, !llvm.loop !26

157:                                              ; preds = %85, %120, %153, %63
  %.pn208.pn = phi { ptr, i32 } [ %.pn208, %153 ], [ %64, %63 ], [ %.pn205, %120 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %364

158:                                              ; preds = %._crit_edge243
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  store ptr %9, ptr %19, align 8, !tbaa !9
  %159 = getelementptr inbounds i8, ptr %19, i64 8
  store ptr %1, ptr %159, align 8, !tbaa !9
  %160 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr %0, ptr %160, align 8, !tbaa !9
  invoke void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ28MIR_Optimise_SplitAggregatesRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %161 unwind label %164

161:                                              ; preds = %158
  invoke void @_ZN12_GLOBAL__N_117visit_mir_lvaluesERN3MIR11TypeResolveERKNS0_8FunctionESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull %18)
          to label %162 unwind label %166

162:                                              ; preds = %161
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  %163 = call noundef zeroext i1 @_ZNKSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  br i1 %163, label %363, label %169

164:                                              ; preds = %158
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %161
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %168

168:                                              ; preds = %166, %164
  %.pn = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %364

169:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %170 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %170, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %171 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %171, ptr %21, align 8
  %172 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br i1 %172, label %.lr.ph251, label %._crit_edge252

.lr.ph251:                                        ; preds = %169
  %173 = getelementptr inbounds i8, ptr %34, i64 32
  br label %175

._crit_edge252:                                   ; preds = %355, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #7
  store ptr %9, ptr %39, align 8, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %39, i64 8
  store ptr %0, ptr %174, align 8, !tbaa !9
  call void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ28MIR_Optimise_SplitAggregatesRNS0_11TypeResolveERNS0_8FunctionEE3$_5vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(16) %39) #7
  invoke void @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR11TypeResolveERNS0_8FunctionESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull %38)
          to label %360 unwind label %361

175:                                              ; preds = %.lr.ph251, %355
  %176 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %177 = getelementptr inbounds i8, ptr %176, i64 8
  %178 = load i64, ptr %177, align 8, !tbaa !28
  %179 = getelementptr inbounds i8, ptr %176, i64 16
  %180 = load i64, ptr %179, align 8, !tbaa !36
  %181 = trunc i64 %178 to i32
  %182 = trunc i64 %180 to i32
  call void @_ZN3MIR11TypeResolve12set_cur_stmtEjj(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %181, i32 noundef %182)
  %183 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNSt6vectorIN3MIR10BasicBlockESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %178) #7
  %184 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %185 unwind label %206

185:                                              ; preds = %175
  br i1 %184, label %186, label %208

186:                                              ; preds = %185
  %187 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %187, ptr noundef nonnull @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %189 unwind label %206

189:                                              ; preds = %186
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull @.str.100)
          to label %191 unwind label %206

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %190, i64 noundef %178)
          to label %193 unwind label %206

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull @.str.37)
          to label %195 unwind label %206

195:                                              ; preds = %193
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %194, i64 noundef %180)
          to label %197 unwind label %206

197:                                              ; preds = %195
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @.str.23)
          to label %199 unwind label %206

199:                                              ; preds = %197
  %200 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %180) #7
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull align 8 dereferenceable(152) %200)
          to label %202 unwind label %206

202:                                              ; preds = %199
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %204 unwind label %206

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %206

206:                                              ; preds = %204, %202, %199, %197, %195, %193, %191, %189, %186, %175
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %359

208:                                              ; preds = %204, %185
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #7
  call void @_ZNSt6vectorIN3MIR5ParamESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %209 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %180) #7
  %210 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152) %209)
  %211 = getelementptr inbounds i8, ptr %210, i64 32
  %212 = call noundef ptr @_ZN3MIR6RValue10opt_StructEv(ptr noundef nonnull align 8 dereferenceable(112) %211)
  %.not = icmp eq ptr %212, null
  br i1 %.not, label %215, label %213

213:                                              ; preds = %208
  %214 = getelementptr inbounds i8, ptr %212, i64 32
  br label %.sink.split

215:                                              ; preds = %208
  %216 = call noundef ptr @_ZN3MIR6RValue9opt_TupleEv(ptr noundef nonnull align 8 dereferenceable(112) %211)
  %.not179 = icmp eq ptr %216, null
  br i1 %.not179, label %217, label %.sink.split

217:                                              ; preds = %215
  %218 = call noundef ptr @_ZN3MIR6RValue9opt_ArrayEv(ptr noundef nonnull align 8 dereferenceable(112) %211)
  %.not180 = icmp eq ptr %218, null
  br i1 %.not180, label %219, label %.sink.split

219:                                              ; preds = %217
  %220 = call noundef ptr @_ZN3MIR6RValue15opt_EnumVariantEv(ptr noundef nonnull align 8 dereferenceable(112) %211)
  %.not181 = icmp eq ptr %220, null
  br i1 %.not181, label %223, label %221

221:                                              ; preds = %219
  %222 = getelementptr inbounds i8, ptr %220, i64 40
  br label %.sink.split

223:                                              ; preds = %219
  %224 = call noundef ptr @_ZN3MIR6RValue16opt_UnionVariantEv(ptr noundef nonnull align 8 dereferenceable(112) %211)
  %.not182 = icmp eq ptr %224, null
  br i1 %.not182, label %229, label %225

225:                                              ; preds = %223
  %226 = getelementptr inbounds i8, ptr %224, i64 40
  invoke void @_ZNSt6vectorIN3MIR5ParamESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(48) %226)
          to label %239 unwind label %227

227:                                              ; preds = %225
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %358

229:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  store ptr @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  store ptr %23, ptr %25, align 8, !tbaa !9
  %230 = getelementptr inbounds i8, ptr %25, i64 8
  store ptr %211, ptr %230, align 8, !tbaa !9
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %24)
          to label %231 unwind label %233

231:                                              ; preds = %229
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  %232 = call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.11, ptr %232, align 16, !tbaa !9
  invoke void @__cxa_throw(ptr nonnull %232, ptr nonnull @_ZTIPKc, ptr null) #8
          to label %366 unwind label %235

233:                                              ; preds = %229
  %234 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  br label %237

235:                                              ; preds = %231
  %236 = landingpad { ptr, i32 }
          cleanup
  br label %237

237:                                              ; preds = %235, %233
  %.pn183 = phi { ptr, i32 } [ %236, %235 ], [ %234, %233 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %358

.sink.split:                                      ; preds = %217, %215, %213, %221
  %.sink = phi ptr [ %222, %221 ], [ %214, %213 ], [ %216, %215 ], [ %218, %217 ]
  %238 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %.sink) #7
  br label %239

239:                                              ; preds = %.sink.split, %225
  %240 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %.not187 = icmp eq i64 %240, 0
  br i1 %.not187, label %241, label %245

241:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_8FunctionEE3$_4vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  invoke void @_ZNK3MIR11TypeResolve9print_bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull %26)
          to label %242 unwind label %243

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

243:                                              ; preds = %241
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #7
  br label %358

245:                                              ; preds = %242, %239
  %246 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %247 = add i64 %246, -1
  %.not188 = icmp eq i64 %247, 0
  br i1 %.not188, label %264, label %248

248:                                              ; preds = %245
  %249 = call noundef i64 @_ZNKSt6vectorIN3MIR9StatementESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #7
  %250 = add i64 %249, %247
  invoke void @_ZNSt6vectorIN3MIR9StatementESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %250)
          to label %251 unwind label %260

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %252 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #7
  store ptr %252, ptr %29, align 8
  %253 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %180) #7
  store ptr %253, ptr %28, align 8
  %254 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef 1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  %255 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #7
  store ptr %255, ptr %30, align 8
  %256 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS2_SaIS2_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %30, i64 noundef %247) #7
  %257 = call ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #7
  %258 = invoke ptr @_ZSt13move_backwardIN9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %254, ptr %256, ptr %257)
          to label %259 unwind label %262

259:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %264

260:                                              ; preds = %248
  %261 = landingpad { ptr, i32 }
          cleanup
  br label %358

262:                                              ; preds = %251
  %263 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %358

264:                                              ; preds = %259, %245
  %265 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %266 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %267 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %268 = add i64 %267, %266
  invoke void @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %268)
          to label %269 unwind label %273

269:                                              ; preds = %264
  %270 = getelementptr inbounds i8, ptr %176, i64 40
  %271 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %271)
          to label %.preheader unwind label %273

.preheader:                                       ; preds = %269
  %272 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %.not254 = icmp eq i64 %272, 0
  br i1 %.not254, label %._crit_edge246, label %.lr.ph245

._crit_edge246:                                   ; preds = %332, %.preheader
  br i1 %.not188, label %355, label %338

273:                                              ; preds = %269, %264
  %274 = landingpad { ptr, i32 }
          cleanup
  br label %358

.lr.ph245:                                        ; preds = %.preheader, %332
  %.0158244 = phi i64 [ %333, %332 ], [ 0, %.preheader ]
  %275 = add i64 %.0158244, %265
  %276 = trunc i64 %275 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  invoke void @_ZN3HIR7TypeRefC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %277 unwind label %316

277:                                              ; preds = %.lr.ph245
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  %278 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.0158244) #7
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve14get_param_typeERN3HIR7TypeRefERKNS_5ParamE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(48) %278)
          to label %280 unwind label %318

280:                                              ; preds = %277
  invoke void @_ZNK3HIR7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::TypeRef") align 8 %32, ptr noundef nonnull align 8 dereferenceable(8) %279)
          to label %281 unwind label %318

281:                                              ; preds = %280
  %282 = and i64 %275, 4294967295
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %282) #7
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3HIR7TypeRefaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %283, ptr noundef nonnull align 8 dereferenceable(8) %32)
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %.0158244) #7
  store i32 %276, ptr %285, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %33) #7
  invoke void @_ZN3MIR6LValue9new_LocalEj(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %34, i32 noundef %276)
          to label %286 unwind label %320

286:                                              ; preds = %281
  %287 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3MIR5ParamESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.0158244) #7
  call void @_ZN3MIR5ParamC2EOS0_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(48) %287) #7
  invoke void @_ZN12_GLOBAL__N_115param_to_rvalueEN3MIR5ParamE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::RValue") align 8 %173, ptr noundef nonnull %35)
          to label %288 unwind label %327

288:                                              ; preds = %286
  invoke void @_ZN3MIR9Statement11make_AssignENS0_11Data_AssignE(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Statement") align 8 %33, ptr noundef nonnull %34)
          to label %289 unwind label %322

289:                                              ; preds = %288
  %290 = add i64 %.0158244, %180
  %291 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %290) #7
  %292 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN3MIR9StatementaSEOS0_(ptr noundef nonnull align 8 dereferenceable(152) %291, ptr noundef nonnull align 8 dereferenceable(152) %33)
          to label %293 unwind label %324

293:                                              ; preds = %289
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %33) #7
  call void @_ZN3MIR9Statement11Data_AssignD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %34) #7
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %33) #7
  %294 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %295 unwind label %330

295:                                              ; preds = %293
  br i1 %294, label %296, label %332

296:                                              ; preds = %295
  %297 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %297, ptr noundef nonnull @__func__._Z28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %299 unwind label %330

299:                                              ; preds = %296
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %298, ptr noundef nonnull @.str.101)
          to label %301 unwind label %330

301:                                              ; preds = %299
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %300, i64 noundef %178)
          to label %303 unwind label %330

303:                                              ; preds = %301
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef nonnull @.str.37)
          to label %305 unwind label %330

305:                                              ; preds = %303
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %304, i64 noundef %290)
          to label %307 unwind label %330

307:                                              ; preds = %305
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef nonnull @.str.23)
          to label %309 unwind label %330

309:                                              ; preds = %307
  %310 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNSt6vectorIN3MIR9StatementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %290) #7
  %311 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3MIRlsERSoRKNS_9StatementE(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef nonnull align 8 dereferenceable(152) %310)
          to label %312 unwind label %330

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

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

316:                                              ; preds = %.lr.ph245
  %317 = landingpad { ptr, i32 }
          cleanup
  br label %337

318:                                              ; preds = %280, %277
  %319 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  br label %336

320:                                              ; preds = %281
  %321 = landingpad { ptr, i32 }
          cleanup
  br label %329

322:                                              ; preds = %288
  %323 = landingpad { ptr, i32 }
          cleanup
  br label %326

324:                                              ; preds = %289
  %325 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR9StatementD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %33) #7
  br label %326

326:                                              ; preds = %322, %324
  %.pn189 = phi { ptr, i32 } [ %325, %324 ], [ %323, %322 ]
  call void @_ZN3MIR9Statement11Data_AssignD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %34) #7
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  br label %329

327:                                              ; preds = %286
  %328 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %329

329:                                              ; preds = %326, %327, %320
  %.pn189.pn.pn = phi { ptr, i32 } [ %328, %327 ], [ %.pn189, %326 ], [ %321, %320 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %33) #7
  br label %336

330:                                              ; preds = %314, %312, %309, %307, %305, %303, %301, %299, %296, %293
  %331 = landingpad { ptr, i32 }
          cleanup
  br label %336

332:                                              ; preds = %314, %295
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  %333 = add nuw i64 %.0158244, 1
  %334 = call noundef i64 @_ZNKSt6vectorIN3MIR5ParamESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %335 = icmp ult i64 %333, %334
  br i1 %335, label %.lr.ph245, label %._crit_edge246, !llvm.loop !37

336:                                              ; preds = %330, %329, %318
  %.pn193 = phi { ptr, i32 } [ %331, %330 ], [ %.pn189.pn.pn, %329 ], [ %319, %318 ]
  call void @_ZN3HIR7TypeRefD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br label %337

337:                                              ; preds = %336, %316
  %.pn193.pn = phi { ptr, i32 } [ %.pn193, %336 ], [ %317, %316 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  br label %358

338:                                              ; preds = %._crit_edge246
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #7
  %339 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %339, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #7
  %340 = call ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  store ptr %340, ptr %37, align 8
  %341 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEESB_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  br i1 %341, label %.lr.ph248, label %._crit_edge249

._crit_edge249:                                   ; preds = %352, %338
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  br label %355

.lr.ph248:                                        ; preds = %338, %352
  %342 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  %343 = getelementptr inbounds i8, ptr %342, i64 8
  %344 = load i64, ptr %343, align 8, !tbaa !28
  %345 = icmp eq i64 %344, %178
  br i1 %345, label %346, label %352

346:                                              ; preds = %.lr.ph248
  %347 = getelementptr inbounds i8, ptr %342, i64 16
  %348 = load i64, ptr %347, align 8, !tbaa !36
  %349 = icmp ugt i64 %348, %180
  br i1 %349, label %350, label %352

350:                                              ; preds = %346
  %351 = add i64 %348, %247
  store i64 %351, ptr %347, align 8, !tbaa !36
  br label %352

352:                                              ; preds = %350, %346, %.lr.ph248
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  %354 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEESB_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  br i1 %354, label %.lr.ph248, label %._crit_edge249

355:                                              ; preds = %._crit_edge249, %._crit_edge246
  call void @_ZNSt6vectorIN3MIR5ParamESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %357 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS2_8FunctionEE9PotentialEESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br i1 %357, label %175, label %._crit_edge252

358:                                              ; preds = %260, %262, %337, %273, %227, %237, %243
  %.pn193.pn.pn.pn.pn = phi { ptr, i32 } [ %244, %243 ], [ %228, %227 ], [ %.pn183, %237 ], [ %263, %262 ], [ %261, %260 ], [ %.pn193.pn, %337 ], [ %274, %273 ]
  call void @_ZNSt6vectorIN3MIR5ParamESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  br label %359

359:                                              ; preds = %358, %206
  %.pn193.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn193.pn.pn.pn.pn, %358 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %364

360:                                              ; preds = %._crit_edge252
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #7
  store i8 1, ptr %3, align 1, !tbaa !5
  br label %363

361:                                              ; preds = %._crit_edge252
  %362 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #7
  br label %364

363:                                              ; preds = %162, %._crit_edge243, %360
  %.0 = phi i1 [ true, %360 ], [ false, %._crit_edge243 ], [ false, %162 ]
  call void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  ret i1 %.0

364:                                              ; preds = %361, %359, %168, %157
  %.pn208.pn.pn = phi { ptr, i32 } [ %.pn208.pn, %157 ], [ %.pn193.pn.pn.pn.pn.pn, %359 ], [ %362, %361 ], [ %.pn, %168 ]
  call void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %365

365:                                              ; preds = %364, %48
  %.pn208.pn.pn.pn = phi { ptr, i32 } [ %.pn208.pn.pn, %364 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn208.pn.pn.pn

366:                                              ; preds = %231
  unreachable
}

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

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

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

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

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)) #6

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

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

; 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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_117visit_mir_lvaluesERN3MIR11TypeResolveERKNS0_8FunctionESt8functionIFbRKNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) 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 nonnull align 8 dereferenceable(144) ptr @_ZN3MIR9Statement9as_AssignEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #4 align 2

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

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

; 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 uwtable
declare hidden void @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR11TypeResolveERNS0_8FunctionESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_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 @"_ZNSt8functionIFvRSoEEC2IZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS4_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 hidden void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZSt9make_pairIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.563") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNKSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFbRKN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ28MIR_Optimise_SplitAggregatesRNS0_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 nounwind uwtable
declare hidden ptr @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13move_backwardIN9__gnu_cxx17__normal_iteratorIPN3MIR9StatementESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr, ptr, ptr) local_unnamed_addr #6

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3MIR11TypeResolve14get_param_typeERN3HIR7TypeRefERKNS_5ParamE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_115param_to_rvalueEN3MIR5ParamE(ptr dead_on_unwind noalias writable sret(%"class.MIR::RValue") align 8, ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt3mapIjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS0_8FunctionEE9PotentialSt4lessIjESaISt4pairIKjS5_EEED2Ev(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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 32}
!14 = !{!"_ZTSN3MIR6RValue16Data_EnumVariantE", !15, i64 0, !12, i64 32, !22, i64 40}
!15 = !{!"_ZTSN3HIR11GenericPathE", !16, i64 0, !18, i64 8}
!16 = !{!"_ZTSN3HIR10SimplePathE", !17, i64 0}
!17 = !{!"_ZTS10ThinVectorI8RcStringE", !10, i64 0}
!18 = !{!"_ZTSN3HIR10PathParamsE", !19, i64 0, !20, i64 8, !21, i64 16}
!19 = !{!"_ZTS10ThinVectorIN3HIR11LifetimeRefEE", !10, i64 0}
!20 = !{!"_ZTS10ThinVectorIN3HIR7TypeRefEE", !10, i64 0}
!21 = !{!"_ZTS10ThinVectorIN3HIR12ConstGenericEE", !10, i64 0}
!22 = !{!"_ZTSSt6vectorIN3MIR5ParamESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN3MIR5ParamESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN3MIR5ParamESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3MIR5ParamESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!29, !31, i64 8}
!29 = !{!"_ZTSSt4pairIKjZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS1_8FunctionEE9PotentialE", !12, i64 0, !30, i64 8}
!30 = !{!"_ZTSZ28MIR_Optimise_SplitAggregatesRN3MIR11TypeResolveERNS_8FunctionEE9Potential", !31, i64 0, !31, i64 8, !12, i64 16, !6, i64 20, !12, i64 24, !32, i64 32}
!31 = !{!"long", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIjSaIjEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{!29, !31, i64 16}
!37 = distinct !{!37, !27}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass