; LLVM IR from tangjz/acm-icpc :: projecteuler (643)

; 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
@d = external dso_local global [21544347 x i32], align 16
@pr = external dso_local global [21544347 x i32], align 16
@f = external dso_local global [21544347 x i32], align 16
@g = external dso_local global [4643 x i32], align 16
@n = external dso_local global i64, align 8
@.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 @_Z8calc_phix(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 i32, align 4
  %7 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  store i32 1, ptr getelementptr inbounds ([21544347 x i32], ptr @f, 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 %8

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

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

12:                                               ; preds = %8
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [21544347 x i32], ptr @d, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %32, label %18

18:                                               ; preds = %12
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [21544347 x i32], ptr @d, i64 0, i64 %21
  store i32 %19, ptr %22, align 4, !tbaa !5
  %23 = load i32, ptr @tot, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr @tot, align 4, !tbaa !5
  %25 = sext i32 %23 to i64
  %26 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %25
  store i32 %19, ptr %26, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sub nsw i32 %27, 1
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %18, %12
  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
  br label %33

33:                                               ; preds = %86, %32
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = mul nsw i32 %34, %38
  store i32 %39, ptr %5, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 21544347
  br i1 %40, label %42, label %41

41:                                               ; preds = %33
  store i32 5, ptr %3, align 4
  br label %89

42:                                               ; preds = %33
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [21544347 x i32], ptr @d, i64 0, i64 %48
  store i32 %46, ptr %49, align 4, !tbaa !5
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [21544347 x i32], ptr @d, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp eq i32 %53, %57
  br i1 %58, label %59, label %72

59:                                               ; preds = %42
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = mul nsw i32 %63, %67
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %70
  store i32 %68, ptr %71, align 4, !tbaa !5
  store i32 5, ptr %3, align 4
  br label %89

72:                                               ; preds = %42
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sub nsw i32 %80, 1
  %82 = mul nsw i32 %76, %81
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %84
  store i32 %82, ptr %85, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %72
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !9

89:                                               ; preds = %59, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = load i32, ptr %2, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = add nsw i32 %99, %95
  store i32 %100, ptr %98, align 4, !tbaa !5
  %101 = icmp sge i32 %100, 1000000007
  br i1 %101, label %102, label %109

102:                                              ; preds = %90
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1000000007
  store i32 %107, ptr %105, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 0
  br label %109

109:                                              ; preds = %102, %90
  %110 = phi i1 [ false, %90 ], [ %108, %102 ]
  br label %111

111:                                              ; preds = %109
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !11

114:                                              ; preds = %11
  br label %115

115:                                              ; preds = %154, %114
  %116 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %157

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  %119 = load i64, ptr @n, align 8, !tbaa !12
  %120 = sdiv i64 %119, 21544347
  %121 = add nsw i64 %120, 1
  %122 = mul i64 %121, 4
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 -1, i64 %122, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 2, ptr %7, align 8, !tbaa !12
  br label %123

123:                                              ; preds = %151, %118
  %124 = load i64, ptr %7, align 8, !tbaa !12
  %125 = load i64, ptr @n, align 8, !tbaa !12
  %126 = icmp sle i64 %124, %125
  br i1 %126, label %128, label %127

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

128:                                              ; preds = %123
  %129 = load i64, ptr @n, align 8, !tbaa !12
  %130 = load i64, ptr %7, align 8, !tbaa !12
  %131 = sdiv i64 %129, %130
  %132 = call noundef i32 @_Z8calc_phix(i64 noundef %131)
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = add nsw i32 %133, %132
  store i32 %134, ptr %6, align 4, !tbaa !5
  %135 = icmp sge i32 %134, 1000000007
  br i1 %135, label %136, label %140

136:                                              ; preds = %128
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1000000007
  store i32 %138, ptr %6, align 4, !tbaa !5
  %139 = icmp ne i32 %138, 0
  br label %140

140:                                              ; preds = %136, %128
  %141 = phi i1 [ false, %128 ], [ %139, %136 ]
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %6, align 4, !tbaa !5
  %144 = icmp slt i32 %143, 0
  br i1 %144, label %145, label %149

145:                                              ; preds = %140
  %146 = load i32, ptr %6, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1000000007
  store i32 %147, ptr %6, align 4, !tbaa !5
  %148 = icmp ne i32 %147, 0
  br label %149

149:                                              ; preds = %145, %140
  %150 = phi i1 [ false, %140 ], [ %148, %145 ]
  br label %151

151:                                              ; preds = %149
  %152 = load i64, ptr %7, align 8, !tbaa !12
  %153 = shl i64 %152, 1
  store i64 %153, ptr %7, align 8, !tbaa !12
  br label %123, !llvm.loop !14

154:                                              ; preds = %127
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %155)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %115, !llvm.loop !15

157:                                              ; preds = %115
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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}
!15 = distinct !{!15, !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
@d = external dso_local local_unnamed_addr global [21544347 x i32], align 16
@pr = external dso_local local_unnamed_addr global [21544347 x i32], align 16
@f = external dso_local local_unnamed_addr global [21544347 x i32], align 16
@g = external dso_local local_unnamed_addr global [4643 x i32], align 16
@n = external dso_local global i64, align 8
@.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 @_Z8calc_phix(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 4), align 4, !tbaa !5
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  br label %3

.preheader:                                       ; preds = %.loopexit
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = icmp eq i32 %1, 1
  br i1 %2, label %.lr.ph53, label %._crit_edge54

3:                                                ; preds = %0, %.loopexit
  %indvars.iv59 = phi i64 [ 2, %0 ], [ %indvars.iv.next60, %.loopexit ]
  %4 = phi i32 [ %tot.promoted, %0 ], [ %15, %.loopexit ]
  %5 = getelementptr inbounds [21544347 x i32], ptr @d, i64 0, i64 %indvars.iv59
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not43 = icmp eq i32 %6, 0
  %7 = trunc nuw nsw i64 %indvars.iv59 to i32
  br i1 %.not43, label %8, label %._crit_edge62

8:                                                ; preds = %3
  store i32 %7, ptr %5, align 4, !tbaa !5
  %9 = add nsw i32 %4, 1
  store i32 %9, ptr @tot, align 4, !tbaa !5
  %10 = sext i32 %4 to i64
  %11 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %10
  store i32 %7, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %indvars.iv59
  %13 = trunc i64 %indvars.iv59 to i32
  %14 = add i32 %13, -1
  store i32 %14, ptr %12, align 4, !tbaa !5
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %3, %8
  %15 = phi i32 [ %9, %8 ], [ %4, %3 ]
  %16 = load i32, ptr @pr, align 16, !tbaa !5
  %17 = mul nsw i32 %16, %7
  %18 = icmp slt i32 %17, 21544347
  br i1 %18, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %._crit_edge62
  %19 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %indvars.iv59
  br label %20

20:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %21 = phi i32 [ %17, %.lr.ph ], [ %37, %31 ]
  %22 = phi i32 [ %16, %.lr.ph ], [ %36, %31 ]
  %23 = sext i32 %21 to i64
  %24 = getelementptr inbounds [21544347 x i32], ptr @d, i64 0, i64 %23
  store i32 %22, ptr %24, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = icmp eq i32 %25, %22
  %27 = load i32, ptr %19, align 4, !tbaa !5
  br i1 %26, label %28, label %31

28:                                               ; preds = %20
  %29 = mul nsw i32 %27, %22
  %30 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %23
  store i32 %29, ptr %30, align 4, !tbaa !5
  br label %.loopexit

31:                                               ; preds = %20
  %32 = add nsw i32 %22, -1
  %33 = mul nsw i32 %27, %32
  %34 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %23
  store i32 %33, ptr %34, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = getelementptr inbounds [21544347 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = mul nsw i32 %36, %7
  %38 = icmp slt i32 %37, 21544347
  br i1 %38, label %20, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %31, %._crit_edge62, %28
  %39 = add nsw i64 %indvars.iv59, -1
  %40 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = getelementptr inbounds [21544347 x i32], ptr @f, i64 0, i64 %indvars.iv59
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, %41
  %45 = icmp sgt i32 %44, 1000000006
  %46 = add nsw i32 %44, -1000000007
  %spec.select = select i1 %45, i32 %46, i32 %44
  store i32 %spec.select, ptr %42, align 4, !tbaa !5
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next60, 21544347
  br i1 %exitcond.not, label %.preheader, label %3, !llvm.loop !11

.lr.ph53:                                         ; preds = %.preheader, %._crit_edge
  %47 = load i64, ptr @n, align 8, !tbaa !12
  %48 = sdiv i64 %47, 21544347
  %49 = shl nsw i64 %48, 2
  %50 = add nsw i64 %49, 4
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @g, i8 -1, i64 %50, i1 false)
  %.not49 = icmp slt i64 %47, 2
  br i1 %.not49, label %._crit_edge, label %.lr.ph52

._crit_edge:                                      ; preds = %.lr.ph52, %.lr.ph53
  %.031.lcssa = phi i32 [ 0, %.lr.ph53 ], [ %.2, %.lr.ph52 ]
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.031.lcssa)
  %52 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %.lr.ph53, label %._crit_edge54, !llvm.loop !14

.lr.ph52:                                         ; preds = %.lr.ph53, %.lr.ph52
  %54 = phi i64 [ %62, %.lr.ph52 ], [ %47, %.lr.ph53 ]
  %.051 = phi i64 [ %61, %.lr.ph52 ], [ 2, %.lr.ph53 ]
  %.03150 = phi i32 [ %.2, %.lr.ph52 ], [ 0, %.lr.ph53 ]
  %55 = sdiv i64 %54, %.051
  %56 = tail call noundef i32 @_Z8calc_phix(i64 noundef %55)
  %57 = add nsw i32 %56, %.03150
  %58 = icmp sgt i32 %57, 1000000006
  %59 = add nsw i32 %57, -1000000007
  %spec.select44 = select i1 %58, i32 %59, i32 %57
  %60 = icmp slt i32 %spec.select44, 1
  %.2.v = select i1 %60, i32 1000000006, i32 -1
  %.2 = add nsw i32 %.2.v, %spec.select44
  %61 = shl i64 %.051, 1
  %62 = load i64, ptr @n, align 8, !tbaa !12
  %.not = icmp sgt i64 %61, %62
  br i1 %.not, label %._crit_edge, label %.lr.ph52, !llvm.loop !15

._crit_edge54:                                    ; preds = %._crit_edge, %.preheader
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }

!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}
!15 = distinct !{!15, !10}


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