; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/255 Division 1/Problem A (A)

; 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
@a = external dso_local global [100100 x i32], align 16
@l = external dso_local global [100100 x i32], align 16
@r = external dso_local global [100100 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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
  store i32 0, ptr %1, align 4
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %18, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = icmp sle i32 %9, %10
  br i1 %11, label %13, label %12

12:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %21

13:                                               ; preds = %8
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %15
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %16)
  br label %18

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

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

22:                                               ; preds = %55, %21
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = icmp sle i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %58

27:                                               ; preds = %22
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sub nsw i32 %28, 1
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp slt i32 %32, %36
  br i1 %37, label %38, label %45

38:                                               ; preds = %27
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  br label %46

45:                                               ; preds = %27
  br label %46

46:                                               ; preds = %45, %38
  %47 = phi i32 [ %44, %38 ], [ 1, %45 ]
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %54)
  br label %55

55:                                               ; preds = %46
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %4, align 4, !tbaa !5
  br label %22, !llvm.loop !11

58:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %59 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %59, ptr %5, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %92, %58
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %95

64:                                               ; preds = %60
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp slt i32 %68, %73
  br i1 %74, label %75, label %82

75:                                               ; preds = %64
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  br label %83

82:                                               ; preds = %64
  br label %83

83:                                               ; preds = %82, %75
  %84 = phi i32 [ %81, %75 ], [ 1, %82 ]
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %86
  store i32 %84, ptr %87, align 4, !tbaa !5
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %91)
  br label %92

92:                                               ; preds = %83
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr %5, align 4, !tbaa !5
  br label %60, !llvm.loop !12

95:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %141, %95
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = load i32, ptr @n, align 4, !tbaa !5
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %144

101:                                              ; preds = %96
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp slt i32 %107, %112
  br i1 %113, label %114, label %127

114:                                              ; preds = %101
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = add nsw i32 %119, %124
  %126 = add nsw i32 %125, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %126)
  br label %140

127:                                              ; preds = %101
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sub nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %133)
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %139)
  br label %140

140:                                              ; preds = %127, %114
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %6, align 4, !tbaa !5
  br label %96, !llvm.loop !13

144:                                              ; preds = %100
  %145 = load i32, ptr getelementptr inbounds ([100100 x i32], ptr @r, i64 0, i64 2), align 8, !tbaa !5
  %146 = add nsw i32 %145, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %146)
  %147 = load i32, ptr @n, align 4, !tbaa !5
  %148 = sub nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %152)
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %153)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret i32 0
}

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

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

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

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

attributes #0 = { mustprogress 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 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 #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 nosync nounwind willreturn memory(argmem: readwrite) }
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"

@n = external dso_local global i32, align 4
@a = external dso_local global [100100 x i32], align 16
@l = external dso_local local_unnamed_addr global [100100 x i32], align 16
@r = external dso_local local_unnamed_addr global [100100 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %.not31 = icmp slt i32 %3, 1
  br i1 %.not31, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %._crit_edge41

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 1, ptr %1, align 4, !tbaa !5
  %.not2933 = icmp slt i32 %6, 1
  br i1 %.not2933, label %._crit_edge41, label %.lr.ph36

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %4 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %.not.not = icmp slt i64 %indvars.iv, %7
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader30:                                     ; preds = %20
  %8 = icmp sgt i32 %23, 0
  br i1 %8, label %.lr.ph38.preheader, label %._crit_edge41

.lr.ph38.preheader:                               ; preds = %.preheader30
  %9 = zext nneg i32 %23 to i64
  br label %.lr.ph38

.lr.ph36:                                         ; preds = %._crit_edge, %20
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %20 ], [ 1, %._crit_edge ]
  %10 = add nsw i64 %indvars.iv44, -1
  %11 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %10
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv44
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp slt i32 %12, %14
  br i1 %15, label %16, label %20

16:                                               ; preds = %.lr.ph36
  %17 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %10
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  br label %20

20:                                               ; preds = %.lr.ph36, %16
  %21 = phi i32 [ %19, %16 ], [ 1, %.lr.ph36 ]
  %22 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %indvars.iv44
  store i32 %21, ptr %22, align 4, !tbaa !5
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %21)
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %.not29.not = icmp slt i64 %indvars.iv44, %24
  br i1 %.not29.not, label %.lr.ph36, label %.preheader30, !llvm.loop !11

.preheader:                                       ; preds = %36
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  %25 = icmp sgt i32 %.pre, 2
  br i1 %25, label %.lr.ph40, label %._crit_edge41

.lr.ph38:                                         ; preds = %.lr.ph38.preheader, %36
  %indvars.iv47 = phi i64 [ %9, %.lr.ph38.preheader ], [ %indvars.iv.next48, %36 ]
  %26 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv47
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = add nuw nsw i64 %indvars.iv47, 1
  %29 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = icmp slt i32 %27, %30
  br i1 %31, label %32, label %36

32:                                               ; preds = %.lr.ph38
  %33 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %28
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  br label %36

36:                                               ; preds = %.lr.ph38, %32
  %37 = phi i32 [ %35, %32 ], [ 1, %.lr.ph38 ]
  %38 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %indvars.iv47
  store i32 %37, ptr %38, align 4, !tbaa !5
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %37)
  %indvars.iv.next48 = add nsw i64 %indvars.iv47, -1
  %39 = icmp sgt i64 %indvars.iv47, 1
  br i1 %39, label %.lr.ph38, label %.preheader, !llvm.loop !12

._crit_edge41:                                    ; preds = %69, %._crit_edge.thread, %._crit_edge, %.preheader30, %.preheader
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @r, i64 8), align 8, !tbaa !5
  %41 = add nsw i32 %40, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %41)
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = add nsw i32 %42, -1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %47)
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %48)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0

.lr.ph40:                                         ; preds = %.preheader, %69
  %indvars.iv50 = phi i64 [ %indvars.iv.next51, %69 ], [ 2, %.preheader ]
  %50 = add nsw i64 %indvars.iv50, -1
  %51 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %54 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv.next51
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = icmp slt i32 %53, %55
  %57 = getelementptr inbounds [100100 x i32], ptr @l, i64 0, i64 %50
  %58 = load i32, ptr %57, align 4, !tbaa !5
  br i1 %56, label %59, label %64

59:                                               ; preds = %.lr.ph40
  %60 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %indvars.iv.next51
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add i32 %58, 1
  %63 = add i32 %62, %61
  br label %69

64:                                               ; preds = %.lr.ph40
  %65 = add nsw i32 %58, 1
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %65)
  %66 = getelementptr inbounds [100100 x i32], ptr @r, i64 0, i64 %indvars.iv.next51
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  br label %69

69:                                               ; preds = %59, %64
  %.sink = phi i32 [ %63, %59 ], [ %68, %64 ]
  call void @_Z4umaxRii(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %.sink)
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next51, %71
  br i1 %72, label %.lr.ph40, label %._crit_edge41, !llvm.loop !13
}

; 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.start.p0(i64 immarg, ptr nocapture) #3

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

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

attributes #0 = { mustprogress 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 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 #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 nosync nounwind willreturn memory(argmem: readwrite) }
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}


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