; LLVM IR from MinhasKamal/AlgorithmImplementations :: playWithNumbers/factorial (DigitsOfFactorial)

; 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 [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [785 x i32], align 16
  %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 [10 x i32], align 16
  store i32 0, ptr %1, align 4
  br label %9

9:                                                ; preds = %162, %0
  call void @llvm.lifetime.start.p0(i64 3140, 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
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %17, %9
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 785
  br i1 %12, label %13, label %20

13:                                               ; preds = %10
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %15
  store i32 -1, ptr %16, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %13
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %4, align 4, !tbaa !5
  br label %10, !llvm.loop !9

20:                                               ; preds = %10
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %27, label %24

24:                                               ; preds = %20
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 366
  br i1 %26, label %27, label %28

27:                                               ; preds = %24, %20
  store i32 2, ptr %5, align 4
  br label %160

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %29 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %29, ptr %4, align 4, !tbaa !5
  store i32 784, ptr %6, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %41, %28
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %33, label %44

33:                                               ; preds = %30
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = srem i32 %34, 10
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %37
  store i32 %35, ptr %38, align 4, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sdiv i32 %39, 10
  store i32 %40, ptr %4, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %33
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr %6, align 4, !tbaa !5
  br label %30, !llvm.loop !11

44:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sub nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %103, %44
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %50, label %106

50:                                               ; preds = %47
  store i32 784, ptr %6, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %73, %50
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = icmp sge i32 %55, 0
  br i1 %56, label %57, label %76

57:                                               ; preds = %51
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = mul nsw i32 %58, %62
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = add nsw i32 %63, %64
  store i32 %65, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = srem i32 %66, 10
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %69
  store i32 %67, ptr %70, align 4, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sdiv i32 %71, 10
  store i32 %72, ptr %7, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %57
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %6, align 4, !tbaa !5
  br label %51, !llvm.loop !12

76:                                               ; preds = %51
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = srem i32 %77, 10
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %80
  store i32 %78, ptr %81, align 4, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = sdiv i32 %82, 10
  store i32 %83, ptr %7, align 4, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %87
  store i32 %84, ptr %88, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %99, %76
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = icmp slt i32 %93, 1
  br i1 %94, label %95, label %102

95:                                               ; preds = %89
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %97
  store i32 -1, ptr %98, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %95
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !5
  br label %89, !llvm.loop !13

102:                                              ; preds = %89
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = add nsw i32 %104, -1
  store i32 %105, ptr %4, align 4, !tbaa !5
  br label %47, !llvm.loop !14

106:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #4
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 40, i1 false)
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %132, %106
  %108 = load i32, ptr %4, align 4, !tbaa !5
  %109 = icmp slt i32 %108, 10
  br i1 %109, label %110, label %135

110:                                              ; preds = %107
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %128, %110
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = icmp slt i32 %112, 785
  br i1 %113, label %114, label %131

114:                                              ; preds = %111
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [785 x i32], ptr %2, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = icmp eq i32 %115, %119
  br i1 %120, label %121, label %127

121:                                              ; preds = %114
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %124, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %121, %114
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %6, align 4, !tbaa !5
  br label %111, !llvm.loop !15

131:                                              ; preds = %111
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %4, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %4, align 4, !tbaa !5
  br label %107, !llvm.loop !16

135:                                              ; preds = %107
  %136 = load i32, ptr %3, align 4, !tbaa !5
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %136)
  %138 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  %139 = load i32, ptr %138, align 16, !tbaa !5
  %140 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 1
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 2
  %143 = load i32, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 3
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 4
  %147 = load i32, ptr %146, align 16, !tbaa !5
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %139, i32 noundef %141, i32 noundef %143, i32 noundef %145, i32 noundef %147)
  %149 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 5
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 6
  %152 = load i32, ptr %151, align 8, !tbaa !5
  %153 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 7
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 8
  %156 = load i32, ptr %155, align 16, !tbaa !5
  %157 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 9
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %150, i32 noundef %152, i32 noundef %154, i32 noundef %156, i32 noundef %158)
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  store i32 0, ptr %5, align 4
  br label %160

160:                                              ; preds = %135, %27
  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 3140, ptr %2) #4
  %161 = load i32, ptr %5, align 4
  switch i32 %161, label %164 [
    i32 0, label %162
    i32 2, label %163
  ]

162:                                              ; preds = %160
  br label %9

163:                                              ; preds = %160
  ret i32 0

164:                                              ; preds = %160
  unreachable
}

; 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

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

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

attributes #0 = { 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 = { 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/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}
!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"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [785 x i32], align 16
  %2 = alloca i32, align 4
  %3 = getelementptr inbounds i8, ptr %1, i64 3136
  call void @llvm.lifetime.start.p0(i64 3140, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(3140) %1, i8 -1, i64 3140, i1 false), !tbaa !5
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %5 = load i32, ptr %2, align 4
  %6 = add i32 %5, -367
  %or.cond114 = icmp ult i32 %6, -366
  br i1 %or.cond114, label %._crit_edge115, label %.lr.ph.preheader.preheader

.lr.ph.preheader.preheader:                       ; preds = %0
  %7 = getelementptr inbounds i8, ptr %1, i64 3136
  %8 = getelementptr inbounds i8, ptr %1, i64 3136
  %9 = getelementptr inbounds i8, ptr %1, i64 3136
  %10 = getelementptr inbounds i8, ptr %1, i64 3136
  %11 = getelementptr inbounds i8, ptr %1, i64 3136
  %12 = getelementptr inbounds i8, ptr %1, i64 3136
  %13 = getelementptr inbounds i8, ptr %1, i64 3136
  %14 = getelementptr inbounds i8, ptr %1, i64 3136
  %15 = getelementptr inbounds i8, ptr %1, i64 3136
  %16 = getelementptr inbounds i8, ptr %1, i64 3136
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph.preheader.preheader, %.loopexit235
  %17 = phi i32 [ %259, %.loopexit235 ], [ %5, %.lr.ph.preheader.preheader ]
  br label %.lr.ph

.preheader46:                                     ; preds = %.lr.ph
  %18 = icmp sgt i32 %17, 1
  br i1 %18, label %.preheader45, label %vector.body226.preheader

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 784, %.lr.ph.preheader ]
  %.14049 = phi i32 [ %21, %.lr.ph ], [ %17, %.lr.ph.preheader ]
  %19 = urem i32 %.14049, 10
  %20 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %indvars.iv
  store i32 %19, ptr %20, align 4, !tbaa !5
  %21 = udiv i32 %.14049, 10
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not = icmp ult i32 %.14049, 10
  br i1 %.not, label %.preheader46, label %.lr.ph, !llvm.loop !9

.loopexit:                                        ; preds = %.lr.ph58, %._crit_edge
  %22 = icmp sgt i32 %.24160.in, 2
  br i1 %22, label %.preheader45, label %vector.body226.preheader, !llvm.loop !11

vector.body226.preheader:                         ; preds = %.loopexit, %.preheader46
  br label %vector.body226

.preheader45:                                     ; preds = %.preheader46, %.loopexit
  %.24160.in = phi i32 [ %.24160, %.loopexit ], [ %17, %.preheader46 ]
  %.24160 = add nsw i32 %.24160.in, -1
  %23 = load i32, ptr %3, align 16, !tbaa !5
  %24 = icmp sgt i32 %23, -1
  br i1 %24, label %.lr.ph53, label %._crit_edge

.lr.ph53:                                         ; preds = %.preheader45, %.lr.ph53
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.lr.ph53 ], [ 784, %.preheader45 ]
  %25 = phi i32 [ %32, %.lr.ph53 ], [ %23, %.preheader45 ]
  %26 = phi ptr [ %31, %.lr.ph53 ], [ %3, %.preheader45 ]
  %.152 = phi i32 [ %30, %.lr.ph53 ], [ 0, %.preheader45 ]
  %27 = mul nsw i32 %25, %.24160
  %28 = add nuw nsw i32 %27, %.152
  %29 = urem i32 %28, 10
  store i32 %29, ptr %26, align 4, !tbaa !5
  %30 = udiv i32 %28, 10
  %indvars.iv.next70 = add nsw i64 %indvars.iv69, -1
  %31 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %indvars.iv.next70
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, -1
  br i1 %33, label %.lr.ph53, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph53, %.preheader45
  %.136.lcssa = phi i64 [ 784, %.preheader45 ], [ %indvars.iv.next70, %.lr.ph53 ]
  %.1.lcssa = phi i32 [ 0, %.preheader45 ], [ %30, %.lr.ph53 ]
  %.lcssa = phi ptr [ %3, %.preheader45 ], [ %31, %.lr.ph53 ]
  %34 = urem i32 %.1.lcssa, 10
  store i32 %34, ptr %.lcssa, align 4, !tbaa !5
  %35 = udiv i32 %.1.lcssa, 10
  %36 = shl i64 %.136.lcssa, 32
  %sext = add i64 %36, -4294967296
  %37 = ashr exact i64 %sext, 32
  %38 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %37
  store i32 %35, ptr %38, align 4, !tbaa !5
  %39 = load i32, ptr %1, align 16, !tbaa !5
  %40 = icmp slt i32 %39, 1
  br i1 %40, label %.lr.ph58, label %.loopexit

.lr.ph58:                                         ; preds = %._crit_edge, %.lr.ph58
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph58 ], [ 0, %._crit_edge ]
  %41 = phi ptr [ %42, %.lr.ph58 ], [ %1, %._crit_edge ]
  store i32 -1, ptr %41, align 4, !tbaa !5
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %42 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %indvars.iv.next73
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 1
  br i1 %44, label %.lr.ph58, label %.loopexit, !llvm.loop !13

vector.body226:                                   ; preds = %vector.body226, %vector.body226.preheader
  %index227 = phi i64 [ 0, %vector.body226.preheader ], [ %index.next232.1, %vector.body226 ]
  %vec.phi228 = phi <4 x i32> [ zeroinitializer, %vector.body226.preheader ], [ %59, %vector.body226 ]
  %vec.phi229 = phi <4 x i32> [ zeroinitializer, %vector.body226.preheader ], [ %60, %vector.body226 ]
  %45 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index227
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load230 = load <4 x i32>, ptr %45, align 16, !tbaa !5
  %wide.load231 = load <4 x i32>, ptr %46, align 16, !tbaa !5
  %47 = icmp eq <4 x i32> %wide.load230, zeroinitializer
  %48 = icmp eq <4 x i32> %wide.load231, zeroinitializer
  %49 = zext <4 x i1> %47 to <4 x i32>
  %50 = zext <4 x i1> %48 to <4 x i32>
  %51 = add <4 x i32> %vec.phi228, %49
  %52 = add <4 x i32> %vec.phi229, %50
  %index.next232 = or disjoint i64 %index227, 8
  %53 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next232
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %wide.load230.1 = load <4 x i32>, ptr %53, align 16, !tbaa !5
  %wide.load231.1 = load <4 x i32>, ptr %54, align 16, !tbaa !5
  %55 = icmp eq <4 x i32> %wide.load230.1, zeroinitializer
  %56 = icmp eq <4 x i32> %wide.load231.1, zeroinitializer
  %57 = zext <4 x i1> %55 to <4 x i32>
  %58 = zext <4 x i1> %56 to <4 x i32>
  %59 = add <4 x i32> %51, %57
  %60 = add <4 x i32> %52, %58
  %index.next232.1 = add nuw nsw i64 %index227, 16
  %61 = icmp eq i64 %index.next232.1, 784
  br i1 %61, label %vector.body213.preheader, label %vector.body226, !llvm.loop !14

vector.body213.preheader:                         ; preds = %vector.body226
  %bin.rdx233 = add <4 x i32> %60, %59
  %62 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx233)
  %63 = load i32, ptr %8, align 16, !tbaa !5
  %64 = icmp eq i32 %63, 0
  %65 = zext i1 %64 to i32
  %spec.select = add nuw nsw i32 %62, %65
  br label %vector.body213

vector.body213:                                   ; preds = %vector.body213, %vector.body213.preheader
  %index214 = phi i64 [ 0, %vector.body213.preheader ], [ %index.next219.1, %vector.body213 ]
  %vec.phi215 = phi <4 x i32> [ zeroinitializer, %vector.body213.preheader ], [ %80, %vector.body213 ]
  %vec.phi216 = phi <4 x i32> [ zeroinitializer, %vector.body213.preheader ], [ %81, %vector.body213 ]
  %66 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index214
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load217 = load <4 x i32>, ptr %66, align 16, !tbaa !5
  %wide.load218 = load <4 x i32>, ptr %67, align 16, !tbaa !5
  %68 = icmp eq <4 x i32> %wide.load217, <i32 1, i32 1, i32 1, i32 1>
  %69 = icmp eq <4 x i32> %wide.load218, <i32 1, i32 1, i32 1, i32 1>
  %70 = zext <4 x i1> %68 to <4 x i32>
  %71 = zext <4 x i1> %69 to <4 x i32>
  %72 = add <4 x i32> %vec.phi215, %70
  %73 = add <4 x i32> %vec.phi216, %71
  %index.next219 = or disjoint i64 %index214, 8
  %74 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next219
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load217.1 = load <4 x i32>, ptr %74, align 16, !tbaa !5
  %wide.load218.1 = load <4 x i32>, ptr %75, align 16, !tbaa !5
  %76 = icmp eq <4 x i32> %wide.load217.1, <i32 1, i32 1, i32 1, i32 1>
  %77 = icmp eq <4 x i32> %wide.load218.1, <i32 1, i32 1, i32 1, i32 1>
  %78 = zext <4 x i1> %76 to <4 x i32>
  %79 = zext <4 x i1> %77 to <4 x i32>
  %80 = add <4 x i32> %72, %78
  %81 = add <4 x i32> %73, %79
  %index.next219.1 = add nuw nsw i64 %index214, 16
  %82 = icmp eq i64 %index.next219.1, 784
  br i1 %82, label %vector.body200.preheader, label %vector.body213, !llvm.loop !17

vector.body200.preheader:                         ; preds = %vector.body213
  %bin.rdx220 = add <4 x i32> %81, %80
  %83 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx220)
  %84 = load i32, ptr %9, align 16, !tbaa !5
  %85 = icmp eq i32 %84, 1
  %86 = zext i1 %85 to i32
  %spec.select103 = add nuw nsw i32 %83, %86
  br label %vector.body200

vector.body200:                                   ; preds = %vector.body200, %vector.body200.preheader
  %index201 = phi i64 [ 0, %vector.body200.preheader ], [ %index.next206.1, %vector.body200 ]
  %vec.phi202 = phi <4 x i32> [ zeroinitializer, %vector.body200.preheader ], [ %101, %vector.body200 ]
  %vec.phi203 = phi <4 x i32> [ zeroinitializer, %vector.body200.preheader ], [ %102, %vector.body200 ]
  %87 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index201
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load204 = load <4 x i32>, ptr %87, align 16, !tbaa !5
  %wide.load205 = load <4 x i32>, ptr %88, align 16, !tbaa !5
  %89 = icmp eq <4 x i32> %wide.load204, <i32 2, i32 2, i32 2, i32 2>
  %90 = icmp eq <4 x i32> %wide.load205, <i32 2, i32 2, i32 2, i32 2>
  %91 = zext <4 x i1> %89 to <4 x i32>
  %92 = zext <4 x i1> %90 to <4 x i32>
  %93 = add <4 x i32> %vec.phi202, %91
  %94 = add <4 x i32> %vec.phi203, %92
  %index.next206 = or disjoint i64 %index201, 8
  %95 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next206
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  %wide.load204.1 = load <4 x i32>, ptr %95, align 16, !tbaa !5
  %wide.load205.1 = load <4 x i32>, ptr %96, align 16, !tbaa !5
  %97 = icmp eq <4 x i32> %wide.load204.1, <i32 2, i32 2, i32 2, i32 2>
  %98 = icmp eq <4 x i32> %wide.load205.1, <i32 2, i32 2, i32 2, i32 2>
  %99 = zext <4 x i1> %97 to <4 x i32>
  %100 = zext <4 x i1> %98 to <4 x i32>
  %101 = add <4 x i32> %93, %99
  %102 = add <4 x i32> %94, %100
  %index.next206.1 = add nuw nsw i64 %index201, 16
  %103 = icmp eq i64 %index.next206.1, 784
  br i1 %103, label %vector.body187.preheader, label %vector.body200, !llvm.loop !18

vector.body187.preheader:                         ; preds = %vector.body200
  %bin.rdx207 = add <4 x i32> %102, %101
  %104 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx207)
  %105 = load i32, ptr %10, align 16, !tbaa !5
  %106 = icmp eq i32 %105, 2
  %107 = zext i1 %106 to i32
  %spec.select104 = add nuw nsw i32 %104, %107
  br label %vector.body187

vector.body187:                                   ; preds = %vector.body187, %vector.body187.preheader
  %index188 = phi i64 [ 0, %vector.body187.preheader ], [ %index.next193.1, %vector.body187 ]
  %vec.phi189 = phi <4 x i32> [ zeroinitializer, %vector.body187.preheader ], [ %122, %vector.body187 ]
  %vec.phi190 = phi <4 x i32> [ zeroinitializer, %vector.body187.preheader ], [ %123, %vector.body187 ]
  %108 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index188
  %109 = getelementptr inbounds i8, ptr %108, i64 16
  %wide.load191 = load <4 x i32>, ptr %108, align 16, !tbaa !5
  %wide.load192 = load <4 x i32>, ptr %109, align 16, !tbaa !5
  %110 = icmp eq <4 x i32> %wide.load191, <i32 3, i32 3, i32 3, i32 3>
  %111 = icmp eq <4 x i32> %wide.load192, <i32 3, i32 3, i32 3, i32 3>
  %112 = zext <4 x i1> %110 to <4 x i32>
  %113 = zext <4 x i1> %111 to <4 x i32>
  %114 = add <4 x i32> %vec.phi189, %112
  %115 = add <4 x i32> %vec.phi190, %113
  %index.next193 = or disjoint i64 %index188, 8
  %116 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next193
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %wide.load191.1 = load <4 x i32>, ptr %116, align 16, !tbaa !5
  %wide.load192.1 = load <4 x i32>, ptr %117, align 16, !tbaa !5
  %118 = icmp eq <4 x i32> %wide.load191.1, <i32 3, i32 3, i32 3, i32 3>
  %119 = icmp eq <4 x i32> %wide.load192.1, <i32 3, i32 3, i32 3, i32 3>
  %120 = zext <4 x i1> %118 to <4 x i32>
  %121 = zext <4 x i1> %119 to <4 x i32>
  %122 = add <4 x i32> %114, %120
  %123 = add <4 x i32> %115, %121
  %index.next193.1 = add nuw nsw i64 %index188, 16
  %124 = icmp eq i64 %index.next193.1, 784
  br i1 %124, label %vector.body174.preheader, label %vector.body187, !llvm.loop !19

vector.body174.preheader:                         ; preds = %vector.body187
  %bin.rdx194 = add <4 x i32> %123, %122
  %125 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx194)
  %126 = load i32, ptr %11, align 16, !tbaa !5
  %127 = icmp eq i32 %126, 3
  %128 = zext i1 %127 to i32
  %spec.select105 = add nuw nsw i32 %125, %128
  br label %vector.body174

vector.body174:                                   ; preds = %vector.body174, %vector.body174.preheader
  %index175 = phi i64 [ 0, %vector.body174.preheader ], [ %index.next180.1, %vector.body174 ]
  %vec.phi176 = phi <4 x i32> [ zeroinitializer, %vector.body174.preheader ], [ %143, %vector.body174 ]
  %vec.phi177 = phi <4 x i32> [ zeroinitializer, %vector.body174.preheader ], [ %144, %vector.body174 ]
  %129 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index175
  %130 = getelementptr inbounds i8, ptr %129, i64 16
  %wide.load178 = load <4 x i32>, ptr %129, align 16, !tbaa !5
  %wide.load179 = load <4 x i32>, ptr %130, align 16, !tbaa !5
  %131 = icmp eq <4 x i32> %wide.load178, <i32 4, i32 4, i32 4, i32 4>
  %132 = icmp eq <4 x i32> %wide.load179, <i32 4, i32 4, i32 4, i32 4>
  %133 = zext <4 x i1> %131 to <4 x i32>
  %134 = zext <4 x i1> %132 to <4 x i32>
  %135 = add <4 x i32> %vec.phi176, %133
  %136 = add <4 x i32> %vec.phi177, %134
  %index.next180 = or disjoint i64 %index175, 8
  %137 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next180
  %138 = getelementptr inbounds i8, ptr %137, i64 16
  %wide.load178.1 = load <4 x i32>, ptr %137, align 16, !tbaa !5
  %wide.load179.1 = load <4 x i32>, ptr %138, align 16, !tbaa !5
  %139 = icmp eq <4 x i32> %wide.load178.1, <i32 4, i32 4, i32 4, i32 4>
  %140 = icmp eq <4 x i32> %wide.load179.1, <i32 4, i32 4, i32 4, i32 4>
  %141 = zext <4 x i1> %139 to <4 x i32>
  %142 = zext <4 x i1> %140 to <4 x i32>
  %143 = add <4 x i32> %135, %141
  %144 = add <4 x i32> %136, %142
  %index.next180.1 = add nuw nsw i64 %index175, 16
  %145 = icmp eq i64 %index.next180.1, 784
  br i1 %145, label %vector.body161.preheader, label %vector.body174, !llvm.loop !20

vector.body161.preheader:                         ; preds = %vector.body174
  %bin.rdx181 = add <4 x i32> %144, %143
  %146 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx181)
  %147 = load i32, ptr %12, align 16, !tbaa !5
  %148 = icmp eq i32 %147, 4
  %149 = zext i1 %148 to i32
  %spec.select106 = add nuw nsw i32 %146, %149
  br label %vector.body161

vector.body161:                                   ; preds = %vector.body161, %vector.body161.preheader
  %index162 = phi i64 [ 0, %vector.body161.preheader ], [ %index.next167.1, %vector.body161 ]
  %vec.phi163 = phi <4 x i32> [ zeroinitializer, %vector.body161.preheader ], [ %164, %vector.body161 ]
  %vec.phi164 = phi <4 x i32> [ zeroinitializer, %vector.body161.preheader ], [ %165, %vector.body161 ]
  %150 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index162
  %151 = getelementptr inbounds i8, ptr %150, i64 16
  %wide.load165 = load <4 x i32>, ptr %150, align 16, !tbaa !5
  %wide.load166 = load <4 x i32>, ptr %151, align 16, !tbaa !5
  %152 = icmp eq <4 x i32> %wide.load165, <i32 5, i32 5, i32 5, i32 5>
  %153 = icmp eq <4 x i32> %wide.load166, <i32 5, i32 5, i32 5, i32 5>
  %154 = zext <4 x i1> %152 to <4 x i32>
  %155 = zext <4 x i1> %153 to <4 x i32>
  %156 = add <4 x i32> %vec.phi163, %154
  %157 = add <4 x i32> %vec.phi164, %155
  %index.next167 = or disjoint i64 %index162, 8
  %158 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next167
  %159 = getelementptr inbounds i8, ptr %158, i64 16
  %wide.load165.1 = load <4 x i32>, ptr %158, align 16, !tbaa !5
  %wide.load166.1 = load <4 x i32>, ptr %159, align 16, !tbaa !5
  %160 = icmp eq <4 x i32> %wide.load165.1, <i32 5, i32 5, i32 5, i32 5>
  %161 = icmp eq <4 x i32> %wide.load166.1, <i32 5, i32 5, i32 5, i32 5>
  %162 = zext <4 x i1> %160 to <4 x i32>
  %163 = zext <4 x i1> %161 to <4 x i32>
  %164 = add <4 x i32> %156, %162
  %165 = add <4 x i32> %157, %163
  %index.next167.1 = add nuw nsw i64 %index162, 16
  %166 = icmp eq i64 %index.next167.1, 784
  br i1 %166, label %vector.body148.preheader, label %vector.body161, !llvm.loop !21

vector.body148.preheader:                         ; preds = %vector.body161
  %bin.rdx168 = add <4 x i32> %165, %164
  %167 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx168)
  %168 = load i32, ptr %13, align 16, !tbaa !5
  %169 = icmp eq i32 %168, 5
  %170 = zext i1 %169 to i32
  %spec.select107 = add nuw nsw i32 %167, %170
  br label %vector.body148

vector.body148:                                   ; preds = %vector.body148, %vector.body148.preheader
  %index149 = phi i64 [ 0, %vector.body148.preheader ], [ %index.next154.1, %vector.body148 ]
  %vec.phi150 = phi <4 x i32> [ zeroinitializer, %vector.body148.preheader ], [ %185, %vector.body148 ]
  %vec.phi151 = phi <4 x i32> [ zeroinitializer, %vector.body148.preheader ], [ %186, %vector.body148 ]
  %171 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index149
  %172 = getelementptr inbounds i8, ptr %171, i64 16
  %wide.load152 = load <4 x i32>, ptr %171, align 16, !tbaa !5
  %wide.load153 = load <4 x i32>, ptr %172, align 16, !tbaa !5
  %173 = icmp eq <4 x i32> %wide.load152, <i32 6, i32 6, i32 6, i32 6>
  %174 = icmp eq <4 x i32> %wide.load153, <i32 6, i32 6, i32 6, i32 6>
  %175 = zext <4 x i1> %173 to <4 x i32>
  %176 = zext <4 x i1> %174 to <4 x i32>
  %177 = add <4 x i32> %vec.phi150, %175
  %178 = add <4 x i32> %vec.phi151, %176
  %index.next154 = or disjoint i64 %index149, 8
  %179 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next154
  %180 = getelementptr inbounds i8, ptr %179, i64 16
  %wide.load152.1 = load <4 x i32>, ptr %179, align 16, !tbaa !5
  %wide.load153.1 = load <4 x i32>, ptr %180, align 16, !tbaa !5
  %181 = icmp eq <4 x i32> %wide.load152.1, <i32 6, i32 6, i32 6, i32 6>
  %182 = icmp eq <4 x i32> %wide.load153.1, <i32 6, i32 6, i32 6, i32 6>
  %183 = zext <4 x i1> %181 to <4 x i32>
  %184 = zext <4 x i1> %182 to <4 x i32>
  %185 = add <4 x i32> %177, %183
  %186 = add <4 x i32> %178, %184
  %index.next154.1 = add nuw nsw i64 %index149, 16
  %187 = icmp eq i64 %index.next154.1, 784
  br i1 %187, label %vector.body135.preheader, label %vector.body148, !llvm.loop !22

vector.body135.preheader:                         ; preds = %vector.body148
  %bin.rdx155 = add <4 x i32> %186, %185
  %188 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx155)
  %189 = load i32, ptr %14, align 16, !tbaa !5
  %190 = icmp eq i32 %189, 6
  %191 = zext i1 %190 to i32
  %spec.select108 = add nuw nsw i32 %188, %191
  br label %vector.body135

vector.body135:                                   ; preds = %vector.body135, %vector.body135.preheader
  %index136 = phi i64 [ 0, %vector.body135.preheader ], [ %index.next141.1, %vector.body135 ]
  %vec.phi137 = phi <4 x i32> [ zeroinitializer, %vector.body135.preheader ], [ %206, %vector.body135 ]
  %vec.phi138 = phi <4 x i32> [ zeroinitializer, %vector.body135.preheader ], [ %207, %vector.body135 ]
  %192 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index136
  %193 = getelementptr inbounds i8, ptr %192, i64 16
  %wide.load139 = load <4 x i32>, ptr %192, align 16, !tbaa !5
  %wide.load140 = load <4 x i32>, ptr %193, align 16, !tbaa !5
  %194 = icmp eq <4 x i32> %wide.load139, <i32 7, i32 7, i32 7, i32 7>
  %195 = icmp eq <4 x i32> %wide.load140, <i32 7, i32 7, i32 7, i32 7>
  %196 = zext <4 x i1> %194 to <4 x i32>
  %197 = zext <4 x i1> %195 to <4 x i32>
  %198 = add <4 x i32> %vec.phi137, %196
  %199 = add <4 x i32> %vec.phi138, %197
  %index.next141 = or disjoint i64 %index136, 8
  %200 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next141
  %201 = getelementptr inbounds i8, ptr %200, i64 16
  %wide.load139.1 = load <4 x i32>, ptr %200, align 16, !tbaa !5
  %wide.load140.1 = load <4 x i32>, ptr %201, align 16, !tbaa !5
  %202 = icmp eq <4 x i32> %wide.load139.1, <i32 7, i32 7, i32 7, i32 7>
  %203 = icmp eq <4 x i32> %wide.load140.1, <i32 7, i32 7, i32 7, i32 7>
  %204 = zext <4 x i1> %202 to <4 x i32>
  %205 = zext <4 x i1> %203 to <4 x i32>
  %206 = add <4 x i32> %198, %204
  %207 = add <4 x i32> %199, %205
  %index.next141.1 = add nuw nsw i64 %index136, 16
  %208 = icmp eq i64 %index.next141.1, 784
  br i1 %208, label %vector.body122.preheader, label %vector.body135, !llvm.loop !23

vector.body122.preheader:                         ; preds = %vector.body135
  %bin.rdx142 = add <4 x i32> %207, %206
  %209 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx142)
  %210 = load i32, ptr %15, align 16, !tbaa !5
  %211 = icmp eq i32 %210, 7
  %212 = zext i1 %211 to i32
  %spec.select109 = add nuw nsw i32 %209, %212
  br label %vector.body122

vector.body122:                                   ; preds = %vector.body122, %vector.body122.preheader
  %index123 = phi i64 [ 0, %vector.body122.preheader ], [ %index.next128.1, %vector.body122 ]
  %vec.phi124 = phi <4 x i32> [ zeroinitializer, %vector.body122.preheader ], [ %227, %vector.body122 ]
  %vec.phi125 = phi <4 x i32> [ zeroinitializer, %vector.body122.preheader ], [ %228, %vector.body122 ]
  %213 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index123
  %214 = getelementptr inbounds i8, ptr %213, i64 16
  %wide.load126 = load <4 x i32>, ptr %213, align 16, !tbaa !5
  %wide.load127 = load <4 x i32>, ptr %214, align 16, !tbaa !5
  %215 = icmp eq <4 x i32> %wide.load126, <i32 8, i32 8, i32 8, i32 8>
  %216 = icmp eq <4 x i32> %wide.load127, <i32 8, i32 8, i32 8, i32 8>
  %217 = zext <4 x i1> %215 to <4 x i32>
  %218 = zext <4 x i1> %216 to <4 x i32>
  %219 = add <4 x i32> %vec.phi124, %217
  %220 = add <4 x i32> %vec.phi125, %218
  %index.next128 = or disjoint i64 %index123, 8
  %221 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next128
  %222 = getelementptr inbounds i8, ptr %221, i64 16
  %wide.load126.1 = load <4 x i32>, ptr %221, align 16, !tbaa !5
  %wide.load127.1 = load <4 x i32>, ptr %222, align 16, !tbaa !5
  %223 = icmp eq <4 x i32> %wide.load126.1, <i32 8, i32 8, i32 8, i32 8>
  %224 = icmp eq <4 x i32> %wide.load127.1, <i32 8, i32 8, i32 8, i32 8>
  %225 = zext <4 x i1> %223 to <4 x i32>
  %226 = zext <4 x i1> %224 to <4 x i32>
  %227 = add <4 x i32> %219, %225
  %228 = add <4 x i32> %220, %226
  %index.next128.1 = add nuw nsw i64 %index123, 16
  %229 = icmp eq i64 %index.next128.1, 784
  br i1 %229, label %vector.body.preheader, label %vector.body122, !llvm.loop !24

vector.body.preheader:                            ; preds = %vector.body122
  %bin.rdx129 = add <4 x i32> %228, %227
  %230 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx129)
  %231 = load i32, ptr %16, align 16, !tbaa !5
  %232 = icmp eq i32 %231, 8
  %233 = zext i1 %232 to i32
  %spec.select110 = add nuw nsw i32 %230, %233
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.body.preheader
  %index = phi i64 [ 0, %vector.body.preheader ], [ %index.next.1, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.body.preheader ], [ %248, %vector.body ]
  %vec.phi116 = phi <4 x i32> [ zeroinitializer, %vector.body.preheader ], [ %249, %vector.body ]
  %234 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index
  %235 = getelementptr inbounds i8, ptr %234, i64 16
  %wide.load = load <4 x i32>, ptr %234, align 16, !tbaa !5
  %wide.load117 = load <4 x i32>, ptr %235, align 16, !tbaa !5
  %236 = icmp eq <4 x i32> %wide.load, <i32 9, i32 9, i32 9, i32 9>
  %237 = icmp eq <4 x i32> %wide.load117, <i32 9, i32 9, i32 9, i32 9>
  %238 = zext <4 x i1> %236 to <4 x i32>
  %239 = zext <4 x i1> %237 to <4 x i32>
  %240 = add <4 x i32> %vec.phi, %238
  %241 = add <4 x i32> %vec.phi116, %239
  %index.next = or disjoint i64 %index, 8
  %242 = getelementptr inbounds [785 x i32], ptr %1, i64 0, i64 %index.next
  %243 = getelementptr inbounds i8, ptr %242, i64 16
  %wide.load.1 = load <4 x i32>, ptr %242, align 16, !tbaa !5
  %wide.load117.1 = load <4 x i32>, ptr %243, align 16, !tbaa !5
  %244 = icmp eq <4 x i32> %wide.load.1, <i32 9, i32 9, i32 9, i32 9>
  %245 = icmp eq <4 x i32> %wide.load117.1, <i32 9, i32 9, i32 9, i32 9>
  %246 = zext <4 x i1> %244 to <4 x i32>
  %247 = zext <4 x i1> %245 to <4 x i32>
  %248 = add <4 x i32> %240, %246
  %249 = add <4 x i32> %241, %247
  %index.next.1 = add nuw nsw i64 %index, 16
  %250 = icmp eq i64 %index.next.1, 784
  br i1 %250, label %.loopexit235, label %vector.body, !llvm.loop !25

.loopexit235:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %249, %248
  %251 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %252 = load i32, ptr %7, align 16, !tbaa !5
  %253 = icmp eq i32 %252, 9
  %254 = zext i1 %253 to i32
  %spec.select111 = add nuw nsw i32 %251, %254
  %255 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %17)
  %256 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %spec.select, i32 noundef %spec.select103, i32 noundef %spec.select104, i32 noundef %spec.select105, i32 noundef %spec.select106)
  %257 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %spec.select107, i32 noundef %spec.select108, i32 noundef %spec.select109, i32 noundef %spec.select110, i32 noundef %spec.select111)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 3140, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 3140, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(3140) %1, i8 -1, i64 3140, i1 false), !tbaa !5
  %258 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %259 = load i32, ptr %2, align 4
  %260 = add i32 %259, -367
  %or.cond = icmp ult i32 %260, -366
  br i1 %or.cond, label %._crit_edge115, label %.lr.ph.preheader

._crit_edge115:                                   ; preds = %.loopexit235, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 3140, 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; 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 = { nofree 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/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, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !10, !15, !16}
!18 = distinct !{!18, !10, !15, !16}
!19 = distinct !{!19, !10, !15, !16}
!20 = distinct !{!20, !10, !15, !16}
!21 = distinct !{!21, !10, !15, !16}
!22 = distinct !{!22, !10, !15, !16}
!23 = distinct !{!23, !10, !15, !16}
!24 = distinct !{!24, !10, !15, !16}
!25 = distinct !{!25, !10, !15, !16}


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