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

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

@ans = external dso_local global [25 x i32], align 16
@a = external dso_local global [25 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
@.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
  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
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %7)
  br label %9

9:                                                ; preds = %118, %0
  %10 = load i32, ptr %7, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr %7, align 4, !tbaa !5
  %12 = icmp ne i32 %10, 0
  br i1 %12, label %13, label %124

13:                                               ; preds = %9
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4)
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %30, %13
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %33

19:                                               ; preds = %15
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %21
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %22)
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = add nsw i32 %28, %27
  store i32 %29, ptr %6, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %19
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !9

33:                                               ; preds = %15
  call void @llvm.memset.p0.i64(ptr align 16 @ans, i8 0, i64 100, i1 false)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %100, %33
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = shl i32 1, %36
  %38 = icmp slt i32 %35, %37
  br i1 %38, label %39, label %103

39:                                               ; preds = %34
  store i32 0, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %58, %39
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %44, label %61

44:                                               ; preds = %40
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = shl i32 1, %46
  %48 = and i32 %45, %47
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %57

50:                                               ; preds = %44
  %51 = load i32, ptr %3, 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 = add nsw i32 %55, %54
  store i32 %56, ptr %5, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %50, %44
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %3, align 4, !tbaa !5
  br label %40, !llvm.loop !11

61:                                               ; preds = %40
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = mul nsw i32 2, %62
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %100

67:                                               ; preds = %61
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %96, %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %72, label %99

72:                                               ; preds = %68
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = shl i32 1, %74
  %76 = and i32 %73, %75
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %95

78:                                               ; preds = %72
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sub nsw i32 %79, %83
  %85 = mul nsw i32 2, %84
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %88, label %94

88:                                               ; preds = %78
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [25 x i32], ptr @ans, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %91, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %88, %78
  br label %95

95:                                               ; preds = %94, %72
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %3, align 4, !tbaa !5
  br label %68, !llvm.loop !12

99:                                               ; preds = %68
  br label %100

100:                                              ; preds = %99, %66
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %2, align 4, !tbaa !5
  br label %34, !llvm.loop !13

103:                                              ; preds = %34
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %115, %103
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  %108 = icmp slt i32 %105, %107
  br i1 %108, label %109, label %118

109:                                              ; preds = %104
  %110 = load i32, ptr %2, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [25 x i32], ptr @ans, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %113)
  br label %115

115:                                              ; preds = %109
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %2, align 4, !tbaa !5
  br label %104, !llvm.loop !14

118:                                              ; preds = %104
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [25 x i32], ptr @ans, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %122)
  br label %9, !llvm.loop !15

124:                                              ; preds = %9
  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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; 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 = { "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 nounwind willreturn memory(argmem: write) }
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}
!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"

@ans = external dso_local local_unnamed_addr global [25 x i32], align 16
@a = external dso_local global [25 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
@.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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %4 = load i32, ptr %2, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr %2, align 4, !tbaa !5
  %.not53 = icmp eq i32 %4, 0
  br i1 %.not53, label %._crit_edge56, label %.lr.ph55

.lr.ph55:                                         ; preds = %0, %._crit_edge51
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.lr.ph55
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) @ans, i8 0, i64 100, i1 false)
  br label %.preheader36.lr.ph

.lr.ph:                                           ; preds = %.lr.ph55, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph55 ]
  %.039 = phi i32 [ %12, %.lr.ph ], [ 0, %.lr.ph55 ]
  %9 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %indvars.iv
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %9)
  %11 = load i32, ptr %9, align 4, !tbaa !5
  %12 = add nsw i32 %11, %.039
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp slt i64 %indvars.iv.next, %14
  br i1 %15, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) @ans, i8 0, i64 100, i1 false)
  %.not58 = icmp eq i32 %13, 31
  br i1 %.not58, label %.lr.ph50.preheader, label %.preheader36.lr.ph

.preheader36.lr.ph:                               ; preds = %._crit_edge.thread, %._crit_edge
  %16 = phi i32 [ %7, %._crit_edge.thread ], [ %13, %._crit_edge ]
  %.0.lcssa77 = phi i32 [ 0, %._crit_edge.thread ], [ %12, %._crit_edge ]
  %17 = shl nuw nsw i32 1, %16
  %18 = icmp sgt i32 %16, 0
  %19 = icmp slt i32 %16, 1
  %wide.trip.count = zext i32 %16 to i64
  %wide.trip.count69 = zext nneg i32 %16 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %20 = icmp eq i32 %16, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader36

.preheader37:                                     ; preds = %.loopexit
  %21 = icmp sgt i32 %16, 1
  br i1 %21, label %.lr.ph50.preheader, label %._crit_edge51

.lr.ph50.preheader:                               ; preds = %._crit_edge, %.preheader37
  br label %.lr.ph50

.preheader36:                                     ; preds = %.preheader36.lr.ph, %.loopexit
  %.13148 = phi i32 [ 0, %.preheader36.lr.ph ], [ %58, %.loopexit ]
  br i1 %18, label %.lr.ph43.preheader, label %.loopexit

.lr.ph43.preheader:                               ; preds = %.preheader36
  br i1 %20, label %._crit_edge44.unr-lcssa, label %.lr.ph43

.lr.ph43:                                         ; preds = %.lr.ph43.preheader, %36
  %indvars.iv63 = phi i64 [ %indvars.iv.next64.1, %36 ], [ 0, %.lr.ph43.preheader ]
  %.02742 = phi i32 [ %.1.1, %36 ], [ 0, %.lr.ph43.preheader ]
  %niter = phi i64 [ %niter.next.1, %36 ], [ 0, %.lr.ph43.preheader ]
  %22 = trunc nuw nsw i64 %indvars.iv63 to i32
  %23 = shl nuw i32 1, %22
  %24 = and i32 %23, %.13148
  %.not35 = icmp eq i32 %24, 0
  br i1 %.not35, label %.lr.ph43.1, label %25

25:                                               ; preds = %.lr.ph43
  %26 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %indvars.iv63
  %27 = load i32, ptr %26, align 8, !tbaa !5
  %28 = add nsw i32 %27, %.02742
  br label %.lr.ph43.1

.lr.ph43.1:                                       ; preds = %.lr.ph43, %25
  %.1 = phi i32 [ %28, %25 ], [ %.02742, %.lr.ph43 ]
  %indvars.iv.next64 = or disjoint i64 %indvars.iv63, 1
  %29 = trunc nuw nsw i64 %indvars.iv.next64 to i32
  %30 = shl nuw i32 1, %29
  %31 = and i32 %30, %.13148
  %.not35.1 = icmp eq i32 %31, 0
  br i1 %.not35.1, label %36, label %32

32:                                               ; preds = %.lr.ph43.1
  %33 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %indvars.iv.next64
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, %.1
  br label %36

36:                                               ; preds = %32, %.lr.ph43.1
  %.1.1 = phi i32 [ %35, %32 ], [ %.1, %.lr.ph43.1 ]
  %indvars.iv.next64.1 = add nuw nsw i64 %indvars.iv63, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge44.unr-lcssa, label %.lr.ph43, !llvm.loop !11

._crit_edge44.unr-lcssa:                          ; preds = %36, %.lr.ph43.preheader
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph43.preheader ], [ %.1.1, %36 ]
  %indvars.iv63.unr = phi i64 [ 0, %.lr.ph43.preheader ], [ %indvars.iv.next64.1, %36 ]
  %.02742.unr = phi i32 [ 0, %.lr.ph43.preheader ], [ %.1.1, %36 ]
  br i1 %lcmp.mod.not, label %._crit_edge44, label %.lr.ph43.epil

.lr.ph43.epil:                                    ; preds = %._crit_edge44.unr-lcssa
  %37 = trunc nuw nsw i64 %indvars.iv63.unr to i32
  %38 = shl nuw i32 1, %37
  %39 = and i32 %38, %.13148
  %.not35.epil = icmp eq i32 %39, 0
  br i1 %.not35.epil, label %._crit_edge44, label %40

40:                                               ; preds = %.lr.ph43.epil
  %41 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %indvars.iv63.unr
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = add nsw i32 %42, %.02742.unr
  br label %._crit_edge44

._crit_edge44:                                    ; preds = %.lr.ph43.epil, %40, %._crit_edge44.unr-lcssa
  %.1.lcssa = phi i32 [ %.1.lcssa.ph, %._crit_edge44.unr-lcssa ], [ %43, %40 ], [ %.02742.unr, %.lr.ph43.epil ]
  %44 = shl nsw i32 %.1.lcssa, 1
  %.not32 = icmp sle i32 %44, %.0.lcssa77
  %brmerge = or i1 %.not32, %19
  br i1 %brmerge, label %.loopexit, label %.lr.ph47

.lr.ph47:                                         ; preds = %._crit_edge44, %57
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %57 ], [ 0, %._crit_edge44 ]
  %45 = trunc nuw nsw i64 %indvars.iv66 to i32
  %46 = shl nuw i32 1, %45
  %47 = and i32 %46, %.13148
  %.not33 = icmp eq i32 %47, 0
  br i1 %.not33, label %57, label %48

48:                                               ; preds = %.lr.ph47
  %49 = getelementptr inbounds [25 x i32], ptr @a, i64 0, i64 %indvars.iv66
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = sub nsw i32 %.1.lcssa, %50
  %52 = shl nsw i32 %51, 1
  %.not34 = icmp sgt i32 %52, %.0.lcssa77
  br i1 %.not34, label %57, label %53

53:                                               ; preds = %48
  %54 = getelementptr inbounds [25 x i32], ptr @ans, i64 0, i64 %indvars.iv66
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %54, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %.lr.ph47, %53, %48
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count69
  br i1 %exitcond70.not, label %.loopexit, label %.lr.ph47, !llvm.loop !12

.loopexit:                                        ; preds = %57, %.preheader36, %._crit_edge44
  %58 = add nuw nsw i32 %.13148, 1
  %exitcond71.not = icmp eq i32 %58, %17
  br i1 %exitcond71.not, label %.preheader37, label %.preheader36, !llvm.loop !13

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %.lr.ph50
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph50 ], [ 0, %.lr.ph50.preheader ]
  %59 = getelementptr inbounds [25 x i32], ptr @ans, i64 0, i64 %indvars.iv72
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %60)
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = add nsw i32 %62, -1
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next73, %64
  br i1 %65, label %.lr.ph50, label %._crit_edge51, !llvm.loop !14

._crit_edge51:                                    ; preds = %.lr.ph50, %.preheader37
  %.2.lcssa = phi i64 [ 0, %.preheader37 ], [ %indvars.iv.next73, %.lr.ph50 ]
  %66 = and i64 %.2.lcssa, 4294967295
  %67 = getelementptr inbounds [25 x i32], ptr @ans, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %68)
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %70, 0
  br i1 %.not, label %._crit_edge56, label %.lr.ph55, !llvm.loop !15

._crit_edge56:                                    ; preds = %._crit_edge51, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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