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

; 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
@len = external dso_local global i32, align 4
@m = external dso_local global i64, align 8
@p = external dso_local global i64, align 8
@dig = external dso_local global [61 x i64], align 16
@f = external dso_local global [61 x [61 x [2 x i64]]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 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
  store i32 0, ptr %1, align 4
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %7

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

11:                                               ; preds = %7
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @m, ptr noundef @p)
  store i32 0, ptr @len, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %17, %11
  %14 = load i64, ptr @m, align 8, !tbaa !9
  %15 = icmp sgt i64 %14, 0
  br i1 %15, label %16, label %28

16:                                               ; preds = %13
  br label %17

17:                                               ; preds = %16
  %18 = load i64, ptr @m, align 8, !tbaa !9
  %19 = load i64, ptr @p, align 8, !tbaa !9
  %20 = srem i64 %18, %19
  %21 = load i32, ptr @len, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @len, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %23
  store i64 %20, ptr %24, align 8, !tbaa !9
  %25 = load i64, ptr @p, align 8, !tbaa !9
  %26 = load i64, ptr @m, align 8, !tbaa !9
  %27 = sdiv i64 %26, %25
  store i64 %27, ptr @m, align 8, !tbaa !9
  br label %13, !llvm.loop !11

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

29:                                               ; preds = %137, %28
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr @len, align 4, !tbaa !5
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 7, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %140

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

35:                                               ; preds = %133, %34
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %136

40:                                               ; preds = %35
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %48
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [61 x [2 x i64]], ptr %49, i64 0, i64 %51
  %53 = getelementptr inbounds [2 x i64], ptr %52, i64 0, i64 0
  %54 = load i64, ptr %53, align 16, !tbaa !9
  %55 = mul nsw i64 %45, %54
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %74

58:                                               ; preds = %40
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %65
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = sub nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [61 x [2 x i64]], ptr %66, i64 0, i64 %69
  %71 = getelementptr inbounds [2 x i64], ptr %70, i64 0, i64 1
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = mul nsw i64 %62, %72
  br label %75

74:                                               ; preds = %40
  br label %75

75:                                               ; preds = %74, %58
  %76 = phi i64 [ %73, %58 ], [ 0, %74 ]
  %77 = add nsw i64 %55, %76
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %79
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [61 x [2 x i64]], ptr %80, i64 0, i64 %82
  %84 = getelementptr inbounds [2 x i64], ptr %83, i64 0, i64 0
  store i64 %77, ptr %84, align 16, !tbaa !9
  %85 = load i64, ptr @p, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = sub nsw i64 %86, %90
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = sub nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %94
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [61 x [2 x i64]], ptr %95, i64 0, i64 %97
  %99 = getelementptr inbounds [2 x i64], ptr %98, i64 0, i64 0
  %100 = load i64, ptr %99, align 16, !tbaa !9
  %101 = mul nsw i64 %91, %100
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %122

104:                                              ; preds = %75
  %105 = load i64, ptr @p, align 8, !tbaa !9
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = sub nsw i64 %105, %109
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = sub nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %113
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [61 x [2 x i64]], ptr %114, i64 0, i64 %117
  %119 = getelementptr inbounds [2 x i64], ptr %118, i64 0, i64 1
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = mul nsw i64 %110, %120
  br label %123

122:                                              ; preds = %75
  br label %123

123:                                              ; preds = %122, %104
  %124 = phi i64 [ %121, %104 ], [ 0, %122 ]
  %125 = add nsw i64 %101, %124
  %126 = load i32, ptr %2, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %127
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [61 x [2 x i64]], ptr %128, i64 0, i64 %130
  %132 = getelementptr inbounds [2 x i64], ptr %131, i64 0, i64 1
  store i64 %125, ptr %132, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %123
  %134 = load i32, ptr %4, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %4, align 4, !tbaa !5
  br label %35, !llvm.loop !13

136:                                              ; preds = %39
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !14

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

141:                                              ; preds = %168, %140
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = load i32, ptr @len, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %145, label %155

145:                                              ; preds = %141
  %146 = load i32, ptr @len, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %147
  %149 = load i32, ptr %5, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [61 x [2 x i64]], ptr %148, i64 0, i64 %150
  %152 = getelementptr inbounds [2 x i64], ptr %151, i64 0, i64 0
  %153 = load i64, ptr %152, align 16, !tbaa !9
  %154 = icmp ne i64 %153, 0
  br label %155

155:                                              ; preds = %145, %141
  %156 = phi i1 [ false, %141 ], [ %154, %145 ]
  br i1 %156, label %158, label %157

157:                                              ; preds = %155
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %171

158:                                              ; preds = %155
  %159 = load i32, ptr @len, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %160
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [61 x [2 x i64]], ptr %161, i64 0, i64 %163
  %165 = getelementptr inbounds [2 x i64], ptr %164, i64 0, i64 0
  %166 = load i64, ptr %165, align 16, !tbaa !9
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %166)
  br label %168

168:                                              ; preds = %158
  %169 = load i32, ptr %5, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %5, align 4, !tbaa !5
  br label %141, !llvm.loop !15

171:                                              ; preds = %157
  %172 = call i32 @putchar(i32 noundef 10)
  br label %7, !llvm.loop !16

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

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

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 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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
@len = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local global i64, align 8
@p = external dso_local global i64, align 8
@dig = external dso_local local_unnamed_addr global [61 x i64], align 16
@f = external dso_local local_unnamed_addr global [61 x [61 x [2 x i64]]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 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
  %.not44 = icmp eq i32 %2, 0
  br i1 %.not44, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %0, %.critedge
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @m, ptr noundef nonnull @p)
  store i32 0, ptr @len, align 4, !tbaa !5
  %.pr = load i64, ptr @m, align 8, !tbaa !9
  %5 = icmp sgt i64 %.pr, 0
  br i1 %5, label %.lr.ph, label %.thread

.thread:                                          ; preds = %.lr.ph46
  store i64 1, ptr @f, align 16, !tbaa !9
  br label %.critedge

.lr.ph:                                           ; preds = %.lr.ph46
  %6 = load i64, ptr @p, align 8, !tbaa !9
  br label %7

7:                                                ; preds = %.lr.ph, %7
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %7 ]
  %8 = phi i64 [ %.pr, %.lr.ph ], [ %11, %7 ]
  %9 = srem i64 %8, %6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %indvars.iv.next
  store i64 %9, ptr %10, align 8, !tbaa !9
  %11 = sdiv i64 %8, %6
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %7, label %.preheader.lr.ph, !llvm.loop !11

.preheader.lr.ph:                                 ; preds = %7
  %13 = trunc nsw i64 %indvars.iv.next to i32
  store i32 %13, ptr @len, align 4, !tbaa !5
  store i64 %11, ptr @m, align 8, !tbaa !9
  store i64 1, ptr @f, align 16, !tbaa !9
  %14 = load i64, ptr @p, align 8, !tbaa !9
  %15 = add nuw i64 %indvars.iv, 2
  %wide.trip.count63 = and i64 %15, 4294967295
  br label %.peel.next

.peel.next:                                       ; preds = %.loopexit, %.preheader.lr.ph
  %16 = phi i64 [ 1, %.preheader.lr.ph ], [ %24, %.loopexit ]
  %indvars.iv58 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next59, %.loopexit ]
  %indvars.iv56 = phi i64 [ 2, %.preheader.lr.ph ], [ %indvars.iv.next57, %.loopexit ]
  %17 = getelementptr inbounds [61 x i64], ptr @dig, i64 0, i64 %indvars.iv58
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = add nsw i64 %18, 1
  %20 = add nsw i64 %indvars.iv58, -1
  %21 = xor i64 %18, -1
  %22 = add i64 %14, %21
  %23 = sub nsw i64 %14, %18
  %24 = mul nsw i64 %19, %16
  %25 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %indvars.iv58, i64 0
  store i64 %24, ptr %25, align 16, !tbaa !9
  %26 = mul nsw i64 %22, %16
  %27 = getelementptr inbounds i8, ptr %25, i64 8
  store i64 %26, ptr %27, align 8, !tbaa !9
  br label %28

.loopexit:                                        ; preds = %28
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next59, %wide.trip.count63
  br i1 %exitcond64.not, label %.lr.ph42, label %.peel.next, !llvm.loop !13

28:                                               ; preds = %.peel.next, %28
  %indvars.iv50 = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next51, %28 ]
  %29 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %20, i64 %indvars.iv50
  %30 = load i64, ptr %29, align 16, !tbaa !9
  %31 = mul nsw i64 %19, %30
  %32 = add nsw i64 %indvars.iv50, -1
  %33 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %20, i64 %32, i64 1
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = mul nsw i64 %34, %18
  %36 = add nsw i64 %35, %31
  %37 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %indvars.iv58, i64 %indvars.iv50
  store i64 %36, ptr %37, align 16, !tbaa !9
  %38 = mul nsw i64 %22, %30
  %39 = add nsw i64 %indvars.iv50, -1
  %40 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %20, i64 %39, i64 1
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = mul nsw i64 %41, %23
  %43 = add nsw i64 %42, %38
  %44 = getelementptr inbounds i8, ptr %37, i64 8
  store i64 %43, ptr %44, align 8, !tbaa !9
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next51, %indvars.iv56
  br i1 %exitcond.not, label %.loopexit, label %28, !llvm.loop !14

.lr.ph42:                                         ; preds = %.loopexit, %52
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %52 ], [ 0, %.loopexit ]
  %45 = phi i32 [ %54, %52 ], [ %13, %.loopexit ]
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [61 x [61 x [2 x i64]]], ptr @f, i64 0, i64 %46, i64 %indvars.iv65
  %48 = load i64, ptr %47, align 16, !tbaa !9
  %.not33 = icmp eq i64 %48, 0
  br i1 %.not33, label %.critedge, label %52

.critedge:                                        ; preds = %.lr.ph42, %52, %.thread
  %49 = tail call i32 @putchar(i32 noundef 10)
  %50 = load i32, ptr @t, align 4, !tbaa !5
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %._crit_edge47, label %.lr.ph46, !llvm.loop !16

52:                                               ; preds = %.lr.ph42
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %48)
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %54 = load i32, ptr @len, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next66, %55
  br i1 %56, label %.lr.ph42, label %.critedge, !llvm.loop !17

._crit_edge47:                                    ; preds = %.critedge, %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: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #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 = { 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" }

!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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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