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

; 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.SHA384_CTX = type { [8 x i64], i64, [128 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() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.SHA384_CTX, align 8
  %4 = alloca [48 x i8], align 16
  %5 = alloca [48 x i8], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 208, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %9

9:                                                ; preds = %79, %0
  %10 = load i64, ptr %7, align 8, !tbaa !9
  %11 = icmp ult i64 %10, 7
  br i1 %11, label %12, label %82

12:                                               ; preds = %9
  %13 = load i64, ptr %7, align 8, !tbaa !9
  %14 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %13
  %15 = getelementptr inbounds %struct.anon, ptr %14, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = load i64, ptr %7, align 8, !tbaa !9
  %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 !11
  %21 = call i64 @strlen(ptr noundef %20) #5
  %22 = getelementptr inbounds [48 x i8], ptr %5, i64 0, i64 0
  %23 = call i32 @hex_to_bytes(ptr noundef %16, i64 noundef %21, ptr noundef %22, ptr noundef %6)
  call void @sha384_init(ptr noundef %3)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %40, %12
  %25 = load i64, ptr %8, align 8, !tbaa !9
  %26 = load i64, ptr %7, align 8, !tbaa !9
  %27 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %26
  %28 = getelementptr inbounds %struct.anon, ptr %27, i32 0, i32 2
  %29 = load i64, ptr %28, align 16, !tbaa !14
  %30 = icmp ult i64 %25, %29
  br i1 %30, label %31, label %43

31:                                               ; preds = %24
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %32
  %34 = getelementptr inbounds %struct.anon, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 16, !tbaa !15
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %36
  %38 = getelementptr inbounds %struct.anon, ptr %37, i32 0, i32 1
  %39 = load i64, ptr %38, align 8, !tbaa !16
  call void @sha384_update(ptr noundef %3, ptr noundef %35, i64 noundef %39)
  br label %40

40:                                               ; preds = %31
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = add i64 %41, 1
  store i64 %42, ptr %8, align 8, !tbaa !9
  br label %24, !llvm.loop !17

43:                                               ; preds = %24
  %44 = getelementptr inbounds [48 x i8], ptr %4, i64 0, i64 0
  call void @sha384_finish(ptr noundef %3, ptr noundef %44)
  %45 = getelementptr inbounds [48 x i8], ptr %5, i64 0, i64 0
  %46 = getelementptr inbounds [48 x i8], ptr %4, i64 0, i64 0
  %47 = call i32 @memcmp(ptr noundef %45, ptr noundef %46, i64 noundef 48) #5
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %74

49:                                               ; preds = %43
  %50 = load i64, ptr %7, align 8, !tbaa !9
  %51 = add i64 %50, 1
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %51)
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.anon, ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %56)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %67, %49
  %59 = load i64, ptr %8, align 8, !tbaa !9
  %60 = icmp ult i64 %59, 48
  br i1 %60, label %61, label %70

61:                                               ; preds = %58
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = getelementptr inbounds [48 x i8], ptr %4, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !19
  %65 = zext i8 %64 to i32
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %65)
  br label %67

67:                                               ; preds = %61
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr %8, align 8, !tbaa !9
  br label %58, !llvm.loop !20

70:                                               ; preds = %58
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %2, align 4, !tbaa !5
  br label %78

74:                                               ; preds = %43
  %75 = load i64, ptr %7, align 8, !tbaa !9
  %76 = add i64 %75, 1
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i64 noundef %76)
  br label %78

78:                                               ; preds = %74, %70
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = add i64 %80, 1
  store i64 %81, ptr %7, align 8, !tbaa !9
  br label %9, !llvm.loop !21

82:                                               ; preds = %9
  %83 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 208, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 %83
}

; 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 @sha384_init(ptr noundef) #2

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

declare void @sha384_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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"", !13, i64 0, !10, i64 8, !10, i64 16, !13, i64 24}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !13, i64 0}
!16 = !{!12, !10, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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.SHA384_CTX = type { [8 x i64], i64, [128 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() local_unnamed_addr #0 {
  %1 = alloca %struct.SHA384_CTX, align 8
  %2 = alloca [48 x i8], align 16
  %3 = alloca [48 x i8], align 16
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %5 = getelementptr inbounds i8, ptr %2, i64 1
  %6 = getelementptr inbounds i8, ptr %2, i64 2
  %7 = getelementptr inbounds i8, ptr %2, i64 3
  %8 = getelementptr inbounds i8, ptr %2, i64 4
  %9 = getelementptr inbounds i8, ptr %2, i64 5
  %10 = getelementptr inbounds i8, ptr %2, i64 6
  %11 = getelementptr inbounds i8, ptr %2, i64 7
  %12 = getelementptr inbounds i8, ptr %2, i64 8
  %13 = getelementptr inbounds i8, ptr %2, i64 9
  %14 = getelementptr inbounds i8, ptr %2, i64 10
  %15 = getelementptr inbounds i8, ptr %2, i64 11
  %16 = getelementptr inbounds i8, ptr %2, i64 12
  %17 = getelementptr inbounds i8, ptr %2, i64 13
  %18 = getelementptr inbounds i8, ptr %2, i64 14
  %19 = getelementptr inbounds i8, ptr %2, i64 15
  %20 = getelementptr inbounds i8, ptr %2, i64 16
  %21 = getelementptr inbounds i8, ptr %2, i64 17
  %22 = getelementptr inbounds i8, ptr %2, i64 18
  %23 = getelementptr inbounds i8, ptr %2, i64 19
  %24 = getelementptr inbounds i8, ptr %2, i64 20
  %25 = getelementptr inbounds i8, ptr %2, i64 21
  %26 = getelementptr inbounds i8, ptr %2, i64 22
  %27 = getelementptr inbounds i8, ptr %2, i64 23
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  %29 = getelementptr inbounds i8, ptr %2, i64 25
  %30 = getelementptr inbounds i8, ptr %2, i64 26
  %31 = getelementptr inbounds i8, ptr %2, i64 27
  %32 = getelementptr inbounds i8, ptr %2, i64 28
  %33 = getelementptr inbounds i8, ptr %2, i64 29
  %34 = getelementptr inbounds i8, ptr %2, i64 30
  %35 = getelementptr inbounds i8, ptr %2, i64 31
  %36 = getelementptr inbounds i8, ptr %2, i64 32
  %37 = getelementptr inbounds i8, ptr %2, i64 33
  %38 = getelementptr inbounds i8, ptr %2, i64 34
  %39 = getelementptr inbounds i8, ptr %2, i64 35
  %40 = getelementptr inbounds i8, ptr %2, i64 36
  %41 = getelementptr inbounds i8, ptr %2, i64 37
  %42 = getelementptr inbounds i8, ptr %2, i64 38
  %43 = getelementptr inbounds i8, ptr %2, i64 39
  %44 = getelementptr inbounds i8, ptr %2, i64 40
  %45 = getelementptr inbounds i8, ptr %2, i64 41
  %46 = getelementptr inbounds i8, ptr %2, i64 42
  %47 = getelementptr inbounds i8, ptr %2, i64 43
  %48 = getelementptr inbounds i8, ptr %2, i64 44
  %49 = getelementptr inbounds i8, ptr %2, i64 45
  %50 = getelementptr inbounds i8, ptr %2, i64 46
  %51 = getelementptr inbounds i8, ptr %2, i64 47
  br label %52

52:                                               ; preds = %0, %220
  %.01723 = phi i64 [ 0, %0 ], [ %67, %220 ]
  %.01822 = phi i32 [ 0, %0 ], [ %.119, %220 ]
  %53 = getelementptr inbounds [7 x %struct.anon], ptr @tests, i64 0, i64 %.01723
  %54 = getelementptr inbounds i8, ptr %53, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %55) #7
  %57 = call i32 @hex_to_bytes(ptr noundef %55, i64 noundef %56, ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  call void @sha384_init(ptr noundef nonnull %1) #6
  %58 = getelementptr inbounds i8, ptr %53, i64 16
  %59 = load i64, ptr %58, align 16, !tbaa !11
  %.not24 = icmp eq i64 %59, 0
  br i1 %.not24, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %52
  %60 = getelementptr inbounds i8, ptr %53, i64 8
  br label %61

61:                                               ; preds = %.lr.ph, %61
  %.020 = phi i64 [ 0, %.lr.ph ], [ %64, %61 ]
  %62 = load ptr, ptr %53, align 16, !tbaa !12
  %63 = load i64, ptr %60, align 8, !tbaa !13
  call void @sha384_update(ptr noundef nonnull %1, ptr noundef %62, i64 noundef %63) #6
  %64 = add nuw i64 %.020, 1
  %65 = load i64, ptr %58, align 16, !tbaa !11
  %66 = icmp ult i64 %64, %65
  br i1 %66, label %61, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %61, %52
  call void @sha384_finish(ptr noundef nonnull %1, ptr noundef nonnull %2) #6
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(48) %3, ptr noundef nonnull dereferenceable(48) %2, i64 48)
  %.not = icmp eq i32 %bcmp, 0
  %67 = add nuw nsw i64 %.01723, 1
  br i1 %.not, label %218, label %68

68:                                               ; preds = %._crit_edge
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i64 noundef %67)
  %70 = load ptr, ptr %54, align 8, !tbaa !5
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %70)
  %72 = load i8, ptr %2, align 16, !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 %5, 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 %6, align 2, !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 %7, 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 %8, align 4, !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 %9, 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 %10, align 2, !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 %11, 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 %12, align 8, !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 %13, 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 %14, align 2, !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 %15, 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 %16, align 4, !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 %17, 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 %18, align 2, !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 %19, 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 %20, align 16, !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 %21, 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 %22, align 2, !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 %23, 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 %24, align 4, !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 %25, 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 = load i8, ptr %26, align 2, !tbaa !16
  %139 = zext i8 %138 to i32
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %139)
  %141 = load i8, ptr %27, align 1, !tbaa !16
  %142 = zext i8 %141 to i32
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %142)
  %144 = load i8, ptr %28, align 8, !tbaa !16
  %145 = zext i8 %144 to i32
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %145)
  %147 = load i8, ptr %29, align 1, !tbaa !16
  %148 = zext i8 %147 to i32
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %148)
  %150 = load i8, ptr %30, align 2, !tbaa !16
  %151 = zext i8 %150 to i32
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %151)
  %153 = load i8, ptr %31, align 1, !tbaa !16
  %154 = zext i8 %153 to i32
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %154)
  %156 = load i8, ptr %32, align 4, !tbaa !16
  %157 = zext i8 %156 to i32
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %157)
  %159 = load i8, ptr %33, align 1, !tbaa !16
  %160 = zext i8 %159 to i32
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %160)
  %162 = load i8, ptr %34, align 2, !tbaa !16
  %163 = zext i8 %162 to i32
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %163)
  %165 = load i8, ptr %35, align 1, !tbaa !16
  %166 = zext i8 %165 to i32
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %166)
  %168 = load i8, ptr %36, align 16, !tbaa !16
  %169 = zext i8 %168 to i32
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %169)
  %171 = load i8, ptr %37, align 1, !tbaa !16
  %172 = zext i8 %171 to i32
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %172)
  %174 = load i8, ptr %38, align 2, !tbaa !16
  %175 = zext i8 %174 to i32
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %175)
  %177 = load i8, ptr %39, align 1, !tbaa !16
  %178 = zext i8 %177 to i32
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %178)
  %180 = load i8, ptr %40, align 4, !tbaa !16
  %181 = zext i8 %180 to i32
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %181)
  %183 = load i8, ptr %41, align 1, !tbaa !16
  %184 = zext i8 %183 to i32
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %184)
  %186 = load i8, ptr %42, align 2, !tbaa !16
  %187 = zext i8 %186 to i32
  %188 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %187)
  %189 = load i8, ptr %43, align 1, !tbaa !16
  %190 = zext i8 %189 to i32
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %190)
  %192 = load i8, ptr %44, align 8, !tbaa !16
  %193 = zext i8 %192 to i32
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %193)
  %195 = load i8, ptr %45, align 1, !tbaa !16
  %196 = zext i8 %195 to i32
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %196)
  %198 = load i8, ptr %46, align 2, !tbaa !16
  %199 = zext i8 %198 to i32
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %199)
  %201 = load i8, ptr %47, align 1, !tbaa !16
  %202 = zext i8 %201 to i32
  %203 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %202)
  %204 = load i8, ptr %48, align 4, !tbaa !16
  %205 = zext i8 %204 to i32
  %206 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %205)
  %207 = load i8, ptr %49, align 1, !tbaa !16
  %208 = zext i8 %207 to i32
  %209 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %208)
  %210 = load i8, ptr %50, align 2, !tbaa !16
  %211 = zext i8 %210 to i32
  %212 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %211)
  %213 = load i8, ptr %51, align 1, !tbaa !16
  %214 = zext i8 %213 to i32
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %214)
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %217 = add nsw i32 %.01822, 1
  br label %220

218:                                              ; preds = %._crit_edge
  %219 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i64 noundef %67)
  br label %220

220:                                              ; preds = %68, %218
  %.119 = phi i32 [ %217, %68 ], [ %.01822, %218 ]
  %exitcond.not = icmp eq i64 %67, 7
  br i1 %exitcond.not, label %221, label %52, !llvm.loop !17

221:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %1) #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 @sha384_init(ptr noundef) local_unnamed_addr #2

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

declare void @sha384_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,SROAPass,SimplifyCFGPass