; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI/2327 (main)

; 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_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [10 x [10 x i32]], align 16
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 400, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %19

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

23:                                               ; preds = %19
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %45

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

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

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

30:                                               ; preds = %25
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %32
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [10 x i32], ptr %33, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %36)
  br label %38

38:                                               ; preds = %30
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %9, align 4, !tbaa !5
  br label %25, !llvm.loop !9

41:                                               ; preds = %29
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %7, align 4, !tbaa !5
  br label %19, !llvm.loop !11

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

46:                                               ; preds = %81, %45
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 8, ptr %8, align 4
  br label %84

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

52:                                               ; preds = %67, %51
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %70

57:                                               ; preds = %52
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %59
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [10 x i32], ptr %60, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = add nsw i32 %65, %64
  store i32 %66, ptr %3, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %57
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %11, align 4, !tbaa !5
  br label %52, !llvm.loop !12

70:                                               ; preds = %56
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %74, ptr %4, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %73, %70
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = icmp ne i32 %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i32 1, ptr %6, align 4, !tbaa !5
  store i32 8, ptr %8, align 4
  br label %84

80:                                               ; preds = %75
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %10, align 4, !tbaa !5
  br label %46, !llvm.loop !13

84:                                               ; preds = %79, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %85

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

86:                                               ; preds = %116, %85
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 14, ptr %8, align 4
  br label %119

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

92:                                               ; preds = %107, %91
  %93 = load i32, ptr %13, align 4, !tbaa !5
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %110

97:                                               ; preds = %92
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %99
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [10 x i32], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = add nsw i32 %105, %104
  store i32 %106, ptr %3, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %97
  %108 = load i32, ptr %13, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !5
  br label %92, !llvm.loop !14

110:                                              ; preds = %96
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = icmp ne i32 %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %110
  store i32 1, ptr %6, align 4, !tbaa !5
  store i32 14, ptr %8, align 4
  br label %119

115:                                              ; preds = %110
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %116

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

119:                                              ; preds = %114, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %120

120:                                              ; preds = %119
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %151, %120
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %154

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

127:                                              ; preds = %147, %126
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = load i32, ptr %5, align 4, !tbaa !5
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %150

132:                                              ; preds = %127
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = icmp eq i32 %133, %134
  br i1 %135, label %136, label %146

136:                                              ; preds = %132
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %138
  %140 = load i32, ptr %15, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [10 x i32], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = load i32, ptr %3, align 4, !tbaa !5
  %145 = add nsw i32 %144, %143
  store i32 %145, ptr %3, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %136, %132
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %15, align 4, !tbaa !5
  br label %127, !llvm.loop !16

150:                                              ; preds = %131
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %14, align 4, !tbaa !5
  br label %121, !llvm.loop !17

154:                                              ; preds = %125
  %155 = load i32, ptr %4, align 4, !tbaa !5
  %156 = load i32, ptr %3, align 4, !tbaa !5
  %157 = icmp ne i32 %155, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %154
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %158, %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = sub nsw i32 %160, 1
  store i32 %161, ptr %16, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %178, %159
  %163 = load i32, ptr %17, align 4, !tbaa !5
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %181

167:                                              ; preds = %162
  %168 = load i32, ptr %16, align 4, !tbaa !5
  %169 = add nsw i32 %168, -1
  store i32 %169, ptr %16, align 4, !tbaa !5
  %170 = sext i32 %168 to i64
  %171 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %170
  %172 = load i32, ptr %17, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [10 x i32], ptr %171, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = load i32, ptr %3, align 4, !tbaa !5
  %177 = add nsw i32 %176, %175
  store i32 %177, ptr %3, align 4, !tbaa !5
  br label %178

178:                                              ; preds = %167
  %179 = load i32, ptr %17, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %17, align 4, !tbaa !5
  br label %162, !llvm.loop !18

181:                                              ; preds = %166
  %182 = load i32, ptr %4, align 4, !tbaa !5
  %183 = load i32, ptr %3, align 4, !tbaa !5
  %184 = icmp ne i32 %182, %183
  br i1 %184, label %185, label %186

185:                                              ; preds = %181
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %186

186:                                              ; preds = %185, %181
  %187 = load i32, ptr %6, align 4, !tbaa !5
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %193, label %189

189:                                              ; preds = %186
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %190)
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %196

193:                                              ; preds = %186
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %196

196:                                              ; preds = %193, %189
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %2) #5
  %197 = load i32, ptr %1, align 4
  ret i32 %197
}

; 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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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 = { 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 = { 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 #5 = { 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}
!18 = distinct !{!18, !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_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [10 x [10 x i32]], align 16
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %4 = load i32, ptr %2, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.preheader74, label %._crit_edge113.thread

.preheader74:                                     ; preds = %0, %._crit_edge
  %6 = phi i32 [ %20, %._crit_edge ], [ %4, %0 ]
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge ], [ 0, %0 ]
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %.preheader74.._crit_edge_crit_edge

.preheader74.._crit_edge_crit_edge:               ; preds = %.preheader74
  %.pre = sext i32 %6 to i64
  br label %._crit_edge

.preheader73:                                     ; preds = %._crit_edge
  %8 = icmp sgt i32 %20, 0
  br i1 %8, label %.preheader72.us.preheader, label %._crit_edge113.thread

.preheader72.us.preheader:                        ; preds = %.preheader73
  %wide.trip.count138 = zext nneg i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 8
  %n.vec = and i64 %wide.trip.count138, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count138
  br label %.preheader72.us

.preheader72.us:                                  ; preds = %.preheader72.us.preheader, %18
  %indvars.iv135 = phi i64 [ 0, %.preheader72.us.preheader ], [ %indvars.iv.next136, %18 ]
  %.05782.us = phi i32 [ 0, %.preheader72.us.preheader ], [ %.lcssa199, %18 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader72.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader72.us ]
  %vec.phi = phi <4 x i32> [ %11, %vector.body ], [ zeroinitializer, %.preheader72.us ]
  %vec.phi203 = phi <4 x i32> [ %12, %vector.body ], [ zeroinitializer, %.preheader72.us ]
  %9 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv135, i64 %index
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  %wide.load = load <4 x i32>, ptr %9, align 8, !tbaa !5
  %wide.load204 = load <4 x i32>, ptr %10, align 8, !tbaa !5
  %11 = add <4 x i32> %wide.load, %vec.phi
  %12 = add <4 x i32> %wide.load204, %vec.phi203
  %index.next = add nuw i64 %index, 8
  %13 = icmp eq i64 %index.next, %n.vec
  br i1 %13, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %12, %11
  %14 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge80.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader72.us
  %indvars.iv132.ph = phi i64 [ 0, %.preheader72.us ], [ %n.vec, %middle.block ]
  %.16177.us.ph = phi i32 [ 0, %.preheader72.us ], [ %14, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %scalar.ph ], [ %indvars.iv132.ph, %scalar.ph.preheader ]
  %.16177.us = phi i32 [ %17, %scalar.ph ], [ %.16177.us.ph, %scalar.ph.preheader ]
  %15 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv135, i64 %indvars.iv132
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = add nsw i32 %16, %.16177.us
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count138
  br i1 %exitcond.not, label %._crit_edge80.us, label %scalar.ph, !llvm.loop !13

18:                                               ; preds = %._crit_edge80.us
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count138
  br i1 %exitcond139.not, label %._crit_edge84, label %.preheader72.us, !llvm.loop !14

._crit_edge80.us:                                 ; preds = %scalar.ph, %middle.block
  %.lcssa199 = phi i32 [ %14, %middle.block ], [ %17, %scalar.ph ]
  %19 = icmp eq i64 %indvars.iv135, 0
  %spec.select.us = select i1 %19, i32 %.lcssa199, i32 %.05782.us
  %.not.us = icmp eq i32 %spec.select.us, %.lcssa199
  br i1 %.not.us, label %18, label %._crit_edge84

._crit_edge:                                      ; preds = %.lr.ph, %.preheader74.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader74.._crit_edge_crit_edge ], [ %25, %.lr.ph ]
  %20 = phi i32 [ %6, %.preheader74.._crit_edge_crit_edge ], [ %24, %.lr.ph ]
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %21 = icmp slt i64 %indvars.iv.next130, %.pre-phi
  br i1 %21, label %.preheader74, label %.preheader73, !llvm.loop !15

.lr.ph:                                           ; preds = %.preheader74, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader74 ]
  %22 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv129, i64 %indvars.iv
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next, %25
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge84:                                    ; preds = %18, %._crit_edge80.us
  %.259 = phi i32 [ %spec.select.us, %._crit_edge80.us ], [ %.lcssa199, %18 ]
  %.056 = phi i32 [ 1, %._crit_edge80.us ], [ 0, %18 ]
  br i1 %8, label %.preheader71.us.preheader, label %._crit_edge113.thread

.preheader71.us.preheader:                        ; preds = %._crit_edge84
  %wide.trip.count148 = zext nneg i32 %20 to i64
  %min.iters.check207 = icmp ult i32 %20, 8
  %n.vec210 = and i64 %wide.trip.count138, 2147483640
  %cmp.n218 = icmp eq i64 %n.vec210, %wide.trip.count138
  br label %.preheader71.us

.preheader71.us:                                  ; preds = %.preheader71.us.preheader, %65
  %indvars.iv145 = phi i64 [ 0, %.preheader71.us.preheader ], [ %indvars.iv.next146, %65 ]
  br i1 %min.iters.check207, label %scalar.ph206.preheader, label %vector.body212

vector.body212:                                   ; preds = %.preheader71.us, %vector.body212
  %index213 = phi i64 [ %index.next216, %vector.body212 ], [ 0, %.preheader71.us ]
  %vec.phi214 = phi <4 x i32> [ %58, %vector.body212 ], [ zeroinitializer, %.preheader71.us ]
  %vec.phi215 = phi <4 x i32> [ %59, %vector.body212 ], [ zeroinitializer, %.preheader71.us ]
  %27 = or disjoint i64 %index213, 1
  %28 = or disjoint i64 %index213, 2
  %29 = or disjoint i64 %index213, 3
  %30 = or disjoint i64 %index213, 4
  %31 = or disjoint i64 %index213, 5
  %32 = or disjoint i64 %index213, 6
  %33 = or disjoint i64 %index213, 7
  %34 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %index213, i64 %indvars.iv145
  %35 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %27, i64 %indvars.iv145
  %36 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %28, i64 %indvars.iv145
  %37 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %29, i64 %indvars.iv145
  %38 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %30, i64 %indvars.iv145
  %39 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %31, i64 %indvars.iv145
  %40 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %32, i64 %indvars.iv145
  %41 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %33, i64 %indvars.iv145
  %42 = load i32, ptr %34, align 4, !tbaa !5
  %43 = load i32, ptr %35, align 4, !tbaa !5
  %44 = load i32, ptr %36, align 4, !tbaa !5
  %45 = load i32, ptr %37, align 4, !tbaa !5
  %46 = insertelement <4 x i32> poison, i32 %42, i64 0
  %47 = insertelement <4 x i32> %46, i32 %43, i64 1
  %48 = insertelement <4 x i32> %47, i32 %44, i64 2
  %49 = insertelement <4 x i32> %48, i32 %45, i64 3
  %50 = load i32, ptr %38, align 4, !tbaa !5
  %51 = load i32, ptr %39, align 4, !tbaa !5
  %52 = load i32, ptr %40, align 4, !tbaa !5
  %53 = load i32, ptr %41, align 4, !tbaa !5
  %54 = insertelement <4 x i32> poison, i32 %50, i64 0
  %55 = insertelement <4 x i32> %54, i32 %51, i64 1
  %56 = insertelement <4 x i32> %55, i32 %52, i64 2
  %57 = insertelement <4 x i32> %56, i32 %53, i64 3
  %58 = add <4 x i32> %49, %vec.phi214
  %59 = add <4 x i32> %57, %vec.phi215
  %index.next216 = add nuw i64 %index213, 8
  %60 = icmp eq i64 %index.next216, %n.vec210
  br i1 %60, label %middle.block205, label %vector.body212, !llvm.loop !18

middle.block205:                                  ; preds = %vector.body212
  %bin.rdx217 = add <4 x i32> %59, %58
  %61 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx217)
  br i1 %cmp.n218, label %._crit_edge97.us, label %scalar.ph206.preheader

scalar.ph206.preheader:                           ; preds = %middle.block205, %.preheader71.us
  %indvars.iv140.ph = phi i64 [ 0, %.preheader71.us ], [ %n.vec210, %middle.block205 ]
  %.36394.us.ph = phi i32 [ 0, %.preheader71.us ], [ %61, %middle.block205 ]
  br label %scalar.ph206

scalar.ph206:                                     ; preds = %scalar.ph206.preheader, %scalar.ph206
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %scalar.ph206 ], [ %indvars.iv140.ph, %scalar.ph206.preheader ]
  %.36394.us = phi i32 [ %64, %scalar.ph206 ], [ %.36394.us.ph, %scalar.ph206.preheader ]
  %62 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv140, i64 %indvars.iv145
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add nsw i32 %63, %.36394.us
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count148
  br i1 %exitcond144.not, label %._crit_edge97.us, label %scalar.ph206, !llvm.loop !19

65:                                               ; preds = %._crit_edge97.us
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %exitcond149.not = icmp eq i64 %indvars.iv.next146, %wide.trip.count148
  br i1 %exitcond149.not, label %._crit_edge100, label %.preheader71.us, !llvm.loop !20

._crit_edge97.us:                                 ; preds = %scalar.ph206, %middle.block205
  %.lcssa198 = phi i32 [ %61, %middle.block205 ], [ %64, %scalar.ph206 ]
  %.not64.us = icmp eq i32 %.259, %.lcssa198
  br i1 %.not64.us, label %65, label %._crit_edge100

._crit_edge100:                                   ; preds = %65, %._crit_edge97.us
  %.1 = phi i32 [ %.056, %65 ], [ 1, %._crit_edge97.us ]
  br i1 %8, label %.preheader.us.preheader, label %._crit_edge113.thread

.preheader.us.preheader:                          ; preds = %._crit_edge100
  %wide.trip.count158 = zext nneg i32 %20 to i64
  %xtraiter = and i64 %wide.trip.count138, 3
  %66 = icmp ult i32 %20, 4
  %unroll_iter = and i64 %wide.trip.count138, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge109.us
  %indvars.iv155 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next156, %._crit_edge109.us ]
  %.4111.us = phi i32 [ 0, %.preheader.us.preheader ], [ %.6.us.lcssa, %._crit_edge109.us ]
  %67 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv155, i64 %indvars.iv155
  br i1 %66, label %._crit_edge109.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %87
  %indvars.iv150 = phi i64 [ %indvars.iv.next151.3, %87 ], [ 0, %.preheader.us ]
  %.5106.us = phi i32 [ %.6.us.3, %87 ], [ %.4111.us, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %87 ], [ 0, %.preheader.us ]
  %68 = icmp eq i64 %indvars.iv155, %indvars.iv150
  br i1 %68, label %69, label %72

69:                                               ; preds = %.preheader.us.new
  %70 = load i32, ptr %67, align 4, !tbaa !5
  %71 = add nsw i32 %70, %.5106.us
  br label %72

72:                                               ; preds = %69, %.preheader.us.new
  %.6.us = phi i32 [ %71, %69 ], [ %.5106.us, %.preheader.us.new ]
  %indvars.iv.next151 = or disjoint i64 %indvars.iv150, 1
  %73 = icmp eq i64 %indvars.iv155, %indvars.iv.next151
  br i1 %73, label %74, label %77

74:                                               ; preds = %72
  %75 = load i32, ptr %67, align 4, !tbaa !5
  %76 = add nsw i32 %75, %.6.us
  br label %77

77:                                               ; preds = %74, %72
  %.6.us.1 = phi i32 [ %76, %74 ], [ %.6.us, %72 ]
  %indvars.iv.next151.1 = or disjoint i64 %indvars.iv150, 2
  %78 = icmp eq i64 %indvars.iv155, %indvars.iv.next151.1
  br i1 %78, label %79, label %82

79:                                               ; preds = %77
  %80 = load i32, ptr %67, align 4, !tbaa !5
  %81 = add nsw i32 %80, %.6.us.1
  br label %82

82:                                               ; preds = %79, %77
  %.6.us.2 = phi i32 [ %81, %79 ], [ %.6.us.1, %77 ]
  %indvars.iv.next151.2 = or disjoint i64 %indvars.iv150, 3
  %83 = icmp eq i64 %indvars.iv155, %indvars.iv.next151.2
  br i1 %83, label %84, label %87

84:                                               ; preds = %82
  %85 = load i32, ptr %67, align 4, !tbaa !5
  %86 = add nsw i32 %85, %.6.us.2
  br label %87

87:                                               ; preds = %84, %82
  %.6.us.3 = phi i32 [ %86, %84 ], [ %.6.us.2, %82 ]
  %indvars.iv.next151.3 = add nuw nsw i64 %indvars.iv150, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge109.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !21

._crit_edge109.us.unr-lcssa:                      ; preds = %87, %.preheader.us
  %.6.us.lcssa.ph = phi i32 [ poison, %.preheader.us ], [ %.6.us.3, %87 ]
  %indvars.iv150.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next151.3, %87 ]
  %.5106.us.unr = phi i32 [ %.4111.us, %.preheader.us ], [ %.6.us.3, %87 ]
  br i1 %lcmp.mod.not, label %._crit_edge109.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge109.us.unr-lcssa, %92
  %indvars.iv150.epil = phi i64 [ %indvars.iv.next151.epil, %92 ], [ %indvars.iv150.unr, %._crit_edge109.us.unr-lcssa ]
  %.5106.us.epil = phi i32 [ %.6.us.epil, %92 ], [ %.5106.us.unr, %._crit_edge109.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %92 ], [ 0, %._crit_edge109.us.unr-lcssa ]
  %88 = icmp eq i64 %indvars.iv155, %indvars.iv150.epil
  br i1 %88, label %89, label %92

89:                                               ; preds = %.epil.preheader
  %90 = load i32, ptr %67, align 4, !tbaa !5
  %91 = add nsw i32 %90, %.5106.us.epil
  br label %92

92:                                               ; preds = %89, %.epil.preheader
  %.6.us.epil = phi i32 [ %91, %89 ], [ %.5106.us.epil, %.epil.preheader ]
  %indvars.iv.next151.epil = add nuw nsw i64 %indvars.iv150.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge109.us, label %.epil.preheader, !llvm.loop !22

._crit_edge109.us:                                ; preds = %92, %._crit_edge109.us.unr-lcssa
  %.6.us.lcssa = phi i32 [ %.6.us.lcssa.ph, %._crit_edge109.us.unr-lcssa ], [ %.6.us.epil, %92 ]
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond159.not = icmp eq i64 %indvars.iv.next156, %wide.trip.count158
  br i1 %exitcond159.not, label %._crit_edge113, label %.preheader.us, !llvm.loop !24

._crit_edge113.thread:                            ; preds = %._crit_edge100, %._crit_edge84, %.preheader73, %0
  %.1182.ph = phi i32 [ %.1, %._crit_edge100 ], [ %.056, %._crit_edge84 ], [ 0, %.preheader73 ], [ 0, %0 ]
  %.259175180.ph = phi i32 [ %.259, %._crit_edge100 ], [ %.259, %._crit_edge84 ], [ 0, %.preheader73 ], [ 0, %0 ]
  %.not65188 = icmp eq i32 %.259175180.ph, 0
  br label %._crit_edge121

._crit_edge113:                                   ; preds = %._crit_edge109.us
  %.not65 = icmp eq i32 %.259, %.6.us.lcssa
  br i1 %8, label %.lr.ph120.preheader, label %._crit_edge121

.lr.ph120.preheader:                              ; preds = %._crit_edge113
  %93 = zext nneg i32 %20 to i64
  %xtraiter230 = and i64 %wide.trip.count138, 3
  %94 = icmp ult i32 %20, 4
  br i1 %94, label %._crit_edge121.loopexit.unr-lcssa, label %.lr.ph120.preheader.new

.lr.ph120.preheader.new:                          ; preds = %.lr.ph120.preheader
  %unroll_iter234 = and i64 %wide.trip.count138, 2147483644
  br label %.lr.ph120

._crit_edge121.loopexit.unr-lcssa:                ; preds = %.lr.ph120, %.lr.ph120.preheader
  %.lcssa.ph = phi i32 [ poison, %.lr.ph120.preheader ], [ %112, %.lr.ph120 ]
  %indvars.iv162.unr = phi i64 [ %93, %.lr.ph120.preheader ], [ %indvars.iv.next163.3, %.lr.ph120 ]
  %indvars.iv160.unr = phi i64 [ 0, %.lr.ph120.preheader ], [ %indvars.iv.next161.3, %.lr.ph120 ]
  %.7116.unr = phi i32 [ 0, %.lr.ph120.preheader ], [ %112, %.lr.ph120 ]
  %lcmp.mod232.not = icmp eq i64 %xtraiter230, 0
  br i1 %lcmp.mod232.not, label %._crit_edge121, label %.lr.ph120.epil

.lr.ph120.epil:                                   ; preds = %._crit_edge121.loopexit.unr-lcssa, %.lr.ph120.epil
  %indvars.iv162.epil = phi i64 [ %indvars.iv.next163.epil, %.lr.ph120.epil ], [ %indvars.iv162.unr, %._crit_edge121.loopexit.unr-lcssa ]
  %indvars.iv160.epil = phi i64 [ %indvars.iv.next161.epil, %.lr.ph120.epil ], [ %indvars.iv160.unr, %._crit_edge121.loopexit.unr-lcssa ]
  %.7116.epil = phi i32 [ %97, %.lr.ph120.epil ], [ %.7116.unr, %._crit_edge121.loopexit.unr-lcssa ]
  %epil.iter231 = phi i64 [ %epil.iter231.next, %.lr.ph120.epil ], [ 0, %._crit_edge121.loopexit.unr-lcssa ]
  %indvars.iv.next163.epil = add nsw i64 %indvars.iv162.epil, -1
  %95 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv.next163.epil, i64 %indvars.iv160.epil
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = add nsw i32 %96, %.7116.epil
  %indvars.iv.next161.epil = add nuw nsw i64 %indvars.iv160.epil, 1
  %epil.iter231.next = add i64 %epil.iter231, 1
  %epil.iter231.cmp.not = icmp eq i64 %epil.iter231.next, %xtraiter230
  br i1 %epil.iter231.cmp.not, label %._crit_edge121, label %.lr.ph120.epil, !llvm.loop !25

._crit_edge121:                                   ; preds = %._crit_edge121.loopexit.unr-lcssa, %.lr.ph120.epil, %._crit_edge113.thread, %._crit_edge113
  %.not65191 = phi i1 [ %.not65, %._crit_edge113 ], [ %.not65188, %._crit_edge113.thread ], [ %.not65, %.lr.ph120.epil ], [ %.not65, %._crit_edge121.loopexit.unr-lcssa ]
  %.259175180190 = phi i32 [ %.259, %._crit_edge113 ], [ %.259175180.ph, %._crit_edge113.thread ], [ %.259, %.lr.ph120.epil ], [ %.259, %._crit_edge121.loopexit.unr-lcssa ]
  %.1182189 = phi i32 [ %.1, %._crit_edge113 ], [ %.1182.ph, %._crit_edge113.thread ], [ %.1, %.lr.ph120.epil ], [ %.1, %._crit_edge121.loopexit.unr-lcssa ]
  %.7.lcssa = phi i32 [ 0, %._crit_edge113 ], [ 0, %._crit_edge113.thread ], [ %.lcssa.ph, %._crit_edge121.loopexit.unr-lcssa ], [ %97, %.lr.ph120.epil ]
  %.not66 = icmp eq i32 %.259175180190, %.7.lcssa
  %98 = select i1 %.not66, i1 %.not65191, i1 false
  %.not6770 = icmp eq i32 %.1182189, 0
  %.not67 = and i1 %.not6770, %98
  %.259175180190. = select i1 %.not67, i32 %.259175180190, i32 -1
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.259175180190.)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %1) #6
  ret i32 0

.lr.ph120:                                        ; preds = %.lr.ph120, %.lr.ph120.preheader.new
  %indvars.iv162 = phi i64 [ %93, %.lr.ph120.preheader.new ], [ %indvars.iv.next163.3, %.lr.ph120 ]
  %indvars.iv160 = phi i64 [ 0, %.lr.ph120.preheader.new ], [ %indvars.iv.next161.3, %.lr.ph120 ]
  %.7116 = phi i32 [ 0, %.lr.ph120.preheader.new ], [ %112, %.lr.ph120 ]
  %niter235 = phi i64 [ 0, %.lr.ph120.preheader.new ], [ %niter235.next.3, %.lr.ph120 ]
  %indvars.iv.next163 = add nsw i64 %indvars.iv162, -1
  %101 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv.next163, i64 %indvars.iv160
  %102 = load i32, ptr %101, align 8, !tbaa !5
  %103 = add nsw i32 %102, %.7116
  %indvars.iv.next161 = or disjoint i64 %indvars.iv160, 1
  %indvars.iv.next163.1 = add nsw i64 %indvars.iv162, -2
  %104 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv.next163.1, i64 %indvars.iv.next161
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = add nsw i32 %105, %103
  %indvars.iv.next161.1 = or disjoint i64 %indvars.iv160, 2
  %indvars.iv.next163.2 = add nsw i64 %indvars.iv162, -3
  %107 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv.next163.2, i64 %indvars.iv.next161.1
  %108 = load i32, ptr %107, align 8, !tbaa !5
  %109 = add nsw i32 %108, %106
  %indvars.iv.next161.2 = or disjoint i64 %indvars.iv160, 3
  %indvars.iv.next163.3 = add nsw i64 %indvars.iv162, -4
  %110 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %indvars.iv.next163.3, i64 %indvars.iv.next161.2
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %111, %109
  %indvars.iv.next161.3 = add nuw nsw i64 %indvars.iv160, 4
  %niter235.next.3 = add i64 %niter235, 4
  %niter235.ncmp.3 = icmp eq i64 %niter235.next.3, %unroll_iter234
  br i1 %niter235.ncmp.3, label %._crit_edge121.loopexit.unr-lcssa, label %.lr.ph120, !llvm.loop !26
}

; 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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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 = { 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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !11, !12}
!19 = distinct !{!19, !10, !12, !11}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !10}


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