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

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

@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@t = external dso_local global i64, align 8
@r = external dso_local global [100001 x i64], align 16
@c = external dso_local global [100001 x i64], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4calcPxi(ptr noundef, 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @t)
  br label %5

5:                                                ; preds = %9, %0
  %6 = load i64, ptr @t, align 8, !tbaa !5
  %7 = add nsw i64 %6, -1
  store i64 %7, ptr @t, align 8, !tbaa !5
  %8 = icmp ne i64 %6, 0
  br i1 %8, label %9, label %21

9:                                                ; preds = %5
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
  %11 = load i32, ptr %2, align 4, !tbaa !9
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100001 x i64], ptr @r, i64 0, i64 %12
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = add nsw i64 %14, 1
  store i64 %15, ptr %13, align 8, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [100001 x i64], ptr @c, i64 0, i64 %17
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = add nsw i64 %19, 1
  store i64 %20, ptr %18, align 8, !tbaa !5
  br label %5, !llvm.loop !11

21:                                               ; preds = %5
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %34, %21
  %23 = load i32, ptr %2, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = load i64, ptr @n, align 8, !tbaa !5
  %26 = icmp sle i64 %24, %25
  br i1 %26, label %27, label %37

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100001 x i64], ptr @r, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = load i64, ptr @r, align 16, !tbaa !5
  %33 = add nsw i64 %32, %31
  store i64 %33, ptr @r, align 16, !tbaa !5
  br label %34

34:                                               ; preds = %27
  %35 = load i32, ptr %2, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %2, align 4, !tbaa !9
  br label %22, !llvm.loop !13

37:                                               ; preds = %22
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %50, %37
  %39 = load i32, ptr %2, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = load i64, ptr @m, align 8, !tbaa !5
  %42 = icmp sle i64 %40, %41
  br i1 %42, label %43, label %53

43:                                               ; preds = %38
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100001 x i64], ptr @c, i64 0, i64 %45
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = load i64, ptr @c, align 16, !tbaa !5
  %49 = add nsw i64 %48, %47
  store i64 %49, ptr @c, align 16, !tbaa !5
  br label %50

50:                                               ; preds = %43
  %51 = load i32, ptr %2, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %2, align 4, !tbaa !9
  br label %38, !llvm.loop !14

53:                                               ; preds = %38
  %54 = load i64, ptr @r, align 16, !tbaa !5
  %55 = load i64, ptr @n, align 8, !tbaa !5
  %56 = srem i64 %54, %55
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %72

58:                                               ; preds = %53
  %59 = load i64, ptr @c, align 16, !tbaa !5
  %60 = load i64, ptr @m, align 8, !tbaa !5
  %61 = srem i64 %59, %60
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %63, label %72

63:                                               ; preds = %58
  %64 = load i64, ptr @n, align 8, !tbaa !5
  %65 = trunc i64 %64 to i32
  %66 = call noundef i64 @_Z4calcPxi(ptr noundef @r, i32 noundef %65)
  %67 = load i64, ptr @m, align 8, !tbaa !5
  %68 = trunc i64 %67 to i32
  %69 = call noundef i64 @_Z4calcPxi(ptr noundef @c, i32 noundef %68)
  %70 = add nsw i64 %66, %69
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %70)
  br label %96

72:                                               ; preds = %58, %53
  %73 = load i64, ptr @r, align 16, !tbaa !5
  %74 = load i64, ptr @n, align 8, !tbaa !5
  %75 = srem i64 %73, %74
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %77, label %82

77:                                               ; preds = %72
  %78 = load i64, ptr @n, align 8, !tbaa !5
  %79 = trunc i64 %78 to i32
  %80 = call noundef i64 @_Z4calcPxi(ptr noundef @r, i32 noundef %79)
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %80)
  br label %95

82:                                               ; preds = %72
  %83 = load i64, ptr @c, align 16, !tbaa !5
  %84 = load i64, ptr @m, align 8, !tbaa !5
  %85 = srem i64 %83, %84
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %87, label %92

87:                                               ; preds = %82
  %88 = load i64, ptr @m, align 8, !tbaa !5
  %89 = trunc i64 %88 to i32
  %90 = call noundef i64 @_Z4calcPxi(ptr noundef @c, i32 noundef %89)
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %90)
  br label %94

92:                                               ; preds = %82
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %94

94:                                               ; preds = %92, %87
  br label %95

95:                                               ; preds = %94, %77
  br label %96

96:                                               ; preds = %95, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

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 = { 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"

@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@t = external dso_local global i64, align 8
@r = external dso_local global [100001 x i64], align 16
@c = external dso_local global [100001 x i64], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4calcPxi(ptr noundef, 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
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @t)
  %4 = load i64, ptr @t, align 8, !tbaa !5
  %5 = add nsw i64 %4, -1
  store i64 %5, ptr @t, align 8, !tbaa !5
  %.not8 = icmp eq i64 %4, 0
  br i1 %.not8, label %.preheader6, label %.lr.ph

.preheader6:                                      ; preds = %.lr.ph, %0
  %6 = load i64, ptr @n, align 8, !tbaa !5
  %r.promoted = load i64, ptr @r, align 16, !tbaa !5
  %.not39 = icmp slt i64 %6, 1
  br i1 %.not39, label %.preheader, label %.lr.ph11.preheader

.lr.ph11.preheader:                               ; preds = %.preheader6
  %min.iters.check = icmp ult i64 %6, 4
  br i1 %min.iters.check, label %.lr.ph11.preheader53, label %vector.ph

.lr.ph11.preheader53:                             ; preds = %middle.block, %.lr.ph11.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph11.preheader ], [ %ind.end, %middle.block ]
  %.ph54 = phi i64 [ %r.promoted, %.lr.ph11.preheader ], [ %13, %middle.block ]
  br label %.lr.ph11

vector.ph:                                        ; preds = %.lr.ph11.preheader
  %n.vec = and i64 %6, 9223372036854775804
  %ind.end = or disjoint i64 %n.vec, 1
  %7 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %r.promoted, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %7, %vector.ph ], [ %10, %vector.body ]
  %vec.phi28 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %11, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %8 = getelementptr inbounds [100001 x i64], ptr @r, i64 0, i64 %offset.idx
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %wide.load = load <2 x i64>, ptr %8, align 8, !tbaa !5
  %wide.load29 = load <2 x i64>, ptr %9, align 8, !tbaa !5
  %10 = add <2 x i64> %vec.phi, %wide.load
  %11 = add <2 x i64> %vec.phi28, %wide.load29
  %index.next = add nuw i64 %index, 4
  %12 = icmp eq i64 %index.next, %n.vec
  br i1 %12, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %11, %10
  %13 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %6, %n.vec
  br i1 %cmp.n, label %.preheader.loopexit, label %.lr.ph11.preheader53

.lr.ph:                                           ; preds = %0, %.lr.ph
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %15 = load i32, ptr %1, align 4, !tbaa !13
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [100001 x i64], ptr @r, i64 0, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = add nsw i64 %18, 1
  store i64 %19, ptr %17, align 8, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !13
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100001 x i64], ptr @c, i64 0, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = add nsw i64 %23, 1
  store i64 %24, ptr %22, align 8, !tbaa !5
  %25 = load i64, ptr @t, align 8, !tbaa !5
  %26 = add nsw i64 %25, -1
  store i64 %26, ptr @t, align 8, !tbaa !5
  %.not = icmp eq i64 %25, 0
  br i1 %.not, label %.preheader6, label %.lr.ph, !llvm.loop !15

.preheader.loopexit:                              ; preds = %.lr.ph11, %middle.block
  %.lcssa27 = phi i64 [ %13, %middle.block ], [ %39, %.lr.ph11 ]
  store i64 %.lcssa27, ptr @r, align 16, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader6
  %27 = phi i64 [ %r.promoted, %.preheader6 ], [ %.lcssa27, %.preheader.loopexit ]
  %28 = load i64, ptr @m, align 8, !tbaa !5
  %c.promoted = load i64, ptr @c, align 16, !tbaa !5
  %.not513 = icmp slt i64 %28, 1
  br i1 %.not513, label %._crit_edge, label %.lr.ph15.preheader

.lr.ph15.preheader:                               ; preds = %.preheader
  %min.iters.check32 = icmp ult i64 %28, 4
  br i1 %min.iters.check32, label %.lr.ph15.preheader49, label %vector.ph33

.lr.ph15.preheader49:                             ; preds = %middle.block30, %.lr.ph15.preheader
  %indvars.iv20.ph = phi i64 [ 1, %.lr.ph15.preheader ], [ %ind.end36, %middle.block30 ]
  %.ph = phi i64 [ %c.promoted, %.lr.ph15.preheader ], [ %35, %middle.block30 ]
  br label %.lr.ph15

vector.ph33:                                      ; preds = %.lr.ph15.preheader
  %n.vec35 = and i64 %28, 9223372036854775804
  %ind.end36 = or disjoint i64 %n.vec35, 1
  %29 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %c.promoted, i64 0
  br label %vector.body38

vector.body38:                                    ; preds = %vector.body38, %vector.ph33
  %index39 = phi i64 [ 0, %vector.ph33 ], [ %index.next45, %vector.body38 ]
  %vec.phi40 = phi <2 x i64> [ %29, %vector.ph33 ], [ %32, %vector.body38 ]
  %vec.phi41 = phi <2 x i64> [ zeroinitializer, %vector.ph33 ], [ %33, %vector.body38 ]
  %offset.idx42 = or disjoint i64 %index39, 1
  %30 = getelementptr inbounds [100001 x i64], ptr @c, i64 0, i64 %offset.idx42
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load43 = load <2 x i64>, ptr %30, align 8, !tbaa !5
  %wide.load44 = load <2 x i64>, ptr %31, align 8, !tbaa !5
  %32 = add <2 x i64> %vec.phi40, %wide.load43
  %33 = add <2 x i64> %vec.phi41, %wide.load44
  %index.next45 = add nuw i64 %index39, 4
  %34 = icmp eq i64 %index.next45, %n.vec35
  br i1 %34, label %middle.block30, label %vector.body38, !llvm.loop !16

middle.block30:                                   ; preds = %vector.body38
  %bin.rdx46 = add <2 x i64> %33, %32
  %35 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx46)
  %cmp.n47 = icmp eq i64 %28, %n.vec35
  br i1 %cmp.n47, label %._crit_edge.loopexit, label %.lr.ph15.preheader49

.lr.ph11:                                         ; preds = %.lr.ph11.preheader53, %.lr.ph11
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph11 ], [ %indvars.iv.ph, %.lr.ph11.preheader53 ]
  %36 = phi i64 [ %39, %.lr.ph11 ], [ %.ph54, %.lr.ph11.preheader53 ]
  %37 = getelementptr inbounds [100001 x i64], ptr @r, i64 0, i64 %indvars.iv
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = add nsw i64 %36, %38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv, %6
  br i1 %exitcond, label %.preheader.loopexit, label %.lr.ph11, !llvm.loop !17

.lr.ph15:                                         ; preds = %.lr.ph15.preheader49, %.lr.ph15
  %indvars.iv20 = phi i64 [ %indvars.iv.next21, %.lr.ph15 ], [ %indvars.iv20.ph, %.lr.ph15.preheader49 ]
  %40 = phi i64 [ %43, %.lr.ph15 ], [ %.ph, %.lr.ph15.preheader49 ]
  %41 = getelementptr inbounds [100001 x i64], ptr @c, i64 0, i64 %indvars.iv20
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = add nsw i64 %40, %42
  %indvars.iv.next21 = add nuw nsw i64 %indvars.iv20, 1
  %exitcond23 = icmp eq i64 %indvars.iv20, %28
  br i1 %exitcond23, label %._crit_edge.loopexit, label %.lr.ph15, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %.lr.ph15, %middle.block30
  %.lcssa = phi i64 [ %35, %middle.block30 ], [ %43, %.lr.ph15 ]
  store i64 %.lcssa, ptr @c, align 16, !tbaa !5
  %44 = trunc i64 %28 to i32
  %45 = add i32 %44, 1
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %46 = phi i64 [ %c.promoted, %.preheader ], [ %.lcssa, %._crit_edge.loopexit ]
  %storemerge4.lcssa = phi i32 [ 1, %.preheader ], [ %45, %._crit_edge.loopexit ]
  store i32 %storemerge4.lcssa, ptr %1, align 4, !tbaa !13
  %47 = srem i64 %27, %6
  %48 = icmp eq i64 %47, 0
  %49 = srem i64 %46, %28
  %50 = icmp eq i64 %49, 0
  br i1 %48, label %51, label %62

51:                                               ; preds = %._crit_edge
  %52 = trunc i64 %6 to i32
  %53 = call noundef i64 @_Z4calcPxi(ptr noundef nonnull @r, i32 noundef %52)
  br i1 %50, label %54, label %60

54:                                               ; preds = %51
  %55 = load i64, ptr @m, align 8, !tbaa !5
  %56 = trunc i64 %55 to i32
  %57 = call noundef i64 @_Z4calcPxi(ptr noundef nonnull @c, i32 noundef %56)
  %58 = add nsw i64 %57, %53
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %58)
  br label %69

60:                                               ; preds = %51
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %53)
  br label %69

62:                                               ; preds = %._crit_edge
  br i1 %50, label %63, label %67

63:                                               ; preds = %62
  %64 = trunc i64 %28 to i32
  %65 = call noundef i64 @_Z4calcPxi(ptr noundef nonnull @c, i32 noundef %64)
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %65)
  br label %69

67:                                               ; preds = %62
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %69

69:                                               ; preds = %60, %67, %63, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

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 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10, !12, !11}
!18 = distinct !{!18, !10, !12, !11}


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