; LLVM IR from abeaumont/competitive-programming :: kattis (statisticians)

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

@c = external dso_local global [10000001 x i32], align 16
@s = external dso_local global [141 x [121 x i32]], align 16
@_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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %28

28:                                               ; preds = %88, %0
  %29 = load i32, ptr %6, align 4, !tbaa !8
  %30 = sext i32 %29 to i64
  %31 = load i64, ptr %2, align 8, !tbaa !11
  %32 = icmp sle i64 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %91

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

35:                                               ; preds = %84, %34
  %36 = load i32, ptr %8, align 4, !tbaa !8
  %37 = sext i32 %36 to i64
  %38 = load i64, ptr %3, align 8, !tbaa !11
  %39 = icmp sle i64 %37, %38
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %35
  %42 = load i32, ptr %6, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %43
  %45 = load i32, ptr %8, align 4, !tbaa !8
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [121 x i32], ptr %44, i64 0, i64 %46
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %49 = load i32, ptr %6, align 4, !tbaa !8
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %51
  %53 = load i32, ptr %8, align 4, !tbaa !8
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [121 x i32], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !8
  %57 = load i32, ptr %6, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %58
  %60 = load i32, ptr %8, align 4, !tbaa !8
  %61 = sub nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [121 x i32], ptr %59, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !8
  %65 = add nsw i32 %56, %64
  %66 = load i32, ptr %6, align 4, !tbaa !8
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %68
  %70 = load i32, ptr %8, align 4, !tbaa !8
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [121 x i32], ptr %69, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !8
  %75 = sub nsw i32 %65, %74
  %76 = load i32, ptr %6, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %77
  %79 = load i32, ptr %8, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [121 x i32], ptr %78, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = add nsw i32 %82, %75
  store i32 %83, ptr %81, align 4, !tbaa !8
  br label %84

84:                                               ; preds = %41
  %85 = load i32, ptr %8, align 4, !tbaa !8
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %8, align 4, !tbaa !8
  br label %35, !llvm.loop !13

87:                                               ; preds = %40
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %6, align 4, !tbaa !8
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %6, align 4, !tbaa !8
  br label %28, !llvm.loop !15

91:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %92 = load i64, ptr %4, align 8, !tbaa !11
  %93 = sub nsw i64 %92, 1
  %94 = load i64, ptr %3, align 8, !tbaa !11
  %95 = sdiv i64 %93, %94
  %96 = add nsw i64 %95, 1
  %97 = trunc i64 %96 to i32
  store i32 %97, ptr %10, align 4, !tbaa !8
  br label %98

98:                                               ; preds = %217, %91
  %99 = load i32, ptr %10, align 4, !tbaa !8
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %102 = load i64, ptr %101, align 8, !tbaa !11
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %98
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %220

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %106 = load i64, ptr %4, align 8, !tbaa !11
  %107 = sub nsw i64 %106, 1
  %108 = load i32, ptr %10, align 4, !tbaa !8
  %109 = sext i32 %108 to i64
  %110 = sdiv i64 %107, %109
  %111 = add nsw i64 %110, 1
  %112 = trunc i64 %111 to i32
  store i32 %112, ptr %11, align 4, !tbaa !8
  br label %113

113:                                              ; preds = %213, %105
  %114 = load i32, ptr %11, align 4, !tbaa !8
  %115 = sext i32 %114 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %116 = load i64, ptr %5, align 8, !tbaa !11
  %117 = load i32, ptr %10, align 4, !tbaa !8
  %118 = sext i32 %117 to i64
  %119 = sdiv i64 %116, %118
  store i64 %119, ptr %12, align 8, !tbaa !11
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %121 = load i64, ptr %120, align 8, !tbaa !11
  %122 = icmp sle i64 %115, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br i1 %122, label %124, label %123

123:                                              ; preds = %113
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %216

124:                                              ; preds = %113
  %125 = load i64, ptr %2, align 8, !tbaa !11
  %126 = load i32, ptr %10, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = sub nsw i64 %125, %127
  %129 = add nsw i64 %128, 1
  %130 = load i64, ptr %3, align 8, !tbaa !11
  %131 = load i32, ptr %11, align 4, !tbaa !8
  %132 = sext i32 %131 to i64
  %133 = sub nsw i64 %130, %132
  %134 = add nsw i64 %133, 1
  %135 = mul nsw i64 %129, %134
  %136 = load i64, ptr %9, align 8, !tbaa !11
  %137 = add nsw i64 %136, %135
  store i64 %137, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %138

138:                                              ; preds = %209, %124
  %139 = load i32, ptr %13, align 4, !tbaa !8
  %140 = load i32, ptr %10, align 4, !tbaa !8
  %141 = add nsw i32 %139, %140
  %142 = sext i32 %141 to i64
  %143 = load i64, ptr %2, align 8, !tbaa !11
  %144 = icmp sle i64 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %138
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %212

146:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %147

147:                                              ; preds = %205, %146
  %148 = load i32, ptr %14, align 4, !tbaa !8
  %149 = load i32, ptr %11, align 4, !tbaa !8
  %150 = add nsw i32 %148, %149
  %151 = sext i32 %150 to i64
  %152 = load i64, ptr %3, align 8, !tbaa !11
  %153 = icmp sle i64 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %147
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %208

155:                                              ; preds = %147
  %156 = load i32, ptr %13, align 4, !tbaa !8
  %157 = load i32, ptr %10, align 4, !tbaa !8
  %158 = add nsw i32 %156, %157
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %159
  %161 = load i32, ptr %14, align 4, !tbaa !8
  %162 = load i32, ptr %11, align 4, !tbaa !8
  %163 = add nsw i32 %161, %162
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [121 x i32], ptr %160, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !8
  %167 = load i32, ptr %13, align 4, !tbaa !8
  %168 = load i32, ptr %10, align 4, !tbaa !8
  %169 = add nsw i32 %167, %168
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %170
  %172 = load i32, ptr %14, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [121 x i32], ptr %171, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !8
  %176 = sub nsw i32 %166, %175
  %177 = load i32, ptr %13, align 4, !tbaa !8
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %178
  %180 = load i32, ptr %14, align 4, !tbaa !8
  %181 = load i32, ptr %11, align 4, !tbaa !8
  %182 = add nsw i32 %180, %181
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [121 x i32], ptr %179, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !8
  %186 = sub nsw i32 %176, %185
  %187 = load i32, ptr %13, align 4, !tbaa !8
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %188
  %190 = load i32, ptr %14, align 4, !tbaa !8
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [121 x i32], ptr %189, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !8
  %194 = add nsw i32 %186, %193
  %195 = sext i32 %194 to i64
  %196 = mul nsw i64 %195, 1000
  %197 = load i32, ptr %10, align 4, !tbaa !8
  %198 = load i32, ptr %11, align 4, !tbaa !8
  %199 = mul nsw i32 %197, %198
  %200 = sext i32 %199 to i64
  %201 = sdiv i64 %196, %200
  %202 = getelementptr inbounds [10000001 x i32], ptr @c, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !8
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %202, align 4, !tbaa !8
  br label %205

205:                                              ; preds = %155
  %206 = load i32, ptr %14, align 4, !tbaa !8
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %14, align 4, !tbaa !8
  br label %147, !llvm.loop !16

208:                                              ; preds = %154
  br label %209

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

212:                                              ; preds = %145
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %11, align 4, !tbaa !8
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %11, align 4, !tbaa !8
  br label %113, !llvm.loop !18

216:                                              ; preds = %123
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %10, align 4, !tbaa !8
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %10, align 4, !tbaa !8
  br label %98, !llvm.loop !19

220:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %221 = load i64, ptr %9, align 8, !tbaa !11
  %222 = sdiv i64 %221, 2
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %16, align 8, !tbaa !11
  store i64 -1, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %224

224:                                              ; preds = %254, %220
  %225 = load i32, ptr %17, align 4, !tbaa !8
  %226 = icmp sle i32 %225, 10000000
  br i1 %226, label %228, label %227

227:                                              ; preds = %224
  store i32 20, ptr %7, align 4
  br label %257

228:                                              ; preds = %224
  %229 = load i32, ptr %17, align 4, !tbaa !8
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [10000001 x i32], ptr @c, i64 0, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !8
  %233 = sext i32 %232 to i64
  %234 = load i64, ptr %15, align 8, !tbaa !11
  %235 = add nsw i64 %234, %233
  store i64 %235, ptr %15, align 8, !tbaa !11
  %236 = load i64, ptr %15, align 8, !tbaa !11
  %237 = load i64, ptr %16, align 8, !tbaa !11
  %238 = sub nsw i64 %237, 1
  %239 = icmp sge i64 %236, %238
  br i1 %239, label %240, label %246

240:                                              ; preds = %228
  %241 = load i64, ptr %4, align 8, !tbaa !11
  %242 = icmp slt i64 %241, 0
  br i1 %242, label %243, label %246

243:                                              ; preds = %240
  %244 = load i32, ptr %17, align 4, !tbaa !8
  %245 = sext i32 %244 to i64
  store i64 %245, ptr %4, align 8, !tbaa !11
  br label %246

246:                                              ; preds = %243, %240, %228
  %247 = load i64, ptr %15, align 8, !tbaa !11
  %248 = load i64, ptr %16, align 8, !tbaa !11
  %249 = icmp sge i64 %247, %248
  br i1 %249, label %250, label %253

250:                                              ; preds = %246
  %251 = load i32, ptr %17, align 4, !tbaa !8
  %252 = sext i32 %251 to i64
  store i64 %252, ptr %5, align 8, !tbaa !11
  store i32 20, ptr %7, align 4
  br label %257

253:                                              ; preds = %246
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %17, align 4, !tbaa !8
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %17, align 4, !tbaa !8
  br label %224, !llvm.loop !20

257:                                              ; preds = %250, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %258

258:                                              ; preds = %257
  %259 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %260 = load i64, ptr %9, align 8, !tbaa !11
  %261 = and i64 %260, 1
  %262 = icmp ne i64 %261, 0
  br i1 %262, label %263, label %270

263:                                              ; preds = %258
  %264 = load i64, ptr %5, align 8, !tbaa !11
  %265 = sitofp i64 %264 to double
  %266 = fadd double %265, 5.000000e-01
  %267 = fdiv double %266, 1.000000e+03
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %267)
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %268, i8 noundef signext 10)
  br label %279

270:                                              ; preds = %258
  %271 = load i64, ptr %4, align 8, !tbaa !11
  %272 = load i64, ptr %5, align 8, !tbaa !11
  %273 = add nsw i64 %271, %272
  %274 = sitofp i64 %273 to double
  %275 = fadd double %274, 5.000000e-01
  %276 = fdiv double %275, 2.000000e+03
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %276)
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %277, i8 noundef signext 10)
  br label %279

279:                                              ; preds = %270, %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %280 = load i32, ptr %1, align 4
  ret i32 %280
}

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #4 align 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 = { 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 #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 willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 #6 = { 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 #7 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

@c = external dso_local local_unnamed_addr global [10000001 x i32], align 16
@s = external dso_local global [141 x [121 x i32]], align 16
@_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 i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %16 = load i64, ptr %1, align 8, !tbaa !8
  %.not89 = icmp slt i64 %16, 1
  %.pre138 = load i64, ptr %2, align 8, !tbaa !8
  %17 = icmp slt i64 %.pre138, 1
  %or.cond142 = select i1 %.not89, i1 true, i1 %17
  br i1 %or.cond142, label %._crit_edge91, label %.preheader86

.preheader86:                                     ; preds = %0, %._crit_edge
  %18 = phi i64 [ %29, %._crit_edge ], [ %16, %0 ]
  %19 = phi i64 [ %30, %._crit_edge ], [ %.pre138, %0 ]
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %._crit_edge ], [ 1, %0 ]
  %.not7887 = icmp slt i64 %19, 1
  br i1 %.not7887, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader86
  %20 = add nsw i64 %indvars.iv120, -1
  br label %31

._crit_edge91:                                    ; preds = %._crit_edge, %0
  %21 = phi i64 [ %.pre138, %0 ], [ %30, %._crit_edge ]
  %22 = load i64, ptr %3, align 8, !tbaa !8
  %23 = add nsw i64 %22, -1
  %24 = sdiv i64 %23, %21
  %25 = trunc i64 %24 to i32
  %.062104 = add i32 %25, 1
  %26 = sext i32 %.062104 to i64
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %28 = load i64, ptr %27, align 8, !tbaa !8
  %.not72105 = icmp slt i64 %28, %26
  br i1 %.not72105, label %._crit_edge110, label %.lr.ph109

._crit_edge.loopexit:                             ; preds = %31
  %.pre = load i64, ptr %1, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader86
  %29 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %18, %.preheader86 ]
  %30 = phi i64 [ %45, %._crit_edge.loopexit ], [ %19, %.preheader86 ]
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %.not.not = icmp sgt i64 %29, %indvars.iv120
  br i1 %.not.not, label %.preheader86, label %._crit_edge91, !llvm.loop !11

31:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %32 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %indvars.iv120, i64 %indvars.iv
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %34 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %20, i64 %indvars.iv
  %35 = load i32, ptr %34, align 4, !tbaa !14
  %36 = add nsw i64 %indvars.iv, -1
  %37 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %indvars.iv120, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = add nsw i32 %38, %35
  %40 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %20, i64 %36
  %41 = load i32, ptr %40, align 4, !tbaa !14
  %42 = sub i32 %39, %41
  %43 = load i32, ptr %32, align 4, !tbaa !14
  %44 = add nsw i32 %42, %43
  store i32 %44, ptr %32, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = load i64, ptr %2, align 8, !tbaa !8
  %.not78.not = icmp sgt i64 %45, %indvars.iv
  br i1 %.not78.not, label %31, label %._crit_edge.loopexit, !llvm.loop !16

.loopexit85:                                      ; preds = %.loopexit84, %.lr.ph109
  %.1.lcssa = phi i64 [ %.063106, %.lr.ph109 ], [ %73, %.loopexit84 ]
  %.062 = add i32 %.062107, 1
  %46 = sext i32 %.062 to i64
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %48 = load i64, ptr %47, align 8, !tbaa !8
  %.not72 = icmp slt i64 %48, %46
  br i1 %.not72, label %._crit_edge110, label %.lr.ph109, !llvm.loop !17

._crit_edge110:                                   ; preds = %.loopexit85, %._crit_edge91
  %.063.lcssa = phi i64 [ 0, %._crit_edge91 ], [ %.1.lcssa, %.loopexit85 ]
  %49 = sdiv i64 %.063.lcssa, 2
  store i64 -1, ptr %3, align 8, !tbaa !8
  br label %111

.lr.ph109:                                        ; preds = %._crit_edge91, %.loopexit85
  %50 = phi i64 [ %46, %.loopexit85 ], [ %26, %._crit_edge91 ]
  %.062107 = phi i32 [ %.062, %.loopexit85 ], [ %.062104, %._crit_edge91 ]
  %.063106 = phi i64 [ %.1.lcssa, %.loopexit85 ], [ 0, %._crit_edge91 ]
  %51 = load i64, ptr %3, align 8, !tbaa !8
  %52 = add nsw i64 %51, -1
  %53 = sdiv i64 %52, %50
  %54 = trunc i64 %53 to i32
  %.06198 = add i32 %54, 1
  %55 = sext i32 %.06198 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %56 = load i64, ptr %4, align 8, !tbaa !8
  %57 = sdiv i64 %56, %50
  store i64 %57, ptr %5, align 8, !tbaa !8
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %59 = load i64, ptr %58, align 8, !tbaa !8
  %.not7599 = icmp slt i64 %59, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %.not7599, label %.loopexit85, label %.lr.ph103

.lr.ph103:                                        ; preds = %.lr.ph109
  %60 = sext i32 %.062107 to i64
  br label %66

.loopexit84:                                      ; preds = %._crit_edge95, %.preheader.lr.ph, %66
  %.061 = add i32 %.061101, 1
  %61 = sext i32 %.061 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %62 = load i64, ptr %4, align 8, !tbaa !8
  %63 = sdiv i64 %62, %50
  store i64 %63, ptr %5, align 8, !tbaa !8
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %65 = load i64, ptr %64, align 8, !tbaa !8
  %.not75 = icmp slt i64 %65, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %.not75, label %.loopexit85, label %66, !llvm.loop !18

66:                                               ; preds = %.lr.ph103, %.loopexit84
  %67 = phi i64 [ %55, %.lr.ph103 ], [ %61, %.loopexit84 ]
  %.061101 = phi i32 [ %.06198, %.lr.ph103 ], [ %.061, %.loopexit84 ]
  %.1100 = phi i64 [ %.063106, %.lr.ph103 ], [ %73, %.loopexit84 ]
  %68 = load i64, ptr %1, align 8, !tbaa !8
  %reass.sub = sub i64 %68, %50
  %69 = add i64 %reass.sub, 1
  %70 = load i64, ptr %2, align 8, !tbaa !8
  %reass.sub114 = sub i64 %70, %67
  %71 = add i64 %reass.sub114, 1
  %72 = mul nsw i64 %71, %69
  %73 = add nsw i64 %72, %.1100
  %.not7696 = icmp slt i64 %68, %60
  br i1 %.not7696, label %.loopexit84, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %66
  %74 = sext i32 %.061101 to i64
  %.not7792 = icmp slt i64 %70, %74
  %75 = mul nsw i32 %.061101, %.062107
  %76 = sext i32 %75 to i64
  br i1 %.not7792, label %.loopexit84, label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge95
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge95 ], [ 0, %.preheader.lr.ph ]
  %77 = add nsw i64 %indvars.iv129, %60
  br label %79

._crit_edge95:                                    ; preds = %79
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %78 = add nsw i64 %indvars.iv.next130, %60
  %.not76 = icmp slt i64 %68, %78
  br i1 %.not76, label %.loopexit84, label %.preheader, !llvm.loop !19

79:                                               ; preds = %.preheader, %79
  %indvars.iv126 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next127, %79 ]
  %80 = add nsw i64 %indvars.iv126, %74
  %81 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %77, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !14
  %83 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %77, i64 %indvars.iv126
  %84 = load i32, ptr %83, align 4, !tbaa !14
  %85 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %indvars.iv129, i64 %80
  %86 = load i32, ptr %85, align 4, !tbaa !14
  %87 = getelementptr inbounds [141 x [121 x i32]], ptr @s, i64 0, i64 %indvars.iv129, i64 %indvars.iv126
  %88 = load i32, ptr %87, align 4, !tbaa !14
  %89 = add i32 %84, %86
  %90 = sub i32 %82, %89
  %91 = add nsw i32 %90, %88
  %92 = sext i32 %91 to i64
  %93 = mul nsw i64 %92, 1000
  %94 = sdiv i64 %93, %76
  %95 = getelementptr inbounds [10000001 x i32], ptr @c, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !14
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %95, align 4, !tbaa !14
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %98 = add nsw i64 %indvars.iv.next127, %74
  %.not77 = icmp slt i64 %70, %98
  br i1 %.not77, label %._crit_edge95, label %79, !llvm.loop !20

99:                                               ; preds = %120
  %indvars.iv.next136 = or disjoint i64 %indvars.iv135, 1
  %exitcond.not = icmp eq i64 %indvars.iv135, 10000000
  br i1 %exitcond.not, label %.loopexit, label %100, !llvm.loop !21

100:                                              ; preds = %99
  %101 = getelementptr inbounds [10000001 x i32], ptr @c, i64 0, i64 %indvars.iv.next136
  %102 = load i32, ptr %101, align 4, !tbaa !14
  %103 = sext i32 %102 to i64
  %104 = add nsw i64 %116, %103
  %105 = icmp sge i64 %104, %49
  %106 = icmp slt i64 %121, 0
  %or.cond.1 = select i1 %105, i1 %106, i1 false
  br i1 %or.cond.1, label %107, label %108

107:                                              ; preds = %100
  store i64 %indvars.iv.next136, ptr %3, align 8, !tbaa !8
  br label %108

108:                                              ; preds = %107, %100
  %109 = phi i64 [ %indvars.iv.next136, %107 ], [ %121, %100 ]
  %.not73.not.1 = icmp sgt i64 %104, %49
  br i1 %.not73.not.1, label %122, label %110

110:                                              ; preds = %108
  %indvars.iv.next136.1 = add nuw nsw i64 %indvars.iv135, 2
  br label %111

111:                                              ; preds = %110, %._crit_edge110
  %indvars.iv135 = phi i64 [ 0, %._crit_edge110 ], [ %indvars.iv.next136.1, %110 ]
  %.058112 = phi i64 [ 0, %._crit_edge110 ], [ %104, %110 ]
  %112 = phi i64 [ -1, %._crit_edge110 ], [ %109, %110 ]
  %113 = getelementptr inbounds [10000001 x i32], ptr @c, i64 0, i64 %indvars.iv135
  %114 = load i32, ptr %113, align 8, !tbaa !14
  %115 = sext i32 %114 to i64
  %116 = add nsw i64 %.058112, %115
  %117 = icmp sge i64 %116, %49
  %118 = icmp slt i64 %112, 0
  %or.cond = select i1 %117, i1 %118, i1 false
  br i1 %or.cond, label %119, label %120

119:                                              ; preds = %111
  store i64 %indvars.iv135, ptr %3, align 8, !tbaa !8
  br label %120

120:                                              ; preds = %119, %111
  %121 = phi i64 [ %indvars.iv135, %119 ], [ %112, %111 ]
  %.not73.not = icmp sgt i64 %116, %49
  br i1 %.not73.not, label %122, label %99

122:                                              ; preds = %108, %120
  %indvars.iv135.lcssa = phi i64 [ %indvars.iv135, %120 ], [ %indvars.iv.next136, %108 ]
  store i64 %indvars.iv135.lcssa, ptr %4, align 8, !tbaa !8
  br label %.loopexit

.loopexit:                                        ; preds = %99, %122
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %124 = and i64 %.063.lcssa, 1
  %.not74 = icmp eq i64 %124, 0
  %125 = load i64, ptr %3, align 8
  %126 = load i64, ptr %4, align 8
  %127 = select i1 %.not74, i64 %125, i64 0
  %.sink = add nsw i64 %126, %127
  %.sink144 = select i1 %.not74, double 2.000000e+03, double 1.000000e+03
  %128 = sitofp i64 %.sink to double
  %129 = fadd double %128, 5.000000e-01
  %130 = fdiv double %129, %.sink144
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %130)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %131, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

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

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) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #4 align 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 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 #6 = { 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 #7 = { 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 = !{!"long long", !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 = !{!15, !15, i64 0}
!15 = !{!"int", !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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