; LLVM IR from TheAlgorithms/C-Plus-Plus :: hashing/sha256.ll (ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE)

; 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" = type { [64 x i32] }
%"class.hashing::sha256::Hash" = type { %"struct.std::array.0" }
%"struct.std::array.0" = type { [8 x i32] }

@__const._ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE.round_constants = external hidden unnamed_addr constant %"struct.std::array", align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef, i64 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(256) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::array", align 4
  %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
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const._ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE.round_constants, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %22 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %22, i64 noundef 0) #3
  %24 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %24, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %25 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %25, i64 noundef 1) #3
  %27 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %27, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %28 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %28, i64 noundef 2) #3
  %30 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %30, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %31 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %31, i64 noundef 3) #3
  %33 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %33, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %34 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %34, i64 noundef 4) #3
  %36 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %36, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %37 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %37, i64 noundef 5) #3
  %39 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %39, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %40 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %40, i64 noundef 6) #3
  %42 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %42, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %43 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %43, i64 noundef 7) #3
  %45 = load i32, ptr %44, align 4, !tbaa !9
  store i32 %45, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %46

46:                                               ; preds = %115, %2
  %47 = load i64, ptr %14, align 8, !tbaa !11
  %48 = icmp ult i64 %47, 64
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %118

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %51, i64 noundef 6)
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %53, i64 noundef 11)
  %55 = xor i32 %52, %54
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %56, i64 noundef 25)
  %58 = xor i32 %55, %57
  store i32 %58, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = and i32 %59, %60
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = xor i32 %62, -1
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = and i32 %63, %64
  %66 = xor i32 %61, %65
  store i32 %66, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = add i32 %67, %68
  %70 = load i32, ptr %16, align 4, !tbaa !9
  %71 = add i32 %69, %70
  %72 = load i64, ptr %14, align 8, !tbaa !11
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EEixEm(ptr noundef nonnull align 4 dereferenceable(256) %5, i64 noundef %72) #3
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = add i32 %71, %74
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load i64, ptr %14, align 8, !tbaa !11
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EEixEm(ptr noundef nonnull align 4 dereferenceable(256) %76, i64 noundef %77) #3
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = add i32 %75, %79
  store i32 %80, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %81, i64 noundef 2)
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %83, i64 noundef 13)
  %85 = xor i32 %82, %84
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %86, i64 noundef 22)
  %88 = xor i32 %85, %87
  store i32 %88, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = and i32 %89, %90
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = and i32 %92, %93
  %95 = xor i32 %91, %94
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = and i32 %96, %97
  %99 = xor i32 %95, %98
  store i32 %99, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = load i32, ptr %19, align 4, !tbaa !9
  %102 = add i32 %100, %101
  store i32 %102, ptr %20, align 4, !tbaa !9
  %103 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %103, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %104, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = add i32 %106, %107
  store i32 %108, ptr %10, align 4, !tbaa !9
  %109 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %109, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %110, ptr %8, align 4, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %111, ptr %7, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = load i32, ptr %20, align 4, !tbaa !9
  %114 = add i32 %112, %113
  store i32 %114, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %115

115:                                              ; preds = %50
  %116 = load i64, ptr %14, align 8, !tbaa !11
  %117 = add i64 %116, 1
  store i64 %117, ptr %14, align 8, !tbaa !11
  br label %46, !llvm.loop !13

118:                                              ; preds = %49
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %120, i64 noundef 0) #3
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = add i32 %122, %119
  store i32 %123, ptr %121, align 4, !tbaa !9
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %125, i64 noundef 1) #3
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = add i32 %127, %124
  store i32 %128, ptr %126, align 4, !tbaa !9
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %130, i64 noundef 2) #3
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = add i32 %132, %129
  store i32 %133, ptr %131, align 4, !tbaa !9
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %135, i64 noundef 3) #3
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = add i32 %137, %134
  store i32 %138, ptr %136, align 4, !tbaa !9
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %140, i64 noundef 4) #3
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = add i32 %142, %139
  store i32 %143, ptr %141, align 4, !tbaa !9
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %145, i64 noundef 5) #3
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = add i32 %147, %144
  store i32 %148, ptr %146, align 4, !tbaa !9
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %150, i64 noundef 6) #3
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = add i32 %152, %149
  store i32 %153, ptr %151, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = getelementptr inbounds %"class.hashing::sha256::Hash", ptr %21, i32 0, i32 0
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %155, i64 noundef 7) #3
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = add i32 %157, %154
  store i32 %158, ptr %156, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #3
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EEixEm(ptr noundef nonnull align 4 dereferenceable(256), i64 noundef) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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" = type { [64 x i32] }

@__const._ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE.round_constants = external hidden unnamed_addr constant %"struct.std::array", align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(256) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %"struct.std::array", align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(256) %3, ptr noundef nonnull align 4 dereferenceable(256) @__const._ZN7hashing6sha2564Hash6updateERKSt5arrayIjLm64EE.round_constants, i64 256, i1 false)
  %4 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 0) #3
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 1) #3
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 2) #3
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 3) #3
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 4) #3
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 5) #3
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 6) #3
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 7) #3
  %19 = load i32, ptr %18, align 4, !tbaa !5
  br label %45

20:                                               ; preds = %45
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 0) #3
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = add i32 %22, %74
  store i32 %23, ptr %21, align 4, !tbaa !5
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 1) #3
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = add i32 %25, %.060
  store i32 %26, ptr %24, align 4, !tbaa !5
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 2) #3
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = add i32 %28, %.04459
  store i32 %29, ptr %27, align 4, !tbaa !5
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 3) #3
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add i32 %31, %.04558
  store i32 %32, ptr %30, align 4, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 4) #3
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add i32 %34, %72
  store i32 %35, ptr %33, align 4, !tbaa !5
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 5) #3
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add i32 %37, %.04756
  store i32 %38, ptr %36, align 4, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 6) #3
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = add i32 %40, %.04855
  store i32 %41, ptr %39, align 4, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32) %0, i64 noundef 7) #3
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add i32 %43, %.05152
  store i32 %44, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #3
  ret void

45:                                               ; preds = %2, %45
  %.060 = phi i32 [ %5, %2 ], [ %74, %45 ]
  %.04459 = phi i32 [ %7, %2 ], [ %.060, %45 ]
  %.04558 = phi i32 [ %9, %2 ], [ %.04459, %45 ]
  %.04657 = phi i32 [ %11, %2 ], [ %.04558, %45 ]
  %.04756 = phi i32 [ %13, %2 ], [ %72, %45 ]
  %.04855 = phi i32 [ %15, %2 ], [ %.04756, %45 ]
  %.04954 = phi i64 [ 0, %2 ], [ %75, %45 ]
  %.05053 = phi i32 [ %19, %2 ], [ %.05152, %45 ]
  %.05152 = phi i32 [ %17, %2 ], [ %.04855, %45 ]
  %46 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %.04756, i64 noundef 6)
  %47 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %.04756, i64 noundef 11)
  %48 = xor i32 %47, %46
  %49 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %.04756, i64 noundef 25)
  %50 = xor i32 %48, %49
  %51 = and i32 %.04756, %.04855
  %52 = xor i32 %.04756, -1
  %53 = and i32 %.05152, %52
  %54 = or disjoint i32 %51, %53
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EEixEm(ptr noundef nonnull align 4 dereferenceable(256) %3, i64 noundef %.04954) #3
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EEixEm(ptr noundef nonnull align 4 dereferenceable(256) %1, i64 noundef %.04954) #3
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = add i32 %54, %.05053
  %60 = add i32 %59, %50
  %61 = add i32 %60, %56
  %62 = add i32 %61, %58
  %63 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %.060, i64 noundef 2)
  %64 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %.060, i64 noundef 13)
  %65 = xor i32 %64, %63
  %66 = call noundef i32 @_ZN7hashing6sha25612right_rotateEjm(i32 noundef %.060, i64 noundef 22)
  %67 = xor i32 %65, %66
  %68 = xor i32 %.04459, %.04558
  %69 = and i32 %.060, %68
  %70 = and i32 %.04459, %.04558
  %71 = xor i32 %69, %70
  %72 = add i32 %62, %.04657
  %73 = add i32 %62, %71
  %74 = add i32 %73, %67
  %75 = add nuw nsw i64 %.04954, 1
  %exitcond.not = icmp eq i64 %75, 64
  br i1 %exitcond.not, label %20, label %45, !llvm.loop !9
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm8EEixEm(ptr noundef nonnull align 4 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIjLm64EEixEm(ptr noundef nonnull align 4 dereferenceable(256), i64 noundef) local_unnamed_addr #0 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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