; 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"

%"struct.DynexCN::SpentTransactionOutput" = type <{ %"struct.DynexCN::TransactionOutputInformationEx.base", [7 x i8], %"struct.DynexCN::TransactionBlockInfo", %"struct.Crypto::Hash", i32, [4 x i8] }>
%"struct.DynexCN::TransactionOutputInformationEx.base" = type <{ %"struct.DynexCN::TransactionOutputInformationIn", i64, i32, i32, i8 }>
%"struct.DynexCN::TransactionOutputInformationIn" = type { %"struct.DynexCN::TransactionOutputInformation", %"struct.Crypto::KeyImage" }
%"struct.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.4 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%union.anon.4 = type { i32, [28 x i8] }
%"struct.Crypto::KeyImage" = type { [32 x i8] }
%"struct.DynexCN::TransactionBlockInfo" = type { i32, i64, i32 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.std::pair.106" = type <{ %"class.boost::multi_index::detail::hashed_index_iterator.70", i8, [7 x i8] }>
%"class.boost::multi_index::detail::hashed_index_iterator.70" = type { ptr }
%"struct.DynexCN::TransactionOutputInformationEx" = type <{ %"struct.DynexCN::TransactionOutputInformationIn", i64, i32, i32, i8, [7 x i8] }>
%"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] }

@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE = external hidden unnamed_addr constant [152 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [72 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE(ptr noundef nonnull align 8 dereferenceable(656) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(169) %4) #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.DynexCN::SpentTransactionOutput", align 8
  %12 = alloca %"struct.Crypto::Hash", align 1
  %13 = alloca %"struct.std::pair.106", align 8
  %14 = alloca { ptr, i8 }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8
  %16 = load ptr, ptr %10, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformationEx", ptr %16, i32 0, i32 2
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp ne i32 %18, -1
  br i1 %19, label %20, label %21

20:                                               ; preds = %5
  br label %23

21:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.8, i32 noundef 583, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE) #4
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 8, !tbaa !21
  %27 = icmp ne i32 %26, -1
  br i1 %27, label %28, label %29

28:                                               ; preds = %23
  br label %31

29:                                               ; preds = %23
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.8, i32 noundef 584, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE) #4
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 240, ptr %11) #5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %32, i64 169, i1 false)
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.DynexCN::SpentTransactionOutput", ptr %11, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %33, i64 24, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  %37 = getelementptr inbounds ptr, ptr %36, i64 2
  %38 = load ptr, ptr %37, align 8
  call void %38(ptr dead_on_unwind writable sret(%"struct.Crypto::Hash") align 1 %12, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %39 = getelementptr inbounds %"struct.DynexCN::SpentTransactionOutput", ptr %11, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 1 %12, i64 32, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = trunc i64 %40 to i32
  %42 = getelementptr inbounds %"struct.DynexCN::SpentTransactionOutput", ptr %11, i32 0, i32 4
  store i32 %41, ptr %42, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %43 = getelementptr inbounds %"class.DynexCN::TransfersContainer", ptr %15, i32 0, i32 4
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = call { ptr, i8 } @_ZN5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKS5_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESt8equal_toIS6_ENS1_9nth_layerILi1ENS4_22SpentTransactionOutputENS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EES7_S8_SJ_EENS0_17hashed_non_uniqueINSF_INSG_26ContainingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_IS5_RKN6Crypto4HashEXadL_ZNKS5_18getTransactionHashEvEEEESJ_SJ_EENSM_INSF_INSG_24SpendingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_ISC_SS_XadL_ZNKSC_26getSpendingTransactionHashEvEEEESJ_SJ_EESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EESaISC_EEENS_3mpl6v_itemISH_NS12_7vector0ISJ_EELi0EEENS1_17hashed_unique_tagEE7emplaceIJSC_EEESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1C_INS1C_INS1_15index_node_baseISC_S10_EEEEEEEENS1_12bucket_arrayIS10_EES17_NS1_32hashed_index_global_iterator_tagEEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(168) %44, ptr noundef nonnull align 8 dereferenceable(236) %11)
  store { ptr, i8 } %45, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 9, i1 false)
  %46 = getelementptr inbounds %"struct.std::pair.106", ptr %13, i32 0, i32 1
  %47 = load i8, ptr %46, align 8, !tbaa !31, !range !34, !noundef !35
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %50

49:                                               ; preds = %31
  br label %52

50:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.8, i32 noundef 593, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE) #4
  unreachable

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 240, ptr %11) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKS5_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESt8equal_toIS6_ENS1_9nth_layerILi1ENS4_22SpentTransactionOutputENS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EES7_S8_SJ_EENS0_17hashed_non_uniqueINSF_INSG_26ContainingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_IS5_RKN6Crypto4HashEXadL_ZNKS5_18getTransactionHashEvEEEESJ_SJ_EENSM_INSF_INSG_24SpendingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_ISC_SS_XadL_ZNKSC_26getSpendingTransactionHashEvEEEESJ_SJ_EESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EESaISC_EEENS_3mpl6v_itemISH_NS12_7vector0ISJ_EELi0EEENS1_17hashed_unique_tagEE7emplaceIJSC_EEESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1C_INS1C_INS1_15index_node_baseISC_S10_EEEEEEEENS1_12bucket_arrayIS10_EES17_NS1_32hashed_index_global_iterator_tagEEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(236)) #3 align 2

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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !16, i64 160}
!12 = !{!"_ZTSN7DynexCN30TransactionOutputInformationExE", !13, i64 0, !10, i64 152, !16, i64 160, !16, i64 164, !20, i64 168}
!13 = !{!"_ZTSN7DynexCN30TransactionOutputInformationInE", !14, i64 0, !19, i64 120}
!14 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !15, i64 0, !10, i64 8, !16, i64 16, !16, i64 20, !17, i64 24, !18, i64 56, !7, i64 88}
!15 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!18 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!19 = !{!"_ZTSN6Crypto8KeyImageE", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!14, !16, i64 16}
!22 = !{i64 0, i64 4, !23, i64 8, i64 8, !9, i64 16, i64 4, !23}
!23 = !{!16, !16, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = !{i64 0, i64 32, !27}
!27 = !{!7, !7, i64 0}
!28 = !{!29, !16, i64 232}
!29 = !{!"_ZTSN7DynexCN22SpentTransactionOutputE", !12, i64 0, !30, i64 176, !17, i64 200, !16, i64 232}
!30 = !{!"_ZTSN7DynexCN20TransactionBlockInfoE", !16, i64 0, !10, i64 8, !16, i64 16}
!31 = !{!32, !20, i64 8}
!32 = !{!"_ZTSSt4pairIN5boost11multi_index6detail21hashed_index_iteratorINS2_17hashed_index_nodeINS4_INS4_INS2_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS7_EEEEEEEEENS2_12bucket_arrayIS8_EENS2_17hashed_unique_tagENS2_32hashed_index_global_iterator_tagEEEbE", !33, i64 0, !20, i64 8}
!33 = !{!"_ZTSN5boost11multi_index6detail21hashed_index_iteratorINS1_17hashed_index_nodeINS3_INS3_INS1_15index_node_baseIN7DynexCN22SpentTransactionOutputESaIS6_EEEEEEEEENS1_12bucket_arrayIS7_EENS1_17hashed_unique_tagENS1_32hashed_index_global_iterator_tagEEE", !6, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}


; 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"

%"struct.DynexCN::SpentTransactionOutput" = type <{ %"struct.DynexCN::TransactionOutputInformationEx.base", [7 x i8], %"struct.DynexCN::TransactionBlockInfo", %"struct.Crypto::Hash", i32, [4 x i8] }>
%"struct.DynexCN::TransactionOutputInformationEx.base" = type <{ %"struct.DynexCN::TransactionOutputInformationIn", i64, i32, i32, i8 }>
%"struct.DynexCN::TransactionOutputInformationIn" = type { %"struct.DynexCN::TransactionOutputInformation", %"struct.Crypto::KeyImage" }
%"struct.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.4 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%union.anon.4 = type { i32, [28 x i8] }
%"struct.Crypto::KeyImage" = type { [32 x i8] }
%"struct.DynexCN::TransactionBlockInfo" = type { i32, i64, i32 }
%"struct.Crypto::Hash" = type { [32 x i8] }

@.str.8 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE = external hidden unnamed_addr constant [152 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [72 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 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE(ptr noundef nonnull align 8 dereferenceable(656) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %3, ptr nocapture noundef nonnull readonly align 8 dereferenceable(169) %4) local_unnamed_addr #3 align 2 {
  %6 = alloca %"struct.DynexCN::SpentTransactionOutput", align 8
  %7 = getelementptr inbounds i8, ptr %4, i64 160
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i32 %8, -1
  br i1 %.not, label %9, label %10

9:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.8, i32 noundef 583, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE) #4
  unreachable

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !18
  %.not7 = icmp eq i32 %12, -1
  br i1 %.not7, label %13, label %14

13:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.8, i32 noundef 584, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE) #4
  unreachable

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(169) %6, ptr noundef nonnull align 8 dereferenceable(169) %4, i64 169, i1 false)
  %15 = getelementptr inbounds i8, ptr %6, i64 176
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 24, i1 false), !tbaa.struct !19
  %16 = load ptr, ptr %2, align 8, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %6, i64 200
  call void %18(ptr dead_on_unwind nonnull writable sret(%"struct.Crypto::Hash") align 1 %19, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %20 = trunc i64 %3 to i32
  %21 = getelementptr inbounds i8, ptr %6, i64 232
  store i32 %20, ptr %21, align 8, !tbaa !24
  %22 = getelementptr inbounds i8, ptr %0, i64 376
  %23 = call { ptr, i8 } @_ZN5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKS5_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESt8equal_toIS6_ENS1_9nth_layerILi1ENS4_22SpentTransactionOutputENS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EES7_S8_SJ_EENS0_17hashed_non_uniqueINSF_INSG_26ContainingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_IS5_RKN6Crypto4HashEXadL_ZNKS5_18getTransactionHashEvEEEESJ_SJ_EENSM_INSF_INSG_24SpendingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_ISC_SS_XadL_ZNKSC_26getSpendingTransactionHashEvEEEESJ_SJ_EESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EESaISC_EEENS_3mpl6v_itemISH_NS12_7vector0ISJ_EELi0EEENS1_17hashed_unique_tagEE7emplaceIJSC_EEESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1C_INS1C_INS1_15index_node_baseISC_S10_EEEEEEEENS1_12bucket_arrayIS10_EES17_NS1_32hashed_index_global_iterator_tagEEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(168) %22, ptr noundef nonnull align 8 dereferenceable(236) %6)
  %.fca.1.extract = extractvalue { ptr, i8 } %23, 1
  %24 = trunc i8 %.fca.1.extract to i1
  br i1 %24, label %26, label %25

25:                                               ; preds = %14
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.8, i32 noundef 593, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN18TransfersContainer11copyToSpentERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderEmRKNS_30TransactionOutputInformationExE) #4
  unreachable

26:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %6) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost11multi_index6detail12hashed_indexINS0_13const_mem_funIN7DynexCN30TransactionOutputInformationExENS4_21SpentOutputDescriptorEXadL_ZNKS5_24getSpentOutputDescriptorEvEEEENS4_27SpentOutputDescriptorHasherESt8equal_toIS6_ENS1_9nth_layerILi1ENS4_22SpentTransactionOutputENS0_10indexed_byINS0_13hashed_uniqueINS0_3tagINS4_18TransfersContainer26SpentOutputDescriptorIndexEN4mpl_2naESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EES7_S8_SJ_EENS0_17hashed_non_uniqueINSF_INSG_26ContainingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_IS5_RKN6Crypto4HashEXadL_ZNKS5_18getTransactionHashEvEEEESJ_SJ_EENSM_INSF_INSG_24SpendingTransactionIndexESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EENS3_ISC_SS_XadL_ZNKSC_26getSpendingTransactionHashEvEEEESJ_SJ_EESJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_SJ_EESaISC_EEENS_3mpl6v_itemISH_NS12_7vector0ISJ_EELi0EEENS1_17hashed_unique_tagEE7emplaceIJSC_EEESt4pairINS1_21hashed_index_iteratorINS1_17hashed_index_nodeINS1C_INS1C_INS1_15index_node_baseISC_S10_EEEEEEEENS1_12bucket_arrayIS10_EES17_NS1_32hashed_index_global_iterator_tagEEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(236)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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, !13, i64 160}
!6 = !{!"_ZTSN7DynexCN30TransactionOutputInformationExE", !7, i64 0, !12, i64 152, !13, i64 160, !13, i64 164, !17, i64 168}
!7 = !{!"_ZTSN7DynexCN30TransactionOutputInformationInE", !8, i64 0, !16, i64 120}
!8 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !9, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !14, i64 24, !15, i64 56, !10, i64 88}
!9 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSN6Crypto4HashE", !10, i64 0}
!15 = !{!"_ZTSN6Crypto9PublicKeyE", !10, i64 0}
!16 = !{!"_ZTSN6Crypto8KeyImageE", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{!8, !13, i64 16}
!19 = !{i64 0, i64 4, !20, i64 8, i64 8, !21, i64 16, i64 4, !20}
!20 = !{!13, !13, i64 0}
!21 = !{!12, !12, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !11, i64 0}
!24 = !{!25, !13, i64 232}
!25 = !{!"_ZTSN7DynexCN22SpentTransactionOutputE", !6, i64 0, !26, i64 176, !14, i64 200, !13, i64 232}
!26 = !{!"_ZTSN7DynexCN20TransactionBlockInfoE", !13, i64 0, !12, i64 8, !13, i64 16}


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