; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Ad Infinitum/Ad Infinitum 13/Problem E (E)

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

@sieve = external dso_local global [1001001 x i32], align 16
@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@ans = external dso_local global i64, align 8
@MOD = external dso_local global i64, align 8
@sum = external dso_local global [1001001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8getSievev() #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4fastxx(i64 noundef, i64 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  store i32 0, ptr %1, align 4
  call void @_Z8getSievev()
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %16, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 1001001
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %19

12:                                               ; preds = %8
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %14
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !11

19:                                               ; preds = %11
  store i64 1, ptr @ans, align 8, !tbaa !9
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 1
  br i1 %21, label %22, label %70

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %23 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %23, ptr %3, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %27, %22
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 1
  br i1 %26, label %27, label %69

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [1001001 x i32], ptr @sieve, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %31, ptr %4, align 4, !tbaa !5
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sdiv i32 %33, %32
  store i32 %34, ptr %3, align 4, !tbaa !5
  %35 = load i64, ptr @ans, align 8, !tbaa !9
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = load i64, ptr @MOD, align 8, !tbaa !9
  %41 = sub nsw i64 %40, 2
  %42 = call noundef i64 @_Z4fastxx(i64 noundef %39, i64 noundef %41)
  %43 = mul nsw i64 %35, %42
  %44 = load i64, ptr @MOD, align 8, !tbaa !9
  %45 = srem i64 %43, %44
  store i64 %45, ptr @ans, align 8, !tbaa !9
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = mul nsw i64 %49, %51
  %53 = load i64, ptr @MOD, align 8, !tbaa !9
  %54 = srem i64 %52, %53
  %55 = add nsw i64 1, %54
  %56 = load i64, ptr @MOD, align 8, !tbaa !9
  %57 = srem i64 %55, %56
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %59
  store i64 %57, ptr %60, align 8, !tbaa !9
  %61 = load i64, ptr @ans, align 8, !tbaa !9
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = mul nsw i64 %61, %65
  %67 = load i64, ptr @MOD, align 8, !tbaa !9
  %68 = srem i64 %66, %67
  store i64 %68, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %24, !llvm.loop !13

69:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %70

70:                                               ; preds = %69, %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  br label %71

71:                                               ; preds = %122, %70
  %72 = load i32, ptr @q, align 4, !tbaa !5
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr @q, align 4, !tbaa !5
  %74 = icmp ne i32 %72, 0
  br i1 %74, label %75, label %125

75:                                               ; preds = %71
  %76 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5)
  br label %77

77:                                               ; preds = %80, %75
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = icmp sgt i32 %78, 1
  br i1 %79, label %80, label %122

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1001001 x i32], ptr @sieve, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  store i32 %84, ptr %6, align 4, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = sdiv i32 %86, %85
  store i32 %87, ptr %5, align 4, !tbaa !5
  %88 = load i64, ptr @ans, align 8, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = load i64, ptr @MOD, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 2
  %95 = call noundef i64 @_Z4fastxx(i64 noundef %92, i64 noundef %94)
  %96 = mul nsw i64 %88, %95
  %97 = load i64, ptr @MOD, align 8, !tbaa !9
  %98 = srem i64 %96, %97
  store i64 %98, ptr @ans, align 8, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = mul nsw i64 %102, %104
  %106 = load i64, ptr @MOD, align 8, !tbaa !9
  %107 = srem i64 %105, %106
  %108 = add nsw i64 1, %107
  %109 = load i64, ptr @MOD, align 8, !tbaa !9
  %110 = srem i64 %108, %109
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %112
  store i64 %110, ptr %113, align 8, !tbaa !9
  %114 = load i64, ptr @ans, align 8, !tbaa !9
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = mul nsw i64 %114, %118
  %120 = load i64, ptr @MOD, align 8, !tbaa !9
  %121 = srem i64 %119, %120
  store i64 %121, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %77, !llvm.loop !14

122:                                              ; preds = %77
  %123 = load i64, ptr @ans, align 8, !tbaa !9
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %123)
  br label %71, !llvm.loop !15

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

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

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

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

@sieve = external dso_local local_unnamed_addr global [1001001 x i32], align 16
@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@ans = external dso_local local_unnamed_addr global i64, align 8
@MOD = external dso_local local_unnamed_addr global i64, align 8
@sum = external dso_local local_unnamed_addr global [1001001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8getSievev() local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4fastxx(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
vector.ph:
  %0 = alloca i32, align 4
  tail call void @_Z8getSievev()
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @q)
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.4, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %2 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %offset.idx
  %3 = getelementptr inbounds i8, ptr %2, i64 16
  store <2 x i64> <i64 1, i64 1>, ptr %2, align 8, !tbaa !5
  store <2 x i64> <i64 1, i64 1>, ptr %3, align 8, !tbaa !5
  %offset.idx.1 = add nuw nsw i64 %index, 5
  %4 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %offset.idx.1
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  store <2 x i64> <i64 1, i64 1>, ptr %4, align 8, !tbaa !5
  store <2 x i64> <i64 1, i64 1>, ptr %5, align 8, !tbaa !5
  %offset.idx.2 = add nuw nsw i64 %index, 9
  %6 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %offset.idx.2
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  store <2 x i64> <i64 1, i64 1>, ptr %6, align 8, !tbaa !5
  store <2 x i64> <i64 1, i64 1>, ptr %7, align 8, !tbaa !5
  %offset.idx.3 = add nuw nsw i64 %index, 13
  %8 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %offset.idx.3
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <2 x i64> <i64 1, i64 1>, ptr %8, align 8, !tbaa !5
  store <2 x i64> <i64 1, i64 1>, ptr %9, align 8, !tbaa !5
  %offset.idx.4 = add nuw nsw i64 %index, 17
  %10 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %offset.idx.4
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  store <2 x i64> <i64 1, i64 1>, ptr %10, align 8, !tbaa !5
  store <2 x i64> <i64 1, i64 1>, ptr %11, align 8, !tbaa !5
  %index.next.4 = add nuw nsw i64 %index, 20
  %12 = icmp eq i64 %index.next.4, 1001000
  br i1 %12, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  store i64 1, ptr @ans, align 8, !tbaa !5
  %13 = load i32, ptr @n, align 4, !tbaa !13
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %middle.block
  %.pre = load i64, ptr @MOD, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %15 = phi i64 [ %27, %.preheader ], [ %.pre, %.preheader.preheader ]
  %16 = phi i64 [ %35, %.preheader ], [ 1, %.preheader.preheader ]
  %.01822 = phi i32 [ %20, %.preheader ], [ %13, %.preheader.preheader ]
  %17 = zext nneg i32 %.01822 to i64
  %18 = getelementptr inbounds [1001001 x i32], ptr @sieve, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %20 = sdiv i32 %.01822, %19
  %21 = sext i32 %19 to i64
  %22 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = add nsw i64 %15, -2
  %25 = tail call noundef i64 @_Z4fastxx(i64 noundef %23, i64 noundef %24)
  %26 = mul nsw i64 %25, %16
  %27 = load i64, ptr @MOD, align 8, !tbaa !5
  %28 = srem i64 %26, %27
  %29 = load i64, ptr %22, align 8, !tbaa !5
  %30 = mul nsw i64 %29, %21
  %31 = srem i64 %30, %27
  %32 = add nsw i64 %31, 1
  %33 = srem i64 %32, %27
  store i64 %33, ptr %22, align 8, !tbaa !5
  %34 = mul nsw i64 %33, %28
  %35 = srem i64 %34, %27
  store i64 %35, ptr @ans, align 8, !tbaa !5
  %36 = icmp sgt i32 %20, 1
  br i1 %36, label %.preheader, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.preheader, %middle.block
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #4
  %37 = load i32, ptr @q, align 4, !tbaa !13
  %38 = add nsw i32 %37, -1
  store i32 %38, ptr @q, align 4, !tbaa !13
  %.not23 = icmp eq i32 %37, 0
  br i1 %.not23, label %._crit_edge26, label %.lr.ph25

.lr.ph25:                                         ; preds = %.loopexit, %._crit_edge
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %0)
  %40 = load i32, ptr %0, align 4, !tbaa !13
  %41 = icmp sgt i32 %40, 1
  %.pre30 = load i64, ptr @ans, align 8, !tbaa !5
  br i1 %41, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph25
  %.pre29 = load i64, ptr @MOD, align 8, !tbaa !5
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %42 = phi i64 [ %55, %.lr.ph ], [ %.pre29, %.lr.ph.preheader ]
  %43 = phi i64 [ %63, %.lr.ph ], [ %.pre30, %.lr.ph.preheader ]
  %44 = phi i32 [ %64, %.lr.ph ], [ %40, %.lr.ph.preheader ]
  %45 = zext nneg i32 %44 to i64
  %46 = getelementptr inbounds [1001001 x i32], ptr @sieve, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = sdiv i32 %44, %47
  store i32 %48, ptr %0, align 4, !tbaa !13
  %49 = sext i32 %47 to i64
  %50 = getelementptr inbounds [1001001 x i64], ptr @sum, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = add nsw i64 %42, -2
  %53 = call noundef i64 @_Z4fastxx(i64 noundef %51, i64 noundef %52)
  %54 = mul nsw i64 %53, %43
  %55 = load i64, ptr @MOD, align 8, !tbaa !5
  %56 = srem i64 %54, %55
  %57 = load i64, ptr %50, align 8, !tbaa !5
  %58 = mul nsw i64 %57, %49
  %59 = srem i64 %58, %55
  %60 = add nsw i64 %59, 1
  %61 = srem i64 %60, %55
  store i64 %61, ptr %50, align 8, !tbaa !5
  %62 = mul nsw i64 %61, %56
  %63 = srem i64 %62, %55
  store i64 %63, ptr @ans, align 8, !tbaa !5
  %64 = load i32, ptr %0, align 4, !tbaa !13
  %65 = icmp sgt i32 %64, 1
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph25
  %66 = phi i64 [ %.pre30, %.lr.ph25 ], [ %63, %.lr.ph ]
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %66)
  %68 = load i32, ptr @q, align 4, !tbaa !13
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr @q, align 4, !tbaa !13
  %.not = icmp eq i32 %68, 0
  br i1 %.not, label %._crit_edge26, label %.lr.ph25, !llvm.loop !17

._crit_edge26:                                    ; preds = %._crit_edge, %.loopexit
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #4
  ret i32 0
}

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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