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

; 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], i64, [64 x i8], i64 }

@dgsthex = external hidden global [4 x ptr], align 16
@testcnt = external hidden global [4 x i64], align 16
@teststr = external hidden global [4 x ptr], align 16
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 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.SHA1_CTX, align 8
  %4 = alloca [20 x i8], align 16
  %5 = alloca [20 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 104, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 20, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 20, 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 = %74, %0
  %10 = load i64, ptr %7, align 8, !tbaa !9
  %11 = icmp ult i64 %10, 4
  br i1 %11, label %12, label %77

12:                                               ; preds = %9
  %13 = load i64, ptr %7, align 8, !tbaa !9
  %14 = getelementptr inbounds [4 x ptr], ptr @dgsthex, i64 0, i64 %13
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = load i64, ptr %7, align 8, !tbaa !9
  %17 = getelementptr inbounds [4 x ptr], ptr @dgsthex, i64 0, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = call i64 @strlen(ptr noundef %18) #5
  %20 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
  %21 = call i32 @hex_to_bytes(ptr noundef %15, i64 noundef %19, ptr noundef %20, ptr noundef %6)
  call void @sha1_init(ptr noundef %3)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %36, %12
  %23 = load i64, ptr %8, align 8, !tbaa !9
  %24 = load i64, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds [4 x i64], ptr @testcnt, i64 0, i64 %24
  %26 = load i64, ptr %25, align 8, !tbaa !9
  %27 = icmp ult i64 %23, %26
  br i1 %27, label %28, label %39

28:                                               ; preds = %22
  %29 = load i64, ptr %7, align 8, !tbaa !9
  %30 = getelementptr inbounds [4 x ptr], ptr @teststr, i64 0, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = getelementptr inbounds [4 x ptr], ptr @teststr, i64 0, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = call i64 @strlen(ptr noundef %34) #5
  call void @sha1_update(ptr noundef %3, ptr noundef %31, i64 noundef %35)
  br label %36

36:                                               ; preds = %28
  %37 = load i64, ptr %8, align 8, !tbaa !9
  %38 = add i64 %37, 1
  store i64 %38, ptr %8, align 8, !tbaa !9
  br label %22, !llvm.loop !13

39:                                               ; preds = %22
  %40 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
  call void @sha1_finish(ptr noundef %3, ptr noundef %40)
  %41 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
  %42 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 0
  %43 = call i32 @memcmp(ptr noundef %41, ptr noundef %42, i64 noundef 20) #5
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %69

45:                                               ; preds = %39
  %46 = load i64, ptr %7, align 8, !tbaa !9
  %47 = add i64 %46, 1
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %47)
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = getelementptr inbounds [4 x ptr], ptr @dgsthex, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %51)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %62, %45
  %54 = load i64, ptr %8, align 8, !tbaa !9
  %55 = icmp ult i64 %54, 20
  br i1 %55, label %56, label %65

56:                                               ; preds = %53
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = getelementptr inbounds [20 x i8], ptr %4, i64 0, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !15
  %60 = zext i8 %59 to i32
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %60)
  br label %62

62:                                               ; preds = %56
  %63 = load i64, ptr %8, align 8, !tbaa !9
  %64 = add i64 %63, 1
  store i64 %64, ptr %8, align 8, !tbaa !9
  br label %53, !llvm.loop !16

65:                                               ; preds = %53
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %2, align 4, !tbaa !5
  br label %73

69:                                               ; preds = %39
  %70 = load i64, ptr %7, align 8, !tbaa !9
  %71 = add i64 %70, 1
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %71)
  br label %73

73:                                               ; preds = %69, %65
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %7, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %7, align 8, !tbaa !9
  br label %9, !llvm.loop !17

77:                                               ; preds = %9
  %78 = 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 20, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 %78
}

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

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

declare void @sha1_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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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], i64, [64 x i8], i64 }

@dgsthex = external hidden local_unnamed_addr global [4 x ptr], align 16
@testcnt = external hidden local_unnamed_addr global [4 x i64], align 16
@teststr = external hidden local_unnamed_addr global [4 x ptr], align 16
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.SHA1_CTX, align 8
  %2 = alloca [20 x i8], align 16
  %3 = alloca [20 x i8], align 16
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 20, 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
  br label %24

24:                                               ; preds = %0, %107
  %.01723 = phi i64 [ 0, %0 ], [ %38, %107 ]
  %.01822 = phi i32 [ 0, %0 ], [ %.119, %107 ]
  %25 = getelementptr inbounds [4 x ptr], ptr @dgsthex, i64 0, i64 %.01723
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %26) #7
  %28 = call i32 @hex_to_bytes(ptr noundef %26, i64 noundef %27, ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  call void @sha1_init(ptr noundef nonnull %1) #6
  %29 = getelementptr inbounds [4 x i64], ptr @testcnt, i64 0, i64 %.01723
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %.not24 = icmp eq i64 %30, 0
  br i1 %.not24, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %24
  %31 = getelementptr inbounds [4 x ptr], ptr @teststr, i64 0, i64 %.01723
  br label %32

32:                                               ; preds = %.lr.ph, %32
  %.020 = phi i64 [ 0, %.lr.ph ], [ %35, %32 ]
  %33 = load ptr, ptr %31, align 8, !tbaa !5
  %34 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %33) #7
  call void @sha1_update(ptr noundef nonnull %1, ptr noundef %33, i64 noundef %34) #6
  %35 = add nuw i64 %.020, 1
  %36 = load i64, ptr %29, align 8, !tbaa !9
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %32, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %32, %24
  call void @sha1_finish(ptr noundef nonnull %1, ptr noundef nonnull %2) #6
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(20) %3, ptr noundef nonnull dereferenceable(20) %2, i64 20)
  %.not = icmp eq i32 %bcmp, 0
  %38 = add nuw nsw i64 %.01723, 1
  br i1 %.not, label %105, label %39

39:                                               ; preds = %._crit_edge
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %38)
  %41 = load ptr, ptr %25, align 8, !tbaa !5
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %41)
  %43 = load i8, ptr %2, align 16, !tbaa !13
  %44 = zext i8 %43 to i32
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %44)
  %46 = load i8, ptr %5, align 1, !tbaa !13
  %47 = zext i8 %46 to i32
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %47)
  %49 = load i8, ptr %6, align 2, !tbaa !13
  %50 = zext i8 %49 to i32
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %50)
  %52 = load i8, ptr %7, align 1, !tbaa !13
  %53 = zext i8 %52 to i32
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %53)
  %55 = load i8, ptr %8, align 4, !tbaa !13
  %56 = zext i8 %55 to i32
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %56)
  %58 = load i8, ptr %9, align 1, !tbaa !13
  %59 = zext i8 %58 to i32
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %59)
  %61 = load i8, ptr %10, align 2, !tbaa !13
  %62 = zext i8 %61 to i32
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %62)
  %64 = load i8, ptr %11, align 1, !tbaa !13
  %65 = zext i8 %64 to i32
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %65)
  %67 = load i8, ptr %12, align 8, !tbaa !13
  %68 = zext i8 %67 to i32
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %68)
  %70 = load i8, ptr %13, align 1, !tbaa !13
  %71 = zext i8 %70 to i32
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %71)
  %73 = load i8, ptr %14, align 2, !tbaa !13
  %74 = zext i8 %73 to i32
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %74)
  %76 = load i8, ptr %15, align 1, !tbaa !13
  %77 = zext i8 %76 to i32
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %77)
  %79 = load i8, ptr %16, align 4, !tbaa !13
  %80 = zext i8 %79 to i32
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %80)
  %82 = load i8, ptr %17, align 1, !tbaa !13
  %83 = zext i8 %82 to i32
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %83)
  %85 = load i8, ptr %18, align 2, !tbaa !13
  %86 = zext i8 %85 to i32
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %86)
  %88 = load i8, ptr %19, align 1, !tbaa !13
  %89 = zext i8 %88 to i32
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %89)
  %91 = load i8, ptr %20, align 16, !tbaa !13
  %92 = zext i8 %91 to i32
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %92)
  %94 = load i8, ptr %21, align 1, !tbaa !13
  %95 = zext i8 %94 to i32
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %95)
  %97 = load i8, ptr %22, align 2, !tbaa !13
  %98 = zext i8 %97 to i32
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %98)
  %100 = load i8, ptr %23, align 1, !tbaa !13
  %101 = zext i8 %100 to i32
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %101)
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %104 = add nsw i32 %.01822, 1
  br label %107

105:                                              ; preds = %._crit_edge
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %38)
  br label %107

107:                                              ; preds = %39, %105
  %.119 = phi i32 [ %104, %39 ], [ %.01822, %105 ]
  %exitcond.not = icmp eq i64 %38, 4
  br i1 %exitcond.not, label %108, label %24, !llvm.loop !14

108:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 104, 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 @sha1_init(ptr noundef) local_unnamed_addr #2

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

declare void @sha1_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, !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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}


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