; LLVM IR from tangjz/acm-icpc :: poj (3125)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@pos = external dso_local global i32, align 4
@que = external dso_local global [110 x i32], align 16
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@now = external dso_local global i32, align 4
@cnt = external dso_local global [11 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 [5 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
  store i32 0, ptr %1, align 4
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %5

5:                                                ; preds = %137, %0
  %6 = load i32, ptr @t, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr @t, align 4, !tbaa !5
  %8 = icmp ne i32 %6, 0
  br i1 %8, label %9, label %140

9:                                                ; preds = %5
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @pos)
  store i32 0, ptr @l, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %11, ptr @r, align 4, !tbaa !5
  store i32 1, ptr @now, align 4, !tbaa !5
  store i32 0, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %20, %9
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp sle i32 %13, 9
  br i1 %14, label %16, label %15

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

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %18
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %16
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !9

23:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %54, %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %24
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i32, ptr @que, i64 %31
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %32)
  %34 = load i32, ptr @now, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp slt i32 %34, %38
  br i1 %39, label %40, label %45

40:                                               ; preds = %29
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %44, ptr @now, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %40, %29
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %45
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %3, align 4, !tbaa !5
  br label %24, !llvm.loop !11

57:                                               ; preds = %28
  br label %58

58:                                               ; preds = %136, %57
  %59 = load i32, ptr @l, align 4, !tbaa !5
  %60 = load i32, ptr @r, align 4, !tbaa !5
  %61 = icmp ne i32 %59, %60
  br i1 %61, label %62, label %137

62:                                               ; preds = %58
  %63 = load i32, ptr @l, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = load i32, ptr @now, align 4, !tbaa !5
  %68 = icmp eq i32 %66, %67
  br i1 %68, label %69, label %108

69:                                               ; preds = %62
  %70 = load i32, ptr @ans, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @ans, align 4, !tbaa !5
  %72 = load i32, ptr @l, align 4, !tbaa !5
  %73 = load i32, ptr @pos, align 4, !tbaa !5
  %74 = icmp eq i32 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %69
  br label %137

76:                                               ; preds = %69
  %77 = load i32, ptr @l, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr @l, align 4, !tbaa !5
  %79 = sext i32 %77 to i64
  %80 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = add nsw i32 %84, -1
  store i32 %85, ptr %83, align 4, !tbaa !5
  %86 = load i32, ptr @l, align 4, !tbaa !5
  %87 = icmp sge i32 %86, 110
  br i1 %87, label %88, label %91

88:                                               ; preds = %76
  %89 = load i32, ptr @l, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 110
  store i32 %90, ptr @l, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %88, %76
  br label %92

92:                                               ; preds = %104, %91
  %93 = load i32, ptr @now, align 4, !tbaa !5
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %102

95:                                               ; preds = %92
  %96 = load i32, ptr @now, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 0
  %101 = xor i1 %100, true
  br label %102

102:                                              ; preds = %95, %92
  %103 = phi i1 [ false, %92 ], [ %101, %95 ]
  br i1 %103, label %104, label %107

104:                                              ; preds = %102
  %105 = load i32, ptr @now, align 4, !tbaa !5
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr @now, align 4, !tbaa !5
  br label %92, !llvm.loop !12

107:                                              ; preds = %102
  br label %136

108:                                              ; preds = %62
  %109 = load i32, ptr @l, align 4, !tbaa !5
  %110 = load i32, ptr @pos, align 4, !tbaa !5
  %111 = icmp eq i32 %109, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = load i32, ptr @r, align 4, !tbaa !5
  store i32 %113, ptr @pos, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %112, %108
  %115 = load i32, ptr @l, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr @l, align 4, !tbaa !5
  %117 = sext i32 %115 to i64
  %118 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = load i32, ptr @r, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr @r, align 4, !tbaa !5
  %122 = sext i32 %120 to i64
  %123 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %122
  store i32 %119, ptr %123, align 4, !tbaa !5
  %124 = load i32, ptr @l, align 4, !tbaa !5
  %125 = icmp sge i32 %124, 110
  br i1 %125, label %126, label %129

126:                                              ; preds = %114
  %127 = load i32, ptr @l, align 4, !tbaa !5
  %128 = sub nsw i32 %127, 110
  store i32 %128, ptr @l, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %126, %114
  %130 = load i32, ptr @r, align 4, !tbaa !5
  %131 = icmp sge i32 %130, 110
  br i1 %131, label %132, label %135

132:                                              ; preds = %129
  %133 = load i32, ptr @r, align 4, !tbaa !5
  %134 = sub nsw i32 %133, 110
  store i32 %134, ptr @r, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %132, %129
  br label %136

136:                                              ; preds = %135, %107
  br label %58, !llvm.loop !13

137:                                              ; preds = %75, %58
  %138 = load i32, ptr @ans, align 4, !tbaa !5
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %138)
  br label %5, !llvm.loop !14

140:                                              ; preds = %5
  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}


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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@pos = external dso_local global i32, align 4
@que = external dso_local global [110 x i32], align 16
@l = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local local_unnamed_addr global i32, align 4
@now = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr global [11 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 [5 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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %2 = load i32, ptr @t, align 4, !tbaa !5
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @t, align 4, !tbaa !5
  %.not36 = icmp eq i32 %2, 0
  br i1 %.not36, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %0, %._crit_edge
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @pos)
  store i32 0, ptr @l, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %5, ptr @r, align 4, !tbaa !5
  store i32 1, ptr @now, align 4, !tbaa !5
  store i32 0, ptr @ans, align 4, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) getelementptr inbounds (i8, ptr @cnt, i64 4), i8 0, i64 36, i1 false), !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader

.preheader.loopexit:                              ; preds = %13
  %l.promoted.pre = load i32, ptr @l, align 4, !tbaa !5
  %r.promoted.pre = load i32, ptr @r, align 4, !tbaa !5
  %ans.promoted.pre = load i32, ptr @ans, align 4, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.lr.ph38
  %ans.promoted = phi i32 [ %ans.promoted.pre, %.preheader.loopexit ], [ 0, %.lr.ph38 ]
  %now.promoted = phi i32 [ %now.promoted48, %.preheader.loopexit ], [ 1, %.lr.ph38 ]
  %r.promoted = phi i32 [ %r.promoted.pre, %.preheader.loopexit ], [ %5, %.lr.ph38 ]
  %l.promoted = phi i32 [ %l.promoted.pre, %.preheader.loopexit ], [ 0, %.lr.ph38 ]
  %.not1832 = icmp eq i32 %l.promoted, %r.promoted
  br i1 %.not1832, label %._crit_edge, label %.lr.ph34.preheader

.lr.ph34.preheader:                               ; preds = %.preheader
  %pos.promoted = load i32, ptr @pos, align 4, !tbaa !5
  br label %.lr.ph34

.lr.ph:                                           ; preds = %.lr.ph38, %13
  %indvars.iv = phi i64 [ %indvars.iv.next, %13 ], [ 0, %.lr.ph38 ]
  %7 = getelementptr inbounds i32, ptr @que, i64 %indvars.iv
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %9 = load i32, ptr @now, align 4, !tbaa !5
  %10 = load i32, ptr %7, align 4, !tbaa !5
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %12, label %13

12:                                               ; preds = %.lr.ph
  store i32 %10, ptr @now, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %12, %.lr.ph
  %now.promoted48 = phi i32 [ %10, %12 ], [ %9, %.lr.ph ]
  %14 = sext i32 %10 to i64
  %15 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr %15, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next, %19
  br i1 %20, label %.lr.ph, label %.preheader.loopexit, !llvm.loop !9

.lr.ph34:                                         ; preds = %.lr.ph34.preheader, %.critedge
  %21 = phi i32 [ %68, %.critedge ], [ %l.promoted, %.lr.ph34.preheader ]
  %22 = phi i32 [ %67, %.critedge ], [ %r.promoted, %.lr.ph34.preheader ]
  %.pr3033 = phi i32 [ %.pr27, %.critedge ], [ %now.promoted, %.lr.ph34.preheader ]
  %23 = phi i32 [ %66, %.critedge ], [ %pos.promoted, %.lr.ph34.preheader ]
  %24 = phi i32 [ %65, %.critedge ], [ %ans.promoted, %.lr.ph34.preheader ]
  %25 = sext i32 %21 to i64
  %26 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = icmp eq i32 %27, %.pr3033
  br i1 %28, label %29, label %47

29:                                               ; preds = %.lr.ph34
  %30 = add nsw i32 %24, 1
  store i32 %30, ptr @ans, align 4, !tbaa !5
  %31 = icmp eq i32 %21, %23
  br i1 %31, label %._crit_edge, label %32

32:                                               ; preds = %29
  %33 = add nsw i32 %21, 1
  store i32 %33, ptr @l, align 4, !tbaa !5
  %34 = sext i32 %.pr3033 to i64
  %35 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = add nsw i32 %36, -1
  store i32 %37, ptr %35, align 4, !tbaa !5
  %38 = icmp sgt i32 %21, 108
  br i1 %38, label %39, label %41

39:                                               ; preds = %32
  %40 = add nsw i32 %21, -109
  store i32 %40, ptr @l, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %39, %32
  %42 = phi i32 [ %40, %39 ], [ %33, %32 ]
  %.not1924 = icmp eq i32 %.pr3033, 0
  br i1 %.not1924, label %.critedge, label %.lr.ph25

.lr.ph25:                                         ; preds = %41, %45
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %45 ], [ %34, %41 ]
  %43 = getelementptr inbounds [11 x i32], ptr @cnt, i64 0, i64 %indvars.iv42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %.not20 = icmp eq i32 %44, 0
  br i1 %.not20, label %45, label %.critedge.loopexit.split.loop.exit

45:                                               ; preds = %.lr.ph25
  %indvars.iv.next43 = add nsw i64 %indvars.iv42, -1
  %46 = trunc nsw i64 %indvars.iv.next43 to i32
  store i32 %46, ptr @now, align 4, !tbaa !5
  %.not19 = icmp eq i64 %indvars.iv.next43, 0
  br i1 %.not19, label %.critedge, label %.lr.ph25, !llvm.loop !11

47:                                               ; preds = %.lr.ph34
  %48 = icmp eq i32 %21, %23
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  store i32 %22, ptr @pos, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %49, %47
  %51 = phi i32 [ %22, %49 ], [ %23, %47 ]
  %52 = add nsw i32 %21, 1
  store i32 %52, ptr @l, align 4, !tbaa !5
  %53 = add nsw i32 %22, 1
  store i32 %53, ptr @r, align 4, !tbaa !5
  %54 = sext i32 %22 to i64
  %55 = getelementptr inbounds [110 x i32], ptr @que, i64 0, i64 %54
  store i32 %27, ptr %55, align 4, !tbaa !5
  %56 = icmp sgt i32 %21, 108
  br i1 %56, label %57, label %59

57:                                               ; preds = %50
  %58 = add nsw i32 %21, -109
  store i32 %58, ptr @l, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %57, %50
  %60 = phi i32 [ %58, %57 ], [ %52, %50 ]
  %61 = icmp sgt i32 %22, 108
  br i1 %61, label %62, label %.critedge

62:                                               ; preds = %59
  %63 = add nsw i32 %22, -109
  store i32 %63, ptr @r, align 4, !tbaa !5
  br label %.critedge

.critedge.loopexit.split.loop.exit:               ; preds = %.lr.ph25
  %64 = trunc nsw i64 %indvars.iv42 to i32
  br label %.critedge

.critedge:                                        ; preds = %45, %.critedge.loopexit.split.loop.exit, %41, %59, %62
  %65 = phi i32 [ %24, %59 ], [ %24, %62 ], [ %30, %41 ], [ %30, %.critedge.loopexit.split.loop.exit ], [ %30, %45 ]
  %66 = phi i32 [ %51, %59 ], [ %51, %62 ], [ %23, %41 ], [ %23, %.critedge.loopexit.split.loop.exit ], [ %23, %45 ]
  %.pr27 = phi i32 [ %.pr3033, %59 ], [ %.pr3033, %62 ], [ 0, %41 ], [ %64, %.critedge.loopexit.split.loop.exit ], [ 0, %45 ]
  %67 = phi i32 [ %53, %59 ], [ %63, %62 ], [ %22, %41 ], [ %22, %.critedge.loopexit.split.loop.exit ], [ %22, %45 ]
  %68 = phi i32 [ %60, %59 ], [ %60, %62 ], [ %42, %41 ], [ %42, %.critedge.loopexit.split.loop.exit ], [ %42, %45 ]
  %.not18 = icmp eq i32 %68, %67
  br i1 %.not18, label %._crit_edge, label %.lr.ph34, !llvm.loop !12

._crit_edge:                                      ; preds = %.critedge, %29, %.preheader
  %69 = phi i32 [ %ans.promoted, %.preheader ], [ %65, %.critedge ], [ %30, %29 ]
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %69)
  %71 = load i32, ptr @t, align 4, !tbaa !5
  %72 = add nsw i32 %71, -1
  store i32 %72, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %71, 0
  br i1 %.not, label %._crit_edge39, label %.lr.ph38, !llvm.loop !13

._crit_edge39:                                    ; preds = %._crit_edge, %0
  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 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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}


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