; LLVM IR from thepowersgang/mrustc :: src/mir/optimise.ll (Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_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.408 = type { i8 }
%class.anon.410 = type { 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::allocator.190" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"struct.MIR::ValueLifetimes" = type { %"class.std::vector.116", %"class.std::vector.411" }
%"class.std::vector.116" = type { %"struct.std::_Vector_base.117" }
%"struct.std::_Vector_base.117" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.411" = type { %"struct.std::_Vector_base.412" }
%"struct.std::_Vector_base.412" = type { %"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.387" = type { %"class.std::_Rb_tree.388" }
%"class.std::_Rb_tree.388" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%class.anon.416 = 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.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 }

@g_debug_indent_level = external global i32, align 4
@__func__._Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [30 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [2 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: 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) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) #4 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.408, align 1
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.410, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.25", align 8
  %15 = alloca %"class.std::allocator.190", align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca %"struct.MIR::ValueLifetimes", align 8
  %25 = alloca %"class.std::vector.411", align 8
  %26 = alloca %"class.std::map.387", align 8
  %27 = alloca %"class.std::vector.25", align 8
  %28 = alloca %"class.std::allocator.190", align 1
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::_Bit_reference", align 8
  %31 = alloca %"struct.std::_Bit_reference", align 8
  %32 = alloca %"struct.std::_Bit_reference", align 8
  %33 = alloca i32, align 4
  %34 = alloca %"struct.std::_Bit_reference", align 8
  %35 = alloca %"struct.std::_Bit_reference", align 8
  %36 = alloca %"class.std::function.267", align 8
  %37 = alloca %class.anon.416, 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
  %38 = call noundef zeroext i1 @_Z13debug_enabledv()
  %39 = zext i1 %38 to i64
  %40 = select i1 %38, ptr @__func__._Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS4_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
  %41 = getelementptr inbounds %class.anon.410, ptr %11, i32 0, i32 0
  store ptr %6, ptr %41, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZ29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS4_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 %40, ptr noundef %8, ptr noundef %10)
          to label %42 unwind label %55

42:                                               ; 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 40, ptr %14) #7
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.MIR::Function", ptr %43, i32 0, i32 0
  %45 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %46 unwind label %59

46:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %156, %46
  %48 = load i32, ptr %17, align 4, !tbaa !11
  %49 = zext i32 %48 to i64
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.MIR::Function", ptr %50, i32 0, i32 0
  %52 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %53 = icmp ult i64 %49, %52
  br i1 %53, label %63, label %54

54:                                               ; preds = %47
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %160

55:                                               ; preds = %2
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %12, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, 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 %390

59:                                               ; preds = %42
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %12, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  br label %389

63:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %64 = load i32, ptr %17, align 4, !tbaa !11
  %65 = zext i32 %64 to i64
  %66 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %65)
          to label %67 unwind label %74

67:                                               ; preds = %63
  %68 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %69 = extractvalue { ptr, i64 } %66, 0
  store ptr %69, ptr %68, align 8
  %70 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %71 = extractvalue { ptr, i64 } %66, 1
  store i64 %71, ptr %70, align 8
  %72 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br i1 %72, label %73, label %78

73:                                               ; preds = %67
  br label %156

74:                                               ; preds = %63
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %159

78:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %79 = load i32, ptr %17, align 4, !tbaa !11
  %80 = add i32 %79, 1
  store i32 %80, ptr %20, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %151, %78
  %82 = load i32, ptr %20, align 4, !tbaa !11
  %83 = zext i32 %82 to i64
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.MIR::Function", ptr %84, i32 0, i32 0
  %86 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = icmp ult i64 %83, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %81
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %155

89:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %90 = load i32, ptr %20, align 4, !tbaa !11
  %91 = zext i32 %90 to i64
  %92 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %91)
          to label %93 unwind label %100

93:                                               ; preds = %89
  %94 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %95 = extractvalue { ptr, i64 } %92, 0
  store ptr %95, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %97 = extractvalue { ptr, i64 } %92, 1
  store i64 %97, ptr %96, align 8
  %98 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br i1 %98, label %99, label %104

99:                                               ; preds = %93
  br label %151

100:                                              ; preds = %89
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %12, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %154

104:                                              ; preds = %93
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.MIR::Function", ptr %105, i32 0, i32 0
  %107 = load i32, ptr %20, align 4, !tbaa !11
  %108 = zext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108) #7
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.MIR::Function", ptr %110, i32 0, i32 0
  %112 = load i32, ptr %17, align 4, !tbaa !11
  %113 = zext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #7
  %115 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 8 dereferenceable(8) %114)
          to label %116 unwind label %138

116:                                              ; preds = %104
  br i1 %115, label %117, label %150

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %118 = load i32, ptr %20, align 4, !tbaa !11
  %119 = zext i32 %118 to i64
  %120 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %119)
          to label %121 unwind label %142

121:                                              ; preds = %117
  %122 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %123 = extractvalue { ptr, i64 } %120, 0
  store ptr %123, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %125 = extractvalue { ptr, i64 } %120, 1
  store i64 %125, ptr %124, align 8
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %22, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %127 = load i32, ptr %17, align 4, !tbaa !11
  %128 = zext i32 %127 to i64
  %129 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %128)
          to label %130 unwind label %146

130:                                              ; preds = %121
  %131 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %132 = extractvalue { ptr, i64 } %129, 0
  store ptr %132, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %134 = extractvalue { ptr, i64 } %129, 1
  store i64 %134, ptr %133, align 8
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  %136 = load i32, ptr %16, align 4, !tbaa !11
  %137 = add i32 %136, 1
  store i32 %137, ptr %16, align 4, !tbaa !11
  br label %150

138:                                              ; preds = %104
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  br label %154

142:                                              ; preds = %117
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %154

146:                                              ; preds = %121
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %154

150:                                              ; preds = %130, %116
  br label %151

151:                                              ; preds = %150, %99
  %152 = load i32, ptr %20, align 4, !tbaa !11
  %153 = add i32 %152, 1
  store i32 %153, ptr %20, align 4, !tbaa !11
  br label %81, !llvm.loop !13

154:                                              ; preds = %146, %142, %138, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %159

155:                                              ; preds = %88
  br label %156

156:                                              ; preds = %155, %73
  %157 = load i32, ptr %17, align 4, !tbaa !11
  %158 = add i32 %157, 1
  store i32 %158, ptr %17, align 4, !tbaa !11
  br label %47, !llvm.loop !15

159:                                              ; preds = %154, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %388

160:                                              ; preds = %54
  %161 = load i32, ptr %16, align 4, !tbaa !11
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %160
  store i1 false, ptr %3, align 1
  store i32 1, ptr %18, align 4
  br label %165

164:                                              ; preds = %160
  store i32 0, ptr %18, align 4
  br label %165

165:                                              ; preds = %164, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %166 = load i32, ptr %18, align 4
  switch i32 %166, label %386 [
    i32 0, label %167
  ]

167:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #7
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_Z23MIR_Helper_GetLifetimesRN3MIR11TypeResolveERKNS_8FunctionEbPKSt6vectorIbSaIbEE(ptr dead_on_unwind writable sret(%"struct.MIR::ValueLifetimes") align 8 %24, ptr noundef nonnull align 8 dereferenceable(120) %168, ptr noundef nonnull align 8 dereferenceable(96) %169, i1 noundef zeroext true, ptr noundef %14)
          to label %170 unwind label %184

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  %171 = getelementptr inbounds %"struct.MIR::ValueLifetimes", ptr %24, i32 0, i32 1
  call void @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEC2EOS3_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %171) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #7
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #7
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %"class.MIR::Function", ptr %172, i32 0, i32 0
  %174 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %173) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %27, i64 noundef %174, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %175 unwind label %188

175:                                              ; preds = %170
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %176

176:                                              ; preds = %338, %175
  %177 = load i32, ptr %29, align 4, !tbaa !11
  %178 = zext i32 %177 to i64
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %"class.MIR::Function", ptr %179, i32 0, i32 0
  %181 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %180) #7
  %182 = icmp ult i64 %178, %181
  br i1 %182, label %192, label %183

183:                                              ; preds = %176
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %342

184:                                              ; preds = %167
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %12, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %13, align 4
  br label %385

188:                                              ; preds = %170
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  br label %384

192:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %193 = load i32, ptr %29, align 4, !tbaa !11
  %194 = zext i32 %193 to i64
  %195 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %194)
          to label %196 unwind label %204

196:                                              ; preds = %192
  %197 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %198 = extractvalue { ptr, i64 } %195, 0
  store ptr %198, ptr %197, align 8
  %199 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %200 = extractvalue { ptr, i64 } %195, 1
  store i64 %200, ptr %199, align 8
  %201 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  %202 = xor i1 %201, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br i1 %202, label %203, label %208

203:                                              ; preds = %196
  br label %338

204:                                              ; preds = %192
  %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
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %341

208:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %209 = load i32, ptr %29, align 4, !tbaa !11
  %210 = zext i32 %209 to i64
  %211 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %27, i64 noundef %210)
          to label %212 unwind label %219

212:                                              ; preds = %208
  %213 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %214 = extractvalue { ptr, i64 } %211, 0
  store ptr %214, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %216 = extractvalue { ptr, i64 } %211, 1
  store i64 %216, ptr %215, align 8
  %217 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  br i1 %217, label %218, label %223

218:                                              ; preds = %212
  br label %338

219:                                              ; preds = %208
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %12, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  br label %341

223:                                              ; preds = %212
  %224 = load i32, ptr %29, align 4, !tbaa !11
  %225 = zext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %225) #7
  %227 = invoke noundef zeroext i1 @_ZNK3MIR13ValueLifetime7is_usedEv(ptr noundef nonnull align 8 dereferenceable(40) %226)
          to label %228 unwind label %230

228:                                              ; preds = %223
  br i1 %227, label %234, label %229

229:                                              ; preds = %228
  br label %338

230:                                              ; preds = %223
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %12, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %13, align 4
  br label %341

234:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %235 = load i32, ptr %29, align 4, !tbaa !11
  %236 = zext i32 %235 to i64
  %237 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %27, i64 noundef %236)
          to label %238 unwind label %254

238:                                              ; preds = %234
  %239 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %240 = extractvalue { ptr, i64 } %237, 0
  store ptr %240, ptr %239, align 8
  %241 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %242 = extractvalue { ptr, i64 } %237, 1
  store i64 %242, ptr %241, align 8
  %243 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %32, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %244 = load i32, ptr %29, align 4, !tbaa !11
  %245 = add i32 %244, 1
  store i32 %245, ptr %33, align 4, !tbaa !11
  br label %246

246:                                              ; preds = %329, %238
  %247 = load i32, ptr %33, align 4, !tbaa !11
  %248 = zext i32 %247 to i64
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %"class.MIR::Function", ptr %249, i32 0, i32 0
  %251 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %250) #7
  %252 = icmp ult i64 %248, %251
  br i1 %252, label %258, label %253

253:                                              ; preds = %246
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %337

254:                                              ; preds = %234
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %12, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  br label %341

258:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  %259 = load i32, ptr %33, align 4, !tbaa !11
  %260 = zext i32 %259 to i64
  %261 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %260)
          to label %262 unwind label %270

262:                                              ; preds = %258
  %263 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %264 = extractvalue { ptr, i64 } %261, 0
  store ptr %264, ptr %263, align 8
  %265 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %266 = extractvalue { ptr, i64 } %261, 1
  store i64 %266, ptr %265, align 8
  %267 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #7
  %268 = xor i1 %267, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  br i1 %268, label %269, label %274

269:                                              ; preds = %262
  br label %329

270:                                              ; preds = %258
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %12, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  br label %336

274:                                              ; preds = %262
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %"class.MIR::Function", ptr %275, i32 0, i32 0
  %277 = load i32, ptr %33, align 4, !tbaa !11
  %278 = zext i32 %277 to i64
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %276, i64 noundef %278) #7
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %"class.MIR::Function", ptr %280, i32 0, i32 0
  %282 = load i32, ptr %29, align 4, !tbaa !11
  %283 = zext i32 %282 to i64
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %281, i64 noundef %283) #7
  %285 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefneERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef nonnull align 8 dereferenceable(8) %284)
          to label %286 unwind label %288

286:                                              ; preds = %274
  br i1 %285, label %287, label %292

287:                                              ; preds = %286
  br label %329

288:                                              ; preds = %316, %309, %299, %292, %274
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %12, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %13, align 4
  br label %336

292:                                              ; preds = %286
  %293 = load i32, ptr %33, align 4, !tbaa !11
  %294 = zext i32 %293 to i64
  %295 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %294) #7
  %296 = invoke noundef zeroext i1 @_ZNK3MIR13ValueLifetime7is_usedEv(ptr noundef nonnull align 8 dereferenceable(40) %295)
          to label %297 unwind label %288

297:                                              ; preds = %292
  br i1 %296, label %299, label %298

298:                                              ; preds = %297
  br label %329

299:                                              ; preds = %297
  %300 = load i32, ptr %29, align 4, !tbaa !11
  %301 = zext i32 %300 to i64
  %302 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %301) #7
  %303 = load i32, ptr %33, align 4, !tbaa !11
  %304 = zext i32 %303 to i64
  %305 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %304) #7
  %306 = invoke noundef zeroext i1 @_ZNK3MIR13ValueLifetime8overlapsERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %302, ptr noundef nonnull align 8 dereferenceable(40) %305)
          to label %307 unwind label %288

307:                                              ; preds = %299
  br i1 %306, label %308, label %309

308:                                              ; preds = %307
  br label %329

309:                                              ; preds = %307
  %310 = load i32, ptr %29, align 4, !tbaa !11
  %311 = zext i32 %310 to i64
  %312 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %311) #7
  %313 = load i32, ptr %33, align 4, !tbaa !11
  %314 = zext i32 %313 to i64
  %315 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %314) #7
  invoke void @_ZN3MIR13ValueLifetime5unifyERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %312, ptr noundef nonnull align 8 dereferenceable(40) %315)
          to label %316 unwind label %288

316:                                              ; preds = %309
  %317 = load i32, ptr %29, align 4, !tbaa !11
  %318 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %319 unwind label %288

319:                                              ; preds = %316
  store i32 %317, ptr %318, align 4, !tbaa !11
  store i8 1, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %320 = load i32, ptr %33, align 4, !tbaa !11
  %321 = zext i32 %320 to i64
  %322 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %27, i64 noundef %321)
          to label %323 unwind label %332

323:                                              ; preds = %319
  %324 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %325 = extractvalue { ptr, i64 } %322, 0
  store ptr %325, ptr %324, align 8
  %326 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %327 = extractvalue { ptr, i64 } %322, 1
  store i64 %327, ptr %326, align 8
  %328 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %35, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %329

329:                                              ; preds = %323, %308, %298, %287, %269
  %330 = load i32, ptr %33, align 4, !tbaa !11
  %331 = add i32 %330, 1
  store i32 %331, ptr %33, align 4, !tbaa !11
  br label %246, !llvm.loop !16

332:                                              ; preds = %319
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %12, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %336

336:                                              ; preds = %332, %288, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %341

337:                                              ; preds = %253
  br label %338

338:                                              ; preds = %337, %229, %218, %203
  %339 = load i32, ptr %29, align 4, !tbaa !11
  %340 = add i32 %339, 1
  store i32 %340, ptr %29, align 4, !tbaa !11
  br label %176, !llvm.loop !17

341:                                              ; preds = %336, %254, %230, %219, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %383

342:                                              ; preds = %183
  %343 = load i8, ptr %6, align 1, !tbaa !9, !range !18, !noundef !19
  %344 = trunc i8 %343 to i1
  br i1 %344, label %345, label %380

345:                                              ; preds = %342
  br label %346

346:                                              ; preds = %345
  %347 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %348 unwind label %363

348:                                              ; preds = %346
  br i1 %347, label %349, label %367

349:                                              ; preds = %348
  %350 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !11
  %351 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %350, ptr noundef @__func__._Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %352 unwind label %363

352:                                              ; preds = %349
  %353 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %351, ptr noundef @.str.74)
          to label %354 unwind label %363

354:                                              ; preds = %352
  %355 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIjjSt4lessIjEERSoS2_RKSt3mapIT_T0_T1_SaISt4pairIKS4_S5_EEE(ptr noundef nonnull align 8 dereferenceable(8) %353, ptr noundef nonnull align 8 dereferenceable(48) %26)
          to label %356 unwind label %363

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

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

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

362:                                              ; preds = %360
  br label %367

363:                                              ; preds = %360, %358, %356, %354, %352, %349, %346
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %12, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %13, align 4
  br label %383

367:                                              ; preds = %362, %348
  br label %368

368:                                              ; preds = %367
  br label %369

369:                                              ; preds = %368
  %370 = load ptr, ptr %4, align 8, !tbaa !5
  %371 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  %372 = getelementptr inbounds %class.anon.416, ptr %37, i32 0, i32 0
  store ptr %26, ptr %372, align 8, !tbaa !5
  %373 = getelementptr inbounds %class.anon.416, ptr %37, i32 0, i32 1
  %374 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %374, ptr %373, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ29MIR_Optimise_UnifyTemporariesRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(16) %37) #7
  invoke void @_ZN12_GLOBAL__N_121visit_mir_lvalues_mutERN3MIR11TypeResolveERNS0_8FunctionESt8functionIFbRNS0_6LValueENS_8ValUsageEEE(ptr noundef nonnull align 8 dereferenceable(120) %370, ptr noundef nonnull align 8 dereferenceable(96) %371, ptr noundef %36)
          to label %375 unwind label %376

375:                                              ; preds = %369
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  br label %380

376:                                              ; preds = %369
  %377 = landingpad { ptr, i32 }
          cleanup
  %378 = extractvalue { ptr, i32 } %377, 0
  store ptr %378, ptr %12, align 8
  %379 = extractvalue { ptr, i32 } %377, 1
  store i32 %379, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  br label %383

380:                                              ; preds = %375, %342
  %381 = load i8, ptr %6, align 1, !tbaa !9, !range !18, !noundef !19
  %382 = trunc i8 %381 to i1
  store i1 %382, ptr %3, align 1
  store i32 1, ptr %18, align 4
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  call void @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @_ZN3MIR14ValueLifetimesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #7
  br label %386

383:                                              ; preds = %376, %363, %341
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #7
  br label %384

384:                                              ; preds = %383, %188
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  call void @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @_ZN3MIR14ValueLifetimesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #7
  br label %385

385:                                              ; preds = %384, %184
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #7
  br label %388

386:                                              ; preds = %380, %165
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #7
  call void @llvm.lifetime.end.p0(i64 40, 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
  %387 = load i1, ptr %3, align 1
  ret i1 %387

388:                                              ; preds = %385, %159
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #7
  br label %389

389:                                              ; preds = %388, %59
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  br label %390

390:                                              ; preds = %389, %55
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  br label %391

391:                                              ; preds = %390
  %392 = load ptr, ptr %12, align 8
  %393 = load i32, ptr %13, align 4
  %394 = insertvalue { ptr, i32 } poison, ptr %392, 0
  %395 = insertvalue { ptr, i32 } %394, i32 %393, 1
  resume { ptr, i32 } %395
}

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

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

declare noundef zeroext i1 @_ZNK3HIR7TypeRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

declare void @_Z23MIR_Helper_GetLifetimesRN3MIR11TypeResolveERKNS_8FunctionEbPKSt6vectorIbSaIbEE(ptr dead_on_unwind writable sret(%"struct.MIR::ValueLifetimes") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR13ValueLifetime8overlapsERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { 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 #4 = { 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 #5 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{i8 0, i8 2}
!19 = !{}


; 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.408 = type { i8 }
%class.anon.410 = type { 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::allocator.190" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"struct.MIR::ValueLifetimes" = type { %"class.std::vector.116", %"class.std::vector.411" }
%"class.std::vector.116" = type { %"struct.std::_Vector_base.117" }
%"struct.std::_Vector_base.117" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.411" = type { %"struct.std::_Vector_base.412" }
%"struct.std::_Vector_base.412" = type { %"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::ValueLifetime, std::allocator<MIR::ValueLifetime>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.387" = type { %"class.std::_Rb_tree.388" }
%"class.std::_Rb_tree.388" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::function.267" = type { %"class.std::_Function_base", ptr }
%class.anon.416 = type { ptr, ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__func__._Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE = external hidden unnamed_addr constant [30 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [2 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: 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 #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) local_unnamed_addr #4 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.408, align 1
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %class.anon.410, align 8
  %9 = alloca %"class.std::vector.25", align 8
  %10 = alloca %"class.std::allocator.190", align 1
  %11 = alloca %"struct.std::_Bit_reference", align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.MIR::ValueLifetimes", align 8
  %16 = alloca %"class.std::vector.411", align 8
  %17 = alloca %"class.std::map.387", align 8
  %18 = alloca %"class.std::vector.25", align 8
  %19 = alloca %"class.std::allocator.190", align 1
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::_Bit_reference", align 8
  %25 = alloca %"struct.std::_Bit_reference", align 8
  %26 = alloca %"class.std::function.267", align 8
  %27 = alloca %class.anon.416, 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
  %28 = tail call noundef zeroext i1 @_Z13debug_enabledv()
  %29 = select i1 %28, ptr @__func__._Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE, ptr null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @"_ZNSt8functionIFvRSoEEC2IZ29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS4_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 @"_ZNSt8functionIFvRSoEEC2IZ29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS4_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 %29, ptr noundef nonnull %5, ptr noundef nonnull %7)
          to label %30 unwind label %38

30:                                               ; 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 40, ptr nonnull %9) #7
  %31 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %32 unwind label %40

32:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  %33 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %.not101 = icmp eq i64 %33, 0
  br i1 %.not101, label %._crit_edge.thread, label %.lr.ph90

.lr.ph90:                                         ; preds = %32
  %34 = getelementptr inbounds i8, ptr %11, i64 8
  %35 = getelementptr inbounds i8, ptr %12, i64 8
  %36 = getelementptr inbounds i8, ptr %13, i64 8
  %37 = getelementptr inbounds i8, ptr %14, i64 8
  br label %42

._crit_edge:                                      ; preds = %.loopexit
  %.not = icmp eq i32 %.3, 0
  br i1 %.not, label %._crit_edge.thread, label %90

38:                                               ; preds = %2
  %39 = 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 %229

40:                                               ; preds = %30
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  br label %228

42:                                               ; preds = %.lr.ph90, %.loopexit
  %43 = phi i64 [ 0, %.lr.ph90 ], [ %.pre106, %.loopexit ]
  %.04489 = phi i32 [ 0, %.lr.ph90 ], [ %.pre104, %.loopexit ]
  %.04588 = phi i32 [ 0, %.lr.ph90 ], [ %.3, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %44 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %43)
          to label %45 unwind label %51

45:                                               ; preds = %42
  %46 = extractvalue { ptr, i64 } %44, 0
  store ptr %46, ptr %11, align 8
  %47 = extractvalue { ptr, i64 } %44, 1
  store i64 %47, ptr %34, align 8
  %48 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  %.pre104 = add i32 %.04489, 1
  %.pre106 = zext i32 %.pre104 to i64
  br i1 %48, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %45
  %49 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %50 = icmp ugt i64 %49, %.pre106
  br i1 %50, label %.lr.ph, label %.loopexit

51:                                               ; preds = %42
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %227

.lr.ph:                                           ; preds = %.preheader, %84
  %53 = phi i64 [ %85, %84 ], [ %.pre106, %.preheader ]
  %.04287 = phi i32 [ %.042, %84 ], [ %.pre104, %.preheader ]
  %.186 = phi i32 [ %.2, %84 ], [ %.04588, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %54 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %53)
          to label %55 unwind label %59

55:                                               ; preds = %.lr.ph
  %56 = extractvalue { ptr, i64 } %54, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i64 } %54, 1
  store i64 %57, ptr %35, align 8
  %58 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br i1 %58, label %84, label %61

59:                                               ; preds = %.lr.ph
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %227

61:                                               ; preds = %55
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %53) #7
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %43) #7
  %64 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %65 unwind label %78

65:                                               ; preds = %61
  br i1 %64, label %66, label %84

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %67 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %53)
          to label %68 unwind label %80

68:                                               ; preds = %66
  %69 = extractvalue { ptr, i64 } %67, 0
  store ptr %69, ptr %13, align 8
  %70 = extractvalue { ptr, i64 } %67, 1
  store i64 %70, ptr %36, align 8
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %72 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %43)
          to label %73 unwind label %82

73:                                               ; preds = %68
  %74 = extractvalue { ptr, i64 } %72, 0
  store ptr %74, ptr %14, align 8
  %75 = extractvalue { ptr, i64 } %72, 1
  store i64 %75, ptr %37, align 8
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  %77 = add i32 %.186, 1
  br label %84

78:                                               ; preds = %61
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %227

80:                                               ; preds = %66
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %227

82:                                               ; preds = %68
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %227

84:                                               ; preds = %65, %73, %55
  %.2 = phi i32 [ %.186, %55 ], [ %77, %73 ], [ %.186, %65 ]
  %.042 = add i32 %.04287, 1
  %85 = zext i32 %.042 to i64
  %86 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %87 = icmp ugt i64 %86, %85
  br i1 %87, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %84, %45, %.preheader
  %.3 = phi i32 [ %.04588, %.preheader ], [ %.04588, %45 ], [ %.2, %84 ]
  %88 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %89 = icmp ugt i64 %88, %.pre106
  br i1 %89, label %42, label %._crit_edge, !llvm.loop !13

90:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #7
  invoke void @_Z23MIR_Helper_GetLifetimesRN3MIR11TypeResolveERKNS_8FunctionEbPKSt6vectorIbSaIbEE(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::ValueLifetimes") align 8 %15, ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(96) %1, i1 noundef zeroext true, ptr noundef nonnull %9)
          to label %91 unwind label %103

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  %92 = getelementptr inbounds i8, ptr %15, i64 24
  call void @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEC2EOS3_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %92) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %17) #7
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #7
  %93 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %93, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %94 unwind label %105

94:                                               ; preds = %91
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  %95 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %.not102 = icmp eq i64 %95, 0
  br i1 %.not102, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %94
  %96 = getelementptr inbounds i8, ptr %20, i64 8
  %97 = getelementptr inbounds i8, ptr %21, i64 8
  %98 = getelementptr inbounds i8, ptr %22, i64 8
  %99 = getelementptr inbounds i8, ptr %24, i64 8
  %100 = getelementptr inbounds i8, ptr %25, i64 8
  br label %107

._crit_edge100:                                   ; preds = %195, %94
  %101 = load i8, ptr %3, align 1, !tbaa !5, !range !14, !noundef !15
  %102 = trunc nuw i8 %101 to i1
  br i1 %102, label %200, label %223

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

105:                                              ; preds = %91
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  br label %225

107:                                              ; preds = %.lr.ph99, %195
  %108 = phi i64 [ 0, %.lr.ph99 ], [ %197, %195 ]
  %.096 = phi i32 [ 0, %.lr.ph99 ], [ %196, %195 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  %109 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %108)
          to label %110 unwind label %114

110:                                              ; preds = %107
  %111 = extractvalue { ptr, i64 } %109, 0
  store ptr %111, ptr %20, align 8
  %112 = extractvalue { ptr, i64 } %109, 1
  store i64 %112, ptr %96, align 8
  %113 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br i1 %113, label %116, label %195

114:                                              ; preds = %107
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br label %224

116:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %117 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %108)
          to label %118 unwind label %122

118:                                              ; preds = %116
  %119 = extractvalue { ptr, i64 } %117, 0
  store ptr %119, ptr %21, align 8
  %120 = extractvalue { ptr, i64 } %117, 1
  store i64 %120, ptr %97, align 8
  %121 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br i1 %121, label %195, label %124

122:                                              ; preds = %116
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %224

124:                                              ; preds = %118
  %125 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %108) #7
  %126 = invoke noundef zeroext i1 @_ZNK3MIR13ValueLifetime7is_usedEv(ptr noundef nonnull align 8 dereferenceable(40) %125)
          to label %127 unwind label %128

127:                                              ; preds = %124
  br i1 %126, label %130, label %195

128:                                              ; preds = %124
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %224

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  %131 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %108)
          to label %132 unwind label %139

132:                                              ; preds = %130
  %133 = extractvalue { ptr, i64 } %131, 0
  store ptr %133, ptr %22, align 8
  %134 = extractvalue { ptr, i64 } %131, 1
  store i64 %134, ptr %98, align 8
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %22, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %storemerge92 = add i32 %.096, 1
  store i32 %storemerge92, ptr %23, align 4, !tbaa !16
  %136 = zext i32 %storemerge92 to i64
  %137 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %138 = icmp ugt i64 %137, %136
  br i1 %138, label %.lr.ph94, label %._crit_edge95

._crit_edge95:                                    ; preds = %187, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  br label %195

139:                                              ; preds = %130
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  br label %224

.lr.ph94:                                         ; preds = %132, %187
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %141 = load i32, ptr %23, align 4, !tbaa !16
  %142 = zext i32 %141 to i64
  %143 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %142)
          to label %144 unwind label %148

144:                                              ; preds = %.lr.ph94
  %145 = extractvalue { ptr, i64 } %143, 0
  store ptr %145, ptr %24, align 8
  %146 = extractvalue { ptr, i64 } %143, 1
  store i64 %146, ptr %99, align 8
  %147 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br i1 %147, label %150, label %187

148:                                              ; preds = %.lr.ph94
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  br label %194

150:                                              ; preds = %144
  %151 = load i32, ptr %23, align 4, !tbaa !16
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %152) #7
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIN3HIR7TypeRefESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %108) #7
  %155 = invoke noundef zeroext i1 @_ZNK3HIR7TypeRefneERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull align 8 dereferenceable(8) %154)
          to label %156 unwind label %157

156:                                              ; preds = %150
  br i1 %155, label %187, label %159

157:                                              ; preds = %177, %172, %165, %159, %150
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %194

159:                                              ; preds = %156
  %160 = load i32, ptr %23, align 4, !tbaa !16
  %161 = zext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %161) #7
  %163 = invoke noundef zeroext i1 @_ZNK3MIR13ValueLifetime7is_usedEv(ptr noundef nonnull align 8 dereferenceable(40) %162)
          to label %164 unwind label %157

164:                                              ; preds = %159
  br i1 %163, label %165, label %187

165:                                              ; preds = %164
  %166 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %108) #7
  %167 = load i32, ptr %23, align 4, !tbaa !16
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %168) #7
  %170 = invoke noundef zeroext i1 @_ZNK3MIR13ValueLifetime8overlapsERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %166, ptr noundef nonnull align 8 dereferenceable(40) %169)
          to label %171 unwind label %157

171:                                              ; preds = %165
  br i1 %170, label %187, label %172

172:                                              ; preds = %171
  %173 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %108) #7
  %174 = load i32, ptr %23, align 4, !tbaa !16
  %175 = zext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %175) #7
  invoke void @_ZN3MIR13ValueLifetime5unifyERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %173, ptr noundef nonnull align 8 dereferenceable(40) %176)
          to label %177 unwind label %157

177:                                              ; preds = %172
  %178 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %179 unwind label %157

179:                                              ; preds = %177
  store i32 %.096, ptr %178, align 4, !tbaa !16
  store i8 1, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  %180 = load i32, ptr %23, align 4, !tbaa !16
  %181 = zext i32 %180 to i64
  %182 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %181)
          to label %183 unwind label %192

183:                                              ; preds = %179
  %184 = extractvalue { ptr, i64 } %182, 0
  store ptr %184, ptr %25, align 8
  %185 = extractvalue { ptr, i64 } %182, 1
  store i64 %185, ptr %100, align 8
  %186 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %25, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  br label %187

187:                                              ; preds = %171, %164, %156, %144, %183
  %188 = load i32, ptr %23, align 4, !tbaa !16
  %storemerge = add i32 %188, 1
  store i32 %storemerge, ptr %23, align 4, !tbaa !16
  %189 = zext i32 %storemerge to i64
  %190 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %191 = icmp ugt i64 %190, %189
  br i1 %191, label %.lr.ph94, label %._crit_edge95, !llvm.loop !18

192:                                              ; preds = %179
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  br label %194

194:                                              ; preds = %192, %157, %148
  %.pn = phi { ptr, i32 } [ %193, %192 ], [ %158, %157 ], [ %149, %148 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  br label %224

195:                                              ; preds = %127, %118, %110, %._crit_edge95
  %196 = add i32 %.096, 1
  %197 = zext i32 %196 to i64
  %198 = call noundef i64 @_ZNKSt6vectorIN3HIR7TypeRefESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %199 = icmp ugt i64 %198, %197
  br i1 %199, label %107, label %._crit_edge100, !llvm.loop !19

200:                                              ; preds = %._crit_edge100
  %201 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %202 unwind label %216

202:                                              ; preds = %200
  br i1 %201, label %203, label %218

203:                                              ; preds = %202
  %204 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !16
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %204, ptr noundef nonnull @__func__._Z29MIR_Optimise_UnifyTemporariesRN3MIR11TypeResolveERNS_8FunctionE)
          to label %206 unwind label %216

206:                                              ; preds = %203
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull @.str.74)
          to label %208 unwind label %216

208:                                              ; preds = %206
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIjjSt4lessIjEERSoS2_RKSt3mapIT_T0_T1_SaISt4pairIKS4_S5_EEE(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %210 unwind label %216

210:                                              ; preds = %208
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef nonnull @.str.75)
          to label %212 unwind label %216

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %214 unwind label %216

214:                                              ; preds = %212
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %218 unwind label %216

216:                                              ; preds = %214, %212, %210, %208, %206, %203, %200
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %224

218:                                              ; preds = %214, %202
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  store ptr %17, ptr %27, align 8, !tbaa !9
  %219 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr %0, ptr %219, align 8, !tbaa !9
  call void @"_ZNSt8functionIFbRN3MIR6LValueEN12_GLOBAL__N_18ValUsageEEEC2IZ29MIR_Optimise_UnifyTemporariesRNS0_11TypeResolveERNS0_8FunctionEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(16) %27) #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 %26)
          to label %220 unwind label %221

220:                                              ; preds = %218
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  %.pre = load i8, ptr %3, align 1, !tbaa !5, !range !14
  %.pre103 = trunc nuw i8 %.pre to i1
  br label %223

221:                                              ; preds = %218
  %222 = 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 16, ptr nonnull %27) #7
  br label %224

223:                                              ; preds = %220, %._crit_edge100
  %.pre-phi = phi i1 [ %.pre103, %220 ], [ false, %._crit_edge100 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #7
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #7
  call void @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  call void @_ZN3MIR14ValueLifetimesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #7
  br label %._crit_edge.thread

224:                                              ; preds = %114, %122, %128, %139, %194, %221, %216
  %.pn.pn.pn = phi { ptr, i32 } [ %222, %221 ], [ %217, %216 ], [ %.pn, %194 ], [ %140, %139 ], [ %129, %128 ], [ %123, %122 ], [ %115, %114 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #7
  br label %225

225:                                              ; preds = %224, %105
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %224 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #7
  call void @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #7
  call void @_ZNSt6vectorIN3MIR13ValueLifetimeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  call void @_ZN3MIR14ValueLifetimesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #7
  br label %226

226:                                              ; preds = %225, %103
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %225 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #7
  br label %227

._crit_edge.thread:                               ; preds = %32, %._crit_edge, %223
  %.161 = phi i1 [ %.pre-phi, %223 ], [ false, %._crit_edge ], [ false, %32 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, 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 %.161

227:                                              ; preds = %51, %82, %80, %78, %59, %226
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %226 ], [ %52, %51 ], [ %83, %82 ], [ %81, %80 ], [ %79, %78 ], [ %60, %59 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %228

228:                                              ; preds = %227, %40
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %227 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @_ZN8TraceLogD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %229

229:                                              ; preds = %228, %38
  %.pn70.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn.pn, %228 ], [ %39, %38 ]
  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 } %.pn70.pn.pn.pn.pn
}

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

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

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

declare void @_Z23MIR_Helper_GetLifetimesRN3MIR11TypeResolveERKNS_8FunctionEbPKSt6vectorIbSaIbEE(ptr dead_on_unwind writable sret(%"struct.MIR::ValueLifetimes") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3MIR13ValueLifetime8overlapsERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { 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 #4 = { 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 #5 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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