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

; 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.8" = type { ptr }
%"struct.std::pair" = type <{ %"class.boost::multi_index::detail::bidir_node_iterator.8", i8, [7 x i8] }>
%"struct.DynexCN::PeerlistEntry" = type { %"struct.DynexCN::NetworkAddress", i64, i64 }
%"struct.DynexCN::NetworkAddress" = type { i32, i32 }
%"class.DynexCN::PeerlistManager" = type { %"class.std::__cxx11::basic_string", i8, %"class.boost::multi_index::multi_index_container", %"class.boost::multi_index::multi_index_container", %"class.DynexCN::PeerlistManager::Peerlist", %"class.DynexCN::PeerlistManager::Peerlist" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::multi_index::multi_index_container" = type { [8 x i8], %"struct.boost::multi_index::detail::header_holder", [8 x i8], i64 }
%"struct.boost::multi_index::detail::header_holder" = type { ptr }
%"class.DynexCN::PeerlistManager::Peerlist" = type { ptr, i64 }

@_ZTISt9exception = external constant ptr

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN15PeerlistManager19trim_white_peerlistEv(ptr noundef nonnull align 8 dereferenceable(136)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN15PeerlistManager22append_with_peer_whiteERKNS_13PeerlistEntryE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 1 dereferenceable(24) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %9 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %12 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %13 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %14 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %15 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.DynexCN::PeerlistEntry", ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %"struct.DynexCN::NetworkAddress", ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 1, !tbaa !9
  %22 = invoke noundef zeroext i1 @_ZNK7DynexCN15PeerlistManager13is_ip_allowedEj(ptr noundef nonnull align 8 dereferenceable(136) %17, i32 noundef %21)
          to label %23 unwind label %25

23:                                               ; preds = %2
  br i1 %22, label %29, label %24

24:                                               ; preds = %23
  store i1 true, ptr %3, align 1
  br label %111

25:                                               ; preds = %2
  %26 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %6, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %7, align 4
  br label %103

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %30 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 3
  %31 = call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.DynexCN::PeerlistEntry", ptr %32, i32 0, i32 0
  %34 = invoke ptr @_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_policyEE4findIS6_EENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS12_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKT_(ptr noundef nonnull align 1 dereferenceable(4) %31, ptr noundef nonnull align 1 dereferenceable(8) %33)
          to label %35 unwind label %54

35:                                               ; preds = %29
  %36 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %8, i32 0, i32 0
  store ptr %34, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %37 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 3
  %38 = call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #5
  %39 = call ptr @_ZN5boost11multi_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_policyEE3endEv(ptr noundef nonnull align 1 dereferenceable(4) %38) #5
  %40 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %9, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  %41 = invoke noundef zeroext i1 @_ZN5boost11multi_index6detaileqINS1_18ordered_index_nodeINS1_19null_augment_policyENS3_IS4_NS1_15index_node_baseIN7DynexCN13PeerlistEntryESaIS7_EEEEEEEEEbRKNS1_19bidir_node_iteratorIT_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %42 unwind label %58

42:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br i1 %41, label %43, label %62

43:                                               ; preds = %42
  %44 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 3
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = invoke { ptr, i8 } @_ZN5boost11multi_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_policyEE6insertERKS5_(ptr noundef nonnull align 1 dereferenceable(4) %45, ptr noundef nonnull align 1 dereferenceable(24) %46)
          to label %48 unwind label %54

48:                                               ; preds = %43
  %49 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 0
  %50 = extractvalue { ptr, i8 } %47, 0
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 1
  %52 = extractvalue { ptr, i8 } %47, 1
  store i8 %52, ptr %51, align 8
  invoke void @_ZN7DynexCN15PeerlistManager19trim_white_peerlistEv(ptr noundef nonnull align 8 dereferenceable(136) %17)
          to label %53 unwind label %54

53:                                               ; preds = %48
  br label %70

54:                                               ; preds = %62, %48, %43, %29
  %55 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %6, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %7, align 4
  br label %102

58:                                               ; preds = %35
  %59 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %6, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %102

62:                                               ; preds = %42
  %63 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 3
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %8, i64 8, i1 false)
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %11, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = invoke noundef zeroext i1 @_ZN5boost11multi_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_policyEE7replaceENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKS5_(ptr noundef nonnull align 1 dereferenceable(4) %64, ptr %67, ptr noundef nonnull align 1 dereferenceable(24) %65)
          to label %69 unwind label %54

69:                                               ; preds = %62
  br label %70

70:                                               ; preds = %69, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %71 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 2
  %72 = call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %71) #5
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.DynexCN::PeerlistEntry", ptr %73, i32 0, i32 0
  %75 = invoke ptr @_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_policyEE4findIS6_EENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS12_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKT_(ptr noundef nonnull align 1 dereferenceable(4) %72, ptr noundef nonnull align 1 dereferenceable(8) %74)
          to label %76 unwind label %92

76:                                               ; preds = %70
  %77 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %12, i32 0, i32 0
  store ptr %75, ptr %77, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %78 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 2
  %79 = call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %78) #5
  %80 = call ptr @_ZN5boost11multi_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_policyEE3endEv(ptr noundef nonnull align 1 dereferenceable(4) %79) #5
  %81 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %13, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  %82 = invoke noundef zeroext i1 @_ZN5boost14operators_implneERKNS_11multi_index6detail19bidir_node_iteratorINS2_18ordered_index_nodeINS2_19null_augment_policyENS4_IS5_NS2_15index_node_baseIN7DynexCN13PeerlistEntryESaIS8_EEEEEEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %83 unwind label %96

83:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br i1 %82, label %84, label %100

84:                                               ; preds = %83
  %85 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %17, i32 0, i32 2
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %12, i64 8, i1 false)
  %87 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %14, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  %89 = invoke ptr @_ZN5boost11multi_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_policyEE5eraseENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEE(ptr noundef nonnull align 1 dereferenceable(4) %86, ptr %88)
          to label %90 unwind label %92

90:                                               ; preds = %84
  %91 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %15, i32 0, i32 0
  store ptr %89, ptr %91, align 8
  br label %100

92:                                               ; preds = %84, %70
  %93 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %6, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %7, align 4
  br label %101

96:                                               ; preds = %76
  %97 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %6, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %101

100:                                              ; preds = %90, %83
  store i1 true, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %111

101:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %102

102:                                              ; preds = %101, %58, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %103

103:                                              ; preds = %102, %25
  %104 = load i32, ptr %7, align 4
  %105 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #5
  %106 = icmp eq i32 %104, %105
  br i1 %106, label %107, label %113

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %108 = load ptr, ptr %6, align 8
  %109 = call ptr @__cxa_begin_catch(ptr %108) #5
  store ptr %109, ptr %16, align 8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %110

110:                                              ; preds = %107
  store i1 false, ptr %3, align 1
  br label %111

111:                                              ; preds = %110, %100, %24
  %112 = load i1, ptr %3, align 1
  ret i1 %112

113:                                              ; preds = %103
  %114 = load ptr, ptr %6, align 8
  %115 = load i32, ptr %7, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost11multi_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_policyEE6insertERKS5_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost11multi_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_policyEE7replaceENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKS5_(ptr noundef nonnull align 1 dereferenceable(4), ptr, ptr noundef nonnull align 1 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN5boost11multi_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_policyEE5eraseENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEE(ptr noundef nonnull align 1 dereferenceable(4), ptr) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 0}
!10 = !{!"_ZTSN7DynexCN13PeerlistEntryE", !11, i64 0, !13, i64 8, !13, i64 16}
!11 = !{!"_ZTSN7DynexCN14NetworkAddressE", !12, i64 0, !12, i64 4}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}


; 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.boost::multi_index::detail::bidir_node_iterator.8" = type { ptr }

@_ZTISt9exception = external constant ptr

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

; 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 void @_ZN7DynexCN15PeerlistManager19trim_white_peerlistEv(ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7DynexCN15PeerlistManager13is_ip_allowedEj(ptr noundef nonnull align 8 dereferenceable(136), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN15PeerlistManager22append_with_peer_whiteERKNS_13PeerlistEntryE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 1 dereferenceable(24) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %4 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %5 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %6 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %7 = load i32, ptr %1, align 1, !tbaa !5
  %8 = invoke noundef zeroext i1 @_ZNK7DynexCN15PeerlistManager13is_ip_allowedEj(ptr noundef nonnull align 8 dereferenceable(136) %0, i32 noundef %7)
          to label %9 unwind label %10

9:                                                ; preds = %2
  br i1 %8, label %12, label %52

10:                                               ; preds = %2
  %11 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
  br label %47

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  %14 = tail call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  %15 = invoke ptr @_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_policyEE4findIS6_EENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS12_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKT_(ptr noundef nonnull align 1 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(8) %1)
          to label %16 unwind label %24

16:                                               ; preds = %12
  store ptr %15, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %17 = tail call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  %18 = tail call ptr @_ZN5boost11multi_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_policyEE3endEv(ptr noundef nonnull align 1 dereferenceable(4) %17) #4
  store ptr %18, ptr %4, align 8
  %19 = call noundef zeroext i1 @_ZN5boost11multi_index6detaileqINS1_18ordered_index_nodeINS1_19null_augment_policyENS3_IS4_NS1_15index_node_baseIN7DynexCN13PeerlistEntryESaIS7_EEEEEEEEEbRKNS1_19bidir_node_iteratorIT_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  br i1 %19, label %21, label %26

21:                                               ; preds = %16
  %22 = invoke { ptr, i8 } @_ZN5boost11multi_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_policyEE6insertERKS5_(ptr noundef nonnull align 1 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(24) %1)
          to label %23 unwind label %24

23:                                               ; preds = %21
  invoke void @_ZN7DynexCN15PeerlistManager19trim_white_peerlistEv(ptr noundef nonnull align 8 dereferenceable(136) %0)
          to label %28 unwind label %24

24:                                               ; preds = %26, %23, %21, %12
  %25 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %46

26:                                               ; preds = %16
  %.sroa.02.0.copyload = load ptr, ptr %3, align 8
  %27 = invoke noundef zeroext i1 @_ZN5boost11multi_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_policyEE7replaceENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKS5_(ptr noundef nonnull align 1 dereferenceable(4) %20, ptr %.sroa.02.0.copyload, ptr noundef nonnull align 1 dereferenceable(24) %1)
          to label %28 unwind label %24

28:                                               ; preds = %26, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  %31 = invoke ptr @_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_policyEE4findIS6_EENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS12_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKT_(ptr noundef nonnull align 1 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(8) %1)
          to label %32 unwind label %40

32:                                               ; preds = %28
  store ptr %31, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %33 = call noundef nonnull align 1 dereferenceable(4) 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_EE3getIS8_EERNSN_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  %34 = call ptr @_ZN5boost11multi_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_policyEE3endEv(ptr noundef nonnull align 1 dereferenceable(4) %33) #4
  store ptr %34, ptr %6, align 8
  %35 = invoke noundef zeroext i1 @_ZN5boost14operators_implneERKNS_11multi_index6detail19bidir_node_iteratorINS2_18ordered_index_nodeINS2_19null_augment_policyENS4_IS5_NS2_15index_node_baseIN7DynexCN13PeerlistEntryESaIS8_EEEEEEEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %36 unwind label %42

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %35, label %37, label %44

37:                                               ; preds = %36
  %38 = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.01.0.copyload = load ptr, ptr %5, align 8
  %39 = invoke ptr @_ZN5boost11multi_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_policyEE5eraseENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEE(ptr noundef nonnull align 1 dereferenceable(4) %38, ptr %.sroa.01.0.copyload)
          to label %44 unwind label %40

40:                                               ; preds = %37, %28
  %41 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %45

42:                                               ; preds = %32
  %43 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %45

44:                                               ; preds = %37, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %52

45:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %46

46:                                               ; preds = %45, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %45 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %47

47:                                               ; preds = %46, %10
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %46 ], [ %11, %10 ]
  %.216 = extractvalue { ptr, i32 } %.pn.pn.pn, 1
  %48 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #4
  %49 = icmp eq i32 %.216, %48
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %.2 = extractvalue { ptr, i32 } %.pn.pn.pn, 0
  %51 = call ptr @__cxa_begin_catch(ptr %.2) #4
  call void @__cxa_end_catch()
  br label %52

52:                                               ; preds = %9, %50, %44
  %.0 = phi i1 [ true, %44 ], [ false, %50 ], [ true, %9 ]
  ret i1 %.0

53:                                               ; preds = %47
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost11multi_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_policyEE6insertERKS5_(ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost11multi_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_policyEE7replaceENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEERKS5_(ptr noundef nonnull align 1 dereferenceable(4), ptr, ptr noundef nonnull align 1 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN5boost11multi_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_policyEE5eraseENS1_19bidir_node_iteratorINS1_18ordered_index_nodeISY_NS11_ISY_NS1_15index_node_baseIS5_SQ_EEEEEEEE(ptr noundef nonnull align 1 dereferenceable(4), ptr) local_unnamed_addr #1 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 = { nofree nosync nounwind memory(none) }
attributes #3 = { 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 #4 = { 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, !8, i64 0}
!6 = !{!"_ZTSN7DynexCN13PeerlistEntryE", !7, i64 0, !11, i64 8, !11, i64 16}
!7 = !{!"_ZTSN7DynexCN14NetworkAddressE", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass