; LLVM IR from ritikbanger/Hacktoberfest2022-DSA :: 20. Dynamic Programming (Goldmine_DP)

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

25:                                               ; preds = %49, %0
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

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

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

31:                                               ; preds = %45, %30
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = mul nsw i64 %38, %21
  %40 = getelementptr inbounds i32, ptr %24, i64 %39
  %41 = load i32, ptr %9, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %43)
  br label %45

45:                                               ; preds = %36
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %9, align 4, !tbaa !5
  br label %31, !llvm.loop !9

48:                                               ; preds = %35
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %7, align 4, !tbaa !5
  br label %25, !llvm.loop !11

52:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %54, i64 8)
  %56 = extractvalue { i64, i1 } %55, 1
  %57 = extractvalue { i64, i1 } %55, 0
  %58 = select i1 %56, i64 -1, i64 %57
  %59 = call noalias noundef nonnull ptr @_Znam(i64 noundef %58) #10
  store ptr %59, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %77, %52
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %80

65:                                               ; preds = %60
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %67, i64 4)
  %69 = extractvalue { i64, i1 } %68, 1
  %70 = extractvalue { i64, i1 } %68, 0
  %71 = select i1 %69, i64 -1, i64 %70
  %72 = call noalias noundef nonnull ptr @_Znam(i64 noundef %71) #10
  %73 = load ptr, ptr %10, align 8, !tbaa !12
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  store ptr %72, ptr %76, align 8, !tbaa !12
  br label %77

77:                                               ; preds = %65
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %11, align 4, !tbaa !5
  br label %60, !llvm.loop !14

80:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  store i32 %82, ptr %12, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %259, %80
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %262

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  store i32 %89, ptr %13, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %255, %87
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = icmp sge i32 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %258

94:                                               ; preds = %90
  %95 = load i32, ptr %12, align 4, !tbaa !5
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  %98 = icmp eq i32 %95, %97
  br i1 %98, label %99, label %116

99:                                               ; preds = %94
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = mul nsw i64 %101, %21
  %103 = getelementptr inbounds i32, ptr %24, i64 %102
  %104 = load i32, ptr %12, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %103, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = load ptr, ptr %10, align 8, !tbaa !12
  %109 = load i32, ptr %13, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %108, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !12
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %112, i64 %114
  store i32 %107, ptr %115, align 4, !tbaa !5
  br label %254

116:                                              ; preds = %94
  %117 = load i32, ptr %13, align 4, !tbaa !5
  %118 = load i32, ptr %2, align 4, !tbaa !5
  %119 = sub nsw i32 %118, 1
  %120 = icmp eq i32 %117, %119
  br i1 %120, label %121, label %160

121:                                              ; preds = %116
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = mul nsw i64 %123, %21
  %125 = getelementptr inbounds i32, ptr %24, i64 %124
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = load ptr, ptr %10, align 8, !tbaa !12
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !12
  %135 = load i32, ptr %12, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %134, i64 %137
  %139 = load ptr, ptr %10, align 8, !tbaa !12
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds ptr, ptr %139, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !12
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %144, i64 %147
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %138, ptr noundef nonnull align 4 dereferenceable(4) %148)
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = add nsw i32 %129, %150
  %152 = load ptr, ptr %10, align 8, !tbaa !12
  %153 = load i32, ptr %13, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !12
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i32, ptr %156, i64 %158
  store i32 %151, ptr %159, align 4, !tbaa !5
  br label %253

160:                                              ; preds = %116
  %161 = load i32, ptr %13, align 4, !tbaa !5
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %202

163:                                              ; preds = %160
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = mul nsw i64 %165, %21
  %167 = getelementptr inbounds i32, ptr %24, i64 %166
  %168 = load i32, ptr %12, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %167, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load ptr, ptr %10, align 8, !tbaa !12
  %173 = load i32, ptr %13, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds ptr, ptr %172, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !12
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %176, i64 %179
  %181 = load ptr, ptr %10, align 8, !tbaa !12
  %182 = load i32, ptr %13, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %181, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !12
  %187 = load i32, ptr %12, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %186, i64 %189
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %180, ptr noundef nonnull align 4 dereferenceable(4) %190)
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = add nsw i32 %171, %192
  %194 = load ptr, ptr %10, align 8, !tbaa !12
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %194, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !12
  %199 = load i32, ptr %12, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  store i32 %193, ptr %201, align 4, !tbaa !5
  br label %252

202:                                              ; preds = %160
  %203 = load i32, ptr %13, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = mul nsw i64 %204, %21
  %206 = getelementptr inbounds i32, ptr %24, i64 %205
  %207 = load i32, ptr %12, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i32, ptr %206, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load ptr, ptr %10, align 8, !tbaa !12
  %212 = load i32, ptr %13, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !12
  %216 = load i32, ptr %12, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds i32, ptr %215, i64 %218
  %220 = load ptr, ptr %10, align 8, !tbaa !12
  %221 = load i32, ptr %13, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds ptr, ptr %220, i64 %223
  %225 = load ptr, ptr %224, align 8, !tbaa !12
  %226 = load i32, ptr %12, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds i32, ptr %225, i64 %228
  %230 = load ptr, ptr %10, align 8, !tbaa !12
  %231 = load i32, ptr %13, align 4, !tbaa !5
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds ptr, ptr %230, i64 %233
  %235 = load ptr, ptr %234, align 8, !tbaa !12
  %236 = load i32, ptr %12, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds i32, ptr %235, i64 %238
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %229, ptr noundef nonnull align 4 dereferenceable(4) %239)
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %219, ptr noundef nonnull align 4 dereferenceable(4) %240)
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = add nsw i32 %210, %242
  %244 = load ptr, ptr %10, align 8, !tbaa !12
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %244, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !12
  %249 = load i32, ptr %12, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds i32, ptr %248, i64 %250
  store i32 %243, ptr %251, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %202, %163
  br label %253

253:                                              ; preds = %252, %121
  br label %254

254:                                              ; preds = %253, %99
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %13, align 4, !tbaa !5
  %257 = add nsw i32 %256, -1
  store i32 %257, ptr %13, align 4, !tbaa !5
  br label %90, !llvm.loop !15

258:                                              ; preds = %93
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %12, align 4, !tbaa !5
  %261 = add nsw i32 %260, -1
  store i32 %261, ptr %12, align 4, !tbaa !5
  br label %83, !llvm.loop !16

262:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %263 = load ptr, ptr %10, align 8, !tbaa !12
  %264 = getelementptr inbounds ptr, ptr %263, i64 0
  %265 = load ptr, ptr %264, align 8, !tbaa !12
  %266 = getelementptr inbounds i32, ptr %265, i64 0
  %267 = load i32, ptr %266, align 4, !tbaa !5
  store i32 %267, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %268

268:                                              ; preds = %282, %262
  %269 = load i32, ptr %15, align 4, !tbaa !5
  %270 = load i32, ptr %2, align 4, !tbaa !5
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %268
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %285

273:                                              ; preds = %268
  %274 = load ptr, ptr %10, align 8, !tbaa !12
  %275 = load i32, ptr %15, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %274, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !12
  %279 = getelementptr inbounds i32, ptr %278, i64 0
  %280 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %279)
  %281 = load i32, ptr %280, align 4, !tbaa !5
  store i32 %281, ptr %14, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %273
  %283 = load i32, ptr %15, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %15, align 4, !tbaa !5
  br label %268, !llvm.loop !17

285:                                              ; preds = %272
  %286 = load i32, ptr %14, align 4, !tbaa !5
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %286)
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  %289 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %289)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %290 = load i32, ptr %1, align 4
  ret i32 %290
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

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

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) #7 align 2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %4 = 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)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = zext i32 %6 to i64
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = zext i32 %8 to i64
  %10 = call ptr @llvm.stacksave.p0()
  %11 = mul nuw i64 %9, %7
  %12 = alloca i32, i64 %11, align 16
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  %.pre121.pre = load i32, ptr %2, align 4, !tbaa !5
  %15 = icmp sgt i32 %.pre121.pre, 0
  %or.cond = select i1 %14, i1 %15, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge72

.preheader:                                       ; preds = %0, %._crit_edge
  %16 = phi i32 [ %32, %._crit_edge ], [ %13, %0 ]
  %17 = phi i32 [ %33, %._crit_edge ], [ %.pre121.pre, %0 ]
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %._crit_edge ], [ 0, %0 ]
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %19 = mul nuw nsw i64 %indvars.iv102, %9
  %20 = getelementptr inbounds i32, ptr %12, i64 %19
  br label %36

._crit_edge72:                                    ; preds = %._crit_edge, %0
  %.pre121 = phi i32 [ %.pre121.pre, %0 ], [ %33, %._crit_edge ]
  %21 = phi i32 [ %13, %0 ], [ %32, %._crit_edge ]
  %22 = sext i32 %21 to i64
  %23 = icmp slt i32 %21, 0
  %24 = shl nsw i64 %22, 3
  %25 = select i1 %23, i64 -1, i64 %24
  %26 = call noalias noundef nonnull ptr @_Znam(i64 noundef %25) #9
  %27 = icmp sgt i32 %21, 0
  br i1 %27, label %.lr.ph75, label %._crit_edge93.thread

.lr.ph75:                                         ; preds = %._crit_edge72
  %28 = sext i32 %.pre121 to i64
  %29 = icmp slt i32 %.pre121, 0
  %30 = shl nsw i64 %28, 2
  %31 = select i1 %29, i64 -1, i64 %30
  %wide.trip.count = zext nneg i32 %21 to i64
  br label %46

._crit_edge.loopexit:                             ; preds = %36
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %32 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %16, %.preheader ]
  %33 = phi i32 [ %39, %._crit_edge.loopexit ], [ %17, %.preheader ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %34 = sext i32 %32 to i64
  %35 = icmp slt i64 %indvars.iv.next103, %34
  br i1 %35, label %.preheader, label %._crit_edge72, !llvm.loop !9

36:                                               ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %36 ]
  %37 = getelementptr inbounds i32, ptr %20, i64 %indvars.iv
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next, %40
  br i1 %41, label %36, label %._crit_edge.loopexit, !llvm.loop !12

._crit_edge76:                                    ; preds = %46
  %42 = icmp sgt i32 %.pre121, 0
  br i1 %42, label %.lr.ph92, label %._crit_edge93

.lr.ph92:                                         ; preds = %._crit_edge76
  %invariant.gep = getelementptr i8, ptr %26, i64 -16
  %43 = getelementptr inbounds i8, ptr %26, i64 8
  br i1 %27, label %.lr.ph92.split.preheader, label %._crit_edge93.thread

.lr.ph92.split.preheader:                         ; preds = %.lr.ph92
  %.06588 = add nsw i32 %.pre121, -1
  %44 = zext nneg i32 %.06588 to i64
  %45 = zext nneg i32 %.pre121 to i64
  br label %.lr.ph92.split

46:                                               ; preds = %.lr.ph75, %46
  %indvars.iv105 = phi i64 [ 0, %.lr.ph75 ], [ %indvars.iv.next106, %46 ]
  %47 = call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #9
  %48 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv105
  store ptr %47, ptr %48, align 8, !tbaa !13
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge76, label %46, !llvm.loop !15

.loopexit:                                        ; preds = %110, %.thread, %.lr.ph92.split
  %indvars.iv.next112 = add nsw i64 %indvars.iv111, -1
  %49 = icmp sgt i64 %indvars.iv111, 0
  %indvars.iv.next114 = add nsw i64 %indvars.iv113, -1
  br i1 %49, label %.lr.ph92.split, label %._crit_edge93.loopexit, !llvm.loop !16

._crit_edge93.loopexit:                           ; preds = %.loopexit
  %.pre122 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge93

._crit_edge93.thread:                             ; preds = %._crit_edge72, %.lr.ph92
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %50 = load ptr, ptr %26, align 8, !tbaa !13
  %51 = load i32, ptr %50, align 4, !tbaa !5
  store i32 %51, ptr %3, align 4, !tbaa !5
  br label %._crit_edge97

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit, %._crit_edge76
  %52 = phi i32 [ %.pre122, %._crit_edge93.loopexit ], [ %21, %._crit_edge76 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %53 = load ptr, ptr %26, align 8, !tbaa !13
  %54 = load i32, ptr %53, align 4, !tbaa !5
  store i32 %54, ptr %3, align 4, !tbaa !5
  %55 = icmp sgt i32 %52, 1
  br i1 %55, label %.lr.ph96, label %._crit_edge97

.lr.ph92.split:                                   ; preds = %.lr.ph92.split.preheader, %.loopexit
  %indvars.iv113 = phi i64 [ %45, %.lr.ph92.split.preheader ], [ %indvars.iv.next114, %.loopexit ]
  %indvars.iv111 = phi i64 [ %44, %.lr.ph92.split.preheader ], [ %indvars.iv.next112, %.loopexit ]
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph81, label %.loopexit

.lr.ph81:                                         ; preds = %.lr.ph92.split
  %invariant.gep82 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv111
  %58 = zext nneg i32 %56 to i64
  br label %59

59:                                               ; preds = %.lr.ph81, %110
  %indvars.iv108 = phi i64 [ %58, %.lr.ph81 ], [ %indvars.iv.next109, %110 ]
  %indvars.iv.next109 = add nsw i64 %indvars.iv108, -1
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = icmp eq i64 %indvars.iv113, %61
  br i1 %62, label %63, label %68

63:                                               ; preds = %59
  %64 = mul nuw nsw i64 %indvars.iv.next109, %9
  %gep87 = getelementptr inbounds i32, ptr %invariant.gep82, i64 %64
  %65 = load i32, ptr %gep87, align 4, !tbaa !5
  %66 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.next109
  %67 = load ptr, ptr %66, align 8, !tbaa !13
  br label %110

68:                                               ; preds = %59
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = icmp eq i64 %indvars.iv108, %70
  br i1 %71, label %72, label %83

72:                                               ; preds = %68
  %73 = mul nuw nsw i64 %indvars.iv.next109, %9
  %gep85 = getelementptr inbounds i32, ptr %invariant.gep82, i64 %73
  %74 = load i32, ptr %gep85, align 4, !tbaa !5
  %75 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.next109
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv113
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %indvars.iv108
  %78 = load ptr, ptr %gep, align 8, !tbaa !13
  %79 = getelementptr inbounds i32, ptr %78, i64 %indvars.iv113
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %77, ptr noundef nonnull align 4 dereferenceable(4) %79)
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = add nsw i32 %81, %74
  br label %110

83:                                               ; preds = %68
  %84 = icmp eq i64 %indvars.iv.next109, 0
  br i1 %84, label %.thread, label %94

.thread:                                          ; preds = %83
  %85 = load i32, ptr %invariant.gep82, align 4, !tbaa !5
  %86 = load ptr, ptr %26, align 8, !tbaa !13
  %87 = getelementptr inbounds i32, ptr %86, i64 %indvars.iv113
  %88 = load ptr, ptr %43, align 8, !tbaa !13
  %89 = getelementptr inbounds i32, ptr %88, i64 %indvars.iv113
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %87, ptr noundef nonnull align 4 dereferenceable(4) %89)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = add nsw i32 %91, %85
  %93 = getelementptr inbounds i32, ptr %86, i64 %indvars.iv111
  store i32 %92, ptr %93, align 4, !tbaa !5
  br label %.loopexit

94:                                               ; preds = %83
  %95 = mul nuw nsw i64 %indvars.iv.next109, %9
  %gep83 = getelementptr inbounds i32, ptr %invariant.gep82, i64 %95
  %96 = load i32, ptr %gep83, align 4, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.next109
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds i32, ptr %98, i64 %indvars.iv113
  %100 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv108
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  %102 = getelementptr inbounds i32, ptr %101, i64 %indvars.iv113
  %103 = getelementptr i8, ptr %100, i64 -16
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = getelementptr inbounds i32, ptr %104, i64 %indvars.iv113
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(4) %105)
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %99, ptr noundef nonnull align 4 dereferenceable(4) %106)
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = add nsw i32 %108, %96
  br label %110

110:                                              ; preds = %63, %94, %72
  %.sink129 = phi ptr [ %67, %63 ], [ %98, %94 ], [ %76, %72 ]
  %.sink = phi i32 [ %65, %63 ], [ %109, %94 ], [ %82, %72 ]
  %111 = getelementptr inbounds i32, ptr %.sink129, i64 %indvars.iv111
  store i32 %.sink, ptr %111, align 4, !tbaa !5
  %112 = icmp ugt i64 %indvars.iv108, 1
  br i1 %112, label %59, label %.loopexit, !llvm.loop !17

._crit_edge97:                                    ; preds = %.lr.ph96, %._crit_edge93.thread, %._crit_edge93
  %113 = phi i32 [ %54, %._crit_edge93 ], [ %51, %._crit_edge93.thread ], [ %119, %.lr.ph96 ]
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %113)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.stackrestore.p0(ptr %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.lr.ph96:                                         ; preds = %._crit_edge93, %.lr.ph96
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %.lr.ph96 ], [ 1, %._crit_edge93 ]
  %116 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv118
  %117 = load ptr, ptr %116, align 8, !tbaa !13
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %117)
  %119 = load i32, ptr %118, align 4, !tbaa !5
  store i32 %119, ptr %3, align 4, !tbaa !5
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = icmp slt i64 %indvars.iv.next119, %121
  br i1 %122, label %.lr.ph96, label %._crit_edge97, !llvm.loop !18
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) 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 #5

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nobuiltin allocsize(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 = { 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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !11}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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