; LLVM IR from abeaumont/competitive-programming :: codechef/oct17/chefgp.ll (Z1fv)

; 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" }
%"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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z1fv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %36 = 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) %1)
          to label %37 unwind label %48

37:                                               ; preds = %0
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %39 unwind label %48

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %41 unwind label %48

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %71, %41
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %74

48:                                               ; preds = %39, %37, %0
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %4, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %5, align 4
  br label %544

52:                                               ; preds = %42
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %54)
          to label %56 unwind label %63

56:                                               ; preds = %52
  %57 = load i8, ptr %55, align 1, !tbaa !9
  %58 = sext i8 %57 to i32
  %59 = icmp eq i32 %58, 97
  br i1 %59, label %60, label %67

60:                                               ; preds = %56
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %6, align 4, !tbaa !5
  br label %70

63:                                               ; preds = %52
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %4, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %543

67:                                               ; preds = %56
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %67, %60
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %8, align 4, !tbaa !5
  br label %42, !llvm.loop !10

74:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = add nsw i32 %75, %76
  %78 = sub nsw i32 %77, 1
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = sdiv i32 %78, %79
  store i32 %80, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = add nsw i32 %81, %82
  %84 = sub nsw i32 %83, 1
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = sdiv i32 %84, %85
  store i32 %86, ptr %10, align 4, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %179

90:                                               ; preds = %74
  br label %91

91:                                               ; preds = %136, %90
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = icmp sge i32 %92, %93
  br i1 %94, label %95, label %99

95:                                               ; preds = %91
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = icmp sge i32 %96, %97
  br label %99

99:                                               ; preds = %95, %91
  %100 = phi i1 [ false, %91 ], [ %98, %95 ]
  br i1 %100, label %101, label %140

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %110, %101
  %103 = load i32, ptr %11, align 4, !tbaa !5
  %104 = load i32, ptr %2, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %117

107:                                              ; preds = %102
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %109 unwind label %113

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %11, align 4, !tbaa !5
  br label %102, !llvm.loop !12

113:                                              ; preds = %107
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %4, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %542

117:                                              ; preds = %106
  %118 = load i32, ptr %2, align 4, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = sub nsw i32 %119, %118
  store i32 %120, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %129, %117
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %136

126:                                              ; preds = %121
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %128 unwind label %132

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %12, align 4, !tbaa !5
  br label %121, !llvm.loop !13

132:                                              ; preds = %126
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %4, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %542

136:                                              ; preds = %125
  %137 = load i32, ptr %3, align 4, !tbaa !5
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = sub nsw i32 %138, %137
  store i32 %139, ptr %7, align 4, !tbaa !5
  br label %91, !llvm.loop !14

140:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %149, %140
  %142 = load i32, ptr %13, align 4, !tbaa !5
  %143 = load i32, ptr %6, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %156

146:                                              ; preds = %141
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %148 unwind label %152

148:                                              ; preds = %146
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %13, align 4, !tbaa !5
  br label %141, !llvm.loop !15

152:                                              ; preds = %146
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %4, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %542

156:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %165, %156
  %158 = load i32, ptr %14, align 4, !tbaa !5
  %159 = load i32, ptr %7, align 4, !tbaa !5
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %172

162:                                              ; preds = %157
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %164 unwind label %168

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %14, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %14, align 4, !tbaa !5
  br label %157, !llvm.loop !16

168:                                              ; preds = %162
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %4, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %542

172:                                              ; preds = %161
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %174 unwind label %175

174:                                              ; preds = %172
  store i32 1, ptr %15, align 4
  br label %541

175:                                              ; preds = %538, %492, %359, %313, %172
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %4, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %5, align 4
  br label %542

179:                                              ; preds = %74
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = icmp sgt i32 %180, %181
  br i1 %182, label %183, label %289

183:                                              ; preds = %179
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = icmp sge i32 %184, %185
  br i1 %186, label %187, label %289

187:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %188 = load i32, ptr %7, align 4, !tbaa !5
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = sdiv i32 %188, %189
  store i32 %190, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %191 = load i32, ptr %7, align 4, !tbaa !5
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = srem i32 %191, %192
  store i32 %193, ptr %17, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %248, %187
  %195 = load i32, ptr %6, align 4, !tbaa !5
  %196 = load i32, ptr %2, align 4, !tbaa !5
  %197 = icmp sge i32 %195, %196
  br i1 %197, label %198, label %249

198:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %207, %198
  %200 = load i32, ptr %18, align 4, !tbaa !5
  %201 = load i32, ptr %2, align 4, !tbaa !5
  %202 = icmp slt i32 %200, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %199
  store i32 21, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %214

204:                                              ; preds = %199
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %206 unwind label %210

206:                                              ; preds = %204
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %18, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %18, align 4, !tbaa !5
  br label %199, !llvm.loop !17

210:                                              ; preds = %204
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %4, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %288

214:                                              ; preds = %203
  %215 = load i32, ptr %2, align 4, !tbaa !5
  %216 = load i32, ptr %6, align 4, !tbaa !5
  %217 = sub nsw i32 %216, %215
  store i32 %217, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %218 = load i32, ptr %16, align 4, !tbaa !5
  %219 = load i32, ptr %17, align 4, !tbaa !5
  %220 = icmp ne i32 %219, 0
  %221 = zext i1 %220 to i64
  %222 = select i1 %220, i32 1, i32 0
  %223 = add nsw i32 %218, %222
  store i32 %223, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %224

224:                                              ; preds = %232, %214
  %225 = load i32, ptr %20, align 4, !tbaa !5
  %226 = load i32, ptr %19, align 4, !tbaa !5
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %224
  store i32 24, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %239

229:                                              ; preds = %224
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %231 unwind label %235

231:                                              ; preds = %229
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %20, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %20, align 4, !tbaa !5
  br label %224, !llvm.loop !18

235:                                              ; preds = %229
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %4, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %288

239:                                              ; preds = %228
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = load i32, ptr %7, align 4, !tbaa !5
  %242 = sub nsw i32 %241, %240
  store i32 %242, ptr %7, align 4, !tbaa !5
  %243 = load i32, ptr %17, align 4, !tbaa !5
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %248

245:                                              ; preds = %239
  %246 = load i32, ptr %17, align 4, !tbaa !5
  %247 = add nsw i32 %246, -1
  store i32 %247, ptr %17, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %245, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %194, !llvm.loop !19

249:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %258, %249
  %251 = load i32, ptr %21, align 4, !tbaa !5
  %252 = load i32, ptr %6, align 4, !tbaa !5
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 27, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %265

255:                                              ; preds = %250
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %257 unwind label %261

257:                                              ; preds = %255
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %21, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %21, align 4, !tbaa !5
  br label %250, !llvm.loop !20

261:                                              ; preds = %255
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %4, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %288

265:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %266

266:                                              ; preds = %274, %265
  %267 = load i32, ptr %22, align 4, !tbaa !5
  %268 = load i32, ptr %7, align 4, !tbaa !5
  %269 = icmp slt i32 %267, %268
  br i1 %269, label %271, label %270

270:                                              ; preds = %266
  store i32 30, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %281

271:                                              ; preds = %266
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %273 unwind label %277

273:                                              ; preds = %271
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %22, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %22, align 4, !tbaa !5
  br label %266, !llvm.loop !21

277:                                              ; preds = %271
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %4, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %288

281:                                              ; preds = %270
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %283 unwind label %284

283:                                              ; preds = %281
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %541

284:                                              ; preds = %281
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %4, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %5, align 4
  br label %288

288:                                              ; preds = %284, %277, %261, %235, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %542

289:                                              ; preds = %183, %179
  %290 = load i32, ptr %9, align 4, !tbaa !5
  %291 = load i32, ptr %10, align 4, !tbaa !5
  %292 = icmp sgt i32 %290, %291
  br i1 %292, label %293, label %362

293:                                              ; preds = %289
  br label %294

294:                                              ; preds = %318, %293
  %295 = load i32, ptr %7, align 4, !tbaa !5
  %296 = icmp sgt i32 %295, 0
  br i1 %296, label %297, label %321

297:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %298

298:                                              ; preds = %306, %297
  %299 = load i32, ptr %23, align 4, !tbaa !5
  %300 = load i32, ptr %2, align 4, !tbaa !5
  %301 = icmp slt i32 %299, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %298
  store i32 35, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %313

303:                                              ; preds = %298
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %305 unwind label %309

305:                                              ; preds = %303
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %23, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %23, align 4, !tbaa !5
  br label %298, !llvm.loop !22

309:                                              ; preds = %303
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %4, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %542

313:                                              ; preds = %302
  %314 = load i32, ptr %2, align 4, !tbaa !5
  %315 = load i32, ptr %6, align 4, !tbaa !5
  %316 = sub nsw i32 %315, %314
  store i32 %316, ptr %6, align 4, !tbaa !5
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %318 unwind label %175

318:                                              ; preds = %313
  %319 = load i32, ptr %7, align 4, !tbaa !5
  %320 = add nsw i32 %319, -1
  store i32 %320, ptr %7, align 4, !tbaa !5
  br label %294, !llvm.loop !23

321:                                              ; preds = %294
  br label %322

322:                                              ; preds = %357, %321
  %323 = load i32, ptr %6, align 4, !tbaa !5
  %324 = icmp sgt i32 %323, 0
  br i1 %324, label %325, label %359

325:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %326 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %327 unwind label %334

327:                                              ; preds = %325
  %328 = load i32, ptr %326, align 4, !tbaa !5
  store i32 %328, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %341, %327
  %330 = load i32, ptr %25, align 4, !tbaa !5
  %331 = load i32, ptr %24, align 4, !tbaa !5
  %332 = icmp slt i32 %330, %331
  br i1 %332, label %338, label %333

333:                                              ; preds = %329
  store i32 40, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %348

334:                                              ; preds = %354, %325
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %4, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %5, align 4
  br label %358

338:                                              ; preds = %329
  %339 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %340 unwind label %344

340:                                              ; preds = %338
  br label %341

341:                                              ; preds = %340
  %342 = load i32, ptr %25, align 4, !tbaa !5
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr %25, align 4, !tbaa !5
  br label %329, !llvm.loop !24

344:                                              ; preds = %338
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %4, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %358

348:                                              ; preds = %333
  %349 = load i32, ptr %24, align 4, !tbaa !5
  %350 = load i32, ptr %6, align 4, !tbaa !5
  %351 = sub nsw i32 %350, %349
  store i32 %351, ptr %6, align 4, !tbaa !5
  %352 = load i32, ptr %6, align 4, !tbaa !5
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %357

354:                                              ; preds = %348
  %355 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 42)
          to label %356 unwind label %334

356:                                              ; preds = %354
  br label %357

357:                                              ; preds = %356, %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %322, !llvm.loop !25

358:                                              ; preds = %344, %334
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %542

359:                                              ; preds = %322
  %360 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %361 unwind label %175

361:                                              ; preds = %359
  store i32 1, ptr %15, align 4
  br label %541

362:                                              ; preds = %289
  %363 = load i32, ptr %9, align 4, !tbaa !5
  %364 = load i32, ptr %10, align 4, !tbaa !5
  %365 = icmp slt i32 %363, %364
  br i1 %365, label %366, label %472

366:                                              ; preds = %362
  %367 = load i32, ptr %6, align 4, !tbaa !5
  %368 = load i32, ptr %10, align 4, !tbaa !5
  %369 = icmp sge i32 %367, %368
  br i1 %369, label %370, label %472

370:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %371 = load i32, ptr %6, align 4, !tbaa !5
  %372 = load i32, ptr %10, align 4, !tbaa !5
  %373 = sdiv i32 %371, %372
  store i32 %373, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %374 = load i32, ptr %6, align 4, !tbaa !5
  %375 = load i32, ptr %10, align 4, !tbaa !5
  %376 = srem i32 %374, %375
  store i32 %376, ptr %27, align 4, !tbaa !5
  br label %377

377:                                              ; preds = %431, %370
  %378 = load i32, ptr %7, align 4, !tbaa !5
  %379 = load i32, ptr %3, align 4, !tbaa !5
  %380 = icmp sge i32 %378, %379
  br i1 %380, label %381, label %432

381:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %382

382:                                              ; preds = %390, %381
  %383 = load i32, ptr %28, align 4, !tbaa !5
  %384 = load i32, ptr %3, align 4, !tbaa !5
  %385 = icmp slt i32 %383, %384
  br i1 %385, label %387, label %386

386:                                              ; preds = %382
  store i32 45, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %397

387:                                              ; preds = %382
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %389 unwind label %393

389:                                              ; preds = %387
  br label %390

390:                                              ; preds = %389
  %391 = load i32, ptr %28, align 4, !tbaa !5
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %28, align 4, !tbaa !5
  br label %382, !llvm.loop !26

393:                                              ; preds = %387
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %4, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %471

397:                                              ; preds = %386
  %398 = load i32, ptr %3, align 4, !tbaa !5
  %399 = load i32, ptr %7, align 4, !tbaa !5
  %400 = sub nsw i32 %399, %398
  store i32 %400, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %401 = load i32, ptr %26, align 4, !tbaa !5
  %402 = load i32, ptr %27, align 4, !tbaa !5
  %403 = icmp ne i32 %402, 0
  %404 = zext i1 %403 to i64
  %405 = select i1 %403, i32 1, i32 0
  %406 = add nsw i32 %401, %405
  store i32 %406, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %407

407:                                              ; preds = %415, %397
  %408 = load i32, ptr %30, align 4, !tbaa !5
  %409 = load i32, ptr %29, align 4, !tbaa !5
  %410 = icmp slt i32 %408, %409
  br i1 %410, label %412, label %411

411:                                              ; preds = %407
  store i32 48, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %422

412:                                              ; preds = %407
  %413 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %414 unwind label %418

414:                                              ; preds = %412
  br label %415

415:                                              ; preds = %414
  %416 = load i32, ptr %30, align 4, !tbaa !5
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %30, align 4, !tbaa !5
  br label %407, !llvm.loop !27

418:                                              ; preds = %412
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %4, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %471

422:                                              ; preds = %411
  %423 = load i32, ptr %29, align 4, !tbaa !5
  %424 = load i32, ptr %6, align 4, !tbaa !5
  %425 = sub nsw i32 %424, %423
  store i32 %425, ptr %6, align 4, !tbaa !5
  %426 = load i32, ptr %27, align 4, !tbaa !5
  %427 = icmp ne i32 %426, 0
  br i1 %427, label %428, label %431

428:                                              ; preds = %422
  %429 = load i32, ptr %27, align 4, !tbaa !5
  %430 = add nsw i32 %429, -1
  store i32 %430, ptr %27, align 4, !tbaa !5
  br label %431

431:                                              ; preds = %428, %422
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %377, !llvm.loop !28

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

433:                                              ; preds = %441, %432
  %434 = load i32, ptr %31, align 4, !tbaa !5
  %435 = load i32, ptr %7, align 4, !tbaa !5
  %436 = icmp slt i32 %434, %435
  br i1 %436, label %438, label %437

437:                                              ; preds = %433
  store i32 51, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %448

438:                                              ; preds = %433
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %440 unwind label %444

440:                                              ; preds = %438
  br label %441

441:                                              ; preds = %440
  %442 = load i32, ptr %31, align 4, !tbaa !5
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %31, align 4, !tbaa !5
  br label %433, !llvm.loop !29

444:                                              ; preds = %438
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %4, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %471

448:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %449

449:                                              ; preds = %457, %448
  %450 = load i32, ptr %32, align 4, !tbaa !5
  %451 = load i32, ptr %6, align 4, !tbaa !5
  %452 = icmp slt i32 %450, %451
  br i1 %452, label %454, label %453

453:                                              ; preds = %449
  store i32 54, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %464

454:                                              ; preds = %449
  %455 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %456 unwind label %460

456:                                              ; preds = %454
  br label %457

457:                                              ; preds = %456
  %458 = load i32, ptr %32, align 4, !tbaa !5
  %459 = add nsw i32 %458, 1
  store i32 %459, ptr %32, align 4, !tbaa !5
  br label %449, !llvm.loop !30

460:                                              ; preds = %454
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %4, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %471

464:                                              ; preds = %453
  %465 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %466 unwind label %467

466:                                              ; preds = %464
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %541

467:                                              ; preds = %464
  %468 = landingpad { ptr, i32 }
          cleanup
  %469 = extractvalue { ptr, i32 } %468, 0
  store ptr %469, ptr %4, align 8
  %470 = extractvalue { ptr, i32 } %468, 1
  store i32 %470, ptr %5, align 4
  br label %471

471:                                              ; preds = %467, %460, %444, %418, %393
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %542

472:                                              ; preds = %366, %362
  br label %473

473:                                              ; preds = %497, %472
  %474 = load i32, ptr %6, align 4, !tbaa !5
  %475 = icmp sgt i32 %474, 0
  br i1 %475, label %476, label %500

476:                                              ; preds = %473
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %477

477:                                              ; preds = %485, %476
  %478 = load i32, ptr %33, align 4, !tbaa !5
  %479 = load i32, ptr %3, align 4, !tbaa !5
  %480 = icmp slt i32 %478, %479
  br i1 %480, label %482, label %481

481:                                              ; preds = %477
  store i32 59, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %492

482:                                              ; preds = %477
  %483 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %484 unwind label %488

484:                                              ; preds = %482
  br label %485

485:                                              ; preds = %484
  %486 = load i32, ptr %33, align 4, !tbaa !5
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %33, align 4, !tbaa !5
  br label %477, !llvm.loop !31

488:                                              ; preds = %482
  %489 = landingpad { ptr, i32 }
          cleanup
  %490 = extractvalue { ptr, i32 } %489, 0
  store ptr %490, ptr %4, align 8
  %491 = extractvalue { ptr, i32 } %489, 1
  store i32 %491, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %542

492:                                              ; preds = %481
  %493 = load i32, ptr %3, align 4, !tbaa !5
  %494 = load i32, ptr %7, align 4, !tbaa !5
  %495 = sub nsw i32 %494, %493
  store i32 %495, ptr %7, align 4, !tbaa !5
  %496 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %497 unwind label %175

497:                                              ; preds = %492
  %498 = load i32, ptr %6, align 4, !tbaa !5
  %499 = add nsw i32 %498, -1
  store i32 %499, ptr %6, align 4, !tbaa !5
  br label %473, !llvm.loop !32

500:                                              ; preds = %473
  br label %501

501:                                              ; preds = %536, %500
  %502 = load i32, ptr %7, align 4, !tbaa !5
  %503 = icmp sgt i32 %502, 0
  br i1 %503, label %504, label %538

504:                                              ; preds = %501
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %505 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %506 unwind label %513

506:                                              ; preds = %504
  %507 = load i32, ptr %505, align 4, !tbaa !5
  store i32 %507, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %508

508:                                              ; preds = %520, %506
  %509 = load i32, ptr %35, align 4, !tbaa !5
  %510 = load i32, ptr %34, align 4, !tbaa !5
  %511 = icmp slt i32 %509, %510
  br i1 %511, label %517, label %512

512:                                              ; preds = %508
  store i32 64, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %527

513:                                              ; preds = %533, %504
  %514 = landingpad { ptr, i32 }
          cleanup
  %515 = extractvalue { ptr, i32 } %514, 0
  store ptr %515, ptr %4, align 8
  %516 = extractvalue { ptr, i32 } %514, 1
  store i32 %516, ptr %5, align 4
  br label %537

517:                                              ; preds = %508
  %518 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %519 unwind label %523

519:                                              ; preds = %517
  br label %520

520:                                              ; preds = %519
  %521 = load i32, ptr %35, align 4, !tbaa !5
  %522 = add nsw i32 %521, 1
  store i32 %522, ptr %35, align 4, !tbaa !5
  br label %508, !llvm.loop !33

523:                                              ; preds = %517
  %524 = landingpad { ptr, i32 }
          cleanup
  %525 = extractvalue { ptr, i32 } %524, 0
  store ptr %525, ptr %4, align 8
  %526 = extractvalue { ptr, i32 } %524, 1
  store i32 %526, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %537

527:                                              ; preds = %512
  %528 = load i32, ptr %34, align 4, !tbaa !5
  %529 = load i32, ptr %7, align 4, !tbaa !5
  %530 = sub nsw i32 %529, %528
  store i32 %530, ptr %7, align 4, !tbaa !5
  %531 = load i32, ptr %7, align 4, !tbaa !5
  %532 = icmp ne i32 %531, 0
  br i1 %532, label %533, label %536

533:                                              ; preds = %527
  %534 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 42)
          to label %535 unwind label %513

535:                                              ; preds = %533
  br label %536

536:                                              ; preds = %535, %527
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %501, !llvm.loop !34

537:                                              ; preds = %523, %513
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %542

538:                                              ; preds = %501
  %539 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %540 unwind label %175

540:                                              ; preds = %538
  store i32 1, ptr %15, align 4
  br label %541

541:                                              ; preds = %540, %466, %361, %283, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void

542:                                              ; preds = %537, %488, %471, %358, %309, %288, %175, %168, %152, %132, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %543

543:                                              ; preds = %542, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %544

544:                                              ; preds = %543, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  br label %545

545:                                              ; preds = %544
  %546 = load ptr, ptr %4, align 8
  %547 = load i32, ptr %5, align 4
  %548 = insertvalue { ptr, i32 } poison, ptr %546, 0
  %549 = insertvalue { ptr, i32 } %548, i32 %547, 1
  resume { ptr, i32 } %549
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

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

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


; 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" }
%"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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z1fv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %6 = 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) %1)
          to label %7 unwind label %27

7:                                                ; preds = %0
  %8 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %9 unwind label %27

9:                                                ; preds = %7
  %10 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %11 unwind label %27

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  %12 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %.not220 = icmp eq i64 %12, 0
  br i1 %.not220, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %38, %11
  %13 = phi i32 [ 0, %11 ], [ %40, %38 ]
  %14 = phi i32 [ 0, %11 ], [ %39, %38 ]
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = add i32 %14, -1
  %17 = add i32 %16, %15
  %18 = sdiv i32 %17, %15
  %19 = load i32, ptr %3, align 4
  %20 = add i32 %13, -1
  %21 = add i32 %20, %19
  %22 = sdiv i32 %21, %19
  %23 = icmp eq i32 %18, %22
  br i1 %23, label %.preheader131, label %88

.preheader131:                                    ; preds = %._crit_edge
  %24 = icmp sge i32 %14, %15
  %25 = icmp sge i32 %13, %19
  %26 = and i1 %24, %25
  br i1 %26, label %.preheader130, label %.preheader129

27:                                               ; preds = %9, %7, %0
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %258

.lr.ph:                                           ; preds = %11, %38
  %29 = phi i32 [ %39, %38 ], [ 0, %11 ]
  %30 = phi i32 [ %40, %38 ], [ 0, %11 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %38 ], [ 0, %11 ]
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = icmp eq i8 %32, 97
  br i1 %33, label %34, label %36

34:                                               ; preds = %.lr.ph
  %35 = add nsw i32 %29, 1
  store i32 %35, ptr %4, align 4, !tbaa !5
  br label %38

36:                                               ; preds = %.lr.ph
  %37 = add nsw i32 %30, 1
  store i32 %37, ptr %5, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %34, %36
  %39 = phi i32 [ %35, %34 ], [ %29, %36 ]
  %40 = phi i32 [ %30, %34 ], [ %37, %36 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %42 = icmp ugt i64 %41, %indvars.iv.next
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !10

.preheader130:                                    ; preds = %.preheader131, %._crit_edge213
  %43 = phi i32 [ %62, %._crit_edge213 ], [ %19, %.preheader131 ]
  %44 = phi i32 [ %63, %._crit_edge213 ], [ %15, %.preheader131 ]
  %45 = phi i32 [ %64, %._crit_edge213 ], [ %13, %.preheader131 ]
  %46 = phi i32 [ %53, %._crit_edge213 ], [ %14, %.preheader131 ]
  %47 = icmp sgt i32 %44, 0
  br i1 %47, label %.lr.ph207, label %._crit_edge208

.preheader129:                                    ; preds = %._crit_edge213, %.preheader131
  %48 = phi i32 [ %13, %.preheader131 ], [ %64, %._crit_edge213 ]
  %49 = phi i32 [ %14, %.preheader131 ], [ %53, %._crit_edge213 ]
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.lr.ph216, label %.preheader

._crit_edge208.loopexit:                          ; preds = %56
  %.pre236 = load i32, ptr %3, align 4
  br label %._crit_edge208

._crit_edge208:                                   ; preds = %._crit_edge208.loopexit, %.preheader130
  %51 = phi i32 [ %43, %.preheader130 ], [ %.pre236, %._crit_edge208.loopexit ]
  %52 = phi i32 [ %44, %.preheader130 ], [ %58, %._crit_edge208.loopexit ]
  %53 = sub nsw i32 %46, %52
  store i32 %53, ptr %4, align 4, !tbaa !5
  %54 = icmp sgt i32 %51, 0
  br i1 %54, label %.lr.ph212, label %._crit_edge213

.lr.ph207:                                        ; preds = %.preheader130, %56
  %.082206 = phi i32 [ %57, %56 ], [ 0, %.preheader130 ]
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %56 unwind label %60

56:                                               ; preds = %.lr.ph207
  %57 = add nuw nsw i32 %.082206, 1
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %.lr.ph207, label %._crit_edge208.loopexit, !llvm.loop !12

60:                                               ; preds = %.lr.ph207
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge213.loopexit:                          ; preds = %69
  %.pre237 = load i32, ptr %2, align 4, !tbaa !5
  br label %._crit_edge213

._crit_edge213:                                   ; preds = %._crit_edge213.loopexit, %._crit_edge208
  %62 = phi i32 [ %51, %._crit_edge208 ], [ %71, %._crit_edge213.loopexit ]
  %63 = phi i32 [ %52, %._crit_edge208 ], [ %.pre237, %._crit_edge213.loopexit ]
  %64 = sub nsw i32 %45, %62
  store i32 %64, ptr %5, align 4, !tbaa !5
  %65 = icmp sge i32 %53, %63
  %66 = icmp sge i32 %64, %62
  %67 = select i1 %65, i1 %66, i1 false
  br i1 %67, label %.preheader130, label %.preheader129, !llvm.loop !13

.lr.ph212:                                        ; preds = %._crit_edge208, %69
  %.087210 = phi i32 [ %70, %69 ], [ 0, %._crit_edge208 ]
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %69 unwind label %73

69:                                               ; preds = %.lr.ph212
  %70 = add nuw nsw i32 %.087210, 1
  %71 = load i32, ptr %3, align 4
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %.lr.ph212, label %._crit_edge213.loopexit, !llvm.loop !14

73:                                               ; preds = %.lr.ph212
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.preheader:                                       ; preds = %77, %.preheader129
  %75 = icmp sgt i32 %48, 0
  br i1 %75, label %.lr.ph218, label %._crit_edge205.invoke

.lr.ph216:                                        ; preds = %.preheader129, %77
  %.091215 = phi i32 [ %78, %77 ], [ 0, %.preheader129 ]
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %77 unwind label %80

77:                                               ; preds = %.lr.ph216
  %78 = add nuw nsw i32 %.091215, 1
  %79 = icmp slt i32 %78, %49
  br i1 %79, label %.lr.ph216, label %.preheader, !llvm.loop !15

80:                                               ; preds = %.lr.ph216
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph218:                                        ; preds = %.preheader, %83
  %.092217 = phi i32 [ %84, %83 ], [ 0, %.preheader ]
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %83 unwind label %86

83:                                               ; preds = %.lr.ph218
  %84 = add nuw nsw i32 %.092217, 1
  %85 = icmp slt i32 %84, %48
  br i1 %85, label %.lr.ph218, label %._crit_edge205.invoke, !llvm.loop !16

86:                                               ; preds = %.lr.ph218
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit:                                        ; preds = %._crit_edge198
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %._crit_edge173
  %lpad.loopexit139 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %._crit_edge205.invoke
  %lpad.loopexit.split-lp140 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

88:                                               ; preds = %._crit_edge
  %89 = icmp sle i32 %18, %22
  %.not = icmp slt i32 %13, %18
  %or.cond = or i1 %.not, %89
  br i1 %or.cond, label %135, label %90

90:                                               ; preds = %88
  %91 = sdiv i32 %13, %18
  %92 = srem i32 %13, %18
  %.not118164 = icmp slt i32 %14, %15
  br i1 %.not118164, label %.preheader143, label %.preheader144

.preheader144:                                    ; preds = %90, %._crit_edge163
  %93 = phi i32 [ %112, %._crit_edge163 ], [ %15, %90 ]
  %94 = phi i32 [ %113, %._crit_edge163 ], [ %13, %90 ]
  %95 = phi i32 [ %101, %._crit_edge163 ], [ %14, %90 ]
  %.089165 = phi i32 [ %spec.select, %._crit_edge163 ], [ %92, %90 ]
  %96 = icmp sgt i32 %93, 0
  br i1 %96, label %.lr.ph158, label %._crit_edge159

.preheader143:                                    ; preds = %._crit_edge163, %90
  %97 = phi i32 [ %13, %90 ], [ %113, %._crit_edge163 ]
  %98 = phi i32 [ %14, %90 ], [ %101, %._crit_edge163 ]
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %.lr.ph167, label %.preheader142

._crit_edge159:                                   ; preds = %106, %.preheader144
  %100 = phi i32 [ %93, %.preheader144 ], [ %108, %106 ]
  %101 = sub nsw i32 %95, %100
  store i32 %101, ptr %4, align 4, !tbaa !5
  %.not119 = icmp ne i32 %.089165, 0
  %102 = zext i1 %.not119 to i32
  %103 = add nsw i32 %91, %102
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph162, label %._crit_edge163

.lr.ph158:                                        ; preds = %.preheader144, %106
  %.088157 = phi i32 [ %107, %106 ], [ 0, %.preheader144 ]
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %106 unwind label %110

106:                                              ; preds = %.lr.ph158
  %107 = add nuw nsw i32 %.088157, 1
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %.lr.ph158, label %._crit_edge159, !llvm.loop !17

110:                                              ; preds = %.lr.ph158
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

._crit_edge163:                                   ; preds = %._crit_edge163.loopexit, %._crit_edge159
  %112 = phi i32 [ %.pre, %._crit_edge163.loopexit ], [ %100, %._crit_edge159 ]
  %113 = sub nsw i32 %94, %103
  store i32 %113, ptr %5, align 4, !tbaa !5
  %spec.select = call i32 @llvm.usub.sat.i32(i32 %.089165, i32 1)
  %.not118 = icmp slt i32 %101, %112
  br i1 %.not118, label %.preheader143, label %.preheader144, !llvm.loop !18

.lr.ph162:                                        ; preds = %._crit_edge159, %115
  %.086160 = phi i32 [ %116, %115 ], [ 0, %._crit_edge159 ]
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %115 unwind label %117

115:                                              ; preds = %.lr.ph162
  %116 = add nuw nsw i32 %.086160, 1
  %exitcond.not = icmp eq i32 %116, %103
  br i1 %exitcond.not, label %._crit_edge163.loopexit, label %.lr.ph162, !llvm.loop !19

117:                                              ; preds = %.lr.ph162
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.preheader142:                                    ; preds = %121, %.preheader143
  %119 = icmp sgt i32 %97, 0
  br i1 %119, label %.lr.ph169, label %._crit_edge170

.lr.ph167:                                        ; preds = %.preheader143, %121
  %.085166 = phi i32 [ %122, %121 ], [ 0, %.preheader143 ]
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %121 unwind label %124

121:                                              ; preds = %.lr.ph167
  %122 = add nuw nsw i32 %.085166, 1
  %123 = icmp slt i32 %122, %98
  br i1 %123, label %.lr.ph167, label %.preheader142, !llvm.loop !20

124:                                              ; preds = %.lr.ph167
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge170:                                   ; preds = %128, %.preheader142
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %133

.lr.ph169:                                        ; preds = %.preheader142, %128
  %.084168 = phi i32 [ %129, %128 ], [ 0, %.preheader142 ]
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %128 unwind label %131

128:                                              ; preds = %.lr.ph169
  %129 = add nuw nsw i32 %.084168, 1
  %130 = icmp slt i32 %129, %97
  br i1 %130, label %.lr.ph169, label %._crit_edge170, !llvm.loop !21

131:                                              ; preds = %.lr.ph169
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

133:                                              ; preds = %._crit_edge170
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

135:                                              ; preds = %88
  br i1 %89, label %172, label %thread-pre-split

thread-pre-split:                                 ; preds = %135
  %136 = icmp sgt i32 %13, 0
  br i1 %136, label %.preheader138, label %.preheader137

.preheader138:                                    ; preds = %thread-pre-split, %152
  %137 = phi i32 [ %153, %152 ], [ %13, %thread-pre-split ]
  %138 = phi i32 [ %143, %152 ], [ %14, %thread-pre-split ]
  %139 = load i32, ptr %2, align 4, !tbaa !5
  %140 = icmp sgt i32 %139, 0
  br i1 %140, label %.lr.ph172, label %._crit_edge173

.preheader137:                                    ; preds = %152, %thread-pre-split
  %141 = phi i32 [ %14, %thread-pre-split ], [ %143, %152 ]
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph179, label %._crit_edge205.invoke

._crit_edge173:                                   ; preds = %146, %.preheader138
  %.lcssa152 = phi i32 [ %139, %.preheader138 ], [ %148, %146 ]
  %143 = sub nsw i32 %138, %.lcssa152
  store i32 %143, ptr %4, align 4, !tbaa !5
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %152 unwind label %.loopexit.split-lp.loopexit

.lr.ph172:                                        ; preds = %.preheader138, %146
  %.083171 = phi i32 [ %147, %146 ], [ 0, %.preheader138 ]
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %146 unwind label %150

146:                                              ; preds = %.lr.ph172
  %147 = add nuw nsw i32 %.083171, 1
  %148 = load i32, ptr %2, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %.lr.ph172, label %._crit_edge173, !llvm.loop !22

150:                                              ; preds = %.lr.ph172
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

152:                                              ; preds = %._crit_edge173
  %153 = add nsw i32 %137, -1
  store i32 %153, ptr %5, align 4, !tbaa !5
  %154 = icmp sgt i32 %137, 1
  br i1 %154, label %.preheader138, label %.preheader137, !llvm.loop !23

.lr.ph179:                                        ; preds = %.preheader137, %169
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %.lr.ph177, label %._crit_edge178

._crit_edge178:                                   ; preds = %163, %.lr.ph179
  %158 = load i32, ptr %4, align 4, !tbaa !5
  %159 = sub nsw i32 %158, %156
  store i32 %159, ptr %4, align 4, !tbaa !5
  %.not115 = icmp eq i32 %158, %156
  br i1 %.not115, label %169, label %167

160:                                              ; preds = %167
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph177:                                        ; preds = %.lr.ph179, %163
  %.081175 = phi i32 [ %164, %163 ], [ 0, %.lr.ph179 ]
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %163 unwind label %165

163:                                              ; preds = %.lr.ph177
  %164 = add nuw nsw i32 %.081175, 1
  %exitcond228.not = icmp eq i32 %164, %156
  br i1 %exitcond228.not, label %._crit_edge178, label %.lr.ph177, !llvm.loop !24

165:                                              ; preds = %.lr.ph177
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

167:                                              ; preds = %._crit_edge178
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 42)
          to label %._crit_edge231 unwind label %160

._crit_edge231:                                   ; preds = %167
  %.pre232 = load i32, ptr %4, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %._crit_edge231, %._crit_edge178
  %170 = phi i32 [ %.pre232, %._crit_edge231 ], [ %159, %._crit_edge178 ]
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %.lr.ph179, label %._crit_edge205.invoke, !llvm.loop !25

172:                                              ; preds = %135
  %173 = icmp sge i32 %18, %22
  %.not108 = icmp slt i32 %14, %22
  %or.cond128 = or i1 %173, %.not108
  br i1 %or.cond128, label %219, label %174

174:                                              ; preds = %172
  %175 = sdiv i32 %14, %22
  %176 = srem i32 %14, %22
  %.not111189 = icmp slt i32 %13, %19
  br i1 %.not111189, label %.preheader135, label %.preheader136

.preheader136:                                    ; preds = %174, %._crit_edge188
  %177 = phi i32 [ %196, %._crit_edge188 ], [ %19, %174 ]
  %178 = phi i32 [ %197, %._crit_edge188 ], [ %14, %174 ]
  %179 = phi i32 [ %185, %._crit_edge188 ], [ %13, %174 ]
  %.078190 = phi i32 [ %spec.select126, %._crit_edge188 ], [ %176, %174 ]
  %180 = icmp sgt i32 %177, 0
  br i1 %180, label %.lr.ph182, label %._crit_edge183

.preheader135:                                    ; preds = %._crit_edge188, %174
  %181 = phi i32 [ %14, %174 ], [ %197, %._crit_edge188 ]
  %182 = phi i32 [ %13, %174 ], [ %185, %._crit_edge188 ]
  %183 = icmp sgt i32 %182, 0
  br i1 %183, label %.lr.ph192, label %.preheader134

._crit_edge183:                                   ; preds = %190, %.preheader136
  %184 = phi i32 [ %177, %.preheader136 ], [ %192, %190 ]
  %185 = sub nsw i32 %179, %184
  store i32 %185, ptr %5, align 4, !tbaa !5
  %.not112 = icmp ne i32 %.078190, 0
  %186 = zext i1 %.not112 to i32
  %187 = add nsw i32 %175, %186
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %.lr.ph187, label %._crit_edge188

.lr.ph182:                                        ; preds = %.preheader136, %190
  %.077181 = phi i32 [ %191, %190 ], [ 0, %.preheader136 ]
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %190 unwind label %194

190:                                              ; preds = %.lr.ph182
  %191 = add nuw nsw i32 %.077181, 1
  %192 = load i32, ptr %3, align 4, !tbaa !5
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %.lr.ph182, label %._crit_edge183, !llvm.loop !26

194:                                              ; preds = %.lr.ph182
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge188.loopexit:                          ; preds = %199
  %.pre233 = load i32, ptr %3, align 4, !tbaa !5
  br label %._crit_edge188

._crit_edge188:                                   ; preds = %._crit_edge188.loopexit, %._crit_edge183
  %196 = phi i32 [ %.pre233, %._crit_edge188.loopexit ], [ %184, %._crit_edge183 ]
  %197 = sub nsw i32 %178, %187
  store i32 %197, ptr %4, align 4, !tbaa !5
  %spec.select126 = call i32 @llvm.usub.sat.i32(i32 %.078190, i32 1)
  %.not111 = icmp slt i32 %185, %196
  br i1 %.not111, label %.preheader135, label %.preheader136, !llvm.loop !27

.lr.ph187:                                        ; preds = %._crit_edge183, %199
  %.070185 = phi i32 [ %200, %199 ], [ 0, %._crit_edge183 ]
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %199 unwind label %201

199:                                              ; preds = %.lr.ph187
  %200 = add nuw nsw i32 %.070185, 1
  %exitcond229.not = icmp eq i32 %200, %187
  br i1 %exitcond229.not, label %._crit_edge188.loopexit, label %.lr.ph187, !llvm.loop !28

201:                                              ; preds = %.lr.ph187
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.preheader134:                                    ; preds = %205, %.preheader135
  %203 = icmp sgt i32 %181, 0
  br i1 %203, label %.lr.ph194, label %._crit_edge195

.lr.ph192:                                        ; preds = %.preheader135, %205
  %.069191 = phi i32 [ %206, %205 ], [ 0, %.preheader135 ]
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %205 unwind label %208

205:                                              ; preds = %.lr.ph192
  %206 = add nuw nsw i32 %.069191, 1
  %207 = icmp slt i32 %206, %182
  br i1 %207, label %.lr.ph192, label %.preheader134, !llvm.loop !29

208:                                              ; preds = %.lr.ph192
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge195:                                   ; preds = %212, %.preheader134
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %217

.lr.ph194:                                        ; preds = %.preheader134, %212
  %.068193 = phi i32 [ %213, %212 ], [ 0, %.preheader134 ]
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %212 unwind label %215

212:                                              ; preds = %.lr.ph194
  %213 = add nuw nsw i32 %.068193, 1
  %214 = icmp slt i32 %213, %181
  br i1 %214, label %.lr.ph194, label %._crit_edge195, !llvm.loop !30

215:                                              ; preds = %.lr.ph194
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

217:                                              ; preds = %._crit_edge195
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

219:                                              ; preds = %172
  %220 = icmp sgt i32 %14, 0
  br i1 %220, label %.preheader133, label %.preheader132

.preheader133:                                    ; preds = %219, %236
  %221 = phi i32 [ %237, %236 ], [ %14, %219 ]
  %222 = phi i32 [ %227, %236 ], [ %13, %219 ]
  %223 = load i32, ptr %3, align 4, !tbaa !5
  %224 = icmp sgt i32 %223, 0
  br i1 %224, label %.lr.ph197, label %._crit_edge198

.preheader132:                                    ; preds = %236, %219
  %225 = phi i32 [ %13, %219 ], [ %227, %236 ]
  %226 = icmp sgt i32 %225, 0
  br i1 %226, label %.lr.ph204, label %._crit_edge205.invoke

._crit_edge198:                                   ; preds = %230, %.preheader133
  %.lcssa148 = phi i32 [ %223, %.preheader133 ], [ %232, %230 ]
  %227 = sub nsw i32 %222, %.lcssa148
  store i32 %227, ptr %5, align 4, !tbaa !5
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %236 unwind label %.loopexit

.lr.ph197:                                        ; preds = %.preheader133, %230
  %.067196 = phi i32 [ %231, %230 ], [ 0, %.preheader133 ]
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %230 unwind label %234

230:                                              ; preds = %.lr.ph197
  %231 = add nuw nsw i32 %.067196, 1
  %232 = load i32, ptr %3, align 4, !tbaa !5
  %233 = icmp slt i32 %231, %232
  br i1 %233, label %.lr.ph197, label %._crit_edge198, !llvm.loop !31

234:                                              ; preds = %.lr.ph197
  %235 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

236:                                              ; preds = %._crit_edge198
  %237 = add nsw i32 %221, -1
  store i32 %237, ptr %4, align 4, !tbaa !5
  %238 = icmp sgt i32 %221, 1
  br i1 %238, label %.preheader133, label %.preheader132, !llvm.loop !32

.lr.ph204:                                        ; preds = %.preheader132, %253
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = icmp sgt i32 %240, 0
  br i1 %241, label %.lr.ph202, label %._crit_edge203

._crit_edge203:                                   ; preds = %247, %.lr.ph204
  %242 = load i32, ptr %5, align 4, !tbaa !5
  %243 = sub nsw i32 %242, %240
  store i32 %243, ptr %5, align 4, !tbaa !5
  %.not109 = icmp eq i32 %242, %240
  br i1 %.not109, label %253, label %251

244:                                              ; preds = %251
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph202:                                        ; preds = %.lr.ph204, %247
  %.0200 = phi i32 [ %248, %247 ], [ 0, %.lr.ph204 ]
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %247 unwind label %249

247:                                              ; preds = %.lr.ph202
  %248 = add nuw nsw i32 %.0200, 1
  %exitcond230.not = icmp eq i32 %248, %240
  br i1 %exitcond230.not, label %._crit_edge203, label %.lr.ph202, !llvm.loop !33

249:                                              ; preds = %.lr.ph202
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

251:                                              ; preds = %._crit_edge203
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 42)
          to label %._crit_edge234 unwind label %244

._crit_edge234:                                   ; preds = %251
  %.pre235 = load i32, ptr %5, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %._crit_edge234, %._crit_edge203
  %254 = phi i32 [ %.pre235, %._crit_edge234 ], [ %243, %._crit_edge203 ]
  %255 = icmp sgt i32 %254, 0
  br i1 %255, label %.lr.ph204, label %._crit_edge205.invoke, !llvm.loop !34

._crit_edge205.invoke:                            ; preds = %169, %253, %83, %.preheader, %.preheader132, %.preheader137
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %.loopexit.split-lp.loopexit.split-lp

257:                                              ; preds = %._crit_edge205.invoke, %._crit_edge195, %._crit_edge170
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %244, %249, %194, %201, %208, %215, %217, %160, %165, %110, %117, %124, %131, %133, %234, %150, %86, %80, %73, %60
  %.pn122 = phi { ptr, i32 } [ %61, %60 ], [ %74, %73 ], [ %81, %80 ], [ %87, %86 ], [ %151, %150 ], [ %235, %234 ], [ %111, %110 ], [ %118, %117 ], [ %125, %124 ], [ %132, %131 ], [ %134, %133 ], [ %166, %165 ], [ %161, %160 ], [ %195, %194 ], [ %202, %201 ], [ %209, %208 ], [ %216, %215 ], [ %218, %217 ], [ %250, %249 ], [ %245, %244 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit139, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp140, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %258

258:                                              ; preds = %.loopexit.split-lp, %27
  %.pn122.pn = phi { ptr, i32 } [ %.pn122, %.loopexit.split-lp ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn122.pn
}

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #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 speculatable willreturn memory(none)
declare i32 @llvm.usub.sat.i32(i32, i32) #6

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

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

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


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