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

; 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 [6068321 x i32], align 16
@d = external dso_local global [6068321 x i32], align 16
@f = external dso_local global [6068321 x i32], align 16
@n = external dso_local global i32, align 4
@sz = external dso_local global i32, align 4
@fact = external dso_local global [31623 x i32], align 16
@g = external dso_local global [31623 x i32], 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 i32 @_Z9calc_iphii(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
  store i32 0, ptr %1, align 4
  store i32 1, ptr getelementptr inbounds ([6068321 x i32], ptr @f, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %7

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

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

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

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

31:                                               ; preds = %17, %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  br label %32

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

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

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

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

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

85:                                               ; preds = %71
  br label %86

86:                                               ; preds = %85
  %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 %32, !llvm.loop !9

89:                                               ; preds = %58, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  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 [6068321 x i32], ptr @f, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = mul nsw i64 %98, %103
  %105 = add nsw i64 %96, %104
  %106 = srem i64 %105, 1000000007
  %107 = trunc i64 %106 to i32
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %109
  store i32 %107, ptr %110, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %90
  %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 %7, !llvm.loop !11

114:                                              ; preds = %10
  %115 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %134, %114
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = mul nsw i64 %118, %120
  %122 = load i32, ptr @n, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = icmp sle i64 %121, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %116
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %137

126:                                              ; preds = %116
  %127 = load i32, ptr @n, align 4, !tbaa !5
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sdiv i32 %127, %128
  %130 = load i32, ptr @sz, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr @sz, align 4, !tbaa !5
  %132 = sext i32 %130 to i64
  %133 = getelementptr inbounds [31623 x i32], ptr @fact, i64 0, i64 %132
  store i32 %129, ptr %133, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %126
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %6, align 4, !tbaa !5
  br label %116, !llvm.loop !12

137:                                              ; preds = %125
  %138 = load i32, ptr @sz, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i32, ptr @fact, i64 %139
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @fact, ptr noundef %140)
  %141 = load i32, ptr @sz, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = mul i64 %142, 4
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 -1, i64 %143, i1 false)
  %144 = load i32, ptr @n, align 4, !tbaa !5
  %145 = call noundef i32 @_Z9calc_iphii(i32 noundef %144)
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %145)
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) #4

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = distinct !{!12, !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
@pr = external dso_local local_unnamed_addr global [6068321 x i32], align 16
@d = external dso_local local_unnamed_addr global [6068321 x i32], align 16
@f = external dso_local local_unnamed_addr global [6068321 x i32], align 16
@n = external dso_local global i32, align 4
@sz = external dso_local local_unnamed_addr global i32, align 4
@fact = external dso_local global [31623 x i32], align 16
@g = external dso_local local_unnamed_addr global [31623 x i32], 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 i32 @_Z9calc_iphii(i32 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 %6

1:                                                ; preds = %.loopexit
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %4 = sext i32 %3 to i64
  %sz.promoted = load i32, ptr @sz, align 4, !tbaa !5
  %.not37 = icmp slt i32 %3, 1
  br i1 %.not37, label %54, label %.lr.ph39.preheader

.lr.ph39.preheader:                               ; preds = %1
  %5 = sext i32 %sz.promoted to i64
  br label %.lr.ph39

6:                                                ; preds = %0, %.loopexit
  %indvars.iv45 = phi i64 [ 2, %0 ], [ %indvars.iv.next46, %.loopexit ]
  %7 = phi i32 [ %tot.promoted, %0 ], [ %18, %.loopexit ]
  %8 = getelementptr inbounds [6068321 x i32], ptr @d, i64 0, i64 %indvars.iv45
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %.not32 = icmp eq i32 %9, 0
  %10 = trunc nuw nsw i64 %indvars.iv45 to i32
  br i1 %.not32, label %11, label %._crit_edge55

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

._crit_edge55:                                    ; preds = %6, %11
  %18 = phi i32 [ %12, %11 ], [ %7, %6 ]
  %19 = load i32, ptr @pr, align 16, !tbaa !5
  %20 = mul nsw i32 %19, %10
  %21 = icmp slt i32 %20, 6068321
  br i1 %21, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %._crit_edge55
  %22 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %indvars.iv45
  br label %23

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

31:                                               ; preds = %23
  %32 = mul nsw i32 %30, %25
  %33 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %26
  store i32 %32, ptr %33, align 4, !tbaa !5
  br label %.loopexit

34:                                               ; preds = %23
  %35 = add nsw i32 %25, -1
  %36 = mul nsw i32 %30, %35
  %37 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %26
  store i32 %36, ptr %37, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = getelementptr inbounds [6068321 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = mul nsw i32 %39, %10
  %41 = icmp slt i32 %40, 6068321
  br i1 %41, label %23, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %34, %._crit_edge55, %31
  %42 = add nsw i64 %indvars.iv45, -1
  %43 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [6068321 x i32], ptr @f, i64 0, i64 %indvars.iv45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = mul nsw i64 %indvars.iv45, %48
  %50 = add nsw i64 %49, %45
  %51 = srem i64 %50, 1000000007
  %52 = trunc nsw i64 %51 to i32
  store i32 %52, ptr %46, align 4, !tbaa !5
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next46, 6068321
  br i1 %exitcond.not, label %1, label %6, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph39
  %53 = trunc nsw i64 %indvars.iv.next51 to i32
  store i32 %53, ptr @sz, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %._crit_edge, %1
  %55 = phi i32 [ %53, %._crit_edge ], [ %sz.promoted, %1 ]
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr @fact, i64 %56
  tail call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @fact, ptr noundef nonnull %57)
  %58 = load i32, ptr @sz, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = shl nsw i64 %59, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @g, i8 -1, i64 %60, i1 false)
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = tail call noundef i32 @_Z9calc_iphii(i32 noundef %61)
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %62)
  ret i32 0

.lr.ph39:                                         ; preds = %.lr.ph39.preheader, %.lr.ph39
  %indvars.iv50 = phi i64 [ %5, %.lr.ph39.preheader ], [ %indvars.iv.next51, %.lr.ph39 ]
  %indvars.iv48 = phi i64 [ 1, %.lr.ph39.preheader ], [ %indvars.iv.next49, %.lr.ph39 ]
  %64 = trunc nuw nsw i64 %indvars.iv48 to i32
  %65 = udiv i32 %3, %64
  %indvars.iv.next51 = add nsw i64 %indvars.iv50, 1
  %66 = getelementptr inbounds [31623 x i32], ptr @fact, i64 0, i64 %indvars.iv50
  store i32 %65, ptr %66, align 4, !tbaa !5
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %67 = mul nuw nsw i64 %indvars.iv.next49, %indvars.iv.next49
  %.not = icmp sgt i64 %67, %4
  br i1 %.not, label %._crit_edge, label %.lr.ph39, !llvm.loop !12
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; 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 = { 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 #4 = { 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 = distinct !{!12, !10}


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