; LLVM IR from guanzhi/GmSSL :: tests (sha224test)

; 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.anon = type { ptr, i64, i64, ptr }
%struct.SHA224_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@tests = external dso_local global [7 x %struct.anon], align 16
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.SHA224_CTX, align 8
  %8 = alloca [28 x i8], align 16
  %9 = alloca [28 x i8], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 112, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 28, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 28, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %83, %2
  %14 = load i64, ptr %11, align 8, !tbaa !11
  %15 = icmp ult i64 %14, 7
  br i1 %15, label %16, label %86

16:                                               ; preds = %13
  %17 = load i64, ptr %11, align 8, !tbaa !11
  %18 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.anon, ptr %18, i32 0, i32 3
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = load i64, ptr %11, align 8, !tbaa !11
  %22 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %21
  %23 = getelementptr inbounds %struct.anon, ptr %22, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = call i64 @strlen(ptr noundef %24) #5
  %26 = getelementptr inbounds [28 x i8], ptr %9, i64 0, i64 0
  %27 = call i32 @hex_to_bytes(ptr noundef %20, i64 noundef %25, ptr noundef %26, ptr noundef %10)
  call void @sha224_init(ptr noundef %7)
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %28

28:                                               ; preds = %44, %16
  %29 = load i64, ptr %12, align 8, !tbaa !11
  %30 = load i64, ptr %11, align 8, !tbaa !11
  %31 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.anon, ptr %31, i32 0, i32 2
  %33 = load i64, ptr %32, align 16, !tbaa !15
  %34 = icmp ult i64 %29, %33
  br i1 %34, label %35, label %47

35:                                               ; preds = %28
  %36 = load i64, ptr %11, align 8, !tbaa !11
  %37 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %36
  %38 = getelementptr inbounds %struct.anon, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 16, !tbaa !16
  %40 = load i64, ptr %11, align 8, !tbaa !11
  %41 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.anon, ptr %41, i32 0, i32 1
  %43 = load i64, ptr %42, align 8, !tbaa !17
  call void @sha224_update(ptr noundef %7, ptr noundef %39, i64 noundef %43)
  br label %44

44:                                               ; preds = %35
  %45 = load i64, ptr %12, align 8, !tbaa !11
  %46 = add i64 %45, 1
  store i64 %46, ptr %12, align 8, !tbaa !11
  br label %28, !llvm.loop !18

47:                                               ; preds = %28
  %48 = getelementptr inbounds [28 x i8], ptr %8, i64 0, i64 0
  call void @sha224_finish(ptr noundef %7, ptr noundef %48)
  %49 = getelementptr inbounds [28 x i8], ptr %9, i64 0, i64 0
  %50 = getelementptr inbounds [28 x i8], ptr %8, i64 0, i64 0
  %51 = call i32 @memcmp(ptr noundef %49, ptr noundef %50, i64 noundef 28) #5
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %78

53:                                               ; preds = %47
  %54 = load i64, ptr %11, align 8, !tbaa !11
  %55 = add i64 %54, 1
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %55)
  %57 = load i64, ptr %11, align 8, !tbaa !11
  %58 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.anon, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %60)
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %62

62:                                               ; preds = %71, %53
  %63 = load i64, ptr %12, align 8, !tbaa !11
  %64 = icmp ult i64 %63, 28
  br i1 %64, label %65, label %74

65:                                               ; preds = %62
  %66 = load i64, ptr %12, align 8, !tbaa !11
  %67 = getelementptr inbounds [28 x i8], ptr %8, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !20
  %69 = zext i8 %68 to i32
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %69)
  br label %71

71:                                               ; preds = %65
  %72 = load i64, ptr %12, align 8, !tbaa !11
  %73 = add i64 %72, 1
  store i64 %73, ptr %12, align 8, !tbaa !11
  br label %62, !llvm.loop !21

74:                                               ; preds = %62
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %6, align 4, !tbaa !5
  br label %82

78:                                               ; preds = %47
  %79 = load i64, ptr %11, align 8, !tbaa !11
  %80 = add i64 %79, 1
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i64 noundef %80)
  br label %82

82:                                               ; preds = %78, %74
  br label %83

83:                                               ; preds = %82
  %84 = load i64, ptr %11, align 8, !tbaa !11
  %85 = add i64 %84, 1
  store i64 %85, ptr %11, align 8, !tbaa !11
  br label %13, !llvm.loop !22

86:                                               ; preds = %13
  %87 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 28, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 28, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  ret i32 %87
}

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

declare i32 @hex_to_bytes(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare void @sha224_init(ptr noundef) #2

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @printf(ptr noundef, ...) #2

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

attributes #0 = { 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 = { "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 willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"", !10, i64 0, !12, i64 8, !12, i64 16, !10, i64 24}
!15 = !{!14, !12, i64 16}
!16 = !{!14, !10, i64 0}
!17 = !{!14, !12, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


; 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.anon = type { ptr, i64, i64, ptr }
%struct.SHA224_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@tests = external dso_local local_unnamed_addr global [7 x %struct.anon], align 16
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.SHA224_CTX, align 8
  %4 = alloca [28 x i8], align 16
  %5 = alloca [28 x i8], align 16
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %7 = getelementptr inbounds i8, ptr %4, i64 1
  %8 = getelementptr inbounds i8, ptr %4, i64 2
  %9 = getelementptr inbounds i8, ptr %4, i64 3
  %10 = getelementptr inbounds i8, ptr %4, i64 4
  %11 = getelementptr inbounds i8, ptr %4, i64 5
  %12 = getelementptr inbounds i8, ptr %4, i64 6
  %13 = getelementptr inbounds i8, ptr %4, i64 7
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  %15 = getelementptr inbounds i8, ptr %4, i64 9
  %16 = getelementptr inbounds i8, ptr %4, i64 10
  %17 = getelementptr inbounds i8, ptr %4, i64 11
  %18 = getelementptr inbounds i8, ptr %4, i64 12
  %19 = getelementptr inbounds i8, ptr %4, i64 13
  %20 = getelementptr inbounds i8, ptr %4, i64 14
  %21 = getelementptr inbounds i8, ptr %4, i64 15
  %22 = getelementptr inbounds i8, ptr %4, i64 16
  %23 = getelementptr inbounds i8, ptr %4, i64 17
  %24 = getelementptr inbounds i8, ptr %4, i64 18
  %25 = getelementptr inbounds i8, ptr %4, i64 19
  %26 = getelementptr inbounds i8, ptr %4, i64 20
  %27 = getelementptr inbounds i8, ptr %4, i64 21
  %28 = getelementptr inbounds i8, ptr %4, i64 22
  %29 = getelementptr inbounds i8, ptr %4, i64 23
  %30 = getelementptr inbounds i8, ptr %4, i64 24
  %31 = getelementptr inbounds i8, ptr %4, i64 25
  %32 = getelementptr inbounds i8, ptr %4, i64 26
  %33 = getelementptr inbounds i8, ptr %4, i64 27
  br label %34

34:                                               ; preds = %2, %142
  %.01723 = phi i64 [ 0, %2 ], [ %49, %142 ]
  %.01822 = phi i32 [ 0, %2 ], [ %.119, %142 ]
  %35 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %.01723
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %37) #7
  %39 = call i32 @hex_to_bytes(ptr noundef %37, i64 noundef %38, ptr noundef nonnull %5, ptr noundef nonnull %6) #6
  call void @sha224_init(ptr noundef nonnull %3) #6
  %40 = getelementptr inbounds i8, ptr %35, i64 16
  %41 = load i64, ptr %40, align 16, !tbaa !11
  %.not24 = icmp eq i64 %41, 0
  br i1 %.not24, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %34
  %42 = getelementptr inbounds i8, ptr %35, i64 8
  br label %43

43:                                               ; preds = %.lr.ph, %43
  %.020 = phi i64 [ 0, %.lr.ph ], [ %46, %43 ]
  %44 = load ptr, ptr %35, align 16, !tbaa !12
  %45 = load i64, ptr %42, align 8, !tbaa !13
  call void @sha224_update(ptr noundef nonnull %3, ptr noundef %44, i64 noundef %45) #6
  %46 = add nuw i64 %.020, 1
  %47 = load i64, ptr %40, align 16, !tbaa !11
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %43, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %43, %34
  call void @sha224_finish(ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(28) %5, ptr noundef nonnull dereferenceable(28) %4, i64 28)
  %.not = icmp eq i32 %bcmp, 0
  %49 = add nuw nsw i64 %.01723, 1
  br i1 %.not, label %140, label %50

50:                                               ; preds = %._crit_edge
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i64 noundef %49)
  %52 = load ptr, ptr %36, align 8, !tbaa !5
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %52)
  %54 = load i8, ptr %4, align 16, !tbaa !16
  %55 = zext i8 %54 to i32
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %55)
  %57 = load i8, ptr %7, align 1, !tbaa !16
  %58 = zext i8 %57 to i32
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %58)
  %60 = load i8, ptr %8, align 2, !tbaa !16
  %61 = zext i8 %60 to i32
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %61)
  %63 = load i8, ptr %9, align 1, !tbaa !16
  %64 = zext i8 %63 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %64)
  %66 = load i8, ptr %10, align 4, !tbaa !16
  %67 = zext i8 %66 to i32
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %67)
  %69 = load i8, ptr %11, align 1, !tbaa !16
  %70 = zext i8 %69 to i32
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %70)
  %72 = load i8, ptr %12, align 2, !tbaa !16
  %73 = zext i8 %72 to i32
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %73)
  %75 = load i8, ptr %13, align 1, !tbaa !16
  %76 = zext i8 %75 to i32
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %76)
  %78 = load i8, ptr %14, align 8, !tbaa !16
  %79 = zext i8 %78 to i32
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %79)
  %81 = load i8, ptr %15, align 1, !tbaa !16
  %82 = zext i8 %81 to i32
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %82)
  %84 = load i8, ptr %16, align 2, !tbaa !16
  %85 = zext i8 %84 to i32
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %85)
  %87 = load i8, ptr %17, align 1, !tbaa !16
  %88 = zext i8 %87 to i32
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %88)
  %90 = load i8, ptr %18, align 4, !tbaa !16
  %91 = zext i8 %90 to i32
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %91)
  %93 = load i8, ptr %19, align 1, !tbaa !16
  %94 = zext i8 %93 to i32
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %94)
  %96 = load i8, ptr %20, align 2, !tbaa !16
  %97 = zext i8 %96 to i32
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %97)
  %99 = load i8, ptr %21, align 1, !tbaa !16
  %100 = zext i8 %99 to i32
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %100)
  %102 = load i8, ptr %22, align 16, !tbaa !16
  %103 = zext i8 %102 to i32
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %103)
  %105 = load i8, ptr %23, align 1, !tbaa !16
  %106 = zext i8 %105 to i32
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %106)
  %108 = load i8, ptr %24, align 2, !tbaa !16
  %109 = zext i8 %108 to i32
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %109)
  %111 = load i8, ptr %25, align 1, !tbaa !16
  %112 = zext i8 %111 to i32
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %112)
  %114 = load i8, ptr %26, align 4, !tbaa !16
  %115 = zext i8 %114 to i32
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %115)
  %117 = load i8, ptr %27, align 1, !tbaa !16
  %118 = zext i8 %117 to i32
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %118)
  %120 = load i8, ptr %28, align 2, !tbaa !16
  %121 = zext i8 %120 to i32
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %121)
  %123 = load i8, ptr %29, align 1, !tbaa !16
  %124 = zext i8 %123 to i32
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %124)
  %126 = load i8, ptr %30, align 8, !tbaa !16
  %127 = zext i8 %126 to i32
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %127)
  %129 = load i8, ptr %31, align 1, !tbaa !16
  %130 = zext i8 %129 to i32
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %130)
  %132 = load i8, ptr %32, align 2, !tbaa !16
  %133 = zext i8 %132 to i32
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %133)
  %135 = load i8, ptr %33, align 1, !tbaa !16
  %136 = zext i8 %135 to i32
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %136)
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %139 = add nsw i32 %.01822, 1
  br label %142

140:                                              ; preds = %._crit_edge
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i64 noundef %49)
  br label %142

142:                                              ; preds = %50, %140
  %.119 = phi i32 [ %139, %50 ], [ %.01822, %140 ]
  %exitcond.not = icmp eq i64 %49, 7
  br i1 %exitcond.not, label %143, label %34, !llvm.loop !17

143:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %3) #6
  ret i32 %.119
}

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

declare i32 @hex_to_bytes(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

declare void @sha224_init(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #5

attributes #0 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind willreturn memory(argmem: read) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

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

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


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