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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN15PeerlistManager21append_with_peer_grayERKNS_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 i32, align 4
  %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 %"struct.std::pair", align 8
  %14 = alloca %"class.boost::multi_index::detail::bidir_node_iterator.8", align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.DynexCN::PeerlistEntry", ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds %"struct.DynexCN::NetworkAddress", ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 1, !tbaa !9
  %21 = invoke noundef zeroext i1 @_ZNK7DynexCN15PeerlistManager13is_ip_allowedEj(ptr noundef nonnull align 8 dereferenceable(136) %16, i32 noundef %20)
          to label %22 unwind label %24

22:                                               ; preds = %2
  br i1 %21, label %28, label %23

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

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

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %29 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %16, i32 0, i32 3
  %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) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.DynexCN::PeerlistEntry", ptr %31, i32 0, i32 0
  %33 = 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) %32)
          to label %34 unwind label %43

34:                                               ; preds = %28
  %35 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %8, i32 0, i32 0
  store ptr %33, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %36 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %16, i32 0, i32 3
  %37 = 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) %36) #5
  %38 = 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) %37) #5
  %39 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %9, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  %40 = 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) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %41 unwind label %47

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

42:                                               ; preds = %41
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %94

43:                                               ; preds = %28
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  br label %95

47:                                               ; preds = %34
  %48 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %95

51:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %52 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %16, i32 0, i32 2
  %53 = 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) %52) #5
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.DynexCN::PeerlistEntry", ptr %54, i32 0, i32 0
  %56 = 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) %53, ptr noundef nonnull align 1 dereferenceable(8) %55)
          to label %57 unwind label %76

57:                                               ; preds = %51
  %58 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %11, i32 0, i32 0
  store ptr %56, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %59 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %16, i32 0, i32 2
  %60 = 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) %59) #5
  %61 = 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) %60) #5
  %62 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %12, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  %63 = 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) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %64 unwind label %80

64:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br i1 %63, label %65, label %84

65:                                               ; preds = %64
  %66 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %16, i32 0, i32 2
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = 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) %67, ptr noundef nonnull align 1 dereferenceable(24) %68)
          to label %70 unwind label %76

70:                                               ; preds = %65
  %71 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %72 = extractvalue { ptr, i8 } %69, 0
  store ptr %72, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %74 = extractvalue { ptr, i8 } %69, 1
  store i8 %74, ptr %73, align 8
  invoke void @_ZN7DynexCN15PeerlistManager18trim_gray_peerlistEv(ptr noundef nonnull align 8 dereferenceable(136) %16)
          to label %75 unwind label %76

75:                                               ; preds = %70
  br label %92

76:                                               ; preds = %84, %70, %65, %51
  %77 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %6, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %7, align 4
  br label %93

80:                                               ; preds = %57
  %81 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %6, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %93

84:                                               ; preds = %64
  %85 = getelementptr inbounds %"class.DynexCN::PeerlistManager", ptr %16, 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 %11, i64 8, i1 false)
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.boost::multi_index::detail::bidir_node_iterator.8", ptr %14, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = 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) %86, ptr %89, ptr noundef nonnull align 1 dereferenceable(24) %87)
          to label %91 unwind label %76

91:                                               ; preds = %84
  br label %92

92:                                               ; preds = %91, %75
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %94

93:                                               ; preds = %80, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %95

94:                                               ; preds = %92, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %104

95:                                               ; preds = %93, %47, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %96

96:                                               ; preds = %95, %24
  %97 = load i32, ptr %7, align 4
  %98 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #5
  %99 = icmp eq i32 %97, %98
  br i1 %99, label %100, label %106

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %101 = load ptr, ptr %6, align 8
  %102 = call ptr @__cxa_begin_catch(ptr %101) #5
  store ptr %102, ptr %15, align 8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %103

103:                                              ; preds = %100
  store i1 false, ptr %3, align 1
  br label %104

104:                                              ; preds = %103, %94, %23
  %105 = load i1, ptr %3, align 1
  ret i1 %105

106:                                              ; preds = %96
  %107 = load ptr, ptr %6, align 8
  %108 = load i32, ptr %7, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110
}

; 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: 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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN15PeerlistManager21append_with_peer_grayERKNS_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 %49

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

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 %21

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 = 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) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %20 unwind label %23

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %19, label %42, label %25

21:                                               ; preds = %12
  %22 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %43

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

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = 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) %26) #4
  %28 = 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) %27, ptr noundef nonnull align 1 dereferenceable(8) %1)
          to label %29 unwind label %37

29:                                               ; preds = %25
  store ptr %28, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %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) %26) #4
  %31 = 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) %30) #4
  store ptr %31, ptr %6, align 8
  %32 = 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) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  br i1 %32, label %34, label %39

34:                                               ; preds = %29
  %35 = 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) %33, ptr noundef nonnull align 1 dereferenceable(24) %1)
          to label %36 unwind label %37

36:                                               ; preds = %34
  invoke void @_ZN7DynexCN15PeerlistManager18trim_gray_peerlistEv(ptr noundef nonnull align 8 dereferenceable(136) %0)
          to label %41 unwind label %37

37:                                               ; preds = %39, %36, %34, %25
  %38 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %43

39:                                               ; preds = %29
  %.sroa.0.0.copyload = load ptr, ptr %5, align 8
  %40 = 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) %33, ptr %.sroa.0.0.copyload, ptr noundef nonnull align 1 dereferenceable(24) %1)
          to label %41 unwind label %37

41:                                               ; preds = %39, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %42

42:                                               ; preds = %20, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %49

43:                                               ; preds = %37, %23, %21
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %24, %23 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %44

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

47:                                               ; preds = %44
  %.112 = extractvalue { ptr, i32 } %.pn.pn, 0
  %48 = call ptr @__cxa_begin_catch(ptr %.112) #4
  call void @__cxa_end_catch()
  br label %49

49:                                               ; preds = %9, %47, %42
  %.1 = phi i1 [ true, %42 ], [ false, %47 ], [ true, %9 ]
  ret i1 %.1

50:                                               ; preds = %44
  resume { ptr, i32 } %.pn.pn
}

; 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: 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

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