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

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

%"class.std::__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.Logging::LoggerMessage" = type <{ %"class.std::basic_ostream.base", %"class.std::basic_streambuf", ptr, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.boost::posix_time::ptime", i8, [7 x i8], %"class.std::basic_ios" }>
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::posix_time::ptime" = type { %"class.boost::date_time::base_time" }
%"class.boost::date_time::base_time" = type { %"struct.boost::date_time::counted_time_rep" }
%"struct.boost::date_time::counted_time_rep" = type { %"class.boost::date_time::int_adapter" }
%"class.boost::date_time::int_adapter" = type { i64 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.40" = type { ptr }
%"class.DynexCN::Currency" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, %"struct.DynexCN::Block", %"struct.Crypto::Hash", %"class.Logging::LoggerRef" }
%"struct.DynexCN::Block" = type { %"struct.DynexCN::BlockHeader", %"struct.DynexCN::ParentBlock", %"struct.DynexCN::Transaction", %"class.std::vector.7" }
%"struct.DynexCN::BlockHeader" = type { i8, i8, i32, i64, %"struct.Crypto::Hash" }
%"struct.DynexCN::ParentBlock" = type { i8, i8, %"struct.Crypto::Hash", i16, %"class.std::vector.7", %"struct.DynexCN::Transaction", %"class.std::vector.7" }
%"struct.DynexCN::Transaction" = type { %"struct.DynexCN::TransactionPrefix", %"class.std::vector.27" }
%"struct.DynexCN::TransactionPrefix" = type { i8, i64, %"class.std::vector.12", %"class.std::vector.17", %"class.std::vector.22" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = 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.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = 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.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = 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 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.Logging::LoggerRef" = type { ptr, %"class.std::__cxx11::basic_string" }

@.str.9 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_ = external hidden unnamed_addr constant [126 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZN7Logging13BRIGHT_YELLOWB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@.str.42 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [14 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

declare void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(17)) #5

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEEvT_S7_(ptr, ptr) #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_(ptr noundef nonnull align 8 dereferenceable(984) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.40", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.40", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"class.Logging::LoggerMessage", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.Logging::LoggerMessage", align 8
  %25 = alloca %"class.Logging::LoggerMessage", align 8
  %26 = alloca %"class.Logging::LoggerMessage", align 8
  %27 = alloca %"class.Logging::LoggerMessage", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8
  %29 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %30 = load i64, ptr %29, align 8, !tbaa !11
  %31 = icmp uge i64 %30, 2
  br i1 %31, label %32, label %33

32:                                               ; preds = %4
  br label %35

33:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str.9, i32 noundef 500, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %32
  %36 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %37 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = icmp ugt i64 %36, %38
  br i1 %39, label %40, label %45

40:                                               ; preds = %35
  %41 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %42 = load i64, ptr %41, align 8, !tbaa !11
  call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %42)
  %43 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %44 = load i64, ptr %43, align 8, !tbaa !11
  call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %44)
  br label %45

45:                                               ; preds = %40, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %46 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  store i64 %46, ptr %10, align 8, !tbaa !45
  %47 = load i64, ptr %10, align 8, !tbaa !45
  %48 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %49 = icmp eq i64 %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  br label %53

51:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.37, ptr noundef @.str.9, i32 noundef 508, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %50
  %54 = load i64, ptr %10, align 8, !tbaa !45
  %55 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %56 = load i64, ptr %55, align 8, !tbaa !11
  %57 = icmp ule i64 %54, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %53
  br label %61

59:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str.9, i32 noundef 509, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  %62 = load i64, ptr %10, align 8, !tbaa !45
  %63 = icmp ule i64 %62, 1
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  store i64 1, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %284

65:                                               ; preds = %61
  %66 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %12, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  %68 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %13, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %12, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %13, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEEvT_S7_(ptr %71, ptr %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %74 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 30
  %75 = load i64, ptr %74, align 8, !tbaa !46
  %76 = mul i64 2, %75
  %77 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = sub i64 %78, 2
  %80 = icmp ule i64 %76, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %65
  br label %84

82:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.39, ptr noundef @.str.9, i32 noundef 517, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

83:                                               ; No predecessors!
  br label %84

84:                                               ; preds = %83, %81
  %85 = load i64, ptr %10, align 8, !tbaa !45
  %86 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %87 = load i64, ptr %86, align 8, !tbaa !11
  %88 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 30
  %89 = load i64, ptr %88, align 8, !tbaa !46
  %90 = mul i64 2, %89
  %91 = sub i64 %87, %90
  %92 = icmp ule i64 %85, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %84
  store i64 0, ptr %14, align 8, !tbaa !45
  %94 = load i64, ptr %10, align 8, !tbaa !45
  store i64 %94, ptr %15, align 8, !tbaa !45
  br label %114

95:                                               ; preds = %84
  %96 = load i64, ptr %10, align 8, !tbaa !45
  %97 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %98 = load i64, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 30
  %100 = load i64, ptr %99, align 8, !tbaa !46
  %101 = mul i64 2, %100
  %102 = sub i64 %98, %101
  %103 = sub i64 %96, %102
  %104 = add i64 %103, 1
  %105 = udiv i64 %104, 2
  store i64 %105, ptr %14, align 8, !tbaa !45
  %106 = load i64, ptr %14, align 8, !tbaa !45
  %107 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 28
  %108 = load i64, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 30
  %110 = load i64, ptr %109, align 8, !tbaa !46
  %111 = mul i64 2, %110
  %112 = sub i64 %108, %111
  %113 = add i64 %106, %112
  store i64 %113, ptr %15, align 8, !tbaa !45
  br label %114

114:                                              ; preds = %95, %93
  %115 = load i64, ptr %14, align 8, !tbaa !45
  %116 = add i64 %115, 2
  %117 = load i64, ptr %15, align 8, !tbaa !45
  %118 = icmp ule i64 %116, %117
  br i1 %118, label %119, label %123

119:                                              ; preds = %114
  %120 = load i64, ptr %15, align 8, !tbaa !45
  %121 = load i64, ptr %10, align 8, !tbaa !45
  %122 = icmp ule i64 %120, %121
  br label %123

123:                                              ; preds = %119, %114
  %124 = phi i1 [ false, %114 ], [ %122, %119 ]
  br i1 %124, label %125, label %126

125:                                              ; preds = %123
  br label %128

126:                                              ; preds = %123
  call void @__assert_fail(ptr noundef @.str.40, ptr noundef @.str.9, i32 noundef 526, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

127:                                              ; No predecessors!
  br label %128

128:                                              ; preds = %127, %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %129 = load i64, ptr %15, align 8, !tbaa !45
  %130 = sub i64 %129, 1
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %130) #8
  %132 = load i64, ptr %131, align 8, !tbaa !45
  %133 = load i64, ptr %14, align 8, !tbaa !45
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %133) #8
  %135 = load i64, ptr %134, align 8, !tbaa !45
  %136 = sub i64 %132, %135
  store i64 %136, ptr %16, align 8, !tbaa !45
  %137 = load i64, ptr %16, align 8, !tbaa !45
  %138 = icmp eq i64 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %128
  store i64 1, ptr %16, align 8, !tbaa !45
  br label %140

140:                                              ; preds = %139, %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %141 = load i64, ptr %15, align 8, !tbaa !45
  %142 = sub i64 %141, 1
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %142) #8
  %144 = load i64, ptr %143, align 8, !tbaa !45
  %145 = load i64, ptr %14, align 8, !tbaa !45
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %145) #8
  %147 = load i64, ptr %146, align 8, !tbaa !45
  %148 = sub i64 %144, %147
  store i64 %148, ptr %17, align 8, !tbaa !45
  %149 = load i64, ptr %17, align 8, !tbaa !45
  %150 = icmp ugt i64 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %140
  br label %154

152:                                              ; preds = %140
  call void @__assert_fail(ptr noundef @.str.41, ptr noundef @.str.9, i32 noundef 533, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %155 = load i64, ptr %17, align 8, !tbaa !45
  %156 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 27
  %157 = load i64, ptr %156, align 8, !tbaa !47
  %158 = call noundef i64 @_ZL6mul128mmPm(i64 noundef %155, i64 noundef %157, ptr noundef %19)
  store i64 %158, ptr %18, align 8, !tbaa !45
  %159 = load i64, ptr %19, align 8, !tbaa !45
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %168, label %161

161:                                              ; preds = %154
  %162 = load i64, ptr %18, align 8, !tbaa !45
  %163 = load i64, ptr %16, align 8, !tbaa !45
  %164 = add i64 %162, %163
  %165 = sub i64 %164, 1
  %166 = load i64, ptr %18, align 8, !tbaa !45
  %167 = icmp ult i64 %165, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %161, %154
  store i64 0, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %283

169:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %170 = load i64, ptr %18, align 8, !tbaa !45
  %171 = load i64, ptr %16, align 8, !tbaa !45
  %172 = add i64 %170, %171
  %173 = sub i64 %172, 1
  %174 = load i64, ptr %16, align 8, !tbaa !45
  %175 = udiv i64 %173, %174
  store i64 %175, ptr %20, align 8, !tbaa !45
  %176 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %28)
  br i1 %176, label %177, label %180

177:                                              ; preds = %169
  %178 = load i64, ptr %20, align 8, !tbaa !45
  %179 = udiv i64 %178, 2
  store i64 %179, ptr %20, align 8, !tbaa !45
  br label %180

180:                                              ; preds = %177, %169
  %181 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %28)
  br i1 %181, label %200, label %182

182:                                              ; preds = %180
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = icmp uge i32 %183, 58494
  br i1 %184, label %185, label %200

185:                                              ; preds = %182
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = icmp ule i32 %186, 59219
  br i1 %187, label %188, label %200

188:                                              ; preds = %185
  store i64 14, ptr %20, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %21) #8
  %189 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %21, ptr noundef nonnull align 8 dereferenceable(40) %189, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %190 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %21, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %191 unwind label %196

191:                                              ; preds = %188
  %192 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %190, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %193 unwind label %196

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %192, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %195 unwind label %196

195:                                              ; preds = %193
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %21) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %21) #8
  br label %200

196:                                              ; preds = %193, %191, %188
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %22, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %23, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %21) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %21) #8
  br label %282

200:                                              ; preds = %195, %185, %182, %180
  %201 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %28)
  br i1 %201, label %220, label %202

202:                                              ; preds = %200
  %203 = load i32, ptr %7, align 4, !tbaa !9
  %204 = icmp uge i32 %203, 67589
  br i1 %204, label %205, label %220

205:                                              ; preds = %202
  %206 = load i32, ptr %7, align 4, !tbaa !9
  %207 = icmp ule i32 %206, 68314
  br i1 %207, label %208, label %220

208:                                              ; preds = %205
  store i64 60000000, ptr %20, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %24) #8
  %209 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %24, ptr noundef nonnull align 8 dereferenceable(40) %209, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %210 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %24, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %211 unwind label %216

211:                                              ; preds = %208
  %212 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %210, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %213 unwind label %216

213:                                              ; preds = %211
  %214 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %212, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %215 unwind label %216

215:                                              ; preds = %213
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %24) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %24) #8
  br label %220

216:                                              ; preds = %213, %211, %208
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %22, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %23, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %24) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %24) #8
  br label %282

220:                                              ; preds = %215, %205, %202, %200
  %221 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %28)
  br i1 %221, label %240, label %222

222:                                              ; preds = %220
  %223 = load i32, ptr %7, align 4, !tbaa !9
  %224 = icmp uge i32 %223, 70336
  br i1 %224, label %225, label %240

225:                                              ; preds = %222
  %226 = load i32, ptr %7, align 4, !tbaa !9
  %227 = icmp ule i32 %226, 70345
  br i1 %227, label %228, label %240

228:                                              ; preds = %225
  store i64 60000000, ptr %20, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %25) #8
  %229 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %229, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %230 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %25, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %231 unwind label %236

231:                                              ; preds = %228
  %232 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %230, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %233 unwind label %236

233:                                              ; preds = %231
  %234 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %232, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %235 unwind label %236

235:                                              ; preds = %233
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %25) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %25) #8
  br label %240

236:                                              ; preds = %233, %231, %228
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %22, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %23, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %25) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %25) #8
  br label %282

240:                                              ; preds = %235, %225, %222, %220
  %241 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %28)
  br i1 %241, label %260, label %242

242:                                              ; preds = %240
  %243 = load i32, ptr %7, align 4, !tbaa !9
  %244 = icmp uge i32 %243, 70346
  br i1 %244, label %245, label %260

245:                                              ; preds = %242
  %246 = load i32, ptr %7, align 4, !tbaa !9
  %247 = icmp ule i32 %246, 70396
  br i1 %247, label %248, label %260

248:                                              ; preds = %245
  store i64 5000000, ptr %20, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %26) #8
  %249 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %26, ptr noundef nonnull align 8 dereferenceable(40) %249, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %250 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %26, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %251 unwind label %256

251:                                              ; preds = %248
  %252 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %250, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %253 unwind label %256

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %252, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %255 unwind label %256

255:                                              ; preds = %253
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %26) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %26) #8
  br label %260

256:                                              ; preds = %253, %251, %248
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %22, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %23, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %26) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %26) #8
  br label %282

260:                                              ; preds = %255, %245, %242, %240
  %261 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %28)
  br i1 %261, label %280, label %262

262:                                              ; preds = %260
  %263 = load i32, ptr %7, align 4, !tbaa !9
  %264 = icmp uge i32 %263, 70404
  br i1 %264, label %265, label %280

265:                                              ; preds = %262
  %266 = load i32, ptr %7, align 4, !tbaa !9
  %267 = icmp ule i32 %266, 71129
  br i1 %267, label %268, label %280

268:                                              ; preds = %265
  store i64 5000000, ptr %20, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %27) #8
  %269 = getelementptr inbounds %"class.DynexCN::Currency", ptr %28, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %27, ptr noundef nonnull align 8 dereferenceable(40) %269, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %270 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %27, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %271 unwind label %276

271:                                              ; preds = %268
  %272 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %270, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %273 unwind label %276

273:                                              ; preds = %271
  %274 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %272, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %275 unwind label %276

275:                                              ; preds = %273
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %27) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %27) #8
  br label %280

276:                                              ; preds = %273, %271, %268
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %22, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %23, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %27) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %27) #8
  br label %282

280:                                              ; preds = %275, %265, %262, %260
  %281 = load i64, ptr %20, align 8, !tbaa !45
  store i64 %281, ptr %5, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %283

282:                                              ; preds = %276, %256, %236, %216, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %286

283:                                              ; preds = %280, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %284

284:                                              ; preds = %283, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %285 = load i64, ptr %5, align 8
  ret i64 %285

286:                                              ; preds = %282
  %287 = load ptr, ptr %22, align 8
  %288 = load i32, ptr %23, align 4
  %289 = insertvalue { ptr, i32 } poison, ptr %287, 0
  %290 = insertvalue { ptr, i32 } %289, i32 %288, 1
  resume { ptr, i32 } %290
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZL6mul128mmPm(i64 noundef, i64 noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(14)) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 224}
!12 = !{!"_ZTSN7DynexCN8CurrencyE", !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, !13, i64 80, !13, i64 88, !13, i64 96, !10, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !14, i64 360, !14, i64 392, !14, i64 424, !14, i64 456, !14, i64 488, !16, i64 520, !17, i64 528, !19, i64 912, !44, i64 944}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !13, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN7DynexCN5BlockE", !18, i64 0, !20, i64 48, !26, i64 248, !22, i64 360}
!18 = !{!"_ZTSN7DynexCN11BlockHeaderE", !7, i64 0, !7, i64 1, !10, i64 4, !13, i64 8, !19, i64 16}
!19 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!20 = !{!"_ZTSN7DynexCN11ParentBlockE", !7, i64 0, !7, i64 1, !19, i64 2, !21, i64 34, !22, i64 40, !26, i64 64, !22, i64 176}
!21 = !{!"short", !7, 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", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN7DynexCN11TransactionE", !27, i64 0, !40, i64 88}
!27 = !{!"_ZTSN7DynexCN17TransactionPrefixE", !7, i64 0, !13, i64 8, !28, i64 16, !32, i64 40, !36, i64 64}
!28 = !{!"_ZTSSt6vectorIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorIhSaIhEE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt6vectorIS_IN6Crypto9SignatureESaIS1_EESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSN7Logging9LoggerRefE", !6, i64 0, !14, i64 8}
!45 = !{!13, !13, i64 0}
!46 = !{!12, !13, i64 240}
!47 = !{!12, !13, i64 216}


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

%"class.std::__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.Logging::LoggerMessage" = type <{ %"class.std::basic_ostream.base", %"class.std::basic_streambuf", ptr, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.boost::posix_time::ptime", i8, [7 x i8], %"class.std::basic_ios" }>
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::posix_time::ptime" = type { %"class.boost::date_time::base_time" }
%"class.boost::date_time::base_time" = type { %"struct.boost::date_time::counted_time_rep" }
%"struct.boost::date_time::counted_time_rep" = type { %"class.boost::date_time::int_adapter" }
%"class.boost::date_time::int_adapter" = type { i64 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str.9 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_ = external hidden unnamed_addr constant [126 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZN7Logging13BRIGHT_YELLOWB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@.str.42 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [14 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(...)

declare void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #5

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_(ptr noundef nonnull align 8 dereferenceable(984) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.Logging::LoggerMessage", align 8
  %8 = alloca %"class.Logging::LoggerMessage", align 8
  %9 = alloca %"class.Logging::LoggerMessage", align 8
  %10 = alloca %"class.Logging::LoggerMessage", align 8
  %11 = alloca %"class.Logging::LoggerMessage", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 224
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = icmp ugt i64 %13, 1
  br i1 %14, label %16, label %15

15:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.9, i32 noundef 500, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

16:                                               ; preds = %4
  %17 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %18 = load i64, ptr %12, align 8, !tbaa !5
  %19 = icmp ugt i64 %17, %18
  br i1 %19, label %20, label %22

20:                                               ; preds = %16
  tail call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %18)
  %21 = load i64, ptr %12, align 8, !tbaa !5
  tail call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %21)
  br label %22

22:                                               ; preds = %20, %16
  %23 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %24 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %25 = icmp eq i64 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.9, i32 noundef 508, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

27:                                               ; preds = %22
  %28 = load i64, ptr %12, align 8, !tbaa !5
  %.not71 = icmp ugt i64 %23, %28
  br i1 %.not71, label %29, label %30

29:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.9, i32 noundef 509, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

30:                                               ; preds = %27
  %31 = icmp ult i64 %23, 2
  br i1 %31, label %155, label %32

32:                                               ; preds = %30
  %33 = tail call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %34 = tail call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  tail call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEEvT_S7_(ptr %33, ptr %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 240
  %36 = load i64, ptr %35, align 8, !tbaa !43
  %37 = shl i64 %36, 1
  %38 = load i64, ptr %12, align 8, !tbaa !5
  %39 = add i64 %38, -2
  %.not72 = icmp ugt i64 %37, %39
  br i1 %.not72, label %40, label %41

40:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.9, i32 noundef 517, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

41:                                               ; preds = %32
  %42 = sub i64 %38, %37
  %.not73 = icmp ugt i64 %23, %42
  %43 = add i64 %23, 1
  %44 = sub i64 %43, %42
  %45 = lshr i64 %44, 1
  %46 = add i64 %45, %42
  %.064 = select i1 %.not73, i64 %45, i64 0
  %.063 = select i1 %.not73, i64 %46, i64 %23
  %47 = add nuw i64 %.064, 2
  %48 = icmp ule i64 %47, %.063
  %49 = icmp ule i64 %.063, %23
  %50 = and i1 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.9, i32 noundef 526, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

52:                                               ; preds = %41
  %53 = add i64 %.063, -1
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %53) #8
  %55 = load i64, ptr %54, align 8, !tbaa !44
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.064) #8
  %57 = load i64, ptr %56, align 8, !tbaa !44
  %58 = sub i64 %55, %57
  %59 = icmp eq i64 %55, %57
  %spec.store.select = select i1 %59, i64 1, i64 %58
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %53) #8
  %61 = load i64, ptr %60, align 8, !tbaa !44
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.064) #8
  %63 = load i64, ptr %62, align 8, !tbaa !44
  %.not74 = icmp eq i64 %61, %63
  br i1 %.not74, label %64, label %65

64:                                               ; preds = %52
  tail call void @__assert_fail(ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.9, i32 noundef 533, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency21nextDifficultyDefaultEjSt6vectorImSaImEES3_) #7
  unreachable

65:                                               ; preds = %52
  %66 = sub i64 %61, %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %67 = getelementptr inbounds i8, ptr %0, i64 216
  %68 = load i64, ptr %67, align 8, !tbaa !45
  %69 = call noundef i64 @_ZL6mul128mmPm(i64 noundef %66, i64 noundef %68, ptr noundef nonnull %5)
  %70 = load i64, ptr %5, align 8, !tbaa !44
  %.not75 = icmp eq i64 %70, 0
  br i1 %.not75, label %71, label %154

71:                                               ; preds = %65
  %72 = add i64 %spec.store.select, -1
  %73 = add i64 %72, %69
  %74 = icmp ult i64 %73, %69
  br i1 %74, label %154, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %76 = udiv i64 %73, %spec.store.select
  store i64 %76, ptr %6, align 8, !tbaa !44
  %77 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i64, ptr %6, align 8, !tbaa !44
  %80 = lshr i64 %79, 1
  store i64 %80, ptr %6, align 8, !tbaa !44
  br label %81

81:                                               ; preds = %78, %75
  %82 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %83 = add i32 %1, -59220
  %84 = icmp ult i32 %83, -726
  %or.cond3.not = or i1 %84, %82
  br i1 %or.cond3.not, label %95, label %85

85:                                               ; preds = %81
  store i64 14, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %7) #8
  %86 = getelementptr inbounds i8, ptr %0, i64 944
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %86, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %87 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %7, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %88 unwind label %93

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %87, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %90 unwind label %93

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %89, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %92 unwind label %93

92:                                               ; preds = %90
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %7) #8
  br label %95

93:                                               ; preds = %90, %88, %85
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %7) #8
  br label %153

95:                                               ; preds = %92, %81
  %96 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %97 = add i32 %1, -68315
  %98 = icmp ult i32 %97, -726
  %or.cond8.not = or i1 %98, %96
  br i1 %or.cond8.not, label %109, label %99

99:                                               ; preds = %95
  store i64 60000000, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %8) #8
  %100 = getelementptr inbounds i8, ptr %0, i64 944
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %100, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %101 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %8, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %102 unwind label %107

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %101, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %104 unwind label %107

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %103, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %106 unwind label %107

106:                                              ; preds = %104
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %8) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %8) #8
  br label %109

107:                                              ; preds = %104, %102, %99
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %8) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %8) #8
  br label %153

109:                                              ; preds = %106, %95
  %110 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %111 = add i32 %1, -70346
  %112 = icmp ult i32 %111, -10
  %or.cond13.not = or i1 %112, %110
  br i1 %or.cond13.not, label %123, label %113

113:                                              ; preds = %109
  store i64 60000000, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %9) #8
  %114 = getelementptr inbounds i8, ptr %0, i64 944
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %114, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %115 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %9, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %116 unwind label %121

116:                                              ; preds = %113
  %117 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %115, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %118 unwind label %121

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %117, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %120 unwind label %121

120:                                              ; preds = %118
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %9) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %9) #8
  br label %123

121:                                              ; preds = %118, %116, %113
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %9) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %9) #8
  br label %153

123:                                              ; preds = %120, %109
  %124 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %125 = add i32 %1, -70397
  %126 = icmp ult i32 %125, -51
  %or.cond18.not = or i1 %126, %124
  br i1 %or.cond18.not, label %137, label %127

127:                                              ; preds = %123
  store i64 5000000, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %10) #8
  %128 = getelementptr inbounds i8, ptr %0, i64 944
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %128, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %129 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %10, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %130 unwind label %135

130:                                              ; preds = %127
  %131 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %129, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %132 unwind label %135

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %131, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %134 unwind label %135

134:                                              ; preds = %132
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %10) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %10) #8
  br label %137

135:                                              ; preds = %132, %130, %127
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %10) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %10) #8
  br label %153

137:                                              ; preds = %134, %123
  %138 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %139 = add i32 %1, -71130
  %140 = icmp ult i32 %139, -726
  %or.cond23.not = or i1 %140, %138
  br i1 %or.cond23.not, label %151, label %141

141:                                              ; preds = %137
  store i64 5000000, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %11) #8
  %142 = getelementptr inbounds i8, ptr %0, i64 944
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %142, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %143 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %11, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %144 unwind label %149

144:                                              ; preds = %141
  %145 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %143, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %146 unwind label %149

146:                                              ; preds = %144
  %147 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %145, ptr noundef nonnull align 1 dereferenceable(14) @.str.43)
          to label %148 unwind label %149

148:                                              ; preds = %146
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %11) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %11) #8
  br label %151

149:                                              ; preds = %146, %144, %141
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %11) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %11) #8
  br label %153

151:                                              ; preds = %148, %137
  %152 = load i64, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %154

153:                                              ; preds = %149, %135, %121, %107, %93
  %.pn = phi { ptr, i32 } [ %150, %149 ], [ %136, %135 ], [ %122, %121 ], [ %108, %107 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn

154:                                              ; preds = %65, %71, %151
  %.062 = phi i64 [ %152, %151 ], [ 0, %71 ], [ 0, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %155

155:                                              ; preds = %30, %154
  %.1 = phi i64 [ %.062, %154 ], [ 1, %30 ]
  ret i64 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZL6mul128mmPm(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(14)) local_unnamed_addr #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 224}
!6 = !{!"_ZTSN7DynexCN8CurrencyE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !11, i64 360, !11, i64 392, !11, i64 424, !11, i64 456, !11, i64 488, !14, i64 520, !15, i64 528, !17, i64 912, !42, i64 944}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !7, i64 8, !8, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSN7DynexCN5BlockE", !16, i64 0, !18, i64 48, !24, i64 248, !20, i64 360}
!16 = !{!"_ZTSN7DynexCN11BlockHeaderE", !8, i64 0, !8, i64 1, !10, i64 4, !7, i64 8, !17, i64 16}
!17 = !{!"_ZTSN6Crypto4HashE", !8, i64 0}
!18 = !{!"_ZTSN7DynexCN11ParentBlockE", !8, i64 0, !8, i64 1, !17, i64 2, !19, i64 34, !20, i64 40, !24, i64 64, !20, i64 176}
!19 = !{!"short", !8, i64 0}
!20 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!24 = !{!"_ZTSN7DynexCN11TransactionE", !25, i64 0, !38, i64 88}
!25 = !{!"_ZTSN7DynexCN17TransactionPrefixE", !8, i64 0, !7, i64 8, !26, i64 16, !30, i64 40, !34, i64 64}
!26 = !{!"_ZTSSt6vectorIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN5boost7variantIN7DynexCN9BaseInputEJNS2_8KeyInputENS2_19MultisignatureInputEEEESaIS6_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!30 = !{!"_ZTSSt6vectorIN7DynexCN17TransactionOutputESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN17TransactionOutputESaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!34 = !{!"_ZTSSt6vectorIhSaIhEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!38 = !{!"_ZTSSt6vectorIS_IN6Crypto9SignatureESaIS1_EESaIS3_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6Crypto9SignatureESaIS2_EESaIS4_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!42 = !{!"_ZTSN7Logging9LoggerRefE", !13, i64 0, !11, i64 8}
!43 = !{!6, !7, i64 240}
!44 = !{!7, !7, i64 0}
!45 = !{!6, !7, i64 216}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass