; LLVM IR from dynexcoin/Dynex :: src/Transfers/BlockchainSynchronizer.ll (ZN7DynexCN22BlockchainSynchronizer13startPoolSyncEv)

; 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::__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.Logging::LoggerMessage" = type <{ %"class.std::basic_ostream.base", %"class.std::basic_streambuf", ptr, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.boost::posix_time::ptime", i8, [7 x i8], %"class.std::basic_ios" }>
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::posix_time::ptime" = type { %"class.boost::date_time::base_time" }
%"class.boost::date_time::base_time" = type { %"struct.boost::date_time::counted_time_rep" }
%"struct.boost::date_time::counted_time_rep" = type { %"class.boost::date_time::int_adapter" }
%"class.boost::date_time::int_adapter" = type { i64 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, 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 }
%"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest" = type { %"class.std::vector.23", %"struct.Crypto::Hash" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = 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] }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse" = type { i8, %"class.std::vector.122", %"class.std::vector.23" }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.129 = type { ptr }
%class.anon.130 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%"class.DynexCN::BlockchainSynchronizer" = type { %"class.DynexCN::IObservableImpl", %"class.DynexCN::INodeObserver", %"class.Logging::LoggerRef", %"class.std::map", ptr, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i32, %"class.std::unique_ptr", %"class.std::__cxx11::list", %"class.std::__cxx11::list.15", %"class.std::mutex", %"class.std::mutex", %"class.std::condition_variable" }
%"class.DynexCN::IObservableImpl" = type { %"class.DynexCN::IBlockchainSynchronizer", %"class.Tools::ObserverManager" }
%"class.DynexCN::IBlockchainSynchronizer" = type { %"class.DynexCN::IObservable", %"class.DynexCN::IStreamSerializable" }
%"class.DynexCN::IObservable" = type { ptr }
%"class.DynexCN::IStreamSerializable" = type { ptr }
%"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::IBlockchainSynchronizerObserver *, std::allocator<DynexCN::IBlockchainSynchronizerObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::IBlockchainSynchronizerObserver *, std::allocator<DynexCN::IBlockchainSynchronizerObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::IBlockchainSynchronizerObserver *, std::allocator<DynexCN::IBlockchainSynchronizerObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::IBlockchainSynchronizerObserver *, std::allocator<DynexCN::IBlockchainSynchronizerObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.DynexCN::INodeObserver" = type { ptr }
%"class.Logging::LoggerRef" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<DynexCN::IBlockchainConsumer *, std::pair<DynexCN::IBlockchainConsumer *const, std::shared_ptr<DynexCN::SynchronizationState>>, std::_Select1st<std::pair<DynexCN::IBlockchainConsumer *const, std::shared_ptr<DynexCN::SynchronizationState>>>, std::less<DynexCN::IBlockchainConsumer *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<DynexCN::IBlockchainConsumer *, std::pair<DynexCN::IBlockchainConsumer *const, std::shared_ptr<DynexCN::SynchronizationState>>, std::_Select1st<std::pair<DynexCN::IBlockchainConsumer *const, std::shared_ptr<DynexCN::SynchronizationState>>>, std::less<DynexCN::IBlockchainConsumer *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.11" }
%"struct.std::_Head_base.11" = type { ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::pair<const DynexCN::ITransactionReader *, std::promise<std::error_code>>, std::allocator<std::pair<const DynexCN::ITransactionReader *, std::promise<std::error_code>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<const DynexCN::ITransactionReader *, std::promise<std::error_code>>, std::allocator<std::pair<const DynexCN::ITransactionReader *, std::promise<std::error_code>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::__cxx11::list.15" = type { %"class.std::__cxx11::_List_base.16" }
%"class.std::__cxx11::_List_base.16" = type { %"struct.std::__cxx11::_List_base<std::pair<const Crypto::Hash *, std::promise<void>>, std::allocator<std::pair<const Crypto::Hash *, std::promise<void>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<const Crypto::Hash *, std::promise<void>>, std::allocator<std::pair<const Crypto::Hash *, std::promise<void>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"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 }

@_ZN7Logging10BRIGHT_REDB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZN7Logging7DEFAULTB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@.str.76 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [53 x i8], align 1

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: nounwind
declare void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA3_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(3)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageESt10error_codeEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(52)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt10error_code7messageB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA11_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(11)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer16setFutureStateIfENS0_5StateEOSt8functionIFbvEE(ptr noundef nonnull align 8 dereferenceable(440), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN22BlockchainSynchronizer13startPoolSyncEv(ptr noundef nonnull align 8 dereferenceable(440) %0) #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.Logging::LoggerMessage", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::unordered_set", align 8
  %7 = alloca %"class.std::unordered_set", align 8
  %8 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", align 8
  %12 = alloca %"class.std::error_code", align 8
  %13 = alloca %"class.Logging::LoggerMessage", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon.129, align 8
  %17 = alloca %"class.std::error_code", align 8
  %18 = alloca { i64, i64 }, align 8
  %19 = alloca %"class.Logging::LoggerMessage", align 8
  %20 = alloca %"class.Logging::LoggerMessage", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::error_code", align 8
  %24 = alloca { i64, i64 }, align 8
  %25 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", align 8
  %26 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", align 8
  %29 = alloca %"class.std::error_code", align 8
  %30 = alloca %"class.Logging::LoggerMessage", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::function", align 8
  %33 = alloca %class.anon.130, align 8
  %34 = alloca %"class.std::error_code", align 8
  %35 = alloca { i64, i64 }, align 8
  %36 = alloca %"class.Logging::LoggerMessage", align 8
  %37 = alloca %"class.Logging::LoggerMessage", align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %42 = alloca %"class.std::error_code", align 8
  %43 = alloca %"class.std::error_code", align 8
  %44 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %45 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 432, ptr %3) #8
  %46 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) %46, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
  %47 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA33_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %3, ptr noundef nonnull align 1 dereferenceable(33) @.str.76)
          to label %48 unwind label %99

48:                                               ; preds = %1
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %3) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  invoke void @_ZNK7DynexCN22BlockchainSynchronizer27getPoolUnionAndIntersectionERSt13unordered_setIN6Crypto4HashESt4hashIS3_ESt8equal_toIS3_ESaIS3_EESA_(ptr noundef nonnull align 8 dereferenceable(440) %45, ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %49 unwind label %103

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  %50 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", ptr %8, i32 0, i32 0
  %51 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  %52 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %9, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %52, i32 0, i32 0
  store ptr %51, ptr %53, align 8
  %54 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %55, i32 0, i32 0
  store ptr %54, ptr %56, align 8
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %9, i32 0, i32 0
  %58 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  %60 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6assignINSt8__detail14_Node_iteratorIS1_Lb1ELb1EEEvEEvT_S8_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr %59, ptr %62)
          to label %63 unwind label %107

63:                                               ; preds = %49
  %64 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 6
  %65 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", ptr %8, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %65, ptr align 8 %64, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #8
  %66 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %11, i32 0, i32 0
  store i8 0, ptr %66, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %67 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer30getPoolSymmetricDifferenceSyncEONS0_14GetPoolRequestERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %45, ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %68 unwind label %111

68:                                               ; preds = %63
  %69 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 0
  %70 = extractvalue { i32, ptr } %67, 0
  store i32 %70, ptr %69, align 8
  %71 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 1
  %72 = extractvalue { i32, ptr } %67, 1
  store ptr %72, ptr %71, align 8
  %73 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br i1 %73, label %74, label %138

74:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 432, ptr %13) #8
  %75 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %75, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging10BRIGHT_REDB5cxx11E)
          to label %76 unwind label %115

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA43_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %13, ptr noundef nonnull align 1 dereferenceable(43) @.str.77)
          to label %78 unwind label %119

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageESt10error_codeEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %77, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %80 unwind label %119

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA3_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %79, ptr noundef nonnull align 1 dereferenceable(3) @.str.24)
          to label %82 unwind label %119

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  invoke void @_ZNKSt10error_code7messageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %83 unwind label %123

83:                                               ; preds = %82
  %84 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %81, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %85 unwind label %127

85:                                               ; preds = %83
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %13) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %86 = getelementptr inbounds %class.anon.129, ptr %16, i32 0, i32 0
  store ptr %45, ptr %86, align 8, !tbaa !22
  call void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %87 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer16setFutureStateIfENS0_5StateEOSt8functionIFbvEE(ptr noundef nonnull align 8 dereferenceable(440) %45, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %88 unwind label %134

88:                                               ; preds = %85
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  %89 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %45, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !24
  store { i64, i64 } { i64 9, i64 0 }, ptr %18, align 8, !tbaa !10
  %90 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %91 = load i64, ptr %90, align 8
  %92 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %93 = load i64, ptr %92, align 8
  %94 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 0
  %95 = load i32, ptr %94, align 8
  %96 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %89, i64 %91, i64 %93, i32 %95, ptr %97)
          to label %98 unwind label %111

98:                                               ; preds = %88
  br label %384

99:                                               ; preds = %1
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %4, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %5, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %3) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %3) #8
  br label %388

103:                                              ; preds = %48
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %4, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %5, align 4
  br label %387

107:                                              ; preds = %49
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %4, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %5, align 4
  br label %386

111:                                              ; preds = %178, %175, %172, %146, %88, %63
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %4, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %5, align 4
  br label %385

115:                                              ; preds = %74
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %4, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %5, align 4
  br label %133

119:                                              ; preds = %80, %78, %76
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %4, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %5, align 4
  br label %132

123:                                              ; preds = %82
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %4, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %5, align 4
  br label %131

127:                                              ; preds = %83
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %4, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %132

132:                                              ; preds = %131, %119
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %13) #8
  br label %133

133:                                              ; preds = %132, %115
  call void @llvm.lifetime.end.p0(i64 432, ptr %13) #8
  br label %385

134:                                              ; preds = %85
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %4, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %5, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %385

138:                                              ; preds = %68
  %139 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %11, i32 0, i32 0
  %140 = load i8, ptr %139, align 8, !tbaa !11, !range !27, !noundef !28
  %141 = trunc i8 %140 to i1
  br i1 %141, label %158, label %142

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 432, ptr %19) #8
  %143 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %143, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %144 unwind label %149

144:                                              ; preds = %142
  %145 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA67_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %19, ptr noundef nonnull align 1 dereferenceable(67) @.str.78)
          to label %146 unwind label %153

146:                                              ; preds = %144
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %19) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %19) #8
  %147 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer14setFutureStateENS0_5StateE(ptr noundef nonnull align 8 dereferenceable(440) %45, i32 noundef 2)
          to label %148 unwind label %111

148:                                              ; preds = %146
  br label %383

149:                                              ; preds = %142
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %4, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %5, align 4
  br label %157

153:                                              ; preds = %144
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %4, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %5, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %19) #8
  br label %157

157:                                              ; preds = %153, %149
  call void @llvm.lifetime.end.p0(i64 432, ptr %19) #8
  br label %385

158:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 432, ptr %20) #8
  %159 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %159, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %160 unwind label %192

160:                                              ; preds = %158
  %161 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA42_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %20, ptr noundef nonnull align 1 dereferenceable(42) @.str.79)
          to label %162 unwind label %196

162:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %163 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %11, i32 0, i32 1
  %164 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #8
  store i64 %164, ptr %21, align 8, !tbaa !29
  %165 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %161, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %166 unwind label %200

166:                                              ; preds = %162
  %167 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA11_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %165, ptr noundef nonnull align 1 dereferenceable(11) @.str.80)
          to label %168 unwind label %200

168:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %169 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %11, i32 0, i32 2
  %170 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #8
  store i64 %170, ptr %22, align 8, !tbaa !29
  %171 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %167, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %172 unwind label %204

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %20) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %20) #8
  %173 = invoke noundef zeroext i1 @_ZSteqIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEbRKSt13unordered_setIT_T0_T1_T2_ESE_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %174 unwind label %111

174:                                              ; preds = %172
  br i1 %173, label %175, label %211

175:                                              ; preds = %174
  %176 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %45, i32 0, i32 1
  %177 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer14processPoolTxsERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %45, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %178 unwind label %111

178:                                              ; preds = %175
  %179 = getelementptr inbounds { i32, ptr }, ptr %23, i32 0, i32 0
  %180 = extractvalue { i32, ptr } %177, 0
  store i32 %180, ptr %179, align 8
  %181 = getelementptr inbounds { i32, ptr }, ptr %23, i32 0, i32 1
  %182 = extractvalue { i32, ptr } %177, 1
  store ptr %182, ptr %181, align 8
  store { i64, i64 } { i64 9, i64 0 }, ptr %24, align 8, !tbaa !10
  %183 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 0
  %184 = load i64, ptr %183, align 8
  %185 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 1
  %186 = load i64, ptr %185, align 8
  %187 = getelementptr inbounds { i32, ptr }, ptr %23, i32 0, i32 0
  %188 = load i32, ptr %187, align 8
  %189 = getelementptr inbounds { i32, ptr }, ptr %23, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %176, i64 %184, i64 %186, i32 %188, ptr %190)
          to label %191 unwind label %111

191:                                              ; preds = %178
  br label %382

192:                                              ; preds = %158
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %4, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %5, align 4
  br label %210

196:                                              ; preds = %160
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %4, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %5, align 4
  br label %209

200:                                              ; preds = %166, %162
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %4, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %5, align 4
  br label %208

204:                                              ; preds = %168
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %4, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %208

208:                                              ; preds = %204, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %209

209:                                              ; preds = %208, %196
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %20) #8
  br label %210

210:                                              ; preds = %209, %192
  call void @llvm.lifetime.end.p0(i64 432, ptr %20) #8
  br label %385

211:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #8
  %212 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", ptr %25, i32 0, i32 0
  %213 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  %214 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %26, i32 0, i32 0
  %215 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %214, i32 0, i32 0
  store ptr %213, ptr %215, align 8
  %216 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  %217 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %218 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %217, i32 0, i32 0
  store ptr %216, ptr %218, align 8
  %219 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %26, i32 0, i32 0
  %220 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %219, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8
  %222 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %223 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6assignINSt8__detail14_Node_iteratorIS1_Lb1ELb1EEEvEEvT_S8_(ptr noundef nonnull align 8 dereferenceable(24) %212, ptr %221, ptr %224)
          to label %225 unwind label %261

225:                                              ; preds = %211
  %226 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 6
  %227 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", ptr %25, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %227, ptr align 8 %226, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %28) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #8
  %228 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %28, i32 0, i32 0
  store i8 0, ptr %228, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %229 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer30getPoolSymmetricDifferenceSyncEONS0_14GetPoolRequestERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %45, ptr noundef nonnull align 8 dereferenceable(56) %25, ptr noundef nonnull align 8 dereferenceable(56) %28)
          to label %230 unwind label %265

230:                                              ; preds = %225
  %231 = getelementptr inbounds { i32, ptr }, ptr %29, i32 0, i32 0
  %232 = extractvalue { i32, ptr } %229, 0
  store i32 %232, ptr %231, align 8
  %233 = getelementptr inbounds { i32, ptr }, ptr %29, i32 0, i32 1
  %234 = extractvalue { i32, ptr } %229, 1
  store ptr %234, ptr %233, align 8
  %235 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  br i1 %235, label %236, label %292

236:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 432, ptr %30) #8
  %237 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %30, ptr noundef nonnull align 8 dereferenceable(40) %237, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging10BRIGHT_REDB5cxx11E)
          to label %238 unwind label %269

238:                                              ; preds = %236
  %239 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %30, ptr noundef nonnull align 1 dereferenceable(52) @.str.81)
          to label %240 unwind label %273

240:                                              ; preds = %238
  %241 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageESt10error_codeEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %239, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %242 unwind label %273

242:                                              ; preds = %240
  %243 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA3_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %241, ptr noundef nonnull align 1 dereferenceable(3) @.str.24)
          to label %244 unwind label %273

244:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #8
  invoke void @_ZNKSt10error_code7messageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %245 unwind label %277

245:                                              ; preds = %244
  %246 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %243, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %247 unwind label %281

247:                                              ; preds = %245
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %30) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %248 = getelementptr inbounds %class.anon.130, ptr %33, i32 0, i32 0
  store ptr %45, ptr %248, align 8, !tbaa !31
  call void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  %249 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer16setFutureStateIfENS0_5StateEOSt8functionIFbvEE(ptr noundef nonnull align 8 dereferenceable(440) %45, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %250 unwind label %288

250:                                              ; preds = %247
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  %251 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %45, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !24
  store { i64, i64 } { i64 9, i64 0 }, ptr %35, align 8, !tbaa !10
  %252 = getelementptr inbounds { i64, i64 }, ptr %35, i32 0, i32 0
  %253 = load i64, ptr %252, align 8
  %254 = getelementptr inbounds { i64, i64 }, ptr %35, i32 0, i32 1
  %255 = load i64, ptr %254, align 8
  %256 = getelementptr inbounds { i32, ptr }, ptr %34, i32 0, i32 0
  %257 = load i32, ptr %256, align 8
  %258 = getelementptr inbounds { i32, ptr }, ptr %34, i32 0, i32 1
  %259 = load ptr, ptr %258, align 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %251, i64 %253, i64 %255, i32 %257, ptr %259)
          to label %260 unwind label %265

260:                                              ; preds = %250
  br label %379

261:                                              ; preds = %211
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %4, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %5, align 4
  br label %381

265:                                              ; preds = %326, %300, %250, %225
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %4, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %5, align 4
  br label %380

269:                                              ; preds = %236
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %4, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %5, align 4
  br label %287

273:                                              ; preds = %242, %240, %238
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %4, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %5, align 4
  br label %286

277:                                              ; preds = %244
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %4, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %5, align 4
  br label %285

281:                                              ; preds = %245
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %4, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  br label %285

285:                                              ; preds = %281, %277
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  br label %286

286:                                              ; preds = %285, %273
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %30) #8
  br label %287

287:                                              ; preds = %286, %269
  call void @llvm.lifetime.end.p0(i64 432, ptr %30) #8
  br label %380

288:                                              ; preds = %247
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %4, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %5, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  br label %380

292:                                              ; preds = %230
  %293 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %28, i32 0, i32 0
  %294 = load i8, ptr %293, align 8, !tbaa !11, !range !27, !noundef !28
  %295 = trunc i8 %294 to i1
  br i1 %295, label %312, label %296

296:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 432, ptr %36) #8
  %297 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %36, ptr noundef nonnull align 8 dereferenceable(40) %297, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %298 unwind label %303

298:                                              ; preds = %296
  %299 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA78_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %36, ptr noundef nonnull align 1 dereferenceable(78) @.str.82)
          to label %300 unwind label %307

300:                                              ; preds = %298
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %36) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %36) #8
  %301 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer14setFutureStateENS0_5StateE(ptr noundef nonnull align 8 dereferenceable(440) %45, i32 noundef 2)
          to label %302 unwind label %265

302:                                              ; preds = %300
  br label %378

303:                                              ; preds = %296
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %4, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %5, align 4
  br label %311

307:                                              ; preds = %298
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %4, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %5, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %36) #8
  br label %311

311:                                              ; preds = %307, %303
  call void @llvm.lifetime.end.p0(i64 432, ptr %36) #8
  br label %380

312:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 432, ptr %37) #8
  %313 = getelementptr inbounds %"class.DynexCN::BlockchainSynchronizer", ptr %45, i32 0, i32 2
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %37, ptr noundef nonnull align 8 dereferenceable(40) %313, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %314 unwind label %355

314:                                              ; preds = %312
  %315 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %37, ptr noundef nonnull align 1 dereferenceable(53) @.str.83)
          to label %316 unwind label %359

316:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %317 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %28, i32 0, i32 1
  %318 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %317) #8
  store i64 %318, ptr %38, align 8, !tbaa !29
  %319 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %315, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %320 unwind label %363

320:                                              ; preds = %316
  %321 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA11_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %319, ptr noundef nonnull align 1 dereferenceable(11) @.str.80)
          to label %322 unwind label %363

322:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %323 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %28, i32 0, i32 2
  %324 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %323) #8
  store i64 %324, ptr %39, align 8, !tbaa !29
  %325 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %321, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %326 unwind label %367

326:                                              ; preds = %322
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %37) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %37) #8
  %327 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %28, i32 0, i32 2
  %328 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %11, i32 0, i32 2
  %329 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %328) #8
  %330 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %40, i32 0, i32 0
  store ptr %329, ptr %330, align 8
  %331 = getelementptr inbounds %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", ptr %11, i32 0, i32 2
  %332 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %331) #8
  %333 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %41, i32 0, i32 0
  store ptr %332, ptr %333, align 8
  %334 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %40, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8
  %336 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %41, i32 0, i32 0
  %337 = load ptr, ptr %336, align 8
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %327, ptr %335, ptr %337)
          to label %338 unwind label %265

338:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %339 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer14processPoolTxsERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %45, ptr noundef nonnull align 8 dereferenceable(56) %28)
          to label %340 unwind label %374

340:                                              ; preds = %338
  %341 = getelementptr inbounds { i32, ptr }, ptr %42, i32 0, i32 0
  %342 = extractvalue { i32, ptr } %339, 0
  store i32 %342, ptr %341, align 8
  %343 = getelementptr inbounds { i32, ptr }, ptr %42, i32 0, i32 1
  %344 = extractvalue { i32, ptr } %339, 1
  store ptr %344, ptr %343, align 8
  %345 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %45, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %42, i64 16, i1 false), !tbaa.struct !24
  store { i64, i64 } { i64 9, i64 0 }, ptr %44, align 8, !tbaa !10
  %346 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 0
  %347 = load i64, ptr %346, align 8
  %348 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 1
  %349 = load i64, ptr %348, align 8
  %350 = getelementptr inbounds { i32, ptr }, ptr %43, i32 0, i32 0
  %351 = load i32, ptr %350, align 8
  %352 = getelementptr inbounds { i32, ptr }, ptr %43, i32 0, i32 1
  %353 = load ptr, ptr %352, align 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %345, i64 %347, i64 %349, i32 %351, ptr %353)
          to label %354 unwind label %374

354:                                              ; preds = %340
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  br label %378

355:                                              ; preds = %312
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %4, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %5, align 4
  br label %373

359:                                              ; preds = %314
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %4, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %5, align 4
  br label %372

363:                                              ; preds = %320, %316
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %4, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %5, align 4
  br label %371

367:                                              ; preds = %322
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %4, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %371

371:                                              ; preds = %367, %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %372

372:                                              ; preds = %371, %359
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %37) #8
  br label %373

373:                                              ; preds = %372, %355
  call void @llvm.lifetime.end.p0(i64 432, ptr %37) #8
  br label %380

374:                                              ; preds = %340, %338
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %4, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  br label %380

378:                                              ; preds = %354, %302
  br label %379

379:                                              ; preds = %378, %260
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %28) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #8
  br label %382

380:                                              ; preds = %374, %373, %311, %288, %287, %265
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %28) #8
  br label %381

381:                                              ; preds = %380, %261
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #8
  br label %385

382:                                              ; preds = %379, %191
  br label %383

383:                                              ; preds = %382, %148
  br label %384

384:                                              ; preds = %383, %98
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #8
  ret void

385:                                              ; preds = %381, %210, %157, %134, %133, %111
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #8
  br label %386

386:                                              ; preds = %385, %107
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #8
  br label %387

387:                                              ; preds = %386, %103
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #8
  br label %388

388:                                              ; preds = %387, %99
  %389 = load ptr, ptr %4, align 8
  %390 = load i32, ptr %5, align 4
  %391 = insertvalue { ptr, i32 } poison, ptr %389, 0
  %392 = insertvalue { ptr, i32 } %391, i32 %390, 1
  resume { ptr, i32 } %392
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7DynexCN22BlockchainSynchronizer27getPoolUnionAndIntersectionERSt13unordered_setIN6Crypto4HashESt4hashIS3_ESt8equal_toIS3_ESaIS3_EESA_(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #6 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer30getPoolSymmetricDifferenceSyncEONS0_14GetPoolRequestERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA33_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(33)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA43_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(43)) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA67_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(67)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA42_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(42)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEbRKSt13unordered_setIT_T0_T1_T2_ESE_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #5

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer14processPoolTxsERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(56)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA78_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(78)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(53)) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 "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 = { inlinehint 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 #6 = { 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 #7 = { inlinehint 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 #8 = { 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, !13, i64 0}
!12 = !{!"_ZTSN7DynexCN22BlockchainSynchronizer15GetPoolResponseE", !13, i64 0, !14, i64 8, !18, i64 32}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_0", !6, i64 0}
!24 = !{i64 0, i64 4, !25, i64 8, i64 8, !5}
!25 = !{!26, !26, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !30, i64 0}
!30 = !{!"long", !7, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTSZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_1", !6, 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.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.Logging::LoggerMessage" = type <{ %"class.std::basic_ostream.base", %"class.std::basic_streambuf", ptr, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.boost::posix_time::ptime", i8, [7 x i8], %"class.std::basic_ios" }>
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::posix_time::ptime" = type { %"class.boost::date_time::base_time" }
%"class.boost::date_time::base_time" = type { %"struct.boost::date_time::counted_time_rep" }
%"struct.boost::date_time::counted_time_rep" = type { %"class.boost::date_time::int_adapter" }
%"class.boost::date_time::int_adapter" = type { i64 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, 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 }
%"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest" = type { %"class.std::vector.23", %"struct.Crypto::Hash" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = 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] }
%"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse" = type { i8, %"class.std::vector.122", %"class.std::vector.23" }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = 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.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.129 = type { ptr }
%class.anon.130 = type { ptr }

@_ZN7Logging10BRIGHT_REDB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@.str.24 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZN7Logging7DEFAULTB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@.str.76 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [53 x i8], align 1

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA3_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageESt10error_codeEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(52)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt10error_code7messageB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA11_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(11)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer16setFutureStateIfENS0_5StateEOSt8functionIFbvEE(ptr noundef nonnull align 8 dereferenceable(440), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN22BlockchainSynchronizer13startPoolSyncEv(ptr noundef nonnull align 8 dereferenceable(440) %0) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.Logging::LoggerMessage", align 8
  %3 = alloca %"class.std::unordered_set", align 8
  %4 = alloca %"class.std::unordered_set", align 8
  %5 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", align 8
  %6 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", align 8
  %7 = alloca %"class.std::error_code", align 8
  %8 = alloca %"class.Logging::LoggerMessage", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.129, align 8
  %12 = alloca %"class.Logging::LoggerMessage", align 8
  %13 = alloca %"class.Logging::LoggerMessage", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolRequest", align 8
  %17 = alloca %"struct.DynexCN::BlockchainSynchronizer::GetPoolResponse", align 8
  %18 = alloca %"class.std::error_code", align 8
  %19 = alloca %"class.Logging::LoggerMessage", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::function", align 8
  %22 = alloca %class.anon.130, align 8
  %23 = alloca %"class.Logging::LoggerMessage", align 8
  %24 = alloca %"class.Logging::LoggerMessage", align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %2) #8
  %27 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %2, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
  %28 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA33_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %2, ptr noundef nonnull align 1 dereferenceable(33) @.str.76)
          to label %29 unwind label %55

29:                                               ; preds = %1
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %2) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  invoke void @_ZNK7DynexCN22BlockchainSynchronizer27getPoolUnionAndIntersectionERSt13unordered_setIN6Crypto4HashESt4hashIS3_ESt8equal_toIS3_ESaIS3_EESA_(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %30 unwind label %57

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  %31 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  %32 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6assignINSt8__detail14_Node_iteratorIS1_Lb1ELb1EEEvEEvT_S8_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %31, ptr %32)
          to label %33 unwind label %59

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 216
  %35 = getelementptr inbounds i8, ptr %5, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %34, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  store i8 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %36 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer30getPoolSymmetricDifferenceSyncEONS0_14GetPoolRequestERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %37 unwind label %61

37:                                               ; preds = %33
  %38 = extractvalue { i32, ptr } %36, 0
  store i32 %38, ptr %7, align 8
  %39 = getelementptr inbounds i8, ptr %7, i64 8
  %40 = extractvalue { i32, ptr } %36, 1
  store ptr %40, ptr %39, align 8
  %41 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br i1 %41, label %42, label %76

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %8) #8
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging10BRIGHT_REDB5cxx11E)
          to label %43 unwind label %63

43:                                               ; preds = %42
  %44 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA43_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %8, ptr noundef nonnull align 1 dereferenceable(43) @.str.77)
          to label %45 unwind label %65

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageESt10error_codeEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %44, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %47 unwind label %65

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA3_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %46, ptr noundef nonnull align 1 dereferenceable(3) @.str.24)
          to label %49 unwind label %65

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  invoke void @_ZNKSt10error_code7messageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %50 unwind label %67

50:                                               ; preds = %49
  %51 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %48, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %52 unwind label %69

52:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %8) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  store ptr %0, ptr %11, align 8, !tbaa !21
  call void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %53 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer16setFutureStateIfENS0_5StateEOSt8functionIFbvEE(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %54 unwind label %74

54:                                               ; preds = %52
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  %.sroa.020.0.copyload = load i32, ptr %7, align 8, !tbaa !23
  %.sroa.222.0.copyload = load ptr, ptr %39, align 8, !tbaa !25
  br label %.invoke

55:                                               ; preds = %1
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %2) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %2) #8
  br label %221

57:                                               ; preds = %29
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %220

59:                                               ; preds = %30
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %219

61:                                               ; preds = %.invoke, %105, %102, %82, %33
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %218

63:                                               ; preds = %42
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %73

65:                                               ; preds = %47, %45, %43
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %72

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %71

71:                                               ; preds = %69, %67
  %.pn64 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %72

72:                                               ; preds = %71, %65
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %71 ], [ %66, %65 ]
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %8) #8
  br label %73

73:                                               ; preds = %72, %63
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %72 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %8) #8
  br label %218

74:                                               ; preds = %52
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %218

76:                                               ; preds = %37
  %77 = load i8, ptr %6, align 8, !tbaa !9, !range !26, !noundef !27
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %89, label %79

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %12) #8
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %80 unwind label %84

80:                                               ; preds = %79
  %81 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA67_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %12, ptr noundef nonnull align 1 dereferenceable(67) @.str.78)
          to label %82 unwind label %86

82:                                               ; preds = %80
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %12) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %12) #8
  %83 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer14setFutureStateENS0_5StateE(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef 2)
          to label %217 unwind label %61

84:                                               ; preds = %79
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %80
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %12) #8
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %12) #8
  br label %218

89:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %13) #8
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %90 unwind label %113

90:                                               ; preds = %89
  %91 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA42_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %13, ptr noundef nonnull align 1 dereferenceable(42) @.str.79)
          to label %92 unwind label %115

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %93 = getelementptr inbounds i8, ptr %6, i64 8
  %94 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #8
  store i64 %94, ptr %14, align 8, !tbaa !28
  %95 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %91, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %96 unwind label %117

96:                                               ; preds = %92
  %97 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA11_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %95, ptr noundef nonnull align 1 dereferenceable(11) @.str.80)
          to label %98 unwind label %117

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %99 = getelementptr inbounds i8, ptr %6, i64 32
  %100 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #8
  store i64 %100, ptr %15, align 8, !tbaa !28
  %101 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %97, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %102 unwind label %119

102:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %13) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %13) #8
  %103 = invoke noundef zeroext i1 @_ZSteqIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEbRKSt13unordered_setIT_T0_T1_T2_ESE_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %104 unwind label %61

104:                                              ; preds = %102
  br i1 %103, label %105, label %124

105:                                              ; preds = %104
  %106 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer14processPoolTxsERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %107 unwind label %61

107:                                              ; preds = %105
  %108 = extractvalue { i32, ptr } %106, 0
  %109 = extractvalue { i32, ptr } %106, 1
  br label %.invoke

.invoke:                                          ; preds = %54, %107
  %110 = phi i32 [ %108, %107 ], [ %.sroa.020.0.copyload, %54 ]
  %111 = phi ptr [ %109, %107 ], [ %.sroa.222.0.copyload, %54 ]
  %112 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %112, i64 9, i64 0, i32 %110, ptr %111)
          to label %217 unwind label %61

113:                                              ; preds = %89
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %123

115:                                              ; preds = %90
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %122

117:                                              ; preds = %96, %92
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %98
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %121

121:                                              ; preds = %119, %117
  %.pn47 = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %122

122:                                              ; preds = %121, %115
  %.pn47.pn = phi { ptr, i32 } [ %.pn47, %121 ], [ %116, %115 ]
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %13) #8
  br label %123

123:                                              ; preds = %122, %113
  %.pn47.pn.pn = phi { ptr, i32 } [ %.pn47.pn, %122 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %13) #8
  br label %218

124:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %16) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #8
  %125 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  %126 = call ptr @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6assignINSt8__detail14_Node_iteratorIS1_Lb1ELb1EEEvEEvT_S8_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr %125, ptr %126)
          to label %127 unwind label %149

127:                                              ; preds = %124
  %128 = getelementptr inbounds i8, ptr %16, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %128, ptr noundef nonnull align 8 dereferenceable(32) %34, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #8
  store i8 0, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %129 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer30getPoolSymmetricDifferenceSyncEONS0_14GetPoolRequestERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %130 unwind label %151

130:                                              ; preds = %127
  %131 = extractvalue { i32, ptr } %129, 0
  store i32 %131, ptr %18, align 8
  %132 = getelementptr inbounds i8, ptr %18, i64 8
  %133 = extractvalue { i32, ptr } %129, 1
  store ptr %133, ptr %132, align 8
  %134 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  br i1 %134, label %135, label %166

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %19) #8
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging10BRIGHT_REDB5cxx11E)
          to label %136 unwind label %153

136:                                              ; preds = %135
  %137 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA52_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %19, ptr noundef nonnull align 1 dereferenceable(52) @.str.81)
          to label %138 unwind label %155

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageESt10error_codeEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %137, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %140 unwind label %155

140:                                              ; preds = %138
  %141 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA3_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %139, ptr noundef nonnull align 1 dereferenceable(3) @.str.24)
          to label %142 unwind label %155

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #8
  invoke void @_ZNKSt10error_code7messageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %143 unwind label %157

143:                                              ; preds = %142
  %144 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %141, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %145 unwind label %159

145:                                              ; preds = %143
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %19) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  store ptr %0, ptr %22, align 8, !tbaa !30
  call void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %146 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer16setFutureStateIfENS0_5StateEOSt8functionIFbvEE(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %147 unwind label %164

147:                                              ; preds = %145
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  %148 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.09.0.copyload = load i32, ptr %18, align 8, !tbaa !23
  %.sroa.211.0.copyload = load ptr, ptr %132, align 8, !tbaa !25
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %148, i64 9, i64 0, i32 %.sroa.09.0.copyload, ptr %.sroa.211.0.copyload)
          to label %214 unwind label %151

149:                                              ; preds = %124
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %216

151:                                              ; preds = %192, %172, %147, %127
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %215

153:                                              ; preds = %135
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %163

155:                                              ; preds = %140, %138, %136
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %162

157:                                              ; preds = %142
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %161

159:                                              ; preds = %143
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  br label %161

161:                                              ; preds = %159, %157
  %.pn57 = phi { ptr, i32 } [ %160, %159 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #8
  br label %162

162:                                              ; preds = %161, %155
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %161 ], [ %156, %155 ]
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %19) #8
  br label %163

163:                                              ; preds = %162, %153
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %162 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %19) #8
  br label %215

164:                                              ; preds = %145
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %215

166:                                              ; preds = %130
  %167 = load i8, ptr %17, align 8, !tbaa !9, !range !26, !noundef !27
  %168 = trunc nuw i8 %167 to i1
  br i1 %168, label %179, label %169

169:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %23) #8
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %170 unwind label %174

170:                                              ; preds = %169
  %171 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA78_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %23, ptr noundef nonnull align 1 dereferenceable(78) @.str.82)
          to label %172 unwind label %176

172:                                              ; preds = %170
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %23) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %23) #8
  %173 = invoke noundef zeroext i1 @_ZN7DynexCN22BlockchainSynchronizer14setFutureStateENS0_5StateE(ptr noundef nonnull align 8 dereferenceable(440) %0, i32 noundef 2)
          to label %214 unwind label %151

174:                                              ; preds = %169
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %178

176:                                              ; preds = %170
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %23) #8
  br label %178

178:                                              ; preds = %176, %174
  %.pn51 = phi { ptr, i32 } [ %177, %176 ], [ %175, %174 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %23) #8
  br label %215

179:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %24) #8
  invoke void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %24, ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
          to label %180 unwind label %201

180:                                              ; preds = %179
  %181 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %24, ptr noundef nonnull align 1 dereferenceable(53) @.str.83)
          to label %182 unwind label %203

182:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  %183 = getelementptr inbounds i8, ptr %17, i64 8
  %184 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #8
  store i64 %184, ptr %25, align 8, !tbaa !28
  %185 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %181, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %186 unwind label %205

186:                                              ; preds = %182
  %187 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA11_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %185, ptr noundef nonnull align 1 dereferenceable(11) @.str.80)
          to label %188 unwind label %205

188:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  %189 = getelementptr inbounds i8, ptr %17, i64 32
  %190 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #8
  store i64 %190, ptr %26, align 8, !tbaa !28
  %191 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %187, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %192 unwind label %207

192:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %24) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %24) #8
  %193 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #8
  %194 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #8
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6assignIN9__gnu_cxx17__normal_iteratorIPS1_S3_EEvEEvT_S9_(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr %193, ptr %194)
          to label %195 unwind label %151

195:                                              ; preds = %192
  %196 = invoke { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer14processPoolTxsERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef nonnull align 8 dereferenceable(56) %17)
          to label %197 unwind label %212

197:                                              ; preds = %195
  %198 = extractvalue { i32, ptr } %196, 0
  %199 = extractvalue { i32, ptr } %196, 1
  %200 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN31IBlockchainSynchronizerObserverEE6notifyIMS2_FvSt10error_codeEJS5_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %200, i64 9, i64 0, i32 %198, ptr %199)
          to label %214 unwind label %212

201:                                              ; preds = %179
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %211

203:                                              ; preds = %180
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %210

205:                                              ; preds = %186, %182
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %209

207:                                              ; preds = %188
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  br label %209

209:                                              ; preds = %207, %205
  %.pn53 = phi { ptr, i32 } [ %208, %207 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  br label %210

210:                                              ; preds = %209, %203
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %209 ], [ %204, %203 ]
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %24) #8
  br label %211

211:                                              ; preds = %210, %201
  %.pn53.pn.pn = phi { ptr, i32 } [ %.pn53.pn, %210 ], [ %202, %201 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %24) #8
  br label %215

212:                                              ; preds = %197, %195
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %215

214:                                              ; preds = %197, %172, %147
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #8
  br label %217

215:                                              ; preds = %212, %211, %178, %164, %163, %151
  %.pn61 = phi { ptr, i32 } [ %152, %151 ], [ %165, %164 ], [ %.pn57.pn.pn, %163 ], [ %213, %212 ], [ %.pn53.pn.pn, %211 ], [ %.pn51, %178 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #8
  br label %216

216:                                              ; preds = %215, %149
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %215 ], [ %150, %149 ]
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #8
  br label %218

217:                                              ; preds = %.invoke, %82, %214
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  ret void

218:                                              ; preds = %216, %123, %88, %74, %73, %61
  %.pn68 = phi { ptr, i32 } [ %62, %61 ], [ %75, %74 ], [ %.pn64.pn.pn, %73 ], [ %.pn61.pn, %216 ], [ %.pn47.pn.pn, %123 ], [ %.pn, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #8
  br label %219

219:                                              ; preds = %218, %59
  %.pn68.pn = phi { ptr, i32 } [ %.pn68, %218 ], [ %60, %59 ]
  call void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  br label %220

220:                                              ; preds = %219, %57
  %.pn68.pn.pn = phi { ptr, i32 } [ %.pn68.pn, %219 ], [ %58, %57 ]
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  call void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  br label %221

221:                                              ; preds = %220, %55
  %.pn68.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn, %220 ], [ %56, %55 ]
  resume { ptr, i32 } %.pn68.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7DynexCN22BlockchainSynchronizer27getPoolUnionAndIntersectionERSt13unordered_setIN6Crypto4HashESt4hashIS3_ESt8equal_toIS3_ESaIS3_EESA_(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #6 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer30getPoolSymmetricDifferenceSyncEONS0_14GetPoolRequestERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer15GetPoolResponseD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN22BlockchainSynchronizer14GetPoolRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA33_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(33)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA43_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(43)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA67_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(67)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA42_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(42)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EEbRKSt13unordered_setIT_T0_T1_T2_ESE_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZN7DynexCN22BlockchainSynchronizer14processPoolTxsERNS0_15GetPoolResponseE(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbvEEC2IZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA78_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(78)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(53)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 "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 = { inlinehint 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 #6 = { 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 #7 = { inlinehint 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 #8 = { 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, !11, i64 0}
!10 = !{!"_ZTSN7DynexCN22BlockchainSynchronizer15GetPoolResponseE", !11, i64 0, !12, i64 8, !17, i64 32}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt6vectorISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN7DynexCN18ITransactionReaderESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!22, !16, i64 0}
!22 = !{!"_ZTSZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_0", !16, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!16, !16, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !29, i64 0}
!29 = !{!"long", !7, i64 0}
!30 = !{!31, !16, i64 0}
!31 = !{!"_ZTSZN7DynexCN22BlockchainSynchronizer13startPoolSyncEvE3$_1", !16, i64 0}


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