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

; 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.Crypto::Hash" = type { [32 x i8] }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%"struct.DynexCN::TransactionExtraMergeTag" = type { i64, %"struct.Crypto::Hash" }
%"struct.DynexCN::ParentBlockSerializer" = type <{ ptr, ptr, ptr, i8, i8, [6 x i8] }>
%"struct.DynexCN::ParentBlock" = type { i8, i8, %"struct.Crypto::Hash", i16, %"class.std::vector.42", %"struct.DynexCN::Transaction", %"class.std::vector.42" }
%"struct.DynexCN::Transaction" = type { %"struct.DynexCN::TransactionPrefix", %"class.std::vector.14" }
%"struct.DynexCN::TransactionPrefix" = type { i8, i64, %"class.std::vector", %"class.std::vector.4", %"class.std::vector.9" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl" = type { %"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>, std::allocator<boost::variant<DynexCN::BaseInput, DynexCN::KeyInput, DynexCN::MultisignatureInput>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutput, std::allocator<DynexCN::TransactionOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Crypto::Signature>, std::allocator<std::vector<Crypto::Signature>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@__const._ZN7DynexCN9serializeERNS_21ParentBlockSerializerERNS_11ISerializerE.minerTx = external hidden unnamed_addr constant [8 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [56 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 nounwind uwtable
declare dso_local void @_ZN6Common10StringViewC2ILm8EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(8)) unnamed_addr #3 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN9serializeERNS_21ParentBlockSerializerERNS_11ISerializerE(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.Common::StringView", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.Common::StringView", align 8
  %9 = alloca %"class.Common::StringView", align 8
  %10 = alloca %"class.Common::StringView", align 8
  %11 = alloca %"class.Common::StringView", align 8
  %12 = alloca %"struct.Crypto::Hash", align 1
  %13 = alloca %"struct.Crypto::Hash", align 1
  %14 = alloca %"class.Common::StringView", align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.Common::StringView", align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.Common::StringView", align 8
  %24 = alloca [8 x i8], align 1
  %25 = alloca %"class.Common::StringView", align 8
  %26 = alloca %"struct.DynexCN::TransactionExtraMergeTag", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.Common::StringView", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %35, i32 0, i32 0
  call void @_ZN6Common10StringViewC2ILm13EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(13) @.str.24)
  %37 = load ptr, ptr %32, align 8, !tbaa !12
  %38 = getelementptr inbounds ptr, ptr %37, i64 7
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 1 dereferenceable(1) %36, ptr noundef %5)
          to label %41 unwind label %90

41:                                               ; preds = %2
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %45, i32 0, i32 1
  call void @_ZN6Common10StringViewC2ILm13EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(13) @.str.25)
  %47 = load ptr, ptr %42, align 8, !tbaa !12
  %48 = getelementptr inbounds ptr, ptr %47, i64 7
  %49 = load ptr, ptr %48, align 8
  %50 = invoke noundef zeroext i1 %49(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 1 dereferenceable(1) %46, ptr noundef %8)
          to label %51 unwind label %94

51:                                               ; preds = %41
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 1 dereferenceable(10) @.str.26)
  %56 = load ptr, ptr %52, align 8, !tbaa !12
  %57 = getelementptr inbounds ptr, ptr %56, i64 13
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef %9)
          to label %60 unwind label %98

60:                                               ; preds = %51
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %64, i32 0, i32 2
  call void @_ZN6Common10StringViewC2ILm7EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(7) @.str.27)
  %66 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 1 dereferenceable(32) %65, ptr noundef %10)
          to label %67 unwind label %102

67:                                               ; preds = %60
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  call void @_ZN6Common10StringViewC2ILm6EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(6) @.str.28)
  %72 = load ptr, ptr %68, align 8, !tbaa !12
  %73 = getelementptr inbounds ptr, ptr %72, i64 17
  %74 = load ptr, ptr %73, align 8
  %75 = invoke noundef zeroext i1 %74(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef %71, i64 noundef 4, ptr noundef %11)
          to label %76 unwind label %106

76:                                               ; preds = %67
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %77, i32 0, i32 3
  %79 = load i8, ptr %78, align 8, !tbaa !16, !range !17, !noundef !18
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %133

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %84, i32 0, i32 5
  %86 = call noundef zeroext i1 @_ZN7DynexCN13getObjectHashINS_11TransactionEEEbRKT_RN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(112) %85, ptr noundef nonnull align 1 dereferenceable(32) %12)
  br i1 %86, label %114, label %87

87:                                               ; preds = %81
  %88 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %88, ptr noundef @.str.29)
          to label %89 unwind label %110

89:                                               ; preds = %87
  call void @__cxa_throw(ptr %88, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

90:                                               ; preds = %2
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %6, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  br label %339

94:                                               ; preds = %41
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br label %339

98:                                               ; preds = %51
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  br label %339

102:                                              ; preds = %60
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  br label %339

106:                                              ; preds = %67
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #8
  br label %339

110:                                              ; preds = %87
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %6, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %7, align 4
  call void @__cxa_free_exception(ptr %88) #8
  br label %132

114:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %117, i32 0, i32 4
  %119 = call noundef ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %122, i32 0, i32 4
  %124 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #8
  call void @_ZN6Crypto21tree_hash_from_branchEPKNS_4HashEmRS1_PKvRS0_(ptr noundef %119, i64 noundef %124, ptr noundef nonnull align 1 dereferenceable(32) %12, ptr noundef null, ptr noundef nonnull align 1 dereferenceable(32) %13)
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm11EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 1 dereferenceable(11) @.str.30)
  %126 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull align 1 dereferenceable(32) %13, ptr noundef %14)
          to label %127 unwind label %128

127:                                              ; preds = %114
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %133

128:                                              ; preds = %114
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %6, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  br label %132

132:                                              ; preds = %128, %110
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %339

133:                                              ; preds = %127, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  %137 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %136, i32 0, i32 3
  %138 = load i16, ptr %137, align 2, !tbaa !19
  %139 = zext i16 %138 to i64
  store i64 %139, ptr %15, align 8, !tbaa !46
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm21EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 1 dereferenceable(21) @.str.31)
  %141 = load ptr, ptr %140, align 8, !tbaa !12
  %142 = getelementptr inbounds ptr, ptr %141, i64 13
  %143 = load ptr, ptr %142, align 8
  %144 = invoke noundef zeroext i1 %143(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %16)
          to label %145 unwind label %162

145:                                              ; preds = %133
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  %146 = load i64, ptr %15, align 8, !tbaa !46
  %147 = trunc i64 %146 to i16
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %150, i32 0, i32 3
  store i16 %147, ptr %151, align 2, !tbaa !19
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %154, i32 0, i32 3
  %156 = load i16, ptr %155, align 2, !tbaa !19
  %157 = zext i16 %156 to i32
  %158 = icmp slt i32 %157, 1
  br i1 %158, label %159, label %170

159:                                              ; preds = %145
  %160 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %160, ptr noundef @.str.32)
          to label %161 unwind label %166

161:                                              ; preds = %159
  call void @__cxa_throw(ptr %160, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

162:                                              ; preds = %133
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %6, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  br label %338

166:                                              ; preds = %159
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %6, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %7, align 4
  call void @__cxa_free_exception(ptr %160) #8
  br label %338

170:                                              ; preds = %145
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %171, i32 0, i32 4
  %173 = load i8, ptr %172, align 1, !tbaa !47, !range !17, !noundef !18
  %174 = trunc i8 %173 to i1
  br i1 %174, label %175, label %176

175:                                              ; preds = %170
  store i32 1, ptr %17, align 4
  br label %332

176:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !9
  %180 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %179, i32 0, i32 3
  %181 = load i16, ptr %180, align 2, !tbaa !19
  %182 = zext i16 %181 to i64
  %183 = call i64 @tree_depth(i64 noundef %182)
  store i64 %183, ptr %18, align 8, !tbaa !46
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !12
  %186 = getelementptr inbounds ptr, ptr %185, i64 2
  %187 = load ptr, ptr %186, align 8
  %188 = call noundef i32 %187(ptr noundef nonnull align 8 dereferenceable(8) %184)
  %189 = icmp eq i32 %188, 1
  br i1 %189, label %190, label %206

190:                                              ; preds = %176
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %193, i32 0, i32 4
  %195 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %194) #8
  %196 = load i64, ptr %18, align 8, !tbaa !46
  %197 = icmp ne i64 %195, %196
  br i1 %197, label %198, label %205

198:                                              ; preds = %190
  %199 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %199, ptr noundef @.str.33)
          to label %200 unwind label %201

200:                                              ; preds = %198
  call void @__cxa_throw(ptr %199, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

201:                                              ; preds = %198
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %6, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %7, align 4
  call void @__cxa_free_exception(ptr %199) #8
  br label %337

205:                                              ; preds = %190
  br label %212

206:                                              ; preds = %176
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  %210 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %209, i32 0, i32 4
  %211 = load i64, ptr %18, align 8, !tbaa !46
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %211)
  br label %212

212:                                              ; preds = %206, %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !9
  %216 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %215, i32 0, i32 4
  store ptr %216, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %217 = load ptr, ptr %19, align 8, !tbaa !5
  %218 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %217) #8
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %20, i32 0, i32 0
  store ptr %218, ptr %219, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %220) #8
  %222 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %21, i32 0, i32 0
  store ptr %221, ptr %222, align 8
  br label %223

223:                                              ; preds = %232, %212
  %224 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %224, label %226, label %225

225:                                              ; preds = %223
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %238

226:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %227 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  store ptr %227, ptr %22, align 8, !tbaa !5
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm1EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 1 dereferenceable(1) @.str.10)
  %230 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %228, ptr noundef nonnull align 1 dereferenceable(32) %229, ptr noundef %23)
          to label %231 unwind label %234

231:                                              ; preds = %226
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %232

232:                                              ; preds = %231
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %223

234:                                              ; preds = %226
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %6, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %337

238:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %24, ptr align 1 @__const._ZN7DynexCN9serializeERNS_21ParentBlockSerializerERNS_11ISerializerE.minerTx, i64 8, i1 false)
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %240, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8, !tbaa !9
  %243 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %242, i32 0, i32 5
  call void @_ZN6Common10StringViewC2ILm8EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 1 dereferenceable(8) %24)
  %244 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclINS_11TransactionEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull align 8 dereferenceable(112) %243, ptr noundef %25)
          to label %245 unwind label %255

245:                                              ; preds = %238
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #8
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %246, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8, !tbaa !9
  %249 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %248, i32 0, i32 5
  %250 = getelementptr inbounds %"struct.DynexCN::TransactionPrefix", ptr %249, i32 0, i32 4
  %251 = call noundef zeroext i1 @_ZN7DynexCN26getMergeMiningTagFromExtraERKSt6vectorIhSaIhEERNS_24TransactionExtraMergeTagE(ptr noundef nonnull align 8 dereferenceable(24) %250, ptr noundef nonnull align 8 dereferenceable(40) %26)
  br i1 %251, label %263, label %252

252:                                              ; preds = %245
  %253 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %253, ptr noundef @.str.34)
          to label %254 unwind label %259

254:                                              ; preds = %252
  call void @__cxa_throw(ptr %253, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

255:                                              ; preds = %238
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %6, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #8
  br label %336

259:                                              ; preds = %252
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %6, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %7, align 4
  call void @__cxa_free_exception(ptr %253) #8
  br label %335

263:                                              ; preds = %245
  %264 = getelementptr inbounds %"struct.DynexCN::TransactionExtraMergeTag", ptr %26, i32 0, i32 0
  %265 = load i64, ptr %264, align 8, !tbaa !48
  %266 = icmp ugt i64 %265, 256
  br i1 %266, label %267, label %274

267:                                              ; preds = %263
  %268 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %268, ptr noundef @.str.35)
          to label %269 unwind label %270

269:                                              ; preds = %267
  call void @__cxa_throw(ptr %268, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

270:                                              ; preds = %267
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %6, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %7, align 4
  call void @__cxa_free_exception(ptr %268) #8
  br label %335

274:                                              ; preds = %263
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = load ptr, ptr %275, align 8, !tbaa !12
  %277 = getelementptr inbounds ptr, ptr %276, i64 2
  %278 = load ptr, ptr %277, align 8
  %279 = call noundef i32 %278(ptr noundef nonnull align 8 dereferenceable(8) %275)
  %280 = icmp eq i32 %279, 1
  br i1 %280, label %281, label %298

281:                                              ; preds = %274
  %282 = getelementptr inbounds %"struct.DynexCN::TransactionExtraMergeTag", ptr %26, i32 0, i32 0
  %283 = load i64, ptr %282, align 8, !tbaa !48
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %284, i32 0, i32 0
  %286 = load ptr, ptr %285, align 8, !tbaa !9
  %287 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %286, i32 0, i32 6
  %288 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %287) #8
  %289 = icmp ne i64 %283, %288
  br i1 %289, label %290, label %297

290:                                              ; preds = %281
  %291 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %291, ptr noundef @.str.36)
          to label %292 unwind label %293

292:                                              ; preds = %290
  call void @__cxa_throw(ptr %291, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
  unreachable

293:                                              ; preds = %290
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %6, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %7, align 4
  call void @__cxa_free_exception(ptr %291) #8
  br label %335

297:                                              ; preds = %281
  br label %305

298:                                              ; preds = %274
  %299 = load ptr, ptr %3, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %299, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8, !tbaa !9
  %302 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %301, i32 0, i32 6
  %303 = getelementptr inbounds %"struct.DynexCN::TransactionExtraMergeTag", ptr %26, i32 0, i32 0
  %304 = load i64, ptr %303, align 8, !tbaa !48
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %302, i64 noundef %304)
  br label %305

305:                                              ; preds = %298, %297
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.DynexCN::ParentBlockSerializer", ptr %306, i32 0, i32 0
  %308 = load ptr, ptr %307, align 8, !tbaa !9
  %309 = getelementptr inbounds %"struct.DynexCN::ParentBlock", ptr %308, i32 0, i32 6
  store ptr %309, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %310 = load ptr, ptr %27, align 8, !tbaa !5
  %311 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %310) #8
  %312 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %28, i32 0, i32 0
  store ptr %311, ptr %312, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %313 = load ptr, ptr %27, align 8, !tbaa !5
  %314 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %313) #8
  %315 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %29, i32 0, i32 0
  store ptr %314, ptr %315, align 8
  br label %316

316:                                              ; preds = %325, %305
  %317 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  br i1 %317, label %319, label %318

318:                                              ; preds = %316
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %331

319:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %320 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  store ptr %320, ptr %30, align 8, !tbaa !5
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm1EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 1 dereferenceable(1) @.str.10)
  %323 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %321, ptr noundef nonnull align 1 dereferenceable(32) %322, ptr noundef %31)
          to label %324 unwind label %327

324:                                              ; preds = %319
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %325

325:                                              ; preds = %324
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  br label %316

327:                                              ; preds = %319
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %6, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %335

331:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  store i32 0, ptr %17, align 4
  br label %332

332:                                              ; preds = %331, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %333 = load i32, ptr %17, align 4
  switch i32 %333, label %344 [
    i32 0, label %334
    i32 1, label %334
  ]

334:                                              ; preds = %332, %332
  ret void

335:                                              ; preds = %327, %293, %270, %259
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #8
  br label %336

336:                                              ; preds = %335, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %337

337:                                              ; preds = %336, %234, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %338

338:                                              ; preds = %337, %166, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %339

339:                                              ; preds = %338, %132, %106, %102, %98, %94, %90
  %340 = load ptr, ptr %6, align 8
  %341 = load i32, ptr %7, align 4
  %342 = insertvalue { ptr, i32 } poison, ptr %340, 0
  %343 = insertvalue { ptr, i32 } %342, i32 %341, 1
  resume { ptr, i32 } %343

344:                                              ; preds = %332
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Crypto21tree_hash_from_branchEPKNS_4HashEmRS1_PKvRS0_(ptr noundef, i64 noundef, ptr noundef nonnull align 1 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(32)) #6

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

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

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

declare i64 @tree_depth(i64 noundef) #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN11ISerializerclINS_11TransactionEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) #5 align 2

declare noundef zeroext i1 @_ZN7DynexCN26getMergeMiningTagFromExtraERKSt6vectorIhSaIhEERNS_24TransactionExtraMergeTagE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #4

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 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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, !6, i64 0}
!10 = !{!"_ZTSN7DynexCN21ParentBlockSerializerE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 25}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!10, !6, i64 16}
!16 = !{!10, !11, i64 24}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !22, i64 34}
!20 = !{!"_ZTSN7DynexCN11ParentBlockE", !7, i64 0, !7, i64 1, !21, i64 2, !22, i64 34, !23, i64 40, !27, i64 64, !23, i64 176}
!21 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSN7DynexCN11TransactionE", !28, i64 0, !42, i64 88}
!28 = !{!"_ZTSN7DynexCN17TransactionPrefixE", !7, i64 0, !29, i64 8, !30, i64 16, !34, i64 40, !38, i64 64}
!29 = !{!"long", !7, i64 0}
!30 = !{!"_ZTSSt6vectorIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorIhSaIhEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt6vectorIS_IN6Crypto9SignatureESaIS1_EESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!29, !29, i64 0}
!47 = !{!10, !11, i64 25}
!48 = !{!49, !29, i64 0}
!49 = !{!"_ZTSN7DynexCN24TransactionExtraMergeTagE", !29, i64 0, !21, i64 8}


; 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.Crypto::Hash" = type { [32 x i8] }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%"struct.DynexCN::TransactionExtraMergeTag" = type { i64, %"struct.Crypto::Hash" }

@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@__const._ZN7DynexCN9serializeERNS_21ParentBlockSerializerERNS_11ISerializerE.minerTx = external hidden unnamed_addr constant [8 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [56 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 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 #1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN9serializeERNS_21ParentBlockSerializerERNS_11ISerializerE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.Common::StringView", align 8
  %4 = alloca %"class.Common::StringView", align 8
  %5 = alloca %"class.Common::StringView", align 8
  %6 = alloca %"class.Common::StringView", align 8
  %7 = alloca %"class.Common::StringView", align 8
  %8 = alloca %"struct.Crypto::Hash", align 1
  %9 = alloca %"struct.Crypto::Hash", align 1
  %10 = alloca %"class.Common::StringView", align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.Common::StringView", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %15 = alloca %"class.Common::StringView", align 8
  %16 = alloca [8 x i8], align 8
  %17 = alloca %"class.Common::StringView", align 8
  %18 = alloca %"struct.DynexCN::TransactionExtraMergeTag", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %21 = alloca %"class.Common::StringView", align 8
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZN6Common10StringViewC2ILm13EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 1 dereferenceable(13) @.str.24)
  %23 = load ptr, ptr %1, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %23, i64 56
  %25 = load ptr, ptr %24, align 8
  %26 = invoke noundef zeroext i1 %25(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %22, ptr noundef nonnull %3)
          to label %27 unwind label %63

27:                                               ; preds = %2
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  %28 = load ptr, ptr %0, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 1
  call void @_ZN6Common10StringViewC2ILm13EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 1 dereferenceable(13) @.str.25)
  %30 = load ptr, ptr %1, align 8, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %30, i64 56
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef zeroext i1 %32(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %29, ptr noundef nonnull %4)
          to label %34 unwind label %65

34:                                               ; preds = %27
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(10) @.str.26)
  %37 = load ptr, ptr %1, align 8, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %37, i64 104
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull %5)
          to label %41 unwind label %67

41:                                               ; preds = %34
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  %42 = load ptr, ptr %0, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 2
  call void @_ZN6Common10StringViewC2ILm7EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 1 dereferenceable(7) @.str.27)
  %44 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(32) %43, ptr noundef nonnull %6)
          to label %45 unwind label %69

45:                                               ; preds = %41
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  call void @_ZN6Common10StringViewC2ILm6EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(6) @.str.28)
  %48 = load ptr, ptr %1, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %48, i64 136
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef zeroext i1 %50(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %47, i64 noundef 4, ptr noundef nonnull %7)
          to label %52 unwind label %71

52:                                               ; preds = %45
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  %54 = load i8, ptr %53, align 8, !tbaa !15, !range !16, !noundef !17
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %56, label %87

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %57 = load ptr, ptr %0, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 64
  %59 = call noundef zeroext i1 @_ZN7DynexCN13getObjectHashINS_11TransactionEEEbRKT_RN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(112) %58, ptr noundef nonnull align 1 dereferenceable(32) %8)
  br i1 %59, label %75, label %60

60:                                               ; preds = %56
  %61 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull @.str.29)
          to label %62 unwind label %73

62:                                               ; preds = %60
  call void @__cxa_throw(ptr nonnull %61, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

63:                                               ; preds = %2
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  br label %204

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

67:                                               ; preds = %34
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %204

69:                                               ; preds = %41
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %204

71:                                               ; preds = %45
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %204

73:                                               ; preds = %60
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %61) #7
  br label %86

75:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  %76 = load ptr, ptr %0, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 40
  %78 = call noundef ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #7
  %79 = load ptr, ptr %0, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 40
  %81 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  call void @_ZN6Crypto21tree_hash_from_branchEPKNS_4HashEmRS1_PKvRS0_(ptr noundef %78, i64 noundef %81, ptr noundef nonnull align 1 dereferenceable(32) %8, ptr noundef null, ptr noundef nonnull align 1 dereferenceable(32) %9)
  call void @_ZN6Common10StringViewC2ILm11EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(11) @.str.30)
  %82 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(32) %9, ptr noundef nonnull %10)
          to label %83 unwind label %84

83:                                               ; preds = %75
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %87

84:                                               ; preds = %75
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %86

86:                                               ; preds = %84, %73
  %.pn = phi { ptr, i32 } [ %85, %84 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %204

87:                                               ; preds = %83, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %88 = load ptr, ptr %0, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 34
  %90 = load i16, ptr %89, align 2, !tbaa !18
  %91 = zext i16 %90 to i64
  store i64 %91, ptr %11, align 8, !tbaa !45
  call void @_ZN6Common10StringViewC2ILm21EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 1 dereferenceable(21) @.str.31)
  %92 = load ptr, ptr %1, align 8, !tbaa !11
  %93 = getelementptr inbounds i8, ptr %92, i64 104
  %94 = load ptr, ptr %93, align 8
  %95 = invoke noundef zeroext i1 %94(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %12)
          to label %96 unwind label %106

96:                                               ; preds = %87
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  %97 = load i64, ptr %11, align 8, !tbaa !45
  %98 = trunc i64 %97 to i16
  %99 = load ptr, ptr %0, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 34
  store i16 %98, ptr %100, align 2, !tbaa !18
  %101 = and i64 %97, 65535
  %102 = icmp eq i64 %101, 0
  br i1 %102, label %103, label %110

103:                                              ; preds = %96
  %104 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef nonnull @.str.32)
          to label %105 unwind label %108

105:                                              ; preds = %103
  call void @__cxa_throw(ptr nonnull %104, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

106:                                              ; preds = %87
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %203

108:                                              ; preds = %103
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %104) #7
  br label %203

110:                                              ; preds = %96
  %111 = getelementptr inbounds i8, ptr %0, i64 25
  %112 = load i8, ptr %111, align 1, !tbaa !46, !range !16, !noundef !17
  %113 = trunc nuw i8 %112 to i1
  br i1 %113, label %200, label %114

114:                                              ; preds = %110
  %115 = call i64 @tree_depth(i64 noundef %101)
  %116 = load ptr, ptr %1, align 8, !tbaa !11
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %118 = load ptr, ptr %117, align 8
  %119 = call noundef i32 %118(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %120 = icmp eq i32 %119, 1
  %121 = load ptr, ptr %0, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  br i1 %120, label %123, label %130

123:                                              ; preds = %114
  %124 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #7
  %.not = icmp eq i64 %124, %115
  br i1 %.not, label %131, label %125

125:                                              ; preds = %123
  %126 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %126, ptr noundef nonnull @.str.33)
          to label %127 unwind label %128

127:                                              ; preds = %125
  call void @__cxa_throw(ptr nonnull %126, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

128:                                              ; preds = %125
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %126) #7
  br label %203

130:                                              ; preds = %114
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %115)
  br label %131

131:                                              ; preds = %123, %130
  %132 = load ptr, ptr %0, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %134 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #7
  store ptr %134, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %135 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #7
  store ptr %135, ptr %14, align 8
  %136 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %136, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %143, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %137 = load i64, ptr @__const._ZN7DynexCN9serializeERNS_21ParentBlockSerializerERNS_11ISerializerE.minerTx, align 1
  store i64 %137, ptr %16, align 8
  %138 = load ptr, ptr %0, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 64
  call void @_ZN6Common10StringViewC2ILm8EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 1 dereferenceable(8) %16)
  %140 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclINS_11TransactionEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(112) %139, ptr noundef nonnull %17)
          to label %148 unwind label %155

.lr.ph:                                           ; preds = %131, %143
  %141 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @_ZN6Common10StringViewC2ILm1EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 1 dereferenceable(1) @.str.10)
  %142 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(32) %141, ptr noundef nonnull %15)
          to label %143 unwind label %146

143:                                              ; preds = %.lr.ph
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %145, label %.lr.ph, label %._crit_edge

146:                                              ; preds = %.lr.ph
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %203

148:                                              ; preds = %._crit_edge
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #7
  %149 = load ptr, ptr %0, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 128
  %151 = call noundef zeroext i1 @_ZN7DynexCN26getMergeMiningTagFromExtraERKSt6vectorIhSaIhEERNS_24TransactionExtraMergeTagE(ptr noundef nonnull align 8 dereferenceable(24) %150, ptr noundef nonnull align 8 dereferenceable(40) %18)
  br i1 %151, label %159, label %152

152:                                              ; preds = %148
  %153 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %153, ptr noundef nonnull @.str.34)
          to label %154 unwind label %157

154:                                              ; preds = %152
  call void @__cxa_throw(ptr nonnull %153, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

155:                                              ; preds = %._crit_edge
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %202

157:                                              ; preds = %152
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %153) #7
  br label %201

159:                                              ; preds = %148
  %160 = load i64, ptr %18, align 8, !tbaa !47
  %161 = icmp ugt i64 %160, 256
  br i1 %161, label %162, label %167

162:                                              ; preds = %159
  %163 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %163, ptr noundef nonnull @.str.35)
          to label %164 unwind label %165

164:                                              ; preds = %162
  call void @__cxa_throw(ptr nonnull %163, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

165:                                              ; preds = %162
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %163) #7
  br label %201

167:                                              ; preds = %159
  %168 = load ptr, ptr %1, align 8, !tbaa !11
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  %170 = load ptr, ptr %169, align 8
  %171 = call noundef i32 %170(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %172 = icmp eq i32 %171, 1
  br i1 %172, label %173, label %183

173:                                              ; preds = %167
  %174 = load i64, ptr %18, align 8, !tbaa !47
  %175 = load ptr, ptr %0, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 176
  %177 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #7
  %.not50 = icmp eq i64 %174, %177
  br i1 %.not50, label %187, label %178

178:                                              ; preds = %173
  %179 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %179, ptr noundef nonnull @.str.36)
          to label %180 unwind label %181

180:                                              ; preds = %178
  call void @__cxa_throw(ptr nonnull %179, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

181:                                              ; preds = %178
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %179) #7
  br label %201

183:                                              ; preds = %167
  %184 = load ptr, ptr %0, align 8, !tbaa !5
  %185 = getelementptr inbounds i8, ptr %184, i64 176
  %186 = load i64, ptr %18, align 8, !tbaa !47
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %186)
  br label %187

187:                                              ; preds = %173, %183
  %188 = load ptr, ptr %0, align 8, !tbaa !5
  %189 = getelementptr inbounds i8, ptr %188, i64 176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %190 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #7
  store ptr %190, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %191 = call ptr @_ZNSt6vectorIN6Crypto4HashESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #7
  store ptr %191, ptr %20, align 8
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %192, label %.lr.ph60, label %._crit_edge61

._crit_edge61:                                    ; preds = %195, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %200

.lr.ph60:                                         ; preds = %187, %195
  %193 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @_ZN6Common10StringViewC2ILm1EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 1 dereferenceable(1) @.str.10)
  %194 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(32) %193, ptr noundef nonnull %21)
          to label %195 unwind label %198

195:                                              ; preds = %.lr.ph60
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %197 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6Crypto4HashESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %197, label %.lr.ph60, label %._crit_edge61

198:                                              ; preds = %.lr.ph60
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %201

200:                                              ; preds = %110, %._crit_edge61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  ret void

201:                                              ; preds = %198, %181, %165, %157
  %.pn51 = phi { ptr, i32 } [ %166, %165 ], [ %182, %181 ], [ %199, %198 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #7
  br label %202

202:                                              ; preds = %201, %155
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %201 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %203

203:                                              ; preds = %128, %146, %202, %108, %106
  %.pn56 = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ], [ %129, %128 ], [ %147, %146 ], [ %.pn51.pn, %202 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %204

204:                                              ; preds = %203, %86, %71, %69, %67, %65, %63
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %203 ], [ %.pn, %86 ], [ %72, %71 ], [ %70, %69 ], [ %68, %67 ], [ %66, %65 ], [ %64, %63 ]
  resume { ptr, i32 } %.pn56.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN11ISerializerclIN6Crypto4HashEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN13getObjectHashINS_11TransactionEEEbRKT_RN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #4

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

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

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

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

declare i64 @tree_depth(i64 noundef) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7DynexCN11ISerializerclINS_11TransactionEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #4 align 2

declare noundef zeroext i1 @_ZN7DynexCN26getMergeMiningTagFromExtraERKSt6vectorIhSaIhEERNS_24TransactionExtraMergeTagE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN7DynexCN21ParentBlockSerializerE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 25}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !9, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !10, i64 24}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !21, i64 34}
!19 = !{!"_ZTSN7DynexCN11ParentBlockE", !8, i64 0, !8, i64 1, !20, i64 2, !21, i64 34, !22, i64 40, !26, i64 64, !22, i64 176}
!20 = !{!"_ZTSN6Crypto4HashE", !8, i64 0}
!21 = !{!"short", !8, i64 0}
!22 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!26 = !{!"_ZTSN7DynexCN11TransactionE", !27, i64 0, !41, i64 88}
!27 = !{!"_ZTSN7DynexCN17TransactionPrefixE", !8, i64 0, !28, i64 8, !29, i64 16, !33, i64 40, !37, i64 64}
!28 = !{!"long", !8, i64 0}
!29 = !{!"_ZTSSt6vectorIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!33 = !{!"_ZTSSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!37 = !{!"_ZTSSt6vectorIhSaIhEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!41 = !{!"_ZTSSt6vectorIS_IN6Crypto9SignatureESaIS1_EESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!45 = !{!28, !28, i64 0}
!46 = !{!6, !10, i64 25}
!47 = !{!48, !28, i64 0}
!48 = !{!"_ZTSN7DynexCN24TransactionExtraMergeTagE", !28, i64 0, !20, i64 8}


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