; LLVM IR from tangjz/acm-icpc :: codeforces/complete (1352E)

; 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
@_ZZ4mainE3arr = external hidden global [8001 x i32], align 16
@_ZZ4mainE3vis = external hidden global [8001 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [4 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 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) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %13

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

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

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

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

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

25:                                               ; preds = %20
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i32, ptr @_ZZ4mainE3arr, i64 %27
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %28)
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %31
  store i8 0, ptr %32, align 1, !tbaa !9
  br label %33

33:                                               ; preds = %25
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %6, align 4, !tbaa !5
  br label %20, !llvm.loop !11

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

37:                                               ; preds = %79, %36
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %82

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %49, %53
  store i32 %54, ptr %9, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %70, %43
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %59, label %63

59:                                               ; preds = %55
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = icmp sle i32 %60, %61
  br label %63

63:                                               ; preds = %59, %55
  %64 = phi i1 [ false, %55 ], [ %62, %59 ]
  br i1 %64, label %66, label %65

65:                                               ; preds = %63
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %78

66:                                               ; preds = %63
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %68
  store i8 1, ptr %69, align 1, !tbaa !9
  br label %70

70:                                               ; preds = %66
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = add nsw i32 %76, %75
  store i32 %77, ptr %9, align 4, !tbaa !5
  br label %55, !llvm.loop !13

78:                                               ; preds = %65
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %7, align 4, !tbaa !5
  br label %37, !llvm.loop !14

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

83:                                               ; preds = %100, %82
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %103

88:                                               ; preds = %83
  %89 = load i32, ptr %11, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !9, !range !15, !noundef !16
  %96 = trunc i8 %95 to i1
  %97 = zext i1 %96 to i32
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = add nsw i32 %98, %97
  store i32 %99, ptr %10, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %88
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %11, align 4, !tbaa !5
  br label %83, !llvm.loop !17

103:                                              ; preds = %87
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %104)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %106

106:                                              ; preds = %103
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %3, align 4, !tbaa !5
  br label %13, !llvm.loop !18

109:                                              ; preds = %17
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %110 = load i32, ptr %1, align 4
  ret i32 %110
}

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

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

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 = { "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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3arr = external hidden global [8001 x i32], align 16
@_ZZ4mainE3vis = external hidden local_unnamed_addr global [8001 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [4 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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  store i32 1, ptr %1, align 4, !tbaa !5
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %.not46 = icmp slt i32 %4, 1
  br i1 %.not46, label %._crit_edge50, label %.lr.ph49

._crit_edge50:                                    ; preds = %._crit_edge, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  ret i32 0

.lr.ph49:                                         ; preds = %0, %._crit_edge
  %.02747 = phi i32 [ %36, %._crit_edge ], [ 1, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %6 = load i32, ptr %2, align 4
  %.not2933 = icmp slt i32 %6, 1
  br i1 %.not2933, label %._crit_edge, label %.lr.ph

.preheader32:                                     ; preds = %.lr.ph
  %.not30.not38 = icmp sgt i32 %11, 1
  br i1 %.not30.not38, label %.lr.ph40.preheader, label %.preheader

.lr.ph40.preheader:                               ; preds = %.preheader32
  %7 = zext nneg i32 %11 to i64
  %wide.trip.count = zext nneg i32 %11 to i64
  br label %.lr.ph40

.lr.ph:                                           ; preds = %.lr.ph49, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph49 ]
  %8 = getelementptr inbounds i32, ptr @_ZZ4mainE3arr, i64 %indvars.iv
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %8)
  %10 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %indvars.iv
  store i8 0, ptr %10, align 1, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr %2, align 4
  %12 = sext i32 %11 to i64
  %.not29.not = icmp slt i64 %indvars.iv, %12
  br i1 %.not29.not, label %.lr.ph, label %.preheader32, !llvm.loop !11

.loopexit:                                        ; preds = %.lr.ph37, %.lr.ph40
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph40, !llvm.loop !13

.preheader:                                       ; preds = %.loopexit, %.preheader32
  %.not3141 = icmp slt i32 %11, 1
  br i1 %.not3141, label %._crit_edge, label %.lr.ph44.preheader

.lr.ph44.preheader:                               ; preds = %.preheader
  %13 = zext nneg i32 %11 to i64
  %xtraiter = and i64 %13, 3
  %14 = icmp ult i32 %11, 4
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph44.preheader.new

.lr.ph44.preheader.new:                           ; preds = %.lr.ph44.preheader
  %unroll_iter = and i64 %13, 2147483644
  br label %.lr.ph44

.lr.ph40:                                         ; preds = %.lr.ph40.preheader, %.loopexit
  %indvars.iv59 = phi i64 [ 1, %.lr.ph40.preheader ], [ %indvars.iv.next60, %.loopexit ]
  %indvars.iv54 = phi i64 [ 2, %.lr.ph40.preheader ], [ %indvars.iv.next55, %.loopexit ]
  %15 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv59
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv54
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add nsw i32 %18, %16
  %.not = icmp sgt i32 %19, %11
  br i1 %.not, label %.loopexit, label %.lr.ph37

.lr.ph37:                                         ; preds = %.lr.ph40, %.lr.ph37
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %.lr.ph37 ], [ %indvars.iv54, %.lr.ph40 ]
  %.02336 = phi i32 [ %24, %.lr.ph37 ], [ %19, %.lr.ph40 ]
  %20 = sext i32 %.02336 to i64
  %21 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %20
  store i8 1, ptr %21, align 1, !tbaa !9
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %22 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv.next57
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add nsw i32 %23, %.02336
  %25 = icmp ult i64 %indvars.iv56, %7
  %26 = icmp sle i32 %24, %11
  %27 = select i1 %25, i1 %26, i1 false
  br i1 %27, label %.lr.ph37, label %.loopexit, !llvm.loop !14

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph44, %.lr.ph44.preheader
  %.lcssa76.ph = phi i32 [ poison, %.lr.ph44.preheader ], [ %65, %.lr.ph44 ]
  %indvars.iv64.unr = phi i64 [ 1, %.lr.ph44.preheader ], [ %indvars.iv.next65.3, %.lr.ph44 ]
  %.02242.unr = phi i32 [ 0, %.lr.ph44.preheader ], [ %65, %.lr.ph44 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph44.epil

.lr.ph44.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph44.epil
  %indvars.iv64.epil = phi i64 [ %indvars.iv.next65.epil, %.lr.ph44.epil ], [ %indvars.iv64.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.02242.epil = phi i32 [ %34, %.lr.ph44.epil ], [ %.02242.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph44.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %28 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv64.epil
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !9, !range !15, !noundef !16
  %33 = zext nneg i8 %32 to i32
  %34 = add nuw nsw i32 %.02242.epil, %33
  %indvars.iv.next65.epil = add nuw nsw i64 %indvars.iv64.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph44.epil, !llvm.loop !17

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph44.epil, %.lr.ph49, %.preheader
  %.022.lcssa = phi i32 [ 0, %.preheader ], [ 0, %.lr.ph49 ], [ %.lcssa76.ph, %._crit_edge.loopexit.unr-lcssa ], [ %34, %.lr.ph44.epil ]
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.022.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  %36 = add nuw nsw i32 %.02747, 1
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.02747, %37
  br i1 %.not.not, label %.lr.ph49, label %._crit_edge50, !llvm.loop !19

.lr.ph44:                                         ; preds = %.lr.ph44, %.lr.ph44.preheader.new
  %indvars.iv64 = phi i64 [ 1, %.lr.ph44.preheader.new ], [ %indvars.iv.next65.3, %.lr.ph44 ]
  %.02242 = phi i32 [ 0, %.lr.ph44.preheader.new ], [ %65, %.lr.ph44 ]
  %niter = phi i64 [ 0, %.lr.ph44.preheader.new ], [ %niter.next.3, %.lr.ph44 ]
  %38 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv64
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !9, !range !15, !noundef !16
  %43 = zext nneg i8 %42 to i32
  %44 = add nuw nsw i32 %.02242, %43
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %45 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv.next65
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !9, !range !15, !noundef !16
  %50 = zext nneg i8 %49 to i32
  %51 = add nuw nsw i32 %44, %50
  %indvars.iv.next65.1 = add nuw nsw i64 %indvars.iv64, 2
  %52 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv.next65.1
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !9, !range !15, !noundef !16
  %57 = zext nneg i8 %56 to i32
  %58 = add nuw nsw i32 %51, %57
  %indvars.iv.next65.2 = add nuw nsw i64 %indvars.iv64, 3
  %59 = getelementptr inbounds [8001 x i32], ptr @_ZZ4mainE3arr, i64 0, i64 %indvars.iv.next65.2
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [8001 x i8], ptr @_ZZ4mainE3vis, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !9, !range !15, !noundef !16
  %64 = zext nneg i8 %63 to i32
  %65 = add nuw nsw i32 %58, %64
  %indvars.iv.next65.3 = add nuw nsw i64 %indvars.iv64, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph44, !llvm.loop !20
}

; 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 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 #2

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 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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