; LLVM IR from eyangch/competitive-programming :: USACOcontests/platinum/2016.01 (fortmoo)

; 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" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %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 i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %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
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair", align 4
  %27 = alloca %"struct.std::pair", align 4
  store i32 0, ptr %1, align 4
  %28 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %29 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %30 = getelementptr i8, ptr %29, i64 -24
  %31 = load i64, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %31
  %33 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %32, ptr noundef null)
  %34 = load ptr, ptr @stdin, align 8, !tbaa !8
  %35 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %34)
  %36 = load ptr, ptr @stdout, align 8, !tbaa !8
  %37 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %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) %2)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %40 = load i32, ptr %2, align 4, !tbaa !11
  %41 = zext i32 %40 to i64
  %42 = call ptr @llvm.stacksave.p0()
  store ptr %42, ptr %4, align 8
  %43 = alloca %"class.std::__cxx11::basic_string", i64 %41, align 16
  store i64 %41, ptr %5, align 8
  %44 = icmp eq i64 %41, 0
  br i1 %44, label %51, label %45

45:                                               ; preds = %0
  %46 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %43, i64 %41
  br label %47

47:                                               ; preds = %47, %45
  %48 = phi ptr [ %43, %45 ], [ %49, %47 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #7
  %49 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %48, i64 1
  %50 = icmp eq ptr %49, %46
  br i1 %50, label %51, label %47

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

52:                                               ; preds = %63, %51
  %53 = load i32, ptr %6, align 4, !tbaa !11
  %54 = load i32, ptr %2, align 4, !tbaa !11
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %70

57:                                               ; preds = %52
  %58 = load i32, ptr %6, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %43, i64 %59
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %60)
          to label %62 unwind label %66

62:                                               ; preds = %57
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %6, align 4, !tbaa !11
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %6, align 4, !tbaa !11
  br label %52, !llvm.loop !13

66:                                               ; preds = %57
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %353

70:                                               ; preds = %56
  %71 = load i32, ptr %2, align 4, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = load i32, ptr %3, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = mul nuw i64 %72, %74
  %76 = alloca i8, i64 %75, align 16
  store i64 %72, ptr %9, align 8
  store i64 %74, ptr %10, align 8
  %77 = mul nsw i64 0, %74
  %78 = getelementptr inbounds i8, ptr %76, i64 %77
  %79 = load i32, ptr %2, align 4, !tbaa !11
  %80 = sub nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = mul nsw i64 %81, %74
  %83 = getelementptr inbounds i8, ptr %76, i64 %82
  %84 = load i32, ptr %3, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %83, i64 %85
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 0, ptr %11, align 1, !tbaa !15
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %78, ptr noundef %86, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %87 unwind label %93

87:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %131, %87
  %89 = load i32, ptr %12, align 4, !tbaa !11
  %90 = load i32, ptr %2, align 4, !tbaa !11
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %97, label %92

92:                                               ; preds = %88
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %134

93:                                               ; preds = %70
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %353

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %98

98:                                               ; preds = %127, %97
  %99 = load i32, ptr %14, align 4, !tbaa !11
  %100 = load i32, ptr %3, align 4, !tbaa !11
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

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

103:                                              ; preds = %98
  %104 = load i32, ptr %12, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %43, i64 %105
  %107 = load i32, ptr %14, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %106, i64 noundef %108)
          to label %110 unwind label %122

110:                                              ; preds = %103
  %111 = load i8, ptr %109, align 1, !tbaa !17
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 88
  br i1 %113, label %114, label %126

114:                                              ; preds = %110
  %115 = load i32, ptr %12, align 4, !tbaa !11
  %116 = sext i32 %115 to i64
  %117 = mul nsw i64 %116, %74
  %118 = getelementptr inbounds i8, ptr %76, i64 %117
  %119 = load i32, ptr %14, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %118, i64 %120
  store i8 1, ptr %121, align 1, !tbaa !15
  br label %126

122:                                              ; preds = %103
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %353

126:                                              ; preds = %114, %110
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %14, align 4, !tbaa !11
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %14, align 4, !tbaa !11
  br label %98, !llvm.loop !18

130:                                              ; preds = %102
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %12, align 4, !tbaa !11
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %12, align 4, !tbaa !11
  br label %88, !llvm.loop !19

134:                                              ; preds = %92
  %135 = load i32, ptr %2, align 4, !tbaa !11
  %136 = zext i32 %135 to i64
  %137 = load i32, ptr %3, align 4, !tbaa !11
  %138 = zext i32 %137 to i64
  %139 = mul nuw i64 %136, %138
  %140 = alloca i32, i64 %139, align 16
  store i64 %136, ptr %15, align 8
  store i64 %138, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %141

141:                                              ; preds = %174, %134
  %142 = load i32, ptr %17, align 4, !tbaa !11
  %143 = load i32, ptr %2, align 4, !tbaa !11
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %146, label %145

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

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

147:                                              ; preds = %170, %146
  %148 = load i32, ptr %18, align 4, !tbaa !11
  %149 = load i32, ptr %3, align 4, !tbaa !11
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %152, label %151

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

152:                                              ; preds = %147
  %153 = load i32, ptr %17, align 4, !tbaa !11
  %154 = sext i32 %153 to i64
  %155 = mul nsw i64 %154, %74
  %156 = getelementptr inbounds i8, ptr %76, i64 %155
  %157 = load i32, ptr %18, align 4, !tbaa !11
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i8, ptr %156, i64 %158
  %160 = load i8, ptr %159, align 1, !tbaa !15, !range !20, !noundef !21
  %161 = trunc i8 %160 to i1
  %162 = zext i1 %161 to i32
  %163 = load i32, ptr %17, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = mul nsw i64 %164, %138
  %166 = getelementptr inbounds i32, ptr %140, i64 %165
  %167 = load i32, ptr %18, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %166, i64 %168
  store i32 %162, ptr %169, align 4, !tbaa !11
  br label %170

170:                                              ; preds = %152
  %171 = load i32, ptr %18, align 4, !tbaa !11
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %18, align 4, !tbaa !11
  br label %147, !llvm.loop !22

173:                                              ; preds = %151
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %17, align 4, !tbaa !11
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %17, align 4, !tbaa !11
  br label %141, !llvm.loop !23

177:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 1, ptr %19, align 4, !tbaa !11
  br label %178

178:                                              ; preds = %212, %177
  %179 = load i32, ptr %19, align 4, !tbaa !11
  %180 = load i32, ptr %2, align 4, !tbaa !11
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %215

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %208, %183
  %185 = load i32, ptr %20, align 4, !tbaa !11
  %186 = load i32, ptr %3, align 4, !tbaa !11
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %211

189:                                              ; preds = %184
  %190 = load i32, ptr %19, align 4, !tbaa !11
  %191 = sub nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = mul nsw i64 %192, %138
  %194 = getelementptr inbounds i32, ptr %140, i64 %193
  %195 = load i32, ptr %20, align 4, !tbaa !11
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i32, ptr %194, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !11
  %199 = load i32, ptr %19, align 4, !tbaa !11
  %200 = sext i32 %199 to i64
  %201 = mul nsw i64 %200, %138
  %202 = getelementptr inbounds i32, ptr %140, i64 %201
  %203 = load i32, ptr %20, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds i32, ptr %202, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !11
  %207 = add nsw i32 %206, %198
  store i32 %207, ptr %205, align 4, !tbaa !11
  br label %208

208:                                              ; preds = %189
  %209 = load i32, ptr %20, align 4, !tbaa !11
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %20, align 4, !tbaa !11
  br label %184, !llvm.loop !24

211:                                              ; preds = %188
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %19, align 4, !tbaa !11
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %19, align 4, !tbaa !11
  br label %178, !llvm.loop !25

215:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %216

216:                                              ; preds = %330, %215
  %217 = load i32, ptr %22, align 4, !tbaa !11
  %218 = load i32, ptr %2, align 4, !tbaa !11
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %333

221:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %222 = load i32, ptr %22, align 4, !tbaa !11
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %23, align 4, !tbaa !11
  br label %224

224:                                              ; preds = %326, %221
  %225 = load i32, ptr %23, align 4, !tbaa !11
  %226 = load i32, ptr %2, align 4, !tbaa !11
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %224
  store i32 26, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %329

229:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 -1, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %230

230:                                              ; preds = %322, %229
  %231 = load i32, ptr %25, align 4, !tbaa !11
  %232 = load i32, ptr %3, align 4, !tbaa !11
  %233 = icmp slt i32 %231, %232
  br i1 %233, label %235, label %234

234:                                              ; preds = %230
  store i32 29, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %325

235:                                              ; preds = %230
  %236 = load i32, ptr %22, align 4, !tbaa !11
  %237 = sext i32 %236 to i64
  %238 = mul nsw i64 %237, %74
  %239 = getelementptr inbounds i8, ptr %76, i64 %238
  %240 = load i32, ptr %25, align 4, !tbaa !11
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds i8, ptr %239, i64 %241
  %243 = load i8, ptr %242, align 1, !tbaa !15, !range !20, !noundef !21
  %244 = trunc i8 %243 to i1
  br i1 %244, label %255, label %245

245:                                              ; preds = %235
  %246 = load i32, ptr %23, align 4, !tbaa !11
  %247 = sext i32 %246 to i64
  %248 = mul nsw i64 %247, %74
  %249 = getelementptr inbounds i8, ptr %76, i64 %248
  %250 = load i32, ptr %25, align 4, !tbaa !11
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds i8, ptr %249, i64 %251
  %253 = load i8, ptr %252, align 1, !tbaa !15, !range !20, !noundef !21
  %254 = trunc i8 %253 to i1
  br i1 %254, label %255, label %256

255:                                              ; preds = %245, %235
  store i32 -1, ptr %24, align 4, !tbaa !11
  br label %322

256:                                              ; preds = %245
  %257 = load i32, ptr %22, align 4, !tbaa !11
  %258 = sext i32 %257 to i64
  %259 = mul nsw i64 %258, %138
  %260 = getelementptr inbounds i32, ptr %140, i64 %259
  %261 = load i32, ptr %25, align 4, !tbaa !11
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds i32, ptr %260, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !11
  %265 = load i32, ptr %23, align 4, !tbaa !11
  %266 = sext i32 %265 to i64
  %267 = mul nsw i64 %266, %138
  %268 = getelementptr inbounds i32, ptr %140, i64 %267
  %269 = load i32, ptr %25, align 4, !tbaa !11
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i32, ptr %268, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !11
  %273 = icmp eq i32 %264, %272
  br i1 %273, label %274, label %321

274:                                              ; preds = %256
  %275 = load i32, ptr %24, align 4, !tbaa !11
  %276 = icmp eq i32 %275, -1
  br i1 %276, label %277, label %279

277:                                              ; preds = %274
  %278 = load i32, ptr %25, align 4, !tbaa !11
  store i32 %278, ptr %24, align 4, !tbaa !11
  br label %279

279:                                              ; preds = %277, %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %280 unwind label %311

280:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %281 unwind label %315

281:                                              ; preds = %280
  %282 = load i32, ptr %21, align 4, !tbaa !11
  %283 = getelementptr inbounds %"struct.std::pair", ptr %27, i32 0, i32 0
  %284 = load i32, ptr %283, align 4, !tbaa !26
  %285 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 0
  %286 = load i32, ptr %285, align 4, !tbaa !26
  %287 = sub nsw i32 %284, %286
  %288 = add nsw i32 %287, 1
  %289 = getelementptr inbounds %"struct.std::pair", ptr %27, i32 0, i32 1
  %290 = load i32, ptr %289, align 4, !tbaa !28
  %291 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
  %292 = load i32, ptr %291, align 4, !tbaa !28
  %293 = sub nsw i32 %290, %292
  %294 = add nsw i32 %293, 1
  %295 = mul nsw i32 %288, %294
  %296 = icmp slt i32 %282, %295
  br i1 %296, label %297, label %319

297:                                              ; preds = %281
  %298 = getelementptr inbounds %"struct.std::pair", ptr %27, i32 0, i32 0
  %299 = load i32, ptr %298, align 4, !tbaa !26
  %300 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 0
  %301 = load i32, ptr %300, align 4, !tbaa !26
  %302 = sub nsw i32 %299, %301
  %303 = add nsw i32 %302, 1
  %304 = getelementptr inbounds %"struct.std::pair", ptr %27, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !28
  %306 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
  %307 = load i32, ptr %306, align 4, !tbaa !28
  %308 = sub nsw i32 %305, %307
  %309 = add nsw i32 %308, 1
  %310 = mul nsw i32 %303, %309
  store i32 %310, ptr %21, align 4, !tbaa !11
  br label %319

311:                                              ; preds = %279
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %7, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %8, align 4
  br label %320

315:                                              ; preds = %280
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %7, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %320

319:                                              ; preds = %297, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %321

320:                                              ; preds = %315, %311
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %345

321:                                              ; preds = %319, %256
  br label %322

322:                                              ; preds = %321, %255
  %323 = load i32, ptr %25, align 4, !tbaa !11
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %25, align 4, !tbaa !11
  br label %230, !llvm.loop !29

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

326:                                              ; preds = %325
  %327 = load i32, ptr %23, align 4, !tbaa !11
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %23, align 4, !tbaa !11
  br label %224, !llvm.loop !30

329:                                              ; preds = %228
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %22, align 4, !tbaa !11
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %22, align 4, !tbaa !11
  br label %216, !llvm.loop !31

333:                                              ; preds = %220
  %334 = load i32, ptr %21, align 4, !tbaa !11
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %334)
          to label %336 unwind label %341

336:                                              ; preds = %333
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %335, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %338 unwind label %341

338:                                              ; preds = %336
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %339 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %43, i64 %41
  %340 = icmp eq ptr %43, %339
  br i1 %340, label %350, label %346

341:                                              ; preds = %336, %333
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %7, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %8, align 4
  br label %345

345:                                              ; preds = %341, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %353

346:                                              ; preds = %346, %338
  %347 = phi ptr [ %339, %338 ], [ %348, %346 ]
  %348 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %347, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %348) #7
  %349 = icmp eq ptr %348, %43
  br i1 %349, label %350, label %346

350:                                              ; preds = %346, %338
  %351 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %351)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %352 = load i32, ptr %1, align 4
  ret i32 %352

353:                                              ; preds = %345, %122, %93, %66
  %354 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %43, i64 %41
  %355 = icmp eq ptr %43, %354
  br i1 %355, label %360, label %356

356:                                              ; preds = %356, %353
  %357 = phi ptr [ %354, %353 ], [ %358, %356 ]
  %358 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %357, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %358) #7
  %359 = icmp eq ptr %358, %43
  br i1 %359, label %360, label %356

360:                                              ; preds = %356, %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %361

361:                                              ; preds = %360
  %362 = load ptr, ptr %7, align 8
  %363 = load i32, ptr %8, align 4
  %364 = insertvalue { ptr, i32 } poison, ptr %362, 0
  %365 = insertvalue { ptr, i32 } %364, i32 %363, 1
  resume { ptr, i32 } %365
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #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)) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = !{!27, !12, i64 0}
!27 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!28 = !{!27, !12, i64 4}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, 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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = load ptr, ptr @stdin, align 8, !tbaa !8
  %17 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %16)
  %18 = load ptr, ptr @stdout, align 8, !tbaa !8
  %19 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %20 = 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)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %22 = load i32, ptr %1, align 4, !tbaa !11
  %23 = zext i32 %22 to i64
  %24 = call ptr @llvm.stacksave.p0()
  %25 = alloca %"class.std::__cxx11::basic_string", i64 %23, align 16
  %26 = icmp eq i32 %22, 0
  br i1 %26, label %.loopexit58, label %27

27:                                               ; preds = %0
  %28 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 %23
  br label %29

29:                                               ; preds = %29, %27
  %30 = phi ptr [ %25, %27 ], [ %31, %29 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  %31 = getelementptr inbounds i8, ptr %30, i64 32
  %32 = icmp eq ptr %31, %28
  br i1 %32, label %.loopexit58, label %29

.loopexit58:                                      ; preds = %29, %0
  %33 = load i32, ptr %1, align 4, !tbaa !11
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %48, %.loopexit58
  %.lcssa59 = phi i32 [ %33, %.loopexit58 ], [ %49, %48 ]
  %35 = zext i32 %.lcssa59 to i64
  %36 = load i32, ptr %2, align 4, !tbaa !11
  %37 = zext i32 %36 to i64
  %38 = mul nuw i64 %37, %35
  %39 = alloca i8, i64 %38, align 16
  %40 = add nsw i32 %.lcssa59, -1
  %41 = sext i32 %40 to i64
  %42 = mul nsw i64 %37, %41
  %43 = getelementptr inbounds i8, ptr %39, i64 %42
  %44 = sext i32 %36 to i64
  %45 = getelementptr inbounds i8, ptr %43, i64 %44
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  store i8 0, ptr %3, align 1, !tbaa !13
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %39, ptr noundef nonnull %45, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %54 unwind label %89

.lr.ph:                                           ; preds = %.loopexit58, %48
  %indvars.iv = phi i64 [ %indvars.iv.next, %48 ], [ 0, %.loopexit58 ]
  %46 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 %indvars.iv
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %48 unwind label %52

48:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load i32, ptr %1, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %.lr.ph, label %._crit_edge, !llvm.loop !15

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %206

54:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  %55 = load i32, ptr %1, align 4, !tbaa !11
  %56 = icmp sgt i32 %55, 0
  %.pre127 = load i32, ptr %2, align 4, !tbaa !11
  br i1 %56, label %.preheader57.lr.ph, label %._crit_edge76.thread

.preheader57.lr.ph:                               ; preds = %54
  %57 = icmp sgt i32 %.pre127, 0
  br i1 %57, label %.preheader57, label %.preheader56.lr.ph.thread

.preheader56.lr.ph.thread:                        ; preds = %.preheader57.lr.ph
  %58 = zext nneg i32 %55 to i64
  %59 = zext i32 %.pre127 to i64
  %60 = mul nuw nsw i64 %59, %58
  %61 = alloca i32, i64 %60, align 16
  br label %.preheader55

.preheader57:                                     ; preds = %.preheader57.lr.ph, %._crit_edge64
  %62 = phi i32 [ %91, %._crit_edge64 ], [ %55, %.preheader57.lr.ph ]
  %63 = phi i32 [ %92, %._crit_edge64 ], [ %.pre127, %.preheader57.lr.ph ]
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %._crit_edge64 ], [ 0, %.preheader57.lr.ph ]
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %.preheader57
  %65 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 %indvars.iv106
  %66 = mul nuw nsw i64 %indvars.iv106, %37
  %67 = getelementptr inbounds i8, ptr %39, i64 %66
  br label %95

._crit_edge66:                                    ; preds = %._crit_edge64
  %68 = zext i32 %91 to i64
  %69 = zext i32 %92 to i64
  %70 = mul nuw i64 %69, %68
  %71 = alloca i32, i64 %70, align 16
  %72 = icmp sgt i32 %91, 0
  br i1 %72, label %.preheader56.lr.ph, label %._crit_edge76.thread

.preheader56.lr.ph:                               ; preds = %._crit_edge66
  %73 = icmp sgt i32 %92, 0
  br i1 %73, label %.preheader56.us.preheader, label %.preheader55

.preheader56.us.preheader:                        ; preds = %.preheader56.lr.ph
  %min.iters.check = icmp ult i32 %92, 8
  %n.vec = and i64 %69, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %69
  br label %.preheader56.us

.preheader56.us:                                  ; preds = %.preheader56.us.preheader, %._crit_edge70.us
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %._crit_edge70.us ], [ 0, %.preheader56.us.preheader ]
  %74 = mul nuw nsw i64 %indvars.iv112, %37
  %75 = getelementptr inbounds i8, ptr %39, i64 %74
  %76 = mul nuw nsw i64 %indvars.iv112, %69
  %77 = getelementptr inbounds i32, ptr %71, i64 %76
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader56.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader56.us ]
  %78 = getelementptr inbounds i8, ptr %75, i64 %index
  %79 = getelementptr inbounds i8, ptr %78, i64 4
  %wide.load = load <4 x i8>, ptr %78, align 1, !tbaa !13
  %wide.load157 = load <4 x i8>, ptr %79, align 1, !tbaa !13
  %80 = zext <4 x i8> %wide.load to <4 x i32>
  %81 = zext <4 x i8> %wide.load157 to <4 x i32>
  %82 = getelementptr inbounds i32, ptr %77, i64 %index
  %83 = getelementptr inbounds i8, ptr %82, i64 16
  store <4 x i32> %80, ptr %82, align 4, !tbaa !11
  store <4 x i32> %81, ptr %83, align 4, !tbaa !11
  %index.next = add nuw i64 %index, 8
  %84 = icmp eq i64 %index.next, %n.vec
  br i1 %84, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge70.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader56.us
  %indvars.iv109.ph = phi i64 [ 0, %.preheader56.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %scalar.ph ], [ %indvars.iv109.ph, %scalar.ph.preheader ]
  %85 = getelementptr inbounds i8, ptr %75, i64 %indvars.iv109
  %86 = load i8, ptr %85, align 1, !tbaa !13, !range !20, !noundef !21
  %87 = zext nneg i8 %86 to i32
  %88 = getelementptr inbounds i32, ptr %77, i64 %indvars.iv109
  store i32 %87, ptr %88, align 4, !tbaa !11
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next110, %69
  br i1 %exitcond.not, label %._crit_edge70.us, label %scalar.ph, !llvm.loop !22

._crit_edge70.us:                                 ; preds = %scalar.ph, %middle.block
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next113, %68
  br i1 %exitcond116.not, label %.preheader55, label %.preheader56.us, !llvm.loop !23

89:                                               ; preds = %._crit_edge
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  br label %206

._crit_edge64.loopexit:                           ; preds = %101
  %.pre = load i32, ptr %1, align 4, !tbaa !11
  br label %._crit_edge64

._crit_edge64:                                    ; preds = %._crit_edge64.loopexit, %.preheader57
  %91 = phi i32 [ %.pre, %._crit_edge64.loopexit ], [ %62, %.preheader57 ]
  %92 = phi i32 [ %102, %._crit_edge64.loopexit ], [ %63, %.preheader57 ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %93 = sext i32 %91 to i64
  %94 = icmp slt i64 %indvars.iv.next107, %93
  br i1 %94, label %.preheader57, label %._crit_edge66, !llvm.loop !24

95:                                               ; preds = %.lr.ph63, %101
  %indvars.iv103 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next104, %101 ]
  %96 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %65, i64 noundef %indvars.iv103)
  %97 = load i8, ptr %96, align 1, !tbaa !26
  %98 = icmp eq i8 %97, 88
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = getelementptr inbounds i8, ptr %67, i64 %indvars.iv103
  store i8 1, ptr %100, align 1, !tbaa !13
  br label %101

101:                                              ; preds = %95, %99
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %102 = load i32, ptr %2, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next104, %103
  br i1 %104, label %95, label %._crit_edge64.loopexit, !llvm.loop !27

._crit_edge76.thread:                             ; preds = %54, %._crit_edge66
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  br label %._crit_edge95

.preheader55:                                     ; preds = %._crit_edge70.us, %.preheader56.lr.ph, %.preheader56.lr.ph.thread
  %105 = phi ptr [ %61, %.preheader56.lr.ph.thread ], [ %71, %.preheader56.lr.ph ], [ %71, %._crit_edge70.us ]
  %106 = phi i64 [ %59, %.preheader56.lr.ph.thread ], [ %69, %.preheader56.lr.ph ], [ %69, %._crit_edge70.us ]
  %107 = phi i64 [ %58, %.preheader56.lr.ph.thread ], [ %68, %.preheader56.lr.ph ], [ %68, %._crit_edge70.us ]
  %108 = phi i32 [ %55, %.preheader56.lr.ph.thread ], [ %91, %.preheader56.lr.ph ], [ %91, %._crit_edge70.us ]
  %109 = phi i32 [ %.pre127, %.preheader56.lr.ph.thread ], [ %92, %.preheader56.lr.ph ], [ %92, %._crit_edge70.us ]
  %110 = icmp sgt i32 %108, 1
  %111 = icmp sgt i32 %109, 0
  %or.cond = select i1 %110, i1 %111, i1 false
  br i1 %or.cond, label %.preheader54.us.preheader, label %._crit_edge76

.preheader54.us.preheader:                        ; preds = %.preheader55
  %min.iters.check160 = icmp ult i64 %106, 8
  %n.vec163 = and i64 %106, 4294967288
  %cmp.n172 = icmp eq i64 %106, %n.vec163
  br label %.preheader54.us

.preheader54.us:                                  ; preds = %.preheader54.us.preheader, %._crit_edge74.us
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge74.us ], [ 1, %.preheader54.us.preheader ]
  %112 = add nsw i64 %indvars.iv122, -1
  %113 = mul nuw nsw i64 %112, %106
  %114 = getelementptr inbounds i32, ptr %105, i64 %113
  %115 = mul nuw nsw i64 %indvars.iv122, %106
  %116 = getelementptr inbounds i32, ptr %105, i64 %115
  br i1 %min.iters.check160, label %scalar.ph159.preheader, label %vector.body165

vector.body165:                                   ; preds = %.preheader54.us, %vector.body165
  %index166 = phi i64 [ %index.next171, %vector.body165 ], [ 0, %.preheader54.us ]
  %117 = getelementptr inbounds i32, ptr %114, i64 %index166
  %118 = getelementptr inbounds i8, ptr %117, i64 16
  %wide.load167 = load <4 x i32>, ptr %117, align 4, !tbaa !11
  %wide.load168 = load <4 x i32>, ptr %118, align 4, !tbaa !11
  %119 = getelementptr inbounds i32, ptr %116, i64 %index166
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  %wide.load169 = load <4 x i32>, ptr %119, align 4, !tbaa !11
  %wide.load170 = load <4 x i32>, ptr %120, align 4, !tbaa !11
  %121 = add nsw <4 x i32> %wide.load169, %wide.load167
  %122 = add nsw <4 x i32> %wide.load170, %wide.load168
  store <4 x i32> %121, ptr %119, align 4, !tbaa !11
  store <4 x i32> %122, ptr %120, align 4, !tbaa !11
  %index.next171 = add nuw i64 %index166, 8
  %123 = icmp eq i64 %index.next171, %n.vec163
  br i1 %123, label %middle.block158, label %vector.body165, !llvm.loop !28

middle.block158:                                  ; preds = %vector.body165
  br i1 %cmp.n172, label %._crit_edge74.us, label %scalar.ph159.preheader

scalar.ph159.preheader:                           ; preds = %middle.block158, %.preheader54.us
  %indvars.iv117.ph = phi i64 [ 0, %.preheader54.us ], [ %n.vec163, %middle.block158 ]
  br label %scalar.ph159

scalar.ph159:                                     ; preds = %scalar.ph159.preheader, %scalar.ph159
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %scalar.ph159 ], [ %indvars.iv117.ph, %scalar.ph159.preheader ]
  %124 = getelementptr inbounds i32, ptr %114, i64 %indvars.iv117
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = getelementptr inbounds i32, ptr %116, i64 %indvars.iv117
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = add nsw i32 %127, %125
  store i32 %128, ptr %126, align 4, !tbaa !11
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next118, %106
  br i1 %exitcond121.not, label %._crit_edge74.us, label %scalar.ph159, !llvm.loop !29

._crit_edge74.us:                                 ; preds = %scalar.ph159, %middle.block158
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %107
  br i1 %exitcond126.not, label %._crit_edge76, label %.preheader54.us, !llvm.loop !30

._crit_edge76:                                    ; preds = %._crit_edge74.us, %.preheader55
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %130

._crit_edge95:                                    ; preds = %._crit_edge88, %._crit_edge76.thread
  %.0.lcssa = phi i32 [ 0, %._crit_edge76.thread ], [ %.1.lcssa, %._crit_edge88 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0.lcssa)
          to label %197 unwind label %201

130:                                              ; preds = %._crit_edge76, %._crit_edge88
  %131 = phi i32 [ %108, %._crit_edge76 ], [ %137, %._crit_edge88 ]
  %132 = phi i32 [ %109, %._crit_edge76 ], [ %138, %._crit_edge88 ]
  %133 = phi i32 [ %109, %._crit_edge76 ], [ %139, %._crit_edge88 ]
  %134 = phi i32 [ %109, %._crit_edge76 ], [ %140, %._crit_edge88 ]
  %storemerge48.in83 = phi i32 [ 0, %._crit_edge76 ], [ %.pre-phi, %._crit_edge88 ]
  %.092 = phi i32 [ 0, %._crit_edge76 ], [ %.1.lcssa, %._crit_edge88 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %storemerge4884 = add nsw i32 %storemerge48.in83, 1
  store i32 %storemerge4884, ptr %5, align 4, !tbaa !11
  %135 = icmp slt i32 %storemerge4884, %131
  %136 = icmp sgt i32 %134, 0
  %or.cond173 = select i1 %135, i1 %136, i1 false
  br i1 %or.cond173, label %.lr.ph87.split, label %._crit_edge88

._crit_edge88.loopexit:                           ; preds = %._crit_edge81
  %.pre134 = load i32, ptr %4, align 4, !tbaa !11
  %.pre135 = add nsw i32 %.pre134, 1
  br label %._crit_edge88

._crit_edge88:                                    ; preds = %._crit_edge88.loopexit, %130
  %.pre-phi = phi i32 [ %.pre135, %._crit_edge88.loopexit ], [ %storemerge4884, %130 ]
  %137 = phi i32 [ %147, %._crit_edge88.loopexit ], [ %131, %130 ]
  %138 = phi i32 [ %149, %._crit_edge88.loopexit ], [ %132, %130 ]
  %139 = phi i32 [ %150, %._crit_edge88.loopexit ], [ %133, %130 ]
  %140 = phi i32 [ %150, %._crit_edge88.loopexit ], [ %134, %130 ]
  %.1.lcssa = phi i32 [ %.2.lcssa, %._crit_edge88.loopexit ], [ %.092, %130 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  store i32 %.pre-phi, ptr %4, align 4, !tbaa !11
  %141 = icmp slt i32 %.pre-phi, %137
  br i1 %141, label %130, label %._crit_edge95, !llvm.loop !31

.lr.ph87.split:                                   ; preds = %130, %._crit_edge81
  %142 = phi i32 [ %147, %._crit_edge81 ], [ %131, %130 ]
  %143 = phi i32 [ %148, %._crit_edge81 ], [ %131, %130 ]
  %storemerge48.in131 = phi i32 [ %storemerge48, %._crit_edge81 ], [ %storemerge4884, %130 ]
  %144 = phi i32 [ %149, %._crit_edge81 ], [ %132, %130 ]
  %145 = phi i32 [ %150, %._crit_edge81 ], [ %133, %130 ]
  %.185 = phi i32 [ %.2.lcssa, %._crit_edge81 ], [ %.092, %130 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 -1, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !11
  %146 = icmp sgt i32 %145, 0
  br i1 %146, label %.lr.ph80, label %._crit_edge81

._crit_edge81.loopexit:                           ; preds = %192
  %storemerge48.in.pre = load i32, ptr %5, align 4, !tbaa !11
  %.pre133 = load i32, ptr %1, align 4, !tbaa !11
  br label %._crit_edge81

._crit_edge81:                                    ; preds = %._crit_edge81.loopexit, %.lr.ph87.split
  %147 = phi i32 [ %142, %.lr.ph87.split ], [ %.pre133, %._crit_edge81.loopexit ]
  %148 = phi i32 [ %143, %.lr.ph87.split ], [ %.pre133, %._crit_edge81.loopexit ]
  %storemerge48.in = phi i32 [ %storemerge48.in131, %.lr.ph87.split ], [ %storemerge48.in.pre, %._crit_edge81.loopexit ]
  %149 = phi i32 [ %144, %.lr.ph87.split ], [ %193, %._crit_edge81.loopexit ]
  %150 = phi i32 [ %145, %.lr.ph87.split ], [ %193, %._crit_edge81.loopexit ]
  %.2.lcssa = phi i32 [ %.185, %.lr.ph87.split ], [ %.4, %._crit_edge81.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %storemerge48 = add nsw i32 %storemerge48.in, 1
  store i32 %storemerge48, ptr %5, align 4, !tbaa !11
  %151 = icmp slt i32 %storemerge48, %148
  br i1 %151, label %.lr.ph87.split, label %._crit_edge88.loopexit, !llvm.loop !32

.lr.ph80:                                         ; preds = %.lr.ph87.split, %192
  %152 = phi i32 [ %193, %192 ], [ %144, %.lr.ph87.split ]
  %.278 = phi i32 [ %.4, %192 ], [ %.185, %.lr.ph87.split ]
  %storemerge4977 = phi i32 [ %195, %192 ], [ 0, %.lr.ph87.split ]
  %153 = load i32, ptr %4, align 4, !tbaa !11
  %154 = sext i32 %153 to i64
  %155 = mul nsw i64 %154, %37
  %156 = getelementptr inbounds i8, ptr %39, i64 %155
  %157 = sext i32 %storemerge4977 to i64
  %158 = getelementptr inbounds i8, ptr %156, i64 %157
  %159 = load i8, ptr %158, align 1, !tbaa !13, !range !20, !noundef !21
  %160 = trunc nuw i8 %159 to i1
  br i1 %160, label %169, label %161

161:                                              ; preds = %.lr.ph80
  %162 = load i32, ptr %5, align 4, !tbaa !11
  %163 = sext i32 %162 to i64
  %164 = mul nsw i64 %163, %37
  %165 = getelementptr inbounds i8, ptr %39, i64 %164
  %166 = getelementptr inbounds i8, ptr %165, i64 %157
  %167 = load i8, ptr %166, align 1, !tbaa !13, !range !20, !noundef !21
  %168 = trunc nuw i8 %167 to i1
  br i1 %168, label %169, label %170

169:                                              ; preds = %161, %.lr.ph80
  store i32 -1, ptr %6, align 4, !tbaa !11
  br label %192

170:                                              ; preds = %161
  %171 = mul nsw i64 %106, %154
  %172 = getelementptr inbounds i32, ptr %105, i64 %171
  %173 = getelementptr inbounds i32, ptr %172, i64 %157
  %174 = load i32, ptr %173, align 4, !tbaa !11
  %175 = mul nsw i64 %106, %163
  %176 = getelementptr inbounds i32, ptr %105, i64 %175
  %177 = getelementptr inbounds i32, ptr %176, i64 %157
  %178 = load i32, ptr %177, align 4, !tbaa !11
  %179 = icmp eq i32 %174, %178
  br i1 %179, label %180, label %192

180:                                              ; preds = %170
  %181 = load i32, ptr %6, align 4, !tbaa !11
  %182 = icmp eq i32 %181, -1
  br i1 %182, label %183, label %184

183:                                              ; preds = %180
  store i32 %storemerge4977, ptr %6, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %183, %180
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %185 = load <2 x i32>, ptr %9, align 8, !tbaa !11
  %186 = load <2 x i32>, ptr %8, align 8, !tbaa !11
  %187 = add <2 x i32> %185, <i32 1, i32 1>
  %188 = sub <2 x i32> %187, %186
  %189 = extractelement <2 x i32> %188, i64 0
  %190 = extractelement <2 x i32> %188, i64 1
  %191 = mul nsw i32 %190, %189
  %spec.select = call i32 @llvm.smax.i32(i32 %.278, i32 %191)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %.pre129 = load i32, ptr %7, align 4, !tbaa !11
  %.pre130 = load i32, ptr %2, align 4, !tbaa !11
  br label %192

192:                                              ; preds = %170, %184, %169
  %193 = phi i32 [ %152, %169 ], [ %.pre130, %184 ], [ %152, %170 ]
  %194 = phi i32 [ %storemerge4977, %169 ], [ %.pre129, %184 ], [ %storemerge4977, %170 ]
  %.4 = phi i32 [ %.278, %169 ], [ %spec.select, %184 ], [ %.278, %170 ]
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %7, align 4, !tbaa !11
  %196 = icmp slt i32 %195, %193
  br i1 %196, label %.lr.ph80, label %._crit_edge81.loopexit, !llvm.loop !33

197:                                              ; preds = %._crit_edge95
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %199 unwind label %201

199:                                              ; preds = %197
  br i1 %26, label %.loopexit53, label %.preheader52.preheader

.preheader52.preheader:                           ; preds = %199
  %200 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 %23
  br label %.preheader52

201:                                              ; preds = %197, %._crit_edge95
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %206

.preheader52:                                     ; preds = %.preheader52.preheader, %.preheader52
  %203 = phi ptr [ %204, %.preheader52 ], [ %200, %.preheader52.preheader ]
  %204 = getelementptr inbounds i8, ptr %203, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %204) #8
  %205 = icmp eq ptr %204, %25
  br i1 %205, label %.loopexit53, label %.preheader52

.loopexit53:                                      ; preds = %.preheader52, %199
  call void @llvm.stackrestore.p0(ptr %24)
  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

206:                                              ; preds = %201, %89, %52
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %202, %201 ], [ %90, %89 ]
  br i1 %26, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %206
  %207 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 %23
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %208 = phi ptr [ %209, %.preheader ], [ %207, %.preheader.preheader ]
  %209 = getelementptr inbounds i8, ptr %208, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %209) #8
  %210 = icmp eq ptr %209, %25
  br i1 %210, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress 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)) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !16, !19, !18}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16, !25}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = !{!10, !10, i64 0}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16, !18, !19}
!29 = distinct !{!29, !16, !19, !18}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16, !25}
!33 = distinct !{!33, !16}


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