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

; 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
@.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
@__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_ = external hidden unnamed_addr constant [121 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [53 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984), i8 noundef zeroext) #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 @_ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_(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 i64, align 8
  %13 = alloca %"class.Logging::LoggerMessage", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca %"class.Logging::LoggerMessage", align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.40", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.40", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = 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
  %31 = load ptr, ptr %6, align 8
  %32 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = icmp uge i64 %33, 2
  br i1 %34, label %35, label %36

35:                                               ; preds = %4
  br label %38

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

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 200, ptr %10, align 8, !tbaa !45
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = call noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984) %31, i8 noundef zeroext 4)
  %41 = icmp uge i32 %39, %40
  br i1 %41, label %42, label %99

42:                                               ; preds = %38
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984) %31, i8 noundef zeroext 4)
  %46 = zext i32 %45 to i64
  %47 = add i64 %46, 200
  %48 = icmp ule i64 %44, %47
  br i1 %48, label %49, label %99

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = call noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984) %31, i8 noundef zeroext 4)
  %52 = sub i32 %50, %51
  %53 = zext i32 %52 to i64
  %54 = sub i64 200, %53
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %11, align 4, !tbaa !9
  %56 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %31)
  br i1 %56, label %74, label %57

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store i64 17141714, ptr %12, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %13) #8
  %58 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %58, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %59 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %13, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %60 unwind label %70

60:                                               ; preds = %57
  %61 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %59, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %62 unwind label %70

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA15_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %61, ptr noundef nonnull align 1 dereferenceable(15) @.str.44)
          to label %64 unwind label %70

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEjEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %63, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %66 unwind label %70

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %65, ptr noundef nonnull align 1 dereferenceable(14) @.str.45)
          to label %68 unwind label %70

68:                                               ; preds = %66
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %13) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %13) #8
  %69 = load i64, ptr %12, align 8, !tbaa !45
  store i64 %69, ptr %5, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %95

70:                                               ; preds = %66, %64, %62, %60, %57
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %14, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %15, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %13) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %98

74:                                               ; preds = %49
  %75 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %31)
  br i1 %75, label %76, label %93

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 14, ptr %17, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %18) #8
  %77 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %77, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %78 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA17_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %18, ptr noundef nonnull align 1 dereferenceable(17) @.str.42)
          to label %79 unwind label %89

79:                                               ; preds = %76
  %80 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %78, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %81 unwind label %89

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA15_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %80, ptr noundef nonnull align 1 dereferenceable(15) @.str.46)
          to label %83 unwind label %89

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEjEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %82, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %85 unwind label %89

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %84, ptr noundef nonnull align 1 dereferenceable(14) @.str.45)
          to label %87 unwind label %89

87:                                               ; preds = %85
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %18) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %18) #8
  %88 = load i64, ptr %17, align 8, !tbaa !45
  store i64 %88, ptr %5, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %95

89:                                               ; preds = %85, %83, %81, %79, %76
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %14, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %15, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %18) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %98

93:                                               ; preds = %74
  br label %94

94:                                               ; preds = %93
  store i32 0, ptr %16, align 4
  br label %95

95:                                               ; preds = %94, %87, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %96 = load i32, ptr %16, align 4
  switch i32 %96, label %283 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  br label %99

98:                                               ; preds = %89, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %285

99:                                               ; preds = %97, %42, %38
  %100 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %101 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %102 = load i64, ptr %101, align 8, !tbaa !11
  %103 = icmp ugt i64 %100, %102
  br i1 %103, label %104, label %109

104:                                              ; preds = %99
  %105 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %106 = load i64, ptr %105, align 8, !tbaa !11
  call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %106)
  %107 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %108 = load i64, ptr %107, align 8, !tbaa !11
  call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %108)
  br label %109

109:                                              ; preds = %104, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %110 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  store i64 %110, ptr %19, align 8, !tbaa !45
  %111 = load i64, ptr %19, align 8, !tbaa !45
  %112 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %113 = icmp eq i64 %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %109
  br label %117

115:                                              ; preds = %109
  call void @__assert_fail(ptr noundef @.str.37, ptr noundef @.str.9, i32 noundef 611, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #7
  unreachable

116:                                              ; No predecessors!
  br label %117

117:                                              ; preds = %116, %114
  %118 = load i64, ptr %19, align 8, !tbaa !45
  %119 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %120 = load i64, ptr %119, align 8, !tbaa !11
  %121 = icmp ule i64 %118, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %117
  br label %125

123:                                              ; preds = %117
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str.9, i32 noundef 612, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #7
  unreachable

124:                                              ; No predecessors!
  br label %125

125:                                              ; preds = %124, %122
  %126 = load i64, ptr %19, align 8, !tbaa !45
  %127 = icmp ule i64 %126, 1
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  store i64 1, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %282

129:                                              ; preds = %125
  %130 = call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %20, i32 0, i32 0
  store ptr %130, ptr %131, align 8
  %132 = call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %21, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %20, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.40", ptr %21, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEEvT_S7_(ptr %135, ptr %137)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %138 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 30
  %139 = load i64, ptr %138, align 8, !tbaa !46
  %140 = mul i64 2, %139
  %141 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %142 = load i64, ptr %141, align 8, !tbaa !11
  %143 = sub i64 %142, 2
  %144 = icmp ule i64 %140, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %129
  br label %148

146:                                              ; preds = %129
  call void @__assert_fail(ptr noundef @.str.39, ptr noundef @.str.9, i32 noundef 620, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #7
  unreachable

147:                                              ; No predecessors!
  br label %148

148:                                              ; preds = %147, %145
  %149 = load i64, ptr %19, align 8, !tbaa !45
  %150 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %151 = load i64, ptr %150, align 8, !tbaa !11
  %152 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 30
  %153 = load i64, ptr %152, align 8, !tbaa !46
  %154 = mul i64 2, %153
  %155 = sub i64 %151, %154
  %156 = icmp ule i64 %149, %155
  br i1 %156, label %157, label %159

157:                                              ; preds = %148
  store i64 0, ptr %22, align 8, !tbaa !45
  %158 = load i64, ptr %19, align 8, !tbaa !45
  store i64 %158, ptr %23, align 8, !tbaa !45
  br label %178

159:                                              ; preds = %148
  %160 = load i64, ptr %19, align 8, !tbaa !45
  %161 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %162 = load i64, ptr %161, align 8, !tbaa !11
  %163 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 30
  %164 = load i64, ptr %163, align 8, !tbaa !46
  %165 = mul i64 2, %164
  %166 = sub i64 %162, %165
  %167 = sub i64 %160, %166
  %168 = add i64 %167, 1
  %169 = udiv i64 %168, 2
  store i64 %169, ptr %22, align 8, !tbaa !45
  %170 = load i64, ptr %22, align 8, !tbaa !45
  %171 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 28
  %172 = load i64, ptr %171, align 8, !tbaa !11
  %173 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 30
  %174 = load i64, ptr %173, align 8, !tbaa !46
  %175 = mul i64 2, %174
  %176 = sub i64 %172, %175
  %177 = add i64 %170, %176
  store i64 %177, ptr %23, align 8, !tbaa !45
  br label %178

178:                                              ; preds = %159, %157
  %179 = load i64, ptr %22, align 8, !tbaa !45
  %180 = add i64 %179, 2
  %181 = load i64, ptr %23, align 8, !tbaa !45
  %182 = icmp ule i64 %180, %181
  br i1 %182, label %183, label %187

183:                                              ; preds = %178
  %184 = load i64, ptr %23, align 8, !tbaa !45
  %185 = load i64, ptr %19, align 8, !tbaa !45
  %186 = icmp ule i64 %184, %185
  br label %187

187:                                              ; preds = %183, %178
  %188 = phi i1 [ false, %178 ], [ %186, %183 ]
  br i1 %188, label %189, label %190

189:                                              ; preds = %187
  br label %192

190:                                              ; preds = %187
  call void @__assert_fail(ptr noundef @.str.40, ptr noundef @.str.9, i32 noundef 629, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #7
  unreachable

191:                                              ; No predecessors!
  br label %192

192:                                              ; preds = %191, %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %193 = load i64, ptr %23, align 8, !tbaa !45
  %194 = sub i64 %193, 1
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %194) #8
  %196 = load i64, ptr %195, align 8, !tbaa !45
  %197 = load i64, ptr %22, align 8, !tbaa !45
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %197) #8
  %199 = load i64, ptr %198, align 8, !tbaa !45
  %200 = sub i64 %196, %199
  store i64 %200, ptr %24, align 8, !tbaa !45
  %201 = load i64, ptr %24, align 8, !tbaa !45
  %202 = icmp eq i64 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %192
  store i64 1, ptr %24, align 8, !tbaa !45
  br label %204

204:                                              ; preds = %203, %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %205 = load i64, ptr %23, align 8, !tbaa !45
  %206 = sub i64 %205, 1
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %206) #8
  %208 = load i64, ptr %207, align 8, !tbaa !45
  %209 = load i64, ptr %22, align 8, !tbaa !45
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %209) #8
  %211 = load i64, ptr %210, align 8, !tbaa !45
  %212 = sub i64 %208, %211
  store i64 %212, ptr %25, align 8, !tbaa !45
  %213 = load i64, ptr %25, align 8, !tbaa !45
  %214 = icmp ugt i64 %213, 0
  br i1 %214, label %215, label %216

