; LLVM IR from dynexcoin/Dynex :: src/NodeRpcProxy/NodeRpcProxy.ll (ZN7DynexCN12NodeRpcProxy16updatePoolStatusEv)

; 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.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::error_code" = type { i32, ptr }
%"class.DynexCN::NodeRpcProxy" = type { %"class.DynexCN::INode", %"class.std::__cxx11::basic_string", i16, i32, %"class.std::mutex", %"class.std::condition_variable", %"class.std::thread", ptr, ptr, %"class.Tools::ObserverManager", %"class.Tools::ObserverManager.8", i32, ptr, ptr, i64, i8, %"struct.std::atomic", %"struct.std::atomic.14", %"struct.std::atomic.14", %"struct.std::atomic", %"struct.DynexCN::BlockHeaderInfo", %"class.std::unordered_set", i8, %"class.std::__cxx11::basic_string" }
%"class.DynexCN::INode" = type { ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.Tools::ObserverManager" = type { %"class.std::vector", %"class.std::mutex" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Tools::ObserverManager.8" = type { %"class.std::vector.9", %"class.std::mutex" }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::atomic.14" = type { %"struct.std::__atomic_base.15" }
%"struct.std::__atomic_base.15" = type { i32 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.DynexCN::BlockHeaderInfo" = type { i32, i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i64, i64 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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] }

; 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN12NodeRpcProxy16updatePoolStatusEv(ptr noundef nonnull align 8 dereferenceable(560) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::vector.39", align 8
  %5 = alloca %"struct.Crypto::Hash", align 1
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::vector.44", align 8
  %8 = alloca %"class.std::vector.39", align 8
  %9 = alloca %"class.std::error_code", align 8
  %10 = alloca %"struct.Crypto::Hash", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  call void @_ZNK7DynexCN12NodeRpcProxy17getKnownTxsVectorEv(ptr dead_on_unwind writable sret(%"class.std::vector.39") align 8 %4, ptr noundef nonnull align 8 dereferenceable(560) %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  %16 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %15, i32 0, i32 20
  %17 = getelementptr inbounds %"struct.DynexCN::BlockHeaderInfo", ptr %16, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 8 %17, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  call void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 %5, i64 32, i1 false), !tbaa.struct !9
  %18 = invoke { i32, ptr } @_ZN7DynexCN12NodeRpcProxy28doGetPoolSymmetricDifferenceEOSt6vectorIN6Crypto4HashESaIS3_EES3_RbRS1_ISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS9_EESaISC_EERS5_(ptr noundef nonnull align 8 dereferenceable(560) %15, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef byval(%"struct.Crypto::Hash") align 8 %10, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %19 unwind label %26

19:                                               ; preds = %1
  %20 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 0
  %21 = extractvalue { i32, ptr } %18, 0
  store i32 %21, ptr %20, align 8
  %22 = getelementptr inbounds { i32, ptr }, ptr %9, i32 0, i32 1
  %23 = extractvalue { i32, ptr } %18, 1
  store ptr %23, ptr %22, align 8
  %24 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br i1 %24, label %25, label %30

25:                                               ; preds = %19
  store i1 true, ptr %2, align 1
  store i32 1, ptr %13, align 4
  br label %47

26:                                               ; preds = %39, %38, %1
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %11, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  br label %49

30:                                               ; preds = %19
  %31 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %32 = trunc i8 %31 to i1
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i1 false, ptr %2, align 1
  store i32 1, ptr %13, align 4
  br label %47

34:                                               ; preds = %30
  %35 = call noundef zeroext i1 @_ZNKSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br i1 %35, label %36, label %38

36:                                               ; preds = %34
  %37 = call noundef zeroext i1 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br i1 %37, label %46, label %38

38:                                               ; preds = %36, %34
  invoke void @_ZN7DynexCN12NodeRpcProxy15updatePoolStateERKSt6vectorISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS3_EESaIS6_EERKS1_IN6Crypto4HashESaISC_EE(ptr noundef nonnull align 8 dereferenceable(560) %15, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %39 unwind label %26

39:                                               ; preds = %38
  %40 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %15, i32 0, i32 9
  store { i64, i64 } { i64 41, i64 0 }, ptr %14, align 8, !tbaa !10
  %41 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %42 = load i64, ptr %41, align 8
  %43 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %44 = load i64, ptr %43, align 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN13INodeObserverEE6notifyIMS2_FvvEJEEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 %42, i64 %44)
          to label %45 unwind label %26

45:                                               ; preds = %39
  br label %46

46:                                               ; preds = %45, %36
  store i1 true, ptr %2, align 1
  store i32 1, ptr %13, align 4
  br label %47

47:                                               ; preds = %46, %33, %25
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  %48 = load i1, ptr %2, align 1
  ret i1 %48

49:                                               ; preds = %26
  %50 = load ptr, ptr %11, align 8
  %51 = load i32, ptr %12, align 4
  %52 = insertvalue { ptr, i32 } poison, ptr %50, 0
  %53 = insertvalue { ptr, i32 } %52, i32 %51, 1
  resume { ptr, i32 } %53
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7DynexCN12NodeRpcProxy17getKnownTxsVectorEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.39") align 8, ptr noundef nonnull align 8 dereferenceable(560)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN12NodeRpcProxy28doGetPoolSymmetricDifferenceEOSt6vectorIN6Crypto4HashESaIS3_EES3_RbRS1_ISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS9_EESaISC_EERS5_(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%"struct.Crypto::Hash") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN12NodeRpcProxy15updatePoolStateERKSt6vectorISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS3_EESaIS6_EERKS1_IN6Crypto4HashESaISC_EE(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Tools15ObserverManagerIN7DynexCN13INodeObserverEE6notifyIMS2_FvvEJEEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64), i64, i64) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 32, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DynexCN::ITransactionReader>, std::allocator<std::unique_ptr<DynexCN::ITransactionReader>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::error_code" = type { i32, ptr }
%"struct.Crypto::Hash" = type { [32 x i8] }

; 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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN12NodeRpcProxy16updatePoolStatusEv(ptr noundef nonnull align 8 dereferenceable(560) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.39", align 8
  %.sroa.01 = alloca [32 x i8], align 8
  %3 = alloca i8, align 1
  %4 = alloca %"class.std::vector.44", align 8
  %5 = alloca %"class.std::vector.39", align 8
  %6 = alloca %"class.std::error_code", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZNK7DynexCN12NodeRpcProxy17getKnownTxsVectorEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.39") align 8 %2, ptr noundef nonnull align 8 dereferenceable(560) %0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %.sroa.01)
  %7 = getelementptr inbounds i8, ptr %0, i64 368
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.01, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %8 = invoke { i32, ptr } @_ZN7DynexCN12NodeRpcProxy28doGetPoolSymmetricDifferenceEOSt6vectorIN6Crypto4HashESaIS3_EES3_RbRS1_ISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS9_EESaISC_EERS5_(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull byval(%"struct.Crypto::Hash") align 8 %.sroa.01, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %9 unwind label %14

9:                                                ; preds = %1
  %10 = extractvalue { i32, ptr } %8, 0
  store i32 %10, ptr %6, align 8
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  %12 = extractvalue { i32, ptr } %8, 1
  store ptr %12, ptr %11, align 8
  %13 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  br i1 %13, label %26, label %16

14:                                               ; preds = %24, %23, %1
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %.sroa.01)
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %15

16:                                               ; preds = %9
  %17 = load i8, ptr %3, align 1, !tbaa !9, !range !11, !noundef !12
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %26

19:                                               ; preds = %16
  %20 = call noundef zeroext i1 @_ZNKSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br i1 %20, label %21, label %23

21:                                               ; preds = %19
  %22 = call noundef zeroext i1 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br i1 %22, label %26, label %23

23:                                               ; preds = %21, %19
  invoke void @_ZN7DynexCN12NodeRpcProxy15updatePoolStateERKSt6vectorISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS3_EESaIS6_EERKS1_IN6Crypto4HashESaISC_EE(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %24 unwind label %14

24:                                               ; preds = %23
  %25 = getelementptr inbounds i8, ptr %0, i64 160
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN13INodeObserverEE6notifyIMS2_FvvEJEEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %25, i64 41, i64 0)
          to label %26 unwind label %14

26:                                               ; preds = %21, %24, %16, %9
  %.0 = phi i1 [ true, %9 ], [ false, %16 ], [ true, %24 ], [ true, %21 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %.sroa.01)
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7DynexCN12NodeRpcProxy17getKnownTxsVectorEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.39") align 8, ptr noundef nonnull align 8 dereferenceable(560)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN12NodeRpcProxy28doGetPoolSymmetricDifferenceEOSt6vectorIN6Crypto4HashESaIS3_EES3_RbRS1_ISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS9_EESaISC_EERS5_(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%"struct.Crypto::Hash") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN12NodeRpcProxy15updatePoolStateERKSt6vectorISt10unique_ptrINS_18ITransactionReaderESt14default_deleteIS3_EESaIS6_EERKS1_IN6Crypto4HashESaISC_EE(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Tools15ObserverManagerIN7DynexCN13INodeObserverEE6notifyIMS2_FvvEJEEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64), i64, i64) local_unnamed_addr #2 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { 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 = !{i64 0, i64 32, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass