; 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.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] }
%"class.__gnu_cxx::__normal_iterator" = type { 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 }

; 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 uwtable
declare dso_local void @_ZNK7DynexCN15TransactionImpl14checkIfSigningEv(ptr noundef nonnull align 8 dereferenceable(224)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7DynexCN15TransactionImpl8addInputERKNS_11AccountKeysERKNS_16TransactionTypes12InputKeyInfoERNS_7KeyPairE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 1 dereferenceable(128) %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 1 dereferenceable(64) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.DynexCN::KeyInput", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::vector.29", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  call void @_ZNK7DynexCN15TransactionImpl14checkIfSigningEv(ptr noundef nonnull align 8 dereferenceable(224) %17)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  call void @_ZN7DynexCN8KeyInputC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.DynexCN::KeyInput", ptr %9, i32 0, i32 0
  store i64 %20, ptr %21, align 8, !tbaa !18
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %23, i32 0, i32 2
  %25 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::OutputKeyInfo", ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %26, i32 0, i32 2
  %28 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::OutputKeyInfo", ptr %27, i32 0, i32 2
  %29 = load i64, ptr %28, align 8, !tbaa !25
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.DynexCN::KeyInput", ptr %9, i32 0, i32 2
  %32 = invoke noundef zeroext i1 @_ZN7DynexCN25generate_key_image_helperERKNS_11AccountKeysERKN6Crypto9PublicKeyEmRNS_7KeyPairERNS3_8KeyImageE(ptr noundef nonnull align 1 dereferenceable(128) %22, ptr noundef nonnull align 1 dereferenceable(32) %25, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(64) %30, ptr noundef nonnull align 1 dereferenceable(32) %31)
          to label %33 unwind label %45

33:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %34, i32 0, i32 1
  store ptr %35, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  br label %42

42:                                               ; preds = %55, %33
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br i1 %43, label %49, label %44

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %61

45:                                               ; preds = %63, %4
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  br label %75

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %50 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  store ptr %50, ptr %15, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.DynexCN::KeyInput", ptr %9, i32 0, i32 1
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::GlobalOutput", ptr %52, i32 0, i32 1
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %54 unwind label %57

54:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %55

55:                                               ; preds = %54
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br label %42

57:                                               ; preds = %49
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %75

61:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  %62 = getelementptr inbounds %"struct.DynexCN::KeyInput", ptr %9, i32 0, i32 1
  invoke void @_ZN7DynexCN35absolute_output_offsets_to_relativeERKSt6vectorIjSaIjEE(ptr dead_on_unwind writable sret(%"class.std::vector.29") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %63 unwind label %71

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"struct.DynexCN::KeyInput", ptr %9, i32 0, i32 1
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  %66 = load ptr, ptr %17, align 8, !tbaa !26
  %67 = getelementptr inbounds ptr, ptr %66, i64 30
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef i64 %68(ptr noundef nonnull align 8 dereferenceable(224) %17, ptr noundef nonnull align 8 dereferenceable(64) %9)
          to label %70 unwind label %45

70:                                               ; preds = %63
  call void @_ZN7DynexCN8KeyInputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  ret i64 %69

71:                                               ; preds = %61
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  br label %75

75:                                               ; preds = %71, %57, %45
  call void @_ZN7DynexCN8KeyInputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %10, align 8
  %78 = load i32, ptr %11, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80
}

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

declare noundef zeroext i1 @_ZN7DynexCN25generate_key_image_helperERKNS_11AccountKeysERKN6Crypto9PublicKeyEmRNS_7KeyPairERNS3_8KeyImageE(ptr noundef nonnull align 1 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef, ptr noundef nonnull align 1 dereferenceable(64), ptr noundef nonnull align 1 dereferenceable(32)) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_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)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #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)) #4 align 2

declare void @_ZN7DynexCN35absolute_output_offsets_to_relativeERKSt6vectorIjSaIjEE(ptr dead_on_unwind writable sret(%"class.std::vector.29") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

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

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

!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, !11, i64 0}
!10 = !{!"_ZTSN7DynexCN16TransactionTypes12InputKeyInfoE", !11, i64 0, !12, i64 8, !16, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSN7DynexCN16TransactionTypes13OutputKeyInfoE", !17, i64 0, !11, i64 32, !11, i64 40}
!17 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTSN7DynexCN8KeyInputE", !11, i64 0, !20, i64 8, !24, i64 32}
!20 = !{!"_ZTSSt6vectorIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN6Crypto8KeyImageE", !7, i64 0}
!25 = !{!10, !11, i64 72}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, 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::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] }
%"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 uwtable
declare dso_local void @_ZNK7DynexCN15TransactionImpl14checkIfSigningEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7DynexCN15TransactionImpl8addInputERKNS_11AccountKeysERKNS_16TransactionTypes12InputKeyInfoERNS_7KeyPairE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 1 dereferenceable(128) %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 1 dereferenceable(64) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.DynexCN::KeyInput", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::vector.29", align 8
  tail call void @_ZNK7DynexCN15TransactionImpl14checkIfSigningEv(ptr noundef nonnull align 8 dereferenceable(224) %0)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @_ZN7DynexCN8KeyInputC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #5
  %9 = load i64, ptr %2, align 8, !tbaa !5
  store i64 %9, ptr %5, align 8, !tbaa !17
  %10 = getelementptr inbounds i8, ptr %2, i64 32
  %11 = getelementptr inbounds i8, ptr %2, i64 72
  %12 = load i64, ptr %11, align 8, !tbaa !24
  %13 = getelementptr inbounds i8, ptr %5, i64 32
  %14 = invoke noundef zeroext i1 @_ZN7DynexCN25generate_key_image_helperERKNS_11AccountKeysERKN6Crypto9PublicKeyEmRNS_7KeyPairERNS3_8KeyImageE(ptr noundef nonnull align 1 dereferenceable(128) %1, ptr noundef nonnull align 1 dereferenceable(32) %10, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(64) %3, ptr noundef nonnull align 1 dereferenceable(32) %13)
          to label %15 unwind label %22

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %17 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  store ptr %17, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %18 = call ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  store ptr %18, ptr %7, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %20 = getelementptr inbounds i8, ptr %5, i64 8
  br label %24

._crit_edge:                                      ; preds = %27, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  invoke void @_ZN7DynexCN35absolute_output_offsets_to_relativeERKSt6vectorIjSaIjEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.29") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %32 unwind label %39

22:                                               ; preds = %32, %4
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %41

24:                                               ; preds = %.lr.ph, %27
  %25 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %26 = getelementptr inbounds i8, ptr %25, i64 32
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %27 unwind label %30

27:                                               ; preds = %24
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %29, label %24, label %._crit_edge

30:                                               ; preds = %24
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %41

32:                                               ; preds = %._crit_edge
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %34 = load ptr, ptr %0, align 8, !tbaa !25
  %35 = getelementptr inbounds i8, ptr %34, i64 240
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef i64 %36(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(64) %5)
          to label %38 unwind label %22

38:                                               ; preds = %32
  call void @_ZN7DynexCN8KeyInputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  ret i64 %37

39:                                               ; preds = %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %41

41:                                               ; preds = %39, %30, %22
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %23, %22 ], [ %40, %39 ]
  call void @_ZN7DynexCN8KeyInputD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

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

declare noundef zeroext i1 @_ZN7DynexCN25generate_key_image_helperERKNS_11AccountKeysERKN6Crypto9PublicKeyEmRNS_7KeyPairERNS3_8KeyImageE(ptr noundef nonnull align 1 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(32), i64 noundef, ptr noundef nonnull align 1 dereferenceable(64), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 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 #4 align 2

; 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 #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 #4 align 2

declare void @_ZN7DynexCN35absolute_output_offsets_to_relativeERKSt6vectorIjSaIjEE(ptr dead_on_unwind writable sret(%"class.std::vector.29") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN7DynexCN16TransactionTypes12InputKeyInfoE", !7, i64 0, !10, i64 8, !15, i64 32}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN7DynexCN16TransactionTypes13OutputKeyInfoE", !16, i64 0, !7, i64 32, !7, i64 40}
!16 = !{!"_ZTSN6Crypto9PublicKeyE", !8, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"_ZTSN7DynexCN8KeyInputE", !7, i64 0, !19, i64 8, !23, i64 32}
!19 = !{!"_ZTSSt6vectorIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!23 = !{!"_ZTSN6Crypto8KeyImageE", !8, i64 0}
!24 = !{!6, !7, i64 72}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !9, i64 0}


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