; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/76 Beta Division 2/Problem B (B)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@f = external dso_local global [6 x [6 x i32]], align 16
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@m = 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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = 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
  %6 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %27, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = load i32, ptr @m, align 4, !tbaa !5
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %13, label %12

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

13:                                               ; preds = %8
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @a, ptr noundef @b)
  %15 = load i32, ptr @b, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %16
  %18 = load i32, ptr @a, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [6 x i32], ptr %17, i64 0, i64 %19
  store i32 1, ptr %20, align 4, !tbaa !5
  %21 = load i32, ptr @a, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %22
  %24 = load i32, ptr @b, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [6 x i32], ptr %23, i64 0, i64 %25
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %27

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

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

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

34:                                               ; preds = %31
  store i32 5, ptr %4, align 4
  br label %132

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

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

39:                                               ; preds = %36
  store i32 8, ptr %4, align 4
  br label %126

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

41:                                               ; preds = %117, %40
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = icmp sle i32 %42, 5
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 11, ptr %4, align 4
  br label %120

45:                                               ; preds = %41
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = icmp ne i32 %46, %47
  br i1 %48, label %49, label %116

49:                                               ; preds = %45
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = icmp ne i32 %50, %51
  br i1 %52, label %53, label %116

53:                                               ; preds = %49
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = icmp ne i32 %54, %55
  br i1 %56, label %57, label %116

57:                                               ; preds = %53
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %59
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [6 x i32], ptr %60, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %86

66:                                               ; preds = %57
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %68
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [6 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %86

75:                                               ; preds = %66
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %77
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [6 x i32], ptr %78, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %75
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %120

86:                                               ; preds = %75, %66, %57
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %88
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [6 x i32], ptr %89, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %115, label %95

95:                                               ; preds = %86
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %97
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [6 x i32], ptr %98, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %115, label %104

104:                                              ; preds = %95
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %106
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [6 x i32], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %115, label %113

113:                                              ; preds = %104
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %120

115:                                              ; preds = %104, %95, %86
  br label %116

116:                                              ; preds = %115, %53, %49, %45
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %6, align 4, !tbaa !5
  br label %41, !llvm.loop !11

120:                                              ; preds = %113, %84, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %121 = load i32, ptr %4, align 4
  switch i32 %121, label %126 [
    i32 11, label %122
  ]

122:                                              ; preds = %120
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %5, align 4, !tbaa !5
  br label %36, !llvm.loop !12

126:                                              ; preds = %120, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %127 = load i32, ptr %4, align 4
  switch i32 %127, label %132 [
    i32 8, label %128
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %3, align 4, !tbaa !5
  br label %31, !llvm.loop !13

132:                                              ; preds = %126, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  %133 = load i32, ptr %4, align 4
  switch i32 %133, label %138 [
    i32 5, label %134
    i32 1, label %136
  ]

134:                                              ; preds = %132
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  br label %136

136:                                              ; preds = %134, %132
  %137 = load i32, ptr %1, align 4
  ret i32 %137

138:                                              ; preds = %132
  unreachable
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr 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 = 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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@f = external dso_local local_unnamed_addr global [6 x [6 x i32]], align 16
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@m = 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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse 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 @m)
  %2 = load i32, ptr @m, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph, label %.preheader59

.preheader59:                                     ; preds = %.lr.ph, %0
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 32), align 16
  %.not41.1 = icmp eq i32 %4, 0
  %.not44.1 = icmp eq i32 %4, 0
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 36), align 4
  %.not41.2 = icmp eq i32 %5, 0
  %.not44.2 = icmp eq i32 %5, 0
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 40), align 8
  %.not41.3 = icmp eq i32 %6, 0
  %.not44.3 = icmp eq i32 %6, 0
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 44), align 4
  %.not41.4 = icmp eq i32 %7, 0
  %.not44.4 = icmp eq i32 %7, 0
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 52), align 4
  %.not41.171 = icmp eq i32 %8, 0
  %.not44.173 = icmp eq i32 %8, 0
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 60), align 4
  %.not41.2.1 = icmp eq i32 %9, 0
  %.not44.2.1 = icmp eq i32 %9, 0
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 64), align 16
  %.not41.3.1 = icmp eq i32 %10, 0
  %.not44.3.1 = icmp eq i32 %10, 0
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 68), align 4
  %.not41.4.1 = icmp eq i32 %11, 0
  %.not44.4.1 = icmp eq i32 %11, 0
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 76), align 4
  %.not41.280 = icmp eq i32 %12, 0
  %.not44.282 = icmp eq i32 %12, 0
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 80), align 16
  %.not41.1.2 = icmp eq i32 %13, 0
  %.not44.1.2 = icmp eq i32 %13, 0
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 88), align 8
  %.not41.3.2 = icmp eq i32 %14, 0
  %.not44.3.2 = icmp eq i32 %14, 0
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 92), align 4
  %.not41.4.2 = icmp eq i32 %15, 0
  %.not44.4.2 = icmp eq i32 %15, 0
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 100), align 4
  %.not41.389 = icmp eq i32 %16, 0
  %.not44.391 = icmp eq i32 %16, 0
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 104), align 8
  %.not41.1.3 = icmp eq i32 %17, 0
  %.not44.1.3 = icmp eq i32 %17, 0
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 108), align 4
  %.not41.2.3 = icmp eq i32 %18, 0
  %.not44.2.3 = icmp eq i32 %18, 0
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 116), align 4
  %.not41.4.3 = icmp eq i32 %19, 0
  %.not44.4.3 = icmp eq i32 %19, 0
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 124), align 4
  %.not41.498 = icmp eq i32 %20, 0
  %.not44.4100 = icmp eq i32 %20, 0
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 128), align 16
  %.not41.1.4 = icmp eq i32 %21, 0
  %.not44.1.4 = icmp eq i32 %21, 0
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 132), align 4
  %.not41.2.4 = icmp eq i32 %22, 0
  %.not44.2.4 = icmp eq i32 %22, 0
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @f, i64 136), align 8
  %.not41.3.4 = icmp eq i32 %23, 0
  %.not44.3.4 = icmp eq i32 %23, 0
  br label %.preheader58

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.03460 = phi i32 [ %31, %.lr.ph ], [ 0, %0 ]
  %24 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %25 = load i32, ptr @b, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = load i32, ptr @a, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %26, i64 %28
  store i32 1, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %28, i64 %26
  store i32 1, ptr %30, align 4, !tbaa !5
  %31 = add nuw nsw i32 %.03460, 1
  %32 = load i32, ptr @m, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %.lr.ph, label %.preheader59, !llvm.loop !9

.preheader58:                                     ; preds = %.split.us.4, %.preheader59
  %indvars.iv = phi i64 [ 1, %.preheader59 ], [ %indvars.iv.next, %.split.us.4 ]
  %.not = icmp eq i64 %indvars.iv, 1
  %34 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 1
  br i1 %.not, label %.thread.1.1.thread, label %.thread

.thread.1.1.thread:                               ; preds = %.preheader58
  %35 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 2
  br label %83

.thread:                                          ; preds = %.preheader58
  %.not39.1 = icmp eq i64 %indvars.iv, 2
  br i1 %.not39.1, label %.thread.1.thread, label %36

36:                                               ; preds = %.thread
  %37 = load i32, ptr %34, align 4, !tbaa !5
  %.not40.1 = icmp eq i32 %37, 0
  br i1 %.not40.1, label %42, label %38

38:                                               ; preds = %36
  br i1 %.not41.1, label %.thread.1, label %39

39:                                               ; preds = %38
  %40 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %.not42.1 = icmp eq i32 %41, 0
  br i1 %.not42.1, label %.thread.1, label %.thread54

42:                                               ; preds = %36
  br i1 %.not44.1, label %43, label %.thread.1

43:                                               ; preds = %42
  %44 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %.not45.1 = icmp eq i32 %45, 0
  br i1 %.not45.1, label %.thread54, label %.thread.1

.thread.1:                                        ; preds = %43, %42, %39, %38
  %.not39.2 = icmp eq i64 %indvars.iv, 3
  br i1 %.not39.2, label %.thread.2.thread, label %.thread.1.thread

.thread.1.thread:                                 ; preds = %.thread, %.thread.1
  %46 = load i32, ptr %34, align 4, !tbaa !5
  %.not40.2 = icmp eq i32 %46, 0
  br i1 %.not40.2, label %51, label %47

47:                                               ; preds = %.thread.1.thread
  br i1 %.not41.2, label %.thread.2, label %48

48:                                               ; preds = %47
  %49 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %.not42.2 = icmp eq i32 %50, 0
  br i1 %.not42.2, label %.thread.2, label %.thread54

51:                                               ; preds = %.thread.1.thread
  br i1 %.not44.2, label %52, label %.thread.2

52:                                               ; preds = %51
  %53 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %.not45.2 = icmp eq i32 %54, 0
  br i1 %.not45.2, label %.thread54, label %.thread.2

.thread.2:                                        ; preds = %52, %51, %48, %47
  %.not39.3 = icmp eq i64 %indvars.iv, 4
  br i1 %.not39.3, label %.thread.3.thread, label %.thread.2.thread

.thread.2.thread:                                 ; preds = %.thread.1, %.thread.2
  %55 = load i32, ptr %34, align 4, !tbaa !5
  %.not40.3 = icmp eq i32 %55, 0
  br i1 %.not40.3, label %60, label %56

56:                                               ; preds = %.thread.2.thread
  br i1 %.not41.3, label %.thread.3, label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %.not42.3 = icmp eq i32 %59, 0
  br i1 %.not42.3, label %.thread.3, label %.thread54

60:                                               ; preds = %.thread.2.thread
  br i1 %.not44.3, label %61, label %.thread.3

61:                                               ; preds = %60
  %62 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %.not45.3 = icmp eq i32 %63, 0
  br i1 %.not45.3, label %.thread54, label %.thread.3

.thread.3:                                        ; preds = %61, %60, %57, %56
  %.not39.4 = icmp eq i64 %indvars.iv, 5
  br i1 %.not39.4, label %.preheader.split.preheader.1.thread, label %.thread.3.thread

.thread.3.thread:                                 ; preds = %.thread.2, %.thread.3
  %64 = load i32, ptr %34, align 4, !tbaa !5
  %.not40.4 = icmp eq i32 %64, 0
  br i1 %.not40.4, label %69, label %65

65:                                               ; preds = %.thread.3.thread
  br i1 %.not41.4, label %.split.us, label %66

66:                                               ; preds = %65
  %67 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %.not42.4 = icmp eq i32 %68, 0
  br i1 %.not42.4, label %.split.us, label %.thread54

69:                                               ; preds = %.thread.3.thread
  br i1 %.not44.4, label %70, label %.split.us

70:                                               ; preds = %69
  %71 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %.not45.4 = icmp eq i32 %72, 0
  br i1 %.not45.4, label %.thread54, label %.split.us

.split.us:                                        ; preds = %65, %66, %69, %70
  %.not.1 = icmp eq i64 %indvars.iv, 2
  br i1 %.not.1, label %.preheader.split.preheader.2.thread, label %.preheader.split.preheader.1.thread

.preheader.split.preheader.1.thread:              ; preds = %.thread.3, %.split.us
  %73 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 2
  %74 = load i32, ptr %73, align 8, !tbaa !5
  %.not40.170 = icmp eq i32 %74, 0
  br i1 %.not40.170, label %79, label %75

75:                                               ; preds = %.preheader.split.preheader.1.thread
  br i1 %.not41.171, label %.thread.1.1, label %76

76:                                               ; preds = %75
  %77 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %.not42.172 = icmp eq i32 %78, 0
  br i1 %.not42.172, label %.thread.1.1, label %.thread54

79:                                               ; preds = %.preheader.split.preheader.1.thread
  br i1 %.not44.173, label %80, label %.thread.1.1

80:                                               ; preds = %79
  %81 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %.not45.174 = icmp eq i32 %82, 0
  br i1 %.not45.174, label %.thread54, label %.thread.1.1

.thread.1.1:                                      ; preds = %75, %76, %79, %80
  %.not39.2.1 = icmp eq i64 %indvars.iv, 3
  br i1 %.not39.2.1, label %.thread.2.1.thread, label %83

83:                                               ; preds = %.thread.1.1.thread, %.thread.1.1
  %84 = phi ptr [ %35, %.thread.1.1.thread ], [ %73, %.thread.1.1 ]
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %.not40.2.1 = icmp eq i32 %85, 0
  br i1 %.not40.2.1, label %90, label %86

86:                                               ; preds = %83
  br i1 %.not41.2.1, label %.thread.2.1, label %87

87:                                               ; preds = %86
  %88 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %.not42.2.1 = icmp eq i32 %89, 0
  br i1 %.not42.2.1, label %.thread.2.1, label %.thread54

90:                                               ; preds = %83
  br i1 %.not44.2.1, label %91, label %.thread.2.1

91:                                               ; preds = %90
  %92 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %.not45.2.1 = icmp eq i32 %93, 0
  br i1 %.not45.2.1, label %.thread54, label %.thread.2.1

.thread.2.1:                                      ; preds = %91, %90, %87, %86
  %.not39.3.1 = icmp eq i64 %indvars.iv, 4
  br i1 %.not39.3.1, label %.thread.3.1.thread, label %.thread.2.1.thread

.thread.2.1.thread:                               ; preds = %.thread.1.1, %.thread.2.1
  %94 = phi ptr [ %84, %.thread.2.1 ], [ %73, %.thread.1.1 ]
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %.not40.3.1 = icmp eq i32 %95, 0
  br i1 %.not40.3.1, label %100, label %96

96:                                               ; preds = %.thread.2.1.thread
  br i1 %.not41.3.1, label %.thread.3.1, label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %.not42.3.1 = icmp eq i32 %99, 0
  br i1 %.not42.3.1, label %.thread.3.1, label %.thread54

100:                                              ; preds = %.thread.2.1.thread
  br i1 %.not44.3.1, label %101, label %.thread.3.1

101:                                              ; preds = %100
  %102 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %.not45.3.1 = icmp eq i32 %103, 0
  br i1 %.not45.3.1, label %.thread54, label %.thread.3.1

.thread.3.1:                                      ; preds = %101, %100, %97, %96
  %.not39.4.1 = icmp eq i64 %indvars.iv, 5
  br i1 %.not39.4.1, label %.preheader.split.preheader.2.thread, label %.thread.3.1.thread

.thread.3.1.thread:                               ; preds = %.thread.2.1, %.thread.3.1
  %104 = phi ptr [ %94, %.thread.3.1 ], [ %84, %.thread.2.1 ]
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %.not40.4.1 = icmp eq i32 %105, 0
  br i1 %.not40.4.1, label %110, label %106

106:                                              ; preds = %.thread.3.1.thread
  br i1 %.not41.4.1, label %.split.us.1, label %107

107:                                              ; preds = %106
  %108 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %.not42.4.1 = icmp eq i32 %109, 0
  br i1 %.not42.4.1, label %.split.us.1, label %.thread54

110:                                              ; preds = %.thread.3.1.thread
  br i1 %.not44.4.1, label %111, label %.split.us.1

111:                                              ; preds = %110
  %112 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %.not45.4.1 = icmp eq i32 %113, 0
  br i1 %.not45.4.1, label %.thread54, label %.split.us.1

.preheader.split.preheader.2.thread:              ; preds = %.thread.3.1, %.split.us
  %.not.1125.ph = phi i1 [ true, %.split.us ], [ false, %.thread.3.1 ]
  %114 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 3
  br label %116

.split.us.1:                                      ; preds = %106, %107, %110, %111
  %.not.2 = icmp eq i64 %indvars.iv, 3
  br i1 %.not.2, label %.preheader.split.preheader.3.thread, label %.preheader.split.preheader.2

.preheader.split.preheader.2:                     ; preds = %.split.us.1
  %115 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 3
  br i1 %.not, label %.thread.284, label %116

116:                                              ; preds = %.preheader.split.preheader.2.thread, %.preheader.split.preheader.2
  %.not.1125146154 = phi i1 [ %.not.1125.ph, %.preheader.split.preheader.2.thread ], [ false, %.preheader.split.preheader.2 ]
  %117 = phi ptr [ %114, %.preheader.split.preheader.2.thread ], [ %115, %.preheader.split.preheader.2 ]
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %.not40.279 = icmp eq i32 %118, 0
  br i1 %.not40.279, label %123, label %119

119:                                              ; preds = %116
  br i1 %.not41.280, label %.thread.284, label %120

120:                                              ; preds = %119
  %121 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %.not42.281 = icmp eq i32 %122, 0
  br i1 %.not42.281, label %.thread.284, label %.thread54

123:                                              ; preds = %116
  br i1 %.not44.282, label %124, label %.thread.284

124:                                              ; preds = %123
  %125 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %.not45.283 = icmp eq i32 %126, 0
  br i1 %.not45.283, label %.thread54, label %.thread.284

.thread.284:                                      ; preds = %124, %123, %120, %119, %.preheader.split.preheader.2
  %.not.1125146155 = phi i1 [ %.not.1125146154, %124 ], [ %.not.1125146154, %123 ], [ %.not.1125146154, %120 ], [ %.not.1125146154, %119 ], [ false, %.preheader.split.preheader.2 ]
  %127 = phi ptr [ %117, %124 ], [ %117, %123 ], [ %117, %120 ], [ %117, %119 ], [ %115, %.preheader.split.preheader.2 ]
  br i1 %.not.1125146155, label %.thread.2.2, label %128

128:                                              ; preds = %.thread.284
  %129 = load i32, ptr %127, align 4, !tbaa !5
  %.not40.1.2 = icmp eq i32 %129, 0
  br i1 %.not40.1.2, label %134, label %130

130:                                              ; preds = %128
  br i1 %.not41.1.2, label %.thread.2.2, label %131

131:                                              ; preds = %130
  %132 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %.not42.1.2 = icmp eq i32 %133, 0
  br i1 %.not42.1.2, label %.thread.2.2, label %.thread54

134:                                              ; preds = %128
  br i1 %.not44.1.2, label %135, label %.thread.2.2

135:                                              ; preds = %134
  %136 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %.not45.1.2 = icmp eq i32 %137, 0
  br i1 %.not45.1.2, label %.thread54, label %.thread.2.2

.thread.2.2:                                      ; preds = %.thread.284, %130, %131, %134, %135
  %.not39.3.2 = icmp eq i64 %indvars.iv, 4
  br i1 %.not39.3.2, label %.thread.3.2.thread, label %138

138:                                              ; preds = %.thread.2.2
  %139 = load i32, ptr %127, align 4, !tbaa !5
  %.not40.3.2 = icmp eq i32 %139, 0
  br i1 %.not40.3.2, label %144, label %140

140:                                              ; preds = %138
  br i1 %.not41.3.2, label %.thread.3.2, label %141

141:                                              ; preds = %140
  %142 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %.not42.3.2 = icmp eq i32 %143, 0
  br i1 %.not42.3.2, label %.thread.3.2, label %.thread54

144:                                              ; preds = %138
  br i1 %.not44.3.2, label %145, label %.thread.3.2

145:                                              ; preds = %144
  %146 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %.not45.3.2 = icmp eq i32 %147, 0
  br i1 %.not45.3.2, label %.thread54, label %.thread.3.2

.thread.3.2:                                      ; preds = %145, %144, %141, %140
  %.not39.4.2 = icmp eq i64 %indvars.iv, 5
  br i1 %.not39.4.2, label %.preheader.split.preheader.3.thread, label %.thread.3.2.thread

.thread.3.2.thread:                               ; preds = %.thread.2.2, %.thread.3.2
  %148 = load i32, ptr %127, align 4, !tbaa !5
  %.not40.4.2 = icmp eq i32 %148, 0
  br i1 %.not40.4.2, label %153, label %149

149:                                              ; preds = %.thread.3.2.thread
  br i1 %.not41.4.2, label %.split.us.2, label %150

150:                                              ; preds = %149
  %151 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %.not42.4.2 = icmp eq i32 %152, 0
  br i1 %.not42.4.2, label %.split.us.2, label %.thread54

153:                                              ; preds = %.thread.3.2.thread
  br i1 %.not44.4.2, label %154, label %.split.us.2

154:                                              ; preds = %153
  %155 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %.not45.4.2 = icmp eq i32 %156, 0
  br i1 %.not45.4.2, label %.thread54, label %.split.us.2

.preheader.split.preheader.3.thread:              ; preds = %.thread.3.2, %.split.us.1
  %.not.2148.ph = phi i1 [ true, %.split.us.1 ], [ false, %.thread.3.2 ]
  %.not.1125147.ph = phi i1 [ false, %.split.us.1 ], [ %.not.1125146155, %.thread.3.2 ]
  %157 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 4
  br label %160

.split.us.2:                                      ; preds = %149, %150, %153, %154
  %.not.3 = icmp eq i64 %indvars.iv, 4
  br i1 %.not.3, label %.preheader.split.preheader.4.thread, label %.preheader.split.preheader.3

.preheader.split.preheader.4.thread:              ; preds = %.split.us.2
  %158 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 5
  br label %203

.preheader.split.preheader.3:                     ; preds = %.split.us.2
  %159 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 4
  br i1 %.not, label %.thread.393, label %160

160:                                              ; preds = %.preheader.split.preheader.3.thread, %.preheader.split.preheader.3
  %.not.2148160173 = phi i1 [ %.not.2148.ph, %.preheader.split.preheader.3.thread ], [ false, %.preheader.split.preheader.3 ]
  %.not.1125147162171 = phi i1 [ %.not.1125147.ph, %.preheader.split.preheader.3.thread ], [ %.not.1125146155, %.preheader.split.preheader.3 ]
  %161 = phi ptr [ %157, %.preheader.split.preheader.3.thread ], [ %159, %.preheader.split.preheader.3 ]
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %.not40.388 = icmp eq i32 %162, 0
  br i1 %.not40.388, label %167, label %163

163:                                              ; preds = %160
  br i1 %.not41.389, label %.thread.393, label %164

164:                                              ; preds = %163
  %165 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %.not42.390 = icmp eq i32 %166, 0
  br i1 %.not42.390, label %.thread.393, label %.thread54

167:                                              ; preds = %160
  br i1 %.not44.391, label %168, label %.thread.393

168:                                              ; preds = %167
  %169 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %.not45.392 = icmp eq i32 %170, 0
  br i1 %.not45.392, label %.thread54, label %.thread.393

.thread.393:                                      ; preds = %168, %167, %164, %163, %.preheader.split.preheader.3
  %.not.2148160174 = phi i1 [ %.not.2148160173, %168 ], [ %.not.2148160173, %167 ], [ %.not.2148160173, %164 ], [ %.not.2148160173, %163 ], [ false, %.preheader.split.preheader.3 ]
  %.not.1125147162172 = phi i1 [ %.not.1125147162171, %168 ], [ %.not.1125147162171, %167 ], [ %.not.1125147162171, %164 ], [ %.not.1125147162171, %163 ], [ %.not.1125146155, %.preheader.split.preheader.3 ]
  %171 = phi ptr [ %161, %168 ], [ %161, %167 ], [ %161, %164 ], [ %161, %163 ], [ %159, %.preheader.split.preheader.3 ]
  br i1 %.not.1125147162172, label %.thread.1.3, label %172

172:                                              ; preds = %.thread.393
  %173 = load i32, ptr %171, align 4, !tbaa !5
  %.not40.1.3 = icmp eq i32 %173, 0
  br i1 %.not40.1.3, label %178, label %174

174:                                              ; preds = %172
  br i1 %.not41.1.3, label %.thread.1.3, label %175

175:                                              ; preds = %174
  %176 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %.not42.1.3 = icmp eq i32 %177, 0
  br i1 %.not42.1.3, label %.thread.1.3, label %.thread54

178:                                              ; preds = %172
  br i1 %.not44.1.3, label %179, label %.thread.1.3

179:                                              ; preds = %178
  %180 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %.not45.1.3 = icmp eq i32 %181, 0
  br i1 %.not45.1.3, label %.thread54, label %.thread.1.3

.thread.1.3:                                      ; preds = %179, %178, %175, %174, %.thread.393
  br i1 %.not.2148160174, label %.thread.3.3, label %182

182:                                              ; preds = %.thread.1.3
  %183 = load i32, ptr %171, align 4, !tbaa !5
  %.not40.2.3 = icmp eq i32 %183, 0
  br i1 %.not40.2.3, label %188, label %184

184:                                              ; preds = %182
  br i1 %.not41.2.3, label %.thread.3.3, label %185

185:                                              ; preds = %184
  %186 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %.not42.2.3 = icmp eq i32 %187, 0
  br i1 %.not42.2.3, label %.thread.3.3, label %.thread54

188:                                              ; preds = %182
  br i1 %.not44.2.3, label %189, label %.thread.3.3

189:                                              ; preds = %188
  %190 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %.not45.2.3 = icmp eq i32 %191, 0
  br i1 %.not45.2.3, label %.thread54, label %.thread.3.3

.thread.3.3:                                      ; preds = %.thread.1.3, %184, %185, %188, %189
  %.not39.4.3 = icmp eq i64 %indvars.iv, 5
  br i1 %.not39.4.3, label %.thread54, label %192

192:                                              ; preds = %.thread.3.3
  %193 = load i32, ptr %171, align 4, !tbaa !5
  %.not40.4.3 = icmp eq i32 %193, 0
  br i1 %.not40.4.3, label %198, label %194

194:                                              ; preds = %192
  br i1 %.not41.4.3, label %.preheader.split.preheader.4, label %195

195:                                              ; preds = %194
  %196 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %.not42.4.3 = icmp eq i32 %197, 0
  br i1 %.not42.4.3, label %.preheader.split.preheader.4, label %.thread54

198:                                              ; preds = %192
  br i1 %.not44.4.3, label %199, label %.preheader.split.preheader.4

199:                                              ; preds = %198
  %200 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 5, i64 %indvars.iv
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %.not45.4.3 = icmp eq i32 %201, 0
  br i1 %.not45.4.3, label %.thread54, label %.preheader.split.preheader.4

.preheader.split.preheader.4:                     ; preds = %194, %195, %198, %199
  %202 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 %indvars.iv, i64 5
  br i1 %.not, label %.thread.4102, label %203

203:                                              ; preds = %.preheader.split.preheader.4.thread, %.preheader.split.preheader.4
  %204 = phi ptr [ %158, %.preheader.split.preheader.4.thread ], [ %202, %.preheader.split.preheader.4 ]
  %.not.2148161.ph189 = phi i1 [ false, %.preheader.split.preheader.4.thread ], [ %.not.2148160174, %.preheader.split.preheader.4 ]
  %.not.1125147163.ph187 = phi i1 [ %.not.1125146155, %.preheader.split.preheader.4.thread ], [ %.not.1125147162172, %.preheader.split.preheader.4 ]
  %.not.3164.ph185 = phi i1 [ true, %.preheader.split.preheader.4.thread ], [ false, %.preheader.split.preheader.4 ]
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %.not40.497 = icmp eq i32 %205, 0
  br i1 %.not40.497, label %210, label %206

206:                                              ; preds = %203
  br i1 %.not41.498, label %.thread.4102, label %207

207:                                              ; preds = %206
  %208 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %.not42.499 = icmp eq i32 %209, 0
  br i1 %.not42.499, label %.thread.4102, label %.thread54

210:                                              ; preds = %203
  br i1 %.not44.4100, label %211, label %.thread.4102

211:                                              ; preds = %210
  %212 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 1, i64 %indvars.iv
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %.not45.4101 = icmp eq i32 %213, 0
  br i1 %.not45.4101, label %.thread54, label %.thread.4102

.thread.4102:                                     ; preds = %211, %210, %207, %206, %.preheader.split.preheader.4
  %214 = phi ptr [ %204, %211 ], [ %204, %210 ], [ %204, %207 ], [ %204, %206 ], [ %202, %.preheader.split.preheader.4 ]
  %.not.2148161.ph190 = phi i1 [ %.not.2148161.ph189, %211 ], [ %.not.2148161.ph189, %210 ], [ %.not.2148161.ph189, %207 ], [ %.not.2148161.ph189, %206 ], [ %.not.2148160174, %.preheader.split.preheader.4 ]
  %.not.1125147163.ph188 = phi i1 [ %.not.1125147163.ph187, %211 ], [ %.not.1125147163.ph187, %210 ], [ %.not.1125147163.ph187, %207 ], [ %.not.1125147163.ph187, %206 ], [ %.not.1125147162172, %.preheader.split.preheader.4 ]
  %.not.3164.ph186 = phi i1 [ %.not.3164.ph185, %211 ], [ %.not.3164.ph185, %210 ], [ %.not.3164.ph185, %207 ], [ %.not.3164.ph185, %206 ], [ false, %.preheader.split.preheader.4 ]
  br i1 %.not.1125147163.ph188, label %.thread.1.4, label %215

215:                                              ; preds = %.thread.4102
  %216 = load i32, ptr %214, align 4, !tbaa !5
  %.not40.1.4 = icmp eq i32 %216, 0
  br i1 %.not40.1.4, label %221, label %217

217:                                              ; preds = %215
  br i1 %.not41.1.4, label %.thread.1.4, label %218

218:                                              ; preds = %217
  %219 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %.not42.1.4 = icmp eq i32 %220, 0
  br i1 %.not42.1.4, label %.thread.1.4, label %.thread54

221:                                              ; preds = %215
  br i1 %.not44.1.4, label %222, label %.thread.1.4

222:                                              ; preds = %221
  %223 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 2, i64 %indvars.iv
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %.not45.1.4 = icmp eq i32 %224, 0
  br i1 %.not45.1.4, label %.thread54, label %.thread.1.4

.thread.1.4:                                      ; preds = %222, %221, %218, %217, %.thread.4102
  br i1 %.not.2148161.ph190, label %.thread.2.4, label %225

225:                                              ; preds = %.thread.1.4
  %226 = load i32, ptr %214, align 4, !tbaa !5
  %.not40.2.4 = icmp eq i32 %226, 0
  br i1 %.not40.2.4, label %231, label %227

227:                                              ; preds = %225
  br i1 %.not41.2.4, label %.thread.2.4, label %228

228:                                              ; preds = %227
  %229 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %.not42.2.4 = icmp eq i32 %230, 0
  br i1 %.not42.2.4, label %.thread.2.4, label %.thread54

231:                                              ; preds = %225
  br i1 %.not44.2.4, label %232, label %.thread.2.4

232:                                              ; preds = %231
  %233 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 3, i64 %indvars.iv
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %.not45.2.4 = icmp eq i32 %234, 0
  br i1 %.not45.2.4, label %.thread54, label %.thread.2.4

.thread.2.4:                                      ; preds = %232, %231, %228, %227, %.thread.1.4
  br i1 %.not.3164.ph186, label %.split.us.4, label %235

235:                                              ; preds = %.thread.2.4
  %236 = load i32, ptr %214, align 4, !tbaa !5
  %.not40.3.4 = icmp eq i32 %236, 0
  br i1 %.not40.3.4, label %241, label %237

237:                                              ; preds = %235
  br i1 %.not41.3.4, label %.split.us.4, label %238

238:                                              ; preds = %237
  %239 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %.not42.3.4 = icmp eq i32 %240, 0
  br i1 %.not42.3.4, label %.split.us.4, label %.thread54

241:                                              ; preds = %235
  br i1 %.not44.3.4, label %242, label %.split.us.4

242:                                              ; preds = %241
  %243 = getelementptr inbounds [6 x [6 x i32]], ptr @f, i64 0, i64 4, i64 %indvars.iv
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %.not45.3.4 = icmp eq i32 %244, 0
  br i1 %.not45.3.4, label %.thread54, label %.split.us.4

.split.us.4:                                      ; preds = %242, %241, %238, %237, %.thread.2.4
  %indvars.iv.next = add i64 %indvars.iv, 1
  br label %.preheader58

.thread54:                                        ; preds = %.thread.3.3, %43, %52, %61, %70, %80, %91, %101, %111, %124, %135, %145, %154, %168, %179, %189, %199, %211, %222, %232, %242, %39, %48, %57, %66, %76, %87, %97, %107, %120, %131, %141, %150, %164, %175, %185, %195, %207, %218, %228, %238
  %.str.2.sink = phi ptr [ @.str.2, %238 ], [ @.str.2, %228 ], [ @.str.2, %218 ], [ @.str.2, %207 ], [ @.str.2, %195 ], [ @.str.2, %185 ], [ @.str.2, %175 ], [ @.str.2, %164 ], [ @.str.2, %150 ], [ @.str.2, %141 ], [ @.str.2, %131 ], [ @.str.2, %120 ], [ @.str.2, %107 ], [ @.str.2, %97 ], [ @.str.2, %87 ], [ @.str.2, %76 ], [ @.str.2, %66 ], [ @.str.2, %57 ], [ @.str.2, %48 ], [ @.str.2, %39 ], [ @.str.2, %242 ], [ @.str.2, %232 ], [ @.str.2, %222 ], [ @.str.2, %211 ], [ @.str.2, %199 ], [ @.str.2, %189 ], [ @.str.2, %179 ], [ @.str.2, %168 ], [ @.str.2, %154 ], [ @.str.2, %145 ], [ @.str.2, %135 ], [ @.str.2, %124 ], [ @.str.2, %111 ], [ @.str.2, %101 ], [ @.str.2, %91 ], [ @.str.2, %80 ], [ @.str.2, %70 ], [ @.str.2, %61 ], [ @.str.2, %52 ], [ @.str.2, %43 ], [ @.str.3, %.thread.3.3 ]
  %245 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.2.sink)
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

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 = { 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 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass