; LLVM IR from DionysiosB/CodeForces :: 0400-0499 (405A-GravityFlip)

; 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 [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 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 [101 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 100, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 404, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 404, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %35, %0
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %31, %18
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = icmp sle i32 %21, %22
  br i1 %23, label %25, label %24

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

25:                                               ; preds = %20
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [101 x i32], ptr %3, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %8, align 4, !tbaa !5
  br label %20, !llvm.loop !9

34:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %5, align 4, !tbaa !5
  br label %13, !llvm.loop !11

38:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %69, %38
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %72

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

45:                                               ; preds = %63, %44
  %46 = load i32, ptr %11, align 4, !tbaa !5
  %47 = icmp sle i32 %46, 100
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %66

49:                                               ; preds = %45
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [101 x i32], ptr %3, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = sub nsw i32 %55, %56
  %58 = icmp sge i32 %53, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %49
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %10, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %59, %49
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %11, align 4, !tbaa !5
  br label %45, !llvm.loop !12

66:                                               ; preds = %48
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %67)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %9, align 4, !tbaa !5
  br label %39, !llvm.loop !13

72:                                               ; preds = %43
  %73 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 404, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %74 = load i32, ptr %1, align 4
  ret i32 %74
}

; 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

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

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

declare i32 @puts(ptr noundef) #3

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}
!13 = distinct !{!13, !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 [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [101 x i32], align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 404, ptr nonnull %1) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(404) %1, i8 0, i64 404, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %5 = load i32, ptr %2, align 4, !tbaa !5
  %.not24 = icmp slt i32 %5, 1
  br i1 %.not24, label %._crit_edge32, label %.lr.ph27

.preheader21:                                     ; preds = %._crit_edge
  %.not1830 = icmp slt i32 %48, 1
  br i1 %.not1830, label %._crit_edge32, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader21
  %6 = getelementptr inbounds i8, ptr %1, i64 388
  %7 = getelementptr inbounds i8, ptr %1, i64 20
  %wide.load49 = load <4 x i32>, ptr %7, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 52
  %wide.load49.1 = load <4 x i32>, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 84
  %wide.load49.2 = load <4 x i32>, ptr %9, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 116
  %wide.load49.3 = load <4 x i32>, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 148
  %wide.load49.4 = load <4 x i32>, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 180
  %wide.load49.5 = load <4 x i32>, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 212
  %wide.load49.6 = load <4 x i32>, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 244
  %wide.load49.7 = load <4 x i32>, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 276
  %wide.load49.8 = load <4 x i32>, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 308
  %wide.load49.9 = load <4 x i32>, ptr %16, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %1, i64 340
  %wide.load49.10 = load <4 x i32>, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %1, i64 372
  %wide.load49.11 = load <4 x i32>, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  %wide.load48 = load <4 x i32>, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %1, i64 36
  %wide.load48.1 = load <4 x i32>, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %1, i64 68
  %wide.load48.2 = load <4 x i32>, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 100
  %wide.load48.3 = load <4 x i32>, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %1, i64 132
  %wide.load48.4 = load <4 x i32>, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %1, i64 164
  %wide.load48.5 = load <4 x i32>, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %1, i64 196
  %wide.load48.6 = load <4 x i32>, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %1, i64 228
  %wide.load48.7 = load <4 x i32>, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %1, i64 260
  %wide.load48.8 = load <4 x i32>, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %1, i64 292
  %wide.load48.9 = load <4 x i32>, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %1, i64 324
  %wide.load48.10 = load <4 x i32>, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %1, i64 356
  %wide.load48.11 = load <4 x i32>, ptr %30, align 4, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %1, i64 392
  %33 = load i32, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %1, i64 396
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %1, i64 400
  %37 = load i32, ptr %36, align 16, !tbaa !5
  br label %.preheader

.lr.ph27:                                         ; preds = %0, %._crit_edge
  %.01725 = phi i32 [ %47, %._crit_edge ], [ 1, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %.not2022 = icmp slt i32 %39, 1
  br i1 %.not2022, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph27
  %40 = add nuw i32 %39, 1
  %wide.trip.count = zext i32 %40 to i64
  %41 = zext nneg i32 %39 to i64
  %min.iters.check = icmp ult i32 %39, 8
  br i1 %min.iters.check, label %.lr.ph.preheader52, label %vector.ph

.lr.ph.preheader52:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %41, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %42 = getelementptr inbounds [101 x i32], ptr %1, i64 0, i64 %offset.idx
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load = load <4 x i32>, ptr %42, align 4, !tbaa !5
  %wide.load39 = load <4 x i32>, ptr %43, align 4, !tbaa !5
  %44 = add nsw <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %45 = add nsw <4 x i32> %wide.load39, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %44, ptr %42, align 4, !tbaa !5
  store <4 x i32> %45, ptr %43, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %46 = icmp eq i64 %index.next, %n.vec
  br i1 %46, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %41
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader52

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.lr.ph27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %47 = add nuw nsw i32 %.01725, 1
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.01725, %48
  br i1 %.not.not, label %.lr.ph27, label %.preheader21, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph.preheader52, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader52 ]
  %49 = getelementptr inbounds [101 x i32], ptr %1, i64 0, i64 %indvars.iv
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %49, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %52 = phi i32 [ %131, %.preheader ], [ %48, %.preheader.preheader ]
  %.01531 = phi i32 [ %130, %.preheader ], [ 1, %.preheader.preheader ]
  %reass.sub = sub i32 %52, %.01531
  %53 = add i32 %reass.sub, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %53, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %54 = icmp sge <4 x i32> %wide.load49, %broadcast.splat
  %55 = zext <4 x i1> %54 to <4 x i32>
  %56 = icmp sge <4 x i32> %wide.load49.1, %broadcast.splat
  %57 = zext <4 x i1> %56 to <4 x i32>
  %58 = add nuw nsw <4 x i32> %55, %57
  %59 = icmp sge <4 x i32> %wide.load49.2, %broadcast.splat
  %60 = zext <4 x i1> %59 to <4 x i32>
  %61 = add nuw nsw <4 x i32> %58, %60
  %62 = icmp sge <4 x i32> %wide.load49.3, %broadcast.splat
  %63 = zext <4 x i1> %62 to <4 x i32>
  %64 = add nuw nsw <4 x i32> %61, %63
  %65 = icmp sge <4 x i32> %wide.load49.4, %broadcast.splat
  %66 = zext <4 x i1> %65 to <4 x i32>
  %67 = add nuw nsw <4 x i32> %64, %66
  %68 = icmp sge <4 x i32> %wide.load49.5, %broadcast.splat
  %69 = zext <4 x i1> %68 to <4 x i32>
  %70 = add nuw nsw <4 x i32> %67, %69
  %71 = icmp sge <4 x i32> %wide.load49.6, %broadcast.splat
  %72 = zext <4 x i1> %71 to <4 x i32>
  %73 = add nuw nsw <4 x i32> %70, %72
  %74 = icmp sge <4 x i32> %wide.load49.7, %broadcast.splat
  %75 = zext <4 x i1> %74 to <4 x i32>
  %76 = add <4 x i32> %73, %75
  %77 = icmp sge <4 x i32> %wide.load49.8, %broadcast.splat
  %78 = zext <4 x i1> %77 to <4 x i32>
  %79 = add <4 x i32> %76, %78
  %80 = icmp sge <4 x i32> %wide.load49.9, %broadcast.splat
  %81 = zext <4 x i1> %80 to <4 x i32>
  %82 = add <4 x i32> %79, %81
  %83 = icmp sge <4 x i32> %wide.load49.10, %broadcast.splat
  %84 = zext <4 x i1> %83 to <4 x i32>
  %85 = add <4 x i32> %82, %84
  %86 = icmp sge <4 x i32> %wide.load49.11, %broadcast.splat
  %87 = zext <4 x i1> %86 to <4 x i32>
  %88 = add <4 x i32> %85, %87
  %89 = icmp sge <4 x i32> %wide.load48, %broadcast.splat
  %90 = zext <4 x i1> %89 to <4 x i32>
  %91 = icmp sge <4 x i32> %wide.load48.1, %broadcast.splat
  %92 = zext <4 x i1> %91 to <4 x i32>
  %93 = add nuw nsw <4 x i32> %90, %92
  %94 = icmp sge <4 x i32> %wide.load48.2, %broadcast.splat
  %95 = zext <4 x i1> %94 to <4 x i32>
  %96 = add nuw nsw <4 x i32> %93, %95
  %97 = icmp sge <4 x i32> %wide.load48.3, %broadcast.splat
  %98 = zext <4 x i1> %97 to <4 x i32>
  %99 = add nuw nsw <4 x i32> %96, %98
  %100 = icmp sge <4 x i32> %wide.load48.4, %broadcast.splat
  %101 = zext <4 x i1> %100 to <4 x i32>
  %102 = add nuw nsw <4 x i32> %99, %101
  %103 = icmp sge <4 x i32> %wide.load48.5, %broadcast.splat
  %104 = zext <4 x i1> %103 to <4 x i32>
  %105 = add nuw nsw <4 x i32> %102, %104
  %106 = icmp sge <4 x i32> %wide.load48.6, %broadcast.splat
  %107 = zext <4 x i1> %106 to <4 x i32>
  %108 = add nuw nsw <4 x i32> %105, %107
  %109 = icmp sge <4 x i32> %wide.load48.7, %broadcast.splat
  %110 = zext <4 x i1> %109 to <4 x i32>
  %111 = add <4 x i32> %108, %110
  %112 = icmp sge <4 x i32> %wide.load48.8, %broadcast.splat
  %113 = zext <4 x i1> %112 to <4 x i32>
  %114 = add <4 x i32> %111, %113
  %115 = icmp sge <4 x i32> %wide.load48.9, %broadcast.splat
  %116 = zext <4 x i1> %115 to <4 x i32>
  %117 = add <4 x i32> %114, %116
  %118 = icmp sge <4 x i32> %wide.load48.10, %broadcast.splat
  %119 = zext <4 x i1> %118 to <4 x i32>
  %120 = add <4 x i32> %117, %119
  %121 = icmp sge <4 x i32> %wide.load48.11, %broadcast.splat
  %122 = zext <4 x i1> %121 to <4 x i32>
  %123 = add <4 x i32> %120, %122
  %bin.rdx = add <4 x i32> %88, %123
  %124 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %.not19 = icmp sge i32 %31, %53
  %125 = zext i1 %.not19 to i32
  %spec.select = add nuw nsw i32 %124, %125
  %.not19.1 = icmp sge i32 %33, %53
  %126 = zext i1 %.not19.1 to i32
  %spec.select.1 = add nuw nsw i32 %spec.select, %126
  %.not19.2 = icmp sge i32 %35, %53
  %127 = zext i1 %.not19.2 to i32
  %spec.select.2 = add nuw nsw i32 %spec.select.1, %127
  %.not19.3 = icmp sge i32 %37, %53
  %128 = zext i1 %.not19.3 to i32
  %spec.select.3 = add nuw nsw i32 %spec.select.2, %128
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %spec.select.3)
  %130 = add nuw nsw i32 %.01531, 1
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %.not18.not = icmp slt i32 %.01531, %131
  br i1 %.not18.not, label %.preheader, label %._crit_edge32, !llvm.loop !15

._crit_edge32:                                    ; preds = %.preheader, %0, %.preheader21
  %132 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 404, 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; 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}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10}


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