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

; 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::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 }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.87" = type { %"struct.std::_Vector_base.88" }
%"struct.std::_Vector_base.88" = type { %"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl_data" = type { ptr, ptr, 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::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.__gnu_cxx::__normal_iterator.92" = type { ptr }
%"class.std::shared_ptr.44" = type { %"class.std::__shared_ptr.45" }
%"class.std::__shared_ptr.45" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"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.__gnu_cxx::__normal_iterator.93" = type { ptr }
%struct.AskForBlocks = type { i8, i64, i64 }
%"class.__gnu_cxx::__normal_iterator.94" = type { ptr }
%struct.AskForBlock = type { i8, i64, %"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.__gnu_cxx::__normal_iterator.95" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.96" = type { ptr }

@_ZN7Network14lastPeerLookupE = external dso_local global i64, align 8
@.str.44 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network12lookForPeersEv() #4 align 2

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

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

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

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

declare void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #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)) #1 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 #1 align 2

declare i32 @sleep(i32 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4Time19getCurrentTimestampEv() #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Network9getBlocksEjtRb(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1, i16 noundef zeroext %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i16, align 2
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.56", align 8
  %10 = alloca %"class.std::vector.61", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector.87", align 8
  %23 = alloca %"class.std::map", align 8
  %24 = alloca %class.Log, align 8
  %25 = alloca %"class.std::thread", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.92", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.92", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::shared_ptr.44", align 8
  %32 = alloca i8, align 1
  %33 = alloca %class.Log, align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca i1, align 1
  %37 = alloca %class.Log, align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i64, align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %45 = alloca i64, align 8
  %46 = alloca %struct.AskForBlocks, align 8
  %47 = alloca %"class.std::thread", align 8
  %48 = alloca ptr, align 8
  %49 = alloca %"class.std::vector.56", align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca %"class.std::__cxx11::basic_string", align 8
  %53 = alloca %"class.std::vector.56", align 8
  %54 = alloca %class.Log, align 8
  %55 = alloca i32, align 4
  %56 = alloca ptr, align 8
  %57 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %58 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %59 = alloca i32, align 4
  %60 = alloca %struct.AskForBlocks, align 8
  %61 = alloca %"class.std::thread", align 8
  %62 = alloca ptr, align 8
  %63 = alloca %"class.std::vector.56", align 8
  %64 = alloca %"class.std::__cxx11::basic_string", align 8
  %65 = alloca %"class.std::vector.56", align 8
  %66 = alloca %class.Log, align 8
  %67 = alloca i32, align 4
  %68 = alloca ptr, align 8
  %69 = alloca %"class.std::vector.61", align 8
  %70 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %71 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %72 = alloca ptr, align 8
  %73 = alloca %struct.AskForBlock, align 8
  %74 = alloca %"class.std::thread", align 8
  %75 = alloca ptr, align 8
  %76 = alloca %"class.std::__cxx11::basic_string", align 8
  %77 = alloca %"class.std::vector.6", align 8
  %78 = alloca %class.Log, align 8
  %79 = alloca %"class.std::vector.6", align 8
  %80 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %81 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %82 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %83 = alloca %"class.__gnu_cxx::__normal_iterator.95", align 8
  %84 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %85 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %86 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %87 = alloca %"class.std::vector.6", align 8
  %88 = alloca %"class.std::vector.6", align 8
  %89 = alloca i1, align 1
  %90 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %91 = alloca %"class.__gnu_cxx::__normal_iterator.96", align 8
  %92 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %93 = alloca %class.Log, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i16 %2, ptr %7, align 2, !tbaa !11
  store ptr %3, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 0, ptr %95, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %96 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %96, ptr %11, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %108, %4
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = load i16, ptr %7, align 2, !tbaa !11
  %101 = zext i16 %100 to i32
  %102 = add i32 %99, %101
  %103 = icmp ult i32 %98, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %115

105:                                              ; preds = %97
  %106 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJRjEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %107 unwind label %111

107:                                              ; preds = %105
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = add i32 %109, 1
  store i32 %110, ptr %11, align 4, !tbaa !9
  br label %97, !llvm.loop !15

111:                                              ; preds = %105
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %813

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

117:                                              ; preds = %115
  store ptr %116, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %118 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5Peers8InstanceEv()
          to label %119 unwind label %153

119:                                              ; preds = %117
  store ptr %118, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %120 = invoke noundef nonnull align 8 dereferenceable(352) ptr @_ZN10BlockCache8InstanceEv()
          to label %121 unwind label %157

121:                                              ; preds = %119
  store ptr %120, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i8 100, ptr %17, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  store i8 0, ptr %18, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %801, %121
  %123 = load i8, ptr %18, align 1, !tbaa !13, !range !18, !noundef !19
  %124 = trunc i8 %123 to i1
  %125 = xor i1 %124, true
  br i1 %125, label %126, label %806

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN5Peers14getRandomPeersEtb(ptr dead_on_unwind writable sret(%"class.std::vector.87") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %127, i16 noundef zeroext 6, i1 noundef zeroext false)
          to label %128 unwind label %161

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #7
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %129)
          to label %130 unwind label %165

130:                                              ; preds = %128
  %131 = call noundef i64 @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  %132 = icmp eq i64 %131, 0
  br i1 %132, label %133, label %139

133:                                              ; preds = %130
  %134 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %135 unwind label %169

135:                                              ; preds = %133
  %136 = load i64, ptr @_ZN7Network14lastPeerLookupE, align 8, !tbaa !20
  %137 = sub i64 %134, %136
  %138 = icmp ugt i64 %137, 5
  br label %139

139:                                              ; preds = %135, %130
  %140 = phi i1 [ false, %130 ], [ %138, %135 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #7
  br i1 %140, label %141, label %196

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %24, i8 noundef zeroext 0)
          to label %142 unwind label %174

142:                                              ; preds = %141
  %143 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef @.str.44)
          to label %144 unwind label %178

144:                                              ; preds = %142
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %24) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #7
  %145 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %146 unwind label %183

146:                                              ; preds = %144
  store i64 %145, ptr @_ZN7Network14lastPeerLookupE, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store ptr @_ZN7Network12lookForPeersEv, ptr %26, align 8, !tbaa !5
  invoke void @_ZNSt6threadC2IPFvvEJEvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %147 unwind label %187

147:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %148 unwind label %191

148:                                              ; preds = %147
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %196

149:                                              ; preds = %115
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %12, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %13, align 4
  br label %812

153:                                              ; preds = %117
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %12, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %13, align 4
  br label %811

157:                                              ; preds = %119
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %12, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %13, align 4
  br label %810

161:                                              ; preds = %126
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %12, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %13, align 4
  br label %805

165:                                              ; preds = %128
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %12, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %13, align 4
  br label %173

169:                                              ; preds = %133
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %12, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %13, align 4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #7
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #7
  br label %804

174:                                              ; preds = %141
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %12, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %13, align 4
  br label %182

178:                                              ; preds = %142
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %12, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %13, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %24) #7
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #7
  br label %804

183:                                              ; preds = %664, %144
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %12, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %13, align 4
  br label %804

187:                                              ; preds = %146
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %12, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %195

191:                                              ; preds = %147
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %12, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %13, align 4
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %804

196:                                              ; preds = %148, %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store ptr %22, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %197 = load ptr, ptr %27, align 8, !tbaa !5
  %198 = call ptr @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #7
  %199 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.92", ptr %28, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %200 = load ptr, ptr %27, align 8, !tbaa !5
  %201 = call ptr @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %200) #7
  %202 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.92", ptr %29, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  br label %203

203:                                              ; preds = %661, %196
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br i1 %204, label %206, label %205

205:                                              ; preds = %203
  store i32 7, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %664

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %207 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @_ZNSt10shared_ptrI13PeerInterfaceEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %207) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #7
  store i8 0, ptr %32, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 256, ptr %33) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %33, i8 noundef zeroext 0)
          to label %208 unwind label %280

208:                                              ; preds = %206
  %209 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %33, ptr noundef @.str.45)
          to label %210 unwind label %284

210:                                              ; preds = %208
  %211 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %212 = load ptr, ptr %211, align 8, !tbaa !22
  %213 = getelementptr inbounds ptr, ptr %212, i64 0
  %214 = load ptr, ptr %213, align 8
  invoke void %214(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull align 8 dereferenceable(8) %211)
          to label %215 unwind label %284

215:                                              ; preds = %210
  %216 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %209, ptr noundef %34)
          to label %217 unwind label %288

217:                                              ; preds = %215
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %33) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %33) #7
  %218 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %219 = load ptr, ptr %218, align 8, !tbaa !22
  %220 = getelementptr inbounds ptr, ptr %219, i64 8
  %221 = load ptr, ptr %220, align 8
  store i1 false, ptr %36, align 1
  %222 = invoke noundef i64 %221(ptr noundef nonnull align 8 dereferenceable(8) %218)
          to label %223 unwind label %294

223:                                              ; preds = %217
  %224 = add i64 %222, 30
  %225 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %226 unwind label %294

226:                                              ; preds = %223
  %227 = icmp ult i64 %224, %225
  br i1 %227, label %238, label %228

228:                                              ; preds = %226
  %229 = load ptr, ptr %16, align 8, !tbaa !5
  %230 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %231 = load ptr, ptr %230, align 8, !tbaa !22
  %232 = getelementptr inbounds ptr, ptr %231, i64 0
  %233 = load ptr, ptr %232, align 8
  invoke void %233(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %35, ptr noundef nonnull align 8 dereferenceable(8) %230)
          to label %234 unwind label %294

234:                                              ; preds = %228
  store i1 true, ptr %36, align 1
  %235 = invoke noundef zeroext i1 @_ZN10BlockCache7hasWorkENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(352) %229, ptr noundef %35)
          to label %236 unwind label %298

236:                                              ; preds = %234
  %237 = xor i1 %235, true
  br label %238

238:                                              ; preds = %236, %226
  %239 = phi i1 [ true, %226 ], [ %237, %236 ]
  %240 = load i1, ptr %36, align 1
  br i1 %240, label %241, label %242

241:                                              ; preds = %238
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  br label %242

242:                                              ; preds = %241, %238
  br i1 %239, label %243, label %660

243:                                              ; preds = %242
  %244 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %245 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %246 unwind label %294

246:                                              ; preds = %243
  %247 = load ptr, ptr %244, align 8, !tbaa !22
  %248 = getelementptr inbounds ptr, ptr %247, i64 9
  %249 = load ptr, ptr %248, align 8
  invoke void %249(ptr noundef nonnull align 8 dereferenceable(8) %244, i64 noundef %245)
          to label %250 unwind label %294

250:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 256, ptr %37) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %37, i8 noundef zeroext 0)
          to label %251 unwind label %305

251:                                              ; preds = %250
  %252 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %37, ptr noundef @.str.46)
          to label %253 unwind label %309

253:                                              ; preds = %251
  %254 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %255 = load ptr, ptr %254, align 8, !tbaa !22
  %256 = getelementptr inbounds ptr, ptr %255, i64 0
  %257 = load ptr, ptr %256, align 8
  invoke void %257(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %38, ptr noundef nonnull align 8 dereferenceable(8) %254)
          to label %258 unwind label %309

258:                                              ; preds = %253
  %259 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %252, ptr noundef %38)
          to label %260 unwind label %313

260:                                              ; preds = %258
  %261 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %259, ptr noundef @.str.47)
          to label %262 unwind label %313

262:                                              ; preds = %260
  %263 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %264 = load ptr, ptr %263, align 8, !tbaa !22
  %265 = getelementptr inbounds ptr, ptr %264, i64 2
  %266 = load ptr, ptr %265, align 8
  %267 = invoke noundef i32 %266(ptr noundef nonnull align 8 dereferenceable(8) %263)
          to label %268 unwind label %313

268:                                              ; preds = %262
  %269 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %261, i32 noundef %267)
          to label %270 unwind label %313

270:                                              ; preds = %268
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %37) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 0, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  store i64 0, ptr %41, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  store ptr %9, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %271 = load ptr, ptr %42, align 8, !tbaa !5
  %272 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %271) #7
  %273 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %43, i32 0, i32 0
  store ptr %272, ptr %273, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %274 = load ptr, ptr %42, align 8, !tbaa !5
  %275 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %274) #7
  %276 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %44, i32 0, i32 0
  store ptr %275, ptr %276, align 8
  br label %277

277:                                              ; preds = %463, %270
  %278 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  br i1 %278, label %319, label %279

279:                                              ; preds = %277
  store i32 9, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %465

280:                                              ; preds = %206
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %12, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %13, align 4
  br label %293

284:                                              ; preds = %210, %208
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %12, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %13, align 4
  br label %292

288:                                              ; preds = %215
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %12, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %292

292:                                              ; preds = %288, %284
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %33) #7
  br label %293

293:                                              ; preds = %292, %280
  call void @llvm.lifetime.end.p0(i64 256, ptr %33) #7
  br label %663

294:                                              ; preds = %246, %243, %228, %223, %217
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %12, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %13, align 4
  br label %663

298:                                              ; preds = %234
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %12, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %13, align 4
  %302 = load i1, ptr %36, align 1
  br i1 %302, label %303, label %304

303:                                              ; preds = %298
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  br label %304

304:                                              ; preds = %303, %298
  br label %663

305:                                              ; preds = %250
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %12, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %13, align 4
  br label %318

309:                                              ; preds = %253, %251
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %12, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %13, align 4
  br label %317

313:                                              ; preds = %268, %262, %260, %258
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %12, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  br label %317

317:                                              ; preds = %313, %309
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %37) #7
  br label %318

318:                                              ; preds = %317, %305
  call void @llvm.lifetime.end.p0(i64 256, ptr %37) #7
  br label %663

319:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %320 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #7
  %321 = load i32, ptr %320, align 4, !tbaa !9
  %322 = zext i32 %321 to i64
  store i64 %322, ptr %45, align 8, !tbaa !20
  %323 = load i64, ptr %45, align 8, !tbaa !20
  %324 = load i64, ptr %41, align 8, !tbaa !20
  %325 = add i64 %324, 1
  %326 = icmp eq i64 %323, %325
  br i1 %326, label %327, label %330

327:                                              ; preds = %319
  %328 = load i32, ptr %40, align 4, !tbaa !9
  %329 = add i32 %328, 1
  store i32 %329, ptr %40, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %327, %319
  %331 = load i64, ptr %45, align 8, !tbaa !20
  store i64 %331, ptr %41, align 8, !tbaa !20
  %332 = load i32, ptr %40, align 4, !tbaa !9
  %333 = add i32 %332, 1
  %334 = load i8, ptr %17, align 1, !tbaa !17
  %335 = zext i8 %334 to i32
  %336 = icmp uge i32 %333, %335
  br i1 %336, label %337, label %462

337:                                              ; preds = %330
  %338 = load i32, ptr %21, align 4, !tbaa !9
  %339 = load i32, ptr %39, align 4, !tbaa !9
  %340 = icmp eq i32 %338, %339
  br i1 %340, label %341, label %459

341:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #7
  call void @_ZN12AskForBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %342 = load i64, ptr %45, align 8, !tbaa !20
  %343 = load i8, ptr %17, align 1, !tbaa !17
  %344 = zext i8 %343 to i64
  %345 = icmp ult i64 %342, %344
  br i1 %345, label %346, label %348

346:                                              ; preds = %341
  %347 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 1
  store i64 1, ptr %347, align 8, !tbaa !24
  br label %354

348:                                              ; preds = %341
  %349 = load i64, ptr %45, align 8, !tbaa !20
  %350 = load i8, ptr %17, align 1, !tbaa !17
  %351 = zext i8 %350 to i64
  %352 = sub i64 %349, %351
  %353 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 1
  store i64 %352, ptr %353, align 8, !tbaa !24
  br label %354

354:                                              ; preds = %348, %346
  %355 = load i8, ptr %17, align 1, !tbaa !17
  %356 = zext i8 %355 to i64
  %357 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 2
  store i64 %356, ptr %357, align 8, !tbaa !26
  %358 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %359 = load ptr, ptr %358, align 8, !tbaa !22
  %360 = getelementptr inbounds ptr, ptr %359, i64 2
  %361 = load ptr, ptr %360, align 8
  %362 = invoke noundef i32 %361(ptr noundef nonnull align 8 dereferenceable(8) %358)
          to label %363 unwind label %380

363:                                              ; preds = %354
  %364 = zext i32 %362 to i64
  %365 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 1
  %366 = load i64, ptr %365, align 8, !tbaa !24
  %367 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 2
  %368 = load i64, ptr %367, align 8, !tbaa !26
  %369 = add i64 %366, %368
  %370 = icmp uge i64 %364, %369
  br i1 %370, label %371, label %457

371:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  store ptr @_ZN7Network12askForBlocksESt10shared_ptrI13PeerInterfaceE12AskForBlocks, ptr %48, align 8, !tbaa !5
  invoke void @_ZNSt6threadC2IPFvSt10shared_ptrI13PeerInterfaceE12AskForBlocksEJRS3_RS4_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(24) %46)
          to label %372 unwind label %384

372:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %373 unwind label %388

373:                                              ; preds = %372
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #7
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  store i32 0, ptr %50, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %401, %373
  %375 = load i32, ptr %50, align 4, !tbaa !9
  %376 = load i8, ptr %17, align 1, !tbaa !17
  %377 = zext i8 %376 to i32
  %378 = icmp ult i32 %375, %377
  br i1 %378, label %392, label %379

379:                                              ; preds = %374
  store i32 11, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %408

380:                                              ; preds = %354
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %12, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %13, align 4
  br label %458

384:                                              ; preds = %371
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %12, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  br label %456

388:                                              ; preds = %372
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %12, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %13, align 4
  br label %455

392:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  %393 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 1
  %394 = load i64, ptr %393, align 8, !tbaa !24
  %395 = load i32, ptr %50, align 4, !tbaa !9
  %396 = zext i32 %395 to i64
  %397 = add i64 %394, %396
  %398 = trunc i64 %397 to i32
  store i32 %398, ptr %51, align 4, !tbaa !9
  %399 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJjEEERjDpOT_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %400 unwind label %404

400:                                              ; preds = %392
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  br label %401

401:                                              ; preds = %400
  %402 = load i32, ptr %50, align 4, !tbaa !9
  %403 = add i32 %402, 1
  store i32 %403, ptr %50, align 4, !tbaa !9
  br label %374, !llvm.loop !27

404:                                              ; preds = %392
  %405 = landingpad { ptr, i32 }
          cleanup
  %406 = extractvalue { ptr, i32 } %405, 0
  store ptr %406, ptr %12, align 8
  %407 = extractvalue { ptr, i32 } %405, 1
  store i32 %407, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %454

408:                                              ; preds = %379
  %409 = load ptr, ptr %16, align 8, !tbaa !5
  %410 = call noundef ptr @_ZNKSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  %411 = load ptr, ptr %410, align 8, !tbaa !22
  %412 = getelementptr inbounds ptr, ptr %411, i64 0
  %413 = load ptr, ptr %412, align 8
  invoke void %413(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %52, ptr noundef nonnull align 8 dereferenceable(8) %410)
          to label %414 unwind label %432

414:                                              ; preds = %408
  invoke void @_ZNSt6vectorIjSaIjEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %49)
          to label %415 unwind label %436

415:                                              ; preds = %414
  invoke void @_ZN10BlockCache27insertInBlockHeightAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(352) %409, ptr noundef %52, ptr noundef %53)
          to label %416 unwind label %440

416:                                              ; preds = %415
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr %54) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %54, i8 noundef zeroext 0)
          to label %417 unwind label %445

417:                                              ; preds = %416
  %418 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %54, ptr noundef @.str.48)
          to label %419 unwind label %449

419:                                              ; preds = %417
  %420 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 1
  %421 = load i64, ptr %420, align 8, !tbaa !24
  %422 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %418, i64 noundef %421)
          to label %423 unwind label %449

423:                                              ; preds = %419
  %424 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %422, ptr noundef @.str.49)
          to label %425 unwind label %449

425:                                              ; preds = %423
  %426 = getelementptr inbounds %struct.AskForBlocks, ptr %46, i32 0, i32 2
  %427 = load i64, ptr %426, align 8, !tbaa !26
  %428 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %424, i64 noundef %427)
          to label %429 unwind label %449

429:                                              ; preds = %425
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %54) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %54) #7
  %430 = load i32, ptr %21, align 4, !tbaa !9
  %431 = add i32 %430, 1
  store i32 %431, ptr %21, align 4, !tbaa !9
  store i8 1, ptr %32, align 1, !tbaa !13
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #7
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %457

432:                                              ; preds = %408
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %12, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %13, align 4
  br label %454

436:                                              ; preds = %414
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %12, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %13, align 4
  br label %444

440:                                              ; preds = %415
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %12, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %13, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #7
  br label %444

444:                                              ; preds = %440, %436
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #7
  br label %454

445:                                              ; preds = %416
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %12, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %13, align 4
  br label %453

449:                                              ; preds = %425, %423, %419, %417
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %12, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %13, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %54) #7
  br label %453

453:                                              ; preds = %449, %445
  call void @llvm.lifetime.end.p0(i64 256, ptr %54) #7
  br label %454

454:                                              ; preds = %453, %444, %432, %404
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #7
  br label %455

455:                                              ; preds = %454, %388
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  br label %456

456:                                              ; preds = %455, %384
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %458

457:                                              ; preds = %429, %363
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  br label %459

458:                                              ; preds = %456, %380
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %659

459:                                              ; preds = %457, %337
  store i32 0, ptr %40, align 4, !tbaa !9
  %460 = load i32, ptr %39, align 4, !tbaa !9
  %461 = add i32 %460, 1
  store i32 %461, ptr %39, align 4, !tbaa !9
  br label %462

462:                                              ; preds = %459, %330
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %463

463:                                              ; preds = %462
  %464 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #7
  br label %277

465:                                              ; preds = %279
  %466 = load i8, ptr %32, align 1, !tbaa !13, !range !18, !noundef !19
  %467 = trunc i8 %466 to i1
  br i1 %467, label %561, label %468

468:                                              ; preds = %465
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  store i32 0, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #7
  store ptr %9, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #7
  %469 = load ptr, ptr %56, align 8, !tbaa !5
  %470 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %469) #7
  %471 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %57, i32 0, i32 0
  store ptr %470, ptr %471, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #7
  %472 = load ptr, ptr %56, align 8, !tbaa !5
  %473 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %472) #7
  %474 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %58, i32 0, i32 0
  store ptr %473, ptr %474, align 8
  br label %475

475:                                              ; preds = %557, %468
  %476 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %58) #7
  br i1 %476, label %478, label %477

477:                                              ; preds = %475
  store i32 14, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  br label %560

478:                                              ; preds = %475
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #7
  %479 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #7
  %480 = load i32, ptr %479, align 4, !tbaa !9
  store i32 %480, ptr %59, align 4, !tbaa !9
  %481 = load i32, ptr %21, align 4, !tbaa !9
  %482 = load i32, ptr %55, align 4, !tbaa !9
  %483 = icmp eq i32 %481, %482
  br i1 %483, label %484, label %554

484:                                              ; preds = %478
  %485 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %486 = load ptr, ptr %485, align 8, !tbaa !22
  %487 = getelementptr inbounds ptr, ptr %486, i64 2
  %488 = load ptr, ptr %487, align 8
  %489 = invoke noundef i32 %488(ptr noundef nonnull align 8 dereferenceable(8) %485)
          to label %490 unwind label %517

490:                                              ; preds = %484
  %491 = load i32, ptr %59, align 4, !tbaa !9
  %492 = icmp uge i32 %489, %491
  br i1 %492, label %493, label %554

493:                                              ; preds = %490
  call void @llvm.lifetime.start.p0(i64 24, ptr %60) #7
  call void @_ZN12AskForBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %60) #7
  %494 = load i32, ptr %59, align 4, !tbaa !9
  %495 = zext i32 %494 to i64
  %496 = getelementptr inbounds %struct.AskForBlocks, ptr %60, i32 0, i32 1
  store i64 %495, ptr %496, align 8, !tbaa !24
  %497 = getelementptr inbounds %struct.AskForBlocks, ptr %60, i32 0, i32 2
  store i64 1, ptr %497, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #7
  store ptr @_ZN7Network12askForBlocksESt10shared_ptrI13PeerInterfaceE12AskForBlocks, ptr %62, align 8, !tbaa !5
  invoke void @_ZNSt6threadC2IPFvSt10shared_ptrI13PeerInterfaceE12AskForBlocksEJRS3_RS4_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %498 unwind label %521

498:                                              ; preds = %493
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #7
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %499 unwind label %525

499:                                              ; preds = %498
  call void @llvm.lifetime.start.p0(i64 24, ptr %63) #7
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %500 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJRjEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 4 dereferenceable(4) %59)
          to label %501 unwind label %529

501:                                              ; preds = %499
  %502 = load ptr, ptr %16, align 8, !tbaa !5
  %503 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %504 = load ptr, ptr %503, align 8, !tbaa !22
  %505 = getelementptr inbounds ptr, ptr %504, i64 0
  %506 = load ptr, ptr %505, align 8
  invoke void %506(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %64, ptr noundef nonnull align 8 dereferenceable(8) %503)
          to label %507 unwind label %529

507:                                              ; preds = %501
  invoke void @_ZNSt6vectorIjSaIjEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(24) %63)
          to label %508 unwind label %533

508:                                              ; preds = %507
  invoke void @_ZN10BlockCache27insertInBlockHeightAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(352) %502, ptr noundef %64, ptr noundef %65)
          to label %509 unwind label %537

509:                                              ; preds = %508
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr %66) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %66, i8 noundef zeroext 0)
          to label %510 unwind label %542

510:                                              ; preds = %509
  %511 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %66, ptr noundef @.str.50)
          to label %512 unwind label %546

512:                                              ; preds = %510
  %513 = getelementptr inbounds %struct.AskForBlocks, ptr %60, i32 0, i32 1
  %514 = load i64, ptr %513, align 8, !tbaa !24
  %515 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %511, i64 noundef %514)
          to label %516 unwind label %546

516:                                              ; preds = %512
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %66) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %66) #7
  store i8 1, ptr %32, align 1, !tbaa !13
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #7
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #7
  br label %554

517:                                              ; preds = %484
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %12, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %13, align 4
  br label %559

521:                                              ; preds = %493
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %12, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #7
  br label %553

525:                                              ; preds = %498
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %12, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %13, align 4
  br label %552

529:                                              ; preds = %501, %499
  %530 = landingpad { ptr, i32 }
          cleanup
  %531 = extractvalue { ptr, i32 } %530, 0
  store ptr %531, ptr %12, align 8
  %532 = extractvalue { ptr, i32 } %530, 1
  store i32 %532, ptr %13, align 4
  br label %551

533:                                              ; preds = %507
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %12, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %13, align 4
  br label %541

537:                                              ; preds = %508
  %538 = landingpad { ptr, i32 }
          cleanup
  %539 = extractvalue { ptr, i32 } %538, 0
  store ptr %539, ptr %12, align 8
  %540 = extractvalue { ptr, i32 } %538, 1
  store i32 %540, ptr %13, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #7
  br label %541

541:                                              ; preds = %537, %533
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #7
  br label %551

542:                                              ; preds = %509
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %12, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %13, align 4
  br label %550

546:                                              ; preds = %512, %510
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %12, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %13, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %66) #7
  br label %550

550:                                              ; preds = %546, %542
  call void @llvm.lifetime.end.p0(i64 256, ptr %66) #7
  br label %551

551:                                              ; preds = %550, %541, %529
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #7
  br label %552

552:                                              ; preds = %551, %525
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #7
  br label %553

553:                                              ; preds = %552, %521
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #7
  br label %559

554:                                              ; preds = %516, %490, %478
  %555 = load i32, ptr %55, align 4, !tbaa !9
  %556 = add i32 %555, 1
  store i32 %556, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  br label %557

557:                                              ; preds = %554
  %558 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #7
  br label %475

559:                                              ; preds = %553, %517
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %659

560:                                              ; preds = %477
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %561

561:                                              ; preds = %560, %465
  %562 = load i8, ptr %32, align 1, !tbaa !13, !range !18, !noundef !19
  %563 = trunc i8 %562 to i1
  br i1 %563, label %656, label %564

564:                                              ; preds = %561
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #7
  store i32 0, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %69) #7
  %565 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN10BlockCache20missingBlockHashListEv(ptr dead_on_unwind writable sret(%"class.std::vector.61") align 8 %69, ptr noundef nonnull align 8 dereferenceable(352) %565)
          to label %566 unwind label %576

566:                                              ; preds = %564
  store ptr %69, ptr %68, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #7
  %567 = load ptr, ptr %68, align 8, !tbaa !5
  %568 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %567) #7
  %569 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.94", ptr %70, i32 0, i32 0
  store ptr %568, ptr %569, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #7
  %570 = load ptr, ptr %68, align 8, !tbaa !5
  %571 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %570) #7
  %572 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.94", ptr %71, i32 0, i32 0
  store ptr %571, ptr %572, align 8
  br label %573

573:                                              ; preds = %652, %566
  %574 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71) #7
  br i1 %574, label %580, label %575

575:                                              ; preds = %573
  store i32 16, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #7
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %69) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  br label %655

576:                                              ; preds = %564
  %577 = landingpad { ptr, i32 }
          cleanup
  %578 = extractvalue { ptr, i32 } %577, 0
  store ptr %578, ptr %12, align 8
  %579 = extractvalue { ptr, i32 } %577, 1
  store i32 %579, ptr %13, align 4
  br label %654

580:                                              ; preds = %573
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #7
  %581 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #7
  store ptr %581, ptr %72, align 8, !tbaa !5
  %582 = load i32, ptr %21, align 4, !tbaa !9
  %583 = load i32, ptr %67, align 4, !tbaa !9
  %584 = icmp eq i32 %582, %583
  br i1 %584, label %585, label %651

585:                                              ; preds = %580
  call void @llvm.lifetime.start.p0(i64 40, ptr %73) #7
  call void @_ZN11AskForBlockC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %73) #7
  %586 = load ptr, ptr %72, align 8, !tbaa !5
  %587 = getelementptr inbounds %struct.AskForBlock, ptr %73, i32 0, i32 2
  %588 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIhSaIhEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %587, ptr noundef nonnull align 8 dereferenceable(24) %586)
          to label %589 unwind label %613

589:                                              ; preds = %585
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #7
  store ptr @_ZN7Network11askForBlockESt10shared_ptrI13PeerInterfaceE11AskForBlock, ptr %75, align 8, !tbaa !5
  invoke void @_ZNSt6threadC2IPFvSt10shared_ptrI13PeerInterfaceE11AskForBlockEJRS3_RS4_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(40) %73)
          to label %590 unwind label %617

590:                                              ; preds = %589
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #7
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %591 unwind label %621

591:                                              ; preds = %590
  %592 = load ptr, ptr %16, align 8, !tbaa !5
  %593 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %594 = load ptr, ptr %593, align 8, !tbaa !22
  %595 = getelementptr inbounds ptr, ptr %594, i64 0
  %596 = load ptr, ptr %595, align 8
  invoke void %596(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %76, ptr noundef nonnull align 8 dereferenceable(8) %593)
          to label %597 unwind label %621

597:                                              ; preds = %591
  %598 = load ptr, ptr %72, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 8 dereferenceable(24) %598)
          to label %599 unwind label %625

599:                                              ; preds = %597
  invoke void @_ZN10BlockCache25insertInBlockHashAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(352) %592, ptr noundef %76, ptr noundef %77)
          to label %600 unwind label %629

600:                                              ; preds = %599
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %76) #7
  %601 = load ptr, ptr %72, align 8, !tbaa !5
  %602 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %601)
          to label %603 unwind label %621

603:                                              ; preds = %600
  call void @llvm.lifetime.start.p0(i64 256, ptr %78) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %78, i8 noundef zeroext 0)
          to label %604 unwind label %634

604:                                              ; preds = %603
  %605 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %78, ptr noundef @.str.51)
          to label %606 unwind label %638

606:                                              ; preds = %604
  %607 = getelementptr inbounds %struct.AskForBlock, ptr %73, i32 0, i32 2
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(24) %607)
          to label %608 unwind label %638

608:                                              ; preds = %606
  %609 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %605, ptr noundef %79)
          to label %610 unwind label %642

610:                                              ; preds = %608
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %79) #7
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %78) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %78) #7
  %611 = load i32, ptr %21, align 4, !tbaa !9
  %612 = add i32 %611, 1
  store i32 %612, ptr %21, align 4, !tbaa !9
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #7
  call void @_ZN11AskForBlockD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %73) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %73) #7
  br label %651

613:                                              ; preds = %585
  %614 = landingpad { ptr, i32 }
          cleanup
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %12, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %13, align 4
  br label %650

617:                                              ; preds = %589
  %618 = landingpad { ptr, i32 }
          cleanup
  %619 = extractvalue { ptr, i32 } %618, 0
  store ptr %619, ptr %12, align 8
  %620 = extractvalue { ptr, i32 } %618, 1
  store i32 %620, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #7
  br label %649

621:                                              ; preds = %600, %591, %590
  %622 = landingpad { ptr, i32 }
          cleanup
  %623 = extractvalue { ptr, i32 } %622, 0
  store ptr %623, ptr %12, align 8
  %624 = extractvalue { ptr, i32 } %622, 1
  store i32 %624, ptr %13, align 4
  br label %648

625:                                              ; preds = %597
  %626 = landingpad { ptr, i32 }
          cleanup
  %627 = extractvalue { ptr, i32 } %626, 0
  store ptr %627, ptr %12, align 8
  %628 = extractvalue { ptr, i32 } %626, 1
  store i32 %628, ptr %13, align 4
  br label %633

629:                                              ; preds = %599
  %630 = landingpad { ptr, i32 }
          cleanup
  %631 = extractvalue { ptr, i32 } %630, 0
  store ptr %631, ptr %12, align 8
  %632 = extractvalue { ptr, i32 } %630, 1
  store i32 %632, ptr %13, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #7
  br label %633

633:                                              ; preds = %629, %625
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %76) #7
  br label %648

634:                                              ; preds = %603
  %635 = landingpad { ptr, i32 }
          cleanup
  %636 = extractvalue { ptr, i32 } %635, 0
  store ptr %636, ptr %12, align 8
  %637 = extractvalue { ptr, i32 } %635, 1
  store i32 %637, ptr %13, align 4
  br label %647

638:                                              ; preds = %606, %604
  %639 = landingpad { ptr, i32 }
          cleanup
  %640 = extractvalue { ptr, i32 } %639, 0
  store ptr %640, ptr %12, align 8
  %641 = extractvalue { ptr, i32 } %639, 1
  store i32 %641, ptr %13, align 4
  br label %646

642:                                              ; preds = %608
  %643 = landingpad { ptr, i32 }
          cleanup
  %644 = extractvalue { ptr, i32 } %643, 0
  store ptr %644, ptr %12, align 8
  %645 = extractvalue { ptr, i32 } %643, 1
  store i32 %645, ptr %13, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %79) #7
  br label %646

646:                                              ; preds = %642, %638
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %78) #7
  br label %647

647:                                              ; preds = %646, %634
  call void @llvm.lifetime.end.p0(i64 256, ptr %78) #7
  br label %648

648:                                              ; preds = %647, %633, %621
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #7
  br label %649

649:                                              ; preds = %648, %617
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #7
  br label %650

650:                                              ; preds = %649, %613
  call void @_ZN11AskForBlockD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %73) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %73) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #7
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %69) #7
  br label %654

651:                                              ; preds = %610, %580
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #7
  br label %652

652:                                              ; preds = %651
  %653 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #7
  br label %573

654:                                              ; preds = %650, %576
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #7
  br label %659

655:                                              ; preds = %575
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #7
  br label %656

656:                                              ; preds = %655, %561
  %657 = load i32, ptr %21, align 4, !tbaa !9
  %658 = add i32 %657, 1
  store i32 %658, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %660

659:                                              ; preds = %654, %559, %458
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %663

660:                                              ; preds = %656, %242
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  br label %661

661:                                              ; preds = %660
  %662 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %203

663:                                              ; preds = %659, %318, %304, %294, %293
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %804

664:                                              ; preds = %205
  %665 = invoke i32 @sleep(i32 noundef 1)
          to label %666 unwind label %183

666:                                              ; preds = %664
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #7
  %667 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %668 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %80, i32 0, i32 0
  store ptr %667, ptr %668, align 8
  br label %669

669:                                              ; preds = %706, %666
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #7
  %670 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %671 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %81, i32 0, i32 0
  store ptr %670, ptr %671, align 8
  %672 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 8 dereferenceable(8) %81) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #7
  br i1 %672, label %673, label %707

673:                                              ; preds = %669
  %674 = load ptr, ptr %14, align 8, !tbaa !5
  %675 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %80) #7
  %676 = load i32, ptr %675, align 4, !tbaa !9
  %677 = zext i32 %676 to i64
  %678 = invoke noundef zeroext i1 @_ZN5Chain14doesBlockExistEm(ptr noundef nonnull align 8 dereferenceable(32) %674, i64 noundef %677)
          to label %679 unwind label %695

679:                                              ; preds = %673
  br i1 %678, label %687, label %680

680:                                              ; preds = %679
  %681 = load ptr, ptr %16, align 8, !tbaa !5
  %682 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %80) #7
  %683 = load i32, ptr %682, align 4, !tbaa !9
  %684 = zext i32 %683 to i64
  %685 = invoke noundef zeroext i1 @_ZN10BlockCache14isBlockInCacheEm(ptr noundef nonnull align 8 dereferenceable(352) %681, i64 noundef %684)
          to label %686 unwind label %695

686:                                              ; preds = %680
  br i1 %685, label %687, label %703

687:                                              ; preds = %686, %679
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #7
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEC2IPjvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %80) #7
  %688 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.95", ptr %83, i32 0, i32 0
  %689 = load ptr, ptr %688, align 8
  %690 = invoke ptr @_ZNSt6vectorIjSaIjEE5eraseEN9__gnu_cxx17__normal_iteratorIPKjS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr %689)
          to label %691 unwind label %699

691:                                              ; preds = %687
  %692 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %82, i32 0, i32 0
  store ptr %690, ptr %692, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %80, ptr align 8 %82, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #7
  %693 = load i32, ptr %20, align 4, !tbaa !9
  %694 = add i32 %693, 1
  store i32 %694, ptr %20, align 4, !tbaa !9
  br label %706

695:                                              ; preds = %680, %673
  %696 = landingpad { ptr, i32 }
          cleanup
  %697 = extractvalue { ptr, i32 } %696, 0
  store ptr %697, ptr %12, align 8
  %698 = extractvalue { ptr, i32 } %696, 1
  store i32 %698, ptr %13, align 4
  br label %803

699:                                              ; preds = %687
  %700 = landingpad { ptr, i32 }
          cleanup
  %701 = extractvalue { ptr, i32 } %700, 0
  store ptr %701, ptr %12, align 8
  %702 = extractvalue { ptr, i32 } %700, 1
  store i32 %702, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #7
  br label %803

703:                                              ; preds = %686
  %704 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 noundef 0) #7
  %705 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.93", ptr %84, i32 0, i32 0
  store ptr %704, ptr %705, align 8
  br label %706

706:                                              ; preds = %703, %691
  br label %669, !llvm.loop !29

707:                                              ; preds = %669
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #7
  %708 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %709 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.94", ptr %85, i32 0, i32 0
  store ptr %708, ptr %709, align 8
  br label %710

710:                                              ; preds = %762, %707
  call void @llvm.lifetime.start.p0(i64 8, ptr %86) #7
  %711 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %712 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.94", ptr %86, i32 0, i32 0
  store ptr %711, ptr %712, align 8
  %713 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(8) %86) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #7
  br i1 %713, label %714, label %763

714:                                              ; preds = %710
  %715 = load ptr, ptr %14, align 8, !tbaa !5
  %716 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %85) #7
  store i1 false, ptr %89, align 1
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %716)
          to label %717 unwind label %739

717:                                              ; preds = %714
  %718 = invoke noundef zeroext i1 @_ZN5Chain14doesBlockExistESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(32) %715, ptr noundef %87)
          to label %719 unwind label %743

719:                                              ; preds = %717
  br i1 %718, label %726, label %720

720:                                              ; preds = %719
  %721 = load ptr, ptr %16, align 8, !tbaa !5
  %722 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %85) #7
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 8 dereferenceable(24) %722)
          to label %723 unwind label %743

723:                                              ; preds = %720
  store i1 true, ptr %89, align 1
  %724 = invoke noundef zeroext i1 @_ZN10BlockCache14isBlockInCacheESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(352) %721, ptr noundef %88)
          to label %725 unwind label %747

725:                                              ; preds = %723
  br label %726

726:                                              ; preds = %725, %719
  %727 = phi i1 [ true, %719 ], [ %724, %725 ]
  %728 = load i1, ptr %89, align 1
  br i1 %728, label %729, label %730

729:                                              ; preds = %726
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %88) #7
  br label %730

730:                                              ; preds = %729, %726
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #7
  br i1 %727, label %731, label %759

731:                                              ; preds = %730
  call void @llvm.lifetime.start.p0(i64 8, ptr %90) #7
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIhSaIhEES1_IS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull align 8 dereferenceable(8) %85) #7
  %732 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.96", ptr %91, i32 0, i32 0
  %733 = load ptr, ptr %732, align 8
  %734 = invoke ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr %733)
          to label %735 unwind label %755

735:                                              ; preds = %731
  %736 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.94", ptr %90, i32 0, i32 0
  store ptr %734, ptr %736, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 8 %90, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #7
  %737 = load i32, ptr %20, align 4, !tbaa !9
  %738 = add i32 %737, 1
  store i32 %738, ptr %20, align 4, !tbaa !9
  br label %762

739:                                              ; preds = %714
  %740 = landingpad { ptr, i32 }
          cleanup
  %741 = extractvalue { ptr, i32 } %740, 0
  store ptr %741, ptr %12, align 8
  %742 = extractvalue { ptr, i32 } %740, 1
  store i32 %742, ptr %13, align 4
  br label %802

743:                                              ; preds = %720, %717
  %744 = landingpad { ptr, i32 }
          cleanup
  %745 = extractvalue { ptr, i32 } %744, 0
  store ptr %745, ptr %12, align 8
  %746 = extractvalue { ptr, i32 } %744, 1
  store i32 %746, ptr %13, align 4
  br label %754

747:                                              ; preds = %723
  %748 = landingpad { ptr, i32 }
          cleanup
  %749 = extractvalue { ptr, i32 } %748, 0
  store ptr %749, ptr %12, align 8
  %750 = extractvalue { ptr, i32 } %748, 1
  store i32 %750, ptr %13, align 4
  %751 = load i1, ptr %89, align 1
  br i1 %751, label %752, label %753

752:                                              ; preds = %747
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %88) #7
  br label %753

753:                                              ; preds = %752, %747
  br label %754

754:                                              ; preds = %753, %743
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #7
  br label %802

755:                                              ; preds = %731
  %756 = landingpad { ptr, i32 }
          cleanup
  %757 = extractvalue { ptr, i32 } %756, 0
  store ptr %757, ptr %12, align 8
  %758 = extractvalue { ptr, i32 } %756, 1
  store i32 %758, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #7
  br label %802

759:                                              ; preds = %730
  %760 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %85, i32 noundef 0) #7
  %761 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.94", ptr %92, i32 0, i32 0
  store ptr %760, ptr %761, align 8
  br label %762

762:                                              ; preds = %759, %735
  br label %710, !llvm.loop !30

763:                                              ; preds = %710
  %764 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br i1 %764, label %765, label %766

765:                                              ; preds = %763
  store i32 1, ptr %30, align 4
  br label %799

766:                                              ; preds = %763
  %767 = load i32, ptr %19, align 4, !tbaa !9
  %768 = add i32 %767, 1
  store i32 %768, ptr %19, align 4, !tbaa !9
  %769 = load i32, ptr %19, align 4, !tbaa !9
  %770 = urem i32 %769, 120
  %771 = icmp eq i32 %770, 0
  br i1 %771, label %772, label %798

772:                                              ; preds = %766
  call void @llvm.lifetime.start.p0(i64 256, ptr %93) #7
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %93, i8 noundef zeroext 0)
          to label %773 unwind label %788

773:                                              ; preds = %772
  %774 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %93, ptr noundef @.str.52)
          to label %775 unwind label %792

775:                                              ; preds = %773
  %776 = load i32, ptr %19, align 4, !tbaa !9
  %777 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %774, i32 noundef %776)
          to label %778 unwind label %792

778:                                              ; preds = %775
  %779 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %777, ptr noundef @.str.53)
          to label %780 unwind label %792

780:                                              ; preds = %778
  %781 = load i32, ptr %20, align 4, !tbaa !9
  %782 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %779, i32 noundef %781)
          to label %783 unwind label %792

783:                                              ; preds = %780
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %93) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %93) #7
  %784 = load i32, ptr %20, align 4, !tbaa !9
  %785 = icmp ult i32 %784, 5
  br i1 %785, label %786, label %797

786:                                              ; preds = %783
  %787 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 1, ptr %787, align 1, !tbaa !13
  store i32 1, ptr %30, align 4
  br label %799

788:                                              ; preds = %772
  %789 = landingpad { ptr, i32 }
          cleanup
  %790 = extractvalue { ptr, i32 } %789, 0
  store ptr %790, ptr %12, align 8
  %791 = extractvalue { ptr, i32 } %789, 1
  store i32 %791, ptr %13, align 4
  br label %796

792:                                              ; preds = %780, %778, %775, %773
  %793 = landingpad { ptr, i32 }
          cleanup
  %794 = extractvalue { ptr, i32 } %793, 0
  store ptr %794, ptr %12, align 8
  %795 = extractvalue { ptr, i32 } %793, 1
  store i32 %795, ptr %13, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %93) #7
  br label %796

796:                                              ; preds = %792, %788
  call void @llvm.lifetime.end.p0(i64 256, ptr %93) #7
  br label %802

797:                                              ; preds = %783
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %798

798:                                              ; preds = %797, %766
  store i32 0, ptr %30, align 4
  br label %799

799:                                              ; preds = %798, %786, %765
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #7
  call void @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %800 = load i32, ptr %30, align 4
  switch i32 %800, label %807 [
    i32 0, label %801
  ]

801:                                              ; preds = %799
  br label %122, !llvm.loop !31

802:                                              ; preds = %796, %755, %754, %739
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #7
  br label %803

803:                                              ; preds = %802, %699, %695
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #7
  br label %804

804:                                              ; preds = %803, %663, %195, %183, %182, %173
  call void @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %805

805:                                              ; preds = %804, %161
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %810

806:                                              ; preds = %122
  store i32 0, ptr %30, align 4
  br label %807

807:                                              ; preds = %806, %799
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  %808 = load i32, ptr %30, align 4
  switch i32 %808, label %819 [
    i32 0, label %809
    i32 1, label %809
  ]

809:                                              ; preds = %807, %807
  ret void

810:                                              ; preds = %805, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %811

811:                                              ; preds = %810, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %812

812:                                              ; preds = %811, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %813

813:                                              ; preds = %812, %111
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %814

814:                                              ; preds = %813
  %815 = load ptr, ptr %12, align 8
  %816 = load i32, ptr %13, align 4
  %817 = insertvalue { ptr, i32 } poison, ptr %815, 0
  %818 = insertvalue { ptr, i32 } %817, i32 %816, 1
  resume { ptr, i32 } %818

819:                                              ; preds = %807
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network12askForBlocksESt10shared_ptrI13PeerInterfaceE12AskForBlocks(ptr noundef, ptr noundef byval(%struct.AskForBlocks) align 8) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network11askForBlockESt10shared_ptrI13PeerInterfaceE11AskForBlock(ptr noundef, ptr noundef) #4 align 2

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

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

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

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

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

declare void @_ZN5Peers14getRandomPeersEtb(ptr dead_on_unwind writable sret(%"class.std::vector.87") align 8, ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext, i1 noundef zeroext) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(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 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10BlockCache27insertInBlockHeightAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10BlockCache25insertInBlockHashAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef) #4 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #2

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

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

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

declare noundef zeroext i1 @_ZN5Chain14doesBlockExistEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2

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

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

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

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

declare noundef zeroext i1 @_ZN5Chain14doesBlockExistESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

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

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

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

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

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

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

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

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!25, !21, i64 8}
!25 = !{!"_ZTS12AskForBlocks", !7, i64 0, !21, i64 8, !21, i64 16}
!26 = !{!25, !21, i64 16}
!27 = distinct !{!27, !16}
!28 = !{i64 0, i64 8, !5}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}


; 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::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 }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.87" = type { %"struct.std::_Vector_base.88" }
%"struct.std::_Vector_base.88" = type { %"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<PeerInterface>, std::allocator<std::shared_ptr<PeerInterface>>>::_Vector_impl_data" = type { ptr, ptr, 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::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.__gnu_cxx::__normal_iterator.92" = type { ptr }
%"class.std::shared_ptr.44" = type { %"class.std::__shared_ptr.45" }
%"class.std::__shared_ptr.45" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"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.__gnu_cxx::__normal_iterator.93" = type { ptr }
%struct.AskForBlocks = type { i8, i64, i64 }
%"class.__gnu_cxx::__normal_iterator.94" = type { ptr }
%struct.AskForBlock = type { i8, i64, %"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.__gnu_cxx::__normal_iterator.95" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.96" = type { ptr }

@_ZN7Network14lastPeerLookupE = external dso_local local_unnamed_addr global i64, align 8
@.str.44 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) local_unnamed_addr #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 #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network12lookForPeersEv() #4 align 2

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

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

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

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

declare i32 @sleep(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4Time19getCurrentTimestampEv() local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Network9getBlocksEjtRb(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, i32 noundef %1, i16 noundef zeroext %2, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.56", align 8
  %6 = alloca %"class.std::vector.61", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.87", align 8
  %9 = alloca %"class.std::map", align 8
  %10 = alloca %class.Log, align 8
  %11 = alloca %"class.std::thread", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.92", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.92", align 8
  %15 = alloca %"class.std::shared_ptr.44", align 8
  %16 = alloca %class.Log, align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %class.Log, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %23 = alloca %struct.AskForBlocks, align 8
  %24 = alloca %"class.std::thread", align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::vector.56", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::vector.56", align 8
  %30 = alloca %class.Log, align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %33 = alloca i32, align 4
  %34 = alloca %struct.AskForBlocks, align 8
  %35 = alloca %"class.std::thread", align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.std::vector.56", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::vector.56", align 8
  %40 = alloca %class.Log, align 8
  %41 = alloca %"class.std::vector.61", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %44 = alloca %struct.AskForBlock, align 8
  %45 = alloca %"class.std::thread", align 8
  %46 = alloca ptr, align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::vector.6", align 8
  %49 = alloca %class.Log, align 8
  %50 = alloca %"class.std::vector.6", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.93", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.95", align 8
  %54 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %55 = alloca %"class.__gnu_cxx::__normal_iterator.94", align 8
  %56 = alloca %"class.std::vector.6", align 8
  %57 = alloca %"class.std::vector.6", align 8
  %58 = alloca %"class.__gnu_cxx::__normal_iterator.96", align 8
  %59 = alloca %class.Log, align 8
  store i8 0, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %60 = zext i16 %2 to i32
  %61 = add i32 %60, %1
  store i32 %1, ptr %7, align 4, !tbaa !9
  %62 = icmp ugt i32 %61, %1
  br i1 %62, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %72, %4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %63 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Chain8InstanceEv()
  %64 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN5Peers8InstanceEv()
  %65 = call noundef nonnull align 8 dereferenceable(352) ptr @_ZN10BlockCache8InstanceEv()
  %66 = getelementptr inbounds i8, ptr %23, i64 8
  %67 = getelementptr inbounds i8, ptr %23, i64 16
  %68 = getelementptr inbounds i8, ptr %34, i64 8
  %69 = getelementptr inbounds i8, ptr %34, i64 16
  %70 = getelementptr inbounds i8, ptr %44, i64 16
  br label %78

.lr.ph:                                           ; preds = %4, %72
  %71 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJRjEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %72 unwind label %76

72:                                               ; preds = %.lr.ph
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = add i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !9
  %75 = icmp ult i32 %74, %61
  br i1 %75, label %.lr.ph, label %._crit_edge, !llvm.loop !11

76:                                               ; preds = %.lr.ph
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %487

78:                                               ; preds = %482, %._crit_edge
  %.0111 = phi i32 [ 0, %._crit_edge ], [ %.6117, %482 ]
  %.0109 = phi i32 [ 0, %._crit_edge ], [ %462, %482 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  invoke void @_ZN5Peers14getRandomPeersEtb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.87") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %64, i16 noundef zeroext 6, i1 noundef zeroext false)
          to label %79 unwind label %97

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #6
  invoke void @_ZN5Peers8getPeersB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::map") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %64)
          to label %80 unwind label %99

80:                                               ; preds = %79
  %81 = call noundef i64 @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  %82 = icmp eq i64 %81, 0
  br i1 %82, label %83, label %.critedge

83:                                               ; preds = %80
  %84 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %85 unwind label %101

85:                                               ; preds = %83
  %86 = load i64, ptr @_ZN7Network14lastPeerLookupE, align 8, !tbaa !13
  %87 = sub i64 %84, %86
  %88 = icmp ugt i64 %87, 5
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br i1 %88, label %89, label %116

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %10, i8 noundef zeroext 0)
          to label %90 unwind label %104

90:                                               ; preds = %89
  %91 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef nonnull @.str.44)
          to label %92 unwind label %106

92:                                               ; preds = %90
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #6
  %93 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %94 unwind label %109

94:                                               ; preds = %92
  store i64 %93, ptr @_ZN7Network14lastPeerLookupE, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store ptr @_ZN7Network12lookForPeersEv, ptr %12, align 8, !tbaa !15
  invoke void @_ZNSt6threadC2IPFvvEJEvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %95 unwind label %111

95:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %96 unwind label %113

96:                                               ; preds = %95
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %116

97:                                               ; preds = %78
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %486

99:                                               ; preds = %79
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %83
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br label %485

104:                                              ; preds = %89
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %90
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #6
  br label %108

108:                                              ; preds = %106, %104
  %.pn146 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #6
  br label %485

109:                                              ; preds = %._crit_edge269, %92
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %485

111:                                              ; preds = %94
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %115

113:                                              ; preds = %95
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %115

115:                                              ; preds = %113, %111
  %.pn148 = phi { ptr, i32 } [ %114, %113 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %485

.critedge:                                        ; preds = %80
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13PeerInterfaceESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br label %116

116:                                              ; preds = %.critedge, %96, %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %117 = call ptr @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  store ptr %117, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %118 = call ptr @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  store ptr %118, ptr %14, align 8
  %119 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %119, label %.lr.ph268, label %._crit_edge269

._crit_edge269:                                   ; preds = %396, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %120 = invoke i32 @sleep(i32 noundef 1)
          to label %400 unwind label %109

.lr.ph268:                                        ; preds = %116, %396
  %.0118266 = phi i32 [ %.8126, %396 ], [ 0, %116 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @_ZNSt10shared_ptrI13PeerInterfaceEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %121) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %16) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %16, i8 noundef zeroext 0)
          to label %122 unwind label %177

122:                                              ; preds = %.lr.ph268
  %123 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %16, ptr noundef nonnull @.str.45)
          to label %124 unwind label %179

124:                                              ; preds = %122
  %125 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %126 = load ptr, ptr %125, align 8, !tbaa !17
  %127 = load ptr, ptr %126, align 8
  invoke void %127(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %125)
          to label %128 unwind label %179

128:                                              ; preds = %124
  %129 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %123, ptr noundef nonnull %17)
          to label %130 unwind label %181

130:                                              ; preds = %128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #6
  %131 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %132 = load ptr, ptr %131, align 8, !tbaa !17
  %133 = getelementptr inbounds i8, ptr %132, i64 64
  %134 = load ptr, ptr %133, align 8
  %135 = invoke noundef i64 %134(ptr noundef nonnull align 8 dereferenceable(8) %131)
          to label %136 unwind label %185

136:                                              ; preds = %130
  %137 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %138 unwind label %185

138:                                              ; preds = %136
  %139 = add i64 %135, 30
  %.not = icmp ult i64 %139, %137
  br i1 %.not, label %.thread198, label %140

140:                                              ; preds = %138
  %141 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %142 = load ptr, ptr %141, align 8, !tbaa !17
  %143 = load ptr, ptr %142, align 8
  invoke void %143(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %144 unwind label %185

144:                                              ; preds = %140
  %145 = invoke noundef zeroext i1 @_ZN10BlockCache7hasWorkENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(352) %65, ptr noundef nonnull %18)
          to label %146 unwind label %187

146:                                              ; preds = %144
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br i1 %145, label %396, label %.thread198

.thread198:                                       ; preds = %138, %146
  %147 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %148 = invoke noundef i64 @_ZN4Time19getCurrentTimestampEv()
          to label %149 unwind label %185

149:                                              ; preds = %.thread198
  %150 = load ptr, ptr %147, align 8, !tbaa !17
  %151 = getelementptr inbounds i8, ptr %150, i64 72
  %152 = load ptr, ptr %151, align 8
  invoke void %152(ptr noundef nonnull align 8 dereferenceable(8) %147, i64 noundef %148)
          to label %153 unwind label %185

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %19) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %19, i8 noundef zeroext 0)
          to label %154 unwind label %189

154:                                              ; preds = %153
  %155 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %19, ptr noundef nonnull @.str.46)
          to label %156 unwind label %191

156:                                              ; preds = %154
  %157 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %158 = load ptr, ptr %157, align 8, !tbaa !17
  %159 = load ptr, ptr %158, align 8
  invoke void %159(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %157)
          to label %160 unwind label %191

160:                                              ; preds = %156
  %161 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %155, ptr noundef nonnull %20)
          to label %162 unwind label %193

162:                                              ; preds = %160
  %163 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %161, ptr noundef nonnull @.str.47)
          to label %164 unwind label %193

164:                                              ; preds = %162
  %165 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %166 = load ptr, ptr %165, align 8, !tbaa !17
  %167 = getelementptr inbounds i8, ptr %166, i64 16
  %168 = load ptr, ptr %167, align 8
  %169 = invoke noundef i32 %168(ptr noundef nonnull align 8 dereferenceable(8) %165)
          to label %170 unwind label %193

170:                                              ; preds = %164
  %171 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %163, i32 noundef %169)
          to label %172 unwind label %193

172:                                              ; preds = %170
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %19) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %173 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %173, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %174 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %174, ptr %22, align 8
  %175 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %175, label %.lr.ph252, label %._crit_edge253.thread

._crit_edge253.thread:                            ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %279

._crit_edge253:                                   ; preds = %276
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  %176 = trunc nuw i8 %.3131 to i1
  br i1 %176, label %339, label %279

177:                                              ; preds = %.lr.ph268
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %184

179:                                              ; preds = %124, %122
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

181:                                              ; preds = %128
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %183

183:                                              ; preds = %181, %179
  %.pn158 = phi { ptr, i32 } [ %182, %181 ], [ %180, %179 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %16) #6
  br label %184

184:                                              ; preds = %183, %177
  %.pn158.pn = phi { ptr, i32 } [ %.pn158, %183 ], [ %178, %177 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #6
  br label %399

185:                                              ; preds = %149, %.thread198, %140, %136, %130
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %399

187:                                              ; preds = %144
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %399

189:                                              ; preds = %153
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %196

191:                                              ; preds = %156, %154
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %195

193:                                              ; preds = %170, %164, %162, %160
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %195

195:                                              ; preds = %193, %191
  %.pn161 = phi { ptr, i32 } [ %194, %193 ], [ %192, %191 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %19) #6
  br label %196

196:                                              ; preds = %195, %189
  %.pn161.pn = phi { ptr, i32 } [ %.pn161, %195 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %19) #6
  br label %399

.lr.ph252:                                        ; preds = %172, %276
  %.1119250 = phi i32 [ %.4122, %276 ], [ %.0118266, %172 ]
  %.0128249 = phi i8 [ %.3131, %276 ], [ 0, %172 ]
  %.0138248 = phi i32 [ %.1139, %276 ], [ 0, %172 ]
  %.0140247 = phi i32 [ %.2142, %276 ], [ 0, %172 ]
  %.0143246 = phi i64 [ %199, %276 ], [ 0, %172 ]
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = add nuw nsw i64 %.0143246, 1
  %201 = icmp eq i64 %200, %199
  %202 = zext i1 %201 to i32
  %spec.select = add nsw i32 %.0140247, %202
  %203 = add nsw i32 %spec.select, -99
  %204 = icmp ult i32 %203, -100
  br i1 %204, label %205, label %276

205:                                              ; preds = %.lr.ph252
  %206 = icmp eq i32 %.1119250, %.0138248
  br i1 %206, label %207, label %274

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #6
  call void @_ZN12AskForBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %208 = icmp ult i32 %198, 100
  %209 = add nsw i64 %199, -100
  %spec.select285 = select i1 %208, i64 1, i64 %209
  store i64 %spec.select285, ptr %66, align 8, !tbaa !19
  store i64 100, ptr %67, align 8, !tbaa !21
  %210 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %211 = load ptr, ptr %210, align 8, !tbaa !17
  %212 = getelementptr inbounds i8, ptr %211, i64 16
  %213 = load ptr, ptr %212, align 8
  %214 = invoke noundef i32 %213(ptr noundef nonnull align 8 dereferenceable(8) %210)
          to label %215 unwind label %227

215:                                              ; preds = %207
  %216 = zext i32 %214 to i64
  %217 = load i64, ptr %66, align 8, !tbaa !19
  %218 = load i64, ptr %67, align 8, !tbaa !21
  %219 = add i64 %218, %217
  %.not182 = icmp ugt i64 %219, %216
  br i1 %.not182, label %272, label %220

220:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #6
  store ptr @_ZN7Network12askForBlocksESt10shared_ptrI13PeerInterfaceE12AskForBlocks, ptr %25, align 8, !tbaa !15
  invoke void @_ZNSt6threadC2IPFvSt10shared_ptrI13PeerInterfaceE12AskForBlocksEJRS3_RS4_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %221 unwind label %229

221:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %222 unwind label %231

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  br label %233

223:                                              ; preds = %238
  %224 = call noundef ptr @_ZNKSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  %225 = load ptr, ptr %224, align 8, !tbaa !17
  %226 = load ptr, ptr %225, align 8
  invoke void %226(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %224)
          to label %242 unwind label %257

227:                                              ; preds = %207
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %273

229:                                              ; preds = %220
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  br label %271

231:                                              ; preds = %221
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %270

233:                                              ; preds = %222, %238
  %.0137245 = phi i32 [ 0, %222 ], [ %239, %238 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  %234 = load i64, ptr %66, align 8, !tbaa !19
  %235 = trunc i64 %234 to i32
  %236 = add i32 %.0137245, %235
  store i32 %236, ptr %27, align 4, !tbaa !9
  %237 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJjEEERjDpOT_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %238 unwind label %240

238:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  %239 = add nuw nsw i32 %.0137245, 1
  %exitcond.not = icmp eq i32 %239, 100
  br i1 %exitcond.not, label %223, label %233, !llvm.loop !22

240:                                              ; preds = %233
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  br label %269

242:                                              ; preds = %223
  invoke void @_ZNSt6vectorIjSaIjEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %243 unwind label %259

243:                                              ; preds = %242
  invoke void @_ZN10BlockCache27insertInBlockHeightAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(352) %65, ptr noundef nonnull %28, ptr noundef nonnull %29)
          to label %244 unwind label %261

244:                                              ; preds = %243
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %30) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %30, i8 noundef zeroext 0)
          to label %245 unwind label %264

245:                                              ; preds = %244
  %246 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %30, ptr noundef nonnull @.str.48)
          to label %247 unwind label %266

247:                                              ; preds = %245
  %248 = load i64, ptr %66, align 8, !tbaa !19
  %249 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %246, i64 noundef %248)
          to label %250 unwind label %266

250:                                              ; preds = %247
  %251 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %249, ptr noundef nonnull @.str.49)
          to label %252 unwind label %266

252:                                              ; preds = %250
  %253 = load i64, ptr %67, align 8, !tbaa !21
  %254 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %251, i64 noundef %253)
          to label %255 unwind label %266

255:                                              ; preds = %252
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %30) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %30) #6
  %256 = add i32 %.1119250, 1
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #6
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  br label %272

257:                                              ; preds = %223
  %258 = landingpad { ptr, i32 }
          cleanup
  br label %269

259:                                              ; preds = %242
  %260 = landingpad { ptr, i32 }
          cleanup
  br label %263

261:                                              ; preds = %243
  %262 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %263

263:                                              ; preds = %261, %259
  %.pn183 = phi { ptr, i32 } [ %262, %261 ], [ %260, %259 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %269

264:                                              ; preds = %244
  %265 = landingpad { ptr, i32 }
          cleanup
  br label %268

266:                                              ; preds = %252, %250, %247, %245
  %267 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %30) #6
  br label %268

268:                                              ; preds = %266, %264
  %.pn185 = phi { ptr, i32 } [ %267, %266 ], [ %265, %264 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %30) #6
  br label %269

269:                                              ; preds = %268, %263, %257, %240
  %.pn187 = phi { ptr, i32 } [ %241, %240 ], [ %.pn185, %268 ], [ %.pn183, %263 ], [ %258, %257 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #6
  br label %270

270:                                              ; preds = %269, %231
  %.pn187.pn = phi { ptr, i32 } [ %.pn187, %269 ], [ %232, %231 ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %271

271:                                              ; preds = %270, %229
  %.pn187.pn.pn = phi { ptr, i32 } [ %.pn187.pn, %270 ], [ %230, %229 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  br label %273

272:                                              ; preds = %255, %215
  %.1129 = phi i8 [ 1, %255 ], [ %.0128249, %215 ]
  %.2120 = phi i32 [ %256, %255 ], [ %.1119250, %215 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  br label %274

273:                                              ; preds = %271, %227
  %.pn187.pn.pn.pn = phi { ptr, i32 } [ %.pn187.pn.pn, %271 ], [ %228, %227 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %399

274:                                              ; preds = %272, %205
  %.2130 = phi i8 [ %.1129, %272 ], [ %.0128249, %205 ]
  %.3121 = phi i32 [ %.2120, %272 ], [ %.1119250, %205 ]
  %275 = add i32 %.0138248, 1
  br label %276

276:                                              ; preds = %274, %.lr.ph252
  %.2142 = phi i32 [ 0, %274 ], [ %spec.select, %.lr.ph252 ]
  %.1139 = phi i32 [ %275, %274 ], [ %.0138248, %.lr.ph252 ]
  %.3131 = phi i8 [ %.2130, %274 ], [ %.0128249, %.lr.ph252 ]
  %.4122 = phi i32 [ %.3121, %274 ], [ %.1119250, %.lr.ph252 ]
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %278 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %278, label %.lr.ph252, label %._crit_edge253

279:                                              ; preds = %._crit_edge253.thread, %._crit_edge253
  %.1119.lcssa283 = phi i32 [ %.0118266, %._crit_edge253.thread ], [ %.4122, %._crit_edge253 ]
  %.0128.lcssa282 = phi i8 [ 0, %._crit_edge253.thread ], [ %.3131, %._crit_edge253 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #6
  %280 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %280, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #6
  %281 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %281, ptr %32, align 8
  %282 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br i1 %282, label %.lr.ph258, label %._crit_edge259

._crit_edge259:                                   ; preds = %334, %279
  %.4132.lcssa = phi i8 [ %.0128.lcssa282, %279 ], [ %.5133, %334 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  br label %339

.lr.ph258:                                        ; preds = %279, %334
  %.4132256 = phi i8 [ %.5133, %334 ], [ %.0128.lcssa282, %279 ]
  %.0136255 = phi i32 [ %335, %334 ], [ 0, %279 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #6
  %283 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  %284 = load i32, ptr %283, align 4, !tbaa !9
  store i32 %284, ptr %33, align 4, !tbaa !9
  %285 = icmp eq i32 %.1119.lcssa283, %.0136255
  br i1 %285, label %286, label %334

286:                                              ; preds = %.lr.ph258
  %287 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %288 = load ptr, ptr %287, align 8, !tbaa !17
  %289 = getelementptr inbounds i8, ptr %288, i64 16
  %290 = load ptr, ptr %289, align 8
  %291 = invoke noundef i32 %290(ptr noundef nonnull align 8 dereferenceable(8) %287)
          to label %292 unwind label %313

292:                                              ; preds = %286
  %293 = load i32, ptr %33, align 4, !tbaa !9
  %.not164 = icmp ult i32 %291, %293
  br i1 %.not164, label %334, label %294

294:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #6
  call void @_ZN12AskForBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %295 = load i32, ptr %33, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  store i64 %296, ptr %68, align 8, !tbaa !19
  store i64 1, ptr %69, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #6
  store ptr @_ZN7Network12askForBlocksESt10shared_ptrI13PeerInterfaceE12AskForBlocks, ptr %36, align 8, !tbaa !15
  invoke void @_ZNSt6threadC2IPFvSt10shared_ptrI13PeerInterfaceE12AskForBlocksEJRS3_RS4_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %297 unwind label %315

297:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #6
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %298 unwind label %317

298:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #6
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  %299 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE12emplace_backIJRjEEES3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %300 unwind label %319

300:                                              ; preds = %298
  %301 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %302 = load ptr, ptr %301, align 8, !tbaa !17
  %303 = load ptr, ptr %302, align 8
  invoke void %303(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %38, ptr noundef nonnull align 8 dereferenceable(8) %301)
          to label %304 unwind label %319

304:                                              ; preds = %300
  invoke void @_ZNSt6vectorIjSaIjEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %305 unwind label %321

305:                                              ; preds = %304
  invoke void @_ZN10BlockCache27insertInBlockHeightAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(352) %65, ptr noundef nonnull %38, ptr noundef nonnull %39)
          to label %306 unwind label %323

306:                                              ; preds = %305
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %40) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %40, i8 noundef zeroext 0)
          to label %307 unwind label %326

307:                                              ; preds = %306
  %308 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %40, ptr noundef nonnull @.str.50)
          to label %309 unwind label %328

309:                                              ; preds = %307
  %310 = load i64, ptr %68, align 8, !tbaa !19
  %311 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %308, i64 noundef %310)
          to label %312 unwind label %328

312:                                              ; preds = %309
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %40) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %40) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #6
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #6
  br label %334

313:                                              ; preds = %286
  %314 = landingpad { ptr, i32 }
          cleanup
  br label %338

315:                                              ; preds = %294
  %316 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #6
  br label %333

317:                                              ; preds = %297
  %318 = landingpad { ptr, i32 }
          cleanup
  br label %332

319:                                              ; preds = %300, %298
  %320 = landingpad { ptr, i32 }
          cleanup
  br label %331

321:                                              ; preds = %304
  %322 = landingpad { ptr, i32 }
          cleanup
  br label %325

323:                                              ; preds = %305
  %324 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  br label %325

325:                                              ; preds = %323, %321
  %.pn165 = phi { ptr, i32 } [ %324, %323 ], [ %322, %321 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %331

326:                                              ; preds = %306
  %327 = landingpad { ptr, i32 }
          cleanup
  br label %330

328:                                              ; preds = %309, %307
  %329 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %40) #6
  br label %330

330:                                              ; preds = %328, %326
  %.pn167 = phi { ptr, i32 } [ %329, %328 ], [ %327, %326 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %40) #6
  br label %331

331:                                              ; preds = %330, %325, %319
  %.pn167.pn = phi { ptr, i32 } [ %.pn167, %330 ], [ %.pn165, %325 ], [ %320, %319 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #6
  br label %332

332:                                              ; preds = %331, %317
  %.pn167.pn.pn = phi { ptr, i32 } [ %.pn167.pn, %331 ], [ %318, %317 ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br label %333

333:                                              ; preds = %332, %315
  %.pn167.pn.pn.pn = phi { ptr, i32 } [ %.pn167.pn.pn, %332 ], [ %316, %315 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #6
  br label %338

334:                                              ; preds = %312, %292, %.lr.ph258
  %.5133 = phi i8 [ 1, %312 ], [ %.4132256, %292 ], [ %.4132256, %.lr.ph258 ]
  %335 = add i32 %.0136255, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  %336 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  %337 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br i1 %337, label %.lr.ph258, label %._crit_edge259

338:                                              ; preds = %333, %313
  %.pn167.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn167.pn.pn.pn, %333 ], [ %314, %313 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  br label %399

339:                                              ; preds = %._crit_edge259, %._crit_edge253
  %.1119.lcssa284 = phi i32 [ %.4122, %._crit_edge253 ], [ %.1119.lcssa283, %._crit_edge259 ]
  %.6134 = phi i8 [ %.3131, %._crit_edge253 ], [ %.4132.lcssa, %._crit_edge259 ]
  %340 = trunc nuw i8 %.6134 to i1
  br i1 %340, label %394, label %341

341:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %41) #6
  invoke void @_ZN10BlockCache20missingBlockHashListEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.61") align 8 %41, ptr noundef nonnull align 8 dereferenceable(352) %65)
          to label %342 unwind label %346

342:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #6
  %343 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  store ptr %343, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #6
  %344 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  store ptr %344, ptr %43, align 8
  %345 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  br i1 %345, label %.lr.ph263, label %._crit_edge264

._crit_edge264:                                   ; preds = %391, %342
  %.5123.lcssa = phi i32 [ %.1119.lcssa284, %342 ], [ %.6124, %391 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #6
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #6
  br label %394

346:                                              ; preds = %341
  %347 = landingpad { ptr, i32 }
          cleanup
  br label %399

.lr.ph263:                                        ; preds = %342, %391
  %.5123261 = phi i32 [ %.6124, %391 ], [ %.1119.lcssa284, %342 ]
  %348 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  %349 = icmp eq i32 %.5123261, 0
  br i1 %349, label %350, label %391

350:                                              ; preds = %.lr.ph263
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %44) #6
  call void @_ZN11AskForBlockC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %44) #6
  %351 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIhSaIhEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(24) %348)
          to label %352 unwind label %369

352:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #6
  store ptr @_ZN7Network11askForBlockESt10shared_ptrI13PeerInterfaceE11AskForBlock, ptr %46, align 8, !tbaa !15
  invoke void @_ZNSt6threadC2IPFvSt10shared_ptrI13PeerInterfaceE11AskForBlockEJRS3_RS4_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(40) %44)
          to label %353 unwind label %371

353:                                              ; preds = %352
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #6
  invoke void @_ZNSt6thread6detachEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %354 unwind label %373

354:                                              ; preds = %353
  %355 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %356 = load ptr, ptr %355, align 8, !tbaa !17
  %357 = load ptr, ptr %356, align 8
  invoke void %357(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %47, ptr noundef nonnull align 8 dereferenceable(8) %355)
          to label %358 unwind label %373

358:                                              ; preds = %354
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 8 dereferenceable(24) %348)
          to label %359 unwind label %375

359:                                              ; preds = %358
  invoke void @_ZN10BlockCache25insertInBlockHashAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(352) %65, ptr noundef nonnull %47, ptr noundef nonnull %48)
          to label %360 unwind label %377

360:                                              ; preds = %359
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  %361 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %348)
          to label %362 unwind label %373

362:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %49) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %49, i8 noundef zeroext 0)
          to label %363 unwind label %380

363:                                              ; preds = %362
  %364 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %49, ptr noundef nonnull @.str.51)
          to label %365 unwind label %382

365:                                              ; preds = %363
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %70)
          to label %366 unwind label %382

366:                                              ; preds = %365
  %367 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256) %364, ptr noundef nonnull %50)
          to label %368 unwind label %384

368:                                              ; preds = %366
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %49) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %49) #6
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #6
  call void @_ZN11AskForBlockD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %44) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %44) #6
  br label %391

369:                                              ; preds = %350
  %370 = landingpad { ptr, i32 }
          cleanup
  br label %390

371:                                              ; preds = %352
  %372 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #6
  br label %389

373:                                              ; preds = %360, %354, %353
  %374 = landingpad { ptr, i32 }
          cleanup
  br label %388

375:                                              ; preds = %358
  %376 = landingpad { ptr, i32 }
          cleanup
  br label %379

377:                                              ; preds = %359
  %378 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  br label %379

379:                                              ; preds = %377, %375
  %.pn173 = phi { ptr, i32 } [ %378, %377 ], [ %376, %375 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  br label %388

380:                                              ; preds = %362
  %381 = landingpad { ptr, i32 }
          cleanup
  br label %387

382:                                              ; preds = %365, %363
  %383 = landingpad { ptr, i32 }
          cleanup
  br label %386

384:                                              ; preds = %366
  %385 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  br label %386

386:                                              ; preds = %384, %382
  %.pn175 = phi { ptr, i32 } [ %385, %384 ], [ %383, %382 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %49) #6
  br label %387

387:                                              ; preds = %386, %380
  %.pn175.pn = phi { ptr, i32 } [ %.pn175, %386 ], [ %381, %380 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %49) #6
  br label %388

388:                                              ; preds = %387, %379, %373
  %.pn175.pn.pn = phi { ptr, i32 } [ %.pn175.pn, %387 ], [ %374, %373 ], [ %.pn173, %379 ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #6
  br label %389

389:                                              ; preds = %388, %371
  %.pn175.pn.pn.pn = phi { ptr, i32 } [ %.pn175.pn.pn, %388 ], [ %372, %371 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #6
  br label %390

390:                                              ; preds = %389, %369
  %.pn175.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn175.pn.pn.pn, %389 ], [ %370, %369 ]
  call void @_ZN11AskForBlockD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %44) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #6
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #6
  br label %399

391:                                              ; preds = %368, %.lr.ph263
  %.6124 = phi i32 [ 1, %368 ], [ %.5123261, %.lr.ph263 ]
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  %393 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  br i1 %393, label %.lr.ph263, label %._crit_edge264

394:                                              ; preds = %._crit_edge264, %339
  %.7125 = phi i32 [ %.1119.lcssa284, %339 ], [ %.5123.lcssa, %._crit_edge264 ]
  %395 = add i32 %.7125, 1
  br label %396

396:                                              ; preds = %394, %146
  %.8126 = phi i32 [ %395, %394 ], [ %.0118266, %146 ]
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %398 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10shared_ptrI13PeerInterfaceESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %398, label %.lr.ph268, label %._crit_edge269

399:                                              ; preds = %273, %338, %390, %346, %187, %196, %185, %184
  %.pn187.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn, %196 ], [ %186, %185 ], [ %188, %187 ], [ %.pn158.pn, %184 ], [ %.pn187.pn.pn.pn, %273 ], [ %.pn167.pn.pn.pn.pn, %338 ], [ %.pn175.pn.pn.pn.pn, %390 ], [ %347, %346 ]
  call void @_ZNSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %485

400:                                              ; preds = %._crit_edge269
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %51) #6
  %401 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %401, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #6
  %402 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %402, ptr %52, align 8
  %403 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #6
  br i1 %403, label %.lr.ph272, label %._crit_edge273

.lr.ph272:                                        ; preds = %400, %426
  %.1112270 = phi i32 [ %.2113, %426 ], [ %.0111, %400 ]
  %404 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %405 = load i32, ptr %404, align 4, !tbaa !9
  %406 = zext i32 %405 to i64
  %407 = invoke noundef zeroext i1 @_ZN5Chain14doesBlockExistEm(ptr noundef nonnull align 8 dereferenceable(32) %63, i64 noundef %406)
          to label %408 unwind label %420

408:                                              ; preds = %.lr.ph272
  br i1 %407, label %415, label %409

409:                                              ; preds = %408
  %410 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %411 = load i32, ptr %410, align 4, !tbaa !9
  %412 = zext i32 %411 to i64
  %413 = invoke noundef zeroext i1 @_ZN10BlockCache14isBlockInCacheEm(ptr noundef nonnull align 8 dereferenceable(352) %65, i64 noundef %412)
          to label %414 unwind label %420

414:                                              ; preds = %409
  br i1 %413, label %415, label %424

415:                                              ; preds = %414, %408
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEC2IPjvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %416 = load ptr, ptr %53, align 8
  %417 = invoke ptr @_ZNSt6vectorIjSaIjEE5eraseEN9__gnu_cxx17__normal_iteratorIPKjS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %416)
          to label %418 unwind label %422

418:                                              ; preds = %415
  store ptr %417, ptr %51, align 8, !tbaa !15
  %419 = add i32 %.1112270, 1
  br label %426

420:                                              ; preds = %409, %.lr.ph272
  %421 = landingpad { ptr, i32 }
          cleanup
  br label %484

422:                                              ; preds = %415
  %423 = landingpad { ptr, i32 }
          cleanup
  br label %484

424:                                              ; preds = %414
  %425 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %51, i32 noundef 0) #6
  br label %426

426:                                              ; preds = %424, %418
  %.2113 = phi i32 [ %419, %418 ], [ %.1112270, %424 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #6
  %427 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %427, ptr %52, align 8
  %428 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #6
  br i1 %428, label %.lr.ph272, label %._crit_edge273, !llvm.loop !23

._crit_edge273:                                   ; preds = %426, %400
  %.1112.lcssa = phi i32 [ %.0111, %400 ], [ %.2113, %426 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %54) #6
  %429 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %429, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %55) #6
  %430 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %430, ptr %55, align 8
  %431 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #6
  br i1 %431, label %.lr.ph277, label %._crit_edge278

.lr.ph277:                                        ; preds = %._crit_edge273, %457
  %.3114275 = phi i32 [ %.4115, %457 ], [ %.1112.lcssa, %._crit_edge273 ]
  %432 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %432)
          to label %433 unwind label %446

433:                                              ; preds = %.lr.ph277
  %434 = invoke noundef zeroext i1 @_ZN5Chain14doesBlockExistESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull %56)
          to label %435 unwind label %448

435:                                              ; preds = %433
  br i1 %434, label %.thread200, label %436

.thread200:                                       ; preds = %435
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  br label %441

436:                                              ; preds = %435
  %437 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %437)
          to label %438 unwind label %448

438:                                              ; preds = %436
  %439 = invoke noundef zeroext i1 @_ZN10BlockCache14isBlockInCacheESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(352) %65, ptr noundef nonnull %57)
          to label %440 unwind label %450

440:                                              ; preds = %438
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  br i1 %439, label %441, label %455

441:                                              ; preds = %.thread200, %440
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt6vectorIhSaIhEES1_IS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  %442 = load ptr, ptr %58, align 8
  %443 = invoke ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr %442)
          to label %444 unwind label %453

444:                                              ; preds = %441
  store ptr %443, ptr %54, align 8, !tbaa !15
  %445 = add i32 %.3114275, 1
  br label %457

446:                                              ; preds = %.lr.ph277
  %447 = landingpad { ptr, i32 }
          cleanup
  br label %483

448:                                              ; preds = %436, %433
  %449 = landingpad { ptr, i32 }
          cleanup
  br label %452

450:                                              ; preds = %438
  %451 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  br label %452

452:                                              ; preds = %450, %448
  %.pn152 = phi { ptr, i32 } [ %451, %450 ], [ %449, %448 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  br label %483

453:                                              ; preds = %441
  %454 = landingpad { ptr, i32 }
          cleanup
  br label %483

455:                                              ; preds = %440
  %456 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %54, i32 noundef 0) #6
  br label %457

457:                                              ; preds = %455, %444
  %.4115 = phi i32 [ %445, %444 ], [ %.3114275, %455 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %55) #6
  %458 = call ptr @_ZNSt6vectorIS_IhSaIhEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %458, ptr %55, align 8
  %459 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIhSaIhEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %55) #6
  br i1 %459, label %.lr.ph277, label %._crit_edge278, !llvm.loop !24

._crit_edge278:                                   ; preds = %457, %._crit_edge273
  %.3114.lcssa = phi i32 [ %.1112.lcssa, %._crit_edge273 ], [ %.4115, %457 ]
  %460 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br i1 %460, label %.loopexit, label %461

461:                                              ; preds = %._crit_edge278
  %462 = add i32 %.0109, 1
  %463 = urem i32 %462, 120
  %464 = icmp eq i32 %463, 0
  br i1 %464, label %465, label %482

465:                                              ; preds = %461
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %59) #6
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %59, i8 noundef zeroext 0)
          to label %466 unwind label %477

466:                                              ; preds = %465
  %467 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %59, ptr noundef nonnull @.str.52)
          to label %468 unwind label %479

468:                                              ; preds = %466
  %469 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %467, i32 noundef %462)
          to label %470 unwind label %479

470:                                              ; preds = %468
  %471 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %469, ptr noundef nonnull @.str.53)
          to label %472 unwind label %479

472:                                              ; preds = %470
  %473 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %471, i32 noundef %.3114.lcssa)
          to label %474 unwind label %479

474:                                              ; preds = %472
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %59) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %59) #6
  %475 = icmp ult i32 %.3114.lcssa, 5
  br i1 %475, label %476, label %482

476:                                              ; preds = %474
  store i8 1, ptr %3, align 1, !tbaa !5
  br label %.loopexit

477:                                              ; preds = %465
  %478 = landingpad { ptr, i32 }
          cleanup
  br label %481

479:                                              ; preds = %472, %470, %468, %466
  %480 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %59) #6
  br label %481

481:                                              ; preds = %479, %477
  %.pn150 = phi { ptr, i32 } [ %480, %479 ], [ %478, %477 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %59) #6
  br label %483

482:                                              ; preds = %461, %474
  %.6117 = phi i32 [ %.3114.lcssa, %461 ], [ 0, %474 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #6
  call void @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %78, !llvm.loop !25

483:                                              ; preds = %481, %453, %452, %446
  %.pn154 = phi { ptr, i32 } [ %454, %453 ], [ %.pn152, %452 ], [ %447, %446 ], [ %.pn150, %481 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #6
  br label %484

484:                                              ; preds = %483, %422, %420
  %.pn156 = phi { ptr, i32 } [ %423, %422 ], [ %421, %420 ], [ %.pn154, %483 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #6
  br label %485

485:                                              ; preds = %484, %399, %115, %109, %108, %103
  %.pn187.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn187.pn.pn.pn.pn.pn, %399 ], [ %.pn156, %484 ], [ %110, %109 ], [ %.pn148, %115 ], [ %.pn146, %108 ], [ %.pn, %103 ]
  call void @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %486

486:                                              ; preds = %485, %97
  %.pn187.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn187.pn.pn.pn.pn.pn.pn, %485 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %487

.loopexit:                                        ; preds = %._crit_edge278, %476
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %51) #6
  call void @_ZNSt6vectorISt10shared_ptrI13PeerInterfaceESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret void

487:                                              ; preds = %486, %76
  %.pn196 = phi { ptr, i32 } [ %77, %76 ], [ %.pn187.pn.pn.pn.pn.pn.pn.pn, %486 ]
  call void @_ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn196
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network12askForBlocksESt10shared_ptrI13PeerInterfaceE12AskForBlocks(ptr noundef, ptr noundef byval(%struct.AskForBlocks) align 8) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Network11askForBlockESt10shared_ptrI13PeerInterfaceE11AskForBlock(ptr noundef, ptr noundef) #4 align 2

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

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

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

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

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

declare void @_ZN5Peers14getRandomPeersEtb(ptr dead_on_unwind writable sret(%"class.std::vector.87") align 8, ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10BlockCache27insertInBlockHeightAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10BlockCache25insertInBlockHashAskedMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #2

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

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

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

declare noundef zeroext i1 @_ZN5Chain14doesBlockExistEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10BlockCache14isBlockInCacheEm(ptr noundef nonnull align 8 dereferenceable(352), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

declare noundef zeroext i1 @_ZN5Chain14doesBlockExistESt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { 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 #5 = { 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 #6 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = !{!20, !14, i64 8}
!20 = !{!"_ZTS12AskForBlocks", !7, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!20, !14, i64 16}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass