; LLVM IR from dynexcoin/Dynex :: src/P2p/PeerListManager.ll (ZN7DynexCN15PeerlistManager8Peerlist4trimEv)

; 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.boost::multi_index::detail::bidir_node_iterator" = type { ptr }
%"class.DynexCN::PeerlistManager::Peerlist" = type { ptr, i64 }

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryENS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESt4lessIS6_ENS1_9nth_layerILi1ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EES7_SH_EENS0_18ordered_non_uniqueINSD_INSE_7by_timeESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EENS3_IS5_mXadL_ZNS5_9last_seenEEEEESH_EESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EESaIS5_EEENS_3mpl6v_itemISF_NSS_7vector0ISH_EELi0EEENS1_18ordered_unique_tagENS1_19null_augment_policyEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN15PeerlistManager8Peerlist4trimEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.boost::multi_index::detail::bidir_node_iterator", align 8
  %5 = alloca %"class.boost::multi_index::detail::bidir_node_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %7 = getelementptr inbounds %"class.DynexCN::PeerlistManager::Peerlist", ptr %6, i32 0, i32 0
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = call noundef nonnull align 1 dereferenceable(2) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN13PeerlistEntryENS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS2_15PeerlistManager7by_addrEN4mpl_2naESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_6memberIS3_NS2_14NetworkAddressEXadL_ZNS3_3adrEEEEESA_EENS0_18ordered_non_uniqueINS6_INS7_7by_timeESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENSC_IS3_mXadL_ZNS3_9last_seenEEEEESA_EESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EESaIS3_EE3getISH_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #3
  store ptr %9, ptr %3, align 8, !tbaa !5
  br label %10

10:                                               ; preds = %18, %1
  %11 = getelementptr inbounds %"class.DynexCN::PeerlistManager::Peerlist", ptr %6, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = call noundef i64 @_ZNK5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryENS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESt4lessIS6_ENS1_9nth_layerILi1ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EES7_SH_EENS0_18ordered_non_uniqueINSD_INSE_7by_timeESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EENS3_IS5_mXadL_ZNS5_9last_seenEEEEESH_EESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EESaIS5_EEENS_3mpl6v_itemISF_NSS_7vector0ISH_EELi0EEENS1_18ordered_unique_tagENS1_19null_augment_policyEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(4) %13) #3
  %15 = getelementptr inbounds %"class.DynexCN::PeerlistManager::Peerlist", ptr %6, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !12
  %17 = icmp ugt i64 %14, %16
  br i1 %17, label %18, label %27

18:                                               ; preds = %10
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call ptr @_ZN5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryEmXadL_ZNS5_9last_seenEEEEESt4lessImENS1_9nth_layerILi2ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EENS3_IS5_NS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESG_EENS0_18ordered_non_uniqueINSC_INSD_7by_timeESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EES6_SG_EESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EESaIS5_EEENS_3mpl6v_itemISM_NSS_7vector0ISG_EELi0EEENS1_22ordered_non_unique_tagENS1_19null_augment_policyEE5beginEv(ptr noundef nonnull align 1 dereferenceable(2) %20) #3
  %22 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator", ptr %4, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  %23 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator", ptr %4, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8
  %25 = call ptr @_ZN5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryEmXadL_ZNS5_9last_seenEEEEESt4lessImENS1_9nth_layerILi2ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EENS3_IS5_NS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESG_EENS0_18ordered_non_uniqueINSC_INSD_7by_timeESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EES6_SG_EESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EESaIS5_EEENS_3mpl6v_itemISM_NSS_7vector0ISG_EELi0EEENS1_22ordered_non_unique_tagENS1_19null_augment_policyEE5eraseENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS1_15index_node_baseIS5_SQ_EEEEEE(ptr noundef nonnull align 1 dereferenceable(2) %19, ptr %24)
  %26 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator", ptr %5, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  br label %10, !llvm.loop !13

27:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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, !6, i64 0}
!10 = !{!"_ZTSN7DynexCN15PeerlistManager8PeerlistE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"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"

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryENS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESt4lessIS6_ENS1_9nth_layerILi1ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EES7_SH_EENS0_18ordered_non_uniqueINSD_INSE_7by_timeESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EENS3_IS5_mXadL_ZNS5_9last_seenEEEEESH_EESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EESaIS5_EEENS_3mpl6v_itemISF_NSS_7vector0ISH_EELi0EEENS1_18ordered_unique_tagENS1_19null_augment_policyEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN15PeerlistManager8Peerlist4trimEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0) local_unnamed_addr #1 align 2 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = tail call noundef nonnull align 1 dereferenceable(2) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN13PeerlistEntryENS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS2_15PeerlistManager7by_addrEN4mpl_2naESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_6memberIS3_NS2_14NetworkAddressEXadL_ZNS3_3adrEEEEESA_EENS0_18ordered_non_uniqueINS6_INS7_7by_timeESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENSC_IS3_mXadL_ZNS3_9last_seenEEEEESA_EESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EESaIS3_EE3getISH_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #2
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  %6 = tail call noundef i64 @_ZNK5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryENS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESt4lessIS6_ENS1_9nth_layerILi1ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EES7_SH_EENS0_18ordered_non_uniqueINSD_INSE_7by_timeESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EENS3_IS5_mXadL_ZNS5_9last_seenEEEEESH_EESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EESaIS5_EEENS_3mpl6v_itemISF_NSS_7vector0ISH_EELi0EEENS1_18ordered_unique_tagENS1_19null_augment_policyEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(4) %5) #2
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !11
  %9 = icmp ugt i64 %6, %8
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1, %.lr.ph
  %10 = tail call ptr @_ZN5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryEmXadL_ZNS5_9last_seenEEEEESt4lessImENS1_9nth_layerILi2ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EENS3_IS5_NS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESG_EENS0_18ordered_non_uniqueINSC_INSD_7by_timeESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EES6_SG_EESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EESaIS5_EEENS_3mpl6v_itemISM_NSS_7vector0ISG_EELi0EEENS1_22ordered_non_unique_tagENS1_19null_augment_policyEE5beginEv(ptr noundef nonnull align 1 dereferenceable(2) %3) #2
  %11 = tail call ptr @_ZN5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryEmXadL_ZNS5_9last_seenEEEEESt4lessImENS1_9nth_layerILi2ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EENS3_IS5_NS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESG_EENS0_18ordered_non_uniqueINSC_INSD_7by_timeESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EES6_SG_EESG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_SG_EESaIS5_EEENS_3mpl6v_itemISM_NSS_7vector0ISG_EELi0EEENS1_22ordered_non_unique_tagENS1_19null_augment_policyEE5eraseENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS1_15index_node_baseIS5_SQ_EEEEEE(ptr noundef nonnull align 1 dereferenceable(2) %3, ptr %10)
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = tail call noundef i64 @_ZNK5boost11multi_index6detail18ordered_index_implINS0_6memberIN7DynexCN13PeerlistEntryENS4_14NetworkAddressEXadL_ZNS5_3adrEEEEESt4lessIS6_ENS1_9nth_layerILi1ES5_NS0_10indexed_byINS0_14ordered_uniqueINS0_3tagINS4_15PeerlistManager7by_addrEN4mpl_2naESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EES7_SH_EENS0_18ordered_non_uniqueINSD_INSE_7by_timeESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EENS3_IS5_mXadL_ZNS5_9last_seenEEEEESH_EESH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_SH_EESaIS5_EEENS_3mpl6v_itemISF_NSS_7vector0ISH_EELi0EEENS1_18ordered_unique_tagENS1_19null_augment_policyEE4sizeEv(ptr noundef nonnull align 1 dereferenceable(4) %13) #2
  %15 = load i64, ptr %7, align 8, !tbaa !11
  %16 = icmp ugt i64 %14, %15
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %1
  ret void
}

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

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

attributes #0 = { 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 #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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7DynexCN15PeerlistManager8PeerlistE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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