; LLVM IR from abeaumont/competitive-programming :: codeforces/1305 (e)

; 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 long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %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 i32, align 4
  store i32 0, ptr %1, align 4
  %19 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %27 = load i64, ptr %2, align 8, !tbaa !8
  %28 = icmp sle i64 %27, 2
  br i1 %28, label %29, label %57

29:                                               ; preds = %0
  %30 = load i64, ptr %3, align 8, !tbaa !8
  %31 = icmp ne i64 %30, 0
  br i1 %31, label %32, label %34

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

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %52, %34
  %36 = load i32, ptr %4, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = load i64, ptr %2, align 8, !tbaa !8
  %39 = icmp sle i64 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %55

41:                                               ; preds = %35
  %42 = load i32, ptr %4, align 4, !tbaa !11
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
  %44 = load i32, ptr %4, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = load i64, ptr %2, align 8, !tbaa !8
  %47 = icmp eq i64 %45, %46
  %48 = zext i1 %47 to i64
  %49 = getelementptr inbounds [3 x i8], ptr @.str.1, i64 0, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !13
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %43, i8 noundef signext %50)
  br label %52

52:                                               ; preds = %41
  %53 = load i32, ptr %4, align 4, !tbaa !11
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %4, align 4, !tbaa !11
  br label %35, !llvm.loop !14

55:                                               ; preds = %40
  br label %56

56:                                               ; preds = %55, %32
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %240

57:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %58

58:                                               ; preds = %65, %57
  %59 = load i32, ptr %7, align 4, !tbaa !11
  %60 = icmp sle i32 %59, 2
  br i1 %60, label %61, label %72

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %62 = load i32, ptr %7, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  store i64 %63, ptr %10, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %64 unwind label %68

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %7, align 4, !tbaa !11
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %7, align 4, !tbaa !11
  br label %58, !llvm.loop !16

68:                                               ; preds = %61
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %245

72:                                               ; preds = %58
  br label %73

73:                                               ; preds = %105, %72
  %74 = load i32, ptr %7, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = load i64, ptr %2, align 8, !tbaa !8
  %77 = icmp sle i64 %75, %76
  br i1 %77, label %78, label %108

78:                                               ; preds = %73
  %79 = load i64, ptr %9, align 8, !tbaa !8
  %80 = load i32, ptr %8, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = add nsw i64 %79, %81
  %83 = load i64, ptr %3, align 8, !tbaa !8
  %84 = icmp sgt i64 %82, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %78
  br label %108

86:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %87 = load i32, ptr %7, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  store i64 %88, ptr %13, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %89 unwind label %100

89:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %90 = load i32, ptr %8, align 4, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = load i64, ptr %9, align 8, !tbaa !8
  %93 = add nsw i64 %92, %91
  store i64 %93, ptr %9, align 8, !tbaa !8
  %94 = load i32, ptr %7, align 4, !tbaa !11
  %95 = srem i32 %94, 2
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %104

97:                                               ; preds = %89
  %98 = load i32, ptr %8, align 4, !tbaa !11
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %8, align 4, !tbaa !11
  br label %104

100:                                              ; preds = %86
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %245

104:                                              ; preds = %97, %89
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %7, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !11
  br label %73, !llvm.loop !17

108:                                              ; preds = %85, %73
  %109 = load i32, ptr %7, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = load i64, ptr %2, align 8, !tbaa !8
  %112 = icmp sgt i64 %110, %111
  br i1 %112, label %113, label %124

113:                                              ; preds = %108
  %114 = load i64, ptr %9, align 8, !tbaa !8
  %115 = load i64, ptr %3, align 8, !tbaa !8
  %116 = icmp slt i64 %114, %115
  br i1 %116, label %117, label %124

117:                                              ; preds = %113
  %118 = 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 %119 unwind label %120

119:                                              ; preds = %117
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %239

120:                                              ; preds = %117
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  br label %245

124:                                              ; preds = %113, %108
  %125 = load i64, ptr %9, align 8, !tbaa !8
  %126 = load i64, ptr %3, align 8, !tbaa !8
  %127 = icmp slt i64 %125, %126
  br i1 %127, label %128, label %169

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %129 = load i64, ptr %3, align 8, !tbaa !8
  %130 = load i64, ptr %9, align 8, !tbaa !8
  %131 = sub nsw i64 %129, %130
  store i64 %131, ptr %14, align 8, !tbaa !8
  %132 = load i64, ptr %14, align 8, !tbaa !8
  %133 = mul nsw i64 %132, 2
  %134 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %135 = icmp ugt i64 %133, %134
  br i1 %135, label %136, label %143

136:                                              ; preds = %128
  %137 = 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 %138 unwind label %139

138:                                              ; preds = %136
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %161

139:                                              ; preds = %136
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  br label %168

143:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %144 = load i32, ptr %7, align 4, !tbaa !11
  %145 = sub nsw i32 %144, 2
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %146) #6
  %148 = load i64, ptr %147, align 8, !tbaa !8
  %149 = load i32, ptr %7, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = load i64, ptr %14, align 8, !tbaa !8
  %152 = mul nsw i64 %151, 2
  %153 = sub nsw i64 %150, %152
  %154 = sub nsw i64 %153, 1
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %154) #6
  %156 = load i64, ptr %155, align 8, !tbaa !8
  %157 = add nsw i64 %148, %156
  store i64 %157, ptr %15, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %158 unwind label %164

158:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %159 = load i32, ptr %7, align 4, !tbaa !11
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %7, align 4, !tbaa !11
  store i32 0, ptr %5, align 4
  br label %161

161:                                              ; preds = %158, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %162 = load i32, ptr %5, align 4
  switch i32 %162, label %239 [
    i32 0, label %163
  ]

163:                                              ; preds = %161
  br label %169

164:                                              ; preds = %143
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %11, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %168

168:                                              ; preds = %164, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %245

169:                                              ; preds = %163, %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %170 = load i32, ptr %7, align 4, !tbaa !11
  %171 = sub nsw i32 %170, 2
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %172) #6
  %174 = load i64, ptr %173, align 8, !tbaa !8
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %176 = load i32, ptr %7, align 4, !tbaa !11
  %177 = sub nsw i32 %176, 2
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %178) #6
  %180 = load i64, ptr %179, align 8, !tbaa !8
  %181 = load i64, ptr %16, align 8, !tbaa !8
  %182 = add nsw i64 %180, %181
  store i64 %182, ptr %17, align 8, !tbaa !8
  br label %183

183:                                              ; preds = %203, %169
  %184 = load i32, ptr %7, align 4, !tbaa !11
  %185 = sext i32 %184 to i64
  %186 = load i64, ptr %2, align 8, !tbaa !8
  %187 = icmp sle i64 %185, %186
  br i1 %187, label %188, label %206

188:                                              ; preds = %183
  %189 = load i64, ptr %17, align 8, !tbaa !8
  %190 = icmp sgt i64 %189, 1000000000
  br i1 %190, label %191, label %198

191:                                              ; preds = %188
  %192 = 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 %193 unwind label %194

193:                                              ; preds = %191
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %238

194:                                              ; preds = %198, %191
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %11, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %12, align 4
  br label %244

198:                                              ; preds = %188
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %199 unwind label %194

199:                                              ; preds = %198
  %200 = load i64, ptr %16, align 8, !tbaa !8
  %201 = load i64, ptr %17, align 8, !tbaa !8
  %202 = add nsw i64 %201, %200
  store i64 %202, ptr %17, align 8, !tbaa !8
  br label %203

203:                                              ; preds = %199
  %204 = load i32, ptr %7, align 4, !tbaa !11
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %7, align 4, !tbaa !11
  br label %183, !llvm.loop !18

206:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %207

207:                                              ; preds = %230, %206
  %208 = load i32, ptr %18, align 4, !tbaa !11
  %209 = sext i32 %208 to i64
  %210 = load i64, ptr %2, align 8, !tbaa !8
  %211 = icmp slt i64 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %207
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %237

213:                                              ; preds = %207
  %214 = load i32, ptr %18, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %215) #6
  %217 = load i64, ptr %216, align 8, !tbaa !8
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %217)
          to label %219 unwind label %233

219:                                              ; preds = %213
  %220 = load i32, ptr %18, align 4, !tbaa !11
  %221 = sext i32 %220 to i64
  %222 = load i64, ptr %2, align 8, !tbaa !8
  %223 = sub nsw i64 %222, 1
  %224 = icmp eq i64 %221, %223
  %225 = zext i1 %224 to i64
  %226 = getelementptr inbounds [3 x i8], ptr @.str.1, i64 0, i64 %225
  %227 = load i8, ptr %226, align 1, !tbaa !13
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %218, i8 noundef signext %227)
          to label %229 unwind label %233

229:                                              ; preds = %219
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %18, align 4, !tbaa !11
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %18, align 4, !tbaa !11
  br label %207, !llvm.loop !19

233:                                              ; preds = %219, %213
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %11, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %244

237:                                              ; preds = %212
  store i32 0, ptr %5, align 4
  br label %238

238:                                              ; preds = %237, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %239

239:                                              ; preds = %238, %161, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %240

240:                                              ; preds = %239, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %241 = load i32, ptr %5, align 4
  switch i32 %241, label %251 [
    i32 0, label %242
    i32 1, label %242
  ]

242:                                              ; preds = %240, %240
  %243 = load i32, ptr %1, align 4
  ret i32 %243

244:                                              ; preds = %233, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %245

245:                                              ; preds = %244, %168, %120, %100, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %246

246:                                              ; preds = %245
  %247 = load ptr, ptr %11, align 8
  %248 = load i32, ptr %12, align 4
  %249 = insertvalue { ptr, i32 } poison, ptr %247, 0
  %250 = insertvalue { ptr, i32 } %249, i32 %248, 1
  resume { ptr, i32 } %250

251:                                              ; preds = %240
  unreachable
}

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


; 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 long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %10
  %12 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %11, ptr noundef null)
  %13 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %16 = load i64, ptr %1, align 8, !tbaa !8
  %17 = icmp slt i64 %16, 3
  br i1 %17, label %18, label %31

18:                                               ; preds = %0
  %19 = load i64, ptr %2, align 8, !tbaa !8
  %.not68 = icmp eq i64 %19, 0
  br i1 %.not68, label %.preheader, label %20

.preheader:                                       ; preds = %18
  %.not6996 = icmp slt i64 %16, 1
  br i1 %.not6996, label %.loopexit, label %.lr.ph98

20:                                               ; preds = %18
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %.loopexit

.lr.ph98:                                         ; preds = %.preheader, %.lr.ph98
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %.lr.ph98 ], [ 1, %.preheader ]
  %22 = trunc nuw nsw i64 %indvars.iv117 to i32
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %22)
  %24 = load i64, ptr %1, align 8, !tbaa !8
  %25 = icmp eq i64 %24, %indvars.iv117
  %26 = zext i1 %25 to i64
  %27 = getelementptr inbounds [3 x i8], ptr @.str.1, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %23, i8 noundef signext %28)
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %30 = load i64, ptr %1, align 8, !tbaa !8
  %.not69.not = icmp sgt i64 %30, %indvars.iv117
  br i1 %.not69.not, label %.lr.ph98, label %.loopexit, !llvm.loop !12

31:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i64 1, ptr %4, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %32 unwind label %34

32:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i64 2, ptr %4, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.preheader77 unwind label %34

.preheader77:                                     ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %33 = load i64, ptr %1, align 8, !tbaa !8
  %.not85 = icmp slt i64 %33, 3
  br i1 %.not85, label %._crit_edge, label %.lr.ph

34:                                               ; preds = %32, %31
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %118

.lr.ph:                                           ; preds = %.preheader77, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 3, %.preheader77 ]
  %.04688 = phi i64 [ %37, %43 ], [ 0, %.preheader77 ]
  %.04787 = phi i32 [ %spec.select, %43 ], [ 1, %.preheader77 ]
  %36 = sext i32 %.04787 to i64
  %37 = add nsw i64 %.04688, %36
  %38 = load i64, ptr %2, align 8
  %39 = icmp sgt i64 %37, %38
  br i1 %39, label %.thread, label %42

.thread:                                          ; preds = %.lr.ph
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  %41 = icmp slt i64 %.04688, %38
  br i1 %41, label %57, label %79

42:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store i64 %indvars.iv, ptr %5, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %43 unwind label %48

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %44 = trunc nuw nsw i64 %indvars.iv to i32
  %45 = and i32 %44, 1
  %46 = xor i32 %45, 1
  %spec.select = add i32 %46, %.04787
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i64, ptr %1, align 8, !tbaa !8
  %.not.not = icmp sgt i64 %47, %indvars.iv
  br i1 %.not.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %118

._crit_edge.loopexit:                             ; preds = %43
  %50 = trunc nuw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader77
  %.150.lcssa = phi i32 [ 3, %.preheader77 ], [ %50, %._crit_edge.loopexit ]
  %.046.lcssa = phi i64 [ 0, %.preheader77 ], [ %37, %._crit_edge.loopexit ]
  %51 = load i64, ptr %2, align 8
  %52 = icmp slt i64 %.046.lcssa, %51
  br i1 %52, label %53, label %79

53:                                               ; preds = %._crit_edge
  %54 = 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 %.thread72 unwind label %55

55:                                               ; preds = %53
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %118

57:                                               ; preds = %.thread
  %58 = sub nsw i64 %38, %.04688
  %59 = shl nsw i64 %58, 1
  %60 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not62 = icmp ugt i64 %59, %60
  br i1 %.not62, label %61, label %65

61:                                               ; preds = %57
  %62 = 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 %.thread72 unwind label %63

63:                                               ; preds = %61
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %118

65:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %66 = shl i64 %indvars.iv, 32
  %sext = add i64 %66, -8589934592
  %67 = ashr exact i64 %sext, 32
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %67) #6
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = xor i64 %59, -1
  %71 = add i64 %indvars.iv, %70
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %71) #6
  %73 = load i64, ptr %72, align 8, !tbaa !8
  %74 = add nsw i64 %73, %69
  store i64 %74, ptr %6, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %75 unwind label %77

75:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %76 = add nuw nsw i32 %40, 1
  br label %79

77:                                               ; preds = %65
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %118

79:                                               ; preds = %._crit_edge, %75, %.thread
  %.352 = phi i32 [ %76, %75 ], [ %40, %.thread ], [ %.150.lcssa, %._crit_edge ]
  %80 = add nsw i32 %.352, -2
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %81) #6
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = add nsw i64 %83, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %81) #6
  %86 = load i64, ptr %85, align 8, !tbaa !8
  %87 = add nsw i64 %86, %84
  store i64 %87, ptr %7, align 8, !tbaa !8
  %88 = sext i32 %.352 to i64
  %89 = load i64, ptr %1, align 8, !tbaa !8
  %.not6390 = icmp slt i64 %89, %88
  br i1 %.not6390, label %.preheader74, label %.lr.ph93

.preheader74:                                     ; preds = %97, %79
  %90 = phi i64 [ %89, %79 ], [ %100, %97 ]
  %91 = icmp sgt i64 %90, 0
  br i1 %91, label %.lr.ph95, label %.loopexit75

.lr.ph93:                                         ; preds = %79, %97
  %92 = phi i64 [ %99, %97 ], [ %87, %79 ]
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %97 ], [ %88, %79 ]
  %93 = icmp sgt i64 %92, 1000000000
  br i1 %93, label %94, label %96

94:                                               ; preds = %.lr.ph93
  %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 %.loopexit75 unwind label %.loopexit.split-lp

.loopexit76:                                      ; preds = %96
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %117

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

96:                                               ; preds = %.lr.ph93
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %97 unwind label %.loopexit76

97:                                               ; preds = %96
  %98 = load i64, ptr %7, align 8, !tbaa !8
  %99 = add nsw i64 %98, %84
  store i64 %99, ptr %7, align 8, !tbaa !8
  %indvars.iv.next112 = add nsw i64 %indvars.iv111, 1
  %100 = load i64, ptr %1, align 8, !tbaa !8
  %.not63.not = icmp sgt i64 %100, %indvars.iv111
  br i1 %.not63.not, label %.lr.ph93, label %.preheader74, !llvm.loop !15

.lr.ph95:                                         ; preds = %.preheader74, %112
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %112 ], [ 0, %.preheader74 ]
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv114) #6
  %102 = load i64, ptr %101, align 8, !tbaa !8
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %102)
          to label %104 unwind label %115

104:                                              ; preds = %.lr.ph95
  %105 = load i64, ptr %1, align 8, !tbaa !8
  %106 = add nsw i64 %105, -1
  %107 = icmp eq i64 %106, %indvars.iv114
  %108 = zext i1 %107 to i64
  %109 = getelementptr inbounds [3 x i8], ptr @.str.1, i64 0, i64 %108
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %103, i8 noundef signext %110)
          to label %112 unwind label %115

112:                                              ; preds = %104
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %113 = load i64, ptr %1, align 8, !tbaa !8
  %114 = icmp sgt i64 %113, %indvars.iv.next115
  br i1 %114, label %.lr.ph95, label %.loopexit75, !llvm.loop !16

115:                                              ; preds = %104, %.lr.ph95
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit75:                                      ; preds = %112, %.preheader74, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %.thread72

.thread72:                                        ; preds = %61, %53, %.loopexit75
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph98, %.preheader, %20, %.thread72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

117:                                              ; preds = %.loopexit76, %.loopexit.split-lp, %115
  %.pn64 = phi { ptr, i32 } [ %116, %115 ], [ %lpad.loopexit, %.loopexit76 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %118

118:                                              ; preds = %63, %77, %117, %55, %48, %34
  %.pn66 = phi { ptr, i32 } [ %35, %34 ], [ %56, %55 ], [ %.pn64, %117 ], [ %49, %48 ], [ %64, %63 ], [ %78, %77 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn66
}

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), 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 @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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