; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2015-16/Dec 2015/Bronze (15 Dec B3)

; 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_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }

@cout = external dso_local global %"class.std::basic_ofstream", align 8
@cin = external dso_local global %"class.std::basic_ifstream", align 8
@a = external dso_local global [51 x [51 x i32]], align 16
@badmilk = external dso_local global [51 x i32], align 16

; 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
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %35, %0
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %38

31:                                               ; preds = %26
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %33
  store i32 1, ptr %34, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %31
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %7, align 4, !tbaa !5
  br label %26, !llvm.loop !9

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

39:                                               ; preds = %59, %38
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = icmp sle i32 %40, 50
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %62

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

44:                                               ; preds = %55, %43
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = icmp sle i32 %45, 50
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %44
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %50
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [51 x i32], ptr %51, i64 0, i64 %53
  store i32 101, ptr %54, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %48
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %10, align 4, !tbaa !5
  br label %44, !llvm.loop !11

58:                                               ; preds = %47
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %8, align 4, !tbaa !5
  br label %39, !llvm.loop !12

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

63:                                               ; preds = %79, %62
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %82

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %74
  %76 = load i32, ptr %13, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [51 x i32], ptr %75, i64 0, i64 %77
  store i32 %72, ptr %78, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %79

79:                                               ; preds = %68
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %11, align 4, !tbaa !5
  br label %63, !llvm.loop !13

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

83:                                               ; preds = %115, %82
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %118

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 4 dereferenceable(4) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %111, %88
  %92 = load i32, ptr %18, align 4, !tbaa !5
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = icmp sle i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %114

96:                                               ; preds = %91
  %97 = load i32, ptr %16, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %98
  %100 = load i32, ptr %18, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [51 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load i32, ptr %17, align 4, !tbaa !5
  %105 = icmp sge i32 %103, %104
  br i1 %105, label %106, label %110

106:                                              ; preds = %96
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %108
  store i32 0, ptr %109, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %106, %96
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %18, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %18, align 4, !tbaa !5
  br label %91, !llvm.loop !14

114:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %15, align 4, !tbaa !5
  br label %83, !llvm.loop !15

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

119:                                              ; preds = %160, %118
  %120 = load i32, ptr %19, align 4, !tbaa !5
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = icmp sle i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %163

124:                                              ; preds = %119
  %125 = load i32, ptr %19, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %159

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

131:                                              ; preds = %149, %130
  %132 = load i32, ptr %21, align 4, !tbaa !5
  %133 = load i32, ptr %2, align 4, !tbaa !5
  %134 = icmp sle i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %152

136:                                              ; preds = %131
  %137 = load i32, ptr %21, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %138
  %140 = load i32, ptr %19, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [51 x i32], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = icmp ne i32 %143, 101
  br i1 %144, label %145, label %148

145:                                              ; preds = %136
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %20, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %145, %136
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %21, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %21, align 4, !tbaa !5
  br label %131, !llvm.loop !16

152:                                              ; preds = %135
  %153 = load i32, ptr %20, align 4, !tbaa !5
  %154 = load i32, ptr %6, align 4, !tbaa !5
  %155 = icmp sgt i32 %153, %154
  br i1 %155, label %156, label %158

156:                                              ; preds = %152
  %157 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %157, ptr %6, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %156, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %159

159:                                              ; preds = %158, %124
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %19, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %19, align 4, !tbaa !5
  br label %119, !llvm.loop !17

163:                                              ; preds = %123
  %164 = load i32, ptr %6, align 4, !tbaa !5
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @cout, i32 noundef %164)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %166 = load i32, ptr %1, align 4
  ret i32 %166
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !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_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }

@cout = external dso_local global %"class.std::basic_ofstream", align 8
@cin = external dso_local global %"class.std::basic_ifstream", align 8
@a = external dso_local local_unnamed_addr global [51 x [51 x i32]], align 16
@badmilk = external dso_local local_unnamed_addr global [51 x i32], align 16

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #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
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  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 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %.not51 = icmp slt i32 %14, 1
  br i1 %.not51, label %.preheader49.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %15 = add nuw i32 %14, 1
  %wide.trip.count = zext i32 %15 to i64
  %16 = zext nneg i32 %14 to i64
  %min.iters.check = icmp ult i32 %14, 8
  br i1 %min.iters.check, label %.lr.ph.preheader151, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %16, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %17 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %offset.idx
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %17, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %18, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %16
  br i1 %cmp.n, label %.preheader49.preheader, label %.lr.ph.preheader151

.lr.ph.preheader151:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader151, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader151 ]
  %20 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %indvars.iv
  store i32 1, ptr %20, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader49.preheader, label %.lr.ph, !llvm.loop !13

.preheader49.preheader:                           ; preds = %.lr.ph, %middle.block, %0
  br label %.preheader49

.preheader49:                                     ; preds = %.preheader49.preheader, %.preheader49
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %.preheader49 ], [ 0, %.preheader49.preheader ]
  %21 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 0
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 4
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 8
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 12
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 16
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 20
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 24
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 28
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 32
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 36
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %30, align 4, !tbaa !5
  %31 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 40
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 44
  store <4 x i32> <i32 101, i32 101, i32 101, i32 101>, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 48
  store i32 101, ptr %33, align 4, !tbaa !5
  %34 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 49
  store i32 101, ptr %34, align 4, !tbaa !5
  %35 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv79, i64 50
  store i32 101, ptr %35, align 4, !tbaa !5
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next80, 51
  br i1 %exitcond82.not, label %.preheader48, label %.preheader49, !llvm.loop !14

.preheader48:                                     ; preds = %.preheader49
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph56, label %.preheader47

.preheader47:                                     ; preds = %.lr.ph56, %.preheader48
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph61, label %.preheader47..preheader46_crit_edge

.preheader47..preheader46_crit_edge:              ; preds = %.preheader47
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %.preheader46

.lr.ph56:                                         ; preds = %.preheader48, %.lr.ph56
  %.03455 = phi i32 [ %49, %.lr.ph56 ], [ 0, %.preheader48 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %45, i64 %47
  store i32 %43, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %49 = add nuw nsw i32 %.03455, 1
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.lr.ph56, label %.preheader47, !llvm.loop !15

.preheader46:                                     ; preds = %._crit_edge, %.preheader47..preheader46_crit_edge
  %52 = phi i32 [ %.pre, %.preheader47..preheader46_crit_edge ], [ %59, %._crit_edge ]
  %.not4067 = icmp slt i32 %52, 1
  br i1 %.not4067, label %._crit_edge71, label %.lr.ph70

.lr.ph70:                                         ; preds = %.preheader46
  %53 = load i32, ptr %1, align 4
  %.fr = freeze i32 %53
  %.not4162 = icmp slt i32 %.fr, 1
  br i1 %.not4162, label %._crit_edge71, label %.lr.ph70.split.preheader

.lr.ph70.split.preheader:                         ; preds = %.lr.ph70
  %54 = add nuw i32 %.fr, 1
  %55 = add nuw i32 %52, 1
  %wide.trip.count96 = zext i32 %55 to i64
  %wide.trip.count91 = zext i32 %54 to i64
  %56 = zext nneg i32 %.fr to i64
  %min.iters.check135 = icmp ult i32 %.fr, 8
  %n.vec138 = and i64 %56, 2147483640
  %ind.end139 = or disjoint i64 %n.vec138, 1
  %cmp.n146 = icmp eq i64 %n.vec138, %56
  br label %.lr.ph70.split

.lr.ph61:                                         ; preds = %.preheader47, %._crit_edge
  %.03360 = phi i32 [ %93, %._crit_edge ], [ 0, %.preheader47 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %.not4357 = icmp slt i32 %59, 1
  br i1 %.not4357, label %._crit_edge, label %.lr.ph59

.lr.ph59:                                         ; preds = %.lr.ph61
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = add nuw i32 %59, 1
  %wide.trip.count86 = zext i32 %63 to i64
  %64 = zext nneg i32 %59 to i64
  %min.iters.check107 = icmp ult i32 %59, 8
  br i1 %min.iters.check107, label %scalar.ph106.preheader, label %vector.ph108

scalar.ph106.preheader:                           ; preds = %middle.block105, %.lr.ph59
  %indvars.iv83.ph = phi i64 [ 1, %.lr.ph59 ], [ %ind.end111, %middle.block105 ]
  br label %scalar.ph106

vector.ph108:                                     ; preds = %.lr.ph59
  %n.vec110 = and i64 %64, 2147483640
  %ind.end111 = or disjoint i64 %n.vec110, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %62, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body113

vector.body113:                                   ; preds = %pred.store.continue130, %vector.ph108
  %index114 = phi i64 [ 0, %vector.ph108 ], [ %index.next131, %pred.store.continue130 ]
  %offset.idx115 = or disjoint i64 %index114, 1
  %65 = or disjoint i64 %index114, 5
  %66 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %61, i64 %offset.idx115
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load = load <4 x i32>, ptr %66, align 4, !tbaa !5
  %wide.load116 = load <4 x i32>, ptr %67, align 4, !tbaa !5
  %68 = icmp sge <4 x i32> %wide.load, %broadcast.splat
  %69 = icmp sge <4 x i32> %wide.load116, %broadcast.splat
  %70 = extractelement <4 x i1> %68, i64 0
  br i1 %70, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body113
  %71 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %offset.idx115
  store i32 0, ptr %71, align 4, !tbaa !5
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body113
  %72 = extractelement <4 x i1> %68, i64 1
  br i1 %72, label %pred.store.if117, label %pred.store.continue118

pred.store.if117:                                 ; preds = %pred.store.continue
  %73 = or disjoint i64 %index114, 2
  %74 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %73
  store i32 0, ptr %74, align 8, !tbaa !5
  br label %pred.store.continue118

pred.store.continue118:                           ; preds = %pred.store.if117, %pred.store.continue
  %75 = extractelement <4 x i1> %68, i64 2
  br i1 %75, label %pred.store.if119, label %pred.store.continue120

pred.store.if119:                                 ; preds = %pred.store.continue118
  %76 = or disjoint i64 %index114, 3
  %77 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %76
  store i32 0, ptr %77, align 4, !tbaa !5
  br label %pred.store.continue120

pred.store.continue120:                           ; preds = %pred.store.if119, %pred.store.continue118
  %78 = extractelement <4 x i1> %68, i64 3
  br i1 %78, label %pred.store.if121, label %pred.store.continue122

pred.store.if121:                                 ; preds = %pred.store.continue120
  %79 = or disjoint i64 %index114, 4
  %80 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %79
  store i32 0, ptr %80, align 16, !tbaa !5
  br label %pred.store.continue122

pred.store.continue122:                           ; preds = %pred.store.if121, %pred.store.continue120
  %81 = extractelement <4 x i1> %69, i64 0
  br i1 %81, label %pred.store.if123, label %pred.store.continue124

pred.store.if123:                                 ; preds = %pred.store.continue122
  %82 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %65
  store i32 0, ptr %82, align 4, !tbaa !5
  br label %pred.store.continue124

pred.store.continue124:                           ; preds = %pred.store.if123, %pred.store.continue122
  %83 = extractelement <4 x i1> %69, i64 1
  br i1 %83, label %pred.store.if125, label %pred.store.continue126

pred.store.if125:                                 ; preds = %pred.store.continue124
  %84 = or disjoint i64 %index114, 6
  %85 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %84
  store i32 0, ptr %85, align 8, !tbaa !5
  br label %pred.store.continue126

pred.store.continue126:                           ; preds = %pred.store.if125, %pred.store.continue124
  %86 = extractelement <4 x i1> %69, i64 2
  br i1 %86, label %pred.store.if127, label %pred.store.continue128

pred.store.if127:                                 ; preds = %pred.store.continue126
  %87 = or disjoint i64 %index114, 7
  %88 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %87
  store i32 0, ptr %88, align 4, !tbaa !5
  br label %pred.store.continue128

pred.store.continue128:                           ; preds = %pred.store.if127, %pred.store.continue126
  %89 = extractelement <4 x i1> %69, i64 3
  br i1 %89, label %pred.store.if129, label %pred.store.continue130

pred.store.if129:                                 ; preds = %pred.store.continue128
  %90 = add i64 %index114, 8
  %91 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %90
  store i32 0, ptr %91, align 16, !tbaa !5
  br label %pred.store.continue130

pred.store.continue130:                           ; preds = %pred.store.if129, %pred.store.continue128
  %index.next131 = add nuw i64 %index114, 8
  %92 = icmp eq i64 %index.next131, %n.vec110
  br i1 %92, label %middle.block105, label %vector.body113, !llvm.loop !16

middle.block105:                                  ; preds = %pred.store.continue130
  %cmp.n132 = icmp eq i64 %n.vec110, %64
  br i1 %cmp.n132, label %._crit_edge, label %scalar.ph106.preheader

._crit_edge:                                      ; preds = %100, %middle.block105, %.lr.ph61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %93 = add nuw nsw i32 %.03360, 1
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %.lr.ph61, label %.preheader46, !llvm.loop !17

scalar.ph106:                                     ; preds = %scalar.ph106.preheader, %100
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %100 ], [ %indvars.iv83.ph, %scalar.ph106.preheader ]
  %96 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %61, i64 %indvars.iv83
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not44 = icmp slt i32 %97, %62
  br i1 %.not44, label %100, label %98

98:                                               ; preds = %scalar.ph106
  %99 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %indvars.iv83
  store i32 0, ptr %99, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %scalar.ph106, %98
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count86
  br i1 %exitcond87.not, label %._crit_edge, label %scalar.ph106, !llvm.loop !18

._crit_edge71:                                    ; preds = %147, %.lr.ph70, %.preheader46
  %.038.lcssa = phi i32 [ 0, %.preheader46 ], [ 0, %.lr.ph70 ], [ %.2, %147 ]
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @cout, i32 noundef %.038.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret i32 0

.lr.ph70.split:                                   ; preds = %.lr.ph70.split.preheader, %147
  %indvars.iv93 = phi i64 [ 1, %.lr.ph70.split.preheader ], [ %indvars.iv.next94, %147 ]
  %.03868 = phi i32 [ 0, %.lr.ph70.split.preheader ], [ %.2, %147 ]
  %102 = getelementptr inbounds [51 x i32], ptr @badmilk, i64 0, i64 %indvars.iv93
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp eq i32 %103, 1
  br i1 %104, label %.preheader.preheader, label %147

.preheader.preheader:                             ; preds = %.lr.ph70.split
  br i1 %min.iters.check135, label %.preheader.preheader147, label %vector.body141

.preheader.preheader147:                          ; preds = %middle.block133, %.preheader.preheader
  %indvars.iv88.ph = phi i64 [ 1, %.preheader.preheader ], [ %ind.end139, %middle.block133 ]
  %.03063.ph = phi i32 [ 0, %.preheader.preheader ], [ %143, %middle.block133 ]
  br label %.preheader

vector.body141:                                   ; preds = %.preheader.preheader, %vector.body141
  %index142 = phi i64 [ %index.next145, %vector.body141 ], [ 0, %.preheader.preheader ]
  %vec.phi = phi <4 x i32> [ %140, %vector.body141 ], [ zeroinitializer, %.preheader.preheader ]
  %vec.phi143 = phi <4 x i32> [ %141, %vector.body141 ], [ zeroinitializer, %.preheader.preheader ]
  %offset.idx144 = or disjoint i64 %index142, 1
  %105 = or disjoint i64 %index142, 2
  %106 = or disjoint i64 %index142, 3
  %107 = or disjoint i64 %index142, 4
  %108 = or disjoint i64 %index142, 5
  %109 = or disjoint i64 %index142, 6
  %110 = or disjoint i64 %index142, 7
  %111 = add i64 %index142, 8
  %112 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %offset.idx144, i64 %indvars.iv93
  %113 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %105, i64 %indvars.iv93
  %114 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %106, i64 %indvars.iv93
  %115 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %107, i64 %indvars.iv93
  %116 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %108, i64 %indvars.iv93
  %117 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %109, i64 %indvars.iv93
  %118 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %110, i64 %indvars.iv93
  %119 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %111, i64 %indvars.iv93
  %120 = load i32, ptr %112, align 4, !tbaa !5
  %121 = load i32, ptr %113, align 4, !tbaa !5
  %122 = load i32, ptr %114, align 4, !tbaa !5
  %123 = load i32, ptr %115, align 4, !tbaa !5
  %124 = insertelement <4 x i32> poison, i32 %120, i64 0
  %125 = insertelement <4 x i32> %124, i32 %121, i64 1
  %126 = insertelement <4 x i32> %125, i32 %122, i64 2
  %127 = insertelement <4 x i32> %126, i32 %123, i64 3
  %128 = load i32, ptr %116, align 4, !tbaa !5
  %129 = load i32, ptr %117, align 4, !tbaa !5
  %130 = load i32, ptr %118, align 4, !tbaa !5
  %131 = load i32, ptr %119, align 4, !tbaa !5
  %132 = insertelement <4 x i32> poison, i32 %128, i64 0
  %133 = insertelement <4 x i32> %132, i32 %129, i64 1
  %134 = insertelement <4 x i32> %133, i32 %130, i64 2
  %135 = insertelement <4 x i32> %134, i32 %131, i64 3
  %136 = icmp ne <4 x i32> %127, <i32 101, i32 101, i32 101, i32 101>
  %137 = icmp ne <4 x i32> %135, <i32 101, i32 101, i32 101, i32 101>
  %138 = zext <4 x i1> %136 to <4 x i32>
  %139 = zext <4 x i1> %137 to <4 x i32>
  %140 = add <4 x i32> %vec.phi, %138
  %141 = add <4 x i32> %vec.phi143, %139
  %index.next145 = add nuw i64 %index142, 8
  %142 = icmp eq i64 %index.next145, %n.vec138
  br i1 %142, label %middle.block133, label %vector.body141, !llvm.loop !19

middle.block133:                                  ; preds = %vector.body141
  %bin.rdx = add <4 x i32> %141, %140
  %143 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n146, label %._crit_edge66, label %.preheader.preheader147

._crit_edge66:                                    ; preds = %.preheader, %middle.block133
  %spec.select45.lcssa = phi i32 [ %143, %middle.block133 ], [ %spec.select45, %.preheader ]
  %spec.select = call i32 @llvm.smax.i32(i32 %spec.select45.lcssa, i32 %.03868)
  br label %147

.preheader:                                       ; preds = %.preheader.preheader147, %.preheader
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.preheader ], [ %indvars.iv88.ph, %.preheader.preheader147 ]
  %.03063 = phi i32 [ %spec.select45, %.preheader ], [ %.03063.ph, %.preheader.preheader147 ]
  %144 = getelementptr inbounds [51 x [51 x i32]], ptr @a, i64 0, i64 %indvars.iv88, i64 %indvars.iv93
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %.not42 = icmp ne i32 %145, 101
  %146 = zext i1 %.not42 to i32
  %spec.select45 = add nuw nsw i32 %.03063, %146
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond92.not = icmp eq i64 %indvars.iv.next89, %wide.trip.count91
  br i1 %exitcond92.not, label %._crit_edge66, label %.preheader, !llvm.loop !20

147:                                              ; preds = %.lr.ph70.split, %._crit_edge66
  %.2 = phi i32 [ %spec.select, %._crit_edge66 ], [ %.03868, %.lr.ph70.split ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next94, %wide.trip.count96
  br i1 %exitcond97.not, label %._crit_edge71, label %.lr.ph70.split, !llvm.loop !21
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !12, !11}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !12, !11}
!21 = distinct !{!21, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass