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

; 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.1" = type { [8 x i32] }
%"struct.std::array.0" = type { [16 x i32] }
%struct.SHA256_CTX = type { %"struct.std::array.0", %"struct.std::array.1", i64 }

@_ZL25sha256_initial_hash_value = external hidden constant %"struct.std::array.1", align 4

; 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 @_Z11sha256_InitP10SHA256_CTX(ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19hmac_sha256_preparePKhmPjS1_(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %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.0", align 4
  %10 = alloca %struct.SHA256_CTX, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  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 64, ptr %9) #8
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 64, i1 false)
  %15 = load i64, ptr %6, align 8, !tbaa !9
  %16 = icmp ugt i64 %15, 64
  br i1 %16, label %17, label %21

17:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #8
  call void @_ZN10SHA256_CTXC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %10) #8
  call void @_Z11sha256_InitP10SHA256_CTX(ptr noundef %10)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load i64, ptr %6, align 8, !tbaa !9
  call void @_Z13sha256_UpdateP10SHA256_CTXPKhm(ptr noundef %10, ptr noundef %18, i64 noundef %19)
  %20 = call noundef ptr @_ZNSt5arrayIjLm16EE4dataEv(ptr noundef nonnull align 4 dereferenceable(64) %9) #9
  call void @_Z12sha256_FinalP10SHA256_CTXPh(ptr noundef %10, ptr noundef %20)
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #8
  br label %25

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

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

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

29:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %42

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %9, i64 noundef %31) #8
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = call noundef i32 @_ZL9Reverse32j(i32 noundef %33)
  store i32 %34, ptr %12, align 4, !tbaa !11
  %35 = load i32, ptr %12, align 4, !tbaa !11
  %36 = xor i32 %35, 1549556828
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %9, i64 noundef %37) #8
  store i32 %36, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %39

39:                                               ; preds = %30
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = add i64 %40, 1
  store i64 %41, ptr %11, align 8, !tbaa !9
  br label %26, !llvm.loop !13

42:                                               ; preds = %29
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z16sha256_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj(ptr noundef nonnull align 4 dereferenceable(32) @_ZL25sha256_initial_hash_value, ptr noundef nonnull align 4 dereferenceable(64) %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, %42
  %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 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %9, i64 noundef %49) #8
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = xor i32 %51, 1549556828
  %53 = xor i32 %52, 909522486
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EEixEm(ptr noundef nonnull align 4 dereferenceable(64) %9, i64 noundef %54) #8
  store i32 %53, ptr %55, align 4, !tbaa !11
  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 !15

59:                                               ; preds = %47
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_Z16sha256_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj(ptr noundef nonnull align 4 dereferenceable(32) @_ZL25sha256_initial_hash_value, ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef %60)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @_ZNSt5arrayIjLm16EE4fillERKj(ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EEixEm(ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) #7 align 2

declare void @_Z16sha256_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5arrayIjLm16EE4fillERKj(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4)) #4 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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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.1" = type { [8 x i32] }
%"struct.std::array.0" = type { [16 x i32] }
%struct.SHA256_CTX = type { %"struct.std::array.0", %"struct.std::array.1", i64 }

@_ZL25sha256_initial_hash_value = external hidden constant %"struct.std::array.1", align 4

; 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 @_Z11sha256_InitP10SHA256_CTX(ptr noundef) local_unnamed_addr #3

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

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

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

9:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %6) #8
  call void @_ZN10SHA256_CTXC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #8
  call void @_Z11sha256_InitP10SHA256_CTX(ptr noundef nonnull %6)
  call void @_Z13sha256_UpdateP10SHA256_CTXPKhm(ptr noundef nonnull %6, ptr noundef %0, i64 noundef %1)
  %10 = call noundef ptr @_ZNSt5arrayIjLm16EE4dataEv(ptr noundef nonnull align 4 dereferenceable(64) %5) #9
  call void @_Z12sha256_FinalP10SHA256_CTXPh(ptr noundef nonnull %6, ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #8
  br label %13

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm16EEixEm(ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) local_unnamed_addr #7 align 2

declare void @_Z16sha256_TransformRKSt5arrayIjLm8EERKS_IjLm16EEPj(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5arrayIjLm16EE4fillERKj(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 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 = !{!"int", !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