; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/cbc (main)

; 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"

@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 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 [1000 x i8], align 16
  %7 = alloca [1000 x i8], align 16
  %8 = alloca [1000 x i8], align 16
  %9 = alloca [8 x i8], align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  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 1000, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  %12 = load ptr, ptr @stdout, align 8, !tbaa !9
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str) #4
  %14 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
  store i8 1, ptr %14, align 1, !tbaa !11
  %15 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 1
  store i8 -15, ptr %15, align 1, !tbaa !11
  %16 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 2
  store i8 35, ptr %16, align 1, !tbaa !11
  %17 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 3
  store i8 74, ptr %17, align 1, !tbaa !11
  %18 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 4
  store i8 31, ptr %18, align 1, !tbaa !11
  %19 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 5
  store i8 34, ptr %19, align 1, !tbaa !11
  %20 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 6
  store i8 0, ptr %20, align 1, !tbaa !11
  %21 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 7
  store i8 -18, ptr %21, align 1, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %33, %2
  %23 = load i32, ptr %10, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 1000
  br i1 %24, label %25, label %36

25:                                               ; preds = %22
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = mul nsw i32 %26, 23
  %28 = srem i32 %27, 256
  %29 = trunc i32 %28 to i8
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 %31
  store i8 %29, ptr %32, align 1, !tbaa !11
  br label %33

33:                                               ; preds = %25
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %10, align 4, !tbaa !5
  br label %22, !llvm.loop !12

36:                                               ; preds = %22
  %37 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
  %38 = getelementptr inbounds [1000 x i8], ptr %8, i64 0, i64 0
  %39 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
  call void @cbc_encipher(ptr noundef %37, ptr noundef %38, ptr noundef %39, i32 noundef 1000)
  %40 = getelementptr inbounds [1000 x i8], ptr %8, i64 0, i64 0
  %41 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 0
  %42 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
  call void @cbc_decipher(ptr noundef %40, ptr noundef %41, ptr noundef %42, i32 noundef 1000)
  %43 = load ptr, ptr @stdout, align 8, !tbaa !9
  %44 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = zext i8 %45 to i32
  %47 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 1
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = zext i8 %48 to i32
  %50 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 2
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = zext i8 %51 to i32
  %53 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 3
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = zext i8 %54 to i32
  %56 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 4
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = zext i8 %57 to i32
  %59 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 5
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = zext i8 %60 to i32
  %62 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 6
  %63 = load i8, ptr %62, align 1, !tbaa !11
  %64 = zext i8 %63 to i32
  %65 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 7
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = zext i8 %66 to i32
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.1, i32 noundef %46, i32 noundef %49, i32 noundef %52, i32 noundef %55, i32 noundef %58, i32 noundef %61, i32 noundef %64, i32 noundef %67) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %129, %36
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 1000
  br i1 %71, label %72, label %132

72:                                               ; preds = %69
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = zext i8 %76 to i32
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = zext i8 %81 to i32
  %83 = icmp eq i32 %77, %82
  br i1 %83, label %84, label %105

84:                                               ; preds = %72
  %85 = load ptr, ptr @stdout, align 8, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %91 = zext i8 %90 to i32
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1000 x i8], ptr %8, i64 0, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !11
  %97 = zext i8 %96 to i32
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !11
  %103 = zext i8 %102 to i32
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.2, i32 noundef %86, i32 noundef %91, i32 noundef %92, i32 noundef %97, i32 noundef %98, i32 noundef %103) #4
  br label %128

105:                                              ; preds = %72
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %11, align 4, !tbaa !5
  %108 = load ptr, ptr @stdout, align 8, !tbaa !9
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !11
  %114 = zext i8 %113 to i32
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [1000 x i8], ptr %8, i64 0, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = zext i8 %119 to i32
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1000 x i8], ptr %7, i64 0, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !11
  %126 = zext i8 %125 to i32
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.3, i32 noundef %109, i32 noundef %114, i32 noundef %115, i32 noundef %120, i32 noundef %121, i32 noundef %126) #4
  br label %128

128:                                              ; preds = %105, %84
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %10, align 4, !tbaa !5
  br label %69, !llvm.loop !14

132:                                              ; preds = %69
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %135, label %138

135:                                              ; preds = %132
  %136 = load ptr, ptr @stdout, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.4) #4
  br label %142

138:                                              ; preds = %132
  %139 = load ptr, ptr @stdout, align 8, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.5, i32 noundef %140) #4
  br label %142

142:                                              ; preds = %138, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr %6) #4
  ret i32 0
}

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare void @cbc_encipher(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare void @cbc_decipher(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
iter.check:
  %2 = alloca [1000 x i8], align 16
  %3 = alloca [1000 x i8], align 16
  %4 = alloca [1000 x i8], align 16
  %5 = alloca [8 x i8], align 8
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %6 = load ptr, ptr @stdout, align 8, !tbaa !5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str) #4
  %8 = getelementptr inbounds i8, ptr %5, i64 1
  %9 = getelementptr inbounds i8, ptr %5, i64 2
  %10 = getelementptr inbounds i8, ptr %5, i64 3
  %11 = getelementptr inbounds i8, ptr %5, i64 4
  %12 = getelementptr inbounds i8, ptr %5, i64 5
  %13 = getelementptr inbounds i8, ptr %5, i64 6
  %14 = getelementptr inbounds i8, ptr %5, i64 7
  store <8 x i8> <i8 1, i8 -15, i8 35, i8 74, i8 31, i8 34, i8 0, i8 -18>, ptr %5, align 8, !tbaa !9
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %iter.check
  %index = phi i64 [ 0, %iter.check ], [ %index.next, %vector.body ]
  %vec.ind = phi <16 x i8> [ <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, %iter.check ], [ %vec.ind.next, %vector.body ]
  %15 = mul <16 x i8> %vec.ind, <i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23>
  %16 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 %index
  store <16 x i8> %15, ptr %16, align 16, !tbaa !9
  %index.next = add nuw i64 %index, 16
  %vec.ind.next = add <16 x i8> %vec.ind, <i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16>
  %17 = icmp eq i64 %index.next, 992
  br i1 %17, label %vec.epilog.vector.body, label %vector.body, !llvm.loop !10

vec.epilog.vector.body:                           ; preds = %vector.body
  %18 = getelementptr inbounds i8, ptr %2, i64 992
  store <8 x i8> <i8 32, i8 55, i8 78, i8 101, i8 124, i8 -109, i8 -86, i8 -63>, ptr %18, align 16, !tbaa !9
  call void @cbc_encipher(ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 1000) #4
  call void @cbc_decipher(ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %5, i32 noundef 1000) #4
  %19 = load ptr, ptr @stdout, align 8, !tbaa !5
  %20 = load i8, ptr %5, align 8, !tbaa !9
  %21 = zext i8 %20 to i32
  %22 = load i8, ptr %8, align 1, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = load i8, ptr %9, align 2, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = load i8, ptr %10, align 1, !tbaa !9
  %27 = zext i8 %26 to i32
  %28 = load i8, ptr %11, align 4, !tbaa !9
  %29 = zext i8 %28 to i32
  %30 = load i8, ptr %12, align 1, !tbaa !9
  %31 = zext i8 %30 to i32
  %32 = load i8, ptr %13, align 2, !tbaa !9
  %33 = zext i8 %32 to i32
  %34 = load i8, ptr %14, align 1, !tbaa !9
  %35 = zext i8 %34 to i32
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.1, i32 noundef %21, i32 noundef %23, i32 noundef %25, i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %33, i32 noundef %35) #4
  br label %37

37:                                               ; preds = %vec.epilog.vector.body, %37
  %indvars.iv33 = phi i64 [ 0, %vec.epilog.vector.body ], [ %indvars.iv.next34, %37 ]
  %.031 = phi i32 [ 0, %vec.epilog.vector.body ], [ %.1, %37 ]
  %38 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 %indvars.iv33
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = zext i8 %39 to i32
  %41 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %indvars.iv33
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = zext i8 %42 to i32
  %44 = icmp ne i8 %39, %42
  %.str.2.sink = select i1 %44, ptr @.str.3, ptr @.str.2
  %45 = zext i1 %44 to i32
  %.1 = add nuw nsw i32 %.031, %45
  %46 = load ptr, ptr @stdout, align 8, !tbaa !5
  %47 = getelementptr inbounds [1000 x i8], ptr %4, i64 0, i64 %indvars.iv33
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = zext i8 %48 to i32
  %50 = trunc nuw nsw i64 %indvars.iv33 to i32
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull %.str.2.sink, i32 noundef %50, i32 noundef %40, i32 noundef %50, i32 noundef %49, i32 noundef %50, i32 noundef %43) #4
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %exitcond36.not = icmp eq i64 %indvars.iv.next34, 1000
  br i1 %exitcond36.not, label %52, label %37, !llvm.loop !14

52:                                               ; preds = %37
  %53 = icmp eq i32 %.1, 0
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %53, label %55, label %57

55:                                               ; preds = %52
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.4) #4
  br label %59

57:                                               ; preds = %52
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.5, i32 noundef %.1) #4
  br label %59

59:                                               ; preds = %57, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %2) #4
  ret i32 0
}

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

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

declare void @cbc_encipher(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @cbc_decipher(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass