; LLVM IR from dynexcoin/Dynex :: src/InProcessNode (InProcessNode)

; 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::error_code" = type { i32, ptr }
%"class.std::vector.274" = type { %"struct.std::_Vector_base.275" }
%"struct.std::_Vector_base.275" = type { %"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.279" = type { ptr }
%"struct.DynexCN::BlockDetails" = type { i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i32, %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, %"class.std::vector.259" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.259" = type { %"struct.std::_Vector_base.260" }
%"struct.std::_Vector_base.260" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.DynexCN::InProcessNode" = type { %"class.DynexCN::INode", %"class.DynexCN::IDynexCNProtocolObserver", %"class.DynexCN::ICoreObserver", i32, ptr, ptr, %"class.Tools::ObserverManager", %"struct.DynexCN::BlockHeaderInfo", %"class.boost::asio::io_context", %"class.std::unique_ptr", %"class.std::unique_ptr.10", %"class.DynexCN::BlockchainExplorerDataBuilder", %"class.std::mutex" }
%"class.DynexCN::INode" = type { ptr }
%"class.DynexCN::IDynexCNProtocolObserver" = type { ptr }
%"class.DynexCN::ICoreObserver" = type { ptr }
%"class.Tools::ObserverManager" = type { %"class.std::vector", %"class.std::mutex" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::BlockHeaderInfo" = type { i32, i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i64, i64 }
%"class.boost::asio::io_context" = type { %"class.boost::asio::execution_context", ptr }
%"class.boost::asio::execution_context" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::unique_ptr.10" = type { %"struct.std::__uniq_ptr_data.11" }
%"struct.std::__uniq_ptr_data.11" = type { %"class.std::__uniq_ptr_impl.12" }
%"class.std::__uniq_ptr_impl.12" = type { %"class.std::tuple.13" }
%"class.std::tuple.13" = type { %"struct.std::_Tuple_impl.14" }
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Head_base.17" }
%"struct.std::_Head_base.17" = type { ptr }
%"class.DynexCN::BlockchainExplorerDataBuilder" = type { ptr, ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@_ZTISt12system_error = external constant ptr
@_ZTISt9exception = external constant ptr

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef) #3

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

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

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

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

declare noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder16fillBlockDetailsERKNS_5BlockERNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(248)) #6

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode11doGetBlocksEmmjRSt6vectorINS_12BlockDetailsESaIS2_EERj(ptr noundef nonnull align 8 dereferenceable(312) %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #7 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::error_code", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector.274", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.279", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.279", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.DynexCN::BlockDetails", align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %26 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %25, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = load i64, ptr %9, align 8, !tbaa !9
  %29 = load i64, ptr %10, align 8, !tbaa !9
  %30 = load i32, ptr %11, align 4, !tbaa !11
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = load ptr, ptr %27, align 8, !tbaa !44
  %33 = getelementptr inbounds ptr, ptr %32, i64 42
  %34 = load ptr, ptr %33, align 8
  %35 = invoke noundef zeroext i1 %34(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %28, i64 noundef %29, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %36 unwind label %44

36:                                               ; preds = %6
  br i1 %35, label %48, label %37

37:                                               ; preds = %36
  %38 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
          to label %39 unwind label %44

39:                                               ; preds = %37
  %40 = getelementptr inbounds { i32, ptr }, ptr %7, i32 0, i32 0
  %41 = extractvalue { i32, ptr } %38, 0
  store i32 %41, ptr %40, align 8
  %42 = getelementptr inbounds { i32, ptr }, ptr %7, i32 0, i32 1
  %43 = extractvalue { i32, ptr } %38, 1
  store ptr %43, ptr %42, align 8
  store i32 1, ptr %17, align 4
  br label %89

44:                                               ; preds = %37, %6
  %45 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %15, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %16, align 4
  br label %92

48:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store ptr %14, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %49 = load ptr, ptr %18, align 8, !tbaa !5
  %50 = call ptr @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #8
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.279", ptr %19, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  %53 = call ptr @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #8
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.279", ptr %20, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  br label %55

55:                                               ; preds = %84, %48
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %56, label %58, label %57

57:                                               ; preds = %55
  store i32 2, ptr %17, align 4
  br label %86

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %59 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  store ptr %59, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 248, ptr %22) #8
  call void @_ZN7DynexCN12BlockDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(248) %22) #8
  %60 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %25, i32 0, i32 11
  %61 = load ptr, ptr %21, align 8, !tbaa !5
  %62 = invoke noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder16fillBlockDetailsERKNS_5BlockERNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(384) %61, ptr noundef nonnull align 8 dereferenceable(248) %22)
          to label %63 unwind label %71

63:                                               ; preds = %58
  br i1 %62, label %75, label %64

64:                                               ; preds = %63
  %65 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
          to label %66 unwind label %71

66:                                               ; preds = %64
  %67 = getelementptr inbounds { i32, ptr }, ptr %7, i32 0, i32 0
  %68 = extractvalue { i32, ptr } %65, 0
  store i32 %68, ptr %67, align 8
  %69 = getelementptr inbounds { i32, ptr }, ptr %7, i32 0, i32 1
  %70 = extractvalue { i32, ptr } %65, 1
  store ptr %70, ptr %69, align 8
  store i32 1, ptr %17, align 4
  br label %78

71:                                               ; preds = %75, %64, %58
  %72 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %15, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %16, align 4
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %22) #8
  call void @llvm.lifetime.end.p0(i64 248, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %92

75:                                               ; preds = %63
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7DynexCN12BlockDetailsESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 8 dereferenceable(248) %22)
          to label %77 unwind label %71

77:                                               ; preds = %75
  store i32 0, ptr %17, align 4
  br label %78

78:                                               ; preds = %77, %66
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %22) #8
  call void @llvm.lifetime.end.p0(i64 248, ptr %22) #8
  %79 = load i32, ptr %17, align 4
  switch i32 %79, label %81 [
    i32 0, label %80
  ]

80:                                               ; preds = %78
  store i32 0, ptr %17, align 4
  br label %81

81:                                               ; preds = %80, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %82 = load i32, ptr %17, align 4
  switch i32 %82, label %86 [
    i32 0, label %83
  ]

83:                                               ; preds = %81
  br label %84

84:                                               ; preds = %83
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %55

86:                                               ; preds = %81, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %87 = load i32, ptr %17, align 4
  switch i32 %87, label %89 [
    i32 2, label %88
  ]

88:                                               ; preds = %86
  store i32 0, ptr %17, align 4
  br label %89

89:                                               ; preds = %88, %86, %39
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  %90 = load i32, ptr %17, align 4
  switch i32 %90, label %130 [
    i32 0, label %91
    i32 1, label %120
  ]

91:                                               ; preds = %89
  br label %119

92:                                               ; preds = %71, %44
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %16, align 4
  %95 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt12system_error) #8
  %96 = icmp eq i32 %94, %95
  br i1 %96, label %97, label %102

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %98 = load ptr, ptr %15, align 8
  %99 = call ptr @__cxa_begin_catch(ptr %98) #8
  store ptr %99, ptr %24, align 8
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %100) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %101, i64 16, i1 false), !tbaa.struct !46
  store i32 1, ptr %17, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %120

102:                                              ; preds = %93
  %103 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %104 = icmp eq i32 %94, %103
  br i1 %104, label %105, label %122

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %106 = load ptr, ptr %15, align 8
  %107 = call ptr @__cxa_begin_catch(ptr %106) #8
  store ptr %107, ptr %23, align 8
  %108 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
          to label %109 unwind label %114

109:                                              ; preds = %105
  %110 = getelementptr inbounds { i32, ptr }, ptr %7, i32 0, i32 0
  %111 = extractvalue { i32, ptr } %108, 0
  store i32 %111, ptr %110, align 8
  %112 = getelementptr inbounds { i32, ptr }, ptr %7, i32 0, i32 1
  %113 = extractvalue { i32, ptr } %108, 1
  store ptr %113, ptr %112, align 8
  store i32 1, ptr %17, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %120

114:                                              ; preds = %105
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %15, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %16, align 4
  invoke void @__cxa_end_catch()
          to label %118 unwind label %127

118:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %122

119:                                              ; preds = %91
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br label %120

120:                                              ; preds = %119, %109, %97, %89
  %121 = load { i32, ptr }, ptr %7, align 8
  ret { i32, ptr } %121

122:                                              ; preds = %118, %102
  %123 = load ptr, ptr %15, align 8
  %124 = load i32, ptr %16, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126

127:                                              ; preds = %114
  %128 = landingpad { ptr, i32 }
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  call void @__clang_call_terminate(ptr %129) #9
  unreachable

130:                                              ; preds = %89
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTSN7DynexCN13InProcessNodeE", !15, i64 0, !16, i64 8, !17, i64 16, !18, i64 24, !6, i64 32, !6, i64 40, !19, i64 48, !26, i64 112, !29, i64 224, !31, i64 240, !37, i64 248, !43, i64 256, !24, i64 272}
!15 = !{!"_ZTSN7DynexCN5INodeE"}
!16 = !{!"_ZTSN7DynexCN24IDynexCNProtocolObserverE"}
!17 = !{!"_ZTSN7DynexCN13ICoreObserverE"}
!18 = !{!"_ZTSN7DynexCN13InProcessNode5StateE", !7, i64 0}
!19 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !20, i64 0, !24, i64 24}
!20 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt5mutex", !25, i64 0}
!25 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!26 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !12, i64 0, !7, i64 4, !7, i64 5, !10, i64 8, !27, i64 16, !27, i64 48, !12, i64 80, !28, i64 84, !12, i64 88, !10, i64 96, !10, i64 104}
!27 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN5boost4asio10io_contextE", !30, i64 0, !6, i64 8}
!30 = !{!"_ZTSN5boost4asio17execution_contextE", !6, i64 0}
!31 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !35, i64 0}
!35 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !6, i64 0}
!37 = !{!"_ZTSSt10unique_ptrIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_dataIN5boost4asio10io_context4workESt14default_deleteIS3_ELb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_implIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !40, i64 0}
!40 = !{!"_ZTSSt5tupleIJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Tuple_implILm0EJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_Head_baseILm0EPN5boost4asio10io_context4workELb0EE", !6, i64 0}
!43 = !{!"_ZTSN7DynexCN29BlockchainExplorerDataBuilderE", !6, i64 0, !6, i64 8}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !8, i64 0}
!46 = !{i64 0, i64 4, !11, i64 8, i64 8, !5}


; 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::error_code" = type { i32, ptr }
%"class.std::vector.274" = type { %"struct.std::_Vector_base.275" }
%"struct.std::_Vector_base.275" = type { %"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::Block, std::allocator<DynexCN::Block>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.279" = type { ptr }
%"struct.DynexCN::BlockDetails" = type { i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i32, %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, %"class.std::vector.259" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.259" = type { %"struct.std::_Vector_base.260" }
%"struct.std::_Vector_base.260" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt12system_error = external constant ptr
@_ZTISt9exception = external constant ptr

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef) local_unnamed_addr #2

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

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

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

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

declare noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder16fillBlockDetailsERKNS_5BlockERNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode11doGetBlocksEmmjRSt6vectorINS_12BlockDetailsESaIS2_EERj(ptr noundef nonnull align 8 dereferenceable(312) %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::error_code", align 8
  %8 = alloca %"class.std::vector.274", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.279", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.279", align 8
  %11 = alloca %"struct.DynexCN::BlockDetails", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load ptr, ptr %13, align 8, !tbaa !41
  %15 = getelementptr inbounds i8, ptr %14, i64 336
  %16 = load ptr, ptr %15, align 8
  %17 = invoke noundef zeroext i1 %16(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %18 unwind label %23

18:                                               ; preds = %6
  br i1 %17, label %25, label %.thread24

.thread24:                                        ; preds = %18
  %19 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
  %20 = extractvalue { i32, ptr } %19, 0
  store i32 %20, ptr %7, align 8
  %21 = getelementptr inbounds i8, ptr %7, i64 8
  %22 = extractvalue { i32, ptr } %19, 1
  store ptr %22, ptr %21, align 8
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %60

23:                                               ; preds = %6
  %24 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %45

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %26 = call ptr @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  store ptr %26, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %27 = call ptr @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  store ptr %27, ptr %10, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 256
  br label %30

30:                                               ; preds = %.lr.ph, %37
  %31 = call noundef nonnull align 8 dereferenceable(384) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %11) #7
  call void @_ZN7DynexCN12BlockDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(248) %11) #7
  %32 = invoke noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder16fillBlockDetailsERKNS_5BlockERNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(384) %31, ptr noundef nonnull align 8 dereferenceable(248) %11)
          to label %33 unwind label %34

33:                                               ; preds = %30
  br i1 %32, label %36, label %40

34:                                               ; preds = %36, %30
  %35 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %11) #7
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %45

36:                                               ; preds = %33
  invoke void @_ZNSt6vectorIN7DynexCN12BlockDetailsESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(248) %11)
          to label %37 unwind label %34

37:                                               ; preds = %36
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %11) #7
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %11) #7
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN5BlockESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %39, label %30, label %._crit_edge

40:                                               ; preds = %33
  %41 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
  %42 = extractvalue { i32, ptr } %41, 0
  store i32 %42, ptr %7, align 8
  %43 = getelementptr inbounds i8, ptr %7, i64 8
  %44 = extractvalue { i32, ptr } %41, 1
  store ptr %44, ptr %43, align 8
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %11) #7
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %60

45:                                               ; preds = %34, %23
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %24, %23 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.021 = extractvalue { ptr, i32 } %.pn, 1
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  %46 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt12system_error) #7
  %47 = icmp eq i32 %.021, %46
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = call ptr @__cxa_begin_catch(ptr %.0) #7
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %49) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %50, i64 16, i1 false), !tbaa.struct !43
  call void @__cxa_end_catch()
  br label %60

51:                                               ; preds = %45
  %52 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %53 = icmp eq i32 %.021, %52
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = call ptr @__cxa_begin_catch(ptr %.0) #7
  %56 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
  %57 = extractvalue { i32, ptr } %56, 0
  store i32 %57, ptr %7, align 8
  %58 = getelementptr inbounds i8, ptr %7, i64 8
  %59 = extractvalue { i32, ptr } %56, 1
  store ptr %59, ptr %58, align 8
  call void @__cxa_end_catch()
  br label %60

._crit_edge:                                      ; preds = %37, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt6vectorIN7DynexCN5BlockESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %60

60:                                               ; preds = %40, %.thread24, %._crit_edge, %54, %48
  %.fca.0.load = load i32, ptr %7, align 8
  %.fca.0.insert = insertvalue { i32, ptr } poison, i32 %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %7, i64 8
  %.fca.1.load = load ptr, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { i32, ptr } %.fca.0.insert, ptr %.fca.1.load, 1
  ret { i32, ptr } %.fca.1.insert

61:                                               ; preds = %51
  resume { ptr, i32 } %.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nosync nounwind memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !13, i64 32}
!6 = !{!"_ZTSN7DynexCN13InProcessNodeE", !7, i64 0, !8, i64 8, !9, i64 16, !10, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !21, i64 112, !26, i64 224, !28, i64 240, !34, i64 248, !40, i64 256, !19, i64 272}
!7 = !{!"_ZTSN7DynexCN5INodeE"}
!8 = !{!"_ZTSN7DynexCN24IDynexCNProtocolObserverE"}
!9 = !{!"_ZTSN7DynexCN13ICoreObserverE"}
!10 = !{!"_ZTSN7DynexCN13InProcessNode5StateE", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !15, i64 0, !19, i64 24}
!15 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!19 = !{!"_ZTSSt5mutex", !20, i64 0}
!20 = !{!"_ZTSSt12__mutex_base", !11, i64 0}
!21 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !22, i64 0, !11, i64 4, !11, i64 5, !23, i64 8, !24, i64 16, !24, i64 48, !22, i64 80, !25, i64 84, !22, i64 88, !23, i64 96, !23, i64 104}
!22 = !{!"int", !11, i64 0}
!23 = !{!"long", !11, i64 0}
!24 = !{!"_ZTSN6Crypto4HashE", !11, i64 0}
!25 = !{!"bool", !11, i64 0}
!26 = !{!"_ZTSN5boost4asio10io_contextE", !27, i64 0, !13, i64 8}
!27 = !{!"_ZTSN5boost4asio17execution_contextE", !13, i64 0}
!28 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !13, i64 0}
!34 = !{!"_ZTSSt10unique_ptrIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIN5boost4asio10io_context4workESt14default_deleteIS3_ELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPN5boost4asio10io_context4workELb0EE", !13, i64 0}
!40 = !{!"_ZTSN7DynexCN29BlockchainExplorerDataBuilderE", !13, i64 0, !13, i64 8}
!41 = !{!42, !42, i64 0}
!42 = !{!"vtable pointer", !12, i64 0}
!43 = !{i64 0, i64 4, !44, i64 8, i64 8, !45}
!44 = !{!22, !22, i64 0}
!45 = !{!13, !13, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass