; LLVM IR from tangjz/acm-icpc :: lydsy (4805)

; 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
@pr = external dso_local global [78499 x i32], align 16
@d = external dso_local global [1000001 x i32], align 16
@sz = external dso_local global i32, align 4
@que = external dso_local global [31623 x i32], align 16
@f = external dso_local global [1000001 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

14:                                               ; preds = %10
  %15 = load i32, ptr %2, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = icmp ne i64 %18, 0
  br i1 %19, label %35, label %20

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

35:                                               ; preds = %20, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  br label %36

36:                                               ; preds = %92, %35
  %37 = load i32, ptr %2, align 4, !tbaa !9
  %38 = load i32, ptr %4, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [78499 x i32], ptr @pr, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = mul nsw i32 %37, %41
  store i32 %42, ptr %5, align 4, !tbaa !9
  %43 = icmp slt i32 %42, 1000001
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %36
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [78499 x i32], ptr @pr, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = load i32, ptr %5, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !9
  %53 = load i32, ptr %2, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = load i32, ptr %4, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [78499 x i32], ptr @pr, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = icmp eq i32 %56, %60
  br i1 %61, label %62, label %76

62:                                               ; preds = %45
  %63 = load i32, ptr %2, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [78499 x i32], ptr @pr, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = mul nsw i64 %66, %71
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %74
  store i64 %72, ptr %75, align 8, !tbaa !5
  store i32 5, ptr %3, align 4
  br label %95

76:                                               ; preds = %45
  %77 = load i32, ptr %2, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %4, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [78499 x i32], ptr @pr, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = sub nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = mul nsw i64 %80, %86
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %89
  store i64 %87, ptr %90, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %76
  br label %92

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

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

96:                                               ; preds = %95
  %97 = load i32, ptr %2, align 4, !tbaa !9
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !5
  %102 = load i32, ptr %2, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = add nsw i64 %105, %101
  store i64 %106, ptr %104, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %96
  %108 = load i32, ptr %2, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %2, align 4, !tbaa !9
  br label %10, !llvm.loop !13

110:                                              ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %111 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  br label %112

112:                                              ; preds = %133, %110
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = icmp sle i32 %113, %114
  br i1 %115, label %117, label %116

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

117:                                              ; preds = %112
  %118 = load i32, ptr %6, align 4, !tbaa !9
  %119 = load i32, ptr %7, align 4, !tbaa !9
  %120 = sdiv i32 %118, %119
  store i32 %120, ptr %9, align 4, !tbaa !9
  %121 = load i32, ptr %6, align 4, !tbaa !9
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = sdiv i32 %121, %122
  store i32 %123, ptr %8, align 4, !tbaa !9
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = icmp sge i32 %124, 1000001
  br i1 %125, label %126, label %132

126:                                              ; preds = %117
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = load i32, ptr @sz, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr @sz, align 4, !tbaa !9
  %130 = sext i32 %128 to i64
  %131 = getelementptr inbounds [31623 x i32], ptr @que, i64 0, i64 %130
  store i32 %127, ptr %131, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %126, %117
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %7, align 4, !tbaa !9
  br label %112, !llvm.loop !14

136:                                              ; preds = %116
  %137 = load i32, ptr @sz, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr @que, i64 %138
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @que, ptr noundef %139)
  %140 = load i32, ptr %6, align 4, !tbaa !9
  %141 = call noundef i64 @_Z4calci(i32 noundef %140)
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %141)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %143 = load i32, ptr %1, align 4
  ret i32 %143
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr 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 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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"

@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local local_unnamed_addr global [78499 x i32], align 16
@d = external dso_local local_unnamed_addr global [1000001 x i32], align 16
@sz = external dso_local local_unnamed_addr global i32, align 4
@que = external dso_local global [31623 x i32], align 16
@f = external dso_local local_unnamed_addr global [1000001 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4calci(i32 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 i32, align 4
  store i64 1, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 8, !tbaa !5
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !9
  br label %5

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

5:                                                ; preds = %0, %.loopexit
  %indvars.iv47 = phi i64 [ 2, %0 ], [ %indvars.iv.next48, %.loopexit ]
  %6 = phi i32 [ %tot.promoted, %0 ], [ %17, %.loopexit ]
  %7 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %indvars.iv47
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %.not35 = icmp eq i64 %8, 0
  br i1 %.not35, label %9, label %._crit_edge50

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

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

16:                                               ; preds = %._crit_edge50, %9
  %.pre-phi = phi i32 [ %.pre, %._crit_edge50 ], [ %11, %9 ]
  %17 = phi i32 [ %6, %._crit_edge50 ], [ %12, %9 ]
  %18 = load i32, ptr @pr, align 16, !tbaa !9
  %19 = mul nsw i32 %18, %.pre-phi
  %20 = icmp slt i32 %19, 1000001
  br i1 %20, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %16
  %21 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %indvars.iv47
  br label %22

22:                                               ; preds = %.lr.ph, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %34 ]
  %23 = phi i32 [ %19, %.lr.ph ], [ %41, %34 ]
  %24 = phi i32 [ %18, %.lr.ph ], [ %40, %34 ]
  %25 = sext i32 %23 to i64
  %26 = getelementptr inbounds [1000001 x i32], ptr @d, i64 0, i64 %25
  store i32 %24, ptr %26, align 4, !tbaa !9
  %27 = load i32, ptr %21, align 4, !tbaa !9
  %28 = icmp eq i32 %27, %24
  %29 = load i64, ptr %7, align 8, !tbaa !5
  br i1 %28, label %30, label %34

30:                                               ; preds = %22
  %31 = sext i32 %24 to i64
  %32 = mul nsw i64 %29, %31
  %33 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %25
  store i64 %32, ptr %33, align 8, !tbaa !5
  br label %.loopexit

34:                                               ; preds = %22
  %35 = add nsw i32 %24, -1
  %36 = sext i32 %35 to i64
  %37 = mul nsw i64 %29, %36
  %38 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %25
  store i64 %37, ptr %38, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = getelementptr inbounds [78499 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = mul nsw i32 %40, %.pre-phi
  %42 = icmp slt i32 %41, 1000001
  br i1 %42, label %22, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %34, %16, %30
  %43 = add nsw i64 %indvars.iv47, -1
  %44 = getelementptr inbounds [1000001 x i64], ptr @f, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = load i64, ptr %7, align 8, !tbaa !5
  %47 = add nsw i64 %46, %45
  store i64 %47, ptr %7, align 8, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next48, 1000001
  br i1 %exitcond.not, label %2, label %5, !llvm.loop !13

._crit_edge:                                      ; preds = %62, %2
  %48 = phi i32 [ %sz.promoted, %2 ], [ %63, %62 ]
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr @que, i64 %49
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @que, ptr noundef nonnull %50)
  %51 = load i32, ptr %1, align 4, !tbaa !9
  %52 = call noundef i64 @_Z4calci(i32 noundef %51)
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %52)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.lr.ph42:                                         ; preds = %2, %62
  %.02941 = phi i32 [ %64, %62 ], [ 1, %2 ]
  %54 = phi i32 [ %63, %62 ], [ %sz.promoted, %2 ]
  %55 = udiv i32 %4, %.02941
  %56 = udiv i32 %4, %55
  %57 = icmp sgt i32 %55, 1000000
  br i1 %57, label %58, label %62

58:                                               ; preds = %.lr.ph42
  %59 = add nsw i32 %54, 1
  store i32 %59, ptr @sz, align 4, !tbaa !9
  %60 = sext i32 %54 to i64
  %61 = getelementptr inbounds [31623 x i32], ptr @que, i64 0, i64 %60
  store i32 %55, ptr %61, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %.lr.ph42, %58
  %63 = phi i32 [ %54, %.lr.ph42 ], [ %59, %58 ]
  %64 = add nuw nsw i32 %56, 1
  %.not.not = icmp slt i32 %56, %4
  br i1 %.not.not, label %.lr.ph42, 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 uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr 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 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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