215:                                              ; preds = %204
  br label %218

216:                                              ; preds = %204
  call void @__assert_fail(ptr noundef @.str.41, ptr noundef @.str.9, i32 noundef 636, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #7
  unreachable

217:                                              ; No predecessors!
  br label %218

218:                                              ; preds = %217, %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %219 = load i64, ptr %25, align 8, !tbaa !45
  %220 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 27
  %221 = load i64, ptr %220, align 8, !tbaa !47
  %222 = call noundef i64 @_ZL6mul128mmPm(i64 noundef %219, i64 noundef %221, ptr noundef %27)
  store i64 %222, ptr %26, align 8, !tbaa !45
  %223 = load i64, ptr %27, align 8, !tbaa !45
  %224 = icmp ne i64 %223, 0
  br i1 %224, label %232, label %225

225:                                              ; preds = %218
  %226 = load i64, ptr %26, align 8, !tbaa !45
  %227 = load i64, ptr %24, align 8, !tbaa !45
  %228 = add i64 %226, %227
  %229 = sub i64 %228, 1
  %230 = load i64, ptr %26, align 8, !tbaa !45
  %231 = icmp ult i64 %229, %230
  br i1 %231, label %232, label %233

232:                                              ; preds = %225, %218
  store i64 0, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %281

233:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %234 = load i64, ptr %26, align 8, !tbaa !45
  %235 = load i64, ptr %24, align 8, !tbaa !45
  %236 = add i64 %234, %235
  %237 = sub i64 %236, 1
  %238 = load i64, ptr %24, align 8, !tbaa !45
  %239 = udiv i64 %237, %238
  store i64 %239, ptr %28, align 8, !tbaa !45
  %240 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %31)
  br i1 %240, label %245, label %241

241:                                              ; preds = %233
  %242 = load i64, ptr %28, align 8, !tbaa !45
  %243 = icmp ult i64 %242, 100000
  br i1 %243, label %244, label %245

244:                                              ; preds = %241
  store i64 100000, ptr %28, align 8, !tbaa !45
  br label %245

245:                                              ; preds = %244, %241, %233
  %246 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %31)
  br i1 %246, label %247, label %266

247:                                              ; preds = %245
  %248 = load i32, ptr %7, align 4, !tbaa !9
  %249 = icmp uge i32 %248, 17292
  br i1 %249, label %250, label %266

250:                                              ; preds = %247
  %251 = load i32, ptr %7, align 4, !tbaa !9
  %252 = icmp ule i32 %251, 17493
  br i1 %252, label %253, label %266

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 14, ptr %29, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 432, ptr %30) #8
  %254 = getelementptr inbounds %"class.DynexCN::Currency", ptr %31, i32 0, i32 56
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %30, ptr noundef nonnull align 8 dereferenceable(40) %254, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %255 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %30, ptr noundef nonnull align 1 dereferenceable(53) @.str.47)
          to label %256 unwind label %262

256:                                              ; preds = %253
  %257 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %255, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %258 unwind label %262

258:                                              ; preds = %256
  %259 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA15_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %257, ptr noundef nonnull align 1 dereferenceable(15) @.str.46)
          to label %260 unwind label %262

260:                                              ; preds = %258
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %30) #8
  call void @llvm.lifetime.end.p0(i64 432, ptr %30) #8
  %261 = load i64, ptr %29, align 8, !tbaa !45
  store i64 %261, ptr %5, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %280

262:                                              ; preds = %258, %256, %253
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %14, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %15, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %30) #8
  call void @llvm.lifetime.end.p0(i64 432, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %285

266:                                              ; preds = %250, %247, %245
  %267 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %31)
  br i1 %267, label %268, label %278

268:                                              ; preds = %266
  %269 = load i32, ptr %7, align 4, !tbaa !9
  %270 = icmp ult i32 %269, 17292
  br i1 %270, label %271, label %278

271:                                              ; preds = %268
  %272 = load i64, ptr %28, align 8, !tbaa !45
  %273 = udiv i64 %272, 2
  store i64 %273, ptr %28, align 8, !tbaa !45
  %274 = load i64, ptr %28, align 8, !tbaa !45
  %275 = icmp ult i64 %274, 14
  br i1 %275, label %276, label %277

276:                                              ; preds = %271
  store i64 14, ptr %28, align 8, !tbaa !45
  br label %277

277:                                              ; preds = %276, %271
  br label %278

278:                                              ; preds = %277, %268, %266
  %279 = load i64, ptr %28, align 8, !tbaa !45
  store i64 %279, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %280

280:                                              ; preds = %278, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %281

281:                                              ; preds = %280, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %282

282:                                              ; preds = %281, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %283

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

285:                                              ; preds = %262, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %286

286:                                              ; preds = %285
  %287 = load ptr, ptr %14, align 8
  %288 = load i32, ptr %15, 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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(53)) #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
@.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
@__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_ = external hidden unnamed_addr constant [121 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [53 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984), i8 noundef zeroext) 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 @_ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_(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 i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca %"class.Logging::LoggerMessage", align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.Logging::LoggerMessage", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.Logging::LoggerMessage", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 224
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = icmp ugt i64 %14, 1
  br i1 %15, label %17, label %16

16:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.9, i32 noundef 583, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #8
  unreachable

17:                                               ; preds = %4
  %18 = tail call noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984) %0, i8 noundef zeroext 4)
  %.not63 = icmp ugt i32 %18, %1
  br i1 %.not63, label %62, label %19

19:                                               ; preds = %17
  %20 = zext i32 %1 to i64
  %21 = tail call noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984) %0, i8 noundef zeroext 4)
  %22 = zext i32 %21 to i64
  %23 = add nuw nsw i64 %22, 200
  %.not64 = icmp ult i64 %23, %20
  br i1 %.not64, label %62, label %24

24:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %25 = tail call noundef i32 @_ZNK7DynexCN8Currency13upgradeHeightEh(ptr noundef nonnull align 8 dereferenceable(984) %0, i8 noundef zeroext 4)
  %reass.sub = sub i32 %25, %1
  %26 = add i32 %reass.sub, 200
  store i32 %26, ptr %5, align 4, !tbaa !43
  %27 = tail call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  br i1 %27, label %43, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store i64 17141714, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %7) #9
  %29 = 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) %29, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %30 = 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 %31 unwind label %41

31:                                               ; preds = %28
  %32 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %30, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %33 unwind label %41

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA15_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %32, ptr noundef nonnull align 1 dereferenceable(15) @.str.44)
          to label %35 unwind label %41

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEjEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %34, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %37 unwind label %41

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %36, ptr noundef nonnull align 1 dereferenceable(14) @.str.45)
          to label %39 unwind label %41

39:                                               ; preds = %37
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %7) #9
  %40 = load i64, ptr %6, align 8, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %.thread

41:                                               ; preds = %37, %35, %33, %31, %28
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %61

43:                                               ; preds = %24
  %44 = tail call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  br i1 %44, label %45, label %60

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store i64 14, ptr %8, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %9) #9
  %46 = 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) %46, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %47 = 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 %48 unwind label %58

48:                                               ; preds = %45
  %49 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEmEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %47, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %50 unwind label %58

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA15_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %49, ptr noundef nonnull align 1 dereferenceable(15) @.str.46)
          to label %52 unwind label %58

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEjEOT_S3_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %51, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %54 unwind label %58

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA14_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %53, ptr noundef nonnull align 1 dereferenceable(14) @.str.45)
          to label %56 unwind label %58

56:                                               ; preds = %54
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %9) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %9) #9
  %57 = load i64, ptr %8, align 8, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %.thread

58:                                               ; preds = %54, %52, %50, %48, %45
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %9) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %61

.thread:                                          ; preds = %56, %39
  %.048.ph = phi i64 [ %40, %39 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %144

60:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %62

61:                                               ; preds = %58, %41
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %145

62:                                               ; preds = %60, %19, %17
  %63 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %64 = load i64, ptr %13, align 8, !tbaa !5
  %65 = icmp ugt i64 %63, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %62
  tail call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %64)
  %67 = load i64, ptr %13, align 8, !tbaa !5
  tail call void @_ZNSt6vectorImSaImEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %67)
  br label %68

68:                                               ; preds = %66, %62
  %69 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %70 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %71 = icmp eq i64 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  tail call void @__assert_fail(ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.9, i32 noundef 611, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #8
  unreachable

73:                                               ; preds = %68
  %74 = load i64, ptr %13, align 8, !tbaa !5
  %.not66 = icmp ugt i64 %69, %74
  br i1 %.not66, label %75, label %76

75:                                               ; preds = %73
  tail call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.9, i32 noundef 612, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #8
  unreachable

76:                                               ; preds = %73
  %77 = icmp ult i64 %69, 2
  br i1 %77, label %144, label %78

78:                                               ; preds = %76
  %79 = tail call ptr @_ZNSt6vectorImSaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %80 = tail call ptr @_ZNSt6vectorImSaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  tail call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEEvT_S7_(ptr %79, ptr %80)
  %81 = getelementptr inbounds i8, ptr %0, i64 240
  %82 = load i64, ptr %81, align 8, !tbaa !45
  %83 = shl i64 %82, 1
  %84 = load i64, ptr %13, align 8, !tbaa !5
  %85 = add i64 %84, -2
  %.not67 = icmp ugt i64 %83, %85
  br i1 %.not67, label %86, label %87

86:                                               ; preds = %78
  tail call void @__assert_fail(ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.9, i32 noundef 620, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #8
  unreachable

87:                                               ; preds = %78
  %88 = sub i64 %84, %83
  %.not68 = icmp ugt i64 %69, %88
  %89 = add i64 %69, 1
  %90 = sub i64 %89, %88
  %91 = lshr i64 %90, 1
  %92 = add i64 %91, %88
  %.052 = select i1 %.not68, i64 %91, i64 0
  %.051 = select i1 %.not68, i64 %92, i64 %69
  %93 = add nuw i64 %.052, 2
  %94 = icmp ule i64 %93, %.051
  %95 = icmp ule i64 %.051, %69
  %96 = and i1 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %87
  tail call void @__assert_fail(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.9, i32 noundef 629, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #8
  unreachable

98:                                               ; preds = %87
  %99 = add i64 %.051, -1
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %99) #9
  %101 = load i64, ptr %100, align 8, !tbaa !44
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.052) #9
  %103 = load i64, ptr %102, align 8, !tbaa !44
  %104 = sub i64 %101, %103
  %105 = icmp eq i64 %101, %103
  %spec.store.select = select i1 %105, i64 1, i64 %104
  %106 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %99) #9
  %107 = load i64, ptr %106, align 8, !tbaa !44
  %108 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.052) #9
  %109 = load i64, ptr %108, align 8, !tbaa !44
  %.not69 = icmp eq i64 %107, %109
  br i1 %.not69, label %110, label %111

110:                                              ; preds = %98
  tail call void @__assert_fail(ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.9, i32 noundef 636, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN8Currency16nextDifficultyV4EjSt6vectorImSaImEES3_) #8
  unreachable

111:                                              ; preds = %98
  %112 = sub i64 %107, %109
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %113 = getelementptr inbounds i8, ptr %0, i64 216
  %114 = load i64, ptr %113, align 8, !tbaa !46
  %115 = call noundef i64 @_ZL6mul128mmPm(i64 noundef %112, i64 noundef %114, ptr noundef nonnull %10)
  %116 = load i64, ptr %10, align 8, !tbaa !44
  %.not70 = icmp eq i64 %116, 0
  br i1 %.not70, label %117, label %143

117:                                              ; preds = %111
  %118 = add i64 %spec.store.select, -1
  %119 = add i64 %118, %115
  %120 = icmp ult i64 %119, %115
  br i1 %120, label %143, label %121

121:                                              ; preds = %117
  %122 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %123 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %124 = add i32 %1, -17292
  %125 = icmp ult i32 %124, 202
  %or.cond5 = and i1 %125, %123
  br i1 %or.cond5, label %126, label %137

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  store i64 14, ptr %11, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %12) #9
  %127 = 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 %12, ptr noundef nonnull align 8 dereferenceable(40) %127, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging13BRIGHT_YELLOWB5cxx11E)
  %128 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA53_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %12, ptr noundef nonnull align 1 dereferenceable(53) @.str.47)
          to label %129 unwind label %135

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

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA15_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %130, ptr noundef nonnull align 1 dereferenceable(15) @.str.46)
          to label %133 unwind label %135

133:                                              ; preds = %131
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %12) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %12) #9
  %134 = load i64, ptr %11, align 8, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %143

135:                                              ; preds = %131, %129, %126
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %12) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %145

137:                                              ; preds = %121
  %138 = udiv i64 %119, %spec.store.select
  %139 = icmp ugt i64 %138, 99999
  %or.cond.not = select i1 %122, i1 true, i1 %139
  %spec.store.select9 = select i1 %or.cond.not, i64 %138, i64 100000
  %140 = call noundef zeroext i1 @_ZNK7DynexCN8Currency9isTestnetEv(ptr noundef nonnull align 8 dereferenceable(984) %0)
  %141 = icmp ult i32 %1, 17292
  %or.cond7 = and i1 %141, %140
  %142 = lshr i64 %spec.store.select9, 1
  %spec.store.select8 = call i64 @llvm.umax.i64(i64 %142, i64 14)
  %.0 = select i1 %or.cond7, i64 %spec.store.select8, i64 %spec.store.select9
  br label %143

143:                                              ; preds = %133, %137, %111, %117
  %.2 = phi i64 [ 0, %117 ], [ 0, %111 ], [ %134, %133 ], [ %.0, %137 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %144

144:                                              ; preds = %.thread, %143, %76
  %.4 = phi i64 [ %.2, %143 ], [ 1, %76 ], [ %.048.ph, %.thread ]
  ret i64 %.4

145:                                              ; preds = %135, %61
  %.pn72 = phi { ptr, i32 } [ %136, %135 ], [ %.pn, %61 ]
  resume { ptr, i32 } %.pn72
}

; 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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #7

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!10, !10, i64 0}
!44 = !{!7, !7, i64 0}
!45 = !{!6, !7, i64 240}
!46 = !{!6, !7, i64 216}


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