; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/288 Division 2/Problem C (C)

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 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 [1000 x i32], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4000, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %14 = getelementptr inbounds [1000 x i32], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 4000, i1 false)
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = icmp sgt i32 %16, %17
  br i1 %18, label %19, label %21

19:                                               ; preds = %0
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef -1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %112

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

22:                                               ; preds = %104, %21
  %23 = load i32, ptr %11, align 4, !tbaa !5
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %10, align 4
  br label %107

27:                                               ; preds = %22
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %5)
  store i32 0, ptr %9, align 4, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = add nsw i32 400, %29
  %31 = sub nsw i32 %30, 1
  store i32 %31, ptr %12, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %50, %27
  %33 = load i32, ptr %12, align 4, !tbaa !5
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = add nsw i32 400, %34
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sub nsw i32 %35, %36
  %38 = icmp sge i32 %33, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %32
  %41 = load i32, ptr %12, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [1000 x i32], ptr %7, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %49

46:                                               ; preds = %40
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %8, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %46, %40
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %12, align 4, !tbaa !5
  %52 = add nsw i32 %51, -1
  store i32 %52, ptr %12, align 4, !tbaa !5
  br label %32, !llvm.loop !9

53:                                               ; preds = %39
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = icmp sge i32 %54, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  br label %104

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 400, %59
  %61 = sub nsw i32 %60, 1
  store i32 %61, ptr %13, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %91, %58
  %63 = load i32, ptr %13, align 4, !tbaa !5
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = add nsw i32 400, %64
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sub nsw i32 %65, %66
  %68 = icmp sge i32 %63, %67
  br i1 %68, label %69, label %73

69:                                               ; preds = %62
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = icmp slt i32 %70, %71
  br label %73

73:                                               ; preds = %69, %62
  %74 = phi i1 [ false, %62 ], [ %72, %69 ]
  br i1 %74, label %76, label %75

75:                                               ; preds = %73
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %94

76:                                               ; preds = %73
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1000 x i32], ptr %7, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 1
  br i1 %81, label %82, label %90

82:                                               ; preds = %76
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !5
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [1000 x i32], ptr %7, i64 0, i64 %88
  store i32 1, ptr %89, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %82, %76
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr %13, align 4, !tbaa !5
  br label %62, !llvm.loop !11

94:                                               ; preds = %75
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %98, label %100

98:                                               ; preds = %94
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef -1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %107

100:                                              ; preds = %94
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = add nsw i32 %102, %101
  store i32 %103, ptr %6, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %100, %57
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %11, align 4, !tbaa !5
  br label %22, !llvm.loop !12

107:                                              ; preds = %98, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %108 = load i32, ptr %10, align 4
  switch i32 %108, label %112 [
    i32 2, label %109
  ]

109:                                              ; preds = %107
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %110)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %112

112:                                              ; preds = %109, %107, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4000, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %113 = load i32, ptr %1, align 4
  ret i32 %113
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 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
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [1000 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4000) %5, i8 0, i64 4000, i1 false)
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %7 = load i32, ptr %3, align 4, !tbaa !5
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = icmp sgt i32 %7, %8
  br i1 %9, label %._crit_edge44.thread, label %.preheader33

.preheader33:                                     ; preds = %0
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %.not3147 = icmp sgt i32 %10, 0
  br i1 %.not3147, label %.lr.ph50, label %._crit_edge44.thread

.lr.ph50:                                         ; preds = %.preheader33, %53
  %.02149 = phi i32 [ %54, %53 ], [ 0, %.preheader33 ]
  %.02648 = phi i32 [ %.127, %53 ], [ 0, %.preheader33 ]
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %4)
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = add nsw i32 %12, 399
  %14 = add nsw i32 %12, 400
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sub i32 %14, %15
  %.not36 = icmp slt i32 %13, %16
  br i1 %.not36, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph50
  %17 = sext i32 %12 to i64
  %18 = add nsw i64 %17, 399
  %19 = sext i32 %16 to i64
  %20 = add nsw i64 %17, 400
  %21 = sub nsw i64 %20, %19
  %min.iters.check = icmp ult i64 %21, 8
  br i1 %min.iters.check, label %.lr.ph.preheader65, label %vector.ph

.lr.ph.preheader65:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %18, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.02437.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %32, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %21, -8
  %ind.end = sub nsw i64 %18, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %29, %vector.body ]
  %vec.phi62 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %30, %vector.body ]
  %offset.idx = sub i64 %18, %index
  %22 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %offset.idx
  %23 = getelementptr inbounds i8, ptr %22, i64 -12
  %24 = getelementptr inbounds i8, ptr %22, i64 -28
  %wide.load = load <4 x i32>, ptr %23, align 4, !tbaa !5
  %reverse = shufflevector <4 x i32> %wide.load, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load63 = load <4 x i32>, ptr %24, align 4, !tbaa !5
  %reverse64 = shufflevector <4 x i32> %wide.load63, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %25 = icmp eq <4 x i32> %reverse, <i32 1, i32 1, i32 1, i32 1>
  %26 = icmp eq <4 x i32> %reverse64, <i32 1, i32 1, i32 1, i32 1>
  %27 = zext <4 x i1> %25 to <4 x i32>
  %28 = zext <4 x i1> %26 to <4 x i32>
  %29 = add <4 x i32> %vec.phi, %27
  %30 = add <4 x i32> %vec.phi62, %28
  %index.next = add nuw i64 %index, 8
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %30, %29
  %32 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %21, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader65

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %32, %middle.block ], [ %spec.select, %.lr.ph ]
  %33 = load i32, ptr %3, align 4
  %.not30 = icmp slt i32 %spec.select.lcssa, %33
  br i1 %.not30, label %.preheader, label %53

._crit_edge.thread:                               ; preds = %.lr.ph50
  %34 = load i32, ptr %3, align 4
  %.not3057 = icmp sgt i32 %34, 0
  br i1 %.not3057, label %._crit_edge44.thread, label %53

.preheader:                                       ; preds = %._crit_edge
  br i1 %.not36, label %._crit_edge44.thread, label %.lr.ph43.preheader

.lr.ph43.preheader:                               ; preds = %.preheader
  %35 = sext i32 %12 to i64
  %36 = add nsw i64 %35, 399
  %37 = sext i32 %16 to i64
  br label %.lr.ph43

.lr.ph:                                           ; preds = %.lr.ph.preheader65, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader65 ]
  %.02437 = phi i32 [ %spec.select, %.lr.ph ], [ %.02437.ph, %.lr.ph.preheader65 ]
  %38 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %indvars.iv
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 1
  %41 = zext i1 %40 to i32
  %spec.select = add nuw nsw i32 %.02437, %41
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not.not = icmp sgt i64 %indvars.iv, %19
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge44:                                    ; preds = %47
  br i1 %49, label %._crit_edge44.thread, label %51

.lr.ph43:                                         ; preds = %.lr.ph43.preheader, %47
  %indvars.iv53 = phi i64 [ %36, %.lr.ph43.preheader ], [ %indvars.iv.next54, %47 ]
  %.02341 = phi i32 [ 0, %.lr.ph43.preheader ], [ %.1, %47 ]
  %.240 = phi i32 [ %spec.select.lcssa, %.lr.ph43.preheader ], [ %.3, %47 ]
  %42 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %indvars.iv53
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %.not32 = icmp eq i32 %43, 1
  br i1 %.not32, label %47, label %44

44:                                               ; preds = %.lr.ph43
  %45 = add nsw i32 %.240, 1
  %46 = add nsw i32 %.02341, 1
  store i32 1, ptr %42, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %.lr.ph43, %44
  %.3 = phi i32 [ %45, %44 ], [ %.240, %.lr.ph43 ]
  %.1 = phi i32 [ %46, %44 ], [ %.02341, %.lr.ph43 ]
  %indvars.iv.next54 = add nsw i64 %indvars.iv53, -1
  %48 = icmp sgt i64 %indvars.iv53, %37
  %49 = icmp slt i32 %.3, %33
  %50 = select i1 %48, i1 %49, i1 false
  br i1 %50, label %.lr.ph43, label %._crit_edge44, !llvm.loop !14

51:                                               ; preds = %._crit_edge44
  %52 = add nsw i32 %.1, %.02648
  br label %53

53:                                               ; preds = %._crit_edge.thread, %._crit_edge, %51
  %.127 = phi i32 [ %.02648, %._crit_edge ], [ %52, %51 ], [ %.02648, %._crit_edge.thread ]
  %54 = add nuw nsw i32 %.02149, 1
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %.not31 = icmp slt i32 %54, %55
  br i1 %.not31, label %.lr.ph50, label %._crit_edge44.thread, !llvm.loop !15

._crit_edge44.thread:                             ; preds = %53, %._crit_edge44, %.preheader, %._crit_edge.thread, %.preheader33, %0
  %.sink = phi i32 [ -1, %0 ], [ 0, %.preheader33 ], [ -1, %._crit_edge.thread ], [ -1, %.preheader ], [ -1, %._crit_edge44 ], [ %.127, %53 ]
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.sink)
  call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  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: 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !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 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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