; LLVM IR from dynexcoin/Dynex :: src/Transfers (TransfersContainer)

; 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::vector.115" = type { %"struct.std::_Vector_base.116" }
%"struct.std::_Vector_base.116" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%"struct.std::pair.97" = type { %"class.boost::multi_index::detail::hashed_index_iterator.99", %"class.boost::multi_index::detail::hashed_index_iterator.99" }
%"class.boost::multi_index::detail::hashed_index_iterator.99" = type { ptr }
%"class.DynexCN::TransfersContainer" = type { %"class.DynexCN::ITransfersContainer", %"class.boost::multi_index::multi_index_container", %"class.boost::multi_index::multi_index_container.5", %"class.boost::multi_index::multi_index_container.5", %"class.boost::multi_index::multi_index_container.14", i32, i64, ptr, %"class.std::mutex", %"class.Logging::LoggerRef" }
%"class.DynexCN::ITransfersContainer" = type { %"class.DynexCN::IStreamSerializable" }
%"class.DynexCN::IStreamSerializable" = type { ptr }
%"class.boost::multi_index::multi_index_container" = type { [8 x i8], %"struct.boost::multi_index::detail::header_holder", %"class.boost::multi_index::detail::hashed_index", i64 }
%"struct.boost::multi_index::detail::header_holder" = type { ptr }
%"class.boost::multi_index::detail::hashed_index" = type { [8 x i8], %"class.boost::multi_index::detail::bucket_array", float, i64 }
%"class.boost::multi_index::detail::bucket_array" = type { i64, %"struct.boost::multi_index::detail::auto_space" }
%"struct.boost::multi_index::detail::auto_space" = type { [8 x i8], i64, ptr }
%"class.boost::multi_index::multi_index_container.5" = type { [8 x i8], %"struct.boost::multi_index::detail::header_holder.7", %"class.boost::multi_index::detail::hashed_index.8", i64 }
%"struct.boost::multi_index::detail::header_holder.7" = type { ptr }
%"class.boost::multi_index::detail::hashed_index.8" = type { %"class.boost::multi_index::detail::hashed_index.9", [8 x i8], %"class.boost::multi_index::detail::bucket_array.12", float, i64 }
%"class.boost::multi_index::detail::hashed_index.9" = type { [8 x i8], %"class.boost::multi_index::detail::bucket_array.12", float, i64 }
%"class.boost::multi_index::detail::bucket_array.12" = type { i64, %"struct.boost::multi_index::detail::auto_space.13" }
%"struct.boost::multi_index::detail::auto_space.13" = type { [8 x i8], i64, ptr }
%"class.boost::multi_index::multi_index_container.14" = type { [8 x i8], %"struct.boost::multi_index::detail::header_holder.16", %"class.boost::multi_index::detail::hashed_index.17", i64 }
%"struct.boost::multi_index::detail::header_holder.16" = type { ptr }
%"class.boost::multi_index::detail::hashed_index.17" = type { %"class.boost::multi_index::detail::hashed_index.18", [8 x i8], %"class.boost::multi_index::detail::bucket_array.22", float, i64 }
%"class.boost::multi_index::detail::hashed_index.18" = type { %"class.boost::multi_index::detail::hashed_index.19", [8 x i8], %"class.boost::multi_index::detail::bucket_array.22", float, i64 }
%"class.boost::multi_index::detail::hashed_index.19" = type { [8 x i8], %"class.boost::multi_index::detail::bucket_array.22", float, i64 }
%"class.boost::multi_index::detail::bucket_array.22" = type { i64, %"struct.boost::multi_index::detail::auto_space.23" }
%"struct.boost::multi_index::detail::auto_space.23" = type { [8 x i8], i64, 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 }
%"class.Logging::LoggerRef" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.27 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.27 = type { i64, [8 x i8] }
%"struct.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.4 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%union.anon.4 = type { i32, [28 x i8] }

@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7DynexCN18TransfersContainer20getTransactionInputsERKN6Crypto4HashEj = external hidden unnamed_addr constant [130 x i8], align 1

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

; Function Attrs: nocallback nofree 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN22SpentTransactionOutputERKN6Crypto4HashEXadL_ZNKS5_26getSpendingTransactionHashEvEEEENS_4hashIS8_EESt8equal_toIS8_ENS1_9nth_layerILi3ES5_NS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_INS4_30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKSO_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESM_EENS0_17hashed_non_uniqueINSI_INSJ_26ContainingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_ISO_S9_XadL_ZNKSO_18getTransactionHashEvEEEESM_SM_EENST_INSI_INSJ_24SpendingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESA_SM_SM_EESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESaIS5_EEENS_3mpl6v_itemISY_NS14_7vector0ISM_EELi0EEENS1_21hashed_non_unique_tagEE11equal_rangeIS7_EESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIS5_S12_EEEENS1_12bucket_arrayIS12_EES19_NS1_32hashed_index_global_iterator_tagEEES1L_ERKT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 1 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost14operators_implneERKNS_11multi_index6detail21hashed_index_iteratorINS2_17hashed_index_nodeINS2_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS7_EEEEENS2_12bucket_arrayIS8_EENS2_21hashed_non_unique_tagENS2_32hashed_index_global_iterator_tagEEESH_(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(236) ptr @_ZNK5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEENS1_12bucket_arrayIS7_EENS1_21hashed_non_unique_tagENS1_32hashed_index_global_iterator_tagEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN18TransfersContainer10isIncludedENS_16TransactionTypes10OutputTypeEjj(i8 noundef zeroext, i32 noundef, i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(120)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7DynexCN18TransfersContainer20getTransactionInputsERKN6Crypto4HashEj(ptr dead_on_unwind noalias writable sret(%"class.std::vector.115") align 8 %0, ptr noundef nonnull align 8 dereferenceable(656) %1, ptr noundef nonnull align 1 dereferenceable(32) %2, i32 noundef %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::lock_guard", align 8
  %10 = alloca i1, align 1
  %11 = alloca %"struct.std::pair.97", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.boost::multi_index::detail::hashed_index_iterator.99", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = and i32 %16, 255
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  br label %22

20:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.8, i32 noundef 823, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN18TransfersContainer20getTransactionInputsERKN6Crypto4HashEj) #5
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = or i32 %23, 1
  store i32 %24, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %25 = getelementptr inbounds %"class.DynexCN::TransfersContainer", ptr %15, i32 0, i32 8
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(40) %25)
  store i1 false, ptr %10, align 1
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %26 = getelementptr inbounds %"class.DynexCN::TransfersContainer", ptr %15, i32 0, i32 4
  %27 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK5boost11multi_index21multi_index_containerIN7DynexCN22SpentTransactionOutputENS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS2_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_13const_mem_funINS2_30TransactionOutputInformationExENS2_21SpentOutputDescriptorEXadL_ZNKSD_24getSpentOutputDescriptorEvEEEENS2_27SpentOutputDescriptorHasherESA_EENS0_17hashed_non_uniqueINS6_INS7_26ContainingTransactionIndexESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENSC_ISD_RKN6Crypto4HashEXadL_ZNKSD_18getTransactionHashEvEEEESA_SA_EENSI_INS6_INS7_24SpendingTransactionIndexESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENSC_IS3_SO_XadL_ZNKS3_26getSpendingTransactionHashEvEEEESA_SA_EESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EESaIS3_EE3getISR_EERKNSX_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(192) %26) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = invoke { ptr, ptr } @_ZNK5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN22SpentTransactionOutputERKN6Crypto4HashEXadL_ZNKS5_26getSpendingTransactionHashEvEEEENS_4hashIS8_EESt8equal_toIS8_ENS1_9nth_layerILi3ES5_NS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_INS4_30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKSO_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESM_EENS0_17hashed_non_uniqueINSI_INSJ_26ContainingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_ISO_S9_XadL_ZNKSO_18getTransactionHashEvEEEESM_SM_EENST_INSI_INSJ_24SpendingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESA_SM_SM_EESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESaIS5_EEENS_3mpl6v_itemISY_NS14_7vector0ISM_EELi0EEENS1_21hashed_non_unique_tagEE11equal_rangeIS7_EESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIS5_S12_EEEENS1_12bucket_arrayIS12_EES19_NS1_32hashed_index_global_iterator_tagEEES1L_ERKT_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 1 dereferenceable(32) %28)
          to label %30 unwind label %41

30:                                               ; preds = %22
  %31 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %32 = extractvalue { ptr, ptr } %29, 0
  store ptr %32, ptr %31, align 8
  %33 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %34 = extractvalue { ptr, ptr } %29, 1
  store ptr %34, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %35 = getelementptr inbounds %"struct.std::pair.97", ptr %11, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %35, i64 8, i1 false)
  br label %36

36:                                               ; preds = %64, %30
  %37 = getelementptr inbounds %"struct.std::pair.97", ptr %11, i32 0, i32 1
  %38 = invoke noundef zeroext i1 @_ZN5boost14operators_implneERKNS_11multi_index6detail21hashed_index_iteratorINS2_17hashed_index_nodeINS2_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS7_EEEEENS2_12bucket_arrayIS8_EENS2_21hashed_non_unique_tagENS2_32hashed_index_global_iterator_tagEEESH_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %39 unwind label %45

39:                                               ; preds = %36
  br i1 %38, label %49, label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %65

41:                                               ; preds = %22
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %12, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %13, align 4
  br label %67

45:                                               ; preds = %62, %59, %57, %51, %49, %36
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %12, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %67

49:                                               ; preds = %39
  %50 = invoke noundef ptr @_ZNK5boost14operators_impl15dereferenceableINS_11multi_index6detail21hashed_index_iteratorINS3_17hashed_index_nodeINS3_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS8_EEEEENS3_12bucket_arrayIS9_EENS3_21hashed_non_unique_tagENS3_32hashed_index_global_iterator_tagEEEPKS8_NS0_15iterator_helperISt20forward_iterator_tagS8_lSI_RSH_EEEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %51 unwind label %45

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %50, i32 0, i32 0
  %53 = load i8, ptr %52, align 8, !tbaa !11
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = invoke noundef zeroext i1 @_ZN7DynexCN18TransfersContainer10isIncludedENS_16TransactionTypes10OutputTypeEjj(i8 noundef zeroext %53, i32 noundef 1, i32 noundef %54)
          to label %56 unwind label %45

56:                                               ; preds = %51
  br i1 %55, label %57, label %61

57:                                               ; preds = %56
  %58 = invoke noundef nonnull align 8 dereferenceable(236) ptr @_ZNK5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEENS1_12bucket_arrayIS7_EENS1_21hashed_non_unique_tagENS1_32hashed_index_global_iterator_tagEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %59 unwind label %45

59:                                               ; preds = %57
  invoke void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(120) %58)
          to label %60 unwind label %45

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60, %56
  br label %62

62:                                               ; preds = %61
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEENS1_12bucket_arrayIS7_EENS1_21hashed_non_unique_tagENS1_32hashed_index_global_iterator_tagEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %64 unwind label %45

64:                                               ; preds = %62
  br label %36, !llvm.loop !17

65:                                               ; preds = %40
  store i1 true, ptr %10, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %66 = load i1, ptr %10, align 1
  br i1 %66, label %69, label %68

67:                                               ; preds = %45, %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %70

68:                                               ; preds = %65
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %69

69:                                               ; preds = %68, %65
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

70:                                               ; preds = %67
  %71 = load ptr, ptr %12, align 8
  %72 = load i32, ptr %13, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !13, i64 0, !14, i64 8, !10, i64 16, !10, i64 20, !15, i64 24, !16, i64 56, !7, i64 88}
!13 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!16 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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::vector.115" = type { %"struct.std::_Vector_base.116" }
%"struct.std::_Vector_base.116" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%"struct.std::pair.97" = type { %"class.boost::multi_index::detail::hashed_index_iterator.99", %"class.boost::multi_index::detail::hashed_index_iterator.99" }
%"class.boost::multi_index::detail::hashed_index_iterator.99" = type { ptr }

@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7DynexCN18TransfersContainer20getTransactionInputsERKN6Crypto4HashEj = external hidden unnamed_addr constant [130 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN22SpentTransactionOutputERKN6Crypto4HashEXadL_ZNKS5_26getSpendingTransactionHashEvEEEENS_4hashIS8_EESt8equal_toIS8_ENS1_9nth_layerILi3ES5_NS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_INS4_30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKSO_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESM_EENS0_17hashed_non_uniqueINSI_INSJ_26ContainingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_ISO_S9_XadL_ZNKSO_18getTransactionHashEvEEEESM_SM_EENST_INSI_INSJ_24SpendingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESA_SM_SM_EESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESaIS5_EEENS_3mpl6v_itemISY_NS14_7vector0ISM_EELi0EEENS1_21hashed_non_unique_tagEE11equal_rangeIS7_EESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIS5_S12_EEEENS1_12bucket_arrayIS12_EES19_NS1_32hashed_index_global_iterator_tagEEES1L_ERKT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost14operators_implneERKNS_11multi_index6detail21hashed_index_iteratorINS2_17hashed_index_nodeINS2_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS7_EEEEENS2_12bucket_arrayIS8_EENS2_21hashed_non_unique_tagENS2_32hashed_index_global_iterator_tagEEESH_(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(236) ptr @_ZNK5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEENS1_12bucket_arrayIS7_EENS1_21hashed_non_unique_tagENS1_32hashed_index_global_iterator_tagEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN18TransfersContainer10isIncludedENS_16TransactionTypes10OutputTypeEjj(i8 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7DynexCN18TransfersContainer20getTransactionInputsERKN6Crypto4HashEj(ptr dead_on_unwind noalias writable sret(%"class.std::vector.115") align 8 %0, ptr noundef nonnull align 8 dereferenceable(656) %1, ptr noundef nonnull align 1 dereferenceable(32) %2, i32 noundef %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::lock_guard", align 8
  %6 = alloca %"struct.std::pair.97", align 8
  %7 = alloca %"class.boost::multi_index::detail::hashed_index_iterator.99", align 8
  %8 = and i32 %3, 255
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %11, label %10

10:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.8, i32 noundef 823, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN18TransfersContainer20getTransactionInputsERKN6Crypto4HashEj) #4
  unreachable

11:                                               ; preds = %4
  %12 = or disjoint i32 %3, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %13 = getelementptr inbounds i8, ptr %1, i64 576
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(40) %13)
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %14 = getelementptr inbounds i8, ptr %1, i64 360
  %15 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK5boost11multi_index21multi_index_containerIN7DynexCN22SpentTransactionOutputENS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS2_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_13const_mem_funINS2_30TransactionOutputInformationExENS2_21SpentOutputDescriptorEXadL_ZNKSD_24getSpentOutputDescriptorEvEEEENS2_27SpentOutputDescriptorHasherESA_EENS0_17hashed_non_uniqueINS6_INS7_26ContainingTransactionIndexESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENSC_ISD_RKN6Crypto4HashEXadL_ZNKSD_18getTransactionHashEvEEEESA_SA_EENSI_INS6_INS7_24SpendingTransactionIndexESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENSC_IS3_SO_XadL_ZNKS3_26getSpendingTransactionHashEvEEEESA_SA_EESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EESaIS3_EE3getISR_EERKNSX_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(192) %14) #5
  %16 = invoke { ptr, ptr } @_ZNK5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN22SpentTransactionOutputERKN6Crypto4HashEXadL_ZNKS5_26getSpendingTransactionHashEvEEEENS_4hashIS8_EESt8equal_toIS8_ENS1_9nth_layerILi3ES5_NS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_INS4_30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKSO_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESM_EENS0_17hashed_non_uniqueINSI_INSJ_26ContainingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EENS3_ISO_S9_XadL_ZNKSO_18getTransactionHashEvEEEESM_SM_EENST_INSI_INSJ_24SpendingTransactionIndexESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESA_SM_SM_EESM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_SM_EESaIS5_EEENS_3mpl6v_itemISY_NS14_7vector0ISM_EELi0EEENS1_21hashed_non_unique_tagEE11equal_rangeIS7_EESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIS5_S12_EEEENS1_12bucket_arrayIS12_EES19_NS1_32hashed_index_global_iterator_tagEEES1L_ERKT_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 1 dereferenceable(32) %2)
          to label %17 unwind label %25

17:                                               ; preds = %11
  %18 = extractvalue { ptr, ptr } %16, 0
  store ptr %18, ptr %6, align 8
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  %20 = extractvalue { ptr, ptr } %16, 1
  store ptr %20, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %.cast = ptrtoint ptr %18 to i64
  store i64 %.cast, ptr %7, align 8
  br label %21

21:                                               ; preds = %35, %17
  %22 = invoke noundef zeroext i1 @_ZN5boost14operators_implneERKNS_11multi_index6detail21hashed_index_iteratorINS2_17hashed_index_nodeINS2_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS7_EEEEENS2_12bucket_arrayIS8_EENS2_21hashed_non_unique_tagENS2_32hashed_index_global_iterator_tagEEESH_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %23 unwind label %27

23:                                               ; preds = %21
  br i1 %22, label %29, label %24

24:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret void

25:                                               ; preds = %11
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %37

27:                                               ; preds = %35, %33, %21
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %37

29:                                               ; preds = %23
  %30 = call noundef ptr @_ZNK5boost14operators_impl15dereferenceableINS_11multi_index6detail21hashed_index_iteratorINS3_17hashed_index_nodeINS3_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS8_EEEEENS3_12bucket_arrayIS9_EENS3_21hashed_non_unique_tagENS3_32hashed_index_global_iterator_tagEEEPKS8_NS0_15iterator_helperISt20forward_iterator_tagS8_lSI_RSH_EEEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  %31 = load i8, ptr %30, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN7DynexCN18TransfersContainer10isIncludedENS_16TransactionTypes10OutputTypeEjj(i8 noundef zeroext %31, i32 noundef 1, i32 noundef %12)
  br i1 %32, label %33, label %35

33:                                               ; preds = %29
  %34 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZNK5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEENS1_12bucket_arrayIS7_EENS1_21hashed_non_unique_tagENS1_32hashed_index_global_iterator_tagEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(120) %34)
          to label %35 unwind label %27

35:                                               ; preds = %29, %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEENS1_12bucket_arrayIS7_EENS1_21hashed_non_unique_tagENS1_32hashed_index_global_iterator_tagEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %21 unwind label %27, !llvm.loop !14

37:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { noreturn nounwind }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !13, i64 56, !8, i64 88}
!7 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTSN6Crypto4HashE", !8, i64 0}
!13 = !{!"_ZTSN6Crypto9PublicKeyE", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass