; LLVM IR from codeIIEST/Algorithms :: Competitive Coding/Dynamic Programming/Edit Distance (CODECHEF_seatsr)

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

@current_dp = external dso_local global [100002 x i64], align 16
@previous_dp = external dso_local global [100002 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca [100001 x i8], align 16
  %13 = alloca [100001 x i8], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 100001, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 100001, ptr %13) #5
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %15

15:                                               ; preds = %299, %71, %51, %46, %0
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = add nsw i64 %16, -1
  store i64 %17, ptr %2, align 8, !tbaa !5
  %18 = icmp ne i64 %16, 0
  br i1 %18, label %19, label %300

19:                                               ; preds = %15
  %20 = getelementptr inbounds [100001 x i8], ptr %12, i64 0, i64 0
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %20)
  %22 = getelementptr inbounds [100001 x i8], ptr %13, i64 0, i64 0
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %22)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %27 = getelementptr inbounds [100001 x i8], ptr %12, i64 0, i64 0
  %28 = call i64 @strlen(ptr noundef %27) #6
  store i64 %28, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds [100001 x i8], ptr %13, i64 0, i64 0
  %30 = call i64 @strlen(ptr noundef %29) #6
  store i64 %30, ptr %6, align 8, !tbaa !5
  %31 = load i64, ptr %5, align 8, !tbaa !5
  %32 = load i64, ptr %6, align 8, !tbaa !5
  %33 = sub nsw i64 %31, %32
  %34 = load i64, ptr %9, align 8, !tbaa !5
  %35 = mul nsw i64 %33, %34
  %36 = load i64, ptr %11, align 8, !tbaa !5
  %37 = icmp sgt i64 %35, %36
  br i1 %37, label %46, label %38

38:                                               ; preds = %19
  %39 = load i64, ptr %6, align 8, !tbaa !5
  %40 = load i64, ptr %5, align 8, !tbaa !5
  %41 = sub nsw i64 %39, %40
  %42 = load i64, ptr %9, align 8, !tbaa !5
  %43 = mul nsw i64 %41, %42
  %44 = load i64, ptr %11, align 8, !tbaa !5
  %45 = icmp sgt i64 %43, %44
  br i1 %45, label %46, label %48

46:                                               ; preds = %38, %19
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %15, !llvm.loop !9

48:                                               ; preds = %38
  %49 = load i64, ptr %9, align 8, !tbaa !5
  %50 = icmp eq i64 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  br label %15, !llvm.loop !9

53:                                               ; preds = %48
  %54 = load i64, ptr %10, align 8, !tbaa !5
  %55 = icmp eq i64 %54, 0
  br i1 %55, label %56, label %76

56:                                               ; preds = %53
  %57 = load i64, ptr %9, align 8, !tbaa !5
  %58 = load i64, ptr %5, align 8, !tbaa !5
  %59 = load i64, ptr %6, align 8, !tbaa !5
  %60 = sub nsw i64 %58, %59
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %67

62:                                               ; preds = %56
  %63 = load i64, ptr %5, align 8, !tbaa !5
  %64 = load i64, ptr %6, align 8, !tbaa !5
  %65 = sub nsw i64 %63, %64
  %66 = mul nsw i64 -1, %65
  br label %71

67:                                               ; preds = %56
  %68 = load i64, ptr %5, align 8, !tbaa !5
  %69 = load i64, ptr %6, align 8, !tbaa !5
  %70 = sub nsw i64 %68, %69
  br label %71

71:                                               ; preds = %67, %62
  %72 = phi i64 [ %66, %62 ], [ %70, %67 ]
  %73 = mul nsw i64 %57, %72
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %73)
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @.str.2)
  br label %15, !llvm.loop !9

76:                                               ; preds = %53
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %96, %76
  %78 = load i64, ptr %7, align 8, !tbaa !5
  %79 = load i64, ptr %6, align 8, !tbaa !5
  %80 = add nsw i64 %79, 1
  %81 = icmp slt i64 %78, %80
  br i1 %81, label %82, label %99

82:                                               ; preds = %77
  %83 = load i64, ptr %7, align 8, !tbaa !5
  %84 = load i64, ptr %11, align 8, !tbaa !5
  %85 = icmp sgt i64 %83, %84
  br i1 %85, label %86, label %89

86:                                               ; preds = %82
  %87 = load i64, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %87
  store i64 1073741823, ptr %88, align 8, !tbaa !5
  br label %95

89:                                               ; preds = %82
  %90 = load i64, ptr %7, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !5
  %92 = mul nsw i64 %90, %91
  %93 = load i64, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %93
  store i64 %92, ptr %94, align 8, !tbaa !5
  br label %95

95:                                               ; preds = %89, %86
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %7, align 8, !tbaa !5
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %7, align 8, !tbaa !5
  br label %77, !llvm.loop !11

99:                                               ; preds = %77
  store i64 1, ptr %7, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %282, %99
  %101 = load i64, ptr %7, align 8, !tbaa !5
  %102 = load i64, ptr %5, align 8, !tbaa !5
  %103 = add nsw i64 %102, 1
  %104 = icmp slt i64 %101, %103
  br i1 %104, label %105, label %285

105:                                              ; preds = %100
  %106 = load i64, ptr %7, align 8, !tbaa !5
  %107 = load i64, ptr %11, align 8, !tbaa !5
  %108 = sub nsw i64 %106, %107
  %109 = icmp slt i64 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %105
  br label %115

111:                                              ; preds = %105
  %112 = load i64, ptr %7, align 8, !tbaa !5
  %113 = load i64, ptr %11, align 8, !tbaa !5
  %114 = sub nsw i64 %112, %113
  br label %115

115:                                              ; preds = %111, %110
  %116 = phi i64 [ 0, %110 ], [ %114, %111 ]
  store i64 %116, ptr %3, align 8, !tbaa !5
  %117 = load i64, ptr %3, align 8, !tbaa !5
  %118 = icmp sgt i64 %117, 0
  br i1 %118, label %119, label %123

119:                                              ; preds = %115
  %120 = load i64, ptr %3, align 8, !tbaa !5
  %121 = sub nsw i64 %120, 1
  %122 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %121
  store i64 1073741823, ptr %122, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %119, %115
  %124 = load i64, ptr %3, align 8, !tbaa !5
  %125 = sub nsw i64 %124, 1
  store i64 %125, ptr %3, align 8, !tbaa !5
  %126 = load i64, ptr %7, align 8, !tbaa !5
  %127 = load i64, ptr %11, align 8, !tbaa !5
  %128 = add nsw i64 %126, %127
  %129 = add nsw i64 %128, 1
  %130 = load i64, ptr %6, align 8, !tbaa !5
  %131 = add nsw i64 %130, 1
  %132 = icmp slt i64 %129, %131
  br i1 %132, label %133, label %138

133:                                              ; preds = %123
  %134 = load i64, ptr %7, align 8, !tbaa !5
  %135 = load i64, ptr %11, align 8, !tbaa !5
  %136 = add nsw i64 %134, %135
  %137 = add nsw i64 %136, 1
  br label %141

138:                                              ; preds = %123
  %139 = load i64, ptr %6, align 8, !tbaa !5
  %140 = add nsw i64 %139, 1
  br label %141

141:                                              ; preds = %138, %133
  %142 = phi i64 [ %137, %133 ], [ %140, %138 ]
  store i64 %142, ptr %4, align 8, !tbaa !5
  %143 = load i64, ptr %3, align 8, !tbaa !5
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %8, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %263, %141
  %146 = load i64, ptr %8, align 8, !tbaa !5
  %147 = load i64, ptr %4, align 8, !tbaa !5
  %148 = icmp slt i64 %146, %147
  br i1 %148, label %149, label %266

149:                                              ; preds = %145
  %150 = load i64, ptr %8, align 8, !tbaa !5
  %151 = icmp eq i64 %150, 0
  br i1 %151, label %152, label %158

152:                                              ; preds = %149
  %153 = load i64, ptr %7, align 8, !tbaa !5
  %154 = load i64, ptr %9, align 8, !tbaa !5
  %155 = mul nsw i64 %153, %154
  %156 = load i64, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %156
  store i64 %155, ptr %157, align 8, !tbaa !5
  br label %262

158:                                              ; preds = %149
  %159 = load i64, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !5
  %162 = load i64, ptr %9, align 8, !tbaa !5
  %163 = add nsw i64 %161, %162
  %164 = load i64, ptr %8, align 8, !tbaa !5
  %165 = sub nsw i64 %164, 1
  %166 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %165
  %167 = load i64, ptr %166, align 8, !tbaa !5
  %168 = load i64, ptr %9, align 8, !tbaa !5
  %169 = add nsw i64 %167, %168
  %170 = icmp slt i64 %163, %169
  br i1 %170, label %171, label %177

171:                                              ; preds = %158
  %172 = load i64, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %172
  %174 = load i64, ptr %173, align 8, !tbaa !5
  %175 = load i64, ptr %9, align 8, !tbaa !5
  %176 = add nsw i64 %174, %175
  br label %184

177:                                              ; preds = %158
  %178 = load i64, ptr %8, align 8, !tbaa !5
  %179 = sub nsw i64 %178, 1
  %180 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !5
  %182 = load i64, ptr %9, align 8, !tbaa !5
  %183 = add nsw i64 %181, %182
  br label %184

184:                                              ; preds = %177, %171
  %185 = phi i64 [ %176, %171 ], [ %183, %177 ]
  %186 = load i64, ptr %8, align 8, !tbaa !5
  %187 = sub nsw i64 %186, 1
  %188 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %187
  %189 = load i64, ptr %188, align 8, !tbaa !5
  %190 = load i64, ptr %7, align 8, !tbaa !5
  %191 = sub nsw i64 %190, 1
  %192 = getelementptr inbounds [100001 x i8], ptr %12, i64 0, i64 %191
  %193 = load i8, ptr %192, align 1, !tbaa !12
  %194 = sext i8 %193 to i32
  %195 = load i64, ptr %8, align 8, !tbaa !5
  %196 = sub nsw i64 %195, 1
  %197 = getelementptr inbounds [100001 x i8], ptr %13, i64 0, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !12
  %199 = sext i8 %198 to i32
  %200 = icmp eq i32 %194, %199
  br i1 %200, label %201, label %202

201:                                              ; preds = %184
  br label %204

202:                                              ; preds = %184
  %203 = load i64, ptr %10, align 8, !tbaa !5
  br label %204

204:                                              ; preds = %202, %201
  %205 = phi i64 [ 0, %201 ], [ %203, %202 ]
  %206 = add nsw i64 %189, %205
  %207 = icmp slt i64 %185, %206
  br i1 %207, label %208, label %236

208:                                              ; preds = %204
  %209 = load i64, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %209
  %211 = load i64, ptr %210, align 8, !tbaa !5
  %212 = load i64, ptr %9, align 8, !tbaa !5
  %213 = add nsw i64 %211, %212
  %214 = load i64, ptr %8, align 8, !tbaa !5
  %215 = sub nsw i64 %214, 1
  %216 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !5
  %218 = load i64, ptr %9, align 8, !tbaa !5
  %219 = add nsw i64 %217, %218
  %220 = icmp slt i64 %213, %219
  br i1 %220, label %221, label %227

221:                                              ; preds = %208
  %222 = load i64, ptr %8, align 8, !tbaa !5
  %223 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %222
  %224 = load i64, ptr %223, align 8, !tbaa !5
  %225 = load i64, ptr %9, align 8, !tbaa !5
  %226 = add nsw i64 %224, %225
  br label %234

227:                                              ; preds = %208
  %228 = load i64, ptr %8, align 8, !tbaa !5
  %229 = sub nsw i64 %228, 1
  %230 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !5
  %232 = load i64, ptr %9, align 8, !tbaa !5
  %233 = add nsw i64 %231, %232
  br label %234

234:                                              ; preds = %227, %221
  %235 = phi i64 [ %226, %221 ], [ %233, %227 ]
  br label %258

236:                                              ; preds = %204
  %237 = load i64, ptr %8, align 8, !tbaa !5
  %238 = sub nsw i64 %237, 1
  %239 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %238
  %240 = load i64, ptr %239, align 8, !tbaa !5
  %241 = load i64, ptr %7, align 8, !tbaa !5
  %242 = sub nsw i64 %241, 1
  %243 = getelementptr inbounds [100001 x i8], ptr %12, i64 0, i64 %242
  %244 = load i8, ptr %243, align 1, !tbaa !12
  %245 = sext i8 %244 to i32
  %246 = load i64, ptr %8, align 8, !tbaa !5
  %247 = sub nsw i64 %246, 1
  %248 = getelementptr inbounds [100001 x i8], ptr %13, i64 0, i64 %247
  %249 = load i8, ptr %248, align 1, !tbaa !12
  %250 = sext i8 %249 to i32
  %251 = icmp eq i32 %245, %250
  br i1 %251, label %252, label %253

252:                                              ; preds = %236
  br label %255

253:                                              ; preds = %236
  %254 = load i64, ptr %10, align 8, !tbaa !5
  br label %255

255:                                              ; preds = %253, %252
  %256 = phi i64 [ 0, %252 ], [ %254, %253 ]
  %257 = add nsw i64 %240, %256
  br label %258

258:                                              ; preds = %255, %234
  %259 = phi i64 [ %235, %234 ], [ %257, %255 ]
  %260 = load i64, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %260
  store i64 %259, ptr %261, align 8, !tbaa !5
  br label %262

262:                                              ; preds = %258, %152
  br label %263

263:                                              ; preds = %262
  %264 = load i64, ptr %8, align 8, !tbaa !5
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %8, align 8, !tbaa !5
  br label %145, !llvm.loop !13

266:                                              ; preds = %145
  %267 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %267, ptr %8, align 8, !tbaa !5
  br label %268

268:                                              ; preds = %278, %266
  %269 = load i64, ptr %8, align 8, !tbaa !5
  %270 = load i64, ptr %4, align 8, !tbaa !5
  %271 = icmp slt i64 %269, %270
  br i1 %271, label %272, label %281

272:                                              ; preds = %268
  %273 = load i64, ptr %8, align 8, !tbaa !5
  %274 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %273
  %275 = load i64, ptr %274, align 8, !tbaa !5
  %276 = load i64, ptr %8, align 8, !tbaa !5
  %277 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %276
  store i64 %275, ptr %277, align 8, !tbaa !5
  br label %278

278:                                              ; preds = %272
  %279 = load i64, ptr %8, align 8, !tbaa !5
  %280 = add nsw i64 %279, 1
  store i64 %280, ptr %8, align 8, !tbaa !5
  br label %268, !llvm.loop !14

281:                                              ; preds = %268
  br label %282

282:                                              ; preds = %281
  %283 = load i64, ptr %7, align 8, !tbaa !5
  %284 = add nsw i64 %283, 1
  store i64 %284, ptr %7, align 8, !tbaa !5
  br label %100, !llvm.loop !15

285:                                              ; preds = %100
  %286 = load i64, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %286
  %288 = load i64, ptr %287, align 8, !tbaa !5
  %289 = load i64, ptr %11, align 8, !tbaa !5
  %290 = icmp sgt i64 %288, %289
  br i1 %290, label %291, label %293

291:                                              ; preds = %285
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %299

293:                                              ; preds = %285
  %294 = load i64, ptr %6, align 8, !tbaa !5
  %295 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %294
  %296 = load i64, ptr %295, align 8, !tbaa !5
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %296)
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef @.str.2)
  br label %299

299:                                              ; preds = %293, %291
  br label %15, !llvm.loop !9

300:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 100001, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 100001, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) #3

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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

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 = { 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 #3 = { 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 #4 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!"long long", !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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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" }

@current_dp = external dso_local local_unnamed_addr global [100002 x i64], align 16
@previous_dp = external dso_local local_unnamed_addr global [100002 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca [100001 x i8], align 16
  %6 = alloca [100001 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 100001, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 100001, ptr nonnull %6) #7
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = load i64, ptr %1, align 8, !tbaa !5
  %9 = add nsw i64 %8, -1
  store i64 %9, ptr %1, align 8, !tbaa !5
  %.not95 = icmp eq i64 %8, 0
  br i1 %.not95, label %._crit_edge98, label %.lr.ph97

.lr.ph97:                                         ; preds = %0, %.backedge
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %5)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %6)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %15 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #8
  %16 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #8
  %17 = sub nsw i64 %15, %16
  %18 = load i64, ptr %2, align 8, !tbaa !5
  %19 = mul nsw i64 %17, %18
  %20 = load i64, ptr %4, align 8
  %21 = icmp sgt i64 %19, %20
  br i1 %21, label %26, label %22

22:                                               ; preds = %.lr.ph97
  %23 = sub nsw i64 %16, %15
  %24 = mul nsw i64 %23, %18
  %25 = icmp sgt i64 %24, %20
  br i1 %25, label %26, label %30

26:                                               ; preds = %22, %.lr.ph97
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %.backedge

.backedge:                                        ; preds = %112, %114, %26, %32, %39
  %28 = load i64, ptr %1, align 8, !tbaa !5
  %29 = add nsw i64 %28, -1
  store i64 %29, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %28, 0
  br i1 %.not, label %._crit_edge98, label %.lr.ph97, !llvm.loop !9

30:                                               ; preds = %22
  %31 = icmp eq i64 %18, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %30
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  br label %.backedge

34:                                               ; preds = %30
  %35 = load i64, ptr %3, align 8
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %39, label %.preheader82

.preheader82:                                     ; preds = %34
  %.not7583 = icmp slt i64 %16, 0
  br i1 %.not7583, label %.preheader81, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader82
  %37 = add nuw i64 %16, 1
  %xtraiter = and i64 %37, 3
  %38 = icmp ult i64 %16, 3
  br i1 %38, label %.preheader81.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %37, -4
  br label %.lr.ph

39:                                               ; preds = %34
  %40 = call i64 @llvm.abs.i64(i64 %17, i1 true)
  %41 = mul nsw i64 %40, %18
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %41)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @.str.2)
  br label %.backedge

.preheader81.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %.05984.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %63, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader81, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader81.loopexit.unr-lcssa, %.lr.ph.epil
  %.05984.epil = phi i64 [ %47, %.lr.ph.epil ], [ %.05984.unr, %.preheader81.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader81.loopexit.unr-lcssa ]
  %44 = icmp sgt i64 %.05984.epil, %20
  %45 = mul nsw i64 %.05984.epil, %18
  %spec.select.epil = select i1 %44, i64 1073741823, i64 %45
  %46 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %.05984.epil
  store i64 %spec.select.epil, ptr %46, align 8
  %47 = add nuw i64 %.05984.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 %.preheader81, label %.lr.ph.epil, !llvm.loop !11

.preheader81:                                     ; preds = %.preheader81.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader82
  %.not7691 = icmp slt i64 %15, 1
  br i1 %.not7691, label %._crit_edge94, label %.lr.ph93.preheader

.lr.ph93.preheader:                               ; preds = %.preheader81
  %48 = add i64 %20, 1
  br label %.lr.ph93

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.05984 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %63, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %49 = icmp sgt i64 %.05984, %20
  %50 = mul nsw i64 %.05984, %18
  %spec.select = select i1 %49, i64 1073741823, i64 %50
  %51 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %.05984
  store i64 %spec.select, ptr %51, align 16
  %52 = or disjoint i64 %.05984, 1
  %.not101 = icmp slt i64 %.05984, %20
  %53 = mul nsw i64 %52, %18
  %spec.select.1 = select i1 %.not101, i64 %53, i64 1073741823
  %54 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %52
  store i64 %spec.select.1, ptr %54, align 8
  %55 = or disjoint i64 %.05984, 2
  %56 = icmp sgt i64 %55, %20
  %57 = mul nsw i64 %55, %18
  %spec.select.2 = select i1 %56, i64 1073741823, i64 %57
  %58 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %55
  store i64 %spec.select.2, ptr %58, align 16
  %59 = or disjoint i64 %.05984, 3
  %60 = icmp sgt i64 %59, %20
  %61 = mul nsw i64 %59, %18
  %spec.select.3 = select i1 %60, i64 1073741823, i64 %61
  %62 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %59
  store i64 %spec.select.3, ptr %62, align 8
  %63 = add nuw i64 %.05984, 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 %.preheader81.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !13

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %._crit_edge
  %indvar = phi i64 [ 0, %.lr.ph93.preheader ], [ %indvar.next, %._crit_edge ]
  %.16092 = phi i64 [ 1, %.lr.ph93.preheader ], [ %108, %._crit_edge ]
  %reass.sub = sub i64 %indvar, %20
  %64 = add i64 %reass.sub, 1
  %smax = call i64 @llvm.smax.i64(i64 %64, i64 0)
  %65 = shl i64 %smax, 3
  %scevgep = getelementptr i8, ptr getelementptr (i8, ptr @previous_dp, i64 -8), i64 %65
  %scevgep99 = getelementptr i8, ptr getelementptr (i8, ptr @current_dp, i64 -8), i64 %65
  %66 = add i64 %48, %indvar
  %smin = call i64 @llvm.smin.i64(i64 %16, i64 %66)
  %67 = add i64 %smin, 2
  %68 = sub i64 %67, %smax
  %69 = shl nuw i64 %68, 3
  %70 = sub nsw i64 %.16092, %20
  %71 = call i64 @llvm.smax.i64(i64 %70, i64 0)
  %.not77 = icmp slt i64 %70, 1
  %.pre = add nsw i64 %71, -1
  br i1 %.not77, label %.lr.ph93._crit_edge, label %72

72:                                               ; preds = %.lr.ph93
  %73 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %.pre
  store i64 1073741823, ptr %73, align 8, !tbaa !5
  br label %.lr.ph93._crit_edge

.lr.ph93._crit_edge:                              ; preds = %.lr.ph93, %72
  %74 = add nsw i64 %.16092, %20
  %. = call i64 @llvm.smin.i64(i64 %74, i64 %16)
  %.not7885 = icmp sgt i64 %71, %.
  br i1 %.not7885, label %.preheader, label %.lr.ph87

.lr.ph87:                                         ; preds = %.lr.ph93._crit_edge
  %75 = add nsw i64 %.16092, -1
  %76 = getelementptr inbounds [100001 x i8], ptr %5, i64 0, i64 %75
  %77 = mul nsw i64 %.16092, %18
  br label %78

.preheader:                                       ; preds = %106, %.lr.ph93._crit_edge
  %.not7988 = icmp sgt i64 %.pre, %.
  br i1 %.not7988, label %._crit_edge, label %.lr.ph90.preheader

.lr.ph90.preheader:                               ; preds = %.preheader
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep, ptr align 8 %scevgep99, i64 %69, i1 false), !tbaa !5
  br label %._crit_edge

78:                                               ; preds = %.lr.ph87, %106
  %.086 = phi i64 [ %71, %.lr.ph87 ], [ %107, %106 ]
  %79 = icmp eq i64 %.086, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  store i64 %77, ptr @current_dp, align 16, !tbaa !5
  br label %106

81:                                               ; preds = %78
  %82 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %.086
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = add nsw i64 %.086, -1
  %85 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %.80 = call i64 @llvm.smin.i64(i64 %83, i64 %86)
  %87 = add nsw i64 %.80, %18
  %88 = getelementptr inbounds [100002 x i64], ptr @previous_dp, i64 0, i64 %84
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = load i8, ptr %76, align 1, !tbaa !14
  %91 = getelementptr inbounds [100001 x i8], ptr %6, i64 0, i64 %84
  %92 = load i8, ptr %91, align 1, !tbaa !14
  %93 = icmp eq i8 %90, %92
  %94 = select i1 %93, i64 0, i64 %35
  %95 = add nsw i64 %94, %89
  %96 = icmp slt i64 %87, %95
  br i1 %96, label %97, label %103

97:                                               ; preds = %81
  %98 = icmp slt i64 %83, %86
  br i1 %98, label %99, label %101

99:                                               ; preds = %97
  %100 = add nsw i64 %83, %18
  br label %103

101:                                              ; preds = %97
  %102 = add nsw i64 %86, %18
  br label %103

103:                                              ; preds = %81, %99, %101
  %104 = phi i64 [ %100, %99 ], [ %102, %101 ], [ %95, %81 ]
  %105 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %.086
  store i64 %104, ptr %105, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %80, %103
  %107 = add nuw nsw i64 %.086, 1
  %.not78.not = icmp slt i64 %.086, %.
  br i1 %.not78.not, label %78, label %.preheader, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph90.preheader, %.preheader
  %108 = add nuw nsw i64 %.16092, 1
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond100.not = icmp eq i64 %indvar.next, %15
  br i1 %exitcond100.not, label %._crit_edge94, label %.lr.ph93, !llvm.loop !16

._crit_edge94:                                    ; preds = %._crit_edge, %.preheader81
  %109 = getelementptr inbounds [100002 x i64], ptr @current_dp, i64 0, i64 %16
  %110 = load i64, ptr %109, align 8, !tbaa !5
  %111 = icmp sgt i64 %110, %20
  br i1 %111, label %112, label %114

112:                                              ; preds = %._crit_edge94
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %.backedge

114:                                              ; preds = %._crit_edge94
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %110)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @.str.2)
  br label %.backedge

._crit_edge98:                                    ; preds = %.backedge, %0
  call void @llvm.lifetime.end.p0(i64 100001, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 100001, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress 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 @llvm.smax.i64(i64, i64) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 = { 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 #3 = { 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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