; LLVM IR from tangjz/acm-icpc :: 51nod (1832)

; 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
@pre = external dso_local global [10001 x i32], align 16
@suf = external dso_local global [10001 x i32], align 16
@pid = external dso_local global [10001 x i32], align 16
@sid = external dso_local global [10001 x i32], align 16
@cnt = external dso_local global i32, align 4
@len = external dso_local global i32, align 4
@ans = external dso_local global [335 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

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

14:                                               ; preds = %9
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds i32, ptr @pre, i64 %16
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %17)
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [10001 x i32], ptr @pid, i64 0, i64 %24
  store i32 %19, ptr %25, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %14
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !9

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

30:                                               ; preds = %47, %29
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = icmp sle i32 %31, %32
  br i1 %33, label %35, label %34

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

35:                                               ; preds = %30
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr @suf, i64 %37
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %38)
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10001 x i32], ptr @suf, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [10001 x i32], ptr @sid, i64 0, i64 %45
  store i32 %40, ptr %46, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %35
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %3, align 4, !tbaa !5
  br label %30, !llvm.loop !11

50:                                               ; preds = %34
  %51 = load i32, ptr @n, align 4, !tbaa !5
  %52 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3dfsiiii(i32 noundef 1, i32 noundef %51, i32 noundef 1, i32 noundef %52)
  store i32 1, ptr @ans, align 16, !tbaa !5
  store i32 1, ptr @len, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %108, %50
  %54 = load i32, ptr @cnt, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %56, label %111

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %57 = load i32, ptr @cnt, align 4, !tbaa !5
  %58 = icmp slt i32 %57, 30
  br i1 %58, label %59, label %61

59:                                               ; preds = %56
  %60 = load i32, ptr @cnt, align 4, !tbaa !5
  br label %62

61:                                               ; preds = %56
  br label %62

62:                                               ; preds = %61, %59
  %63 = phi i32 [ %60, %59 ], [ 30, %61 ]
  %64 = shl i32 1, %63
  store i32 %64, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %89, %62
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = load i32, ptr @len, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %92

70:                                               ; preds = %65
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = mul nsw i64 %75, %77
  %79 = load i64, ptr %5, align 8, !tbaa !12
  %80 = add nsw i64 %79, %78
  store i64 %80, ptr %5, align 8, !tbaa !12
  %81 = load i64, ptr %5, align 8, !tbaa !12
  %82 = srem i64 %81, 1000000000
  %83 = trunc i64 %82 to i32
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %85
  store i32 %83, ptr %86, align 4, !tbaa !5
  %87 = load i64, ptr %5, align 8, !tbaa !12
  %88 = sdiv i64 %87, 1000000000
  store i64 %88, ptr %5, align 8, !tbaa !12
  br label %89

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

92:                                               ; preds = %69
  br label %93

93:                                               ; preds = %97, %92
  %94 = load i64, ptr %5, align 8, !tbaa !12
  %95 = icmp sgt i64 %94, 0
  br i1 %95, label %96, label %107

96:                                               ; preds = %93
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %5, align 8, !tbaa !12
  %99 = srem i64 %98, 1000000000
  %100 = trunc i64 %99 to i32
  %101 = load i32, ptr @len, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr @len, align 4, !tbaa !5
  %103 = sext i32 %101 to i64
  %104 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %103
  store i32 %100, ptr %104, align 4, !tbaa !5
  %105 = load i64, ptr %5, align 8, !tbaa !12
  %106 = sdiv i64 %105, 1000000000
  store i64 %106, ptr %5, align 8, !tbaa !12
  br label %93, !llvm.loop !15

107:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr @cnt, align 4, !tbaa !5
  %110 = sub nsw i32 %109, 30
  store i32 %110, ptr @cnt, align 4, !tbaa !5
  br label %53, !llvm.loop !16

111:                                              ; preds = %53
  %112 = load i32, ptr @len, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %116)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %118 = load i32, ptr @len, align 4, !tbaa !5
  %119 = sub nsw i32 %118, 2
  store i32 %119, ptr %7, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %130, %111
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = icmp sge i32 %121, 0
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %133

124:                                              ; preds = %120
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 9, i32 noundef %128)
  br label %130

130:                                              ; preds = %124
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %7, align 4, !tbaa !5
  br label %120, !llvm.loop !17

133:                                              ; preds = %123
  %134 = call i32 @putchar(i32 noundef 10)
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #4

attributes #0 = { mustprogress 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 = { 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 #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 = { inlinehint mustprogress 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 #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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !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
@pre = external dso_local global [10001 x i32], align 16
@suf = external dso_local global [10001 x i32], align 16
@pid = external dso_local local_unnamed_addr global [10001 x i32], align 16
@sid = external dso_local local_unnamed_addr global [10001 x i32], align 16
@cnt = external dso_local local_unnamed_addr global i32, align 4
@len = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global [335 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

.preheader31:                                     ; preds = %.lr.ph
  %.not3034 = icmp slt i32 %9, 1
  br i1 %.not3034, label %._crit_edge, label %.lr.ph36

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

._crit_edge:                                      ; preds = %.lr.ph36, %0, %.preheader31
  %.lcssa = phi i32 [ %9, %.preheader31 ], [ %2, %0 ], [ %18, %.lr.ph36 ]
  tail call void @_Z3dfsiiii(i32 noundef 1, i32 noundef %.lcssa, i32 noundef 1, i32 noundef %.lcssa)
  store i32 1, ptr @ans, align 16, !tbaa !5
  store i32 1, ptr @len, align 4, !tbaa !5
  %.pr = load i32, ptr @cnt, align 4
  %11 = icmp sgt i32 %.pr, 0
  br i1 %11, label %.lr.ph51, label %44

.lr.ph36:                                         ; preds = %.preheader31, %.lr.ph36
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.lr.ph36 ], [ 1, %.preheader31 ]
  %12 = getelementptr inbounds i32, ptr @suf, i64 %indvars.iv63
  %13 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %12)
  %14 = load i32, ptr %12, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [10001 x i32], ptr @sid, i64 0, i64 %15
  %17 = trunc nuw nsw i64 %indvars.iv63 to i32
  store i32 %17, ptr %16, align 4, !tbaa !5
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %.not30.not = icmp slt i64 %indvars.iv63, %19
  br i1 %.not30.not, label %.lr.ph36, label %._crit_edge, !llvm.loop !11

.lr.ph51:                                         ; preds = %._crit_edge, %.preheader.thread
  %20 = phi i32 [ %40, %.preheader.thread ], [ %.pr, %._crit_edge ]
  %.lcssa454849 = phi i32 [ %.lcssa4547, %.preheader.thread ], [ 1, %._crit_edge ]
  %21 = icmp sgt i32 %.lcssa454849, 0
  br i1 %21, label %.lr.ph40, label %.preheader.thread

.lr.ph40:                                         ; preds = %.lr.ph51
  %22 = tail call i32 @llvm.umin.i32(i32 %20, i32 30)
  %23 = zext nneg i32 %22 to i64
  %wide.trip.count = zext nneg i32 %.lcssa454849 to i64
  br label %26

.preheader:                                       ; preds = %26
  %24 = icmp sgt i64 %31, 999999999
  br i1 %24, label %.lr.ph43.preheader, label %.preheader.thread

.lr.ph43.preheader:                               ; preds = %.preheader
  %25 = zext nneg i32 %.lcssa454849 to i64
  br label %.lr.ph43

26:                                               ; preds = %.lr.ph40, %26
  %indvars.iv66 = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next67, %26 ]
  %.02537 = phi i64 [ 0, %.lr.ph40 ], [ %34, %26 ]
  %27 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %indvars.iv66
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = shl nsw i64 %29, %23
  %31 = add nsw i64 %30, %.02537
  %32 = srem i64 %31, 1000000000
  %33 = trunc nsw i64 %32 to i32
  store i32 %33, ptr %27, align 4, !tbaa !5
  %34 = sdiv i64 %31, 1000000000
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %26, !llvm.loop !12

.lr.ph43:                                         ; preds = %.lr.ph43.preheader, %.lr.ph43
  %indvars.iv69 = phi i64 [ %25, %.lr.ph43.preheader ], [ %indvars.iv.next70, %.lr.ph43 ]
  %.142 = phi i64 [ %34, %.lr.ph43.preheader ], [ %38, %.lr.ph43 ]
  %35 = urem i64 %.142, 1000000000
  %36 = trunc nuw nsw i64 %35 to i32
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %37 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %indvars.iv69
  store i32 %36, ptr %37, align 4, !tbaa !5
  %38 = udiv i64 %.142, 1000000000
  %.not = icmp ult i64 %.142, 1000000000
  br i1 %.not, label %._crit_edge44, label %.lr.ph43, !llvm.loop !13

._crit_edge44:                                    ; preds = %.lr.ph43
  %39 = trunc nsw i64 %indvars.iv.next70 to i32
  store i32 %39, ptr @len, align 4, !tbaa !5
  br label %.preheader.thread

.preheader.thread:                                ; preds = %.lr.ph51, %._crit_edge44, %.preheader
  %.lcssa4547 = phi i32 [ %39, %._crit_edge44 ], [ %.lcssa454849, %.preheader ], [ %.lcssa454849, %.lr.ph51 ]
  %40 = add nsw i32 %20, -30
  %41 = icmp sgt i32 %20, 30
  br i1 %41, label %.lr.ph51, label %._crit_edge52, !llvm.loop !14

._crit_edge52:                                    ; preds = %.preheader.thread
  store i32 %40, ptr @cnt, align 4, !tbaa !5
  %42 = add nsw i32 %.lcssa4547, -1
  %43 = sext i32 %42 to i64
  br label %44

44:                                               ; preds = %._crit_edge52, %._crit_edge
  %45 = phi i64 [ %43, %._crit_edge52 ], [ 0, %._crit_edge ]
  %46 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %47)
  %49 = load i32, ptr @len, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %.lr.ph56.preheader, label %._crit_edge57

.lr.ph56.preheader:                               ; preds = %44
  %51 = add nsw i32 %49, -2
  %52 = zext nneg i32 %51 to i64
  br label %.lr.ph56

._crit_edge57:                                    ; preds = %.lr.ph56, %44
  %53 = tail call i32 @putchar(i32 noundef 10)
  ret i32 0

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %.lr.ph56
  %indvars.iv72 = phi i64 [ %52, %.lr.ph56.preheader ], [ %indvars.iv.next73, %.lr.ph56 ]
  %54 = getelementptr inbounds [335 x i32], ptr @ans, i64 0, i64 %indvars.iv72
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 9, i32 noundef %55)
  %indvars.iv.next73 = add nsw i64 %indvars.iv72, -1
  %.not81 = icmp eq i64 %indvars.iv72, 0
  br i1 %.not81, label %._crit_edge57, label %.lr.ph56, !llvm.loop !15
}

; 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: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress 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 = { 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 = { inlinehint mustprogress nofree 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) }

!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,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass