; LLVM IR from tangjz/acm-icpc :: uvalive (7336)

; 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
@cnt = external dso_local global [10 x [2 x [2 x i32]]], 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 i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %10

10:                                               ; preds = %73, %0
  %11 = load i32, ptr @t, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @t, align 4, !tbaa !5
  %13 = icmp ne i32 %11, 0
  br i1 %13, label %14, label %76

14:                                               ; preds = %10
  call void @llvm.memset.p0.i64(ptr align 16 @cnt, i8 0, i64 160, i1 false)
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  br label %16

16:                                               ; preds = %20, %14
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr @n, align 4, !tbaa !5
  %19 = icmp ne i32 %17, 0
  br i1 %19, label %20, label %36

20:                                               ; preds = %16
  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 1, ptr %4) #4
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sub nsw i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [10 x [2 x [2 x i32]]], ptr @cnt, i64 0, i64 %24
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [2 x [2 x i32]], ptr %25, i64 0, i64 %27
  %29 = load i8, ptr %4, align 1, !tbaa !9
  %30 = sext i8 %29 to i32
  %31 = icmp eq i32 %30, 99
  %32 = zext i1 %31 to i64
  %33 = getelementptr inbounds [2 x i32], ptr %28, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, 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
  br label %16, !llvm.loop !10

36:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %70, %36
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 10
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 6, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %73

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %8, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %66, %41
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 10
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 9, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %69

48:                                               ; preds = %44
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [10 x [2 x [2 x i32]]], ptr @cnt, i64 0, i64 %50
  %52 = getelementptr inbounds [2 x [2 x i32]], ptr %51, i64 0, i64 0
  %53 = getelementptr inbounds [2 x i32], ptr %52, i64 0, i64 0
  %54 = load i32, ptr %53, align 16, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [10 x [2 x [2 x i32]]], ptr @cnt, i64 0, i64 %57
  %59 = getelementptr inbounds [2 x [2 x i32]], ptr %58, i64 0, i64 1
  %60 = getelementptr inbounds [2 x i32], ptr %59, i64 0, i64 1
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = mul nsw i64 %55, %62
  %64 = load i64, ptr %5, align 8, !tbaa !12
  %65 = add nsw i64 %64, %63
  store i64 %65, ptr %5, align 8, !tbaa !12
  br label %66

66:                                               ; preds = %48
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !5
  br label %44, !llvm.loop !14

69:                                               ; preds = %47
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %6, align 4, !tbaa !5
  br label %37, !llvm.loop !15

73:                                               ; preds = %40
  %74 = load i64, ptr %5, align 8, !tbaa !12
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %74)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %10, !llvm.loop !16

76:                                               ; preds = %10
  ret i32 0
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !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"

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@cnt = external dso_local local_unnamed_addr global [10 x [2 x [2 x i32]]], 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 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr @t, align 4, !tbaa !5
  %.not18 = icmp eq i32 %5, 0
  br i1 %.not18, label %._crit_edge, label %.lr.ph19

.lr.ph19:                                         ; preds = %0, %.loopexit.9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) @cnt, i8 0, i64 160, i1 false)
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = add nsw i32 %8, -1
  store i32 %9, ptr @n, align 4, !tbaa !5
  %.not1112 = icmp eq i32 %8, 0
  br i1 %.not1112, label %.loopexit.9, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph19, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  %13 = sext i32 %12 to i64
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = load i8, ptr %3, align 1, !tbaa !9
  %17 = icmp eq i8 %16, 99
  %18 = zext i1 %17 to i64
  %19 = getelementptr inbounds [10 x [2 x [2 x i32]]], ptr @cnt, i64 0, i64 %13, i64 %15, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr @n, align 4, !tbaa !5
  %.not11 = icmp eq i32 %22, 0
  br i1 %.not11, label %.loopexit.9, label %.lr.ph, !llvm.loop !10

.loopexit.9:                                      ; preds = %.lr.ph, %.lr.ph19
  %24 = load i32, ptr @cnt, align 16, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 28), align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 44), align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = add nsw i64 %29, %27
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 60), align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = add nsw i64 %30, %32
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 76), align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = add nsw i64 %33, %35
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 92), align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = add nsw i64 %36, %38
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = add nsw i64 %39, %41
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = add nsw i64 %42, %44
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = add nsw i64 %45, %47
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = add nsw i64 %48, %50
  %52 = mul i64 %51, %25
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 16), align 16, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 44), align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = mul nsw i64 %56, %54
  %58 = add nsw i64 %57, %52
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 60), align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = mul nsw i64 %60, %54
  %62 = add nsw i64 %61, %58
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 76), align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = mul nsw i64 %64, %54
  %66 = add nsw i64 %65, %62
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 92), align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = mul nsw i64 %68, %54
  %70 = add nsw i64 %69, %66
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = mul nsw i64 %72, %54
  %74 = add nsw i64 %73, %70
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = mul nsw i64 %76, %54
  %78 = add nsw i64 %77, %74
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = mul nsw i64 %80, %54
  %82 = add nsw i64 %81, %78
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = mul nsw i64 %84, %54
  %86 = add nsw i64 %85, %82
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 32), align 16, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 60), align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = mul nsw i64 %90, %88
  %92 = add nsw i64 %91, %86
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 76), align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = mul nsw i64 %94, %88
  %96 = add nsw i64 %95, %92
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 92), align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = mul nsw i64 %98, %88
  %100 = add nsw i64 %99, %96
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = mul nsw i64 %102, %88
  %104 = add nsw i64 %103, %100
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = mul nsw i64 %106, %88
  %108 = add nsw i64 %107, %104
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = mul nsw i64 %110, %88
  %112 = add nsw i64 %111, %108
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = mul nsw i64 %114, %88
  %116 = add nsw i64 %115, %112
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 48), align 16, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 76), align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = mul nsw i64 %120, %118
  %122 = add nsw i64 %121, %116
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 92), align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = mul nsw i64 %124, %118
  %126 = add nsw i64 %125, %122
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = mul nsw i64 %128, %118
  %130 = add nsw i64 %129, %126
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = mul nsw i64 %132, %118
  %134 = add nsw i64 %133, %130
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = mul nsw i64 %136, %118
  %138 = add nsw i64 %137, %134
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = mul nsw i64 %140, %118
  %142 = add nsw i64 %141, %138
  %143 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 64), align 16, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 92), align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = mul nsw i64 %146, %144
  %148 = add nsw i64 %147, %142
  %149 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = mul nsw i64 %150, %144
  %152 = add nsw i64 %151, %148
  %153 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = mul nsw i64 %154, %144
  %156 = add nsw i64 %155, %152
  %157 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = mul nsw i64 %158, %144
  %160 = add nsw i64 %159, %156
  %161 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = mul nsw i64 %162, %144
  %164 = add nsw i64 %163, %160
  %165 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 80), align 16, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 108), align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = mul nsw i64 %168, %166
  %170 = add nsw i64 %169, %164
  %171 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = mul nsw i64 %172, %166
  %174 = add nsw i64 %173, %170
  %175 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = mul nsw i64 %176, %166
  %178 = add nsw i64 %177, %174
  %179 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = mul nsw i64 %180, %166
  %182 = add nsw i64 %181, %178
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 96), align 16, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 124), align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = mul nsw i64 %186, %184
  %188 = add nsw i64 %187, %182
  %189 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = mul nsw i64 %190, %184
  %192 = add nsw i64 %191, %188
  %193 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = mul nsw i64 %194, %184
  %196 = add nsw i64 %195, %192
  %197 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 112), align 16, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 140), align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = mul nsw i64 %200, %198
  %202 = add nsw i64 %201, %196
  %203 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 156), align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = mul nsw i64 %204, %198
  %206 = add nsw i64 %205, %202
  %207 = load i32, ptr getelementptr inbounds (i8, ptr @cnt, i64 128), align 16, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = sext i32 %203 to i64
  %210 = mul nsw i64 %209, %208
  %211 = add nsw i64 %210, %206
  %212 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %211)
  %213 = load i32, ptr @t, align 4, !tbaa !5
  %214 = add nsw i32 %213, -1
  store i32 %214, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %213, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph19, !llvm.loop !12

._crit_edge:                                      ; preds = %.loopexit.9, %0
  ret i32 0
}

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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}


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