; LLVM IR from guanzhi/GmSSL :: src (sm3_lms)

; 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.SHA256_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@D_PBLC = external hidden constant [2 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare void @sha256_init(ptr noundef) #2

declare void @sha256_update(ptr noundef, ptr noundef, i64 noundef) #2

declare void @sha256_finish(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @winternitz_checksum(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @sm3_lmots_signature_to_public_hash(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [2 x i8], align 1
  %12 = alloca %struct.SHA256_CTX, align 8
  %13 = alloca [34 x [32 x i8]], align 16
  %14 = alloca [4 x i8], align 1
  %15 = alloca [2 x i8], align 1
  %16 = alloca [1 x i8], align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 112, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1088, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = ashr i32 %20, 24
  %22 = trunc i32 %21 to i8
  %23 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
  store i8 %22, ptr %23, align 1, !tbaa !11
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = ashr i32 %24, 16
  %26 = trunc i32 %25 to i8
  %27 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 1
  store i8 %26, ptr %27, align 1, !tbaa !11
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = ashr i32 %28, 8
  %30 = trunc i32 %29 to i8
  %31 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 2
  store i8 %30, ptr %31, align 1, !tbaa !11
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = trunc i32 %32 to i8
  %34 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 3
  store i8 %33, ptr %34, align 1, !tbaa !11
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 0
  call void @winternitz_checksum(ptr noundef %35, ptr noundef %36)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %99, %5
  %38 = load i32, ptr %17, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 34
  br i1 %39, label %40, label %102

40:                                               ; preds = %37
  %41 = load i32, ptr %17, align 4, !tbaa !9
  %42 = ashr i32 %41, 8
  %43 = trunc i32 %42 to i8
  %44 = getelementptr inbounds [2 x i8], ptr %15, i64 0, i64 0
  store i8 %43, ptr %44, align 1, !tbaa !11
  %45 = load i32, ptr %17, align 4, !tbaa !9
  %46 = trunc i32 %45 to i8
  %47 = getelementptr inbounds [2 x i8], ptr %15, i64 0, i64 1
  store i8 %46, ptr %47, align 1, !tbaa !11
  %48 = load i32, ptr %17, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %49
  %51 = getelementptr inbounds [32 x i8], ptr %50, i64 0, i64 0
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i32, ptr %17, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [32 x i8], ptr %52, i64 %54
  %56 = getelementptr inbounds [32 x i8], ptr %55, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 1 %56, i64 32, i1 false)
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = icmp slt i32 %57, 32
  br i1 %58, label %59, label %66

59:                                               ; preds = %40
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %60, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  %65 = zext i8 %64 to i32
  br label %73

66:                                               ; preds = %40
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = sub nsw i32 %67, 32
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2 x i8], ptr %11, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = zext i8 %71 to i32
  br label %73

73:                                               ; preds = %66, %59
  %74 = phi i32 [ %65, %59 ], [ %72, %66 ]
  store i32 %74, ptr %19, align 4, !tbaa !9
  %75 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %75, ptr %18, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %95, %73
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 255
  br i1 %78, label %79, label %98

79:                                               ; preds = %76
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = trunc i32 %80 to i8
  %82 = getelementptr inbounds [1 x i8], ptr %16, i64 0, i64 0
  store i8 %81, ptr %82, align 1, !tbaa !11
  call void @sha256_init(ptr noundef %12)
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sha256_update(ptr noundef %12, ptr noundef %83, i64 noundef 16)
  %84 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
  call void @sha256_update(ptr noundef %12, ptr noundef %84, i64 noundef 4)
  %85 = getelementptr inbounds [2 x i8], ptr %15, i64 0, i64 0
  call void @sha256_update(ptr noundef %12, ptr noundef %85, i64 noundef 2)
  %86 = getelementptr inbounds [1 x i8], ptr %16, i64 0, i64 0
  call void @sha256_update(ptr noundef %12, ptr noundef %86, i64 noundef 1)
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %88
  %90 = getelementptr inbounds [32 x i8], ptr %89, i64 0, i64 0
  call void @sha256_update(ptr noundef %12, ptr noundef %90, i64 noundef 32)
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %92
  %94 = getelementptr inbounds [32 x i8], ptr %93, i64 0, i64 0
  call void @sha256_finish(ptr noundef %12, ptr noundef %94)
  br label %95

95:                                               ; preds = %79
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %18, align 4, !tbaa !9
  br label %76, !llvm.loop !12

98:                                               ; preds = %76
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %17, align 4, !tbaa !9
  br label %37, !llvm.loop !14

102:                                              ; preds = %37
  call void @sha256_init(ptr noundef %12)
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sha256_update(ptr noundef %12, ptr noundef %103, i64 noundef 16)
  %104 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
  call void @sha256_update(ptr noundef %12, ptr noundef %104, i64 noundef 4)
  call void @sha256_update(ptr noundef %12, ptr noundef @D_PBLC, i64 noundef 2)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %113, %102
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = icmp slt i32 %106, 34
  br i1 %107, label %108, label %116

108:                                              ; preds = %105
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [34 x [32 x i8]], ptr %13, i64 0, i64 %110
  %112 = getelementptr inbounds [32 x i8], ptr %111, i64 0, i64 0
  call void @sha256_update(ptr noundef %12, ptr noundef %112, i64 noundef 32)
  br label %113

113:                                              ; preds = %108
  %114 = load i32, ptr %17, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %17, align 4, !tbaa !9
  br label %105, !llvm.loop !15

116:                                              ; preds = %105
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  call void @sha256_finish(ptr noundef %12, ptr noundef %117)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1088, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #4
  ret void
}

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


; 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.SHA256_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@D_PBLC = external hidden constant [2 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare void @sha256_init(ptr noundef) local_unnamed_addr #2

declare void @sha256_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @sha256_finish(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @winternitz_checksum(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @sm3_lmots_signature_to_public_hash(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca [2 x i8], align 1
  %7 = alloca %struct.SHA256_CTX, align 8
  %8 = alloca [34 x [32 x i8]], align 16
  %9 = alloca [4 x i8], align 1
  %10 = alloca [2 x i8], align 1
  %11 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 1088, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #4
  %12 = lshr i32 %1, 24
  %13 = trunc nuw i32 %12 to i8
  store i8 %13, ptr %9, align 1, !tbaa !5
  %14 = lshr i32 %1, 16
  %15 = trunc i32 %14 to i8
  %16 = getelementptr inbounds i8, ptr %9, i64 1
  store i8 %15, ptr %16, align 1, !tbaa !5
  %17 = lshr i32 %1, 8
  %18 = trunc i32 %17 to i8
  %19 = getelementptr inbounds i8, ptr %9, i64 2
  store i8 %18, ptr %19, align 1, !tbaa !5
  %20 = trunc i32 %1 to i8
  %21 = getelementptr inbounds i8, ptr %9, i64 3
  store i8 %20, ptr %21, align 1, !tbaa !5
  call void @winternitz_checksum(ptr noundef %3, ptr noundef nonnull %6)
  %22 = getelementptr inbounds i8, ptr %10, i64 1
  br label %23

23:                                               ; preds = %5, %._crit_edge
  %indvars.iv = phi i64 [ 0, %5 ], [ %indvars.iv.next, %._crit_edge ]
  store i8 0, ptr %10, align 1, !tbaa !5
  %24 = trunc i64 %indvars.iv to i8
  store i8 %24, ptr %22, align 1, !tbaa !5
  %25 = getelementptr inbounds [34 x [32 x i8]], ptr %8, i64 0, i64 %indvars.iv
  %26 = getelementptr inbounds [32 x i8], ptr %2, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %25, ptr noundef nonnull align 1 dereferenceable(32) %26, i64 32, i1 false)
  %27 = icmp ult i64 %indvars.iv, 32
  %28 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv
  %29 = add nsw i64 %indvars.iv, -32
  %30 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 %29
  %.in.in = select i1 %27, ptr %28, ptr %30
  %.in = load i8, ptr %.in.in, align 1, !tbaa !5
  %.not = icmp eq i8 %.in, -1
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %23
  %31 = zext i8 %.in to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.02728 = phi i32 [ %33, %.lr.ph ], [ %31, %.lr.ph.preheader ]
  %32 = trunc nuw i32 %.02728 to i8
  store i8 %32, ptr %11, align 1, !tbaa !5
  call void @sha256_init(ptr noundef nonnull %7) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef %0, i64 noundef 16) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %9, i64 noundef 4) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %10, i64 noundef 2) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %11, i64 noundef 1) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %25, i64 noundef 32) #4
  call void @sha256_finish(ptr noundef nonnull %7, ptr noundef nonnull %25) #4
  %33 = add nuw nsw i32 %.02728, 1
  %exitcond.not = icmp eq i32 %33, 255
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %.lr.ph, %23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond32.not = icmp eq i64 %indvars.iv.next, 34
  br i1 %exitcond32.not, label %34, label %23, !llvm.loop !10

34:                                               ; preds = %._crit_edge
  call void @sha256_init(ptr noundef nonnull %7) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef %0, i64 noundef 16) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %9, i64 noundef 4) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull @D_PBLC, i64 noundef 2) #4
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %8, i64 noundef 32) #4
  %35 = getelementptr inbounds i8, ptr %8, i64 32
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %35, i64 noundef 32) #4
  %36 = getelementptr inbounds i8, ptr %8, i64 64
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %36, i64 noundef 32) #4
  %37 = getelementptr inbounds i8, ptr %8, i64 96
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %37, i64 noundef 32) #4
  %38 = getelementptr inbounds i8, ptr %8, i64 128
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %38, i64 noundef 32) #4
  %39 = getelementptr inbounds i8, ptr %8, i64 160
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %39, i64 noundef 32) #4
  %40 = getelementptr inbounds i8, ptr %8, i64 192
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %40, i64 noundef 32) #4
  %41 = getelementptr inbounds i8, ptr %8, i64 224
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %41, i64 noundef 32) #4
  %42 = getelementptr inbounds i8, ptr %8, i64 256
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %42, i64 noundef 32) #4
  %43 = getelementptr inbounds i8, ptr %8, i64 288
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %43, i64 noundef 32) #4
  %44 = getelementptr inbounds i8, ptr %8, i64 320
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %44, i64 noundef 32) #4
  %45 = getelementptr inbounds i8, ptr %8, i64 352
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %45, i64 noundef 32) #4
  %46 = getelementptr inbounds i8, ptr %8, i64 384
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %46, i64 noundef 32) #4
  %47 = getelementptr inbounds i8, ptr %8, i64 416
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %47, i64 noundef 32) #4
  %48 = getelementptr inbounds i8, ptr %8, i64 448
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %48, i64 noundef 32) #4
  %49 = getelementptr inbounds i8, ptr %8, i64 480
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %49, i64 noundef 32) #4
  %50 = getelementptr inbounds i8, ptr %8, i64 512
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %50, i64 noundef 32) #4
  %51 = getelementptr inbounds i8, ptr %8, i64 544
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %51, i64 noundef 32) #4
  %52 = getelementptr inbounds i8, ptr %8, i64 576
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %52, i64 noundef 32) #4
  %53 = getelementptr inbounds i8, ptr %8, i64 608
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %53, i64 noundef 32) #4
  %54 = getelementptr inbounds i8, ptr %8, i64 640
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %54, i64 noundef 32) #4
  %55 = getelementptr inbounds i8, ptr %8, i64 672
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %55, i64 noundef 32) #4
  %56 = getelementptr inbounds i8, ptr %8, i64 704
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %56, i64 noundef 32) #4
  %57 = getelementptr inbounds i8, ptr %8, i64 736
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %57, i64 noundef 32) #4
  %58 = getelementptr inbounds i8, ptr %8, i64 768
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %58, i64 noundef 32) #4
  %59 = getelementptr inbounds i8, ptr %8, i64 800
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %59, i64 noundef 32) #4
  %60 = getelementptr inbounds i8, ptr %8, i64 832
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %60, i64 noundef 32) #4
  %61 = getelementptr inbounds i8, ptr %8, i64 864
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %61, i64 noundef 32) #4
  %62 = getelementptr inbounds i8, ptr %8, i64 896
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %62, i64 noundef 32) #4
  %63 = getelementptr inbounds i8, ptr %8, i64 928
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %63, i64 noundef 32) #4
  %64 = getelementptr inbounds i8, ptr %8, i64 960
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %64, i64 noundef 32) #4
  %65 = getelementptr inbounds i8, ptr %8, i64 992
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %65, i64 noundef 32) #4
  %66 = getelementptr inbounds i8, ptr %8, i64 1024
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %66, i64 noundef 32) #4
  %67 = getelementptr inbounds i8, ptr %8, i64 1056
  call void @sha256_update(ptr noundef nonnull %7, ptr noundef nonnull %67, i64 noundef 32) #4
  call void @sha256_finish(ptr noundef nonnull %7, ptr noundef %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 1088, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass