; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (2082（普通母函数）)

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

@a = external dso_local global [55 x i32], align 16
@b = external dso_local global [55 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

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

12:                                               ; preds = %101, %0
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %2, align 4, !tbaa !5
  %15 = icmp ne i32 %13, 0
  br i1 %15, label %16, label %104

16:                                               ; preds = %12
  call void @llvm.memset.p0.i64(ptr align 16 @a, i8 0, i64 220, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @b, i8 0, i64 220, i1 false)
  store i32 1, ptr @a, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %83, %16
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp sle i32 %18, 26
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %86

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %60, %21
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = icmp sle i32 %24, 50
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %63

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %56, %27
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %32, label %39

32:                                               ; preds = %28
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = mul nsw i32 %33, %34
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = add nsw i32 %35, %36
  %38 = icmp sle i32 %37, 50
  br label %39

39:                                               ; preds = %32, %28
  %40 = phi i1 [ false, %28 ], [ %38, %32 ]
  br i1 %40, label %42, label %41

41:                                               ; preds = %39
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %59

42:                                               ; preds = %39
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [55 x i32], ptr @a, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = mul nsw i32 %47, %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = add nsw i32 %49, %50
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [55 x i32], ptr @b, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = add nsw i32 %54, %46
  store i32 %55, ptr %53, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %42
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %7, align 4, !tbaa !5
  br label %28, !llvm.loop !9

59:                                               ; preds = %41
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %6, align 4, !tbaa !5
  br label %23, !llvm.loop !11

63:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %79, %63
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = icmp sle i32 %65, 50
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 13, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %82

68:                                               ; preds = %64
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [55 x i32], ptr @b, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [55 x i32], ptr @a, i64 0, i64 %74
  store i32 %72, ptr %75, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [55 x i32], ptr @b, i64 0, i64 %77
  store i32 0, ptr %78, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %68
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %8, align 4, !tbaa !5
  br label %64, !llvm.loop !12

82:                                               ; preds = %67
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %4, align 4, !tbaa !5
  br label %17, !llvm.loop !13

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

87:                                               ; preds = %98, %86
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = icmp sle i32 %88, 50
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 16, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %101

91:                                               ; preds = %87
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [55 x i32], ptr @a, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = add nsw i32 %96, %95
  store i32 %97, ptr %9, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %91
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %10, align 4, !tbaa !5
  br label %87, !llvm.loop !14

101:                                              ; preds = %90
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %102)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %12, !llvm.loop !15

104:                                              ; preds = %12
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %105 = load i32, ptr %1, align 4
  ret i32 %105
}

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

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

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

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

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

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

@a = external dso_local local_unnamed_addr global [55 x i32], align 16
@b = external dso_local local_unnamed_addr global [55 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  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 !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr %1, align 4, !tbaa !5
  %.not41 = icmp eq i32 %4, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.preheader32.preheader
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(220) @a, i8 0, i64 220, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(220) @b, i8 0, i64 220, i1 false)
  store i32 1, ptr @a, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  br label %6

6:                                                ; preds = %.lr.ph, %vector.body.preheader
  %indvars.iv52 = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next53, %vector.body.preheader ]
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %.not3033 = icmp slt i32 %8, 0
  br i1 %.not3033, label %vector.body.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %6
  %9 = add nuw i32 %8, 1
  %wide.trip.count = zext i32 %9 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge
  %indvars.iv44 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next45, %.critedge ]
  %10 = getelementptr inbounds [55 x i32], ptr @a, i64 0, i64 %indvars.iv44
  br label %11

11:                                               ; preds = %.preheader, %18
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %18 ]
  %12 = mul nuw nsw i64 %indvars.iv, %indvars.iv52
  %13 = add nuw nsw i64 %12, %indvars.iv44
  %14 = icmp ult i64 %13, 51
  br i1 %14, label %18, label %.critedge

.critedge:                                        ; preds = %11, %18
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond47.not = icmp eq i64 %indvars.iv.next45, 51
  br i1 %exitcond47.not, label %vector.body.preheader, label %.preheader, !llvm.loop !9

vector.body.preheader:                            ; preds = %.critedge, %6
  %wide.load = load <4 x i32>, ptr @b, align 16, !tbaa !5
  %wide.load60 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 16), align 16, !tbaa !5
  store <4 x i32> %wide.load, ptr @a, align 16, !tbaa !5
  store <4 x i32> %wide.load60, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr @b, align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 16), align 16, !tbaa !5
  %wide.load.1 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 32), align 16, !tbaa !5
  %wide.load60.1 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 48), align 16, !tbaa !5
  store <4 x i32> %wide.load.1, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !5
  store <4 x i32> %wide.load60.1, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 32), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 48), align 16, !tbaa !5
  %wide.load.2 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 64), align 16, !tbaa !5
  %wide.load60.2 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 80), align 16, !tbaa !5
  store <4 x i32> %wide.load.2, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !5
  store <4 x i32> %wide.load60.2, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 64), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 80), align 16, !tbaa !5
  %wide.load.3 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 96), align 16, !tbaa !5
  %wide.load60.3 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 112), align 16, !tbaa !5
  store <4 x i32> %wide.load.3, ptr getelementptr inbounds (i8, ptr @a, i64 96), align 16, !tbaa !5
  store <4 x i32> %wide.load60.3, ptr getelementptr inbounds (i8, ptr @a, i64 112), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 96), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 112), align 16, !tbaa !5
  %wide.load.4 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 128), align 16, !tbaa !5
  %wide.load60.4 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 144), align 16, !tbaa !5
  store <4 x i32> %wide.load.4, ptr getelementptr inbounds (i8, ptr @a, i64 128), align 16, !tbaa !5
  store <4 x i32> %wide.load60.4, ptr getelementptr inbounds (i8, ptr @a, i64 144), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 128), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 144), align 16, !tbaa !5
  %wide.load.5 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 160), align 16, !tbaa !5
  %wide.load60.5 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @b, i64 176), align 16, !tbaa !5
  store <4 x i32> %wide.load.5, ptr getelementptr inbounds (i8, ptr @a, i64 160), align 16, !tbaa !5
  store <4 x i32> %wide.load60.5, ptr getelementptr inbounds (i8, ptr @a, i64 176), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 160), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @b, i64 176), align 16, !tbaa !5
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 192), align 16, !tbaa !5
  store i32 %15, ptr getelementptr inbounds (i8, ptr @a, i64 192), align 16, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @b, i64 192), align 16, !tbaa !5
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 196), align 4, !tbaa !5
  store i32 %16, ptr getelementptr inbounds (i8, ptr @a, i64 196), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @b, i64 196), align 4, !tbaa !5
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 200), align 8, !tbaa !5
  store i32 %17, ptr getelementptr inbounds (i8, ptr @a, i64 200), align 8, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @b, i64 200), align 8, !tbaa !5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next53, 27
  br i1 %exitcond55.not, label %.preheader32.preheader, label %6, !llvm.loop !11

18:                                               ; preds = %11
  %19 = load i32, ptr %10, align 4, !tbaa !5
  %20 = getelementptr inbounds [55 x i32], ptr @b, i64 0, i64 %13
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = add nsw i32 %21, %19
  store i32 %22, ptr %20, 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 %11, !llvm.loop !12

.preheader32.preheader:                           ; preds = %vector.body.preheader
  %23 = load <32 x i32>, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  %24 = load <16 x i32>, ptr getelementptr inbounds (i8, ptr @a, i64 132), align 4, !tbaa !5
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 196), align 4, !tbaa !5
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 200), align 8, !tbaa !5
  %27 = call i32 @llvm.vector.reduce.add.v32i32(<32 x i32> %23)
  %28 = call i32 @llvm.vector.reduce.add.v16i32(<16 x i32> %24)
  %op.rdx = add i32 %27, %28
  %op.rdx61 = add i32 %op.rdx, %25
  %op.rdx62 = add i32 %op.rdx61, %26
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %op.rdx62)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.preheader32.preheader, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 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: 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v32i32(<32 x i32>) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v16i32(<16 x i32>) #4

attributes #0 = { mustprogress nofree 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass