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

; 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
@m = external dso_local global i32, align 4
@f = external dso_local global [100001 x i32], align 16
@buf = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.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
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @buf)
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = and i32 %11, 1
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %0
  %15 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  br label %93

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

17:                                               ; preds = %67, %16
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = ashr i32 %23, 1
  store i32 %24, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sub nsw i32 %25, 1
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100001 x i8], ptr @buf, i64 0, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = sext i8 %29 to i32
  %31 = icmp ne i32 %30, 63
  br i1 %31, label %32, label %35

32:                                               ; preds = %22
  %33 = load i32, ptr @m, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr @m, align 4, !tbaa !5
  br label %66

35:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = ashr i32 %37, 1
  %39 = sub nsw i32 %36, %38
  store i32 %39, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %41 = load i32, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  store i32 %41, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = sub nsw i32 %42, %43
  store i32 %44, ptr %7, align 4, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %46 = load i32, ptr %45, align 4, !tbaa !5
  store i32 %46, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %47

47:                                               ; preds = %62, %35
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = icmp sle i32 %48, %49
  br i1 %50, label %51, label %65

51:                                               ; preds = %47
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sub nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %56
  store i32 %61, ptr %59, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %51
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, -1
  store i32 %64, ptr %3, align 4, !tbaa !5
  br label %47, !llvm.loop !10

65:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %66

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

67:                                               ; preds = %66
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !12

70:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = ashr i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %76 = load i32, ptr @m, align 4, !tbaa !5
  %77 = load i32, ptr @m, align 4, !tbaa !5
  %78 = add nsw i32 %76, %77
  store i32 %78, ptr %9, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %87, %70
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = load i32, ptr @n, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %90

84:                                               ; preds = %79
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = mul nsw i32 %85, 25
  store i32 %86, ptr %8, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %84
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = add nsw i32 %88, 2
  store i32 %89, ptr %9, align 4, !tbaa !5
  br label %79, !llvm.loop !13

90:                                               ; preds = %83
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %91)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %93

93:                                               ; preds = %90, %14
  %94 = load i32, ptr %1, align 4
  ret i32 %94
}

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

declare i32 @puts(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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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 = { inlinehint 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 #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}


; 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
@m = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local local_unnamed_addr global [100001 x i32], align 16
@buf = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress 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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @buf)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = and i32 %6, 1
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %10, label %8

8:                                                ; preds = %0
  %9 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %74

10:                                               ; preds = %0
  store i32 1, ptr @f, align 16, !tbaa !5
  %.not1722 = icmp slt i32 %6, 1
  br i1 %.not1722, label %._crit_edge, label %.lr.ph24

._crit_edge:                                      ; preds = %.loopexit, %10
  %.lcssa = phi i32 [ %6, %10 ], [ %68, %.loopexit ]
  %11 = ashr i32 %.lcssa, 1
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %16 = shl nsw i32 %15, 1
  %17 = icmp slt i32 %16, %.lcssa
  br i1 %17, label %.lr.ph28.preheader, label %._crit_edge29

.lr.ph28.preheader:                               ; preds = %._crit_edge
  %18 = add i32 %16, 2
  %smax = call i32 @llvm.smax.i32(i32 %.lcssa, i32 %18)
  %19 = xor i32 %16, -1
  %20 = add i32 %smax, %19
  %21 = lshr i32 %20, 1
  %22 = add nuw i32 %21, 1
  %min.iters.check48 = icmp ult i32 %20, 14
  br i1 %min.iters.check48, label %.lr.ph28.preheader59, label %vector.ph49

.lr.ph28.preheader59:                             ; preds = %middle.block46, %.lr.ph28.preheader
  %.026.ph = phi i32 [ %16, %.lr.ph28.preheader ], [ %ind.end52, %middle.block46 ]
  %.01225.ph = phi i32 [ %14, %.lr.ph28.preheader ], [ %28, %middle.block46 ]
  br label %.lr.ph28

vector.ph49:                                      ; preds = %.lr.ph28.preheader
  %n.vec51 = and i32 %22, -8
  %23 = add i32 %15, %n.vec51
  %ind.end52 = shl i32 %23, 1
  %24 = insertelement <4 x i32> <i32 poison, i32 1, i32 1, i32 1>, i32 %14, i64 0
  br label %vector.body54

vector.body54:                                    ; preds = %vector.body54, %vector.ph49
  %index55 = phi i32 [ 0, %vector.ph49 ], [ %index.next57, %vector.body54 ]
  %vec.phi = phi <4 x i32> [ %24, %vector.ph49 ], [ %25, %vector.body54 ]
  %vec.phi56 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph49 ], [ %26, %vector.body54 ]
  %25 = mul <4 x i32> %vec.phi, <i32 25, i32 25, i32 25, i32 25>
  %26 = mul <4 x i32> %vec.phi56, <i32 25, i32 25, i32 25, i32 25>
  %index.next57 = add nuw i32 %index55, 8
  %27 = icmp eq i32 %index.next57, %n.vec51
  br i1 %27, label %middle.block46, label %vector.body54, !llvm.loop !9

middle.block46:                                   ; preds = %vector.body54
  %bin.rdx = mul <4 x i32> %26, %25
  %28 = call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n58 = icmp eq i32 %22, %n.vec51
  br i1 %cmp.n58, label %._crit_edge29, label %.lr.ph28.preheader59

.lr.ph24:                                         ; preds = %10, %.loopexit
  %indvars.iv35 = phi i64 [ %indvars.iv.next36, %.loopexit ], [ 1, %10 ]
  %29 = phi i32 [ %68, %.loopexit ], [ %6, %10 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %30 = trunc nuw nsw i64 %indvars.iv35 to i32
  %31 = lshr i32 %30, 1
  store i32 %31, ptr %1, align 4, !tbaa !5
  %32 = add nsw i64 %indvars.iv35, -1
  %33 = getelementptr inbounds [100001 x i8], ptr @buf, i64 0, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !13
  %.not18 = icmp eq i8 %34, 63
  br i1 %.not18, label %38, label %35

35:                                               ; preds = %.lr.ph24
  %36 = load i32, ptr @m, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr @m, align 4, !tbaa !5
  br label %.loopexit

38:                                               ; preds = %.lr.ph24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %39 = ashr i32 %29, 1
  %40 = sub nsw i32 %30, %39
  store i32 %40, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = sub nsw i32 %30, %43
  store i32 %44, ptr %4, align 4, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %46 = load i32, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %.not1920 = icmp sgt i32 %42, %46
  br i1 %.not1920, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %38
  %47 = sext i32 %46 to i64
  %48 = sext i32 %42 to i64
  %.phi.trans.insert = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %47
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  %49 = add nsw i64 %47, 1
  %50 = sub nsw i64 %49, %48
  %min.iters.check = icmp ult i64 %50, 8
  br i1 %min.iters.check, label %.lr.ph.preheader63, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %50, -8
  %ind.end = sub nsw i64 %47, %n.vec
  %vector.recur.init = insertelement <4 x i32> poison, i32 %.pre, i64 3
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <4 x i32> [ %vector.recur.init, %vector.ph ], [ %reverse43, %vector.body ]
  %offset.idx = sub i64 %47, %index
  %51 = add nsw i64 %offset.idx, -1
  %52 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %51
  %53 = getelementptr inbounds i8, ptr %52, i64 -12
  %54 = getelementptr inbounds i8, ptr %52, i64 -28
  %wide.load = load <4 x i32>, ptr %53, align 4, !tbaa !5
  %reverse = shufflevector <4 x i32> %wide.load, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load42 = load <4 x i32>, ptr %54, align 4, !tbaa !5
  %reverse43 = shufflevector <4 x i32> %wide.load42, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %55 = shufflevector <4 x i32> %vector.recur, <4 x i32> %reverse, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
  %56 = shufflevector <4 x i32> %reverse, <4 x i32> %reverse43, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
  %57 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %offset.idx
  %58 = add nsw <4 x i32> %55, %reverse
  %59 = add nsw <4 x i32> %56, %reverse43
  %60 = getelementptr inbounds i8, ptr %57, i64 -12
  %61 = getelementptr inbounds i8, ptr %57, i64 -28
  %reverse44 = shufflevector <4 x i32> %58, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  store <4 x i32> %reverse44, ptr %60, align 4, !tbaa !5
  %reverse45 = shufflevector <4 x i32> %59, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  store <4 x i32> %reverse45, ptr %61, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %62 = icmp eq i64 %index.next, %n.vec
  br i1 %62, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %vector.recur.extract = extractelement <4 x i32> %wide.load42, i64 0
  %cmp.n = icmp eq i64 %50, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader63

.lr.ph.preheader63:                               ; preds = %middle.block, %.lr.ph.preheader
  %.ph = phi i32 [ %.pre, %.lr.ph.preheader ], [ %vector.recur.extract, %middle.block ]
  %indvars.iv.ph = phi i64 [ %47, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader63, %.lr.ph
  %63 = phi i32 [ %65, %.lr.ph ], [ %.ph, %.lr.ph.preheader63 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader63 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %64 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %indvars.iv.next
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = getelementptr inbounds [100001 x i32], ptr @f, i64 0, i64 %indvars.iv
  %67 = add nsw i32 %63, %65
  store i32 %67, ptr %66, align 4, !tbaa !5
  %.not19.not = icmp sgt i64 %indvars.iv, %48
  br i1 %.not19.not, label %.lr.ph, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %middle.block, %38, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %.not17.not = icmp slt i64 %indvars.iv35, %69
  br i1 %.not17.not, label %.lr.ph24, label %._crit_edge, !llvm.loop !16

._crit_edge29:                                    ; preds = %.lr.ph28, %middle.block46, %._crit_edge
  %.012.lcssa = phi i32 [ %14, %._crit_edge ], [ %28, %middle.block46 ], [ %71, %.lr.ph28 ]
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.012.lcssa)
  br label %74

.lr.ph28:                                         ; preds = %.lr.ph28.preheader59, %.lr.ph28
  %.026 = phi i32 [ %72, %.lr.ph28 ], [ %.026.ph, %.lr.ph28.preheader59 ]
  %.01225 = phi i32 [ %71, %.lr.ph28 ], [ %.01225.ph, %.lr.ph28.preheader59 ]
  %71 = mul nsw i32 %.01225, 25
  %72 = add nsw i32 %.026, 2
  %73 = icmp slt i32 %72, %.lcssa
  br i1 %73, label %.lr.ph28, label %._crit_edge29, !llvm.loop !17

74:                                               ; preds = %._crit_edge29, %8
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #4

attributes #0 = { 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 #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 = { inlinehint 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 #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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !12, !11}


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