; LLVM IR from UBIC-repo/core :: Network/Network.ll (ZN7Network12lookForPeersEv)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::asio::ip::basic_resolver_results" = type { %"class.boost::asio::ip::basic_resolver_iterator" }
%"class.boost::asio::ip::basic_resolver_iterator" = type { %"class.std::shared_ptr.15", i64 }
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }
%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%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::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.4 }
%union.anon.4 = type { i32 }
%"class.std::shared_ptr.32" = type { %"class.std::__shared_ptr.33" }
%"class.std::__shared_ptr.33" = type { ptr, %"class.std::__shared_count" }
%"class.boost::asio::ip::basic_resolver" = type { %"class.boost::asio::detail::io_object_impl.11" }
%"class.boost::asio::detail::io_object_impl.11" = type { ptr, %"class.std::shared_ptr.12", %"class.boost::asio::execution::any_executor" }
%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.boost::asio::execution::any_executor" = type { %"class.boost::asio::execution::detail::any_executor_base", ptr }
%"class.boost::asio::execution::detail::any_executor_base" = type { %"union.std::aligned_storage<16, 8>::type", ptr, ptr, ptr }
%"union.std::aligned_storage<16, 8>::type" = type { [16 x i8] }
%"class.std::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.boost::asio::ip::basic_resolver_query" = type { %struct.addrinfo, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::shared_ptr.38" = type { %"class.std::__shared_ptr.39" }
%"class.std::__shared_ptr.39" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.44" = type { %"class.std::__shared_ptr.45" }
%"class.std::__shared_ptr.45" = type { ptr, %"class.std::__shared_count" }
%class.anon = type { %"class.std::shared_ptr.32" }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%class.CDataStream = type <{ %"class.std::vector.52", i32, i32, i32, [4 x i8] }>
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.TransmitBlockchainHeight = type { i8, i32, %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.NetworkMessage = type { i32, ptr }
%struct.AskForBlockchainHeight = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>>, std::less<std::__cxx11::basic_string<char>>>::_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 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.44" }
%struct.AskForPeers = type { i8 }

@_ZN7Network4myIPB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZTISt9exception = external constant ptr
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

; 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 @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network16getIpsFromGithubB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8) #3 align 2

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #4

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEC2INS0_10io_contextEEERT_PNSt9enable_ifIXsr14is_convertibleIS11_S8_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEE7resolveERKNS1_20basic_resolver_queryIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.boost::asio::ip::basic_resolver_results") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(112)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_NS1_13resolver_base5flagsE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #6 align 2

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Network12lookForPeersEv() #3 align 2 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.Log, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::shared_ptr.32", align 8
  %13 = alloca %"class.boost::asio::ip::basic_resolver", align 8
  %14 = alloca %"class.std::shared_ptr.35", align 8
  %15 = alloca %"class.boost::asio::ip::basic_resolver_results", align 8
  %16 = alloca %"class.boost::asio::ip::basic_resolver_query", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::shared_ptr.38", align 8
  %20 = alloca %"class.std::shared_ptr.44", align 8
  %21 = alloca %"class.std::shared_ptr.38", align 8
  %22 = alloca %class.anon, align 8
  %23 = alloca %"class.std::thread", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %class.CDataStream, align 8
  %26 = alloca %struct.TransmitBlockchainHeight, align 8
  %27 = alloca %class.NetworkMessage, align 8
  %28 = alloca %class.NetworkMessage, align 8
  %29 = alloca %class.CDataStream, align 8
  %30 = alloca %struct.AskForBlockchainHeight, align 1
  %31 = alloca %class.NetworkMessage, align 8
  %32 = alloca %class.NetworkMessage, align 8
  %33 = alloca ptr, align 8
  %34 = alloca %class.Log, align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.std::map", align 8
  %38 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %39 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %40 = alloca %"struct.std::pair", align 8
  %41 = alloca %struct.AskForPeers, align 1
  %42 = alloca %class.NetworkMessage, align 8
  %43 = alloca %struct.AskForPeers, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #10
  %44 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN5Peers8InstanceEv()
  store ptr %44, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #10
  call void @_ZN7Network16getIpsFromGithubB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  store ptr %2, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #10
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %4, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #10
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.28", ptr %5, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  br label %51

51:                                               ; preds = %308, %0
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %332

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #10
  %55 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %56 unwind label %67

56:                                               ; preds = %54
  %57 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Network4myIPB5cxx11E) #10
  br i1 %57, label %58, label %85

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 256, ptr %10) #10
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %10, i8 noundef zeroext 0)
          to label %59 unwind label %71

59:                                               ; preds = %58
  %60 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef @.str.18)
          to label %61 unwind label %75

61:                                               ; preds = %59
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %62 unwind label %75

62:                                               ; preds = %61
  %63 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %60, ptr noundef %11)
          to label %64 unwind label %79

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %63, ptr noundef @.str.19)
          to label %66 unwind label %79

66:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #10
  store i32 3, ptr %6, align 4
  br label %305

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  br label %331

71:                                               ; preds = %58
  %72 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  br label %84

75:                                               ; preds = %61, %59
  %76 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %8, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %9, align 4
  br label %83

79:                                               ; preds = %64, %62
  %80 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %83

83:                                               ; preds = %79, %75
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #10
  br label %84

84:                                               ; preds = %83, %71
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #10
  br label %281

85:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  invoke void @_ZSt11make_sharedIN5boost4asio10io_contextEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.32") align 8 %12)
          to label %86 unwind label %162

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #10
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt19__shared_ptr_accessIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #10
  invoke void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEC2INS0_10io_contextEEERT_PNSt9enable_ifIXsr14is_convertibleIS11_S8_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(72) %13, ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef null)
          to label %88 unwind label %166

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt19__shared_ptr_accessIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #10
  invoke void @_ZSt11make_sharedIN5boost4asio10io_context4workEJRS2_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES7_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.35") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %89)
          to label %90 unwind label %170

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 112, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %91 unwind label %174

91:                                               ; preds = %90
  invoke void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_NS1_13resolver_base5flagsE(ptr noundef nonnull align 8 dereferenceable(112) %16, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 32)
          to label %92 unwind label %178

92:                                               ; preds = %91
  invoke void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEE7resolveERKNS1_20basic_resolver_queryIS3_EE(ptr dead_on_unwind writable sret(%"class.boost::asio::ip::basic_resolver_results") align 8 %15, ptr noundef nonnull align 8 dereferenceable(72) %13, ptr noundef nonnull align 8 dereferenceable(112) %16)
          to label %93 unwind label %182

93:                                               ; preds = %92
  call void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %16) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  invoke void @_ZSt11make_sharedI10PeerClientJRSt10shared_ptrIN5boost4asio10io_contextEERNS3_2ip22basic_resolver_resultsINS7_3tcpEEERS1_INS4_4workEEEES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESG_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.38") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %94 unwind label %188

94:                                               ; preds = %93
  %95 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %96, i64 3
  %98 = load ptr, ptr %97, align 8
  invoke void %98(ptr noundef nonnull align 8 dereferenceable(392) %95, i32 noundef 0)
          to label %99 unwind label %192

99:                                               ; preds = %94
  %100 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  invoke void @_ZN10PeerClient5setIpERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(392) %100, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %101 unwind label %192

101:                                              ; preds = %99
  %102 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %103 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  invoke void @_ZN10PeerClient3getEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.38") align 8 %21, ptr noundef nonnull align 8 dereferenceable(392) %103)
          to label %104 unwind label %196

104:                                              ; preds = %101
  call void @_ZNSt10shared_ptrI13PeerInterfaceEC2I10PeerClientvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  %105 = invoke noundef zeroext i1 @_ZN5Peers10appendPeerESt10shared_ptrI13PeerInterfaceE(ptr noundef nonnull align 8 dereferenceable(48) %102, ptr noundef %20)
          to label %106 unwind label %200

106:                                              ; preds = %104
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  br i1 %105, label %107, label %268

107:                                              ; preds = %106
  %108 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %109, i64 5
  %111 = load ptr, ptr %110, align 8
  invoke void %111(ptr noundef nonnull align 8 dereferenceable(392) %108)
          to label %112 unwind label %192

112:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %113 = getelementptr inbounds %class.anon, ptr %22, i32 0, i32 0
  call void @_ZNSt10shared_ptrIN5boost4asio10io_contextEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  invoke void @"_ZNSt6threadC2IRZN7Network12lookForPeersEvE3$_0JEvEEOT_DpOT0_"(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %114 unwind label %205

114:                                              ; preds = %112
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %115 unwind label %209

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %116 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Chain8InstanceEv()
          to label %117 unwind label %213

117:                                              ; preds = %115
  store ptr %116, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %25, i32 noundef 2, i32 noundef 1)
          to label %118 unwind label %217

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #10
  call void @_ZN24TransmitBlockchainHeightC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  %119 = load ptr, ptr %24, align 8, !tbaa !5
  %120 = invoke noundef i32 @_ZN5Chain26getCurrentBlockchainHeightEv(ptr noundef nonnull align 8 dereferenceable(32) %119)
          to label %121 unwind label %221

121:                                              ; preds = %118
  %122 = getelementptr inbounds %struct.TransmitBlockchainHeight, ptr %26, i32 0, i32 1
  store i32 %120, ptr %122, align 4, !tbaa !11
  %123 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI24TransmitBlockchainHeightEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %124 unwind label %221

124:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #10
  invoke void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %125 unwind label %225

125:                                              ; preds = %124
  %126 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %25)
          to label %127 unwind label %229

127:                                              ; preds = %125
  invoke void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %126)
          to label %128 unwind label %229

128:                                              ; preds = %127
  %129 = invoke noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %130 unwind label %229

130:                                              ; preds = %128
  %131 = invoke noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %25)
          to label %132 unwind label %229

132:                                              ; preds = %130
  %133 = invoke noundef i64 @_ZNK14NetworkMessage11body_lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %134 unwind label %229

134:                                              ; preds = %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %129, ptr align 1 %131, i64 %133, i1 false)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %135 unwind label %229

135:                                              ; preds = %134
  %136 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  invoke void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %137 unwind label %229

137:                                              ; preds = %135
  %138 = load ptr, ptr %136, align 8, !tbaa !9
  %139 = getelementptr inbounds ptr, ptr %138, i64 1
  %140 = load ptr, ptr %139, align 8
  invoke void %140(ptr noundef nonnull align 8 dereferenceable(392) %136, ptr noundef %28)
          to label %141 unwind label %233

141:                                              ; preds = %137
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %29, i32 noundef 2, i32 noundef 1)
          to label %142 unwind label %237

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #10
  call void @_ZN22AskForBlockchainHeightC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  %143 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI22AskForBlockchainHeightEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %29, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %144 unwind label %241

144:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  invoke void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %145 unwind label %245

145:                                              ; preds = %144
  %146 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %29)
          to label %147 unwind label %249

147:                                              ; preds = %145
  invoke void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %31, i64 noundef %146)
          to label %148 unwind label %249

148:                                              ; preds = %147
  %149 = invoke noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %150 unwind label %249

150:                                              ; preds = %148
  %151 = invoke noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %29)
          to label %152 unwind label %249

152:                                              ; preds = %150
  %153 = invoke noundef i64 @_ZNK14NetworkMessage11body_lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %154 unwind label %249

154:                                              ; preds = %152
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %149, ptr align 1 %151, i64 %153, i1 false)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %155 unwind label %249

155:                                              ; preds = %154
  %156 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  invoke void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %157 unwind label %249

157:                                              ; preds = %155
  %158 = load ptr, ptr %156, align 8, !tbaa !9
  %159 = getelementptr inbounds ptr, ptr %158, i64 1
  %160 = load ptr, ptr %159, align 8
  invoke void %160(ptr noundef nonnull align 8 dereferenceable(392) %156, ptr noundef %32)
          to label %161 unwind label %253

161:                                              ; preds = %157
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  call void @_ZN24TransmitBlockchainHeightD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @"_ZZN7Network12lookForPeersEvEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %274

162:                                              ; preds = %85
  %163 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %8, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %9, align 4
  br label %280

166:                                              ; preds = %86
  %167 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %8, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %9, align 4
  br label %279

170:                                              ; preds = %88
  %171 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %8, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %9, align 4
  br label %278

174:                                              ; preds = %90
  %175 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %8, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %9, align 4
  br label %187

178:                                              ; preds = %91
  %179 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %8, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %9, align 4
  br label %186

182:                                              ; preds = %92
  %183 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %8, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %9, align 4
  call void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %16) #10
  br label %186

186:                                              ; preds = %182, %178
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  br label %187

187:                                              ; preds = %186, %174
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %16) #10
  br label %277

188:                                              ; preds = %93
  %189 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %8, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %9, align 4
  br label %276

192:                                              ; preds = %268, %107, %99, %94
  %193 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %8, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %9, align 4
  br label %275

196:                                              ; preds = %101
  %197 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %8, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %9, align 4
  br label %204

200:                                              ; preds = %104
  %201 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %8, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %9, align 4
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br label %204

204:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  br label %275

205:                                              ; preds = %112
  %206 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %8, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %9, align 4
  br label %267

209:                                              ; preds = %114
  %210 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %8, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %9, align 4
  br label %266

213:                                              ; preds = %115
  %214 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %8, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %9, align 4
  br label %265

217:                                              ; preds = %117
  %218 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %8, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %9, align 4
  br label %264

221:                                              ; preds = %121, %118
  %222 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %8, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %9, align 4
  br label %263

225:                                              ; preds = %124
  %226 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %8, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %9, align 4
  br label %262

229:                                              ; preds = %135, %134, %132, %130, %128, %127, %125
  %230 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %8, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %9, align 4
  br label %261

233:                                              ; preds = %137
  %234 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %8, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %9, align 4
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #10
  br label %261

237:                                              ; preds = %141
  %238 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %8, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %9, align 4
  br label %260

241:                                              ; preds = %142
  %242 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %8, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %9, align 4
  br label %259

245:                                              ; preds = %144
  %246 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %8, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %9, align 4
  br label %258

249:                                              ; preds = %155, %154, %152, %150, %148, %147, %145
  %250 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %8, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %9, align 4
  br label %257

253:                                              ; preds = %157
  %254 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %8, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %9, align 4
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #10
  br label %257

257:                                              ; preds = %253, %249
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #10
  br label %258

258:                                              ; preds = %257, %245
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  br label %259

259:                                              ; preds = %258, %241
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29) #10
  br label %260

260:                                              ; preds = %259, %237
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #10
  br label %261

261:                                              ; preds = %260, %233, %229
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #10
  br label %262

262:                                              ; preds = %261, %225
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  br label %263

263:                                              ; preds = %262, %221
  call void @_ZN24TransmitBlockchainHeightD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #10
  br label %264

264:                                              ; preds = %263, %217
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #10
  br label %265

265:                                              ; preds = %264, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %266

266:                                              ; preds = %265, %209
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  br label %267

267:                                              ; preds = %266, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @"_ZZN7Network12lookForPeersEvEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %275

268:                                              ; preds = %106
  %269 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  %270 = load ptr, ptr %269, align 8, !tbaa !9
  %271 = getelementptr inbounds ptr, ptr %270, i64 4
  %272 = load ptr, ptr %271, align 8
  invoke void %272(ptr noundef nonnull align 8 dereferenceable(392) %269)
          to label %273 unwind label %192

273:                                              ; preds = %268
  br label %274

274:                                              ; preds = %273, %161
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @_ZN5boost4asio2ip23basic_resolver_iteratorINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_context4workELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #10
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  br label %304

275:                                              ; preds = %267, %204, %192
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #10
  br label %276

276:                                              ; preds = %275, %188
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @_ZN5boost4asio2ip23basic_resolver_iteratorINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  br label %277

277:                                              ; preds = %276, %187
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_context4workELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  br label %278

278:                                              ; preds = %277, %170
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #10
  br label %279

279:                                              ; preds = %278, %166
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  br label %280

280:                                              ; preds = %279, %162
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  br label %281

281:                                              ; preds = %280, %84
  %282 = load i32, ptr %9, align 4
  %283 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #10
  %284 = icmp eq i32 %282, %283
  br i1 %284, label %285, label %330

285:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  %286 = load ptr, ptr %8, align 8
  %287 = call ptr @__cxa_begin_catch(ptr %286) #10
  store ptr %287, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr %34) #10
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %34, i8 noundef zeroext 3)
          to label %288 unwind label %310

288:                                              ; preds = %285
  %289 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %34, ptr noundef @.str.21)
          to label %290 unwind label %314

290:                                              ; preds = %288
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %291 unwind label %314

291:                                              ; preds = %290
  %292 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %289, ptr noundef %35)
          to label %293 unwind label %318

293:                                              ; preds = %291
  %294 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %292, ptr noundef @.str.22)
          to label %295 unwind label %318

295:                                              ; preds = %293
  %296 = load ptr, ptr %33, align 8, !tbaa !5
  %297 = load ptr, ptr %296, align 8, !tbaa !9
  %298 = getelementptr inbounds ptr, ptr %297, i64 2
  %299 = load ptr, ptr %298, align 8
  %300 = call noundef ptr %299(ptr noundef nonnull align 8 dereferenceable(8) %296) #10
  %301 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %294, ptr noundef %300)
          to label %302 unwind label %318

302:                                              ; preds = %295
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %34) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %34) #10
  invoke void @__cxa_end_catch()
          to label %303 unwind label %324

303:                                              ; preds = %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %304

304:                                              ; preds = %303, %274
  store i32 0, ptr %6, align 4
  br label %305

305:                                              ; preds = %304, %66
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #10
  %306 = load i32, ptr %6, align 4
  switch i32 %306, label %393 [
    i32 0, label %307
    i32 3, label %308
  ]

307:                                              ; preds = %305
  br label %308

308:                                              ; preds = %307, %305
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  br label %51

310:                                              ; preds = %285
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %8, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %9, align 4
  br label %323

314:                                              ; preds = %290, %288
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %8, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %9, align 4
  br label %322

318:                                              ; preds = %295, %293, %291
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %8, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  br label %322

322:                                              ; preds = %318, %314
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %34) #10
  br label %323

323:                                              ; preds = %322, %310
  call void @llvm.lifetime.end.p0(i64 256, ptr %34) #10
  invoke void @__cxa_end_catch()
          to label %328 unwind label %390

324:                                              ; preds = %302
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %8, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %9, align 4
  br label %329

328:                                              ; preds = %323
  br label %329

329:                                              ; preds = %328, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %330

330:                                              ; preds = %329, %281
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %331

331:                                              ; preds = %330, %67
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %384

332:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #10
  %333 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8 %37, ptr noundef nonnull align 8 dereferenceable(48) %333)
          to label %334 unwind label %344

334:                                              ; preds = %332
  store ptr %37, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  %335 = load ptr, ptr %36, align 8, !tbaa !5
  %336 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %335) #10
  %337 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %38, i32 0, i32 0
  store ptr %336, ptr %337, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  %338 = load ptr, ptr %36, align 8, !tbaa !5
  %339 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %338) #10
  %340 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %39, i32 0, i32 0
  store ptr %339, ptr %340, align 8
  br label %341

341:                                              ; preds = %360, %334
  %342 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #10
  br i1 %342, label %348, label %343

343:                                              ; preds = %341
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %377

344:                                              ; preds = %332
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %8, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %9, align 4
  br label %376

348:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 48, ptr %40) #10
  %349 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #10
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48) %40, ptr noundef nonnull align 8 dereferenceable(48) %349)
          to label %350 unwind label %362

350:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #10
  call void @_ZN11AskForPeersC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #10
  %351 = getelementptr inbounds %"struct.std::pair", ptr %40, i32 0, i32 1
  %352 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %351) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %43, ptr align 1 %41, i64 1, i1 false), !tbaa.struct !18
  %353 = getelementptr inbounds %struct.AskForPeers, ptr %43, i32 0, i32 0
  %354 = load i8, ptr %353, align 1
  invoke void @_ZN20NetworkMessageHelper25serializeToNetworkMessageI11AskForPeersEE14NetworkMessageT_(ptr dead_on_unwind writable sret(%class.NetworkMessage) align 8 %42, i8 %354)
          to label %355 unwind label %366

355:                                              ; preds = %350
  %356 = load ptr, ptr %352, align 8, !tbaa !9
  %357 = getelementptr inbounds ptr, ptr %356, i64 1
  %358 = load ptr, ptr %357, align 8
  invoke void %358(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef %42)
          to label %359 unwind label %370

359:                                              ; preds = %355
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #10
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %40) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %40) #10
  br label %360

360:                                              ; preds = %359
  %361 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #10
  br label %341

362:                                              ; preds = %348
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %8, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %9, align 4
  br label %375

366:                                              ; preds = %350
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %8, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %9, align 4
  br label %374

370:                                              ; preds = %355
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %8, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %9, align 4
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #10
  br label %374

374:                                              ; preds = %370, %366
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #10
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %40) #10
  br label %375

375:                                              ; preds = %374, %362
  call void @llvm.lifetime.end.p0(i64 48, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #10
  br label %376

376:                                              ; preds = %375, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %384

377:                                              ; preds = %343
  %378 = invoke i32 @sleep(i32 noundef 2)
          to label %379 unwind label %380

379:                                              ; preds = %377
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #10
  ret void

380:                                              ; preds = %377
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %8, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %9, align 4
  br label %384

384:                                              ; preds = %380, %376, %331
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #10
  br label %385

385:                                              ; preds = %384
  %386 = load ptr, ptr %8, align 8
  %387 = load i32, ptr %9, align 4
  %388 = insertvalue { ptr, i32 } poison, ptr %386, 0
  %389 = insertvalue { ptr, i32 } %388, i32 %387, 1
  resume { ptr, i32 } %389

390:                                              ; preds = %323
  %391 = landingpad { ptr, i32 }
          catch ptr null
  %392 = extractvalue { ptr, i32 } %391, 0
  call void @__clang_call_terminate(ptr %392) #11
  unreachable

393:                                              ; preds = %305
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN5boost4asio10io_contextEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.32") align 8) #8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN5boost4asio10io_context4workEJRS2_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES7_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.35") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedI10PeerClientJRSt10shared_ptrIN5boost4asio10io_contextEERNS3_2ip22basic_resolver_resultsINS7_3tcpEEERS1_INS4_4workEEEES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESG_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.38") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #8

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

declare void @_ZN10PeerClient5setIpERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare noundef zeroext i1 @_ZN5Peers10appendPeerESt10shared_ptrI13PeerInterfaceE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PeerClient3getEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.38") align 8, ptr noundef nonnull align 8 dereferenceable(392)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt6threadC2IRZN7Network12lookForPeersEvE3$_0JEvEEOT_DpOT0_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

declare void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN24TransmitBlockchainHeightC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare noundef i32 @_ZN5Chain26getCurrentBlockchainHeightEv(ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI24TransmitBlockchainHeightEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

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

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

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

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

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

; 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) #9

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN22AskForBlockchainHeightC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN24TransmitBlockchainHeightD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN7Network12lookForPeersEvEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

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

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

declare void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11AskForPeersC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20NetworkMessageHelper25serializeToNetworkMessageI11AskForPeersEE14NetworkMessageT_(ptr dead_on_unwind noalias writable sret(%class.NetworkMessage) align 8, i8) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

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

declare i32 @sleep(i32 noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { 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 #7 = { nounwind memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !13, i64 4}
!12 = !{!"_ZTS24TransmitBlockchainHeight", !7, i64 0, !13, i64 4, !14, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIhSaIhEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{i64 0, i64 1, !19}
!19 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::asio::ip::basic_resolver_results" = type { %"class.boost::asio::ip::basic_resolver_iterator" }
%"class.boost::asio::ip::basic_resolver_iterator" = type { %"class.std::shared_ptr.15", i64 }
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.28" = type { ptr }
%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%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::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.4 }
%union.anon.4 = type { i32 }
%"class.std::shared_ptr.32" = type { %"class.std::__shared_ptr.33" }
%"class.std::__shared_ptr.33" = type { ptr, %"class.std::__shared_count" }
%"class.boost::asio::ip::basic_resolver" = type { %"class.boost::asio::detail::io_object_impl.11" }
%"class.boost::asio::detail::io_object_impl.11" = type { ptr, %"class.std::shared_ptr.12", %"class.boost::asio::execution::any_executor" }
%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.boost::asio::execution::any_executor" = type { %"class.boost::asio::execution::detail::any_executor_base", ptr }
%"class.boost::asio::execution::detail::any_executor_base" = type { %"union.std::aligned_storage<16, 8>::type", ptr, ptr, ptr }
%"union.std::aligned_storage<16, 8>::type" = type { [16 x i8] }
%"class.std::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.boost::asio::ip::basic_resolver_query" = type { %struct.addrinfo, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::shared_ptr.38" = type { %"class.std::__shared_ptr.39" }
%"class.std::__shared_ptr.39" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.44" = type { %"class.std::__shared_ptr.45" }
%"class.std::__shared_ptr.45" = type { ptr, %"class.std::__shared_count" }
%class.anon = type { %"class.std::shared_ptr.32" }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%class.CDataStream = type <{ %"class.std::vector.52", i32, i32, i32, [4 x i8] }>
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.TransmitBlockchainHeight = type { i8, i32, %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.NetworkMessage = type { i32, ptr }
%struct.AskForBlockchainHeight = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<PeerInterface>>>, std::less<std::__cxx11::basic_string<char>>>::_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 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.44" }
%struct.AskForPeers = type { i8 }

@_ZN7Network4myIPB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZTISt9exception = external constant ptr
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; 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 @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network16getIpsFromGithubB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8) local_unnamed_addr #3 align 2

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEC2INS0_10io_contextEEERT_PNSt9enable_ifIXsr14is_convertibleIS11_S8_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEE7resolveERKNS1_20basic_resolver_queryIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.boost::asio::ip::basic_resolver_results") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_NS1_13resolver_base5flagsE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #6 align 2

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Network12lookForPeersEv() local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.28", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %class.Log, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::shared_ptr.32", align 8
  %8 = alloca %"class.boost::asio::ip::basic_resolver", align 8
  %9 = alloca %"class.std::shared_ptr.35", align 8
  %10 = alloca %"class.boost::asio::ip::basic_resolver_results", align 8
  %11 = alloca %"class.boost::asio::ip::basic_resolver_query", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::shared_ptr.38", align 8
  %15 = alloca %"class.std::shared_ptr.44", align 8
  %16 = alloca %"class.std::shared_ptr.38", align 8
  %17 = alloca %class.anon, align 8
  %18 = alloca %"class.std::thread", align 8
  %19 = alloca %class.CDataStream, align 8
  %20 = alloca %struct.TransmitBlockchainHeight, align 8
  %21 = alloca %class.NetworkMessage, align 8
  %22 = alloca %class.NetworkMessage, align 8
  %23 = alloca %class.CDataStream, align 8
  %24 = alloca %struct.AskForBlockchainHeight, align 1
  %25 = alloca %class.NetworkMessage, align 8
  %26 = alloca %class.NetworkMessage, align 8
  %27 = alloca %class.Log, align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::map", align 8
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %struct.AskForPeers, align 1
  %34 = alloca %class.NetworkMessage, align 8
  %35 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN5Peers8InstanceEv()
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #10
  call void @_ZN7Network16getIpsFromGithubB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %36 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  store ptr %36, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %37 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  store ptr %37, ptr %3, align 8
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %38, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %39 = getelementptr inbounds i8, ptr %20, i64 4
  br label %40

._crit_edge:                                      ; preds = %203, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %29) #10
  invoke void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::map") align 8 %29, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %218 unwind label %224

40:                                               ; preds = %.lr.ph, %203
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #10
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %42 unwind label %53

42:                                               ; preds = %40
  %43 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Network4myIPB5cxx11E) #10
  br i1 %43, label %44, label %65

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #10
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %5, i8 noundef zeroext 0)
          to label %45 unwind label %57

45:                                               ; preds = %44
  %46 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %5, ptr noundef nonnull @.str.18)
          to label %47 unwind label %59

47:                                               ; preds = %45
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %48 unwind label %59

48:                                               ; preds = %47
  %49 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %46, ptr noundef nonnull %6)
          to label %50 unwind label %61

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %49, ptr noundef nonnull @.str.19)
          to label %52 unwind label %61

52:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  br label %203

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  %56 = extractvalue { ptr, i32 } %54, 1
  br label %217

57:                                               ; preds = %44
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %64

59:                                               ; preds = %47, %45
  %60 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %63

61:                                               ; preds = %50, %48
  %62 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  br label %63

63:                                               ; preds = %61, %59
  %.pn63 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #10
  br label %64

64:                                               ; preds = %63, %57
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %63 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  br label %184

65:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  invoke void @_ZSt11make_sharedIN5boost4asio10io_contextEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.32") align 8 %7)
          to label %66 unwind label %123

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #10
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt19__shared_ptr_accessIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #10
  invoke void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEC2INS0_10io_contextEEERT_PNSt9enable_ifIXsr14is_convertibleIS11_S8_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef null)
          to label %68 unwind label %125

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt19__shared_ptr_accessIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #10
  invoke void @_ZSt11make_sharedIN5boost4asio10io_context4workEJRS2_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES7_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.35") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %69)
          to label %70 unwind label %127

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %71 unwind label %129

71:                                               ; preds = %70
  invoke void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_NS1_13resolver_base5flagsE(ptr noundef nonnull align 8 dereferenceable(112) %11, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 32)
          to label %72 unwind label %131

72:                                               ; preds = %71
  invoke void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEE7resolveERKNS1_20basic_resolver_queryIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.boost::asio::ip::basic_resolver_results") align 8 %10, ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef nonnull align 8 dereferenceable(112) %11)
          to label %73 unwind label %133

73:                                               ; preds = %72
  call void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  invoke void @_ZSt11make_sharedI10PeerClientJRSt10shared_ptrIN5boost4asio10io_contextEERNS3_2ip22basic_resolver_resultsINS7_3tcpEEERS1_INS4_4workEEEES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESG_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.38") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %74 unwind label %137

74:                                               ; preds = %73
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 24
  %78 = load ptr, ptr %77, align 8
  invoke void %78(ptr noundef nonnull align 8 dereferenceable(392) %75, i32 noundef 0)
          to label %79 unwind label %139

79:                                               ; preds = %74
  %80 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  invoke void @_ZN10PeerClient5setIpERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(392) %80, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %81 unwind label %139

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  %82 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  invoke void @_ZN10PeerClient3getEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.38") align 8 %16, ptr noundef nonnull align 8 dereferenceable(392) %82)
          to label %83 unwind label %141

83:                                               ; preds = %81
  call void @_ZNSt10shared_ptrI13PeerInterfaceEC2I10PeerClientvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  %84 = invoke noundef zeroext i1 @_ZN5Peers10appendPeerESt10shared_ptrI13PeerInterfaceE(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull %15)
          to label %85 unwind label %143

85:                                               ; preds = %83
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #10
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  %86 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  br i1 %84, label %88, label %174

88:                                               ; preds = %85
  %89 = getelementptr inbounds i8, ptr %87, i64 40
  %90 = load ptr, ptr %89, align 8
  invoke void %90(ptr noundef nonnull align 8 dereferenceable(392) %86)
          to label %91 unwind label %139

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @_ZNSt10shared_ptrIN5boost4asio10io_contextEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  invoke void @"_ZNSt6threadC2IRZN7Network12lookForPeersEvE3$_0JEvEEOT_DpOT0_"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %92 unwind label %146

92:                                               ; preds = %91
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %93 unwind label %148

93:                                               ; preds = %92
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Chain8InstanceEv()
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %19, i32 noundef 2, i32 noundef 1)
          to label %95 unwind label %150

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #10
  call void @_ZN24TransmitBlockchainHeightC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  %96 = invoke noundef i32 @_ZN5Chain26getCurrentBlockchainHeightEv(ptr noundef nonnull align 8 dereferenceable(32) %94)
          to label %97 unwind label %152

97:                                               ; preds = %95
  store i32 %96, ptr %39, align 4, !tbaa !8
  %98 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI24TransmitBlockchainHeightEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %19, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %99 unwind label %152

99:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #10
  call void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
  %100 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %19)
  call void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %100)
  %101 = call noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
  %102 = call noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %19)
  %103 = call noundef i64 @_ZNK14NetworkMessage11body_lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %101, ptr align 1 %102, i64 %103, i1 false)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %104 unwind label %154

104:                                              ; preds = %99
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  call void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = load ptr, ptr %107, align 8
  invoke void %108(ptr noundef nonnull align 8 dereferenceable(392) %105, ptr noundef nonnull %22)
          to label %109 unwind label %156

109:                                              ; preds = %104
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %23) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %23, i32 noundef 2, i32 noundef 1)
          to label %110 unwind label %158

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #10
  call void @_ZN22AskForBlockchainHeightC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  %111 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI22AskForBlockchainHeightEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %112 unwind label %160

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #10
  call void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25)
  %113 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %23)
  call void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %113)
  %114 = call noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  %115 = call noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %23)
  %116 = call noundef i64 @_ZNK14NetworkMessage11body_lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %114, ptr align 1 %115, i64 %116, i1 false)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %117 unwind label %162

117:                                              ; preds = %112
  %118 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10PeerClientLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #10
  call void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = load ptr, ptr %120, align 8
  invoke void %121(ptr noundef nonnull align 8 dereferenceable(392) %118, ptr noundef nonnull %26)
          to label %122 unwind label %164

122:                                              ; preds = %117
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  call void @_ZN24TransmitBlockchainHeightD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #10
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @"_ZZN7Network12lookForPeersEvEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %177

123:                                              ; preds = %65
  %124 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %183

125:                                              ; preds = %66
  %126 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %182

127:                                              ; preds = %68
  %128 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %181

129:                                              ; preds = %70
  %130 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %136

131:                                              ; preds = %71
  %132 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %135

133:                                              ; preds = %72
  %134 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN5boost4asio2ip20basic_resolver_queryINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(112) %11) #10
  br label %135

135:                                              ; preds = %133, %131
  %.pn43 = phi { ptr, i32 } [ %134, %133 ], [ %132, %131 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %136

136:                                              ; preds = %135, %129
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %135 ], [ %130, %129 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %11) #10
  br label %180

137:                                              ; preds = %73
  %138 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %179

139:                                              ; preds = %174, %88, %79, %74
  %140 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %178

141:                                              ; preds = %81
  %142 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %145

143:                                              ; preds = %83
  %144 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #10
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  br label %145

145:                                              ; preds = %143, %141
  %.pn46 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  br label %178

146:                                              ; preds = %91
  %147 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %173

148:                                              ; preds = %92
  %149 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %172

150:                                              ; preds = %93
  %151 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %171

152:                                              ; preds = %97, %95
  %153 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %170

154:                                              ; preds = %99
  %155 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %169

156:                                              ; preds = %104
  %157 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #10
  br label %169

158:                                              ; preds = %109
  %159 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %168

160:                                              ; preds = %110
  %161 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %167

162:                                              ; preds = %112
  %163 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %166

164:                                              ; preds = %117
  %165 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #10
  br label %166

166:                                              ; preds = %164, %162
  %.pn48 = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #10
  br label %167

167:                                              ; preds = %166, %160
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %166 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #10
  br label %168

168:                                              ; preds = %167, %158
  %.pn48.pn.pn = phi { ptr, i32 } [ %.pn48.pn, %167 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #10
  br label %169

169:                                              ; preds = %168, %156, %154
  %.pn48.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn, %168 ], [ %157, %156 ], [ %155, %154 ]
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  br label %170

170:                                              ; preds = %169, %152
  %.pn48.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn, %169 ], [ %153, %152 ]
  call void @_ZN24TransmitBlockchainHeightD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #10
  br label %171

171:                                              ; preds = %170, %150
  %.pn48.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn, %170 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #10
  br label %172

172:                                              ; preds = %171, %148
  %.pn48.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn, %171 ], [ %149, %148 ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  br label %173

173:                                              ; preds = %172, %146
  %.pn48.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn, %172 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @"_ZZN7Network12lookForPeersEvEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %178

174:                                              ; preds = %85
  %175 = getelementptr inbounds i8, ptr %87, i64 32
  %176 = load ptr, ptr %175, align 8
  invoke void %176(ptr noundef nonnull align 8 dereferenceable(392) %86)
          to label %177 unwind label %139

177:                                              ; preds = %174, %122
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN5boost4asio2ip23basic_resolver_iteratorINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_context4workELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #10
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  br label %203

178:                                              ; preds = %173, %145, %139
  %.pn48.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn.pn, %173 ], [ %140, %139 ], [ %.pn46, %145 ]
  call void @_ZNSt12__shared_ptrI10PeerClientLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  br label %179

179:                                              ; preds = %178, %137
  %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn.pn.pn, %178 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN5boost4asio2ip23basic_resolver_iteratorINS1_3tcpEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  br label %180

180:                                              ; preds = %179, %136
  %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn, %179 ], [ %.pn43.pn, %136 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_context4workELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  br label %181

181:                                              ; preds = %180, %127
  %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %180 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @_ZN5boost4asio2ip14basic_resolverINS1_3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #10
  br label %182

182:                                              ; preds = %181, %125
  %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %181 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #10
  call void @_ZNSt12__shared_ptrIN5boost4asio10io_contextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  br label %183

183:                                              ; preds = %182, %123
  %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %182 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  br label %184

184:                                              ; preds = %183, %64
  %.pn63.pn.pn = phi { ptr, i32 } [ %.pn63.pn, %64 ], [ %.pn48.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %183 ]
  %.19 = extractvalue { ptr, i32 } %.pn63.pn.pn, 0
  %.1930 = extractvalue { ptr, i32 } %.pn63.pn.pn, 1
  %185 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %186 = icmp eq i32 %.1930, %185
  br i1 %186, label %187, label %.loopexit

187:                                              ; preds = %184
  %188 = call ptr @__cxa_begin_catch(ptr %.19) #10
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %27) #10
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %27, i8 noundef zeroext 3)
          to label %189 unwind label %206

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %27, ptr noundef nonnull @.str.21)
          to label %191 unwind label %208

191:                                              ; preds = %189
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %192 unwind label %208

192:                                              ; preds = %191
  %193 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %190, ptr noundef nonnull %28)
          to label %194 unwind label %210

194:                                              ; preds = %192
  %195 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %193, ptr noundef nonnull @.str.22)
          to label %196 unwind label %210

196:                                              ; preds = %194
  %197 = load ptr, ptr %188, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 16
  %199 = load ptr, ptr %198, align 8
  %200 = call noundef ptr %199(ptr noundef nonnull align 8 dereferenceable(8) %188) #10
  %201 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %195, ptr noundef %200)
          to label %202 unwind label %210

202:                                              ; preds = %196
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %27) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %27) #10
  invoke void @__cxa_end_catch()
          to label %203 unwind label %214

203:                                              ; preds = %177, %202, %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #10
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  %205 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %205, label %40, label %._crit_edge

206:                                              ; preds = %187
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %213

208:                                              ; preds = %191, %189
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %212

210:                                              ; preds = %196, %194, %192
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  br label %212

212:                                              ; preds = %210, %208
  %.pn67 = phi { ptr, i32 } [ %211, %210 ], [ %209, %208 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %27) #10
  br label %213

213:                                              ; preds = %212, %206
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %212 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %27) #10
  invoke void @__cxa_end_catch()
          to label %216 unwind label %254

214:                                              ; preds = %202
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %216

216:                                              ; preds = %213, %214
  %.pn70 = phi { ptr, i32 } [ %215, %214 ], [ %.pn67.pn, %213 ]
  %.22 = extractvalue { ptr, i32 } %.pn70, 0
  %.2233 = extractvalue { ptr, i32 } %.pn70, 1
  br label %.loopexit

.loopexit:                                        ; preds = %184, %216
  %.2334 = phi i32 [ %.2233, %216 ], [ %.1930, %184 ]
  %.23 = phi ptr [ %.22, %216 ], [ %.19, %184 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #10
  br label %217

217:                                              ; preds = %.loopexit, %53
  %.2435 = phi i32 [ %.2334, %.loopexit ], [ %56, %53 ]
  %.24 = phi ptr [ %.23, %.loopexit ], [ %55, %53 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  br label %251

218:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #10
  %219 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #10
  store ptr %219, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #10
  %220 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #10
  store ptr %220, ptr %31, align 8
  %221 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  br i1 %221, label %.lr.ph81, label %._crit_edge82

.lr.ph81:                                         ; preds = %218
  %222 = getelementptr inbounds i8, ptr %32, i64 32
  br label %226

._crit_edge82:                                    ; preds = %234, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #10
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %29) #10
  %223 = invoke i32 @sleep(i32 noundef 2)
          to label %246 unwind label %247

224:                                              ; preds = %._crit_edge
  %225 = landingpad { ptr, i32 }
          cleanup
  br label %245

226:                                              ; preds = %.lr.ph81, %234
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %32) #10
  %227 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 8 dereferenceable(48) %227)
          to label %228 unwind label %237

228:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #10
  call void @_ZN11AskForPeersC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  %229 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %222) #10
  %.sroa.0.0.copyload = load i8, ptr %33, align 1, !tbaa !17
  invoke void @_ZN20NetworkMessageHelper25serializeToNetworkMessageI11AskForPeersEE14NetworkMessageT_(ptr dead_on_unwind nonnull writable sret(%class.NetworkMessage) align 8 %34, i8 %.sroa.0.0.copyload)
          to label %230 unwind label %239

230:                                              ; preds = %228
  %231 = load ptr, ptr %229, align 8, !tbaa !5
  %232 = getelementptr inbounds i8, ptr %231, i64 8
  %233 = load ptr, ptr %232, align 8
  invoke void %233(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef nonnull %34)
          to label %234 unwind label %241

234:                                              ; preds = %230
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #10
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %32) #10
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  %236 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  br i1 %236, label %226, label %._crit_edge82

237:                                              ; preds = %226
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %244

239:                                              ; preds = %228
  %240 = landingpad { ptr, i32 }
          cleanup
  br label %243

241:                                              ; preds = %230
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #10
  br label %243

243:                                              ; preds = %241, %239
  %.pn = phi { ptr, i32 } [ %242, %241 ], [ %240, %239 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #10
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #10
  br label %244

244:                                              ; preds = %243, %237
  %.pn.pn = phi { ptr, i32 } [ %.pn, %243 ], [ %238, %237 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #10
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %29) #10
  br label %245

245:                                              ; preds = %244, %224
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %244 ], [ %225, %224 ]
  %.27 = extractvalue { ptr, i32 } %.pn.pn.pn, 0
  %.2738 = extractvalue { ptr, i32 } %.pn.pn.pn, 1
  br label %251

246:                                              ; preds = %._crit_edge82
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #10
  ret void

247:                                              ; preds = %._crit_edge82
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  %250 = extractvalue { ptr, i32 } %248, 1
  br label %251

251:                                              ; preds = %247, %245, %217
  %.2839 = phi i32 [ %.2435, %217 ], [ %.2738, %245 ], [ %250, %247 ]
  %.28 = phi ptr [ %.24, %217 ], [ %.27, %245 ], [ %249, %247 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #10
  %252 = insertvalue { ptr, i32 } poison, ptr %.28, 0
  %253 = insertvalue { ptr, i32 } %252, i32 %.2839, 1
  resume { ptr, i32 } %253

254:                                              ; preds = %213
  %255 = landingpad { ptr, i32 }
          catch ptr null
  %256 = extractvalue { ptr, i32 } %255, 0
  call void @__clang_call_terminate(ptr %256) #11
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN5boost4asio10io_contextEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.32") align 8) local_unnamed_addr #8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN5boost4asio10io_context4workEJRS2_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES7_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.35") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedI10PeerClientJRSt10shared_ptrIN5boost4asio10io_contextEERNS3_2ip22basic_resolver_resultsINS7_3tcpEEERS1_INS4_4workEEEES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESG_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.38") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #8

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

declare void @_ZN10PeerClient5setIpERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5Peers10appendPeerESt10shared_ptrI13PeerInterfaceE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10PeerClient3getEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.38") align 8, ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt6threadC2IRZN7Network12lookForPeersEvE3$_0JEvEEOT_DpOT0_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

declare void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN24TransmitBlockchainHeightC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare noundef i32 @_ZN5Chain26getCurrentBlockchainHeightEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI24TransmitBlockchainHeightEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; 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) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN22AskForBlockchainHeightC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN24TransmitBlockchainHeightD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN7Network12lookForPeersEvEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

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

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

declare void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11AskForPeersC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20NetworkMessageHelper25serializeToNetworkMessageI11AskForPeersEE14NetworkMessageT_(ptr dead_on_unwind noalias writable sret(%class.NetworkMessage) align 8, i8) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

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

declare i32 @sleep(i32 noundef) local_unnamed_addr #4

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { 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 #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { 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 #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }
attributes #11 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 4}
!9 = !{!"_ZTS24TransmitBlockchainHeight", !10, i64 0, !11, i64 4, !12, i64 8}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!"int", !10, i64 0}
!12 = !{!"_ZTSSt6vectorIhSaIhEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass