; 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.417" = type { %"struct.std::_Vector_base.418" }
%"struct.std::_Vector_base.418" = type { %"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.422" = type { ptr }
%"struct.DynexCN::TransactionDetails" = type { %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i8, %"struct.Crypto::Hash", i8, i8, %"struct.Crypto::Hash", i32, %"struct.DynexCN::TransactionExtraDetails2", %"class.std::vector.86", %"class.std::vector.374", %"class.std::vector.379", %"class.std::__cxx11::basic_string", %"class.std::vector.66", %"class.std::vector.66", %"struct.Crypto::SecretKey" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.DynexCN::TransactionExtraDetails2" = type { %"class.std::vector.145", %"struct.Crypto::PublicKey", %"class.std::vector.71", %"class.std::vector.71", %"class.std::__cxx11::basic_string", %"class.std::vector.66", %"class.std::vector.66", %"struct.Crypto::SecretKey" }
%"class.std::vector.145" = type { %"struct.std::_Vector_base.146" }
%"struct.std::_Vector_base.146" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"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.374" = type { %"struct.std::_Vector_base.375" }
%"struct.std::_Vector_base.375" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.379" = type { %"struct.std::_Vector_base.380" }
%"struct.std::_Vector_base.380" = type { %"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.66" = type { %"struct.std::_Vector_base.67" }
%"struct.std::_Vector_base.67" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"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 @_ZN7DynexCN18TransactionDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(560)) unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder22fillTransactionDetailsERKNS_11TransactionERNS_18TransactionDetailsEm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(560), i64 noundef) #6

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_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_cxxneIPN7DynexCN11TransactionESt6vectorIS2_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(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11TransactionESt6vectorIS2_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_iteratorIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode28doGetTransactionsByPaymentIdERKN6Crypto4HashERSt6vectorINS_18TransactionDetailsESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 1 dereferenceable(32) %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 %"class.std::vector.417", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.422", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.422", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.DynexCN::TransactionDetails", 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 24, ptr %8) #8
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %20 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %19, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %21, align 8, !tbaa !42
  %24 = getelementptr inbounds ptr, ptr %23, i64 44
  %25 = load ptr, ptr %24, align 8
  %26 = invoke noundef zeroext i1 %25(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 1 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %27 unwind label %35

27:                                               ; preds = %3
  br i1 %26, label %39, label %28

28:                                               ; preds = %27
  %29 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
          to label %30 unwind label %35

30:                                               ; preds = %28
  %31 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  %32 = extractvalue { i32, ptr } %29, 0
  store i32 %32, ptr %31, align 8
  %33 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  %34 = extractvalue { i32, ptr } %29, 1
  store ptr %34, ptr %33, align 8
  store i32 1, ptr %11, align 4
  br label %80

35:                                               ; preds = %28, %3
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %9, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %10, align 4
  br label %83

39:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr %8, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = call ptr @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.422", ptr %13, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.422", ptr %14, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %75, %39
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  store i32 2, ptr %11, align 4
  br label %77

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %50 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  store ptr %50, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 560, ptr %16) #8
  call void @_ZN7DynexCN18TransactionDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(560) %16) #8
  %51 = getelementptr inbounds %"class.DynexCN::InProcessNode", ptr %19, i32 0, i32 11
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = invoke noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder22fillTransactionDetailsERKNS_11TransactionERNS_18TransactionDetailsEm(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(112) %52, ptr noundef nonnull align 8 dereferenceable(560) %16, i64 noundef 0)
          to label %54 unwind label %62

54:                                               ; preds = %49
  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, %49
  %63 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  call void @_ZN7DynexCN18TransactionDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(560) %16) #8
  call void @llvm.lifetime.end.p0(i64 560, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %83

66:                                               ; preds = %54
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7DynexCN18TransactionDetailsESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(560) %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 @_ZN7DynexCN18TransactionDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(560) %16) #8
  call void @llvm.lifetime.end.p0(i64 560, ptr %16) #8
  %70 = load i32, ptr %11, align 4
  switch i32 %70, label %72 [
    i32 0, label %71
  ]

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

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

74:                                               ; preds = %72
  br label %75

75:                                               ; preds = %74
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %46

77:                                               ; preds = %72, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %78 = load i32, ptr %11, align 4
  switch i32 %78, label %80 [
    i32 2, label %79
  ]

79:                                               ; preds = %77
  store i32 0, ptr %11, align 4
  br label %80

80:                                               ; preds = %79, %77, %30
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  %81 = load i32, ptr %11, align 4
  switch i32 %81, label %121 [
    i32 0, label %82
    i32 1, label %111
  ]

82:                                               ; preds = %80
  br label %110

83:                                               ; preds = %62, %35
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %10, align 4
  %86 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt12system_error) #8
  %87 = icmp eq i32 %85, %86
  br i1 %87, label %88, label %93

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %89 = load ptr, ptr %9, align 8
  %90 = call ptr @__cxa_begin_catch(ptr %89) #8
  store ptr %90, ptr %18, align 8
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %91) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %92, 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 %111

93:                                               ; preds = %84
  %94 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %95 = icmp eq i32 %85, %94
  br i1 %95, label %96, label %113

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %97 = load ptr, ptr %9, align 8
  %98 = call ptr @__cxa_begin_catch(ptr %97) #8
  store ptr %98, ptr %17, align 8
  %99 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
          to label %100 unwind label %105

100:                                              ; preds = %96
  %101 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  %102 = extractvalue { i32, ptr } %99, 0
  store i32 %102, ptr %101, align 8
  %103 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  %104 = extractvalue { i32, ptr } %99, 1
  store ptr %104, ptr %103, 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 %111

105:                                              ; preds = %96
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %109 unwind label %118

109:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %113

110:                                              ; preds = %82
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %111

111:                                              ; preds = %110, %100, %88, %80
  %112 = load { i32, ptr }, ptr %4, align 8
  ret { i32, ptr } %112

113:                                              ; preds = %109, %93
  %114 = load ptr, ptr %9, align 8
  %115 = load i32, ptr %10, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117

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

121:                                              ; preds = %80
  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, !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.std::vector.417" = type { %"struct.std::_Vector_base.418" }
%"struct.std::_Vector_base.418" = type { %"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::Transaction, std::allocator<DynexCN::Transaction>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.422" = type { ptr }
%"struct.DynexCN::TransactionDetails" = type { %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i8, %"struct.Crypto::Hash", i8, i8, %"struct.Crypto::Hash", i32, %"struct.DynexCN::TransactionExtraDetails2", %"class.std::vector.86", %"class.std::vector.374", %"class.std::vector.379", %"class.std::__cxx11::basic_string", %"class.std::vector.66", %"class.std::vector.66", %"struct.Crypto::SecretKey" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.DynexCN::TransactionExtraDetails2" = type { %"class.std::vector.145", %"struct.Crypto::PublicKey", %"class.std::vector.71", %"class.std::vector.71", %"class.std::__cxx11::basic_string", %"class.std::vector.66", %"class.std::vector.66", %"struct.Crypto::SecretKey" }
%"class.std::vector.145" = type { %"struct.std::_Vector_base.146" }
%"struct.std::_Vector_base.146" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"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.374" = type { %"struct.std::_Vector_base.375" }
%"struct.std::_Vector_base.375" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>, std::allocator<boost::variant<DynexCN::BaseInputDetails, DynexCN::KeyInputDetails, DynexCN::MultisignatureInputDetails>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.379" = type { %"struct.std::_Vector_base.380" }
%"struct.std::_Vector_base.380" = type { %"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::transactionOutputDetails2, std::allocator<DynexCN::transactionOutputDetails2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.66" = type { %"struct.std::_Vector_base.67" }
%"struct.std::_Vector_base.67" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Crypto::SecretKey" = type { [32 x i8] }

@_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 @_ZN7DynexCN18TransactionDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(560)) unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder22fillTransactionDetailsERKNS_11TransactionERNS_18TransactionDetailsEm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(560), i64 noundef) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_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_cxxneIPN7DynexCN11TransactionESt6vectorIS2_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(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11TransactionESt6vectorIS2_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_iteratorIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN7DynexCN13InProcessNode28doGetTransactionsByPaymentIdERKN6Crypto4HashERSt6vectorINS_18TransactionDetailsESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 1 dereferenceable(32) %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.std::vector.417", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.422", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.422", align 8
  %8 = alloca %"struct.DynexCN::TransactionDetails", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %10, align 8, !tbaa !41
  %12 = getelementptr inbounds i8, ptr %11, i64 352
  %13 = load ptr, ptr %12, align 8
  %14 = invoke noundef zeroext i1 %13(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %15 unwind label %20

15:                                               ; preds = %3
  br i1 %14, label %22, label %.thread21

.thread21:                                        ; preds = %15
  %16 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 6)
  %17 = extractvalue { i32, ptr } %16, 0
  store i32 %17, ptr %4, align 8
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = extractvalue { i32, ptr } %16, 1
  store ptr %19, ptr %18, align 8
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %57

20:                                               ; preds = %3
  %21 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  br label %42

22:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %23 = call ptr @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %23, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %24 = call ptr @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store ptr %24, ptr %7, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 256
  br label %27

27:                                               ; preds = %.lr.ph, %34
  %28 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 560, ptr nonnull %8) #7
  call void @_ZN7DynexCN18TransactionDetailsC2Ev(ptr noundef nonnull align 8 dereferenceable(560) %8) #7
  %29 = invoke noundef zeroext i1 @_ZN7DynexCN29BlockchainExplorerDataBuilder22fillTransactionDetailsERKNS_11TransactionERNS_18TransactionDetailsEm(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(112) %28, ptr noundef nonnull align 8 dereferenceable(560) %8, i64 noundef 0)
          to label %30 unwind label %31

30:                                               ; preds = %27
  br i1 %29, label %33, label %37

31:                                               ; preds = %33, %27
  %32 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  call void @_ZN7DynexCN18TransactionDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(560) %8) #7
  call void @llvm.lifetime.end.p0(i64 560, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %42

33:                                               ; preds = %30
  invoke void @_ZNSt6vectorIN7DynexCN18TransactionDetailsESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(560) %8)
          to label %34 unwind label %31

34:                                               ; preds = %33
  call void @_ZN7DynexCN18TransactionDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(560) %8) #7
  call void @llvm.lifetime.end.p0(i64 560, ptr nonnull %8) #7
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11TransactionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %36, label %27, label %._crit_edge

37:                                               ; preds = %30
  %38 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error23InProcessNodeErrorCodesE(i32 noundef 5)
  %39 = extractvalue { i32, ptr } %38, 0
  store i32 %39, ptr %4, align 8
  %40 = getelementptr inbounds i8, ptr %4, i64 8
  %41 = extractvalue { i32, ptr } %38, 1
  store ptr %41, ptr %40, align 8
  call void @_ZN7DynexCN18TransactionDetailsD2Ev(ptr noundef nonnull align 8 dereferenceable(560) %8) #7
  call void @llvm.lifetime.end.p0(i64 560, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %57

42:                                               ; preds = %31, %20
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %21, %20 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.018 = extractvalue { ptr, i32 } %.pn, 1
  call void @_ZNSt6vectorIN7DynexCN11TransactionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  %43 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt12system_error) #7
  %44 = icmp eq i32 %.018, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = call ptr @__cxa_begin_catch(ptr %.0) #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 %57

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

51:                                               ; preds = %48
  %52 = call ptr @__cxa_begin_catch(ptr %.0) #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 = getelementptr inbounds i8, ptr %4, i64 8
  %56 = extractvalue { i32, ptr } %53, 1
  store ptr %56, ptr %55, align 8
  call void @__cxa_end_catch()
  br label %57

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

57:                                               ; preds = %37, %.thread21, %._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

58:                                               ; preds = %48
  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