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

; 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::AccountKeys" = type { %"struct.DynexCN::AccountPublicAddress", %"struct.Crypto::SecretKey", %"struct.Crypto::SecretKey" }
%"struct.DynexCN::AccountPublicAddress" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::PublicKey" }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"struct.Crypto::KeyDerivation" = type { [32 x i8] }
%"class.__gnu_cxx::__normal_iterator.27" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.33" = type { ptr }
%"struct.DynexCN::TransactionPrefix" = type { i8, i64, %"class.std::vector", %"class.std::vector.9", %"class.std::vector.14" }
%"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.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = 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.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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 }
%"struct.DynexCN::TransactionOutput" = type { i64, %"class.boost::variant.24" }
%"class.boost::variant.24" = type { i32, [4 x i8], %"class.boost::aligned_storage.25" }
%"class.boost::aligned_storage.25" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp.26" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp.26" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<32, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<32, 8>::data_t" = type { [32 x i8] }
%"struct.DynexCN::MultisignatureOutput" = type <{ %"class.std::vector.28", i8, [7 x i8] }>
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<Crypto::PublicKey, std::allocator<Crypto::PublicKey>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::PublicKey, std::allocator<Crypto::PublicKey>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::PublicKey, std::allocator<Crypto::PublicKey>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::PublicKey, std::allocator<Crypto::PublicKey>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTIN7DynexCN9KeyOutputE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN7DynexCN20MultisignatureOutputE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN20findOutputsToAccountERKNS_17TransactionPrefixERKNS_20AccountPublicAddressERKN6Crypto9SecretKeyERSt6vectorIjSaIjEERm = external hidden unnamed_addr constant [157 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN10isOutToKeyERKN6Crypto9PublicKeyES3_RKNS0_13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN20findOutputsToAccountERKNS_17TransactionPrefixERKNS_20AccountPublicAddressERKN6Crypto9SecretKeyERSt6vectorIjSaIjEERm(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 1 dereferenceable(64) %1, ptr noundef nonnull align 1 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.DynexCN::AccountKeys", align 1
  %12 = alloca %"struct.Crypto::PublicKey", align 1
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.Crypto::KeyDerivation", align 1
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %25 = alloca ptr, 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 ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #8
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.DynexCN::AccountKeys", ptr %11, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %27, ptr align 1 %26, i64 64, i1 false), !tbaa.struct !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.DynexCN::AccountKeys", ptr %11, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %29, ptr align 1 %28, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.DynexCN::TransactionPrefix", ptr %30, i32 0, i32 4
  call void @_ZN7DynexCN32getTransactionPublicKeyFromExtraERKSt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"struct.Crypto::PublicKey") align 1 %12, ptr noundef nonnull align 8 dereferenceable(24) %31)
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %32, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %33 = getelementptr inbounds %"struct.DynexCN::AccountKeys", ptr %11, i32 0, i32 2
  %34 = call noundef zeroext i1 @_ZN6Crypto23generate_key_derivationERKNS_9PublicKeyERKNS_9SecretKeyERNS_13KeyDerivationE(ptr noundef nonnull align 1 dereferenceable(32) %12, ptr noundef nonnull align 1 dereferenceable(32) %33, ptr noundef nonnull align 1 dereferenceable(32) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.DynexCN::TransactionPrefix", ptr %35, i32 0, i32 3
  store ptr %36, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  %38 = call ptr @_ZNKSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %17, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  %41 = call ptr @_ZNKSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.27", ptr %18, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  br label %43

43:                                               ; preds = %124, %5
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %44, label %46, label %45

45:                                               ; preds = %43
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %126

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %47 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  store ptr %47, ptr %20, align 8, !tbaa !5
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %48, i32 0, i32 1
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %49)
  %51 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN9KeyOutputE) #8
  br i1 %51, label %57, label %52

52:                                               ; preds = %46
  %53 = load ptr, ptr %20, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %53, i32 0, i32 1
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %54)
  %56 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN20MultisignatureOutputE) #8
  br label %57

57:                                               ; preds = %52, %46
  %58 = phi i1 [ true, %46 ], [ %56, %52 ]
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  br label %62

60:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 162, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN20findOutputsToAccountERKNS_17TransactionPrefixERKNS_20AccountPublicAddressERKN6Crypto9SecretKeyERSt6vectorIjSaIjEERm) #9
  unreachable

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %59
  %63 = load ptr, ptr %20, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %63, i32 0, i32 1
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %64)
  %66 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN9KeyOutputE) #8
  br i1 %66, label %67, label %84

67:                                               ; preds = %62
  %68 = load ptr, ptr %20, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %68, i32 0, i32 1
  %70 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost3getIN7DynexCN9KeyOutputES2_JNS1_20MultisignatureOutputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40) %69)
  %71 = load i64, ptr %13, align 8, !tbaa !12
  %72 = call noundef zeroext i1 @_ZN7DynexCN13is_out_to_accERKNS_11AccountKeysERKNS_9KeyOutputERKN6Crypto13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(128) %11, ptr noundef nonnull align 1 dereferenceable(32) %70, ptr noundef nonnull align 1 dereferenceable(32) %15, i64 noundef %71)
  br i1 %72, label %73, label %81

73:                                               ; preds = %67
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %75 = load ptr, ptr %20, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %75, i32 0, i32 0
  %77 = load i64, ptr %76, align 8, !tbaa !16
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i64, ptr %78, align 8, !tbaa !12
  %80 = add i64 %79, %77
  store i64 %80, ptr %78, align 8, !tbaa !12
  br label %81

81:                                               ; preds = %73, %67
  %82 = load i64, ptr %13, align 8, !tbaa !12
  %83 = add i64 %82, 1
  store i64 %83, ptr %13, align 8, !tbaa !12
  br label %121

84:                                               ; preds = %62
  %85 = load ptr, ptr %20, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %85, i32 0, i32 1
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %86)
  %88 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN20MultisignatureOutputE) #8
  br i1 %88, label %89, label %120

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.DynexCN::TransactionOutput", ptr %90, i32 0, i32 1
  %92 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZN5boost3getIN7DynexCN20MultisignatureOutputENS1_9KeyOutputEJS2_EEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40) %91)
  store ptr %92, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %93 = load ptr, ptr %21, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.DynexCN::MultisignatureOutput", ptr %93, i32 0, i32 0
  store ptr %94, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %95 = load ptr, ptr %22, align 8, !tbaa !5
  %96 = call ptr @_ZNKSt6vectorIN6Crypto9PublicKeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %23, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %98 = load ptr, ptr %22, align 8, !tbaa !5
  %99 = call ptr @_ZNKSt6vectorIN6Crypto9PublicKeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #8
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %24, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  br label %101

101:                                              ; preds = %117, %89
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %102, label %104, label %103

103:                                              ; preds = %101
  store i32 4, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %119

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %105 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  store ptr %105, ptr %25, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.DynexCN::AccountKeys", ptr %11, i32 0, i32 0
  %107 = getelementptr inbounds %"struct.DynexCN::AccountPublicAddress", ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %25, align 8, !tbaa !5
  %109 = load i32, ptr %14, align 4, !tbaa !14
  %110 = zext i32 %109 to i64
  %111 = call noundef zeroext i1 @_ZN7DynexCN10isOutToKeyERKN6Crypto9PublicKeyES3_RKNS0_13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(32) %107, ptr noundef nonnull align 1 dereferenceable(32) %108, ptr noundef nonnull align 1 dereferenceable(32) %15, i64 noundef %110)
  br i1 %111, label %112, label %114

112:                                              ; preds = %104
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br label %114

114:                                              ; preds = %112, %104
  %115 = load i64, ptr %13, align 8, !tbaa !12
  %116 = add i64 %115, 1
  store i64 %116, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %117

117:                                              ; preds = %114
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %101

119:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %120

120:                                              ; preds = %119, %84
  br label %121

121:                                              ; preds = %120, %81
  %122 = load i32, ptr %14, align 4, !tbaa !14
  %123 = add i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %124

124:                                              ; preds = %121
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %43

126:                                              ; preds = %45
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #8
  ret i1 true
}

declare void @_ZN7DynexCN32getTransactionPublicKeyFromExtraERKSt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"struct.Crypto::PublicKey") align 1, ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Crypto23generate_key_derivationERKNS_9PublicKeyERKNS_9SecretKeyERNS_13KeyDerivationE(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(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 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

declare noundef zeroext i1 @_ZN7DynexCN13is_out_to_accERKNS_11AccountKeysERKNS_9KeyOutputERKN6Crypto13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost3getIN7DynexCN9KeyOutputES2_JNS1_20MultisignatureOutputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZN5boost3getIN7DynexCN20MultisignatureOutputENS1_9KeyOutputEJS2_EEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40)) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(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 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 32, !10, i64 32, i64 32, !10}
!10 = !{!7, !7, i64 0}
!11 = !{i64 0, i64 32, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"_ZTSN7DynexCN17TransactionOutputE", !13, i64 0, !18, i64 8}
!18 = !{!"_ZTSN5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEEE", !15, i64 0, !19, i64 8}
!19 = !{!"_ZTSN5boost15aligned_storageILm32ELm8EEE", !20, i64 0}
!20 = !{!"_ZTSN5boost6detail15aligned_storage19aligned_storage_impILm32ELm8EEE", !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.DynexCN::AccountKeys" = type { %"struct.DynexCN::AccountPublicAddress", %"struct.Crypto::SecretKey", %"struct.Crypto::SecretKey" }
%"struct.DynexCN::AccountPublicAddress" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::PublicKey" }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"struct.Crypto::KeyDerivation" = type { [32 x i8] }
%"class.__gnu_cxx::__normal_iterator.27" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.33" = type { ptr }

@_ZTIN7DynexCN9KeyOutputE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN7DynexCN20MultisignatureOutputE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN20findOutputsToAccountERKNS_17TransactionPrefixERKNS_20AccountPublicAddressERKN6Crypto9SecretKeyERSt6vectorIjSaIjEERm = external hidden unnamed_addr constant [157 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN10isOutToKeyERKN6Crypto9PublicKeyES3_RKNS0_13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN20findOutputsToAccountERKNS_17TransactionPrefixERKNS_20AccountPublicAddressERKN6Crypto9SecretKeyERSt6vectorIjSaIjEERm(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef nonnull readonly align 1 dereferenceable(64) %1, ptr nocapture noundef nonnull readonly align 1 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.DynexCN::AccountKeys", align 1
  %7 = alloca %"struct.Crypto::PublicKey", align 1
  %8 = alloca i32, align 4
  %9 = alloca %"struct.Crypto::KeyDerivation", align 1
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.27", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %6, ptr noundef nonnull align 1 dereferenceable(64) %1, i64 64, i1 false), !tbaa.struct !5
  %14 = getelementptr inbounds i8, ptr %6, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(32) %14, ptr noundef nonnull align 1 dereferenceable(32) %2, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  call void @_ZN7DynexCN32getTransactionPublicKeyFromExtraERKSt6vectorIhSaIhEE(ptr dead_on_unwind nonnull writable sret(%"struct.Crypto::PublicKey") align 1 %7, ptr noundef nonnull align 8 dereferenceable(24) %15)
  store i64 0, ptr %4, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  %16 = call noundef zeroext i1 @_ZN6Crypto23generate_key_derivationERKNS_9PublicKeyERKNS_9SecretKeyERNS_13KeyDerivationE(ptr noundef nonnull align 1 dereferenceable(32) %7, ptr noundef nonnull align 1 dereferenceable(32) %14, ptr noundef nonnull align 1 dereferenceable(32) %9)
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %18 = call ptr @_ZNKSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  store ptr %18, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %19 = call ptr @_ZNKSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  store ptr %19, ptr %11, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %20, label %.lr.ph26, label %._crit_edge27

._crit_edge27:                                    ; preds = %57, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #8
  ret i1 true

.lr.ph26:                                         ; preds = %5, %57
  %.024 = phi i64 [ %.2, %57 ], [ 0, %5 ]
  %21 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %24 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN9KeyOutputE) #8
  br i1 %24, label %.critedge, label %25

25:                                               ; preds = %.lr.ph26
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %27 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN20MultisignatureOutputE) #8
  br i1 %27, label %.critedge, label %28

28:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 162, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN20findOutputsToAccountERKNS_17TransactionPrefixERKNS_20AccountPublicAddressERKN6Crypto9SecretKeyERSt6vectorIjSaIjEERm) #9
  unreachable

.critedge:                                        ; preds = %.lr.ph26, %25
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %30 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN9KeyOutputE) #8
  br i1 %30, label %31, label %40

31:                                               ; preds = %.critedge
  %32 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost3getIN7DynexCN9KeyOutputES2_JNS1_20MultisignatureOutputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %33 = call noundef zeroext i1 @_ZN7DynexCN13is_out_to_accERKNS_11AccountKeysERKNS_9KeyOutputERKN6Crypto13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(128) %6, ptr noundef nonnull align 1 dereferenceable(32) %32, ptr noundef nonnull align 1 dereferenceable(32) %9, i64 noundef %.024)
  br i1 %33, label %34, label %38

34:                                               ; preds = %31
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %35 = load i64, ptr %21, align 8, !tbaa !14
  %36 = load i64, ptr %4, align 8, !tbaa !10
  %37 = add i64 %36, %35
  store i64 %37, ptr %4, align 8, !tbaa !10
  br label %38

38:                                               ; preds = %34, %31
  %39 = add i64 %.024, 1
  br label %57

40:                                               ; preds = %.critedge
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEE4typeEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  %42 = call noundef zeroext i1 @_ZNKSt9type_infoeqERKS_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN7DynexCN20MultisignatureOutputE) #8
  br i1 %42, label %43, label %57

43:                                               ; preds = %40
  %44 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZN5boost3getIN7DynexCN20MultisignatureOutputENS1_9KeyOutputEJS2_EEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40) %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %45 = call ptr @_ZNKSt6vectorIN6Crypto9PublicKeyESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  store ptr %45, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %46 = call ptr @_ZNKSt6vectorIN6Crypto9PublicKeyESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  store ptr %46, ptr %13, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %47, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %53, %43
  %.1.lcssa = phi i64 [ %.024, %43 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %57

.lr.ph:                                           ; preds = %43, %53
  %.123 = phi i64 [ %54, %53 ], [ %.024, %43 ]
  %48 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %49 = load i32, ptr %8, align 4, !tbaa !12
  %50 = zext i32 %49 to i64
  %51 = call noundef zeroext i1 @_ZN7DynexCN10isOutToKeyERKN6Crypto9PublicKeyES3_RKNS0_13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(32) %48, ptr noundef nonnull align 1 dereferenceable(32) %9, i64 noundef %50)
  br i1 %51, label %52, label %53

52:                                               ; preds = %.lr.ph
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br label %53

53:                                               ; preds = %52, %.lr.ph
  %54 = add i64 %.123, 1
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN6Crypto9PublicKeyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %56, label %.lr.ph, label %._crit_edge

57:                                               ; preds = %40, %._crit_edge, %38
  %.2 = phi i64 [ %39, %38 ], [ %.1.lcssa, %._crit_edge ], [ %.024, %40 ]
  %58 = load i32, ptr %8, align 4, !tbaa !12
  %59 = add i32 %58, 1
  store i32 %59, ptr %8, align 4, !tbaa !12
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN17TransactionOutputESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %61, label %.lr.ph26, label %._crit_edge27
}

declare void @_ZN7DynexCN32getTransactionPublicKeyFromExtraERKSt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"struct.Crypto::PublicKey") align 1, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Crypto23generate_key_derivationERKNS_9PublicKeyERKNS_9SecretKeyERNS_13KeyDerivationE(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #5

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

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

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

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

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

declare noundef zeroext i1 @_ZN7DynexCN13is_out_to_accERKNS_11AccountKeysERKNS_9KeyOutputERKN6Crypto13KeyDerivationEm(ptr noundef nonnull align 1 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost3getIN7DynexCN9KeyOutputES2_JNS1_20MultisignatureOutputEEEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZN5boost3getIN7DynexCN20MultisignatureOutputENS1_9KeyOutputEJS2_EEENS_13add_referenceIKT_E4typeERKNS_7variantIT0_JDpT1_EEE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 32, !6, i64 32, i64 32, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 32, !6}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"_ZTSN7DynexCN17TransactionOutputE", !11, i64 0, !16, i64 8}
!16 = !{!"_ZTSN5boost7variantIN7DynexCN9KeyOutputEJNS1_20MultisignatureOutputEEEE", !13, i64 0, !17, i64 8}
!17 = !{!"_ZTSN5boost15aligned_storageILm32ELm8EEE", !18, i64 0}
!18 = !{!"_ZTSN5boost6detail15aligned_storage19aligned_storage_impILm32ELm8EEE", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass