; LLVM IR from facebook/redex :: opt/outliner (ClosureAggregator)

; 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.UnorderedMap<const method_splitting_impl::Closure *, method_splitting_impl::ClosureAggregator::ClosureInfoDelta>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.method_splitting_impl::ClosureAggregator" = type { %class.UnorderedSet, %class.MutablePriorityQueue, %class.UnorderedSet, %class.UnorderedMap.25, i32, %class.UnorderedMap.41 }
%class.MutablePriorityQueue = type { %"class.std::map", %class.UnorderedMap }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, const method_splitting_impl::Closure *>, std::_Select1st<std::pair<const unsigned long, const method_splitting_impl::Closure *>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, const method_splitting_impl::Closure *>, std::_Select1st<std::pair<const unsigned long, const method_splitting_impl::Closure *>>, std::less<unsigned long>>::_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.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.6" }
%"class.std::_Hashtable.6" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedMap.25 = type { %"class.std::unordered_map.27" }
%"class.std::unordered_map.27" = type { %"class.std::_Hashtable.28" }
%"class.std::_Hashtable.28" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedMap.41 = type { %"class.std::unordered_map.43" }
%"class.std::unordered_map.43" = type { %"class.std::_Hashtable.44" }
%"class.std::_Hashtable.44" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.method_splitting_impl::ClosureAggregator::ClosureInfoDelta" = type { %"struct.std::array.73", i32 }
%"struct.std::array.73" = type { [11 x i32] }
%"struct.method_splitting_impl::ClosureAggregator::ClosureInfo" = type { %class.UnorderedSet, i32, i32, i32, %"struct.std::array" }
%"struct.std::array" = type { [11 x i32] }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK21method_splitting_impl17ClosureAggregator11ClosureInfo12get_priorityEv(ptr noundef nonnull align 8 dereferenceable(112)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21method_splitting_impl17ClosureAggregator12reprioritizeERK12UnorderedMapIPKNS_7ClosureENS0_16ClosureInfoDeltaESt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(336) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.UnorderedMap<const method_splitting_impl::Closure *, method_splitting_impl::ClosureAggregator::ClosureInfoDelta>::ConstUnorderedIterable", align 8
  %7 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call ptr @_Z17UnorderedIterableI12UnorderedMapIPKN21method_splitting_impl7ClosureENS1_17ClosureAggregator16ClosureInfoDeltaESt4hashIS4_ESt8equal_toIS4_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESE_EEbE4typeELb1EEDaRKSE_(ptr noundef nonnull align 8 dereferenceable(56) %17)
  %19 = getelementptr inbounds %"class.UnorderedMap<const method_splitting_impl::Closure *, method_splitting_impl::ClosureAggregator::ClosureInfoDelta>::ConstUnorderedIterable", ptr %6, i32 0, i32 0
  store ptr %18, ptr %19, align 8
  store ptr %6, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call ptr @_ZNK12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaESt4hashIS3_ESt8equal_toIS3_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %22 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %7, i32 0, i32 0
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %22, i32 0, i32 0
  store ptr %21, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call ptr @_ZNK12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaESt4hashIS3_ESt8equal_toIS3_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %8, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %26, i32 0, i32 0
  store ptr %25, ptr %27, align 8
  br label %28

28:                                               ; preds = %71, %2
  %29 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  br i1 %29, label %31, label %30

30:                                               ; preds = %28
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %73

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %32 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSB_(ptr noundef nonnull align 8 dereferenceable(56) %33) #3
  store ptr %34, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZSt3getILm1EKPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSB_(ptr noundef nonnull align 8 dereferenceable(56) %35) #3
  store ptr %36, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %37 = getelementptr inbounds %"class.method_splitting_impl::ClosureAggregator", ptr %16, i32 0, i32 3
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZN12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator11ClosureInfoESt4hashIS3_ESt8equal_toIS3_EE2atERKS3_(ptr noundef nonnull align 8 dereferenceable(56) %37, ptr noundef nonnull align 8 dereferenceable(8) %38)
  store ptr %39, ptr %13, align 8, !tbaa !5
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.method_splitting_impl::ClosureAggregator::ClosureInfoDelta", ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.method_splitting_impl::ClosureAggregator::ClosureInfo", ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = add i32 %45, %42
  store i32 %46, ptr %44, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !23
  br label %47

47:                                               ; preds = %63, %31
  %48 = load i64, ptr %14, align 8, !tbaa !23
  %49 = icmp ult i64 %48, 11
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %66

51:                                               ; preds = %47
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.method_splitting_impl::ClosureAggregator::ClosureInfoDelta", ptr %52, i32 0, i32 0
  %54 = load i64, ptr %14, align 8, !tbaa !23
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %53, i64 noundef %54) #3
  %56 = load i32, ptr %55, align 4, !tbaa !24
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.method_splitting_impl::ClosureAggregator::ClosureInfo", ptr %57, i32 0, i32 4
  %59 = load i64, ptr %14, align 8, !tbaa !23
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %58, i64 noundef %59) #3
  %61 = load i32, ptr %60, align 4, !tbaa !24
  %62 = add i32 %61, %56
  store i32 %62, ptr %60, align 4, !tbaa !24
  br label %63

63:                                               ; preds = %51
  %64 = load i64, ptr %14, align 8, !tbaa !23
  %65 = add i64 %64, 1
  store i64 %65, ptr %14, align 8, !tbaa !23
  br label %47, !llvm.loop !25

66:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call noundef i64 @_ZNK21method_splitting_impl17ClosureAggregator11ClosureInfo12get_priorityEv(ptr noundef nonnull align 8 dereferenceable(112) %67)
  store i64 %68, ptr %15, align 8, !tbaa !23
  %69 = getelementptr inbounds %"class.method_splitting_impl::ClosureAggregator", ptr %16, i32 0, i32 1
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN20MutablePriorityQueueIPKN21method_splitting_impl7ClosureEmSt4hashIS3_ESt4lessImEE15update_priorityERKS3_RKm(ptr noundef nonnull align 8 dereferenceable(104) %69, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %71

71:                                               ; preds = %66
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br label %28

73:                                               ; preds = %30
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI12UnorderedMapIPKN21method_splitting_impl7ClosureENS1_17ClosureAggregator16ClosureInfoDeltaESt4hashIS4_ESt8equal_toIS4_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESE_EEbE4typeELb1EEDaRKSE_(ptr noundef nonnull align 8 dereferenceable(56)) #1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZN12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator11ClosureInfoESt4hashIS3_ESt8equal_toIS3_EE2atERKS3_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20MutablePriorityQueueIPKN21method_splitting_impl7ClosureEmSt4hashIS3_ESt4lessImEE15update_priorityERKS3_RKm(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !12, i64 44}
!10 = !{!"_ZTSN21method_splitting_impl17ClosureAggregator16ClosureInfoDeltaE", !11, i64 0, !12, i64 44}
!11 = !{!"_ZTSSt5arrayIiLm11EE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 64}
!14 = !{!"_ZTSN21method_splitting_impl17ClosureAggregator11ClosureInfoE", !15, i64 0, !12, i64 56, !12, i64 60, !12, i64 64, !22, i64 68}
!15 = !{!"_ZTS12UnorderedSetIPKN21method_splitting_impl12ReducedBlockESt4hashIS3_ESt8equal_toIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt13unordered_setIPKN21method_splitting_impl12ReducedBlockESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIPKN21method_splitting_impl12ReducedBlockES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !6, i64 48}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !18, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTSSt5arrayIjLm11EE", !7, i64 0}
!23 = !{!18, !18, i64 0}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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.UnorderedMap<const method_splitting_impl::Closure *, method_splitting_impl::ClosureAggregator::ClosureInfoDelta>::ConstUnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK21method_splitting_impl17ClosureAggregator11ClosureInfo12get_priorityEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21method_splitting_impl17ClosureAggregator12reprioritizeERK12UnorderedMapIPKNS_7ClosureENS0_16ClosureInfoDeltaESt4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(336) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.UnorderedMap<const method_splitting_impl::Closure *, method_splitting_impl::ClosureAggregator::ClosureInfoDelta>::ConstUnorderedIterable", align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %7 = tail call ptr @_Z17UnorderedIterableI12UnorderedMapIPKN21method_splitting_impl7ClosureENS1_17ClosureAggregator16ClosureInfoDeltaESt4hashIS4_ESt8equal_toIS4_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESE_EEbE4typeELb1EEDaRKSE_(ptr noundef nonnull align 8 dereferenceable(56) %1)
  store ptr %7, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %8 = call ptr @_ZNK12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaESt4hashIS3_ESt8equal_toIS3_EE22ConstUnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %8, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %9 = call ptr @_ZNK12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaESt4hashIS3_ESt8equal_toIS3_EE22ConstUnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %9, ptr %5, align 8
  %10 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 216
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  br label %13

._crit_edge:                                      ; preds = %13, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void

13:                                               ; preds = %.lr.ph, %13
  %14 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSB_(ptr noundef nonnull align 8 dereferenceable(56) %14) #3
  %16 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZSt3getILm1EKPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator16ClosureInfoDeltaEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSB_(ptr noundef nonnull align 8 dereferenceable(56) %14) #3
  %17 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZN12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator11ClosureInfoESt4hashIS3_ESt8equal_toIS3_EE2atERKS3_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %18 = getelementptr inbounds i8, ptr %16, i64 44
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %17, i64 64
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = add i32 %21, %19
  store i32 %22, ptr %20, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %17, i64 68
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 0) #3
  %25 = load i32, ptr %24, align 4, !tbaa !22
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 0) #3
  %27 = load i32, ptr %26, align 4, !tbaa !22
  %28 = add i32 %27, %25
  store i32 %28, ptr %26, align 4, !tbaa !22
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 1) #3
  %30 = load i32, ptr %29, align 4, !tbaa !22
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 1) #3
  %32 = load i32, ptr %31, align 4, !tbaa !22
  %33 = add i32 %32, %30
  store i32 %33, ptr %31, align 4, !tbaa !22
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 2) #3
  %35 = load i32, ptr %34, align 4, !tbaa !22
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 2) #3
  %37 = load i32, ptr %36, align 4, !tbaa !22
  %38 = add i32 %37, %35
  store i32 %38, ptr %36, align 4, !tbaa !22
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 3) #3
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 3) #3
  %42 = load i32, ptr %41, align 4, !tbaa !22
  %43 = add i32 %42, %40
  store i32 %43, ptr %41, align 4, !tbaa !22
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 4) #3
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 4) #3
  %47 = load i32, ptr %46, align 4, !tbaa !22
  %48 = add i32 %47, %45
  store i32 %48, ptr %46, align 4, !tbaa !22
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 5) #3
  %50 = load i32, ptr %49, align 4, !tbaa !22
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 5) #3
  %52 = load i32, ptr %51, align 4, !tbaa !22
  %53 = add i32 %52, %50
  store i32 %53, ptr %51, align 4, !tbaa !22
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 6) #3
  %55 = load i32, ptr %54, align 4, !tbaa !22
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 6) #3
  %57 = load i32, ptr %56, align 4, !tbaa !22
  %58 = add i32 %57, %55
  store i32 %58, ptr %56, align 4, !tbaa !22
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 7) #3
  %60 = load i32, ptr %59, align 4, !tbaa !22
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 7) #3
  %62 = load i32, ptr %61, align 4, !tbaa !22
  %63 = add i32 %62, %60
  store i32 %63, ptr %61, align 4, !tbaa !22
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 8) #3
  %65 = load i32, ptr %64, align 4, !tbaa !22
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 8) #3
  %67 = load i32, ptr %66, align 4, !tbaa !22
  %68 = add i32 %67, %65
  store i32 %68, ptr %66, align 4, !tbaa !22
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 9) #3
  %70 = load i32, ptr %69, align 4, !tbaa !22
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 9) #3
  %72 = load i32, ptr %71, align 4, !tbaa !22
  %73 = add i32 %72, %70
  store i32 %73, ptr %71, align 4, !tbaa !22
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %16, i64 noundef 10) #3
  %75 = load i32, ptr %74, align 4, !tbaa !22
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm11EEixEm(ptr noundef nonnull align 4 dereferenceable(44) %23, i64 noundef 10) #3
  %77 = load i32, ptr %76, align 4, !tbaa !22
  %78 = add i32 %77, %75
  store i32 %78, ptr %76, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %79 = call noundef i64 @_ZNK21method_splitting_impl17ClosureAggregator11ClosureInfo12get_priorityEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
  store i64 %79, ptr %6, align 8, !tbaa !23
  call void @_ZN20MutablePriorityQueueIPKN21method_splitting_impl7ClosureEmSt4hashIS3_ESt4lessImEE15update_priorityERKS3_RKm(ptr noundef nonnull align 8 dereferenceable(104) %12, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %81 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKN21method_splitting_impl7ClosureENS2_17ClosureAggregator16ClosureInfoDeltaEELb0EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %81, label %13, label %._crit_edge
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI12UnorderedMapIPKN21method_splitting_impl7ClosureENS1_17ClosureAggregator16ClosureInfoDeltaESt4hashIS4_ESt8equal_toIS4_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESE_EEbE4typeELb1EEDaRKSE_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZN12UnorderedMapIPKN21method_splitting_impl7ClosureENS0_17ClosureAggregator11ClosureInfoESt4hashIS3_ESt8equal_toIS3_EE2atERKS3_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20MutablePriorityQueueIPKN21method_splitting_impl7ClosureEmSt4hashIS3_ESt4lessImEE15update_priorityERKS3_RKm(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !10, i64 44}
!6 = !{!"_ZTSN21method_splitting_impl17ClosureAggregator16ClosureInfoDeltaE", !7, i64 0, !10, i64 44}
!7 = !{!"_ZTSSt5arrayIiLm11EE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 64}
!12 = !{!"_ZTSN21method_splitting_impl17ClosureAggregator11ClosureInfoE", !13, i64 0, !10, i64 56, !10, i64 60, !10, i64 64, !21, i64 68}
!13 = !{!"_ZTS12UnorderedSetIPKN21method_splitting_impl12ReducedBlockESt4hashIS3_ESt8equal_toIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt13unordered_setIPKN21method_splitting_impl12ReducedBlockESt4hashIS3_ESt8equal_toIS3_ESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableIPKN21method_splitting_impl12ReducedBlockES3_SaIS3_ENSt8__detail9_IdentityESt8equal_toIS3_ESt4hashIS3_ENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb1ELb1EEEE", !16, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !16, i64 48}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !16, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !8, i64 0}
!21 = !{!"_ZTSSt5arrayIjLm11EE", !8, i64 0}
!22 = !{!10, !10, i64 0}
!23 = !{!17, !17, i64 0}


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