; LLVM IR from tangjz/acm-icpc :: self_training/2016-07-11 (E)

; 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 i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@e = external dso_local global [101 x [101 x i32]], align 16
@f = external dso_local global [11 x [101 x i64]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 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 i64, align 8
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @s, ptr noundef @t)
  br label %12

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

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %20
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %23
  %25 = getelementptr inbounds [101 x i32], ptr %24, i64 0, i64 0
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %25, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [101 x i32], ptr %21, i64 0, i64 %28
  store i32 %18, ptr %29, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %32
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %35
  %37 = getelementptr inbounds [101 x i32], ptr %36, i64 0, i64 0
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [101 x i32], ptr %33, i64 0, i64 %40
  store i32 %30, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %12, !llvm.loop !9

42:                                               ; preds = %12
  %43 = load i32, ptr @s, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [101 x i64], ptr @f, i64 0, i64 %44
  store i64 1, ptr %45, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %99, %42
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = load i32, ptr @t, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %102

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %95, %51
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %91, %57
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %61
  %63 = getelementptr inbounds [101 x i32], ptr %62, i64 0, i64 0
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = icmp sle i32 %59, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %69
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [101 x i32], ptr %70, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  store i32 %74, ptr %8, align 4, !tbaa !5
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %76
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [101 x i64], ptr %77, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !11
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %84
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [101 x i64], ptr %85, i64 0, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = add nsw i64 %89, %81
  store i64 %90, ptr %88, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %91

91:                                               ; preds = %67
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %7, align 4, !tbaa !5
  br label %58, !llvm.loop !13

94:                                               ; preds = %66
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %6, align 4, !tbaa !5
  br label %52, !llvm.loop !14

98:                                               ; preds = %56
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %4, align 4, !tbaa !5
  br label %46, !llvm.loop !15

102:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %118, %102
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = load i32, ptr @n, align 4, !tbaa !5
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %108, label %107

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

108:                                              ; preds = %103
  %109 = load i32, ptr @t, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %110
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [101 x i64], ptr %111, i64 0, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !11
  %116 = load i64, ptr %9, align 8, !tbaa !11
  %117 = add nsw i64 %116, %115
  store i64 %117, ptr %9, align 8, !tbaa !11
  br label %118

118:                                              ; preds = %108
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %10, align 4, !tbaa !5
  br label %103, !llvm.loop !16

121:                                              ; preds = %107
  %122 = load i64, ptr %9, align 8, !tbaa !11
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %122)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %124 = load i32, ptr %1, align 4
  ret i32 %124
}

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

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

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

declare i32 @printf(ptr noundef, ...) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !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"

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@e = external dso_local local_unnamed_addr global [101 x [101 x i32]], align 16
@f = external dso_local local_unnamed_addr global [11 x [101 x i64]], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %4 = load i32, ptr @m, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @m, align 4, !tbaa !5
  %.not26 = icmp eq i32 %4, 0
  br i1 %.not26, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %10, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %9, i64 %13
  store i32 %7, ptr %14, align 4, !tbaa !5
  %15 = sext i32 %7 to i64
  %16 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %16, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %15, i64 %19
  store i32 %8, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %21 = load i32, ptr @m, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %0
  %23 = load i32, ptr @s, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [101 x i64], ptr @f, i64 0, i64 %24
  store i64 1, ptr %25, align 8, !tbaa !11
  %26 = load i32, ptr @t, align 4, !tbaa !5
  %27 = icmp sgt i32 %26, 0
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br i1 %27, label %.preheader25.lr.ph, label %.preheader

.preheader25.lr.ph:                               ; preds = %._crit_edge
  %28 = icmp sgt i32 %.pre, 0
  br i1 %28, label %.preheader25.us.preheader, label %._crit_edge37

.preheader25.us.preheader:                        ; preds = %.preheader25.lr.ph
  %wide.trip.count49 = zext nneg i32 %26 to i64
  %wide.trip.count44 = zext nneg i32 %.pre to i64
  br label %.preheader25.us

.preheader25.us:                                  ; preds = %.preheader25.us.preheader, %._crit_edge32.us
  %indvars.iv46 = phi i64 [ 0, %.preheader25.us.preheader ], [ %indvars.iv.next47, %._crit_edge32.us ]
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  br label %.preheader24.us

29:                                               ; preds = %29, %.lr.ph29.us.new
  %indvars.iv = phi i64 [ 1, %.lr.ph29.us.new ], [ %indvars.iv.next.1, %29 ]
  %niter = phi i64 [ 0, %.lr.ph29.us.new ], [ %niter.next.1, %29 ]
  %30 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %indvars.iv41, i64 %indvars.iv
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = load i64, ptr %53, align 8, !tbaa !11
  %33 = sext i32 %31 to i64
  %34 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv.next47, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = add nsw i64 %35, %32
  store i64 %36, ptr %34, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %indvars.iv41, i64 %indvars.iv.next
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = load i64, ptr %53, align 8, !tbaa !11
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv.next47, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = add nsw i64 %42, %39
  store i64 %43, ptr %41, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge30.us.loopexit.unr-lcssa, label %29, !llvm.loop !13

._crit_edge30.us.loopexit.unr-lcssa:              ; preds = %29, %.lr.ph29.us
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph29.us ], [ %indvars.iv.next.1, %29 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge30.us, label %._crit_edge30.us.loopexit.epilog-lcssa

._crit_edge30.us.loopexit.epilog-lcssa:           ; preds = %._crit_edge30.us.loopexit.unr-lcssa
  %44 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %indvars.iv41, i64 %indvars.iv.unr
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = load i64, ptr %53, align 8, !tbaa !11
  %47 = sext i32 %45 to i64
  %48 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv.next47, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = add nsw i64 %49, %46
  store i64 %50, ptr %48, align 8, !tbaa !11
  br label %._crit_edge30.us

._crit_edge30.us:                                 ; preds = %._crit_edge30.us.loopexit.epilog-lcssa, %._crit_edge30.us.loopexit.unr-lcssa, %.preheader24.us
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond45.not = icmp eq i64 %indvars.iv.next42, %wide.trip.count44
  br i1 %exitcond45.not, label %._crit_edge32.us, label %.preheader24.us, !llvm.loop !14

.preheader24.us:                                  ; preds = %.preheader25.us, %._crit_edge30.us
  %indvars.iv41 = phi i64 [ 0, %.preheader25.us ], [ %indvars.iv.next42, %._crit_edge30.us ]
  %51 = getelementptr inbounds [101 x [101 x i32]], ptr @e, i64 0, i64 %indvars.iv41
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %.not2327.us = icmp slt i32 %52, 1
  br i1 %.not2327.us, label %._crit_edge30.us, label %.lr.ph29.us

.lr.ph29.us:                                      ; preds = %.preheader24.us
  %53 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv46, i64 %indvars.iv41
  %54 = zext nneg i32 %52 to i64
  %xtraiter = and i64 %54, 1
  %55 = icmp eq i32 %52, 1
  br i1 %55, label %._crit_edge30.us.loopexit.unr-lcssa, label %.lr.ph29.us.new

.lr.ph29.us.new:                                  ; preds = %.lr.ph29.us
  %unroll_iter = and i64 %54, 2147483646
  br label %29

._crit_edge32.us:                                 ; preds = %._crit_edge30.us
  %exitcond50.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count49
  br i1 %exitcond50.not, label %.preheader, label %.preheader25.us, !llvm.loop !15

.preheader:                                       ; preds = %._crit_edge32.us, %._crit_edge
  %56 = icmp sgt i32 %.pre, 0
  br i1 %56, label %.lr.ph36, label %._crit_edge37

.lr.ph36:                                         ; preds = %.preheader
  %57 = sext i32 %26 to i64
  %wide.trip.count54 = zext nneg i32 %.pre to i64
  %min.iters.check = icmp ult i32 %.pre, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph36
  %indvars.iv51.ph = phi i64 [ 0, %.lr.ph36 ], [ %n.vec, %middle.block ]
  %.01934.ph = phi i64 [ 0, %.lr.ph36 ], [ %63, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph36
  %n.vec = and i64 %wide.trip.count54, 2147483644
  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> [ zeroinitializer, %vector.ph ], [ %60, %vector.body ]
  %vec.phi56 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %61, %vector.body ]
  %58 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %57, i64 %index
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load = load <2 x i64>, ptr %58, align 8, !tbaa !11
  %wide.load57 = load <2 x i64>, ptr %59, align 8, !tbaa !11
  %60 = add <2 x i64> %wide.load, %vec.phi
  %61 = add <2 x i64> %wide.load57, %vec.phi56
  %index.next = add nuw i64 %index, 4
  %62 = icmp eq i64 %index.next, %n.vec
  br i1 %62, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %61, %60
  %63 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count54
  br i1 %cmp.n, label %._crit_edge37, label %scalar.ph.preheader

._crit_edge37:                                    ; preds = %scalar.ph, %middle.block, %.preheader25.lr.ph, %.preheader
  %.019.lcssa = phi i64 [ 0, %.preheader ], [ 0, %.preheader25.lr.ph ], [ %63, %middle.block ], [ %67, %scalar.ph ]
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.019.lcssa)
  ret i32 0

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %scalar.ph ], [ %indvars.iv51.ph, %scalar.ph.preheader ]
  %.01934 = phi i64 [ %67, %scalar.ph ], [ %.01934.ph, %scalar.ph.preheader ]
  %65 = getelementptr inbounds [11 x [101 x i64]], ptr @f, i64 0, i64 %57, i64 %indvars.iv51
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = add nsw i64 %66, %.01934
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next52, %wide.trip.count54
  br i1 %exitcond55.not, label %._crit_edge37, label %scalar.ph, !llvm.loop !19
}

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

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

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

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

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !10, !18, !17}


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