; LLVM IR from dynexcoin/Dynex :: src/DynexCNCore (Transaction)

; 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.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.DynexCN::TransactionImpl" = type { %"class.DynexCN::ITransaction", %"struct.DynexCN::Transaction", %"class.boost::optional", %"class.boost::optional.21", %"class.DynexCN::TransactionExtra" }
%"class.DynexCN::ITransaction" = type { %"class.DynexCN::ITransactionReader", %"class.DynexCN::ITransactionWriter" }
%"class.DynexCN::ITransactionReader" = type { ptr }
%"class.DynexCN::ITransactionWriter" = type { ptr }
%"struct.DynexCN::Transaction" = type { %"struct.DynexCN::TransactionPrefix", %"class.std::vector.16" }
%"struct.DynexCN::TransactionPrefix" = type { i8, i64, %"class.std::vector", %"class.std::vector.6", %"class.std::vector.11" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = 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.boost::optional" = type { %"class.boost::optional_detail::optional_base" }
%"class.boost::optional_detail::optional_base" = type { i8, %"class.boost::optional_detail::aligned_storage" }
%"class.boost::optional_detail::aligned_storage" = type { %"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" = type { [32 x i8] }
%"class.boost::optional.21" = type { %"class.boost::optional_detail::optional_base.22" }
%"class.boost::optional_detail::optional_base.22" = type { i8, %"class.boost::optional_detail::aligned_storage.23" }
%"class.boost::optional_detail::aligned_storage.23" = type { %"union.boost::optional_detail::aligned_storage<Crypto::Hash>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<Crypto::Hash>::dummy_u" = type { [32 x i8] }
%"class.DynexCN::TransactionExtra" = type { %"class.std::vector.24" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>, std::allocator<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>, std::allocator<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>, std::allocator<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>, std::allocator<boost::variant<DynexCN::TransactionExtraPadding, DynexCN::TransactionExtraPublicKey, DynexCN::TransactionExtraNonce, DynexCN::TransactionExtraMergeTag, DynexCN::TransactionExtraFromAddress, DynexCN::TransactionExtraToAddress, DynexCN::TransactionExtraAmount, DynexCN::TransactionExtraTxkey>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::TransactionTypes::InputKeyInfo" = type { i64, %"class.std::vector.34", %"struct.DynexCN::TransactionTypes::OutputKeyInfo" }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::TransactionTypes::OutputKeyInfo" = type { %"struct.Crypto::PublicKey", i64, i64 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"struct.DynexCN::TransactionTypes::GlobalOutput" = type { %"struct.Crypto::PublicKey", i32 }
%"struct.DynexCN::KeyInput" = type { i64, %"class.std::vector.29", %"struct.Crypto::KeyImage" }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Crypto::KeyImage" = type { [32 x i8] }
%"struct.DynexCN::KeyPair" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey" }
%"struct.Crypto::SecretKey" = type { [32 x i8] }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN15TransactionImpl14invalidateHashEv(ptr noundef nonnull align 8 dereferenceable(224)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN15TransactionImpl12signInputKeyEmRKNS_16TransactionTypes12InputKeyInfoERKNS_7KeyPairE(ptr noundef nonnull align 8 dereferenceable(224) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 1 dereferenceable(64) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.Crypto::Hash", align 1
  %11 = alloca %"class.std::vector.52", align 8
  %12 = alloca %"class.std::vector.57", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %21 = getelementptr inbounds %"class.DynexCN::TransactionImpl", ptr %20, i32 0, i32 1
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN7DynexCN15getInputCheckedERKNS_17TransactionPrefixEmNS_16TransactionTypes9InputTypeE(ptr noundef nonnull align 8 dereferenceable(88) %21, i64 noundef %22, i8 noundef zeroext 1)
  %24 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost3getIN7DynexCN8KeyInputENS1_9BaseInputEJS2_NS1_19MultisignatureInputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(72) %23)
  store ptr %24, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %25 = load ptr, ptr %20, align 8, !tbaa !11
  %26 = getelementptr inbounds ptr, ptr %25, i64 3
  %27 = load ptr, ptr %26, align 8
  call void %27(ptr dead_on_unwind writable sret(%"struct.Crypto::Hash") align 1 %10, ptr noundef nonnull align 8 dereferenceable(224) %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %28, i32 0, i32 1
  store ptr %29, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  br label %36

36:                                               ; preds = %44, %4
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %37, label %39, label %38

38:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %50

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %40 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  store ptr %40, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::GlobalOutput", ptr %41, i32 0, i32 0
  store ptr %42, ptr %17, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %43 unwind label %46

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %44

44:                                               ; preds = %43
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %36

46:                                               ; preds = %39
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %18, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %72

50:                                               ; preds = %38
  %51 = call noundef i64 @_ZNKSt6vectorIPKN6Crypto9PublicKeyESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  invoke void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %51)
          to label %52 unwind label %68

52:                                               ; preds = %50
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.DynexCN::KeyInput", ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.DynexCN::KeyPair", ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::OutputKeyInfo", ptr %58, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !13
  %61 = call noundef ptr @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  invoke void @_ZN6Crypto23generate_ring_signatureERKNS_4HashERKNS_8KeyImageERKSt6vectorIPKNS_9PublicKeyESaIS9_EERKNS_9SecretKeyEmPNS_9SignatureE(ptr noundef nonnull align 1 dereferenceable(32) %10, ptr noundef nonnull align 1 dereferenceable(32) %54, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 1 dereferenceable(32) %56, i64 noundef %60, ptr noundef %61)
          to label %62 unwind label %68

62:                                               ; preds = %52
  %63 = load i64, ptr %6, align 8, !tbaa !9
  %64 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7DynexCN15TransactionImpl13getSignaturesEm(ptr noundef nonnull align 8 dereferenceable(224) %20, i64 noundef %63)
          to label %65 unwind label %68

65:                                               ; preds = %62
  %66 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %67 unwind label %68

67:                                               ; preds = %65
  call void @_ZN7DynexCN15TransactionImpl14invalidateHashEv(ptr noundef nonnull align 8 dereferenceable(224) %20)
  call void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

68:                                               ; preds = %65, %62, %52, %50
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %18, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %19, align 4
  br label %72

72:                                               ; preds = %68, %46
  call void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %18, align 8
  %75 = load i32, ptr %19, align 4
  %76 = insertvalue { ptr, i32 } poison, ptr %74, 0
  %77 = insertvalue { ptr, i32 } %76, i32 %75, 1
  resume { ptr, i32 } %77
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost3getIN7DynexCN8KeyInputENS1_9BaseInputEJS2_NS1_19MultisignatureInputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(72)) #4

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN7DynexCN15getInputCheckedERKNS_17TransactionPrefixEmNS_16TransactionTypes9InputTypeE(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i8 noundef zeroext) #5

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Crypto23generate_ring_signatureERKNS_4HashERKNS_8KeyImageERKSt6vectorIPKNS_9PublicKeyESaIS9_EERKNS_9SecretKeyEmPNS_9SignatureE(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7DynexCN15TransactionImpl13getSignaturesEm(ptr noundef nonnull align 8 dereferenceable(224), i64 noundef) #3 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { inlinehint 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 #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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 64}
!14 = !{!"_ZTSN7DynexCN16TransactionTypes12InputKeyInfoE", !10, i64 0, !15, i64 8, !19, i64 32}
!15 = !{!"_ZTSSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN7DynexCN16TransactionTypes13OutputKeyInfoE", !20, i64 0, !10, i64 32, !10, i64 40}
!20 = !{!"_ZTSN6Crypto9PublicKeyE", !7, 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"

%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Signature, std::allocator<Crypto::Signature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Crypto::PublicKey *, std::allocator<const Crypto::PublicKey *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN15TransactionImpl14invalidateHashEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(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 4 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN15TransactionImpl12signInputKeyEmRKNS_16TransactionTypes12InputKeyInfoERKNS_7KeyPairE(ptr noundef nonnull align 8 dereferenceable(224) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 1 dereferenceable(64) %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.Crypto::Hash", align 1
  %6 = alloca %"class.std::vector.52", align 8
  %7 = alloca %"class.std::vector.57", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca ptr, align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = tail call noundef nonnull align 8 dereferenceable(72) ptr @_ZN7DynexCN15getInputCheckedERKNS_17TransactionPrefixEmNS_16TransactionTypes9InputTypeE(ptr noundef nonnull align 8 dereferenceable(88) %11, i64 noundef %1, i8 noundef zeroext 1)
  %13 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost3getIN7DynexCN8KeyInputENS1_9BaseInputEJS2_NS1_19MultisignatureInputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(72) %12)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 24
  %16 = load ptr, ptr %15, align 8
  call void %16(ptr dead_on_unwind nonnull writable sret(%"struct.Crypto::Hash") align 1 %5, ptr noundef nonnull align 8 dereferenceable(224) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %17 = getelementptr inbounds i8, ptr %2, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %18 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %18, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %19 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %19, ptr %9, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %23, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %21 = call noundef i64 @_ZNKSt6vectorIPKN6Crypto9PublicKeyESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  invoke void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %21)
          to label %28 unwind label %39

.lr.ph:                                           ; preds = %4, %23
  %22 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store ptr %22, ptr %10, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %23 unwind label %26

23:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %25, label %.lr.ph, label %._crit_edge

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %41

28:                                               ; preds = %._crit_edge
  %29 = getelementptr inbounds i8, ptr %13, i64 32
  %30 = getelementptr inbounds i8, ptr %3, i64 32
  %31 = getelementptr inbounds i8, ptr %2, i64 64
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = call noundef ptr @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  invoke void @_ZN6Crypto23generate_ring_signatureERKNS_4HashERKNS_8KeyImageERKSt6vectorIPKNS_9PublicKeyESaIS9_EERKNS_9SecretKeyEmPNS_9SignatureE(ptr noundef nonnull align 1 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 1 dereferenceable(32) %30, i64 noundef %32, ptr noundef %33)
          to label %34 unwind label %39

34:                                               ; preds = %28
  %35 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7DynexCN15TransactionImpl13getSignaturesEm(ptr noundef nonnull align 8 dereferenceable(224) %0, i64 noundef %1)
          to label %36 unwind label %39

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %38 unwind label %39

38:                                               ; preds = %36
  call void @_ZN7DynexCN15TransactionImpl14invalidateHashEv(ptr noundef nonnull align 8 dereferenceable(224) %0)
  call void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  ret void

39:                                               ; preds = %36, %34, %28, %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %41

41:                                               ; preds = %39, %26
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %40, %39 ]
  call void @_ZNSt6vectorIPKN6Crypto9PublicKeyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN6Crypto9SignatureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN5boost3getIN7DynexCN8KeyInputENS1_9BaseInputEJS2_NS1_19MultisignatureInputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(72) ptr @_ZN7DynexCN15getInputCheckedERKNS_17TransactionPrefixEmNS_16TransactionTypes9InputTypeE(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i8 noundef zeroext) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Crypto23generate_ring_signatureERKNS_4HashERKNS_8KeyImageERKSt6vectorIPKNS_9PublicKeyESaIS9_EERKNS_9SecretKeyEmPNS_9SignatureE(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7DynexCN15TransactionImpl13getSignaturesEm(ptr noundef nonnull align 8 dereferenceable(224), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { inlinehint 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 #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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !13, i64 64}
!12 = !{!"_ZTSN7DynexCN16TransactionTypes12InputKeyInfoE", !13, i64 0, !14, i64 8, !18, i64 32}
!13 = !{!"long", !10, i64 0}
!14 = !{!"_ZTSSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!18 = !{!"_ZTSN7DynexCN16TransactionTypes13OutputKeyInfoE", !19, i64 0, !13, i64 32, !13, i64 40}
!19 = !{!"_ZTSN6Crypto9PublicKeyE", !10, i64 0}


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