; LLVM IR from yinqiwen/ardb :: src/common/util (file_helper)

; 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.SHA1_CTX = type { [5 x i32], [2 x i32], [64 x i8] }

@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 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: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4ardb12sha1sum_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS5_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.SHA1_CTX, align 4
  %9 = alloca i32, align 4
  %10 = alloca [65536 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca [20 x i8], align 16
  %13 = alloca [256 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  %19 = call noalias ptr @fopen(ptr noundef %18, ptr noundef @.str.6)
  store ptr %19, ptr %6, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %71

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 92, ptr %8) #5
  call void @SHA1Init(ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 65536, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 65536, ptr %10) #5
  br label %23

23:                                               ; preds = %41, %22
  br label %24

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %25 = getelementptr inbounds [65536 x i8], ptr %10, i64 0, i64 0
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call i64 @fread(ptr noundef %25, i64 noundef 1, i64 noundef 65536, ptr noundef %26)
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %11, align 4, !tbaa !9
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %24
  %32 = getelementptr inbounds [65536 x i8], ptr %10, i64 0, i64 0
  %33 = load i32, ptr %11, align 4, !tbaa !9
  call void @SHA1Update(ptr noundef %8, ptr noundef %32, i32 noundef %33)
  br label %34

34:                                               ; preds = %31, %24
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = icmp slt i32 %35, 65536
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 3, ptr %7, align 4
  br label %39

38:                                               ; preds = %34
  store i32 0, ptr %7, align 4
  br label %39

39:                                               ; preds = %38, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %40 = load i32, ptr %7, align 4
  switch i32 %40, label %73 [
    i32 0, label %41
    i32 3, label %42
  ]

41:                                               ; preds = %39
  br label %23, !llvm.loop !11

42:                                               ; preds = %39
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call i32 @fclose(ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 20, ptr %12) #5
  %45 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
  call void @SHA1Final(ptr noundef %45, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 256, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %64, %42
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = icmp ult i32 %47, 20
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %67

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %51 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %51, i64 %53
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !13
  %59 = zext i8 %58 to i32
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %54, ptr noundef @.str.10, i32 noundef %59) #5
  store i32 %60, ptr %16, align 4, !tbaa !9
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = add i32 %62, %61
  store i32 %63, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %64

64:                                               ; preds = %50
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = add i32 %65, 1
  store i32 %66, ptr %15, align 4, !tbaa !9
  br label %46, !llvm.loop !14

67:                                               ; preds = %49
  %68 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef %68)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 65536, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 92, ptr %8) #5
  br label %71

71:                                               ; preds = %67, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %72 = load i32, ptr %3, align 4
  ret i32 %72

73:                                               ; preds = %39
  unreachable
}

declare void @SHA1Init(ptr noundef) #2

declare void @SHA1Update(ptr noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3 align 2

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


; 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.SHA1_CTX = type { [5 x i32], [2 x i32], [64 x i8] }

@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 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 nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_ZN4ardb12sha1sum_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS5_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #3 {
  %3 = alloca %struct.SHA1_CTX, align 4
  %4 = alloca [65536 x i8], align 16
  %5 = alloca [20 x i8], align 16
  %6 = alloca [256 x i8], align 16
  %7 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %8 = tail call noalias ptr @fopen(ptr noundef %7, ptr noundef nonnull @.str.6)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %154, label %10

10:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %3) #5
  call void @SHA1Init(ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 65536, ptr nonnull %4) #5
  br label %11

11:                                               ; preds = %15, %10
  %12 = call i64 @fread(ptr noundef nonnull %4, i64 noundef 1, i64 noundef 65536, ptr noundef nonnull %8)
  %13 = trunc i64 %12 to i32
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %15, label %.thread

15:                                               ; preds = %11
  call void @SHA1Update(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %13)
  %16 = icmp ult i32 %13, 65536
  br i1 %16, label %.thread, label %11

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

154:                                              ; preds = %2, %.thread
  %.0 = phi i32 [ 0, %.thread ], [ -1, %2 ]
  ret i32 %.0
}

declare void @SHA1Init(ptr noundef) local_unnamed_addr #4

declare void @SHA1Update(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @SHA1Final(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass