; LLVM IR from tangjz/acm-icpc :: codeforces (887C)

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

@col = external dso_local global [25 x i32], align 16
@nxt = external dso_local global [25 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL3rot = external hidden constant [7 x [25 x i32]], align 16
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validv() #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 i32, align 4
  %6 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %16, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 25
  br i1 %9, label %11, label %10

10:                                               ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %19

11:                                               ; preds = %7
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds i32, ptr @col, i64 %13
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %14)
  br label %16

16:                                               ; preds = %11
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !9

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

20:                                               ; preds = %77, %19
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 7
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 5, ptr %4, align 4
  br label %80

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

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

28:                                               ; preds = %25
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %46

29:                                               ; preds = %25
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %31
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [25 x i32], ptr %32, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %41
  store i32 %39, ptr %42, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %29
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !5
  br label %25, !llvm.loop !11

46:                                               ; preds = %28
  %47 = call noundef zeroext i1 @_Z5validv()
  br i1 %47, label %48, label %50

48:                                               ; preds = %46
  %49 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %80

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %69, %50
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 25
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %72

55:                                               ; preds = %51
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %61
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [25 x i32], ptr %62, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %67
  store i32 %59, ptr %68, align 4, !tbaa !5
  br label %69

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

72:                                               ; preds = %54
  %73 = call noundef zeroext i1 @_Z5validv()
  br i1 %73, label %74, label %76

74:                                               ; preds = %72
  %75 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %80

76:                                               ; preds = %72
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !13

80:                                               ; preds = %74, %48, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  %81 = load i32, ptr %4, align 4
  switch i32 %81, label %86 [
    i32 5, label %82
    i32 1, label %84
  ]

82:                                               ; preds = %80
  %83 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  br label %84

84:                                               ; preds = %82, %80
  %85 = load i32, ptr %1, align 4
  ret i32 %85

86:                                               ; preds = %80
  unreachable
}

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

declare i32 @puts(ptr noundef) #3

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


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

@col = external dso_local global [25 x i32], align 16
@nxt = external dso_local local_unnamed_addr global [25 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL3rot = external hidden local_unnamed_addr constant [7 x [25 x i32]], align 16
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validv() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
.preheader25.preheader:
  %0 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 4))
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 8))
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 12))
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 16))
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 20))
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 24))
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 28))
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 32))
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 36))
  %9 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 40))
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 44))
  %11 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 48))
  %12 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 52))
  %13 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 56))
  %14 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 60))
  %15 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 64))
  %16 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 68))
  %17 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 72))
  %18 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 76))
  %19 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 80))
  %20 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 84))
  %21 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 88))
  %22 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 92))
  %23 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 96))
  br label %.preheader25

24:                                               ; preds = %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 7
  br i1 %exitcond.not, label %.thread, label %.preheader25, !llvm.loop !5

.preheader25:                                     ; preds = %.preheader25.preheader, %24
  %indvars.iv = phi i64 [ 1, %.preheader25.preheader ], [ %indvars.iv.next, %24 ]
  %25 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 1
  %26 = load i32, ptr %25, align 4, !tbaa !7
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !7
  store i32 %29, ptr getelementptr inbounds (i8, ptr @nxt, i64 4), align 4, !tbaa !7
  %30 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 2
  %31 = load i32, ptr %30, align 4, !tbaa !7
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !7
  store i32 %34, ptr getelementptr inbounds (i8, ptr @nxt, i64 8), align 8, !tbaa !7
  %35 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 3
  %36 = load i32, ptr %35, align 4, !tbaa !7
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !7
  store i32 %39, ptr getelementptr inbounds (i8, ptr @nxt, i64 12), align 4, !tbaa !7
  %40 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !7
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !7
  store i32 %44, ptr getelementptr inbounds (i8, ptr @nxt, i64 16), align 16, !tbaa !7
  %45 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 5
  %46 = load i32, ptr %45, align 4, !tbaa !7
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !7
  store i32 %49, ptr getelementptr inbounds (i8, ptr @nxt, i64 20), align 4, !tbaa !7
  %50 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 6
  %51 = load i32, ptr %50, align 4, !tbaa !7
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !7
  store i32 %54, ptr getelementptr inbounds (i8, ptr @nxt, i64 24), align 8, !tbaa !7
  %55 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 7
  %56 = load i32, ptr %55, align 4, !tbaa !7
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !7
  store i32 %59, ptr getelementptr inbounds (i8, ptr @nxt, i64 28), align 4, !tbaa !7
  %60 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 8
  %61 = load i32, ptr %60, align 4, !tbaa !7
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !7
  store i32 %64, ptr getelementptr inbounds (i8, ptr @nxt, i64 32), align 16, !tbaa !7
  %65 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 9
  %66 = load i32, ptr %65, align 4, !tbaa !7
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !7
  store i32 %69, ptr getelementptr inbounds (i8, ptr @nxt, i64 36), align 4, !tbaa !7
  %70 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 10
  %71 = load i32, ptr %70, align 4, !tbaa !7
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !7
  store i32 %74, ptr getelementptr inbounds (i8, ptr @nxt, i64 40), align 8, !tbaa !7
  %75 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 11
  %76 = load i32, ptr %75, align 4, !tbaa !7
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !7
  store i32 %79, ptr getelementptr inbounds (i8, ptr @nxt, i64 44), align 4, !tbaa !7
  %80 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !7
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !7
  store i32 %84, ptr getelementptr inbounds (i8, ptr @nxt, i64 48), align 16, !tbaa !7
  %85 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 13
  %86 = load i32, ptr %85, align 4, !tbaa !7
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !7
  store i32 %89, ptr getelementptr inbounds (i8, ptr @nxt, i64 52), align 4, !tbaa !7
  %90 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 14
  %91 = load i32, ptr %90, align 4, !tbaa !7
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !7
  store i32 %94, ptr getelementptr inbounds (i8, ptr @nxt, i64 56), align 8, !tbaa !7
  %95 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 15
  %96 = load i32, ptr %95, align 4, !tbaa !7
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !7
  store i32 %99, ptr getelementptr inbounds (i8, ptr @nxt, i64 60), align 4, !tbaa !7
  %100 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 16
  %101 = load i32, ptr %100, align 4, !tbaa !7
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !7
  store i32 %104, ptr getelementptr inbounds (i8, ptr @nxt, i64 64), align 16, !tbaa !7
  %105 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 17
  %106 = load i32, ptr %105, align 4, !tbaa !7
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !7
  store i32 %109, ptr getelementptr inbounds (i8, ptr @nxt, i64 68), align 4, !tbaa !7
  %110 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 18
  %111 = load i32, ptr %110, align 4, !tbaa !7
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !7
  store i32 %114, ptr getelementptr inbounds (i8, ptr @nxt, i64 72), align 8, !tbaa !7
  %115 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 19
  %116 = load i32, ptr %115, align 4, !tbaa !7
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !7
  store i32 %119, ptr getelementptr inbounds (i8, ptr @nxt, i64 76), align 4, !tbaa !7
  %120 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 20
  %121 = load i32, ptr %120, align 4, !tbaa !7
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !7
  store i32 %124, ptr getelementptr inbounds (i8, ptr @nxt, i64 80), align 16, !tbaa !7
  %125 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 21
  %126 = load i32, ptr %125, align 4, !tbaa !7
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !7
  store i32 %129, ptr getelementptr inbounds (i8, ptr @nxt, i64 84), align 4, !tbaa !7
  %130 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 22
  %131 = load i32, ptr %130, align 4, !tbaa !7
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !7
  store i32 %134, ptr getelementptr inbounds (i8, ptr @nxt, i64 88), align 8, !tbaa !7
  %135 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 23
  %136 = load i32, ptr %135, align 4, !tbaa !7
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !7
  store i32 %139, ptr getelementptr inbounds (i8, ptr @nxt, i64 92), align 4, !tbaa !7
  %140 = getelementptr inbounds [7 x [25 x i32]], ptr @_ZL3rot, i64 0, i64 %indvars.iv, i64 24
  %141 = load i32, ptr %140, align 4, !tbaa !7
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [25 x i32], ptr @col, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !7
  store i32 %144, ptr getelementptr inbounds (i8, ptr @nxt, i64 96), align 16, !tbaa !7
  %145 = tail call noundef zeroext i1 @_Z5validv()
  br i1 %145, label %.thread, label %.preheader

.preheader:                                       ; preds = %.preheader25
  %146 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 4), align 4, !tbaa !7
  %147 = load i32, ptr %25, align 4, !tbaa !7
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %148
  store i32 %146, ptr %149, align 4, !tbaa !7
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 8), align 8, !tbaa !7
  %151 = load i32, ptr %30, align 4, !tbaa !7
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %152
  store i32 %150, ptr %153, align 4, !tbaa !7
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 12), align 4, !tbaa !7
  %155 = load i32, ptr %35, align 4, !tbaa !7
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %156
  store i32 %154, ptr %157, align 4, !tbaa !7
  %158 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 16), align 16, !tbaa !7
  %159 = load i32, ptr %40, align 4, !tbaa !7
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %160
  store i32 %158, ptr %161, align 4, !tbaa !7
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 20), align 4, !tbaa !7
  %163 = load i32, ptr %45, align 4, !tbaa !7
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %164
  store i32 %162, ptr %165, align 4, !tbaa !7
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 24), align 8, !tbaa !7
  %167 = load i32, ptr %50, align 4, !tbaa !7
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %168
  store i32 %166, ptr %169, align 4, !tbaa !7
  %170 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 28), align 4, !tbaa !7
  %171 = load i32, ptr %55, align 4, !tbaa !7
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %172
  store i32 %170, ptr %173, align 4, !tbaa !7
  %174 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 32), align 16, !tbaa !7
  %175 = load i32, ptr %60, align 4, !tbaa !7
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %176
  store i32 %174, ptr %177, align 4, !tbaa !7
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 36), align 4, !tbaa !7
  %179 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %67
  store i32 %178, ptr %179, align 4, !tbaa !7
  %180 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 40), align 8, !tbaa !7
  %181 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %72
  store i32 %180, ptr %181, align 4, !tbaa !7
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 44), align 4, !tbaa !7
  %183 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %77
  store i32 %182, ptr %183, align 4, !tbaa !7
  %184 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 48), align 16, !tbaa !7
  %185 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %82
  store i32 %184, ptr %185, align 4, !tbaa !7
  %186 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 52), align 4, !tbaa !7
  %187 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %87
  store i32 %186, ptr %187, align 4, !tbaa !7
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 56), align 8, !tbaa !7
  %189 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %92
  store i32 %188, ptr %189, align 4, !tbaa !7
  %190 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 60), align 4, !tbaa !7
  %191 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %97
  store i32 %190, ptr %191, align 4, !tbaa !7
  %192 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 64), align 16, !tbaa !7
  %193 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %102
  store i32 %192, ptr %193, align 4, !tbaa !7
  %194 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 68), align 4, !tbaa !7
  %195 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %107
  store i32 %194, ptr %195, align 4, !tbaa !7
  %196 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 72), align 8, !tbaa !7
  %197 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %112
  store i32 %196, ptr %197, align 4, !tbaa !7
  %198 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 76), align 4, !tbaa !7
  %199 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %117
  store i32 %198, ptr %199, align 4, !tbaa !7
  %200 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 80), align 16, !tbaa !7
  %201 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %122
  store i32 %200, ptr %201, align 4, !tbaa !7
  %202 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 84), align 4, !tbaa !7
  %203 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %127
  store i32 %202, ptr %203, align 4, !tbaa !7
  %204 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 88), align 8, !tbaa !7
  %205 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %132
  store i32 %204, ptr %205, align 4, !tbaa !7
  %206 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 92), align 4, !tbaa !7
  %207 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %137
  store i32 %206, ptr %207, align 4, !tbaa !7
  %208 = load i32, ptr getelementptr inbounds (i8, ptr @col, i64 96), align 16, !tbaa !7
  %209 = getelementptr inbounds [25 x i32], ptr @nxt, i64 0, i64 %142
  store i32 %208, ptr %209, align 4, !tbaa !7
  %210 = tail call noundef zeroext i1 @_Z5validv()
  br i1 %210, label %.thread, label %24

.thread:                                          ; preds = %24, %.preheader, %.preheader25
  %.str.1.sink = phi ptr [ @.str.1, %.preheader25 ], [ @.str.1, %.preheader ], [ @.str.2, %24 ]
  %211 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.1.sink)
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

attributes #0 = { mustprogress 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 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 #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" }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}


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