; 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.__gnu_cxx::__normal_iterator.314" = type { ptr }
%"struct.DynexCN::Block" = type { %"struct.DynexCN::BlockHeader", %"struct.DynexCN::ParentBlock", %"struct.DynexCN::Transaction", %"class.std::vector.47" }
%"struct.DynexCN::BlockHeader" = type { i8, i8, i32, i64, %"struct.Crypto::Hash" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.DynexCN::ParentBlock" = type { i8, i8, %"struct.Crypto::Hash", i16, %"class.std::vector.47", %"struct.DynexCN::Transaction", %"class.std::vector.47" }
%"struct.DynexCN::Transaction" = type { %"struct.DynexCN::TransactionPrefix", %"class.std::vector.86" }
%"struct.DynexCN::TransactionPrefix" = type { i8, i64, %"class.std::vector.76", %"class.std::vector.81", %"class.std::vector.71" }
%"class.std::vector.76" = type { %"struct.std::_Vector_base.77" }
%"struct.std::_Vector_base.77" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.81" = type { %"struct.std::_Vector_base.82" }
%"struct.std::_Vector_base.82" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.71" = type { %"struct.std::_Vector_base.72" }
%"struct.std::_Vector_base.72" = 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.std::vector.86" = type { %"struct.std::_Vector_base.87" }
%"struct.std::_Vector_base.87" = type { %"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.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" }
%"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 @_ZN7DynexCN5BlockC2Ev(ptr noundef nonnull align 8 dereferenceable(384)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(384)) 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 #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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode11doGetBlocksERKSt6vectorIN6Crypto4HashESaIS3_EERS1_INS_12BlockDetailsESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #7 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::error_code", align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.314", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.314", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.DynexCN::Block", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.DynexCN::BlockDetails", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %20, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = call ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.314", ptr %9, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = call ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.314", ptr %10, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  br label %27

27:                                               ; preds = %76, %3
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  store i32 2, ptr %11, align 4
  br label %100

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %31 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  store ptr %31, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 384, ptr %13) #8
  call void @_ZN7DynexCN5BlockC2Ev(ptr noundef nonnull align 8 dereferenceable(384) %13) #8
  %32 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %19, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = load ptr, ptr %33, align 8, !tbaa !42
  %36 = getelementptr inbounds ptr, ptr %35, i64 28
  %37 = load ptr, ptr %36, align 8
  %38 = invoke noundef zeroext i1 %37(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 1 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(384) %13)
          to label %39 unwind label %47

39:                                               ; preds = %30
  br i1 %38, label %51, label %40

40:                                               ; preds = %39
  %41 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
          to label %42 unwind label %47

42:                                               ; preds = %40
  %43 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  %44 = extractvalue { i32, ptr } %41, 0
  store i32 %44, ptr %43, align 8
  %45 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  %46 = extractvalue { i32, ptr } %41, 1
  store ptr %46, ptr %45, align 8
  store i32 1, ptr %11, align 4
  br label %70

47:                                               ; preds = %40, %30
  %48 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %14, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %15, align 4
  br label %78

51:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 248, ptr %16) #8
  call void @_ZN7DynexCN12BlockDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(248) %16) #8
  %52 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %19, i32 0, i32 11
  %53 = invoke noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder16fillBlockDetailsERKNS_5BlockERNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(384) %13, ptr noundef nonnull align 8 dereferenceable(248) %16)
          to label %54 unwind label %62

54:                                               ; preds = %51
  br i1 %53, label %66, label %55

55:                                               ; preds = %54
  %56 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
          to label %57 unwind label %62

57:                                               ; preds = %55
  %58 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  %59 = extractvalue { i32, ptr } %56, 0
  store i32 %59, ptr %58, align 8
  %60 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  %61 = extractvalue { i32, ptr } %56, 1
  store ptr %61, ptr %60, align 8
  store i32 1, ptr %11, align 4
  br label %69

62:                                               ; preds = %66, %55, %51
  %63 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %14, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %15, align 4
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %16) #8
  call void @llvm.lifetime.end.p0(i64 248, ptr %16) #8
  br label %78

66:                                               ; preds = %54
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7DynexCN12BlockDetailsESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(248) %16)
          to label %68 unwind label %62

68:                                               ; preds = %66
  store i32 0, ptr %11, align 4
  br label %69

69:                                               ; preds = %68, %57
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %16) #8
  call void @llvm.lifetime.end.p0(i64 248, ptr %16) #8
  br label %70

70:                                               ; preds = %69, %42
  call void @_ZN7DynexCN5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(384) %13) #8
  call void @llvm.lifetime.end.p0(i64 384, ptr %13) #8
  %71 = load i32, ptr %11, align 4
  switch i32 %71, label %73 [
    i32 0, label %72
  ]

72:                                               ; preds = %70
  store i32 0, ptr %11, align 4
  br label %73

73:                                               ; preds = %72, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %74 = load i32, ptr %11, align 4
  switch i32 %74, label %100 [
    i32 0, label %75
  ]

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %27

78:                                               ; preds = %62, %47
  call void @_ZN7DynexCN5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(384) %13) #8
  call void @llvm.lifetime.end.p0(i64 384, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %15, align 4
  %81 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt12system_error) #8
  %82 = icmp eq i32 %80, %81
  br i1 %82, label %83, label %88

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %84 = load ptr, ptr %14, align 8
  %85 = call ptr @__cxa_begin_catch(ptr %84) #8
  store ptr %85, ptr %18, align 8
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %86) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %87, i64 16, i1 false), !tbaa.struct !44
  store i32 1, ptr %11, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %109

88:                                               ; preds = %79
  %89 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %90 = icmp eq i32 %80, %89
  br i1 %90, label %91, label %111

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %92 = load ptr, ptr %14, align 8
  %93 = call ptr @__cxa_begin_catch(ptr %92) #8
  store ptr %93, ptr %17, align 8
  %94 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
          to label %95 unwind label %103

95:                                               ; preds = %91
  %96 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  %97 = extractvalue { i32, ptr } %94, 0
  store i32 %97, ptr %96, align 8
  %98 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  %99 = extractvalue { i32, ptr } %94, 1
  store ptr %99, ptr %98, align 8
  store i32 1, ptr %11, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %109

100:                                              ; preds = %73, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %101 = load i32, ptr %11, align 4
  switch i32 %101, label %119 [
    i32 2, label %102
    i32 1, label %109
  ]

102:                                              ; preds = %100
  br label %108

103:                                              ; preds = %91
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %14, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %15, align 4
  invoke void @__cxa_end_catch()
          to label %107 unwind label %116

107:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %111

108:                                              ; preds = %102
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %109

109:                                              ; preds = %108, %100, %95, %83
  %110 = load { i32, ptr }, ptr %4, align 8
  ret { i32, ptr } %110

111:                                              ; preds = %107, %88
  %112 = load ptr, ptr %14, align 8
  %113 = load i32, ptr %15, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115

116:                                              ; preds = %103
  %117 = landingpad { ptr, i32 }
          catch ptr null
  %118 = extractvalue { ptr, i32 } %117, 0
  call void @__clang_call_terminate(ptr %118) #9
  unreachable

119:                                              ; preds = %100
  unreachable
}

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

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

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

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, !6, i64 32}
!10 = !{!"_ZTSN7DynexCN13InProcessNodeE", !11, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !22, i64 112, !27, i64 224, !29, i64 240, !35, i64 248, !41, i64 256, !20, i64 272}
!11 = !{!"_ZTSN7DynexCN5INodeE"}
!12 = !{!"_ZTSN7DynexCN24IDynexCNProtocolObserverE"}
!13 = !{!"_ZTSN7DynexCN13ICoreObserverE"}
!14 = !{!"_ZTSN7DynexCN13InProcessNode5StateE", !7, i64 0}
!15 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !16, i64 0, !20, i64 24}
!16 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt5mutex", !21, i64 0}
!21 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!22 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !23, i64 0, !7, i64 4, !7, i64 5, !24, i64 8, !25, i64 16, !25, i64 48, !23, i64 80, !26, i64 84, !23, i64 88, !24, i64 96, !24, i64 104}
!23 = !{!"int", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN5boost4asio10io_contextE", !28, i64 0, !6, i64 8}
!28 = !{!"_ZTSN5boost4asio17execution_contextE", !6, i64 0}
!29 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !6, i64 0}
!35 = !{!"_ZTSSt10unique_ptrIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_dataIN5boost4asio10io_context4workESt14default_deleteIS3_ELb1ELb1EE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_implIN5boost4asio10io_context4workESt14default_deleteIS3_EE", !38, i64 0}
!38 = !{!"_ZTSSt5tupleIJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !39, i64 0}
!39 = !{!"_ZTSSt11_Tuple_implILm0EJPN5boost4asio10io_context4workESt14default_deleteIS3_EEE", !40, i64 0}
!40 = !{!"_ZTSSt10_Head_baseILm0EPN5boost4asio10io_context4workELb0EE", !6, i64 0}
!41 = !{!"_ZTSN7DynexCN29BlockchainExplorerDataBuilderE", !6, i64 0, !6, i64 8}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !8, i64 0}
!44 = !{i64 0, i64 4, !45, i64 8, i64 8, !5}
!45 = !{!23, !23, i64 0}


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

%"class.std::error_code" = type { i32, ptr }
%"class.__gnu_cxx::__normal_iterator.314" = type { ptr }
%"struct.DynexCN::Block" = type { %"struct.DynexCN::BlockHeader", %"struct.DynexCN::ParentBlock", %"struct.DynexCN::Transaction", %"class.std::vector.47" }
%"struct.DynexCN::BlockHeader" = type { i8, i8, i32, i64, %"struct.Crypto::Hash" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.DynexCN::ParentBlock" = type { i8, i8, %"struct.Crypto::Hash", i16, %"class.std::vector.47", %"struct.DynexCN::Transaction", %"class.std::vector.47" }
%"struct.DynexCN::Transaction" = type { %"struct.DynexCN::TransactionPrefix", %"class.std::vector.86" }
%"struct.DynexCN::TransactionPrefix" = type { i8, i64, %"class.std::vector.76", %"class.std::vector.81", %"class.std::vector.71" }
%"class.std::vector.76" = type { %"struct.std::_Vector_base.77" }
%"struct.std::_Vector_base.77" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.81" = type { %"struct.std::_Vector_base.82" }
%"struct.std::_Vector_base.82" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.71" = type { %"struct.std::_Vector_base.72" }
%"struct.std::_Vector_base.72" = 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.std::vector.86" = type { %"struct.std::_Vector_base.87" }
%"struct.std::_Vector_base.87" = type { %"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.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" }
%"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 @_ZN7DynexCN5BlockC2Ev(ptr noundef nonnull align 8 dereferenceable(384)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode11doGetBlocksERKSt6vectorIN6Crypto4HashESaIS3_EERS1_INS_12BlockDetailsESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::error_code", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.314", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.314", align 8
  %7 = alloca %"struct.DynexCN::Block", align 8
  %8 = alloca %"struct.DynexCN::BlockDetails", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %9 = tail call ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %9, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %10 = tail call ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %10, ptr %6, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = getelementptr inbounds i8, ptr %0, i64 256
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  br label %15

15:                                               ; preds = %.lr.ph, %39
  %16 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %7) #7
  call void @_ZN7DynexCN5BlockC2Ev(ptr noundef nonnull align 8 dereferenceable(384) %7) #7
  %17 = load ptr, ptr %12, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !41
  %19 = getelementptr inbounds i8, ptr %18, i64 224
  %20 = load ptr, ptr %19, align 8
  %21 = invoke noundef zeroext i1 %20(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(384) %7)
          to label %22 unwind label %26

22:                                               ; preds = %15
  br i1 %21, label %28, label %.thread

.thread:                                          ; preds = %22
  %23 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
  %24 = extractvalue { i32, ptr } %23, 0
  store i32 %24, ptr %4, align 8
  %25 = extractvalue { i32, ptr } %23, 1
  store ptr %25, ptr %14, align 8
  call void @_ZN7DynexCN5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(384) %7) #7
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %7) #7
  br label %.thread20

26:                                               ; preds = %15
  %27 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %42

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %8) #7
  call void @_ZN7DynexCN12BlockDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(248) %8) #7
  %29 = invoke noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder16fillBlockDetailsERKNS_5BlockERNS_12BlockDetailsE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(384) %7, ptr noundef nonnull align 8 dereferenceable(248) %8)
          to label %30 unwind label %35

30:                                               ; preds = %28
  br i1 %29, label %37, label %31

31:                                               ; preds = %30
  %32 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
  %33 = extractvalue { i32, ptr } %32, 0
  store i32 %33, ptr %4, align 8
  %34 = extractvalue { i32, ptr } %32, 1
  store ptr %34, ptr %14, align 8
  br label %38

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

37:                                               ; preds = %30
  invoke void @_ZNSt6vectorIN7DynexCN12BlockDetailsESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(248) %8)
          to label %38 unwind label %35

38:                                               ; preds = %31, %37
  call void @_ZN7DynexCN12BlockDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %8) #7
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %8) #7
  call void @_ZN7DynexCN5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(384) %7) #7
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %7) #7
  br i1 %29, label %39, label %.thread20

39:                                               ; preds = %38
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %41, label %15, label %._crit_edge

42:                                               ; preds = %35, %26
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %27, %26 ]
  %.015 = extractvalue { ptr, i32 } %.pn, 0
  %.016 = extractvalue { ptr, i32 } %.pn, 1
  call void @_ZN7DynexCN5BlockD2Ev(ptr noundef nonnull align 8 dereferenceable(384) %7) #7
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %43 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt12system_error) #7
  %44 = icmp eq i32 %.016, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = call ptr @__cxa_begin_catch(ptr %.015) #7
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %47, i64 16, i1 false), !tbaa.struct !43
  call void @__cxa_end_catch()
  br label %56

48:                                               ; preds = %42
  %49 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %50 = icmp eq i32 %.016, %49
  br i1 %50, label %51, label %57

51:                                               ; preds = %48
  %52 = call ptr @__cxa_begin_catch(ptr %.015) #7
  %53 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
  %54 = extractvalue { i32, ptr } %53, 0
  store i32 %54, ptr %4, align 8
  %55 = extractvalue { i32, ptr } %53, 1
  store ptr %55, ptr %14, align 8
  call void @__cxa_end_catch()
  br label %56

.thread20:                                        ; preds = %38, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %56

._crit_edge:                                      ; preds = %39, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %56

56:                                               ; preds = %.thread20, %._crit_edge, %51, %45
  %.fca.0.load = load i32, ptr %4, align 8
  %.fca.0.insert = insertvalue { i32, ptr } poison, i32 %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %4, 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

57:                                               ; preds = %48
  resume { ptr, i32 } %.pn
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass