; LLVM IR from tangjz/acm-icpc :: 51nod (1238)

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

@tot = external dso_local global i32, align 4
@prime = external dso_local global [4641589 x i32], align 16
@g = external dso_local global [4641589 x i32], align 16
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z10calc_i2phix(i64 noundef) #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 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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  store i32 1, ptr getelementptr inbounds ([4641589 x i32], ptr @g, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %9

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

12:                                               ; preds = %9
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %125

13:                                               ; preds = %9
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %30, label %19

19:                                               ; preds = %13
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr @tot, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @tot, align 4, !tbaa !5
  %23 = sext i32 %21 to i64
  %24 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %23
  store i32 %20, ptr %24, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sub nsw i32 %25, 1
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %28
  store i32 %26, ptr %29, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %19, %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sdiv i32 4641588, %31
  store i32 %32, ptr %5, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %93, %30
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr @tot, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %44

37:                                               ; preds = %33
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = icmp sle i32 %41, %42
  br label %44

44:                                               ; preds = %37, %33
  %45 = phi i1 [ false, %33 ], [ %43, %37 ]
  br i1 %45, label %47, label %46

46:                                               ; preds = %44
  store i32 5, ptr %3, align 4
  br label %96

47:                                               ; preds = %44
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = srem i32 %48, %52
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %73

55:                                               ; preds = %47
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = mul nsw i32 %59, %63
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = mul nsw i32 %65, %69
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %71
  store i32 %64, ptr %72, align 4, !tbaa !5
  store i32 5, ptr %3, align 4
  br label %96

73:                                               ; preds = %47
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  %83 = mul nsw i32 %77, %82
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = mul nsw i32 %84, %88
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %90
  store i32 %83, ptr %91, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %73
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !9

96:                                               ; preds = %55, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = sub nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = load i32, ptr %2, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = mul nsw i64 %105, %107
  %109 = srem i64 %108, 1000000007
  %110 = load i32, ptr %2, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = mul nsw i64 %109, %114
  %116 = add nsw i64 %103, %115
  %117 = srem i64 %116, 1000000007
  %118 = trunc i64 %117 to i32
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %120
  store i32 %118, ptr %121, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %97
  %123 = load i32, ptr %2, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !11

125:                                              ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %126 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 1, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  br label %127

127:                                              ; preds = %150, %125
  %128 = load i64, ptr %7, align 8, !tbaa !12
  %129 = load i64, ptr %6, align 8, !tbaa !12
  %130 = icmp sle i64 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %153

132:                                              ; preds = %127
  %133 = load i64, ptr %6, align 8, !tbaa !12
  %134 = load i64, ptr %6, align 8, !tbaa !12
  %135 = load i64, ptr %7, align 8, !tbaa !12
  %136 = sdiv i64 %134, %135
  %137 = sdiv i64 %133, %136
  store i64 %137, ptr %8, align 8, !tbaa !12
  %138 = load i64, ptr %7, align 8, !tbaa !12
  %139 = load i64, ptr %8, align 8, !tbaa !12
  %140 = call noundef i32 @_Z4num1xx(i64 noundef %138, i64 noundef %139)
  %141 = sext i32 %140 to i64
  %142 = load i64, ptr %6, align 8, !tbaa !12
  %143 = load i64, ptr %7, align 8, !tbaa !12
  %144 = sdiv i64 %142, %143
  %145 = call noundef i32 @_Z10calc_i2phix(i64 noundef %144)
  %146 = sext i32 %145 to i64
  %147 = mul nsw i64 %141, %146
  %148 = srem i64 %147, 1000000007
  %149 = trunc i64 %148 to i32
  call void @_Z3incRii(ptr noundef nonnull align 4 dereferenceable(4) @ans, i32 noundef %149)
  br label %150

150:                                              ; preds = %132
  %151 = load i64, ptr %8, align 8, !tbaa !12
  %152 = add nsw i64 %151, 1
  store i64 %152, ptr %7, align 8, !tbaa !12
  br label %127, !llvm.loop !14

153:                                              ; preds = %131
  %154 = load i32, ptr @ans, align 4, !tbaa !5
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %154)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %156 = load i32, ptr %1, align 4
  ret i32 %156
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3incRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4num1xx(i64 noundef, i64 noundef) #4

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

attributes #0 = { 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 #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 = { inlinehint 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}


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

@tot = external dso_local local_unnamed_addr global i32, align 4
@prime = external dso_local local_unnamed_addr global [4641589 x i32], align 16
@g = external dso_local local_unnamed_addr global [4641589 x i32], align 16
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z10calc_i2phix(i64 noundef) 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  store i32 1, ptr getelementptr inbounds (i8, ptr @g, i64 4), align 4, !tbaa !5
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  br label %5

2:                                                ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %4 = load i64, ptr %1, align 8, !tbaa !9
  %.not42 = icmp slt i64 %4, 1
  br i1 %.not42, label %._crit_edge, label %.lr.ph44

5:                                                ; preds = %0, %.critedge
  %indvars.iv47 = phi i64 [ 2, %0 ], [ %indvars.iv.next48, %.critedge ]
  %6 = phi i32 [ %tot.promoted, %0 ], [ %17, %.critedge ]
  %7 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %indvars.iv47
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %.not37 = icmp eq i32 %8, 0
  br i1 %.not37, label %9, label %._crit_edge51

._crit_edge51:                                    ; preds = %5
  %.pre = trunc nuw nsw i64 %indvars.iv47 to i32
  br label %16

9:                                                ; preds = %5
  %10 = add nsw i32 %6, 1
  store i32 %10, ptr @tot, align 4, !tbaa !5
  %11 = sext i32 %6 to i64
  %12 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %11
  %13 = trunc nuw nsw i64 %indvars.iv47 to i32
  store i32 %13, ptr %12, align 4, !tbaa !5
  %14 = trunc i64 %indvars.iv47 to i32
  %15 = add i32 %14, -1
  store i32 %15, ptr %7, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %._crit_edge51, %9
  %.pre-phi = phi i32 [ %.pre, %._crit_edge51 ], [ %13, %9 ]
  %17 = phi i32 [ %6, %._crit_edge51 ], [ %10, %9 ]
  %18 = udiv i32 4641588, %.pre-phi
  %19 = icmp sgt i32 %17, 0
  br i1 %19, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %16
  %wide.trip.count = zext nneg i32 %17 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %31
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %31 ]
  %20 = getelementptr inbounds [4641589 x i32], ptr @prime, i64 0, i64 %indvars.iv
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %.not38 = icmp sgt i32 %21, %18
  br i1 %.not38, label %.critedge, label %22

22:                                               ; preds = %.lr.ph
  %23 = srem i32 %.pre-phi, %21
  %24 = icmp eq i32 %23, 0
  %25 = load i32, ptr %7, align 4, !tbaa !5
  br i1 %24, label %26, label %31

26:                                               ; preds = %22
  %27 = mul nsw i32 %25, %21
  %28 = sext i32 %21 to i64
  %29 = mul nsw i64 %indvars.iv47, %28
  %30 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %29
  store i32 %27, ptr %30, align 4, !tbaa !5
  br label %.critedge

31:                                               ; preds = %22
  %32 = add nsw i32 %21, -1
  %33 = mul nsw i32 %25, %32
  %34 = sext i32 %21 to i64
  %35 = mul nsw i64 %indvars.iv47, %34
  %36 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %35
  store i32 %33, ptr %36, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !11

.critedge:                                        ; preds = %31, %.lr.ph, %16, %26
  %37 = add nsw i64 %indvars.iv47, -1
  %38 = getelementptr inbounds [4641589 x i32], ptr @g, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = mul nuw nsw i64 %indvars.iv47, %indvars.iv47
  %42 = urem i64 %41, 1000000007
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = mul nsw i64 %42, %44
  %46 = add nsw i64 %45, %40
  %47 = srem i64 %46, 1000000007
  %48 = trunc nsw i64 %47 to i32
  store i32 %48, ptr %7, align 4, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond50.not = icmp eq i64 %indvars.iv.next48, 4641589
  br i1 %exitcond50.not, label %2, label %5, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph44, %2
  %49 = load i32, ptr @ans, align 4, !tbaa !5
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %49)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0

.lr.ph44:                                         ; preds = %2, %.lr.ph44
  %51 = phi i64 [ %64, %.lr.ph44 ], [ %4, %2 ]
  %.043 = phi i64 [ %63, %.lr.ph44 ], [ 1, %2 ]
  %52 = udiv i64 %51, %.043
  %53 = sdiv i64 %51, %52
  %54 = call noundef i32 @_Z4num1xx(i64 noundef %.043, i64 noundef %53)
  %55 = sext i32 %54 to i64
  %56 = load i64, ptr %1, align 8, !tbaa !9
  %57 = sdiv i64 %56, %.043
  %58 = call noundef i32 @_Z10calc_i2phix(i64 noundef %57)
  %59 = sext i32 %58 to i64
  %60 = mul nsw i64 %59, %55
  %61 = srem i64 %60, 1000000007
  %62 = trunc nsw i64 %61 to i32
  call void @_Z3incRii(ptr noundef nonnull align 4 dereferenceable(4) @ans, i32 noundef %62)
  %63 = add nuw nsw i64 %53, 1
  %64 = load i64, ptr %1, align 8, !tbaa !9
  %.not.not = icmp slt i64 %53, %64
  br i1 %.not.not, label %.lr.ph44, label %._crit_edge, !llvm.loop !14
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3incRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4num1xx(i64 noundef, i64 noundef) local_unnamed_addr #4

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

attributes #0 = { 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 #1 = { mustprogress 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 = { 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 = { inlinehint 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 #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 = !{!"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}


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