; LLVM IR from dynexcoin/Dynex :: src/WalletLegacy (WalletTransactionSender)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.123" = type { %"struct.std::_Vector_base.124" }
%"struct.std::_Vector_base.124" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.170" = type { %"struct.std::_Vector_base.171" }
%"struct.std::_Vector_base.171" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::linear_congruential_engine" = type { i64 }
%"class.DynexCN::WalletTransactionSender" = type { ptr, %"struct.DynexCN::AccountKeys", ptr, i64, i8, ptr }
%"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.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.122 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%union.anon.122 = type { i32, [28 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 uwtable
define dso_local noundef i64 @_ZN7DynexCN23WalletTransactionSender25selectDustTransfersToSendEmmRNSt7__cxx114listINS_28TransactionOutputInformationESaIS3_EEE(ptr noundef nonnull align 8 dereferenceable(168) %0, i64 noundef %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.123", align 8
  %10 = alloca %"class.std::vector.123", align 8
  %11 = alloca %"class.std::vector.123", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::vector.170", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::linear_congruential_engine", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %24 = getelementptr inbounds %"class.DynexCN::WalletTransactionSender", ptr %23, i32 0, i32 5
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = getelementptr inbounds ptr, ptr %26, i64 5
  %28 = load ptr, ptr %27, align 8
  invoke void %28(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 257)
          to label %29 unwind label %35

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %77, %29
  %31 = load i64, ptr %16, align 8, !tbaa !9
  %32 = call noundef i64 @_ZNKSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %33 = icmp ult i64 %31, %32
  br i1 %33, label %39, label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %80

35:                                               ; preds = %4
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %14, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %15, align 4
  br label %185

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %40 = load i64, ptr %16, align 8, !tbaa !9
  %41 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %40) #4
  store ptr %41, ptr %17, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.DynexCN::WalletTransactionSender", ptr %23, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  %44 = load ptr, ptr %17, align 8, !tbaa !5
  %45 = invoke noundef zeroext i1 @_ZNK7DynexCN27WalletUserTransactionsCache6isUsedERKNS_28TransactionOutputInformationE(ptr noundef nonnull align 8 dereferenceable(224) %43, ptr noundef nonnull align 8 dereferenceable(120) %44)
          to label %46 unwind label %61

46:                                               ; preds = %39
  br i1 %45, label %76, label %47

47:                                               ; preds = %46
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %48, i32 0, i32 1
  %50 = load i64, ptr %49, align 8, !tbaa !21
  %51 = invoke noundef zeroext i1 @_ZN7DynexCN26is_valid_decomposed_amountEm(i64 noundef %50)
          to label %52 unwind label %61

52:                                               ; preds = %47
  br i1 %51, label %53, label %68

53:                                               ; preds = %52
  %54 = load i64, ptr %7, align 8, !tbaa !9
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !21
  %58 = icmp ult i64 %54, %57
  br i1 %58, label %59, label %65

59:                                               ; preds = %53
  invoke void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %60 unwind label %61

60:                                               ; preds = %59
  br label %67

61:                                               ; preds = %68, %65, %59, %47, %39
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %14, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %185

65:                                               ; preds = %53
  invoke void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %66 unwind label %61

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66, %60
  br label %75

68:                                               ; preds = %52
  invoke void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %69 unwind label %61

69:                                               ; preds = %68
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %70, i32 0, i32 1
  %72 = load i64, ptr %71, align 8, !tbaa !21
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = add i64 %73, %72
  store i64 %74, ptr %12, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %69, %67
  br label %76

76:                                               ; preds = %75, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %77

77:                                               ; preds = %76
  %78 = load i64, ptr %16, align 8, !tbaa !9
  %79 = add i64 %78, 1
  store i64 %79, ptr %16, align 8, !tbaa !9
  br label %30, !llvm.loop !26

80:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %81 = invoke noundef i64 @_ZN6Crypto4randImEENSt9enable_ifIXsr3std6is_podIT_EE5valueES2_E4typeEv()
          to label %82 unwind label %108

82:                                               ; preds = %80
  invoke void @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEC2Em(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %81)
          to label %83 unwind label %108

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store i64 0, ptr %19, align 8, !tbaa !9
  %84 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br i1 %84, label %117, label %85

85:                                               ; preds = %83
  br label %86

86:                                               ; preds = %107, %85
  %87 = load i64, ptr %19, align 8, !tbaa !9
  %88 = load i64, ptr %12, align 8, !tbaa !9
  %89 = icmp ult i64 %87, %88
  br i1 %89, label %90, label %93

90:                                               ; preds = %86
  %91 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %92 = xor i1 %91, true
  br label %93

93:                                               ; preds = %90, %86
  %94 = phi i1 [ false, %86 ], [ %92, %90 ]
  br i1 %94, label %95, label %116

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %96 = invoke noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %97 unwind label %112

97:                                               ; preds = %95
  store i64 %96, ptr %20, align 8, !tbaa !9
  %98 = load i64, ptr %20, align 8, !tbaa !9
  %99 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %98) #4
  %100 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %99, i32 0, i32 1
  %101 = load i64, ptr %100, align 8, !tbaa !21
  %102 = load i64, ptr %19, align 8, !tbaa !9
  %103 = add i64 %102, %101
  store i64 %103, ptr %19, align 8, !tbaa !9
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load i64, ptr %20, align 8, !tbaa !9
  %106 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %105) #4
  invoke void @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(120) %106)
          to label %107 unwind label %112

107:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %86, !llvm.loop !28

108:                                              ; preds = %82, %80
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %14, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %15, align 4
  br label %184

112:                                              ; preds = %97, %95
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %14, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %183

116:                                              ; preds = %93
  br label %117

117:                                              ; preds = %116, %83
  %118 = load i64, ptr %19, align 8, !tbaa !9
  %119 = load i64, ptr %6, align 8, !tbaa !9
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %121, label %149

121:                                              ; preds = %117
  br label %122

122:                                              ; preds = %137, %121
  %123 = load i64, ptr %19, align 8, !tbaa !9
  %124 = load i64, ptr %6, align 8, !tbaa !9
  %125 = icmp ult i64 %123, %124
  br i1 %125, label %126, label %129

126:                                              ; preds = %122
  %127 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %128 = xor i1 %127, true
  br label %129

129:                                              ; preds = %126, %122
  %130 = phi i1 [ false, %122 ], [ %128, %126 ]
  br i1 %130, label %131, label %148

131:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %132 = invoke noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %133 unwind label %144

133:                                              ; preds = %131
  store i64 %132, ptr %21, align 8, !tbaa !9
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i64, ptr %21, align 8, !tbaa !9
  %136 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %135) #4
  invoke void @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %134, ptr noundef nonnull align 8 dereferenceable(120) %136)
          to label %137 unwind label %144

137:                                              ; preds = %133
  %138 = load i64, ptr %21, align 8, !tbaa !9
  %139 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %138) #4
  %140 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %139, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !21
  %142 = load i64, ptr %19, align 8, !tbaa !9
  %143 = add i64 %142, %141
  store i64 %143, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %122, !llvm.loop !29

144:                                              ; preds = %133, %131
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %14, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %183

148:                                              ; preds = %129
  br label %149

149:                                              ; preds = %148, %117
  %150 = load i64, ptr %19, align 8, !tbaa !9
  %151 = load i64, ptr %6, align 8, !tbaa !9
  %152 = icmp ult i64 %150, %151
  br i1 %152, label %153, label %181

153:                                              ; preds = %149
  br label %154

154:                                              ; preds = %169, %153
  %155 = load i64, ptr %19, align 8, !tbaa !9
  %156 = load i64, ptr %6, align 8, !tbaa !9
  %157 = icmp ult i64 %155, %156
  br i1 %157, label %158, label %161

158:                                              ; preds = %154
  %159 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %160 = xor i1 %159, true
  br label %161

161:                                              ; preds = %158, %154
  %162 = phi i1 [ false, %154 ], [ %160, %158 ]
  br i1 %162, label %163, label %180

163:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %164 = invoke noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %165 unwind label %176

165:                                              ; preds = %163
  store i64 %164, ptr %22, align 8, !tbaa !9
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = load i64, ptr %22, align 8, !tbaa !9
  %168 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %167) #4
  invoke void @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %166, ptr noundef nonnull align 8 dereferenceable(120) %168)
          to label %169 unwind label %176

169:                                              ; preds = %165
  %170 = load i64, ptr %22, align 8, !tbaa !9
  %171 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %170) #4
  %172 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %171, i32 0, i32 1
  %173 = load i64, ptr %172, align 8, !tbaa !21
  %174 = load i64, ptr %19, align 8, !tbaa !9
  %175 = add i64 %174, %173
  store i64 %175, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %154, !llvm.loop !30

176:                                              ; preds = %165, %163
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %14, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %183

180:                                              ; preds = %161
  br label %181

181:                                              ; preds = %180, %149
  %182 = load i64, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  ret i64 %182

183:                                              ; preds = %176, %144, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %184

184:                                              ; preds = %183, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %185

185:                                              ; preds = %184, %61, %35
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  br label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %14, align 8
  %188 = load i32, ptr %15, align 4
  %189 = insertvalue { ptr, i32 } poison, ptr %187, 0
  %190 = insertvalue { ptr, i32 } %189, i32 %188, 1
  resume { ptr, i32 } %190
}

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK7DynexCN27WalletUserTransactionsCache6isUsedERKNS_28TransactionOutputInformationE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(120)) #3

declare noundef zeroext i1 @_ZN7DynexCN26is_valid_decomposed_amountEm(i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6Crypto4randImEENSt9enable_ifIXsr3std6is_podIT_EE5valueES2_E4typeEv() #1

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 = { 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, !6, i64 160}
!12 = !{!"_ZTSN7DynexCN23WalletTransactionSenderE", !6, i64 0, !13, i64 8, !6, i64 136, !10, i64 144, !17, i64 152, !6, i64 160}
!13 = !{!"_ZTSN7DynexCN11AccountKeysE", !14, i64 0, !16, i64 64, !16, i64 96}
!14 = !{!"_ZTSN7DynexCN20AccountPublicAddressE", !15, i64 0, !15, i64 32}
!15 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!16 = !{!"_ZTSN6Crypto9SecretKeyE", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = !{!12, !6, i64 136}
!21 = !{!22, !10, i64 8}
!22 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !23, i64 0, !10, i64 8, !24, i64 16, !24, i64 20, !25, i64 24, !15, i64 56, !7, i64 88}
!23 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !7, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.123" = type { %"struct.std::_Vector_base.124" }
%"struct.std::_Vector_base.124" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.170" = type { %"struct.std::_Vector_base.171" }
%"struct.std::_Vector_base.171" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::linear_congruential_engine" = type { i64 }

; 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
define dso_local noundef i64 @_ZN7DynexCN23WalletTransactionSender25selectDustTransfersToSendEmmRNSt7__cxx114listINS_28TransactionOutputInformationESaIS3_EEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(168) %0, i64 noundef %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.123", align 8
  %6 = alloca %"class.std::vector.123", align 8
  %7 = alloca %"class.std::vector.123", align 8
  %8 = alloca %"class.std::vector.170", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::linear_congruential_engine", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 160
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %13, i64 40
  %15 = load ptr, ptr %14, align 8
  invoke void %15(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 257)
          to label %16 unwind label %20

16:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store i64 0, ptr %9, align 8, !tbaa !18
  %17 = call noundef i64 @_ZNKSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %.not61 = icmp eq i64 %17, 0
  br i1 %.not61, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16
  %18 = getelementptr inbounds i8, ptr %0, i64 136
  br label %22

._crit_edge:                                      ; preds = %42, %16
  %.0.lcssa = phi i64 [ 0, %16 ], [ %.1, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %19 = invoke noundef i64 @_ZN6Crypto4randImEENSt9enable_ifIXsr3std6is_podIT_EE5valueES2_E4typeEv()
          to label %47 unwind label %62

20:                                               ; preds = %4
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %95

22:                                               ; preds = %.lr.ph, %42
  %.053 = phi i64 [ 0, %.lr.ph ], [ %.1, %42 ]
  %23 = load i64, ptr %9, align 8, !tbaa !18
  %24 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %23) #4
  %25 = load ptr, ptr %18, align 8, !tbaa !19
  %26 = invoke noundef zeroext i1 @_ZNK7DynexCN27WalletUserTransactionsCache6isUsedERKNS_28TransactionOutputInformationE(ptr noundef nonnull align 8 dereferenceable(224) %25, ptr noundef nonnull align 8 dereferenceable(120) %24)
          to label %27 unwind label %36

27:                                               ; preds = %22
  br i1 %26, label %42, label %28

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %24, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !20
  %31 = invoke noundef zeroext i1 @_ZN7DynexCN26is_valid_decomposed_amountEm(i64 noundef %30)
          to label %32 unwind label %36

32:                                               ; preds = %28
  br i1 %31, label %.invoke, label %38

.invoke:                                          ; preds = %32
  %33 = load i64, ptr %29, align 8, !tbaa !20
  %34 = icmp ugt i64 %33, %2
  %35 = select i1 %34, ptr %5, ptr %6
  invoke void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %42 unwind label %36

36:                                               ; preds = %.invoke, %38, %28, %22
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %95

38:                                               ; preds = %32
  invoke void @_ZNSt6vectorImSaImEE9push_backERKm(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %39 unwind label %36

39:                                               ; preds = %38
  %40 = load i64, ptr %29, align 8, !tbaa !20
  %41 = add i64 %40, %.053
  br label %42

42:                                               ; preds = %.invoke, %39, %27
  %.1 = phi i64 [ %.053, %27 ], [ %41, %39 ], [ %.053, %.invoke ]
  %43 = load i64, ptr %9, align 8, !tbaa !18
  %44 = add i64 %43, 1
  store i64 %44, ptr %9, align 8, !tbaa !18
  %45 = call noundef i64 @_ZNKSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %22, label %._crit_edge, !llvm.loop !25

47:                                               ; preds = %._crit_edge
  invoke void @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEC2Em(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %19)
          to label %48 unwind label %62

48:                                               ; preds = %47
  %49 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %50 = icmp eq i64 %.0.lcssa, 0
  %or.cond.not = select i1 %49, i1 true, i1 %50
  br i1 %or.cond.not, label %.critedge, label %.lr.ph55

.lr.ph55:                                         ; preds = %48, %59
  %.04054 = phi i64 [ %60, %59 ], [ 0, %48 ]
  %51 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br i1 %51, label %.critedge, label %52

52:                                               ; preds = %.lr.ph55
  %53 = invoke noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %54 unwind label %64

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %53) #4
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !20
  %58 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %53) #4
  invoke void @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(120) %58)
          to label %59 unwind label %64

59:                                               ; preds = %54
  %60 = add i64 %57, %.04054
  %61 = icmp ult i64 %60, %.0.lcssa
  br i1 %61, label %.lr.ph55, label %.critedge, !llvm.loop !27

62:                                               ; preds = %47, %._crit_edge
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %94

64:                                               ; preds = %54, %52
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %94

.critedge:                                        ; preds = %59, %.lr.ph55, %48
  %.141 = phi i64 [ 0, %48 ], [ %60, %59 ], [ %.04054, %.lr.ph55 ]
  %66 = icmp ult i64 %.141, %1
  br i1 %66, label %.preheader47, label %.critedge2

.preheader47:                                     ; preds = %.critedge, %72
  %.24259 = phi i64 [ %76, %72 ], [ %.141, %.critedge ]
  %67 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br i1 %67, label %.critedge2, label %68

68:                                               ; preds = %.preheader47
  %69 = invoke noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %70 unwind label %78

70:                                               ; preds = %68
  %71 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %69) #4
  invoke void @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(120) %71)
          to label %72 unwind label %78

72:                                               ; preds = %70
  %73 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %69) #4
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load i64, ptr %74, align 8, !tbaa !20
  %76 = add i64 %75, %.24259
  %77 = icmp ult i64 %76, %1
  br i1 %77, label %.preheader47, label %.critedge2, !llvm.loop !28

78:                                               ; preds = %70, %68
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %94

.critedge2:                                       ; preds = %.preheader47, %72, %.critedge
  %.3 = phi i64 [ %.141, %.critedge ], [ %76, %72 ], [ %.24259, %.preheader47 ]
  %80 = icmp ult i64 %.3, %1
  br i1 %80, label %.preheader, label %.critedge4

.preheader:                                       ; preds = %.critedge2, %86
  %.460 = phi i64 [ %90, %86 ], [ %.3, %.critedge2 ]
  %81 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br i1 %81, label %.critedge4, label %82

82:                                               ; preds = %.preheader
  %83 = invoke noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %84 unwind label %92

84:                                               ; preds = %82
  %85 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %83) #4
  invoke void @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(120) %85)
          to label %86 unwind label %92

86:                                               ; preds = %84
  %87 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %83) #4
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = load i64, ptr %88, align 8, !tbaa !20
  %90 = add i64 %89, %.460
  %91 = icmp ult i64 %90, %1
  br i1 %91, label %.preheader, label %.critedge4, !llvm.loop !29

92:                                               ; preds = %84, %82
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %94

.critedge4:                                       ; preds = %.preheader, %86, %.critedge2
  %.5 = phi i64 [ %.3, %.critedge2 ], [ %90, %86 ], [ %.460, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  ret i64 %.5

94:                                               ; preds = %64, %78, %92, %62
  %.pn.pn = phi { ptr, i32 } [ %63, %62 ], [ %79, %78 ], [ %93, %92 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %95

95:                                               ; preds = %94, %36, %20
  %.pn45 = phi { ptr, i32 } [ %37, %36 ], [ %.pn.pn, %94 ], [ %21, %20 ]
  call void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn45
}

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK7DynexCN27WalletUserTransactionsCache6isUsedERKNS_28TransactionOutputInformationE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN7DynexCN26is_valid_decomposed_amountEm(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6Crypto4randImEENSt9enable_ifIXsr3std6is_podIT_EE5valueES2_E4typeEv() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7DynexCN12_GLOBAL__N_114popRandomValueISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEmEET0_RT_RSt6vectorIS4_SaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 = { 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 160}
!6 = !{!"_ZTSN7DynexCN23WalletTransactionSenderE", !7, i64 0, !10, i64 8, !7, i64 136, !14, i64 144, !15, i64 152, !7, i64 160}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7DynexCN11AccountKeysE", !11, i64 0, !13, i64 64, !13, i64 96}
!11 = !{!"_ZTSN7DynexCN20AccountPublicAddressE", !12, i64 0, !12, i64 32}
!12 = !{!"_ZTSN6Crypto9PublicKeyE", !8, i64 0}
!13 = !{!"_ZTSN6Crypto9SecretKeyE", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !9, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!6, !7, i64 136}
!20 = !{!21, !14, i64 8}
!21 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !22, i64 0, !14, i64 8, !23, i64 16, !23, i64 20, !24, i64 24, !12, i64 56, !8, i64 88}
!22 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !8, i64 0}
!23 = !{!"int", !8, i64 0}
!24 = !{!"_ZTSN6Crypto4HashE", !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}


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