; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/BACKPACK (back2)

; 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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [60 x [4 x i32]], align 16
  %6 = alloca [60 x [4 x i32]], align 16
  %7 = alloca [60 x i32], align 16
  %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 [3201 x [61 x i16]], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %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) %2)
  br label %24

24:                                               ; preds = %328, %0
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %2, align 4, !tbaa !5
  %27 = icmp ne i32 %25, 0
  br i1 %27, label %28, label %340

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sdiv i32 %31, 10
  store i32 %32, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 960, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 960, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 240, ptr %7) #7
  %33 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 960, i1 false)
  %34 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %34, i8 0, i64 960, i1 false)
  %35 = getelementptr inbounds [60 x i32], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %35, i8 0, i64 240, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %36

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

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %94

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = sdiv i32 %45, 10
  store i32 %46, ptr %9, align 4, !tbaa !5
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %62, label %49

49:                                               ; preds = %41
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %52
  %54 = getelementptr inbounds [4 x i32], ptr %53, i64 0, i64 0
  store i32 %50, ptr %54, align 16, !tbaa !5
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = mul nsw i32 %55, %56
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %59
  %61 = getelementptr inbounds [4 x i32], ptr %60, i64 0, i64 0
  store i32 %57, ptr %61, align 16, !tbaa !5
  br label %90

62:                                               ; preds = %41
  %63 = load i32, ptr %11, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [60 x i32], ptr %7, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %70
  %72 = load i32, ptr %11, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [60 x i32], ptr %7, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [4 x i32], ptr %71, i64 0, i64 %76
  store i32 %68, ptr %77, align 4, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = load i32, ptr %10, align 4, !tbaa !5
  %80 = mul nsw i32 %78, %79
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %82
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [60 x i32], ptr %7, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [4 x i32], ptr %83, i64 0, i64 %88
  store i32 %80, ptr %89, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %62, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %8, align 4, !tbaa !5
  br label %36, !llvm.loop !9

94:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %203, %94
  %96 = load i32, ptr %12, align 4, !tbaa !5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %206

100:                                              ; preds = %95
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %102
  %104 = getelementptr inbounds [4 x i32], ptr %103, i64 0, i64 0
  %105 = load i32, ptr %104, align 16, !tbaa !5
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %107
  %109 = getelementptr inbounds [4 x i32], ptr %108, i64 0, i64 1
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %105, %110
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %113
  %115 = getelementptr inbounds [4 x i32], ptr %114, i64 0, i64 2
  %116 = load i32, ptr %115, align 8, !tbaa !5
  %117 = add nsw i32 %111, %116
  %118 = load i32, ptr %12, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %119
  %121 = getelementptr inbounds [4 x i32], ptr %120, i64 0, i64 3
  store i32 %117, ptr %121, align 4, !tbaa !5
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %123
  %125 = getelementptr inbounds [4 x i32], ptr %124, i64 0, i64 0
  %126 = load i32, ptr %125, align 16, !tbaa !5
  %127 = load i32, ptr %12, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %128
  %130 = getelementptr inbounds [4 x i32], ptr %129, i64 0, i64 1
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = add nsw i32 %126, %131
  %133 = load i32, ptr %12, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %134
  %136 = getelementptr inbounds [4 x i32], ptr %135, i64 0, i64 2
  %137 = load i32, ptr %136, align 8, !tbaa !5
  %138 = add nsw i32 %132, %137
  %139 = load i32, ptr %12, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %140
  %142 = getelementptr inbounds [4 x i32], ptr %141, i64 0, i64 3
  store i32 %138, ptr %142, align 4, !tbaa !5
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %144
  %146 = getelementptr inbounds [4 x i32], ptr %145, i64 0, i64 0
  %147 = load i32, ptr %146, align 16, !tbaa !5
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %149
  %151 = getelementptr inbounds [4 x i32], ptr %150, i64 0, i64 1
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = add nsw i32 %147, %152
  %154 = load i32, ptr %12, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %155
  %157 = getelementptr inbounds [4 x i32], ptr %156, i64 0, i64 1
  store i32 %153, ptr %157, align 4, !tbaa !5
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %159
  %161 = getelementptr inbounds [4 x i32], ptr %160, i64 0, i64 0
  %162 = load i32, ptr %161, align 16, !tbaa !5
  %163 = load i32, ptr %12, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %164
  %166 = getelementptr inbounds [4 x i32], ptr %165, i64 0, i64 1
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %162, %167
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %170
  %172 = getelementptr inbounds [4 x i32], ptr %171, i64 0, i64 1
  store i32 %168, ptr %172, align 4, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %174
  %176 = getelementptr inbounds [4 x i32], ptr %175, i64 0, i64 0
  %177 = load i32, ptr %176, align 16, !tbaa !5
  %178 = load i32, ptr %12, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %179
  %181 = getelementptr inbounds [4 x i32], ptr %180, i64 0, i64 2
  %182 = load i32, ptr %181, align 8, !tbaa !5
  %183 = add nsw i32 %177, %182
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %185
  %187 = getelementptr inbounds [4 x i32], ptr %186, i64 0, i64 2
  store i32 %183, ptr %187, align 8, !tbaa !5
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %189
  %191 = getelementptr inbounds [4 x i32], ptr %190, i64 0, i64 0
  %192 = load i32, ptr %191, align 16, !tbaa !5
  %193 = load i32, ptr %12, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %194
  %196 = getelementptr inbounds [4 x i32], ptr %195, i64 0, i64 2
  %197 = load i32, ptr %196, align 8, !tbaa !5
  %198 = add nsw i32 %192, %197
  %199 = load i32, ptr %12, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %200
  %202 = getelementptr inbounds [4 x i32], ptr %201, i64 0, i64 2
  store i32 %198, ptr %202, align 8, !tbaa !5
  br label %203

