; LLVM IR from eyangch/competitive-programming :: GoogleKickstart/2020A (plates)

; 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
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 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
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %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
  store i32 0, ptr %1, align 4
  %20 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %21 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %23
  %25 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %24, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %26 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 1, ptr %3, align 4, !tbaa !8
  br label %27

27:                                               ; preds = %223, %0
  %28 = load i32, ptr %3, align 4, !tbaa !8
  %29 = load i32, ptr %2, align 4, !tbaa !8
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %226

32:                                               ; preds = %27
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %33, i32 noundef %34)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %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) %5)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %40 = load i32, ptr %5, align 4, !tbaa !8
  %41 = zext i32 %40 to i64
  %42 = load i32, ptr %6, align 4, !tbaa !8
  %43 = zext i32 %42 to i64
  %44 = call ptr @llvm.stacksave.p0()
  store ptr %44, ptr %8, align 8
  %45 = mul nuw i64 %41, %43
  %46 = alloca i32, i64 %45, align 16
  store i64 %41, ptr %9, align 8
  store i64 %43, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %47

47:                                               ; preds = %93, %32
  %48 = load i32, ptr %11, align 4, !tbaa !8
  %49 = load i32, ptr %5, align 4, !tbaa !8
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

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

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %89, %52
  %54 = load i32, ptr %12, align 4, !tbaa !8
  %55 = load i32, ptr %6, align 4, !tbaa !8
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %92

58:                                               ; preds = %53
  %59 = load i32, ptr %11, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = mul nsw i64 %60, %43
  %62 = getelementptr inbounds i32, ptr %46, i64 %61
  %63 = load i32, ptr %12, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %62, i64 %64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %65)
  %67 = load i32, ptr %12, align 4, !tbaa !8
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %69, label %88

69:                                               ; preds = %58
  %70 = load i32, ptr %11, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %72 = mul nsw i64 %71, %43
  %73 = getelementptr inbounds i32, ptr %46, i64 %72
  %74 = load i32, ptr %12, align 4, !tbaa !8
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %73, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !8
  %79 = load i32, ptr %11, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = mul nsw i64 %80, %43
  %82 = getelementptr inbounds i32, ptr %46, i64 %81
  %83 = load i32, ptr %12, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %82, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %87 = add nsw i32 %86, %78
  store i32 %87, ptr %85, align 4, !tbaa !8
  br label %88

88:                                               ; preds = %69, %58
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %12, align 4, !tbaa !8
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %12, align 4, !tbaa !8
  br label %53, !llvm.loop !11

92:                                               ; preds = %57
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %11, align 4, !tbaa !8
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %11, align 4, !tbaa !8
  br label %47, !llvm.loop !13

96:                                               ; preds = %51
  %97 = load i32, ptr %5, align 4, !tbaa !8
  %98 = add nsw i32 %97, 1
  %99 = zext i32 %98 to i64
  %100 = load i32, ptr %7, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  %102 = zext i32 %101 to i64
  %103 = mul nuw i64 %99, %102
  %104 = alloca i32, i64 %103, align 16
  store i64 %99, ptr %13, align 8
  store i64 %102, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %105

105:                                              ; preds = %116, %96
  %106 = load i32, ptr %15, align 4, !tbaa !8
  %107 = load i32, ptr %7, align 4, !tbaa !8
  %108 = icmp sle i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %119

110:                                              ; preds = %105
  %111 = mul nsw i64 0, %102
  %112 = getelementptr inbounds i32, ptr %104, i64 %111
  %113 = load i32, ptr %15, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %112, i64 %114
  store i32 0, ptr %115, align 4, !tbaa !8
  br label %116

116:                                              ; preds = %110
  %117 = load i32, ptr %15, align 4, !tbaa !8
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %15, align 4, !tbaa !8
  br label %105, !llvm.loop !14

119:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %120

120:                                              ; preds = %208, %119
  %121 = load i32, ptr %16, align 4, !tbaa !8
  %122 = load i32, ptr %5, align 4, !tbaa !8
  %123 = icmp sle i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %211

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %126

126:                                              ; preds = %204, %125
  %127 = load i32, ptr %17, align 4, !tbaa !8
  %128 = load i32, ptr %7, align 4, !tbaa !8
  %129 = icmp sle i32 %127, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %207

131:                                              ; preds = %126
  %132 = load i32, ptr %16, align 4, !tbaa !8
  %133 = sub nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = mul nsw i64 %134, %102
  %136 = getelementptr inbounds i32, ptr %104, i64 %135
  %137 = load i32, ptr %17, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !8
  %141 = load i32, ptr %16, align 4, !tbaa !8
  %142 = sext i32 %141 to i64
  %143 = mul nsw i64 %142, %102
  %144 = getelementptr inbounds i32, ptr %104, i64 %143
  %145 = load i32, ptr %17, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i32, ptr %144, i64 %146
  store i32 %140, ptr %147, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %148

148:                                              ; preds = %199, %131
  %149 = load i32, ptr %18, align 4, !tbaa !8
  %150 = load i32, ptr %6, align 4, !tbaa !8
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %148
  store i32 20, ptr %4, align 4
  br label %202

153:                                              ; preds = %148
  %154 = load i32, ptr %17, align 4, !tbaa !8
  %155 = load i32, ptr %18, align 4, !tbaa !8
  %156 = sub nsw i32 %154, %155
  %157 = sub nsw i32 %156, 1
  %158 = icmp slt i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %153
  store i32 20, ptr %4, align 4
  br label %202

160:                                              ; preds = %153
  %161 = load i32, ptr %16, align 4, !tbaa !8
  %162 = sext i32 %161 to i64
  %163 = mul nsw i64 %162, %102
  %164 = getelementptr inbounds i32, ptr %104, i64 %163
  %165 = load i32, ptr %17, align 4, !tbaa !8
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %164, i64 %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %168 = load i32, ptr %16, align 4, !tbaa !8
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = mul nsw i64 %170, %102
  %172 = getelementptr inbounds i32, ptr %104, i64 %171
  %173 = load i32, ptr %17, align 4, !tbaa !8
  %174 = load i32, ptr %18, align 4, !tbaa !8
  %175 = sub nsw i32 %173, %174
  %176 = sub nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %172, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !8
  %180 = load i32, ptr %16, align 4, !tbaa !8
  %181 = sub nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = mul nsw i64 %182, %43
  %184 = getelementptr inbounds i32, ptr %46, i64 %183
  %185 = load i32, ptr %18, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i32, ptr %184, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !8
  %189 = add nsw i32 %179, %188
  store i32 %189, ptr %19, align 4, !tbaa !8
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %167, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %191 = load i32, ptr %190, align 4, !tbaa !8
  %192 = load i32, ptr %16, align 4, !tbaa !8
  %193 = sext i32 %192 to i64
  %194 = mul nsw i64 %193, %102
  %195 = getelementptr inbounds i32, ptr %104, i64 %194
  %196 = load i32, ptr %17, align 4, !tbaa !8
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds i32, ptr %195, i64 %197
  store i32 %191, ptr %198, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %199

199:                                              ; preds = %160
  %200 = load i32, ptr %18, align 4, !tbaa !8
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %18, align 4, !tbaa !8
  br label %148, !llvm.loop !15

202:                                              ; preds = %159, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %17, align 4, !tbaa !8
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %17, align 4, !tbaa !8
  br label %126, !llvm.loop !16

207:                                              ; preds = %130
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %16, align 4, !tbaa !8
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %16, align 4, !tbaa !8
  br label %120, !llvm.loop !17

211:                                              ; preds = %124
  %212 = load i32, ptr %5, align 4, !tbaa !8
  %213 = sext i32 %212 to i64
  %214 = mul nsw i64 %213, %102
  %215 = getelementptr inbounds i32, ptr %104, i64 %214
  %216 = load i32, ptr %7, align 4, !tbaa !8
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !8
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %219)
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %222 = load ptr, ptr %8, align 8
  call void @llvm.stackrestore.p0(ptr %222)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %223

223:                                              ; preds = %211
  %224 = load i32, ptr %3, align 4, !tbaa !8
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %3, align 4, !tbaa !8
  br label %27, !llvm.loop !18

226:                                              ; preds = %31
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %227 = load i32, ptr %1, align 4
  ret i32 %227
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #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) #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7 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 willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 willreturn }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; 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
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #10
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %13 = load i32, ptr %1, align 4, !tbaa !8
  %.not76 = icmp slt i32 %13, 1
  br i1 %.not76, label %._crit_edge80, label %.lr.ph79

._crit_edge80:                                    ; preds = %._crit_edge73, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  ret i32 0

.lr.ph79:                                         ; preds = %0, %._crit_edge73
  %.04277 = phi i32 [ %110, %._crit_edge73 ], [ 1, %0 ]
  %14 = 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)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %.04277)
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  %17 = 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)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %20 = load i32, ptr %2, align 4, !tbaa !8
  %21 = zext i32 %20 to i64
  %22 = load i32, ptr %3, align 4, !tbaa !8
  %23 = zext i32 %22 to i64
  %24 = call ptr @llvm.stacksave.p0()
  %25 = mul nuw i64 %23, %21
  %26 = alloca i32, i64 %25, align 16
  %27 = load i32, ptr %2, align 4, !tbaa !8
  %28 = icmp sgt i32 %27, 0
  %29 = load i32, ptr %3, align 4
  %30 = icmp sgt i32 %29, 0
  %or.cond = select i1 %28, i1 %30, i1 false
  br i1 %or.cond, label %.preheader52, label %._crit_edge57

.preheader52:                                     ; preds = %.lr.ph79, %._crit_edge
  %31 = phi i32 [ %49, %._crit_edge ], [ %27, %.lr.ph79 ]
  %32 = phi i32 [ %50, %._crit_edge ], [ %29, %.lr.ph79 ]
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %._crit_edge ], [ 0, %.lr.ph79 ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %._crit_edge

34:                                               ; preds = %.preheader52
  %35 = mul nuw nsw i64 %indvars.iv88, %23
  %36 = getelementptr inbounds i32, ptr %26, 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)
  %38 = load i32, ptr %3, align 4, !tbaa !8
  %39 = icmp sgt i32 %38, 1
  br i1 %39, label %.peel.next, label %._crit_edge.loopexit

._crit_edge57:                                    ; preds = %._crit_edge, %.lr.ph79
  %40 = phi i32 [ %27, %.lr.ph79 ], [ %49, %._crit_edge ]
  %41 = add nsw i32 %40, 1
  %42 = zext i32 %41 to i64
  %43 = load i32, ptr %4, align 4, !tbaa !8
  %44 = add i32 %43, 1
  %45 = zext i32 %44 to i64
  %46 = mul nuw i64 %45, %42
  %47 = alloca i32, i64 %46, align 16
  %.not4858 = icmp slt i32 %43, 0
  br i1 %.not4858, label %._crit_edge73, label %.preheader53.thread

._crit_edge.loopexit:                             ; preds = %.peel.next, %34
  %48 = phi i32 [ %38, %34 ], [ %59, %.peel.next ]
  %.pre = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader52
  %49 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader52 ]
  %50 = phi i32 [ %48, %._crit_edge.loopexit ], [ %32, %.preheader52 ]
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %51 = sext i32 %49 to i64
  %52 = icmp slt i64 %indvars.iv.next89, %51
  br i1 %52, label %.preheader52, label %._crit_edge57, !llvm.loop !11

.peel.next:                                       ; preds = %34, %.peel.next
  %indvars.iv = phi i64 [ %indvars.iv.next, %.peel.next ], [ 1, %34 ]
  %53 = getelementptr inbounds i32, ptr %36, i64 %indvars.iv
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %55 = getelementptr i8, ptr %53, i64 -4
  %56 = load i32, ptr %55, align 4, !tbaa !8
  %57 = load i32, ptr %53, align 4, !tbaa !8
  %58 = add nsw i32 %57, %56
  store i32 %58, ptr %53, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %59 = load i32, ptr %3, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next, %60
  br i1 %61, label %.peel.next, label %._crit_edge.loopexit, !llvm.loop !14

.preheader53.thread:                              ; preds = %._crit_edge57
  %62 = shl nuw nsw i64 %45, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %47, i8 0, i64 %62, i1 false), !tbaa !8
  %.not4971112 = icmp slt i32 %40, 1
  br i1 %.not4971112, label %._crit_edge73, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader53.thread
  %diff.check = icmp ult i32 %44, 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge70
  %63 = phi i32 [ %112, %._crit_edge70 ], [ %40, %.preheader.preheader ]
  %64 = phi i32 [ %113, %._crit_edge70 ], [ %43, %.preheader.preheader ]
  %65 = phi i32 [ %114, %._crit_edge70 ], [ %43, %.preheader.preheader ]
  %66 = phi i32 [ %115, %._crit_edge70 ], [ %43, %.preheader.preheader ]
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %._crit_edge70 ], [ 1, %.preheader.preheader ]
  %.not5067 = icmp slt i32 %66, 0
  br i1 %.not5067, label %._crit_edge70, label %.lr.ph69

.lr.ph69:                                         ; preds = %.preheader
  %67 = add nsw i64 %indvars.iv106, -1
  %68 = mul nuw nsw i64 %67, %45
  %69 = getelementptr inbounds i32, ptr %47, i64 %68
  %70 = mul nuw nsw i64 %indvars.iv106, %45
  %71 = getelementptr inbounds i32, ptr %47, i64 %70
  %72 = mul nuw nsw i64 %67, %23
  %73 = getelementptr inbounds i32, ptr %26, i64 %72
  %74 = load i32, ptr %3, align 4, !tbaa !8
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph69.split, label %.lr.ph69.split.us

.lr.ph69.split.us:                                ; preds = %.lr.ph69
  %smax = call i32 @llvm.smax.i32(i32 %65, i32 0)
  %76 = add nuw i32 %smax, 1
  %wide.trip.count = zext i32 %76 to i64
  %min.iters.check = icmp slt i32 %65, 7
  %or.cond128 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond128, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph69.split.us
  %n.vec = and i64 %wide.trip.count, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %77 = getelementptr inbounds i32, ptr %69, i64 %index
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %wide.load = load <4 x i32>, ptr %77, align 4, !tbaa !8
  %wide.load127 = load <4 x i32>, ptr %78, align 4, !tbaa !8
  %79 = getelementptr inbounds i32, ptr %71, i64 %index
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  store <4 x i32> %wide.load, ptr %79, align 4, !tbaa !8
  store <4 x i32> %wide.load127, ptr %80, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %81 = icmp eq i64 %index.next, %n.vec
  br i1 %81, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge70, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph69.split.us
  %indvars.iv95.ph = phi i64 [ 0, %.lr.ph69.split.us ], [ %n.vec, %middle.block ]
  %82 = zext nneg i32 %smax to i64
  %83 = add nuw nsw i64 %82, 1
  %84 = sub nsw i64 %82, %indvars.iv95.ph
  %xtraiter = and i64 %83, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv95.prol = phi i64 [ %indvars.iv.next96.prol, %scalar.ph.prol ], [ %indvars.iv95.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %85 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv95.prol
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %87 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv95.prol
  store i32 %86, ptr %87, align 4, !tbaa !8
  %indvars.iv.next96.prol = add nuw nsw i64 %indvars.iv95.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !19

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv95.unr = phi i64 [ %indvars.iv95.ph, %scalar.ph.preheader ], [ %indvars.iv.next96.prol, %scalar.ph.prol ]
  %88 = icmp ult i64 %84, 3
  br i1 %88, label %._crit_edge70, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv95 = phi i64 [ %indvars.iv.next96.3, %scalar.ph ], [ %indvars.iv95.unr, %scalar.ph.prol.loopexit ]
  %89 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv95
  %90 = load i32, ptr %89, align 4, !tbaa !8
  %91 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv95
  store i32 %90, ptr %91, align 4, !tbaa !8
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %92 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.next96
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %94 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next96
  store i32 %93, ptr %94, align 4, !tbaa !8
  %indvars.iv.next96.1 = add nuw nsw i64 %indvars.iv95, 2
  %95 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.next96.1
  %96 = load i32, ptr %95, align 4, !tbaa !8
  %97 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next96.1
  store i32 %96, ptr %97, align 4, !tbaa !8
  %indvars.iv.next96.2 = add nuw nsw i64 %indvars.iv95, 3
  %98 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv.next96.2
  %99 = load i32, ptr %98, align 4, !tbaa !8
  %100 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next96.2
  store i32 %99, ptr %100, align 4, !tbaa !8
  %indvars.iv.next96.3 = add nuw nsw i64 %indvars.iv95, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next96.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge70, label %scalar.ph, !llvm.loop !21

._crit_edge73:                                    ; preds = %._crit_edge70, %._crit_edge57, %.preheader53.thread
  %101 = phi i32 [ %43, %.preheader53.thread ], [ %43, %._crit_edge57 ], [ %113, %._crit_edge70 ]
  %.lcssa54 = phi i32 [ %40, %.preheader53.thread ], [ %40, %._crit_edge57 ], [ %112, %._crit_edge70 ]
  %102 = sext i32 %.lcssa54 to i64
  %103 = mul nsw i64 %102, %45
  %104 = getelementptr inbounds i32, ptr %47, i64 %103
  %105 = sext i32 %101 to i64
  %106 = getelementptr inbounds i32, ptr %104, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !8
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %107)
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.stackrestore.p0(ptr %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  %110 = add nuw nsw i32 %.04277, 1
  %111 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.04277, %111
  br i1 %.not.not, label %.lr.ph79, label %._crit_edge80, !llvm.loop !22

._crit_edge70.loopexit:                           ; preds = %._crit_edge65
  %.pre111 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge70

._crit_edge70:                                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %._crit_edge70.loopexit, %.preheader
  %112 = phi i32 [ %.pre111, %._crit_edge70.loopexit ], [ %63, %.preheader ], [ %63, %middle.block ], [ %63, %scalar.ph ], [ %63, %scalar.ph.prol.loopexit ]
  %113 = phi i32 [ %137, %._crit_edge70.loopexit ], [ %64, %.preheader ], [ %64, %middle.block ], [ %64, %scalar.ph ], [ %64, %scalar.ph.prol.loopexit ]
  %114 = phi i32 [ %137, %._crit_edge70.loopexit ], [ %65, %.preheader ], [ %65, %middle.block ], [ %65, %scalar.ph ], [ %65, %scalar.ph.prol.loopexit ]
  %115 = phi i32 [ %137, %._crit_edge70.loopexit ], [ %66, %.preheader ], [ %65, %middle.block ], [ %65, %scalar.ph ], [ %65, %scalar.ph.prol.loopexit ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %116 = sext i32 %112 to i64
  %.not49.not = icmp slt i64 %indvars.iv106, %116
  br i1 %.not49.not, label %.preheader, label %._crit_edge73, !llvm.loop !23

.lr.ph69.split:                                   ; preds = %.lr.ph69, %._crit_edge65
  %117 = phi i32 [ %137, %._crit_edge65 ], [ %64, %.lr.ph69 ]
  %118 = phi i32 [ %138, %._crit_edge65 ], [ %74, %.lr.ph69 ]
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %._crit_edge65 ], [ 0, %.lr.ph69 ]
  %119 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv103
  %120 = load i32, ptr %119, align 4, !tbaa !8
  %121 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv103
  store i32 %120, ptr %121, align 4, !tbaa !8
  %122 = icmp sgt i32 %118, 0
  br i1 %122, label %.lr.ph64.preheader, label %._crit_edge65

.lr.ph64.preheader:                               ; preds = %.lr.ph69.split
  %exitcond102124 = icmp eq i64 %indvars.iv103, 0
  br i1 %exitcond102124, label %._crit_edge65.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph64.preheader, %.lr.ph
  %indvars.iv98125 = phi i64 [ %indvars.iv.next99, %.lr.ph ], [ 0, %.lr.ph64.preheader ]
  %123 = xor i64 %indvars.iv98125, -1
  %124 = add nsw i64 %indvars.iv103, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  %125 = and i64 %124, 4294967295
  %126 = getelementptr inbounds i32, ptr %69, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !8
  %128 = getelementptr inbounds i32, ptr %73, i64 %indvars.iv98125
  %129 = load i32, ptr %128, align 4, !tbaa !8
  %130 = add nsw i32 %129, %127
  store i32 %130, ptr %5, align 4, !tbaa !8
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %121, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %132 = load i32, ptr %131, align 4, !tbaa !8
  store i32 %132, ptr %121, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98125, 1
  %133 = load i32, ptr %3, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = icmp sge i64 %indvars.iv.next99, %134
  %exitcond102 = icmp eq i64 %indvars.iv.next99, %indvars.iv103
  %or.cond129 = or i1 %135, %exitcond102
  br i1 %or.cond129, label %._crit_edge65.loopexit, label %.lr.ph, !llvm.loop !24

._crit_edge65.loopexit:                           ; preds = %.lr.ph, %.lr.ph64.preheader
  %136 = phi i32 [ %118, %.lr.ph64.preheader ], [ %133, %.lr.ph ]
  %.pre110 = load i32, ptr %4, align 4, !tbaa !8
  br label %._crit_edge65

._crit_edge65:                                    ; preds = %._crit_edge65.loopexit, %.lr.ph69.split
  %137 = phi i32 [ %.pre110, %._crit_edge65.loopexit ], [ %117, %.lr.ph69.split ]
  %138 = phi i32 [ %136, %._crit_edge65.loopexit ], [ %118, %.lr.ph69.split ]
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %139 = sext i32 %137 to i64
  %.not50.not = icmp slt i64 %indvars.iv103, %139
  br i1 %.not50.not, label %.lr.ph69.split, label %._crit_edge70.loopexit, !llvm.loop !25
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

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

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 #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 #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; 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 #7 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: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !12, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !12, !17}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12, !13}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12, !13}


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