; LLVM IR from reyadussalahin/problem-solving :: hashing/string_hashing/codechef/FINSQ15_A (Solution)

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

@str = external dso_local global [5000010 x i8], align 16
@p = external dso_local global i64, align 8
@pw = external dso_local global [5000010 x i64], align 16
@h = external dso_local global [5000010 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @str)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %12 = call i64 @strlen(ptr noundef @str) #5
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %2, align 4, !tbaa !5
  %14 = load i8, ptr @str, align 16, !tbaa !9
  %15 = sext i8 %14 to i32
  %16 = sub nsw i32 %15, 97
  %17 = add nsw i32 %16, 1
  %18 = sext i32 %17 to i64
  store i64 %18, ptr @h, align 16, !tbaa !10
  store i64 1, ptr @pw, align 16, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %57, %0
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %60

24:                                               ; preds = %19
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sub nsw i32 %25, 1
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !10
  %30 = load i64, ptr @p, align 8, !tbaa !10
  %31 = mul nsw i64 %29, %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %33
  store i64 %31, ptr %34, align 8, !tbaa !10
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sub nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !10
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [5000010 x i8], ptr @str, i64 0, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = sext i8 %43 to i32
  %45 = sub nsw i32 %44, 97
  %46 = add nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !10
  %52 = mul nsw i64 %47, %51
  %53 = add nsw i64 %39, %52
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %55
  store i64 %53, ptr %56, align 8, !tbaa !10
  br label %57

57:                                               ; preds = %24
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %3, align 4, !tbaa !5
  br label %19, !llvm.loop !12

60:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %114, %60
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %117

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %68 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = sub nsw i32 %69, 1
  store i32 %70, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 -1, ptr %9, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %109, %67
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %75, label %110

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = add nsw i32 %76, %77
  %79 = sdiv i32 %78, 2
  store i32 %79, ptr %10, align 4, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !10
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !10
  %88 = mul nsw i64 %83, %87
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !10
  %94 = add nsw i64 %88, %93
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = add nsw i32 %95, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !10
  %101 = icmp eq i64 %94, %100
  br i1 %101, label %102, label %106

102:                                              ; preds = %75
  %103 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %103, ptr %9, align 4, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %7, align 4, !tbaa !5
  br label %109

106:                                              ; preds = %75
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = sub nsw i32 %107, 1
  store i32 %108, ptr %8, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %71, !llvm.loop !14

110:                                              ; preds = %71
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %112)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %114

114:                                              ; preds = %110
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %5, align 4, !tbaa !5
  br label %62, !llvm.loop !15

117:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

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

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

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

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

@str = external dso_local global [5000010 x i8], align 16
@p = external dso_local local_unnamed_addr global i64, align 8
@pw = external dso_local local_unnamed_addr global [5000010 x i64], align 16
@h = external dso_local local_unnamed_addr global [5000010 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @str)
  %4 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @str) #4
  %5 = trunc i64 %4 to i32
  %6 = load i8, ptr @str, align 16, !tbaa !5
  %7 = sext i8 %6 to i64
  %8 = add nsw i64 %7, -96
  store i64 %8, ptr @h, align 16, !tbaa !8
  store i64 1, ptr @pw, align 16, !tbaa !8
  %9 = icmp sgt i32 %5, 1
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %10 = load i64, ptr @p, align 8, !tbaa !8
  %wide.trip.count = and i64 %4, 2147483647
  %11 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %11, 1
  %12 = icmp eq i64 %wide.trip.count, 2
  br i1 %12, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %11, -2
  br label %25

._crit_edge.loopexit.unr-lcssa:                   ; preds = %25, %.lr.ph
  %.unr = phi i64 [ %8, %.lr.ph ], [ %44, %25 ]
  %.unr40 = phi i64 [ 1, %.lr.ph ], [ %37, %25 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next.1, %25 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %13 = mul nsw i64 %10, %.unr40
  %14 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %indvars.iv.unr
  store i64 %13, ptr %14, align 8, !tbaa !8
  %15 = getelementptr inbounds [5000010 x i8], ptr @str, i64 0, i64 %indvars.iv.unr
  %16 = load i8, ptr %15, align 1, !tbaa !5
  %17 = sext i8 %16 to i64
  %18 = add nsw i64 %17, -96
  %19 = mul nsw i64 %18, %13
  %20 = add nsw i64 %19, %.unr
  %21 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %indvars.iv.unr
  store i64 %20, ptr %21, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %23 = load i32, ptr %1, align 4, !tbaa !10
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph37, label %._crit_edge38

25:                                               ; preds = %25, %.lr.ph.new
  %26 = phi i64 [ %8, %.lr.ph.new ], [ %44, %25 ]
  %27 = phi i64 [ 1, %.lr.ph.new ], [ %37, %25 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.new ], [ %indvars.iv.next.1, %25 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %25 ]
  %28 = mul nsw i64 %10, %27
  %29 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %indvars.iv
  store i64 %28, ptr %29, align 8, !tbaa !8
  %30 = getelementptr inbounds [5000010 x i8], ptr @str, i64 0, i64 %indvars.iv
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %32 = sext i8 %31 to i64
  %33 = add nsw i64 %32, -96
  %34 = mul nsw i64 %33, %28
  %35 = add nsw i64 %34, %26
  %36 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %indvars.iv
  store i64 %35, ptr %36, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = mul nsw i64 %10, %28
  %38 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %indvars.iv.next
  store i64 %37, ptr %38, align 8, !tbaa !8
  %39 = getelementptr inbounds [5000010 x i8], ptr @str, i64 0, i64 %indvars.iv.next
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = sext i8 %40 to i64
  %42 = add nsw i64 %41, -96
  %43 = mul nsw i64 %42, %37
  %44 = add nsw i64 %43, %35
  %45 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %indvars.iv.next
  store i64 %44, ptr %45, align 8, !tbaa !8
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %25, !llvm.loop !12

._crit_edge38:                                    ; preds = %._crit_edge34, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.lr.ph37:                                         ; preds = %._crit_edge, %._crit_edge34
  %.02635 = phi i32 [ %72, %._crit_edge34 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  %47 = load i32, ptr %2, align 4, !tbaa !10
  %.not28 = icmp slt i32 %47, 1
  br i1 %.not28, label %._crit_edge34, label %.lr.ph33

.lr.ph33:                                         ; preds = %.lr.ph37
  %48 = add nsw i32 %47, -1
  %49 = zext nneg i32 %47 to i64
  %50 = getelementptr inbounds [5000010 x i64], ptr @pw, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !8
  %52 = zext nneg i32 %48 to i64
  %53 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !8
  br label %55

55:                                               ; preds = %.lr.ph33, %55
  %.02131 = phi i32 [ -1, %.lr.ph33 ], [ %.1, %55 ]
  %.02230 = phi i32 [ %48, %.lr.ph33 ], [ %.123, %55 ]
  %.02429 = phi i32 [ 0, %.lr.ph33 ], [ %.125, %55 ]
  %56 = add nuw nsw i32 %.02230, %.02429
  %57 = lshr i32 %56, 1
  %58 = zext nneg i32 %57 to i64
  %59 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !8
  %61 = mul nsw i64 %51, %60
  %62 = add nsw i64 %61, %54
  %63 = add nuw nsw i32 %57, %47
  %64 = zext nneg i32 %63 to i64
  %65 = getelementptr inbounds [5000010 x i64], ptr @h, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !8
  %67 = icmp eq i64 %62, %66
  %68 = add nuw nsw i32 %57, 1
  %69 = add nsw i32 %57, -1
  %.125 = select i1 %67, i32 %68, i32 %.02429
  %.123 = select i1 %67, i32 %.02230, i32 %69
  %.1 = select i1 %67, i32 %57, i32 %.02131
  %.not = icmp sgt i32 %.125, %.123
  br i1 %.not, label %._crit_edge34, label %55, !llvm.loop !14

._crit_edge34:                                    ; preds = %55, %.lr.ph37
  %.021.lcssa = phi i32 [ -1, %.lr.ph37 ], [ %.1, %55 ]
  %70 = add nsw i32 %.021.lcssa, 1
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %70)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %72 = add nuw nsw i32 %.02635, 1
  %73 = load i32, ptr %1, align 4, !tbaa !10
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %.lr.ph37, label %._crit_edge38, !llvm.loop !15
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture 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) #2

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

attributes #0 = { mustprogress nofree norecurse 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn memory(read) }
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"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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