; LLVM IR from tangjz/acm-icpc :: self_training/2015-08-14 (G)

; 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 [25 x i32], align 16
@b = external dso_local global [25 x i32], align 16
@c = external dso_local global [25 x i32], align 16
@ans = external dso_local global i32, align 4
@.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 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
  store i32 0, ptr %1, align 4
  br label %9

9:                                                ; preds = %96, %0
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %11 = icmp eq i32 %10, 1
  br i1 %11, label %12, label %99

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

13:                                               ; preds = %24, %12
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %22
  store i32 %20, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %24

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

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

28:                                               ; preds = %38, %27
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %41

33:                                               ; preds = %28
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr @b, i64 %35
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %36)
  br label %38

38:                                               ; preds = %33
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %4, align 4, !tbaa !5
  br label %28, !llvm.loop !11

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

42:                                               ; preds = %58, %41
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %61

47:                                               ; preds = %42
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [25 x i32], ptr @b, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %56
  store i32 %54, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %47
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !5
  br label %42, !llvm.loop !12

61:                                               ; preds = %46
  store i32 0, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %93, %61
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %96

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %8, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %89, %67
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %75, label %74

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

75:                                               ; preds = %70
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = icmp sgt i32 %79, %83
  br i1 %84, label %85, label %88

85:                                               ; preds = %75
  %86 = load i32, ptr @ans, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr @ans, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %85, %75
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %8, align 4, !tbaa !5
  br label %70, !llvm.loop !13

92:                                               ; preds = %74
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %6, align 4, !tbaa !5
  br label %62, !llvm.loop !14

96:                                               ; preds = %66
  %97 = load i32, ptr @ans, align 4, !tbaa !5
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %97)
  br label %9, !llvm.loop !15

99:                                               ; preds = %9
  ret i32 0
}

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

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

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

declare i32 @printf(ptr noundef, ...) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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 local_unnamed_addr global [25 x i32], align 16
@b = external dso_local global [25 x i32], align 16
@c = external dso_local local_unnamed_addr global [25 x i32], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@.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 nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %.preheader26, label %._crit_edge50

.preheader26:                                     ; preds = %0, %._crit_edge49
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not27 = icmp slt i32 %4, 1
  br i1 %.not27, label %._crit_edge49.sink.split, label %.lr.ph

.preheader25:                                     ; preds = %.lr.ph
  %.not2129 = icmp slt i32 %10, 1
  br i1 %.not2129, label %._crit_edge49.sink.split, label %.lr.ph31

.lr.ph:                                           ; preds = %.preheader26, %.lr.ph
  %.02028 = phi i32 [ %9, %.lr.ph ], [ 1, %.preheader26 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %7
  store i32 %.02028, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  %9 = add nuw nsw i32 %.02028, 1
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.02028, %10
  br i1 %.not.not, label %.lr.ph, label %.preheader25, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph31
  %.not2232 = icmp slt i32 %15, 1
  br i1 %.not2232, label %._crit_edge49.sink.split, label %.lr.ph34.preheader

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

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

.lr.ph31:                                         ; preds = %.preheader25, %.lr.ph31
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph31 ], [ 1, %.preheader25 ]
  %13 = getelementptr inbounds i32, ptr @b, i64 %indvars.iv
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %13)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %.not21.not = icmp slt i64 %indvars.iv, %16
  br i1 %.not21.not, label %.lr.ph31, label %.preheader, !llvm.loop !11

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph34, %.lr.ph34.preheader
  %indvars.iv53.unr = phi i64 [ 1, %.lr.ph34.preheader ], [ %indvars.iv.next54.3, %.lr.ph34 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph34.epil

.lr.ph34.epil:                                    ; preds = %._crit_edge.unr-lcssa, %.lr.ph34.epil
  %indvars.iv53.epil = phi i64 [ %indvars.iv.next54.epil, %.lr.ph34.epil ], [ %indvars.iv53.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph34.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %17 = getelementptr inbounds [25 x i32], ptr @b, i64 0, i64 %indvars.iv53.epil
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv53.epil
  store i32 %21, ptr %22, align 4, !tbaa !5
  %indvars.iv.next54.epil = add nuw nsw i64 %indvars.iv53.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.ph34.epil, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph34.epil, %._crit_edge.unr-lcssa
  store i32 0, ptr @ans, align 4, !tbaa !5
  br i1 %.not2232, label %._crit_edge49, label %.lr.ph48.preheader

.lr.ph48.preheader:                               ; preds = %._crit_edge
  %23 = add nuw i32 %15, 1
  %24 = zext nneg i32 %15 to i64
  %wide.trip.count65 = zext i32 %23 to i64
  %25 = add nsw i32 %15, -2
  br label %.lr.ph48

.lr.ph34:                                         ; preds = %.lr.ph34, %.lr.ph34.preheader.new
  %indvars.iv53 = phi i64 [ 1, %.lr.ph34.preheader.new ], [ %indvars.iv.next54.3, %.lr.ph34 ]
  %niter = phi i64 [ 0, %.lr.ph34.preheader.new ], [ %niter.next.3, %.lr.ph34 ]
  %26 = getelementptr inbounds [25 x i32], ptr @b, i64 0, i64 %indvars.iv53
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv53
  store i32 %30, ptr %31, align 4, !tbaa !5
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %32 = getelementptr inbounds [25 x i32], ptr @b, i64 0, i64 %indvars.iv.next54
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv.next54
  store i32 %36, ptr %37, align 4, !tbaa !5
  %indvars.iv.next54.1 = add nuw nsw i64 %indvars.iv53, 2
  %38 = getelementptr inbounds [25 x i32], ptr @b, i64 0, i64 %indvars.iv.next54.1
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv.next54.1
  store i32 %42, ptr %43, align 4, !tbaa !5
  %indvars.iv.next54.2 = add nuw nsw i64 %indvars.iv53, 3
  %44 = getelementptr inbounds [25 x i32], ptr @b, i64 0, i64 %indvars.iv.next54.2
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv.next54.2
  store i32 %48, ptr %49, align 4, !tbaa !5
  %indvars.iv.next54.3 = add nuw nsw i64 %indvars.iv53, 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.unr-lcssa, label %.lr.ph34, !llvm.loop !14

.loopexit:                                        ; preds = %.prol.loopexit, %78, %.lr.ph48
  %ans.promoted42 = phi i32 [ %ans.promoted4345, %.lr.ph48 ], [ %ans.promoted40.lcssa.unr, %.prol.loopexit ], [ %ans.promoted40.1, %78 ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond66.not = icmp eq i64 %indvars.iv.next63, %wide.trip.count65
  %indvar.next = add i32 %indvar, 1
  br i1 %exitcond66.not, label %._crit_edge49, label %.lr.ph48, !llvm.loop !15

._crit_edge49.sink.split:                         ; preds = %.preheader, %.preheader26, %.preheader25
  store i32 0, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge49

._crit_edge49:                                    ; preds = %.loopexit, %._crit_edge49.sink.split, %._crit_edge
  %50 = phi i32 [ 0, %._crit_edge ], [ 0, %._crit_edge49.sink.split ], [ %ans.promoted42, %.loopexit ]
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %50)
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %.preheader26, label %._crit_edge50, !llvm.loop !16

.lr.ph48:                                         ; preds = %.lr.ph48.preheader, %.loopexit
  %indvar = phi i32 [ 0, %.lr.ph48.preheader ], [ %indvar.next, %.loopexit ]
  %indvars.iv62 = phi i64 [ 1, %.lr.ph48.preheader ], [ %indvars.iv.next63, %.loopexit ]
  %indvars.iv56 = phi i64 [ 2, %.lr.ph48.preheader ], [ %indvars.iv.next57, %.loopexit ]
  %ans.promoted4345 = phi i32 [ 0, %.lr.ph48.preheader ], [ %ans.promoted42, %.loopexit ]
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %.not2435.not = icmp ult i64 %indvars.iv62, %24
  br i1 %.not2435.not, label %.lr.ph38, label %.loopexit

.lr.ph38:                                         ; preds = %.lr.ph48
  %54 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv62
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = sub i32 %indvar, %15
  %57 = and i32 %56, 1
  %lcmp.mod79.not.not = icmp eq i32 %57, 0
  br i1 %lcmp.mod79.not.not, label %.prol.preheader, label %.prol.loopexit

.prol.preheader:                                  ; preds = %.lr.ph38
  %58 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv56
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp sgt i32 %55, %59
  br i1 %60, label %61, label %.prol.loopexit.unr-lcssa

61:                                               ; preds = %.prol.preheader
  %62 = add nsw i32 %ans.promoted4345, 1
  store i32 %62, ptr @ans, align 4, !tbaa !5
  br label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %61, %.prol.preheader
  %63 = phi i32 [ %ans.promoted4345, %.prol.preheader ], [ %62, %61 ]
  %indvars.iv.next59.prol = add nuw nsw i64 %indvars.iv56, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph38
  %ans.promoted40.lcssa.unr = phi i32 [ poison, %.lr.ph38 ], [ %63, %.prol.loopexit.unr-lcssa ]
  %indvars.iv58.unr = phi i64 [ %indvars.iv56, %.lr.ph38 ], [ %indvars.iv.next59.prol, %.prol.loopexit.unr-lcssa ]
  %.unr = phi i32 [ %ans.promoted4345, %.lr.ph38 ], [ %63, %.prol.loopexit.unr-lcssa ]
  %64 = icmp eq i32 %25, %indvar
  br i1 %64, label %.loopexit, label %.lr.ph38.new

.lr.ph38.new:                                     ; preds = %.prol.loopexit, %78
  %indvars.iv58 = phi i64 [ %indvars.iv.next59.1, %78 ], [ %indvars.iv58.unr, %.prol.loopexit ]
  %ans.promoted41 = phi i32 [ %ans.promoted40.1, %78 ], [ %.unr, %.prol.loopexit ]
  %65 = phi i32 [ %79, %78 ], [ %.unr, %.prol.loopexit ]
  %66 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv58
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = icmp sgt i32 %55, %67
  br i1 %68, label %69, label %71

69:                                               ; preds = %.lr.ph38.new
  %70 = add nsw i32 %65, 1
  store i32 %70, ptr @ans, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %.lr.ph38.new, %69
  %ans.promoted40 = phi i32 [ %ans.promoted41, %.lr.ph38.new ], [ %70, %69 ]
  %72 = phi i32 [ %65, %.lr.ph38.new ], [ %70, %69 ]
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %73 = getelementptr inbounds [25 x i32], ptr @c, i64 0, i64 %indvars.iv.next59
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = icmp sgt i32 %55, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %71
  %77 = add nsw i32 %72, 1
  store i32 %77, ptr @ans, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %76, %71
  %ans.promoted40.1 = phi i32 [ %ans.promoted40, %71 ], [ %77, %76 ]
  %79 = phi i32 [ %72, %71 ], [ %77, %76 ]
  %indvars.iv.next59.1 = add nuw nsw i64 %indvars.iv58, 2
  %lftr.wideiv.1 = trunc i64 %indvars.iv.next59.1 to i32
  %exitcond61.not.1 = icmp eq i32 %23, %lftr.wideiv.1
  br i1 %exitcond61.not.1, label %.loopexit, label %.lr.ph38.new, !llvm.loop !17

._crit_edge50:                                    ; preds = %._crit_edge49, %0
  ret i32 0
}

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = distinct !{!11, !10}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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