; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (1981)

; 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"

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

15:                                               ; preds = %114, %0
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %2, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %115

19:                                               ; preds = %15
  %20 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 0
  %21 = getelementptr inbounds i8, ptr %20, i64 1
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %4, ptr noundef %21)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %111, %19
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %27, label %114

27:                                               ; preds = %23
  %28 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %28)
  %30 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = sext i8 %31 to i32
  %33 = icmp eq i32 %32, 81
  br i1 %33, label %34, label %42

34:                                               ; preds = %27
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6)
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = sext i8 %39 to i32
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %40)
  br label %110

42:                                               ; preds = %27
  %43 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 82
  br i1 %46, label %47, label %79

47:                                               ; preds = %42
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %6, ptr noundef %7)
  %49 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %49, ptr %9, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %50, ptr %10, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %73, %47
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %55, label %78

55:                                               ; preds = %51
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !9
  %60 = sext i8 %59 to i32
  store i32 %60, ptr %8, align 4, !tbaa !5
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %65 = load i32, ptr %9, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %66
  store i8 %64, ptr %67, align 1, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = trunc i32 %68 to i8
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %71
  store i8 %69, ptr %72, align 1, !tbaa !9
  br label %73

73:                                               ; preds = %55
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %9, align 4, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = add nsw i32 %76, -1
  store i32 %77, ptr %10, align 4, !tbaa !5
  br label %51, !llvm.loop !10

78:                                               ; preds = %51
  br label %109

79:                                               ; preds = %42
  %80 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
  %81 = load i8, ptr %80, align 1, !tbaa !9
  %82 = sext i8 %81 to i32
  %83 = icmp eq i32 %82, 83
  br i1 %83, label %84, label %108

84:                                               ; preds = %79
  %85 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %6, ptr noundef %7)
  %86 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %86, ptr %9, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %104, %84
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %91, label %107

91:                                               ; preds = %87
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !9
  %96 = sext i8 %95 to i32
  %97 = sub nsw i32 %96, 97
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [28 x i8], ptr %11, i64 0, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [90010 x i8], ptr %13, i64 0, i64 %102
  store i8 %100, ptr %103, align 1, !tbaa !9
  br label %104

104:                                              ; preds = %91
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %9, align 4, !tbaa !5
  br label %87, !llvm.loop !12

107:                                              ; preds = %87
  br label %108

108:                                              ; preds = %107, %79
  br label %109

109:                                              ; preds = %108, %78
  br label %110

110:                                              ; preds = %109, %34
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %3, align 4, !tbaa !5
  br label %23, !llvm.loop !13

114:                                              ; preds = %23
  br label %15, !llvm.loop !14

115:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 90010, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 28, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  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 4, ptr %2) #4
  ret i32 0
}

; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


; 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"

@__const.main.str = external hidden unnamed_addr constant [28 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [2 x i8], align 1
  %7 = alloca [90010 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 90010, ptr nonnull %7) #3
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr %1, align 4, !tbaa !5
  %.not30 = icmp eq i32 %9, 0
  br i1 %.not30, label %._crit_edge, label %.lr.ph31

.lr.ph31:                                         ; preds = %0
  %11 = getelementptr inbounds i8, ptr %7, i64 1
  br label %14

.loopexit21:                                      ; preds = %.loopexit, %14
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %._crit_edge, label %14, !llvm.loop !9

14:                                               ; preds = %.lr.ph31, %.loopexit21
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %2, ptr noundef nonnull %11)
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph29, label %.loopexit21

.lr.ph29:                                         ; preds = %14, %.loopexit
  %.01628 = phi i32 [ %77, %.loopexit ], [ 0, %14 ]
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %6)
  %19 = load i8, ptr %6, align 1, !tbaa !11
  switch i8 %19, label %.loopexit [
    i8 81, label %20
    i8 82, label %28
    i8 83, label %38
  ]

20:                                               ; preds = %.lr.ph29
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %23
  %25 = load i8, ptr %24, align 1, !tbaa !11
  %26 = sext i8 %25 to i32
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %26)
  br label %.loopexit

28:                                               ; preds = %.lr.ph29
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %.not1924 = icmp sgt i32 %30, %31
  br i1 %.not1924, label %.loopexit, label %.lr.ph27.preheader

.lr.ph27.preheader:                               ; preds = %28
  %32 = sext i32 %31 to i64
  %33 = sext i32 %30 to i64
  br label %.lr.ph27

.lr.ph27:                                         ; preds = %.lr.ph27.preheader, %.lr.ph27
  %indvars.iv36 = phi i64 [ %33, %.lr.ph27.preheader ], [ %indvars.iv.next37, %.lr.ph27 ]
  %indvars.iv34 = phi i64 [ %32, %.lr.ph27.preheader ], [ %indvars.iv.next35, %.lr.ph27 ]
  %34 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv36
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv34
  %37 = load i8, ptr %36, align 1, !tbaa !11
  store i8 %37, ptr %34, align 1, !tbaa !11
  store i8 %35, ptr %36, align 1, !tbaa !11
  %indvars.iv.next37 = add nsw i64 %indvars.iv36, 1
  %indvars.iv.next35 = add nsw i64 %indvars.iv34, -1
  %.not19.not = icmp slt i64 %indvars.iv36, %indvars.iv.next35
  br i1 %.not19.not, label %.lr.ph27, label %.loopexit, !llvm.loop !12

38:                                               ; preds = %.lr.ph29
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %.not1822 = icmp sgt i32 %40, %41
  br i1 %.not1822, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %38
  %42 = sext i32 %40 to i64
  %43 = add i32 %41, 1
  %44 = sub i32 %43, %40
  %45 = sub i32 %41, %40
  %xtraiter = and i32 %44, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %42, %.lr.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %46 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv.prol
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = sext i8 %47 to i64
  %49 = add nsw i64 %48, -97
  %50 = getelementptr inbounds [28 x i8], ptr @__const.main.str, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !11
  store i8 %51, ptr %46, align 1, !tbaa !11
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !13

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %42, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %52 = icmp ult i32 %45, 3
  br i1 %52, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %53 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i64
  %56 = add nsw i64 %55, -97
  %57 = getelementptr inbounds [28 x i8], ptr @__const.main.str, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !11
  store i8 %58, ptr %53, align 1, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %59 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv.next
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = sext i8 %60 to i64
  %62 = add nsw i64 %61, -97
  %63 = getelementptr inbounds [28 x i8], ptr @__const.main.str, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  store i8 %64, ptr %59, align 1, !tbaa !11
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %65 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv.next.1
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = sext i8 %66 to i64
  %68 = add nsw i64 %67, -97
  %69 = getelementptr inbounds [28 x i8], ptr @__const.main.str, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !11
  store i8 %70, ptr %65, align 1, !tbaa !11
  %indvars.iv.next.2 = add nsw i64 %indvars.iv, 3
  %71 = getelementptr inbounds [90010 x i8], ptr %7, i64 0, i64 %indvars.iv.next.2
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i64
  %74 = add nsw i64 %73, -97
  %75 = getelementptr inbounds [28 x i8], ptr @__const.main.str, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !11
  store i8 %76, ptr %71, align 1, !tbaa !11
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next.3 to i32
  %exitcond.not.3 = icmp eq i32 %43, %lftr.wideiv.3
  br i1 %exitcond.not.3, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph27, %38, %28, %.lr.ph29, %20
  %77 = add nuw nsw i32 %.01628, 1
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %.lr.ph29, label %.loopexit21, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit21, %0
  call void @llvm.lifetime.end.p0(i64 90010, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  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: 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

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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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