; LLVM IR from Waqar144/simplecrypto-cxx :: simplecrypto-cxx/hmac.ll (Z19hmac_sha512_preparePKhmRSt5arrayImLm8EES3_)

; 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.std::array.4" = type { [8 x i64] }
%"struct.std::array.6" = type { [16 x i64] }
%struct.SHA512_CTX = type { %"struct.std::array.4", %"struct.std::array.5", %"struct.std::array.6" }
%"struct.std::array.5" = type { [2 x i64] }

@_ZL25sha512_initial_hash_value = external hidden constant %"struct.std::array.4", align 8

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_Z11sha512_InitP10SHA512_CTX(ptr noundef) #3

declare void @_Z13sha512_UpdateP10SHA512_CTXPKhm(ptr noundef, ptr noundef, i64 noundef) #3

declare void @_Z12sha512_FinalP10SHA512_CTXPh(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19hmac_sha512_preparePKhmRSt5arrayImLm8EES3_(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(64) %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.std::array.6", align 8
  %10 = alloca %struct.SHA512_CTX, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %9) #8
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 208, ptr %10) #8
  call void @_ZN10SHA512_CTXC2Ev(ptr noundef nonnull align 8 dereferenceable(208) %10) #8
  %14 = load i64, ptr %6, align 8, !tbaa !9
  %15 = icmp ugt i64 %14, 128
  br i1 %15, label %16, label %20

16:                                               ; preds = %4
  call void @_Z11sha512_InitP10SHA512_CTX(ptr noundef %10)
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = load i64, ptr %6, align 8, !tbaa !9
  call void @_Z13sha512_UpdateP10SHA512_CTXPKhm(ptr noundef %10, ptr noundef %17, i64 noundef %18)
  %19 = call noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %9) #9
  call void @_Z12sha512_FinalP10SHA512_CTXPh(ptr noundef %10, ptr noundef %19)
  br label %24

20:                                               ; preds = %4
  %21 = call noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %9) #9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load i64, ptr %6, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 1 %22, i64 %23, i1 false)
  br label %24

24:                                               ; preds = %20, %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %38, %24
  %26 = load i64, ptr %11, align 8, !tbaa !9
  %27 = icmp ult i64 %26, 16
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %41

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %9, i64 noundef %30) #8
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = call noundef i64 @_ZL9reverse64m(i64 noundef %32)
  store i64 %33, ptr %12, align 8, !tbaa !9
  %34 = load i64, ptr %12, align 8, !tbaa !9
  %35 = xor i64 %34, 6655295901103053916
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %9, i64 noundef %36) #8
  store i64 %35, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %38

38:                                               ; preds = %29
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = add i64 %39, 1
  store i64 %40, ptr %11, align 8, !tbaa !9
  br label %25, !llvm.loop !11

41:                                               ; preds = %28
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNSt5arrayImLm8EE4dataEv(ptr noundef nonnull align 8 dereferenceable(64) %42) #9
  call void @_Z16sha512_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64) @_ZL25sha512_initial_hash_value, ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %56, %41
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = icmp ult i64 %45, 16
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %59

48:                                               ; preds = %44
  %49 = load i64, ptr %13, align 8, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %9, i64 noundef %49) #8
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = xor i64 %51, 6655295901103053916
  %53 = xor i64 %52, 3906369333256140342
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %9, i64 noundef %54) #8
  store i64 %53, ptr %55, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %48
  %57 = load i64, ptr %13, align 8, !tbaa !9
  %58 = add i64 %57, 1
  store i64 %58, ptr %13, align 8, !tbaa !9
  br label %44, !llvm.loop !13

59:                                               ; preds = %47
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNSt5arrayImLm8EE4dataEv(ptr noundef nonnull align 8 dereferenceable(64) %60) #9
  call void @_Z16sha512_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64) @_ZL25sha512_initial_hash_value, ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef %61)
  %62 = call noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %9) #9
  call void @llvm.memset.p0.i64(ptr align 8 %62, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.end.p0(i64 208, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #8
  ret void
}

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL9reverse64m(i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) #7 align 2

declare void @_Z16sha512_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #3

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayImLm8EE4dataEv(ptr noundef nonnull align 8 dereferenceable(64)) #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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"

%"struct.std::array.4" = type { [8 x i64] }
%"struct.std::array.6" = type { [16 x i64] }
%struct.SHA512_CTX = type { %"struct.std::array.4", %"struct.std::array.5", %"struct.std::array.6" }
%"struct.std::array.5" = type { [2 x i64] }

@_ZL25sha512_initial_hash_value = external hidden constant %"struct.std::array.4", align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_Z11sha512_InitP10SHA512_CTX(ptr noundef) local_unnamed_addr #3

declare void @_Z13sha512_UpdateP10SHA512_CTXPKhm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @_Z12sha512_FinalP10SHA512_CTXPh(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19hmac_sha512_preparePKhmRSt5arrayImLm8EES3_(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(64) %3) local_unnamed_addr #4 {
  %5 = alloca %"struct.std::array.6", align 8
  %6 = alloca %struct.SHA512_CTX, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %5, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %6) #8
  call void @_ZN10SHA512_CTXC2Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #8
  %7 = icmp ugt i64 %1, 128
  br i1 %7, label %8, label %10

8:                                                ; preds = %4
  call void @_Z11sha512_InitP10SHA512_CTX(ptr noundef nonnull %6)
  call void @_Z13sha512_UpdateP10SHA512_CTXPKhm(ptr noundef nonnull %6, ptr noundef %0, i64 noundef %1)
  %9 = call noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %5) #9
  call void @_Z12sha512_FinalP10SHA512_CTXPh(ptr noundef nonnull %6, ptr noundef %9)
  br label %12

10:                                               ; preds = %4
  %11 = call noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 1 %0, i64 %1, i1 false)
  br label %12

12:                                               ; preds = %10, %8
  %.pre-phi = phi ptr [ %11, %10 ], [ %9, %8 ]
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 0) #8
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = call noundef i64 @_ZL9reverse64m(i64 noundef %14)
  %16 = xor i64 %15, 6655295901103053916
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 0) #8
  store i64 %16, ptr %17, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 1) #8
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = call noundef i64 @_ZL9reverse64m(i64 noundef %19)
  %21 = xor i64 %20, 6655295901103053916
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 1) #8
  store i64 %21, ptr %22, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 2) #8
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = call noundef i64 @_ZL9reverse64m(i64 noundef %24)
  %26 = xor i64 %25, 6655295901103053916
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 2) #8
  store i64 %26, ptr %27, align 8, !tbaa !5
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 3) #8
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = call noundef i64 @_ZL9reverse64m(i64 noundef %29)
  %31 = xor i64 %30, 6655295901103053916
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 3) #8
  store i64 %31, ptr %32, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 4) #8
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = call noundef i64 @_ZL9reverse64m(i64 noundef %34)
  %36 = xor i64 %35, 6655295901103053916
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 4) #8
  store i64 %36, ptr %37, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 5) #8
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = call noundef i64 @_ZL9reverse64m(i64 noundef %39)
  %41 = xor i64 %40, 6655295901103053916
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 5) #8
  store i64 %41, ptr %42, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 6) #8
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = call noundef i64 @_ZL9reverse64m(i64 noundef %44)
  %46 = xor i64 %45, 6655295901103053916
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 6) #8
  store i64 %46, ptr %47, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 7) #8
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = call noundef i64 @_ZL9reverse64m(i64 noundef %49)
  %51 = xor i64 %50, 6655295901103053916
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 7) #8
  store i64 %51, ptr %52, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 8) #8
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = call noundef i64 @_ZL9reverse64m(i64 noundef %54)
  %56 = xor i64 %55, 6655295901103053916
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 8) #8
  store i64 %56, ptr %57, align 8, !tbaa !5
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 9) #8
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = call noundef i64 @_ZL9reverse64m(i64 noundef %59)
  %61 = xor i64 %60, 6655295901103053916
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 9) #8
  store i64 %61, ptr %62, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 10) #8
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = call noundef i64 @_ZL9reverse64m(i64 noundef %64)
  %66 = xor i64 %65, 6655295901103053916
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 10) #8
  store i64 %66, ptr %67, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 11) #8
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = call noundef i64 @_ZL9reverse64m(i64 noundef %69)
  %71 = xor i64 %70, 6655295901103053916
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 11) #8
  store i64 %71, ptr %72, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 12) #8
  %74 = load i64, ptr %73, align 8, !tbaa !5
  %75 = call noundef i64 @_ZL9reverse64m(i64 noundef %74)
  %76 = xor i64 %75, 6655295901103053916
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 12) #8
  store i64 %76, ptr %77, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 13) #8
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = call noundef i64 @_ZL9reverse64m(i64 noundef %79)
  %81 = xor i64 %80, 6655295901103053916
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 13) #8
  store i64 %81, ptr %82, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 14) #8
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = call noundef i64 @_ZL9reverse64m(i64 noundef %84)
  %86 = xor i64 %85, 6655295901103053916
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 14) #8
  store i64 %86, ptr %87, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 15) #8
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = call noundef i64 @_ZL9reverse64m(i64 noundef %89)
  %91 = xor i64 %90, 6655295901103053916
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 15) #8
  store i64 %91, ptr %92, align 8, !tbaa !5
  %93 = call noundef ptr @_ZNSt5arrayImLm8EE4dataEv(ptr noundef nonnull align 8 dereferenceable(64) %2) #9
  call void @_Z16sha512_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64) @_ZL25sha512_initial_hash_value, ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef %93)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 0) #8
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = xor i64 %95, 7668058320836127338
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 0) #8
  store i64 %96, ptr %97, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 1) #8
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = xor i64 %99, 7668058320836127338
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 1) #8
  store i64 %100, ptr %101, align 8, !tbaa !5
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 2) #8
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = xor i64 %103, 7668058320836127338
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 2) #8
  store i64 %104, ptr %105, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 3) #8
  %107 = load i64, ptr %106, align 8, !tbaa !5
  %108 = xor i64 %107, 7668058320836127338
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 3) #8
  store i64 %108, ptr %109, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 4) #8
  %111 = load i64, ptr %110, align 8, !tbaa !5
  %112 = xor i64 %111, 7668058320836127338
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 4) #8
  store i64 %112, ptr %113, align 8, !tbaa !5
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 5) #8
  %115 = load i64, ptr %114, align 8, !tbaa !5
  %116 = xor i64 %115, 7668058320836127338
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 5) #8
  store i64 %116, ptr %117, align 8, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 6) #8
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = xor i64 %119, 7668058320836127338
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 6) #8
  store i64 %120, ptr %121, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 7) #8
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = xor i64 %123, 7668058320836127338
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 7) #8
  store i64 %124, ptr %125, align 8, !tbaa !5
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 8) #8
  %127 = load i64, ptr %126, align 8, !tbaa !5
  %128 = xor i64 %127, 7668058320836127338
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 8) #8
  store i64 %128, ptr %129, align 8, !tbaa !5
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 9) #8
  %131 = load i64, ptr %130, align 8, !tbaa !5
  %132 = xor i64 %131, 7668058320836127338
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 9) #8
  store i64 %132, ptr %133, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 10) #8
  %135 = load i64, ptr %134, align 8, !tbaa !5
  %136 = xor i64 %135, 7668058320836127338
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 10) #8
  store i64 %136, ptr %137, align 8, !tbaa !5
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 11) #8
  %139 = load i64, ptr %138, align 8, !tbaa !5
  %140 = xor i64 %139, 7668058320836127338
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 11) #8
  store i64 %140, ptr %141, align 8, !tbaa !5
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 12) #8
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = xor i64 %143, 7668058320836127338
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 12) #8
  store i64 %144, ptr %145, align 8, !tbaa !5
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 13) #8
  %147 = load i64, ptr %146, align 8, !tbaa !5
  %148 = xor i64 %147, 7668058320836127338
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 13) #8
  store i64 %148, ptr %149, align 8, !tbaa !5
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 14) #8
  %151 = load i64, ptr %150, align 8, !tbaa !5
  %152 = xor i64 %151, 7668058320836127338
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 14) #8
  store i64 %152, ptr %153, align 8, !tbaa !5
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 15) #8
  %155 = load i64, ptr %154, align 8, !tbaa !5
  %156 = xor i64 %155, 7668058320836127338
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128) %5, i64 noundef 15) #8
  store i64 %156, ptr %157, align 8, !tbaa !5
  %158 = call noundef ptr @_ZNSt5arrayImLm8EE4dataEv(ptr noundef nonnull align 8 dereferenceable(64) %3) #9
  call void @_Z16sha512_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64) @_ZL25sha512_initial_hash_value, ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef %158)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %.pre-phi, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #8
  ret void
}

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayImLm16EE4dataEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL9reverse64m(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayImLm16EEixEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) local_unnamed_addr #7 align 2

declare void @_Z16sha512_TransformRKSt5arrayImLm8EERKS_ImLm16EEPm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayImLm8EE4dataEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass