; LLVM IR from dynexcoin/Dynex :: src/Transfers (SynchronizationState)

; 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"

%"struct.DynexCN::SynchronizationState::CheckResult" = type { i8, i32, i8, i32 }
%"struct.DynexCN::BlockchainInterval" = type { i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"class.DynexCN::SynchronizationState" = type { %"class.DynexCN::IStreamSerializable", %"class.std::vector" }
%"class.DynexCN::IStreamSerializable" = type { ptr }

@.str = external hidden unnamed_addr constant [44 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7DynexCN20SynchronizationState13checkIntervalERKNS_18BlockchainIntervalE = external hidden unnamed_addr constant [113 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i64 } @_ZNK7DynexCN20SynchronizationState13checkIntervalERKNS_18BlockchainIntervalE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #3 align 2 {
  %3 = alloca %"struct.DynexCN::SynchronizationState::CheckResult", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.DynexCN::BlockchainInterval", ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds %"class.DynexCN::SynchronizationState", ptr %11, i32 0, i32 1
  %17 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %18 = icmp ule i64 %15, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  br label %22

20:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.6, i32 noundef 81, ptr noundef @__PRETTY_FUNCTION__._ZNK7DynexCN20SynchronizationState13checkIntervalERKNS_18BlockchainIntervalE) #7
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  call void @llvm.memset.p0.i64(ptr align 4 %3, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.DynexCN::BlockchainInterval", ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.DynexCN::BlockchainInterval", ptr %26, i32 0, i32 1
  %28 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %29 = trunc i64 %28 to i32
  %30 = add i32 %25, %29
  store i32 %30, ptr %6, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %31 = getelementptr inbounds %"class.DynexCN::SynchronizationState", ptr %11, i32 0, i32 1
  %32 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %8, align 4, !tbaa !16
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %35 = load i32, ptr %34, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  store i32 %35, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.DynexCN::BlockchainInterval", ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !9
  store i32 %38, ptr %9, align 4, !tbaa !16
  br label %39

39:                                               ; preds = %64, %22
  %40 = load i32, ptr %9, align 4, !tbaa !16
  %41 = load i32, ptr %7, align 4, !tbaa !16
  %42 = icmp ult i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 2, ptr %10, align 4
  br label %67

44:                                               ; preds = %39
  %45 = getelementptr inbounds %"class.DynexCN::SynchronizationState", ptr %11, i32 0, i32 1
  %46 = load i32, ptr %9, align 4, !tbaa !16
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47) #6
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.DynexCN::BlockchainInterval", ptr %49, i32 0, i32 1
  %51 = load i32, ptr %9, align 4, !tbaa !16
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.DynexCN::BlockchainInterval", ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !9
  %55 = sub i32 %51, %54
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %56) #6
  %58 = call noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32) %48, ptr noundef nonnull align 1 dereferenceable(32) %57)
  br i1 %58, label %59, label %63

59:                                               ; preds = %44
  %60 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 0
  store i8 1, ptr %60, align 4, !tbaa !17
  %61 = load i32, ptr %9, align 4, !tbaa !16
  %62 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 1
  store i32 %61, ptr %62, align 4, !tbaa !20
  store i32 2, ptr %10, align 4
  br label %67

63:                                               ; preds = %44
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %9, align 4, !tbaa !16
  %66 = add i32 %65, 1
  store i32 %66, ptr %9, align 4, !tbaa !16
  br label %39, !llvm.loop !21

67:                                               ; preds = %59, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %68

68:                                               ; preds = %67
  %69 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 0
  %70 = load i8, ptr %69, align 4, !tbaa !17, !range !23, !noundef !24
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %77

72:                                               ; preds = %68
  %73 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 2
  store i8 1, ptr %73, align 4, !tbaa !25
  %74 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 3
  store i32 %75, ptr %76, align 4, !tbaa !26
  store i32 1, ptr %10, align 4
  br label %90

77:                                               ; preds = %68
  %78 = load i32, ptr %6, align 4, !tbaa !16
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds %"class.DynexCN::SynchronizationState", ptr %11, i32 0, i32 1
  %81 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %82 = icmp ugt i64 %79, %81
  br i1 %82, label %83, label %89

83:                                               ; preds = %77
  %84 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 2
  store i8 1, ptr %84, align 4, !tbaa !25
  %85 = getelementptr inbounds %"class.DynexCN::SynchronizationState", ptr %11, i32 0, i32 1
  %86 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #6
  %87 = trunc i64 %86 to i32
  %88 = getelementptr inbounds %"struct.DynexCN::SynchronizationState::CheckResult", ptr %3, i32 0, i32 3
  store i32 %87, ptr %88, align 4, !tbaa !26
  br label %89

89:                                               ; preds = %83, %77
  store i32 1, ptr %10, align 4
  br label %90

90:                                               ; preds = %89, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %91 = load { i64, i64 }, ptr %3, align 4
  ret { i64, i64 } %91
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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, !11, i64 0}
!10 = !{!"_ZTSN7DynexCN18BlockchainIntervalE", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN7DynexCN20SynchronizationState11CheckResultE", !19, i64 0, !11, i64 4, !19, i64 8, !11, i64 12}
!19 = !{!"bool", !7, i64 0}
!20 = !{!18, !11, i64 4}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!18, !19, i64 8}
!26 = !{!18, !11, i64 12}


; 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"

@.str = external hidden unnamed_addr constant [44 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7DynexCN20SynchronizationState13checkIntervalERKNS_18BlockchainIntervalE = external hidden unnamed_addr constant [113 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local { i64, i64 } @_ZNK7DynexCN20SynchronizationState13checkIntervalERKNS_18BlockchainIntervalE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = load i32, ptr %1, align 8, !tbaa !5
  %6 = zext i32 %5 to i64
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = tail call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %.not = icmp ult i64 %8, %6
  br i1 %.not, label %9, label %10

9:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.6, i32 noundef 81, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7DynexCN20SynchronizationState13checkIntervalERKNS_18BlockchainIntervalE) #5
  unreachable

10:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %11 = load i32, ptr %1, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = tail call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  %14 = trunc i64 %13 to i32
  %15 = add i32 %11, %14
  store i32 %15, ptr %3, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %16 = tail call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %17 = trunc i64 %16 to i32
  store i32 %17, ptr %4, align 4, !tbaa !15
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %19 = load i32, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  %20 = load i32, ptr %1, align 8, !tbaa !5
  %21 = icmp ult i32 %20, %19
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %10
  %22 = zext i32 %20 to i64
  %wide.trip.count = zext i32 %19 to i64
  br label %.lr.ph

23:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

.lr.ph:                                           ; preds = %.lr.ph.preheader, %23
  %indvars.iv = phi i64 [ %22, %.lr.ph.preheader ], [ %indvars.iv.next, %23 ]
  %24 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #4
  %25 = load i32, ptr %1, align 8, !tbaa !5
  %26 = trunc nuw i64 %indvars.iv to i32
  %27 = sub i32 %26, %25
  %28 = zext i32 %27 to i64
  %29 = call noundef nonnull align 1 dereferenceable(32) ptr @_ZNKSt6vectorIN6Crypto4HashESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %28) #4
  %30 = call noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32) %24, ptr noundef nonnull align 1 dereferenceable(32) %29)
  br i1 %30, label %31, label %23

31:                                               ; preds = %.lr.ph
  %32 = shl nuw i64 %indvars.iv, 32
  %.sroa.6.12.insert.insert = or disjoint i64 %32, 1
  br label %39

._crit_edge:                                      ; preds = %23, %10
  %33 = load i32, ptr %3, align 4, !tbaa !15
  %34 = zext i32 %33 to i64
  %35 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %36 = icmp ult i64 %35, %34
  br i1 %36, label %37, label %39

37:                                               ; preds = %._crit_edge
  %38 = call noundef i64 @_ZNKSt6vectorIN6Crypto4HashESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %.sroa.6.12.insert.ext17 = shl i64 %38, 32
  %.sroa.6.12.insert.insert20 = or disjoint i64 %.sroa.6.12.insert.ext17, 1
  br label %39

39:                                               ; preds = %._crit_edge, %37, %31
  %.sroa.0.sroa.0.028 = phi i64 [ 1, %31 ], [ 0, %37 ], [ 0, %._crit_edge ]
  %.sroa.0.sroa.421.026 = phi i64 [ %32, %31 ], [ 0, %37 ], [ 0, %._crit_edge ]
  %.sroa.6.1 = phi i64 [ %.sroa.6.12.insert.insert, %31 ], [ %.sroa.6.12.insert.insert20, %37 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %.sroa.0.sroa.0.0.insert.insert = or disjoint i64 %.sroa.0.sroa.421.026, %.sroa.0.sroa.0.028
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.sroa.0.sroa.0.0.insert.insert, 0
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.sroa.6.1, 1
  ret { i64, i64 } %.fca.1.insert
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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 0}
!6 = !{!"_ZTSN7DynexCN18BlockchainIntervalE", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN6Crypto4HashESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN6Crypto4HashESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN6Crypto4HashESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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