203:                                              ; preds = %100
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %12, align 4, !tbaa !5
  br label %95, !llvm.loop !11

206:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 390522, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %217, %206
  %208 = load i32, ptr %14, align 4, !tbaa !5
  %209 = load i32, ptr %3, align 4, !tbaa !5
  %210 = icmp sle i32 %208, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %220

212:                                              ; preds = %207
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 %214
  %216 = getelementptr inbounds [61 x i16], ptr %215, i64 0, i64 0
  store i16 0, ptr %216, align 2, !tbaa !12
  br label %217

217:                                              ; preds = %212
  %218 = load i32, ptr %14, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %14, align 4, !tbaa !5
  br label %207, !llvm.loop !14

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

221:                                              ; preds = %231, %220
  %222 = load i32, ptr %15, align 4, !tbaa !5
  %223 = load i32, ptr %4, align 4, !tbaa !5
  %224 = icmp sle i32 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %234

226:                                              ; preds = %221
  %227 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 0
  %228 = load i32, ptr %15, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [61 x i16], ptr %227, i64 0, i64 %229
  store i16 0, ptr %230, align 2, !tbaa !12
  br label %231

231:                                              ; preds = %226
  %232 = load i32, ptr %15, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %15, align 4, !tbaa !5
  br label %221, !llvm.loop !15

234:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %325, %234
  %236 = load i32, ptr %16, align 4, !tbaa !5
  %237 = load i32, ptr %3, align 4, !tbaa !5
  %238 = icmp sle i32 %236, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %235
  store i32 16, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %328

240:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %241

241:                                              ; preds = %321, %240
  %242 = load i32, ptr %18, align 4, !tbaa !5
  %243 = load i32, ptr %4, align 4, !tbaa !5
  %244 = icmp sle i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 19, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %324

246:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %247 = load i32, ptr %16, align 4, !tbaa !5
  %248 = sub nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 %249
  %251 = load i32, ptr %18, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [61 x i16], ptr %250, i64 0, i64 %252
  %254 = load i32, ptr %16, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 %255
  %257 = load i32, ptr %18, align 4, !tbaa !5
  %258 = sub nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [61 x i16], ptr %256, i64 0, i64 %259
  %261 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %253, ptr noundef nonnull align 2 dereferenceable(2) %260)
  %262 = load i16, ptr %261, align 2, !tbaa !12
  %263 = sext i16 %262 to i32
  store i32 %263, ptr %19, align 4, !tbaa !5
  %264 = load i32, ptr %18, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %265
  %267 = getelementptr inbounds [4 x i32], ptr %266, i64 0, i64 0
  %268 = load i32, ptr %267, align 16, !tbaa !5
  %269 = icmp sgt i32 %268, 0
  br i1 %269, label %270, label %312

270:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %271

271:                                              ; preds = %308, %270
  %272 = load i32, ptr %20, align 4, !tbaa !5
  %273 = icmp slt i32 %272, 4
  br i1 %273, label %275, label %274

274:                                              ; preds = %271
  store i32 22, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %311

275:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %276 = load i32, ptr %16, align 4, !tbaa !5
  %277 = load i32, ptr %18, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %278
  %280 = load i32, ptr %20, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [4 x i32], ptr %279, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %284 = sub nsw i32 %276, %283
  store i32 %284, ptr %21, align 4, !tbaa !5
  %285 = load i32, ptr %21, align 4, !tbaa !5
  %286 = icmp sge i32 %285, 0
  br i1 %286, label %287, label %307

287:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %288 = load i32, ptr %21, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 %289
  %291 = load i32, ptr %18, align 4, !tbaa !5
  %292 = sub nsw i32 %291, 1
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [61 x i16], ptr %290, i64 0, i64 %293
  %295 = load i16, ptr %294, align 2, !tbaa !12
  %296 = sext i16 %295 to i32
  %297 = load i32, ptr %18, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [60 x [4 x i32]], ptr %6, i64 0, i64 %298
  %300 = load i32, ptr %20, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [4 x i32], ptr %299, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = add nsw i32 %296, %303
  store i32 %304, ptr %22, align 4, !tbaa !5
  %305 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %306 = load i32, ptr %305, align 4, !tbaa !5
  store i32 %306, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %307

307:                                              ; preds = %287, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %308

308:                                              ; preds = %307
  %309 = load i32, ptr %20, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %20, align 4, !tbaa !5
  br label %271, !llvm.loop !16

311:                                              ; preds = %274
  br label %312

312:                                              ; preds = %311, %246
  %313 = load i32, ptr %19, align 4, !tbaa !5
  %314 = trunc i32 %313 to i16
  %315 = load i32, ptr %16, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 %316
  %318 = load i32, ptr %18, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [61 x i16], ptr %317, i64 0, i64 %319
  store i16 %314, ptr %320, align 2, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %321

321:                                              ; preds = %312
  %322 = load i32, ptr %18, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %18, align 4, !tbaa !5
  br label %241, !llvm.loop !17

324:                                              ; preds = %245
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %16, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %16, align 4, !tbaa !5
  br label %235, !llvm.loop !18

328:                                              ; preds = %239
  %329 = load i32, ptr %3, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [3201 x [61 x i16]], ptr %13, i64 0, i64 %330
  %332 = load i32, ptr %4, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [61 x i16], ptr %331, i64 0, i64 %333
  %335 = load i16, ptr %334, align 2, !tbaa !12
  %336 = sext i16 %335 to i32
  %337 = mul nsw i32 %336, 10
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %337)
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 390522, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 240, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 960, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 960, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %24, !llvm.loop !19

340:                                              ; preds = %24
  store i32 0, ptr %1, align 4
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %341 = load i32, ptr %1, align 4
  ret i32 %341
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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) #5 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)) #6

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #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 = !{!"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 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !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 i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [60 x [4 x i32]], align 16
  %5 = alloca [60 x [4 x i32]], align 16
  %6 = alloca [60 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [3201 x [61 x i16]], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %13 = 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)
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr %1, align 4, !tbaa !5
  %.not96 = icmp eq i32 %14, 0
  br i1 %.not96, label %._crit_edge99, label %.lr.ph98

.lr.ph98:                                         ; preds = %0, %._crit_edge94
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %16 = 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)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = sdiv i32 %18, 10
  store i32 %19, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 960, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 960, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %6) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(960) %4, i8 0, i64 960, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(960) %5, i8 0, i64 960, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(240) %6, i8 0, i64 240, i1 false)
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %.not6375 = icmp slt i32 %20, 1
  br i1 %.not6375, label %.preheader73, label %.lr.ph

.preheader73:                                     ; preds = %44, %.lr.ph98
  %21 = phi i32 [ %20, %.lr.ph98 ], [ %45, %44 ]
  %.not6477 = icmp slt i32 %21, 0
  br i1 %.not6477, label %._crit_edge, label %.lr.ph79.preheader

.lr.ph79.preheader:                               ; preds = %.preheader73
  %22 = add nuw i32 %21, 1
  %wide.trip.count = zext i32 %22 to i64
  br label %.lr.ph79

.lr.ph:                                           ; preds = %.lr.ph98, %44
  %indvars.iv = phi i64 [ %indvars.iv.next, %44 ], [ 1, %.lr.ph98 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %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) %7)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = sdiv i32 %26, 10
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %.not69 = icmp eq i32 %28, 0
  br i1 %.not69, label %29, label %34

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %indvars.iv
  store i32 %27, ptr %30, align 16, !tbaa !5
  %31 = load i32, ptr %8, align 4, !tbaa !5
  %32 = mul nsw i32 %31, %27
  %33 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %indvars.iv
  store i32 %32, ptr %33, align 16, !tbaa !5
  br label %44

34:                                               ; preds = %.lr.ph
  %35 = sext i32 %28 to i64
  %36 = getelementptr inbounds [60 x i32], ptr %6, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %35, i64 %39
  store i32 %27, ptr %40, align 4, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = mul nsw i32 %41, %27
  %43 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %35, i64 %39
  store i32 %42, ptr %43, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %34, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %.not63.not = icmp slt i64 %indvars.iv, %46
  br i1 %.not63.not, label %.lr.ph, label %.preheader73, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph79, %.preheader73
  call void @llvm.lifetime.start.p0(i64 390522, ptr nonnull %10) #7
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %.not6580 = icmp slt i32 %47, 0
  br i1 %.not6580, label %.preheader72, label %.lr.ph83.preheader

.lr.ph83.preheader:                               ; preds = %._crit_edge
  %48 = add nuw i32 %47, 1
  %wide.trip.count110 = zext i32 %48 to i64
  %xtraiter = and i64 %wide.trip.count110, 3
  %49 = icmp ult i32 %47, 3
  br i1 %49, label %.preheader72.loopexit.unr-lcssa, label %.lr.ph83.preheader.new

.lr.ph83.preheader.new:                           ; preds = %.lr.ph83.preheader
  %unroll_iter = and i64 %wide.trip.count110, 4294967292
  br label %.lr.ph83

.lr.ph79:                                         ; preds = %.lr.ph79.preheader, %.lr.ph79
  %indvars.iv104 = phi i64 [ 0, %.lr.ph79.preheader ], [ %indvars.iv.next105, %.lr.ph79 ]
  %50 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %indvars.iv104
  %51 = load i32, ptr %50, align 16, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %50, i64 4
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %53, %51
  %55 = getelementptr inbounds i8, ptr %50, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !5
  %57 = add nsw i32 %54, %56
  %58 = getelementptr inbounds i8, ptr %50, i64 12
  store i32 %57, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %indvars.iv104
  %60 = load i32, ptr %59, align 16, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %59, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i32 %62, %60
  %64 = getelementptr inbounds i8, ptr %59, i64 8
  %65 = load i32, ptr %64, align 8, !tbaa !5
  %66 = add nsw i32 %63, %65
  %67 = getelementptr inbounds i8, ptr %59, i64 12
  store i32 %66, ptr %67, align 4, !tbaa !5
  store i32 %54, ptr %52, align 4, !tbaa !5
  store i32 %63, ptr %61, align 4, !tbaa !5
  %68 = add nsw i32 %56, %51
  store i32 %68, ptr %55, align 8, !tbaa !5
  %69 = add nsw i32 %65, %60
  store i32 %69, ptr %64, align 8, !tbaa !5
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next105, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph79, !llvm.loop !11

.preheader72.loopexit.unr-lcssa:                  ; preds = %.lr.ph83, %.lr.ph83.preheader
  %indvars.iv107.unr = phi i64 [ 0, %.lr.ph83.preheader ], [ %indvars.iv.next108.3, %.lr.ph83 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader72, label %.lr.ph83.epil

.lr.ph83.epil:                                    ; preds = %.preheader72.loopexit.unr-lcssa, %.lr.ph83.epil
  %indvars.iv107.epil = phi i64 [ %indvars.iv.next108.epil, %.lr.ph83.epil ], [ %indvars.iv107.unr, %.preheader72.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph83.epil ], [ 0, %.preheader72.loopexit.unr-lcssa ]
  %70 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv107.epil
  store i16 0, ptr %70, align 2, !tbaa !12
  %indvars.iv.next108.epil = add nuw nsw i64 %indvars.iv107.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 %.preheader72, label %.lr.ph83.epil, !llvm.loop !14

.preheader72:                                     ; preds = %.preheader72.loopexit.unr-lcssa, %.lr.ph83.epil, %._crit_edge
  br i1 %.not6477, label %.preheader71, label %.lr.ph86.preheader

.lr.ph86.preheader:                               ; preds = %.preheader72
  %71 = add nuw i32 %21, 1
  %72 = zext i32 %71 to i64
  %73 = shl nuw nsw i64 %72, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %10, i8 0, i64 %73, i1 false), !tbaa !12
  br label %.preheader71

.lr.ph83:                                         ; preds = %.lr.ph83, %.lr.ph83.preheader.new
  %indvars.iv107 = phi i64 [ 0, %.lr.ph83.preheader.new ], [ %indvars.iv.next108.3, %.lr.ph83 ]
  %niter = phi i64 [ 0, %.lr.ph83.preheader.new ], [ %niter.next.3, %.lr.ph83 ]
  %74 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv107
  store i16 0, ptr %74, align 8, !tbaa !12
  %indvars.iv.next108 = or disjoint i64 %indvars.iv107, 1
  %75 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv.next108
  store i16 0, ptr %75, align 2, !tbaa !12
  %indvars.iv.next108.1 = or disjoint i64 %indvars.iv107, 2
  %76 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv.next108.1
  store i16 0, ptr %76, align 4, !tbaa !12
  %indvars.iv.next108.2 = or disjoint i64 %indvars.iv107, 3
  %77 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv.next108.2
  store i16 0, ptr %77, align 2, !tbaa !12
  %indvars.iv.next108.3 = add nuw nsw i64 %indvars.iv107, 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 %.preheader72.loopexit.unr-lcssa, label %.lr.ph83, !llvm.loop !16

.preheader71:                                     ; preds = %.lr.ph86.preheader, %.preheader72
  %.not6792 = icmp slt i32 %47, 1
  %78 = icmp slt i32 %21, 1
  %or.cond = or i1 %.not6792, %78
  br i1 %or.cond, label %._crit_edge94, label %.preheader70

.preheader70:                                     ; preds = %.preheader71, %._crit_edge91
  %79 = phi i32 [ %94, %._crit_edge91 ], [ %47, %.preheader71 ]
  %80 = phi i32 [ %95, %._crit_edge91 ], [ %21, %.preheader71 ]
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge91 ], [ 1, %.preheader71 ]
  %.not6888 = icmp slt i32 %80, 1
  br i1 %.not6888, label %._crit_edge91, label %.lr.ph90

.lr.ph90:                                         ; preds = %.preheader70
  %81 = add nsw i64 %indvars.iv122, -1
  %82 = trunc nuw nsw i64 %indvars.iv122 to i32
  br label %97

._crit_edge94:                                    ; preds = %._crit_edge91, %.preheader71
  %83 = phi i32 [ %21, %.preheader71 ], [ %95, %._crit_edge91 ]
  %.lcssa74 = phi i32 [ %47, %.preheader71 ], [ %94, %._crit_edge91 ]
  %84 = sext i32 %.lcssa74 to i64
  %85 = sext i32 %83 to i64
  %86 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %84, i64 %85
  %87 = load i16, ptr %86, align 2, !tbaa !12
  %88 = sext i16 %87 to i32
  %89 = mul nsw i32 %88, 10
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 390522, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 960, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 960, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %92, 0
  br i1 %.not, label %._crit_edge99, label %.lr.ph98, !llvm.loop !17

._crit_edge91.loopexit:                           ; preds = %.loopexit
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %._crit_edge91

._crit_edge91:                                    ; preds = %._crit_edge91.loopexit, %.preheader70
  %94 = phi i32 [ %.pre, %._crit_edge91.loopexit ], [ %79, %.preheader70 ]
  %95 = phi i32 [ %167, %._crit_edge91.loopexit ], [ %80, %.preheader70 ]
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %96 = sext i32 %94 to i64
  %.not67.not = icmp slt i64 %indvars.iv122, %96
  br i1 %.not67.not, label %.preheader70, label %._crit_edge94, !llvm.loop !18

97:                                               ; preds = %.lr.ph90, %.loopexit
  %indvars.iv119 = phi i64 [ 1, %.lr.ph90 ], [ %indvars.iv.next120, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %98 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %81, i64 %indvars.iv119
  %99 = add nsw i64 %indvars.iv119, -1
  %100 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv122, i64 %99
  %101 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %98, ptr noundef nonnull align 2 dereferenceable(2) %100)
  %102 = load i16, ptr %101, align 2, !tbaa !12
  %103 = sext i16 %102 to i32
  store i32 %103, ptr %11, align 4, !tbaa !5
  %104 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %indvars.iv119
  %105 = load i32, ptr %104, align 16, !tbaa !5
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %97
  %107 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %indvars.iv119, i64 0
  %108 = load i32, ptr %107, align 16, !tbaa !5
  %109 = sub nsw i32 %82, %108
  %110 = icmp sgt i32 %109, -1
  br i1 %110, label %111, label %.preheader.1

111:                                              ; preds = %.preheader.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %112 = zext nneg i32 %109 to i64
  %113 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %112, i64 %99
  %114 = load i16, ptr %113, align 2, !tbaa !12
  %115 = sext i16 %114 to i32
  %116 = add nsw i32 %105, %115
  store i32 %116, ptr %12, align 4, !tbaa !5
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %118 = load i32, ptr %117, align 4, !tbaa !5
  store i32 %118, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %.preheader.1

.preheader.1:                                     ; preds = %111, %.preheader.preheader
  %119 = phi i32 [ %118, %111 ], [ %103, %.preheader.preheader ]
  %120 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %indvars.iv119, i64 1
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = sub nsw i32 %82, %121
  %123 = icmp sgt i32 %122, -1
  br i1 %123, label %124, label %.preheader.2

124:                                              ; preds = %.preheader.1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %125 = zext nneg i32 %122 to i64
  %126 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %125, i64 %99
  %127 = load i16, ptr %126, align 2, !tbaa !12
  %128 = sext i16 %127 to i32
  %129 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %indvars.iv119, i64 1
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = add nsw i32 %130, %128
  store i32 %131, ptr %12, align 4, !tbaa !5
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %133 = load i32, ptr %132, align 4, !tbaa !5
  store i32 %133, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %.preheader.2

.preheader.2:                                     ; preds = %124, %.preheader.1
  %134 = phi i32 [ %133, %124 ], [ %119, %.preheader.1 ]
  %135 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %indvars.iv119, i64 2
  %136 = load i32, ptr %135, align 8, !tbaa !5
  %137 = sub nsw i32 %82, %136
  %138 = icmp sgt i32 %137, -1
  br i1 %138, label %139, label %.preheader.3

139:                                              ; preds = %.preheader.2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %140 = zext nneg i32 %137 to i64
  %141 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %140, i64 %99
  %142 = load i16, ptr %141, align 2, !tbaa !12
  %143 = sext i16 %142 to i32
  %144 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %indvars.iv119, i64 2
  %145 = load i32, ptr %144, align 8, !tbaa !5
  %146 = add nsw i32 %145, %143
  store i32 %146, ptr %12, align 4, !tbaa !5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %148 = load i32, ptr %147, align 4, !tbaa !5
  store i32 %148, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %.preheader.3

.preheader.3:                                     ; preds = %139, %.preheader.2
  %149 = phi i32 [ %148, %139 ], [ %134, %.preheader.2 ]
  %150 = getelementptr inbounds [60 x [4 x i32]], ptr %4, i64 0, i64 %indvars.iv119, i64 3
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = sub nsw i32 %82, %151
  %153 = icmp sgt i32 %152, -1
  br i1 %153, label %154, label %.loopexit

154:                                              ; preds = %.preheader.3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %155 = zext nneg i32 %152 to i64
  %156 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %155, i64 %99
  %157 = load i16, ptr %156, align 2, !tbaa !12
  %158 = sext i16 %157 to i32
  %159 = getelementptr inbounds [60 x [4 x i32]], ptr %5, i64 0, i64 %indvars.iv119, i64 3
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = add nsw i32 %160, %158
  store i32 %161, ptr %12, align 4, !tbaa !5
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %163 = load i32, ptr %162, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.3, %154, %97
  %164 = phi i32 [ %103, %97 ], [ %163, %154 ], [ %149, %.preheader.3 ]
  %165 = trunc i32 %164 to i16
  %166 = getelementptr inbounds [3201 x [61 x i16]], ptr %10, i64 0, i64 %indvars.iv122, i64 %indvars.iv119
  store i16 %165, ptr %166, align 2, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %167 = load i32, ptr %3, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %.not68.not = icmp slt i64 %indvars.iv119, %168
  br i1 %.not68.not, label %97, label %._crit_edge91.loopexit, !llvm.loop !20

._crit_edge99:                                    ; preds = %._crit_edge94, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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 #5 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)) #6

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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #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 = !{!"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 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !19}
!19 = !{!"llvm.loop.unswitch.partial.disable"}
!20 = distinct !{!20, !10}


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