; LLVM IR from dynexcoin/Dynex :: src/Wallet (WalletSerializationV2)

; 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.Common::StringView" = type { ptr, i64 }
%"struct.(anonymous namespace)::WalletTransactionDtoV2" = type <{ i8, [7 x i8], i64, i32, %"struct.Crypto::Hash", [4 x i8], i64, i64, i64, i64, %"class.std::__cxx11::basic_string", i8, %"class.boost::optional", [6 x i8] }>
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::optional" = type { %"class.boost::optional_detail::optional_base" }
%"class.boost::optional_detail::optional_base" = type { i8, %"class.boost::optional_detail::aligned_storage" }
%"class.boost::optional_detail::aligned_storage" = type { %"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" = type { [32 x i8] }
%"struct.DynexCN::WalletTransaction" = type <{ i8, [7 x i8], i64, i32, %"struct.Crypto::Hash", %"class.boost::optional", [3 x i8], i64, i64, i64, i64, %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"struct.std::pair.72" = type <{ %"class.boost::multi_index::detail::rnd_node_iterator.74", i8, [7 x i8] }>
%"class.boost::multi_index::detail::rnd_node_iterator.74" = type { ptr }
%"class.DynexCN::WalletSerializerV2" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, %"class.std::unordered_set", %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18WalletSerializerV216loadTransactionsERNS_11ISerializerE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.Common::StringView", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"struct.(anonymous namespace)::WalletTransactionDtoV2", align 8
  %11 = alloca %"class.Common::StringView", align 8
  %12 = alloca %"struct.DynexCN::WalletTransaction", align 8
  %13 = alloca %"struct.std::pair.72", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm17EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 1 dereferenceable(17) @.str.14)
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds ptr, ptr %16, i64 13
  %18 = load ptr, ptr %17, align 8
  %19 = invoke noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %6)
          to label %20 unwind label %30

20:                                               ; preds = %2
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %21 = getelementptr inbounds %"class.DynexCN::WalletSerializerV2", ptr %14, i32 0, i32 6
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS2_17RandomAccessIndexEN4mpl_2naES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEENS0_13hashed_uniqueINS6_INS2_16TransactionIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENS0_6memberIS3_N6Crypto4HashEXadL_ZNS3_4hashEEEEES9_S9_EENS0_18ordered_non_uniqueINS6_INS2_16BlockHeightIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENSF_IS3_jXadL_ZNS3_11blockHeightEEEEES9_EES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EESaIS3_EE3getIS7_EERNSR_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(120) %22) #7
  %24 = load i64, ptr %5, align 8, !tbaa !9
  call void @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_16TransactionIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto4HashEXadL_ZNS5_4hashEEEEESB_SB_EENS0_18ordered_non_uniqueINS8_INS4_16BlockHeightIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_jXadL_ZNS5_11blockHeightEEEEESB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSU_7vector0ISB_EELi0EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(96) %23, i64 noundef %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %102, %20
  %26 = load i64, ptr %9, align 8, !tbaa !9
  %27 = load i64, ptr %5, align 8, !tbaa !9
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %34, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %106

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %107

34:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 160, ptr %10) #7
  call void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2C2Ev(ptr noundef nonnull align 8 dereferenceable(154) %10)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN6Common10StringViewC2ILm12EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(12) @.str.15)
          to label %36 unwind label %80

36:                                               ; preds = %34
  %37 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN12_GLOBAL__N_122WalletTransactionDtoV2EEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(154) %10, ptr noundef %11)
          to label %38 unwind label %84

38:                                               ; preds = %36
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr %12) #7
  call void @_ZN7DynexCN17WalletTransactionC2Ev(ptr noundef nonnull align 8 dereferenceable(153) %12) #7
  %39 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 0
  %40 = load i8, ptr %39, align 8, !tbaa !21
  %41 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 0
  store i8 %40, ptr %41, align 8, !tbaa !31
  %42 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !33
  %44 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 2
  store i64 %43, ptr %44, align 8, !tbaa !34
  %45 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 3
  %46 = load i32, ptr %45, align 8, !tbaa !35
  %47 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 3
  store i32 %46, ptr %47, align 8, !tbaa !36
  %48 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 4
  %49 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %48, i64 32, i1 false), !tbaa.struct !37
  %50 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 6
  %51 = load i64, ptr %50, align 8, !tbaa !39
  %52 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 7
  store i64 %51, ptr %52, align 8, !tbaa !40
  %53 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 7
  %54 = load i64, ptr %53, align 8, !tbaa !41
  %55 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 8
  store i64 %54, ptr %55, align 8, !tbaa !42
  %56 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 8
  %57 = load i64, ptr %56, align 8, !tbaa !43
  %58 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 9
  store i64 %57, ptr %58, align 8, !tbaa !44
  %59 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 9
  %60 = load i64, ptr %59, align 8, !tbaa !45
  %61 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 10
  store i64 %60, ptr %61, align 8, !tbaa !46
  %62 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 10
  %63 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 11
  %64 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull align 8 dereferenceable(32) %62)
          to label %65 unwind label %88

65:                                               ; preds = %38
  %66 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 11
  %67 = load i8, ptr %66, align 8, !tbaa !47, !range !48, !noundef !49
  %68 = trunc i8 %67 to i1
  %69 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 12
  %70 = zext i1 %68 to i8
  store i8 %70, ptr %69, align 8, !tbaa !50
  %71 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 12
  %72 = call noundef zeroext i1 @_ZNK5boost8optionalIN6Crypto9SecretKeyEEcvbEv(ptr noundef nonnull align 1 dereferenceable(33) %71) #7
  br i1 %72, label %73, label %92

73:                                               ; preds = %65
  %74 = getelementptr inbounds %"struct.(anonymous namespace)::WalletTransactionDtoV2", ptr %10, i32 0, i32 12
  %75 = invoke noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEE3getEv(ptr noundef nonnull align 1 dereferenceable(33) %74)
          to label %76 unwind label %88

76:                                               ; preds = %73
  %77 = getelementptr inbounds %"struct.DynexCN::WalletTransaction", ptr %12, i32 0, i32 5
  %78 = invoke noundef nonnull align 1 dereferenceable(33) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEEaSIRKS2_EENS_9enable_ifINS_7is_sameIS2_NS_5decayIT_E4typeEEERS3_E4typeEOSA_(ptr noundef nonnull align 1 dereferenceable(33) %77, ptr noundef nonnull align 1 dereferenceable(32) %75)
          to label %79 unwind label %88

79:                                               ; preds = %76
  br label %92

80:                                               ; preds = %34
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %105

84:                                               ; preds = %36
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %105

88:                                               ; preds = %92, %76, %73, %38
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  call void @_ZN7DynexCN17WalletTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(153) %12) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #7
  br label %105

92:                                               ; preds = %79, %65
  %93 = getelementptr inbounds %"class.DynexCN::WalletSerializerV2", ptr %14, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS2_17RandomAccessIndexEN4mpl_2naES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEENS0_13hashed_uniqueINS6_INS2_16TransactionIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENS0_6memberIS3_N6Crypto4HashEXadL_ZNS3_4hashEEEEES9_S9_EENS0_18ordered_non_uniqueINS6_INS2_16BlockHeightIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENSF_IS3_jXadL_ZNS3_11blockHeightEEEEES9_EES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EESaIS3_EE3getIS7_EERNSR_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(120) %94) #7
  %96 = invoke { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_16TransactionIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto4HashEXadL_ZNS5_4hashEEEEESB_SB_EENS0_18ordered_non_uniqueINS8_INS4_16BlockHeightIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_jXadL_ZNS5_11blockHeightEEEEESB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSU_7vector0ISB_EELi0EEEE12emplace_backIJS5_EEESt4pairINS1_17rnd_node_iteratorINS1_24random_access_index_nodeINS1_17hashed_index_nodeINS1_18ordered_index_nodeINS1_19null_augment_policyENS1_15index_node_baseIS5_SS_EEEEEEEEEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(96) %95, ptr noundef nonnull align 8 dereferenceable(153) %12)
          to label %97 unwind label %88

97:                                               ; preds = %92
  %98 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %99 = extractvalue { ptr, i8 } %96, 0
  store ptr %99, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %101 = extractvalue { ptr, i8 } %96, 1
  store i8 %101, ptr %100, align 8
  call void @_ZN7DynexCN17WalletTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(153) %12) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #7
  call void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2D2Ev(ptr noundef nonnull align 8 dereferenceable(154) %10) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %10) #7
  br label %102

102:                                              ; preds = %97
  %103 = load i64, ptr %9, align 8, !tbaa !9
  %104 = add i64 %103, 1
  store i64 %104, ptr %9, align 8, !tbaa !9
  br label %25, !llvm.loop !51

105:                                              ; preds = %88, %84, %80
  call void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2D2Ev(ptr noundef nonnull align 8 dereferenceable(154) %10) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %107

106:                                              ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

107:                                              ; preds = %105, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %7, align 8
  %110 = load i32, ptr %8, align 4
  %111 = insertvalue { ptr, i32 } poison, ptr %109, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %110, 1
  resume { ptr, i32 } %112
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Common10StringViewC2ILm12EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Common10StringViewC2ILm17EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(17)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2C2Ev(ptr noundef nonnull align 8 dereferenceable(154)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN12_GLOBAL__N_122WalletTransactionDtoV2EEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(154), ptr noundef) #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalIN6Crypto9SecretKeyEEcvbEv(ptr noundef nonnull align 1 dereferenceable(33)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEE3getEv(ptr noundef nonnull align 1 dereferenceable(33)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(33) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEEaSIRKS2_EENS_9enable_ifINS_7is_sameIS2_NS_5decayIT_E4typeEEERS3_E4typeEOSA_(ptr noundef nonnull align 1 dereferenceable(33), ptr noundef nonnull align 1 dereferenceable(32)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2D2Ev(ptr noundef nonnull align 8 dereferenceable(154)) unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 48}
!14 = !{!"_ZTSN7DynexCN18WalletSerializerV2E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !15, i64 80, !16, i64 88, !16, i64 144}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt13unordered_setIN6Crypto9PublicKeyESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt10_HashtableIN6Crypto9PublicKeyES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !10, i64 8, !18, i64 16, !10, i64 24, !19, i64 32, !6, i64 48}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !10, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSN12_GLOBAL__N_122WalletTransactionDtoV2E", !23, i64 0, !10, i64 8, !15, i64 16, !24, i64 20, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !25, i64 88, !27, i64 120, !28, i64 121}
!23 = !{!"_ZTSN7DynexCN22WalletTransactionStateE", !7, i64 0}
!24 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSN5boost8optionalIN6Crypto9SecretKeyEEE", !29, i64 0}
!29 = !{!"_ZTSN5boost15optional_detail13optional_baseIN6Crypto9SecretKeyEEE", !27, i64 0, !30, i64 1}
!30 = !{!"_ZTSN5boost15optional_detail15aligned_storageIN6Crypto9SecretKeyEEE", !7, i64 0}
!31 = !{!32, !23, i64 0}
!32 = !{!"_ZTSN7DynexCN17WalletTransactionE", !23, i64 0, !10, i64 8, !15, i64 16, !24, i64 20, !28, i64 52, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !25, i64 120, !27, i64 152}
!33 = !{!22, !10, i64 8}
!34 = !{!32, !10, i64 8}
!35 = !{!22, !15, i64 16}
!36 = !{!32, !15, i64 16}
!37 = !{i64 0, i64 32, !38}
!38 = !{!7, !7, i64 0}
!39 = !{!22, !10, i64 56}
!40 = !{!32, !10, i64 88}
!41 = !{!22, !10, i64 64}
!42 = !{!32, !10, i64 96}
!43 = !{!22, !10, i64 72}
!44 = !{!32, !10, i64 104}
!45 = !{!22, !10, i64 80}
!46 = !{!32, !10, i64 112}
!47 = !{!22, !27, i64 120}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!32, !27, i64 152}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}


; 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.Common::StringView" = type { ptr, i64 }
%"struct.(anonymous namespace)::WalletTransactionDtoV2" = type <{ i8, [7 x i8], i64, i32, %"struct.Crypto::Hash", [4 x i8], i64, i64, i64, i64, %"class.std::__cxx11::basic_string", i8, %"class.boost::optional", [6 x i8] }>
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::optional" = type { %"class.boost::optional_detail::optional_base" }
%"class.boost::optional_detail::optional_base" = type { i8, %"class.boost::optional_detail::aligned_storage" }
%"class.boost::optional_detail::aligned_storage" = type { %"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" = type { [32 x i8] }
%"struct.DynexCN::WalletTransaction" = type <{ i8, [7 x i8], i64, i32, %"struct.Crypto::Hash", %"class.boost::optional", [3 x i8], i64, i64, i64, i64, %"class.std::__cxx11::basic_string", i8, [7 x i8] }>

@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18WalletSerializerV216loadTransactionsERNS_11ISerializerE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca %"class.Common::StringView", align 8
  %5 = alloca %"struct.(anonymous namespace)::WalletTransactionDtoV2", align 8
  %6 = alloca %"class.Common::StringView", align 8
  %7 = alloca %"struct.DynexCN::WalletTransaction", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm17EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 1 dereferenceable(17) @.str.14)
  %8 = load ptr, ptr %1, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %8, i64 104
  %10 = load ptr, ptr %9, align 8
  %11 = invoke noundef zeroext i1 %10(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %4)
          to label %12 unwind label %34

12:                                               ; preds = %2
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS2_17RandomAccessIndexEN4mpl_2naES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEENS0_13hashed_uniqueINS6_INS2_16TransactionIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENS0_6memberIS3_N6Crypto4HashEXadL_ZNS3_4hashEEEEES9_S9_EENS0_18ordered_non_uniqueINS6_INS2_16BlockHeightIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENSF_IS3_jXadL_ZNS3_11blockHeightEEEEES9_EES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EESaIS3_EE3getIS7_EERNSR_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(120) %14) #7
  %16 = load i64, ptr %3, align 8, !tbaa !5
  call void @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_16TransactionIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto4HashEXadL_ZNS5_4hashEEEEESB_SB_EENS0_18ordered_non_uniqueINS8_INS4_16BlockHeightIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_jXadL_ZNS5_11blockHeightEEEEESB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSU_7vector0ISB_EELi0EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(96) %15, i64 noundef %16)
  %17 = load i64, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %18 = getelementptr inbounds i8, ptr %5, i64 8
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  %21 = getelementptr inbounds i8, ptr %7, i64 16
  %22 = getelementptr inbounds i8, ptr %5, i64 20
  %23 = getelementptr inbounds i8, ptr %7, i64 20
  %24 = getelementptr inbounds i8, ptr %5, i64 56
  %25 = getelementptr inbounds i8, ptr %7, i64 88
  %26 = getelementptr inbounds i8, ptr %5, i64 72
  %27 = getelementptr inbounds i8, ptr %7, i64 104
  %28 = getelementptr inbounds i8, ptr %5, i64 88
  %29 = getelementptr inbounds i8, ptr %7, i64 120
  %30 = getelementptr inbounds i8, ptr %5, i64 120
  %31 = getelementptr inbounds i8, ptr %7, i64 152
  %32 = getelementptr inbounds i8, ptr %5, i64 121
  %33 = getelementptr inbounds i8, ptr %7, i64 52
  br label %36

._crit_edge:                                      ; preds = %60, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %65

36:                                               ; preds = %.lr.ph, %60
  %.0811 = phi i64 [ 0, %.lr.ph ], [ %61, %60 ]
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #7
  call void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2C2Ev(ptr noundef nonnull align 8 dereferenceable(154) %5)
  call void @_ZN6Common10StringViewC2ILm12EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 1 dereferenceable(12) @.str.15)
  %37 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN12_GLOBAL__N_122WalletTransactionDtoV2EEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(154) %5, ptr noundef nonnull %6)
          to label %38 unwind label %52

38:                                               ; preds = %36
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %7) #7
  call void @_ZN7DynexCN17WalletTransactionC2Ev(ptr noundef nonnull align 8 dereferenceable(153) %7) #7
  %39 = load i8, ptr %5, align 8, !tbaa !20
  store i8 %39, ptr %7, align 8, !tbaa !30
  %40 = load i64, ptr %18, align 8, !tbaa !32
  store i64 %40, ptr %19, align 8, !tbaa !33
  %41 = load i32, ptr %20, align 8, !tbaa !34
  store i32 %41, ptr %21, align 8, !tbaa !35
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %23, ptr noundef nonnull align 4 dereferenceable(32) %22, i64 32, i1 false), !tbaa.struct !36
  %42 = load <2 x i64>, ptr %24, align 8, !tbaa !5
  store <2 x i64> %42, ptr %25, align 8, !tbaa !5
  %43 = load <2 x i64>, ptr %26, align 8, !tbaa !5
  store <2 x i64> %43, ptr %27, align 8, !tbaa !5
  %44 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %45 unwind label %54

45:                                               ; preds = %38
  %46 = load i8, ptr %30, align 8, !tbaa !38, !range !39, !noundef !40
  store i8 %46, ptr %31, align 8, !tbaa !41
  %47 = call noundef zeroext i1 @_ZNK5boost8optionalIN6Crypto9SecretKeyEEcvbEv(ptr noundef nonnull align 1 dereferenceable(33) %32) #7
  br i1 %47, label %48, label %56

48:                                               ; preds = %45
  %49 = invoke noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEE3getEv(ptr noundef nonnull align 1 dereferenceable(33) %32)
          to label %50 unwind label %54

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 1 dereferenceable(33) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEEaSIRKS2_EENS_9enable_ifINS_7is_sameIS2_NS_5decayIT_E4typeEEERS3_E4typeEOSA_(ptr noundef nonnull align 1 dereferenceable(33) %33, ptr noundef nonnull align 1 dereferenceable(32) %49)
          to label %56 unwind label %54

52:                                               ; preds = %36
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %64

54:                                               ; preds = %56, %50, %48, %38
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7DynexCN17WalletTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(153) %7) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %7) #7
  br label %64

56:                                               ; preds = %50, %45
  %57 = load ptr, ptr %13, align 8, !tbaa !11
  %58 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS2_17RandomAccessIndexEN4mpl_2naES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEENS0_13hashed_uniqueINS6_INS2_16TransactionIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENS0_6memberIS3_N6Crypto4HashEXadL_ZNS3_4hashEEEEES9_S9_EENS0_18ordered_non_uniqueINS6_INS2_16BlockHeightIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENSF_IS3_jXadL_ZNS3_11blockHeightEEEEES9_EES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EESaIS3_EE3getIS7_EERNSR_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(120) %57) #7
  %59 = invoke { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN17WalletTransactionENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_16TransactionIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto4HashEXadL_ZNS5_4hashEEEEESB_SB_EENS0_18ordered_non_uniqueINS8_INS4_16BlockHeightIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_jXadL_ZNS5_11blockHeightEEEEESB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSU_7vector0ISB_EELi0EEEE12emplace_backIJS5_EEESt4pairINS1_17rnd_node_iteratorINS1_24random_access_index_nodeINS1_17hashed_index_nodeINS1_18ordered_index_nodeINS1_19null_augment_policyENS1_15index_node_baseIS5_SS_EEEEEEEEEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(96) %58, ptr noundef nonnull align 8 dereferenceable(153) %7)
          to label %60 unwind label %54

60:                                               ; preds = %56
  call void @_ZN7DynexCN17WalletTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(153) %7) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %7) #7
  call void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2D2Ev(ptr noundef nonnull align 8 dereferenceable(154) %5) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #7
  %61 = add nuw i64 %.0811, 1
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %36, label %._crit_edge, !llvm.loop !42

64:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2D2Ev(ptr noundef nonnull align 8 dereferenceable(154) %5) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #7
  br label %65

65:                                               ; preds = %64, %34
  %.pn.pn = phi { ptr, i32 } [ %.pn, %64 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Common10StringViewC2ILm12EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Common10StringViewC2ILm17EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(17)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2C2Ev(ptr noundef nonnull align 8 dereferenceable(154)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN12_GLOBAL__N_122WalletTransactionDtoV2EEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(154), ptr noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalIN6Crypto9SecretKeyEEcvbEv(ptr noundef nonnull align 1 dereferenceable(33)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(32) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEE3getEv(ptr noundef nonnull align 1 dereferenceable(33)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(33) ptr @_ZN5boost8optionalIN6Crypto9SecretKeyEEaSIRKS2_EENS_9enable_ifINS_7is_sameIS2_NS_5decayIT_E4typeEEERS3_E4typeEOSA_(ptr noundef nonnull align 1 dereferenceable(33), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_122WalletTransactionDtoV2D2Ev(ptr noundef nonnull align 8 dereferenceable(154)) unnamed_addr #5 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { alwaysinline 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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !13, i64 48}
!12 = !{!"_ZTSN7DynexCN18WalletSerializerV2E", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !14, i64 80, !15, i64 88, !15, i64 144}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt13unordered_setIN6Crypto9PublicKeyESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIN6Crypto9PublicKeyES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE", !13, i64 0, !6, i64 8, !17, i64 16, !6, i64 24, !18, i64 32, !13, i64 48}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !6, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTSN12_GLOBAL__N_122WalletTransactionDtoV2E", !22, i64 0, !6, i64 8, !14, i64 16, !23, i64 20, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !24, i64 88, !26, i64 120, !27, i64 121}
!22 = !{!"_ZTSN7DynexCN22WalletTransactionStateE", !7, i64 0}
!23 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !6, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN5boost8optionalIN6Crypto9SecretKeyEEE", !28, i64 0}
!28 = !{!"_ZTSN5boost15optional_detail13optional_baseIN6Crypto9SecretKeyEEE", !26, i64 0, !29, i64 1}
!29 = !{!"_ZTSN5boost15optional_detail15aligned_storageIN6Crypto9SecretKeyEEE", !7, i64 0}
!30 = !{!31, !22, i64 0}
!31 = !{!"_ZTSN7DynexCN17WalletTransactionE", !22, i64 0, !6, i64 8, !14, i64 16, !23, i64 20, !27, i64 52, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !24, i64 120, !26, i64 152}
!32 = !{!21, !6, i64 8}
!33 = !{!31, !6, i64 8}
!34 = !{!21, !14, i64 16}
!35 = !{!31, !14, i64 16}
!36 = !{i64 0, i64 32, !37}
!37 = !{!7, !7, i64 0}
!38 = !{!21, !26, i64 120}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!31, !26, i64 152}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass