; LLVM IR from AdarshGaur/Competitive-Programming :: Codeforces/Codeforces Round #767 (Div. 2) /C. Meximum Array.ll (Z5solvev)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca [200007 x i8], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %28 = load i64, ptr %1, align 8, !tbaa !5
  %29 = call ptr @llvm.stacksave.p0()
  store ptr %29, ptr %2, align 8
  %30 = alloca i64, i64 %28, align 16
  store i64 %28, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store ptr %30, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %31, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  %33 = mul nuw i64 8, %28
  %34 = udiv i64 %33, 8
  %35 = getelementptr inbounds i64, ptr %32, i64 %34
  store ptr %35, ptr %6, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %45, %0
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !9
  %39 = icmp ne ptr %37, %38
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %42, ptr %7, align 8, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %43)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds i64, ptr %46, i32 1
  store ptr %47, ptr %5, align 8, !tbaa !9
  br label %36

48:                                               ; preds = %40
  %49 = load i64, ptr %1, align 8, !tbaa !5
  %50 = alloca i64, i64 %49, align 16
  store i64 %49, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 200007, ptr %9) #7
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 200007, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 -1, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 -1, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %104, %48
  %52 = load i64, ptr %13, align 8, !tbaa !5
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %107

56:                                               ; preds = %51
  %57 = load i64, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds i64, ptr %30, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = load i64, ptr %10, align 8, !tbaa !5
  %61 = icmp eq i64 %59, %60
  br i1 %61, label %62, label %78

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %63 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %63, ptr %14, align 8, !tbaa !5
  %64 = load i64, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %64
  store i8 1, ptr %65, align 1, !tbaa !11
  br label %66

66:                                               ; preds = %71, %62
  %67 = load i64, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !11, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %76

71:                                               ; preds = %66
  %72 = load i64, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %72
  store i8 0, ptr %73, align 1, !tbaa !11
  %74 = load i64, ptr %14, align 8, !tbaa !5
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %14, align 8, !tbaa !5
  br label %66, !llvm.loop !15

76:                                               ; preds = %66
  %77 = load i64, ptr %14, align 8, !tbaa !5
  store i64 %77, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %78

78:                                               ; preds = %76, %56
  %79 = load i64, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds i64, ptr %30, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %82 = load i64, ptr %10, align 8, !tbaa !5
  %83 = icmp sgt i64 %81, %82
  br i1 %83, label %84, label %89

84:                                               ; preds = %78
  %85 = load i64, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds i64, ptr %30, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %87
  store i8 1, ptr %88, align 1, !tbaa !11
  br label %89

89:                                               ; preds = %84, %78
  %90 = load i64, ptr %10, align 8, !tbaa !5
  %91 = load i64, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds i64, ptr %50, i64 %91
  store i64 %90, ptr %92, align 8, !tbaa !5
  %93 = load i64, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds i64, ptr %50, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = load i64, ptr %11, align 8, !tbaa !5
  %97 = icmp sgt i64 %95, %96
  br i1 %97, label %98, label %103

98:                                               ; preds = %89
  %99 = load i64, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds i64, ptr %50, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !5
  store i64 %101, ptr %11, align 8, !tbaa !5
  %102 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %102, ptr %12, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %98, %89
  br label %104

104:                                              ; preds = %103
  %105 = load i64, ptr %13, align 8, !tbaa !5
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %13, align 8, !tbaa !5
  br label %51, !llvm.loop !17

107:                                              ; preds = %55
  %108 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %108, i8 0, i64 200007, i1 false)
  %109 = load i64, ptr %1, align 8, !tbaa !5
  %110 = alloca i64, i64 %109, align 16
  store i64 %109, ptr %15, align 8
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %111 = load i64, ptr %1, align 8, !tbaa !5
  %112 = sub nsw i64 %111, 1
  store i64 %112, ptr %16, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %154, %107
  %114 = load i64, ptr %16, align 8, !tbaa !5
  %115 = icmp sge i64 %114, 0
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %157

117:                                              ; preds = %113
  %118 = load i64, ptr %16, align 8, !tbaa !5
  %119 = getelementptr inbounds i64, ptr %30, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !5
  %121 = load i64, ptr %10, align 8, !tbaa !5
  %122 = icmp eq i64 %120, %121
  br i1 %122, label %123, label %139

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %124 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %124, ptr %17, align 8, !tbaa !5
  %125 = load i64, ptr %17, align 8, !tbaa !5
  %126 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %125
  store i8 1, ptr %126, align 1, !tbaa !11
  br label %127

127:                                              ; preds = %132, %123
  %128 = load i64, ptr %17, align 8, !tbaa !5
  %129 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !11, !range !13, !noundef !14
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %137

132:                                              ; preds = %127
  %133 = load i64, ptr %17, align 8, !tbaa !5
  %134 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %133
  store i8 0, ptr %134, align 1, !tbaa !11
  %135 = load i64, ptr %17, align 8, !tbaa !5
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %17, align 8, !tbaa !5
  br label %127, !llvm.loop !18

137:                                              ; preds = %127
  %138 = load i64, ptr %17, align 8, !tbaa !5
  store i64 %138, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %139

139:                                              ; preds = %137, %117
  %140 = load i64, ptr %16, align 8, !tbaa !5
  %141 = getelementptr inbounds i64, ptr %30, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !5
  %143 = load i64, ptr %10, align 8, !tbaa !5
  %144 = icmp sgt i64 %142, %143
  br i1 %144, label %145, label %150

145:                                              ; preds = %139
  %146 = load i64, ptr %16, align 8, !tbaa !5
  %147 = getelementptr inbounds i64, ptr %30, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !5
  %149 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %148
  store i8 1, ptr %149, align 1, !tbaa !11
  br label %150

150:                                              ; preds = %145, %139
  %151 = load i64, ptr %10, align 8, !tbaa !5
  %152 = load i64, ptr %16, align 8, !tbaa !5
  %153 = getelementptr inbounds i64, ptr %110, i64 %152
  store i64 %151, ptr %153, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %150
  %155 = load i64, ptr %16, align 8, !tbaa !5
  %156 = add nsw i64 %155, -1
  store i64 %156, ptr %16, align 8, !tbaa !5
  br label %113, !llvm.loop !19

157:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %158 unwind label %167

158:                                              ; preds = %157
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  %159 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %159, i8 0, i64 200007, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %160 = load i64, ptr %12, align 8, !tbaa !5
  %161 = add nsw i64 %160, 1
  store i64 %161, ptr %22, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %220, %158
  %163 = load i64, ptr %22, align 8, !tbaa !5
  %164 = load i64, ptr %1, align 8, !tbaa !5
  %165 = icmp slt i64 %163, %164
  br i1 %165, label %171, label %166

166:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %227

167:                                              ; preds = %157
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %20, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %265

171:                                              ; preds = %162
  store i64 0, ptr %10, align 8, !tbaa !5
  %172 = load i64, ptr %22, align 8, !tbaa !5
  %173 = getelementptr inbounds i64, ptr %110, i64 %172
  %174 = load i64, ptr %173, align 8, !tbaa !5
  store i64 %174, ptr %11, align 8, !tbaa !5
  br label %175

175:                                              ; preds = %215, %171
  %176 = load i64, ptr %22, align 8, !tbaa !5
  %177 = load i64, ptr %1, align 8, !tbaa !5
  %178 = icmp slt i64 %176, %177
  br i1 %178, label %179, label %218

179:                                              ; preds = %175
  %180 = load i64, ptr %22, align 8, !tbaa !5
  %181 = getelementptr inbounds i64, ptr %30, i64 %180
  %182 = load i64, ptr %181, align 8, !tbaa !5
  %183 = load i64, ptr %10, align 8, !tbaa !5
  %184 = icmp eq i64 %182, %183
  br i1 %184, label %185, label %199

185:                                              ; preds = %179
  %186 = load i64, ptr %10, align 8, !tbaa !5
  %187 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %186
  store i8 1, ptr %187, align 1, !tbaa !11
  br label %188

188:                                              ; preds = %193, %185
  %189 = load i64, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %189
  %191 = load i8, ptr %190, align 1, !tbaa !11, !range !13, !noundef !14
  %192 = trunc i8 %191 to i1
  br i1 %192, label %193, label %198

193:                                              ; preds = %188
  %194 = load i64, ptr %10, align 8, !tbaa !5
  %195 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %194
  store i8 0, ptr %195, align 1, !tbaa !11
  %196 = load i64, ptr %10, align 8, !tbaa !5
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %10, align 8, !tbaa !5
  br label %188, !llvm.loop !20

198:                                              ; preds = %188
  br label %199

199:                                              ; preds = %198, %179
  %200 = load i64, ptr %10, align 8, !tbaa !5
  %201 = load i64, ptr %11, align 8, !tbaa !5
  %202 = icmp eq i64 %200, %201
  br i1 %202, label %203, label %204

203:                                              ; preds = %199
  br label %218

204:                                              ; preds = %199
  %205 = load i64, ptr %22, align 8, !tbaa !5
  %206 = getelementptr inbounds i64, ptr %30, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !5
  %208 = load i64, ptr %10, align 8, !tbaa !5
  %209 = icmp sgt i64 %207, %208
  br i1 %209, label %210, label %215

210:                                              ; preds = %204
  %211 = load i64, ptr %22, align 8, !tbaa !5
  %212 = getelementptr inbounds i64, ptr %30, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !5
  %214 = getelementptr inbounds [200007 x i8], ptr %9, i64 0, i64 %213
  store i8 1, ptr %214, align 1, !tbaa !11
  br label %215

215:                                              ; preds = %210, %204
  %216 = load i64, ptr %22, align 8, !tbaa !5
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %22, align 8, !tbaa !5
  br label %175, !llvm.loop !21

218:                                              ; preds = %203, %175
  invoke void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %219 unwind label %223

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  %221 = load i64, ptr %22, align 8, !tbaa !5
  %222 = add nsw i64 %221, 1
  store i64 %222, ptr %22, align 8, !tbaa !5
  br label %162, !llvm.loop !22

223:                                              ; preds = %218
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %20, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %264

227:                                              ; preds = %166
  %228 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %228)
          to label %230 unwind label %242

230:                                              ; preds = %227
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @.str)
          to label %232 unwind label %242

232:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store ptr %18, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %233 = load ptr, ptr %23, align 8, !tbaa !9
  %234 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %233) #7
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %236 = load ptr, ptr %23, align 8, !tbaa !9
  %237 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %236) #7
  %238 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %237, ptr %238, align 8
  br label %239

239:                                              ; preds = %254, %232
  %240 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br i1 %240, label %246, label %241

241:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %260

242:                                              ; preds = %260, %230, %227
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %20, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %21, align 4
  br label %264

246:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %248 = load i64, ptr %247, align 8, !tbaa !5
  store i64 %248, ptr %26, align 8, !tbaa !5
  %249 = load i64, ptr %26, align 8, !tbaa !5
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %249)
          to label %251 unwind label %256

251:                                              ; preds = %246
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @.str.1)
          to label %253 unwind label %256

253:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %254

254:                                              ; preds = %253
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %239

256:                                              ; preds = %251, %246
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %20, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %264

260:                                              ; preds = %241
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %262 unwind label %242

262:                                              ; preds = %260
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 200007, ptr %9) #7
  %263 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %263)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void

264:                                              ; preds = %256, %242, %223
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %265

265:                                              ; preds = %264, %167
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 200007, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %20, align 8
  %268 = load i32, ptr %21, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270
}

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca [200007 x i8], align 16
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = call ptr @llvm.stacksave.p0()
  %12 = alloca i64, i64 %10, align 16
  %13 = getelementptr inbounds i64, ptr %12, i64 %10
  %.not67 = icmp eq i64 %10, 0
  br i1 %.not67, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 200007, ptr nonnull %2) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200007) %2, i8 0, i64 200007, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %14 = load i64, ptr %1, align 8, !tbaa !5
  %15 = icmp sgt i64 %14, 0
  br i1 %15, label %.lr.ph79, label %._crit_edge80.thread

._crit_edge80.thread:                             ; preds = %._crit_edge
  store i64 -1, ptr %4, align 8, !tbaa !5
  %16 = alloca i64, i64 %14, align 16
  br label %._crit_edge96

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.068 = phi ptr [ %18, %.lr.ph ], [ %12, %0 ]
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %.068)
  %18 = getelementptr inbounds i8, ptr %.068, i64 8
  %.not = icmp eq ptr %18, %13
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge80:                                    ; preds = %35
  store i64 %spec.select, ptr %4, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200007) %2, i8 0, i64 200007, i1 false)
  %19 = alloca i64, i64 %14, align 16
  br i1 %15, label %.lr.ph95, label %._crit_edge96

.lr.ph79:                                         ; preds = %._crit_edge, %35
  %.04677 = phi i64 [ %spec.select111, %35 ], [ -1, %._crit_edge ]
  %.05576 = phi i64 [ %37, %35 ], [ 0, %._crit_edge ]
  %20 = phi i64 [ %31, %35 ], [ 0, %._crit_edge ]
  %21 = phi i64 [ %spec.select, %35 ], [ -1, %._crit_edge ]
  %22 = getelementptr inbounds i64, ptr %12, i64 %.05576
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = icmp eq i64 %23, %20
  br i1 %24, label %.lr.ph71.preheader, label %._crit_edge72

.lr.ph71.preheader:                               ; preds = %.lr.ph79
  %25 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %20
  store i8 1, ptr %25, align 1, !tbaa !9
  br label %.lr.ph71

.lr.ph71:                                         ; preds = %.lr.ph71.preheader, %.lr.ph71
  %26 = phi ptr [ %28, %.lr.ph71 ], [ %25, %.lr.ph71.preheader ]
  %.05669 = phi i64 [ %27, %.lr.ph71 ], [ %20, %.lr.ph71.preheader ]
  store i8 0, ptr %26, align 1, !tbaa !9
  %27 = add nsw i64 %.05669, 1
  %28 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !9, !range !11, !noundef !12
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %.lr.ph71, label %._crit_edge72, !llvm.loop !13

._crit_edge72:                                    ; preds = %.lr.ph71, %.lr.ph79
  %31 = phi i64 [ %20, %.lr.ph79 ], [ %27, %.lr.ph71 ]
  %32 = icmp sgt i64 %23, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %._crit_edge72
  %34 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %23
  store i8 1, ptr %34, align 1, !tbaa !9
  br label %35

35:                                               ; preds = %33, %._crit_edge72
  %36 = icmp sgt i64 %31, %21
  %spec.select = call i64 @llvm.smax.i64(i64 %31, i64 %21)
  %spec.select111 = select i1 %36, i64 %.05576, i64 %.04677
  %37 = add nuw nsw i64 %.05576, 1
  %exitcond.not = icmp eq i64 %37, %14
  br i1 %exitcond.not, label %._crit_edge80, label %.lr.ph79, !llvm.loop !15

._crit_edge96:                                    ; preds = %53, %._crit_edge80.thread, %._crit_edge80
  %38 = phi ptr [ %19, %._crit_edge80 ], [ %16, %._crit_edge80.thread ], [ %19, %53 ]
  %.046.lcssa121 = phi i64 [ %spec.select111, %._crit_edge80 ], [ -1, %._crit_edge80.thread ], [ %spec.select111, %53 ]
  %.lcssa91 = phi i64 [ 0, %._crit_edge80 ], [ 0, %._crit_edge80.thread ], [ %49, %53 ]
  store i64 %.lcssa91, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %56 unwind label %63

.lr.ph95:                                         ; preds = %._crit_edge80, %53
  %.05493.in = phi i64 [ %.05493, %53 ], [ %14, %._crit_edge80 ]
  %39 = phi i64 [ %49, %53 ], [ 0, %._crit_edge80 ]
  %.05493 = add nsw i64 %.05493.in, -1
  %40 = getelementptr inbounds i64, ptr %12, i64 %.05493
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = icmp eq i64 %41, %39
  br i1 %42, label %.lr.ph87.preheader, label %._crit_edge88

.lr.ph87.preheader:                               ; preds = %.lr.ph95
  %43 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %39
  store i8 1, ptr %43, align 1, !tbaa !9
  br label %.lr.ph87

.lr.ph87:                                         ; preds = %.lr.ph87.preheader, %.lr.ph87
  %44 = phi ptr [ %46, %.lr.ph87 ], [ %43, %.lr.ph87.preheader ]
  %.05385 = phi i64 [ %45, %.lr.ph87 ], [ %39, %.lr.ph87.preheader ]
  store i8 0, ptr %44, align 1, !tbaa !9
  %45 = add nsw i64 %.05385, 1
  %46 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !9, !range !11, !noundef !12
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %.lr.ph87, label %._crit_edge88, !llvm.loop !16

._crit_edge88:                                    ; preds = %.lr.ph87, %.lr.ph95
  %49 = phi i64 [ %39, %.lr.ph95 ], [ %45, %.lr.ph87 ]
  %50 = icmp sgt i64 %41, %49
  br i1 %50, label %51, label %53

51:                                               ; preds = %._crit_edge88
  %52 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %41
  store i8 1, ptr %52, align 1, !tbaa !9
  br label %53

53:                                               ; preds = %51, %._crit_edge88
  %54 = getelementptr inbounds i64, ptr %19, i64 %.05493
  store i64 %49, ptr %54, align 8, !tbaa !5
  %55 = icmp sgt i64 %.05493.in, 1
  br i1 %55, label %.lr.ph95, label %._crit_edge96, !llvm.loop !17

56:                                               ; preds = %._crit_edge96
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200007) %2, i8 0, i64 200007, i1 false)
  br label %57

57:                                               ; preds = %86, %56
  %.047.in = phi i64 [ %.046.lcssa121, %56 ], [ %.148.lcssa, %86 ]
  %.047 = add nsw i64 %.047.in, 1
  %58 = load i64, ptr %1, align 8, !tbaa !5
  %59 = icmp slt i64 %.047, %58
  br i1 %59, label %65, label %60

60:                                               ; preds = %57
  %61 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %61)
          to label %89 unwind label %96

63:                                               ; preds = %._crit_edge96
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %110

65:                                               ; preds = %57
  store i64 0, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds i64, ptr %38, i64 %.047
  %67 = load i64, ptr %66, align 8, !tbaa !5
  store i64 %67, ptr %4, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %65, %84
  %.148107 = phi i64 [ %.047, %65 ], [ %85, %84 ]
  %.lcssa101105106 = phi i64 [ 0, %65 ], [ %.lcssa101103, %84 ]
  %69 = getelementptr inbounds i64, ptr %12, i64 %.148107
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = icmp eq i64 %70, %.lcssa101105106
  br i1 %71, label %.lr.ph100.preheader, label %.loopexit

.lr.ph100.preheader:                              ; preds = %68
  %72 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %.lcssa101105106
  store i8 1, ptr %72, align 1, !tbaa !9
  br label %.lr.ph100

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.lr.ph100
  %73 = phi ptr [ %76, %.lr.ph100 ], [ %72, %.lr.ph100.preheader ]
  %74 = phi i64 [ %75, %.lr.ph100 ], [ %.lcssa101105106, %.lr.ph100.preheader ]
  store i8 0, ptr %73, align 1, !tbaa !9
  %75 = add nsw i64 %74, 1
  %76 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !9, !range !11, !noundef !12
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %.lr.ph100, label %..loopexit_crit_edge, !llvm.loop !18

..loopexit_crit_edge:                             ; preds = %.lr.ph100
  store i64 %75, ptr %3, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge, %68
  %.lcssa101103 = phi i64 [ %.lcssa101105106, %68 ], [ %75, %..loopexit_crit_edge ]
  %79 = icmp eq i64 %.lcssa101103, %67
  br i1 %79, label %86, label %80

80:                                               ; preds = %.loopexit
  %81 = icmp sgt i64 %70, %.lcssa101103
  br i1 %81, label %82, label %84

82:                                               ; preds = %80
  %83 = getelementptr inbounds [200007 x i8], ptr %2, i64 0, i64 %70
  store i8 1, ptr %83, align 1, !tbaa !9
  br label %84

84:                                               ; preds = %82, %80
  %85 = add i64 %.148107, 1
  %exitcond116.not = icmp eq i64 %85, %58
  br i1 %exitcond116.not, label %86, label %68, !llvm.loop !19

86:                                               ; preds = %.loopexit, %84
  %.148.lcssa = phi i64 [ %.148107, %.loopexit ], [ %58, %84 ]
  invoke void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %57 unwind label %87, !llvm.loop !20

87:                                               ; preds = %86
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %109

89:                                               ; preds = %60
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @.str)
          to label %91 unwind label %96

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %92 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %92, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %93 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %93, ptr %8, align 8
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br i1 %94, label %.lr.ph109, label %._crit_edge110

._crit_edge110:                                   ; preds = %103, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %108 unwind label %96

96:                                               ; preds = %._crit_edge110, %89, %60
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %109

.lr.ph109:                                        ; preds = %91, %103
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %99)
          to label %101 unwind label %106

101:                                              ; preds = %.lr.ph109
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.1)
          to label %103 unwind label %106

103:                                              ; preds = %101
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %105 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br i1 %105, label %.lr.ph109, label %._crit_edge110

106:                                              ; preds = %101, %.lr.ph109
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %109

108:                                              ; preds = %._crit_edge110
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 200007, ptr nonnull %2) #8
  call void @llvm.stackrestore.p0(ptr %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void

109:                                              ; preds = %106, %96, %87
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %107, %106 ], [ %97, %96 ]
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %110

110:                                              ; preds = %109, %63
  %.pn.pn = phi { ptr, i32 } [ %.pn, %109 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 200007, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass