; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/137 Division 2/Problem C (C)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [100100 x i32], align 16
@b = external dso_local global [100100 x i32], align 16
@primes = external dso_local global [1000010 x i32], align 16
@p = external dso_local global [10000100 x i32], align 16
@c1 = external dso_local global [10000100 x i32], align 16
@c2 = external dso_local global [10000100 x i32], align 16
@tmp = external dso_local global i32, align 4
@pcnt = external dso_local global i32, align 4
@ap = external dso_local global [100100 x %"class.std::vector"], align 16
@bp = external dso_local global [100100 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %76, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = icmp sle i32 %14, 10000100
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %79

17:                                               ; preds = %13
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %33

23:                                               ; preds = %17
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %26
  store i32 %24, ptr %27, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr @pcnt, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr @pcnt, align 4, !tbaa !5
  %31 = sext i32 %29 to i64
  %32 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %31
  store i32 %28, ptr %32, align 4, !tbaa !5
  br label %33

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

34:                                               ; preds = %72, %33
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = load i32, ptr @pcnt, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %56

38:                                               ; preds = %34
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = icmp sle i32 %42, %46
  br i1 %47, label %48, label %56

48:                                               ; preds = %38
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = mul nsw i32 %49, %53
  %55 = icmp sle i32 %54, 10000100
  br label %56

56:                                               ; preds = %48, %38, %34
  %57 = phi i1 [ false, %38 ], [ false, %34 ], [ %55, %48 ]
  br i1 %57, label %59, label %58

58:                                               ; preds = %56
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %75

59:                                               ; preds = %56
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = mul nsw i32 %64, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %70
  store i32 %63, ptr %71, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %59
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %4, align 4, !tbaa !5
  br label %34, !llvm.loop !9

75:                                               ; preds = %58
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !11

79:                                               ; preds = %16
  %80 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %120, %79
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %123

86:                                               ; preds = %81
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %88
  %90 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %89)
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  store i32 %94, ptr @tmp, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %98, %86
  %96 = load i32, ptr @tmp, align 4, !tbaa !5
  %97 = icmp ne i32 %96, 1
  br i1 %97, label %98, label %119

98:                                               ; preds = %95
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %100
  %102 = load i32, ptr @tmp, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %103
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 4 dereferenceable(4) %104)
  %105 = load i32, ptr @tmp, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [10000100 x i32], ptr @c1, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %110, align 4, !tbaa !5
  %113 = load i32, ptr @tmp, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr @tmp, align 4, !tbaa !5
  %118 = sdiv i32 %117, %116
  store i32 %118, ptr @tmp, align 4, !tbaa !5
  br label %95, !llvm.loop !12

119:                                              ; preds = %95
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %5, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %5, align 4, !tbaa !5
  br label %81, !llvm.loop !13

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

124:                                              ; preds = %163, %123
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = load i32, ptr @m, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %166

129:                                              ; preds = %124
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %131
  %133 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %132)
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  store i32 %137, ptr @tmp, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %141, %129
  %139 = load i32, ptr @tmp, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 1
  br i1 %140, label %141, label %162

141:                                              ; preds = %138
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %143
  %145 = load i32, ptr @tmp, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %146
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 4 dereferenceable(4) %147)
  %148 = load i32, ptr @tmp, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [10000100 x i32], ptr @c2, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %153, align 4, !tbaa !5
  %156 = load i32, ptr @tmp, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = load i32, ptr @tmp, align 4, !tbaa !5
  %161 = sdiv i32 %160, %159
  store i32 %161, ptr @tmp, align 4, !tbaa !5
  br label %138, !llvm.loop !14

162:                                              ; preds = %138
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %6, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %6, align 4, !tbaa !5
  br label %124, !llvm.loop !15

166:                                              ; preds = %128
  %167 = load i32, ptr @n, align 4, !tbaa !5
  %168 = load i32, ptr @m, align 4, !tbaa !5
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %167, i32 noundef %168)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %226, %166
  %171 = load i32, ptr %7, align 4, !tbaa !5
  %172 = load i32, ptr @n, align 4, !tbaa !5
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 18, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %229

175:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %220, %175
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = load i32, ptr %7, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %180
  %182 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #5
  %183 = icmp ult i64 %178, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %176
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %223

185:                                              ; preds = %176
  %186 = load i32, ptr %7, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %187
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %190) #5
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [10000100 x i32], ptr @c2, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %197, label %209

197:                                              ; preds = %185
  %198 = load i32, ptr %7, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %199
  %201 = load i32, ptr %9, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #5
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [10000100 x i32], ptr @c2, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = add nsw i32 %207, -1
  store i32 %208, ptr %206, align 4, !tbaa !5
  br label %219

209:                                              ; preds = %185
  %210 = load i32, ptr %7, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %211
  %213 = load i32, ptr %9, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %214) #5
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = load i32, ptr %8, align 4, !tbaa !5
  %218 = mul nsw i32 %217, %216
  store i32 %218, ptr %8, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %209, %197
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %9, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %9, align 4, !tbaa !5
  br label %176, !llvm.loop !16

223:                                              ; preds = %184
  %224 = load i32, ptr %8, align 4, !tbaa !5
  %225 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %224)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %226

226:                                              ; preds = %223
  %227 = load i32, ptr %7, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %7, align 4, !tbaa !5
  br label %170, !llvm.loop !17

229:                                              ; preds = %174
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %287, %229
  %232 = load i32, ptr %10, align 4, !tbaa !5
  %233 = load i32, ptr @m, align 4, !tbaa !5
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %231
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %290

236:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %281, %236
  %238 = load i32, ptr %12, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = load i32, ptr %10, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %241
  %243 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #5
  %244 = icmp ult i64 %239, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %237
  store i32 27, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %284

246:                                              ; preds = %237
  %247 = load i32, ptr %10, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %248
  %250 = load i32, ptr %12, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #5
  %253 = load i32, ptr %252, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [10000100 x i32], ptr @c1, i64 0, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = icmp sgt i32 %256, 0
  br i1 %257, label %258, label %270

258:                                              ; preds = %246
  %259 = load i32, ptr %10, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %260
  %262 = load i32, ptr %12, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %263) #5
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [10000100 x i32], ptr @c1, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = add nsw i32 %268, -1
  store i32 %269, ptr %267, align 4, !tbaa !5
  br label %280

270:                                              ; preds = %246
  %271 = load i32, ptr %10, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %272
  %274 = load i32, ptr %12, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %275) #5
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = load i32, ptr %11, align 4, !tbaa !5
  %279 = mul nsw i32 %278, %277
  store i32 %279, ptr %11, align 4, !tbaa !5
  br label %280

280:                                              ; preds = %270, %258
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %12, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %12, align 4, !tbaa !5
  br label %237, !llvm.loop !18

284:                                              ; preds = %245
  %285 = load i32, ptr %11, align 4, !tbaa !5
  %286 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %285)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %287

287:                                              ; preds = %284
  %288 = load i32, ptr %10, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %10, align 4, !tbaa !5
  br label %231, !llvm.loop !19

290:                                              ; preds = %235
  %291 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  ret i32 0
}

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { nounwind }

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [100100 x i32], align 16
@b = external dso_local global [100100 x i32], align 16
@primes = external dso_local local_unnamed_addr global [1000010 x i32], align 16
@p = external dso_local global [10000100 x i32], align 16
@c1 = external dso_local local_unnamed_addr global [10000100 x i32], align 16
@c2 = external dso_local local_unnamed_addr global [10000100 x i32], align 16
@tmp = external dso_local local_unnamed_addr global i32, align 4
@pcnt = external dso_local local_unnamed_addr global i32, align 4
@ap = external dso_local global [100100 x %"class.std::vector"], align 16
@bp = external dso_local global [100100 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %pcnt.promoted = load i32, ptr @pcnt, align 4, !tbaa !5
  br label %5

1:                                                ; preds = %.critedge
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph82, label %.preheader72

5:                                                ; preds = %0, %.critedge
  %indvars.iv109 = phi i64 [ 2, %0 ], [ %indvars.iv.next110, %.critedge ]
  %6 = phi i32 [ %pcnt.promoted, %0 ], [ %16, %.critedge ]
  %7 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %indvars.iv109
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %15

10:                                               ; preds = %5
  %11 = trunc nuw nsw i64 %indvars.iv109 to i32
  store i32 %11, ptr %7, align 4, !tbaa !5
  %12 = add nsw i32 %6, 1
  store i32 %12, ptr @pcnt, align 4, !tbaa !5
  %13 = sext i32 %6 to i64
  %14 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %13
  store i32 %11, ptr %14, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %10, %5
  %16 = phi i32 [ %12, %10 ], [ %6, %5 ]
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %15
  %wide.trip.count = zext nneg i32 %16 to i64
  %18 = trunc nuw nsw i64 %indvars.iv109 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %25 ]
  %19 = getelementptr inbounds [1000010 x i32], ptr @primes, i64 0, i64 %indvars.iv
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %.not70 = icmp sgt i32 %20, %21
  br i1 %.not70, label %.critedge, label %22

22:                                               ; preds = %.lr.ph
  %23 = mul nsw i32 %20, %18
  %24 = icmp slt i32 %23, 10000101
  br i1 %24, label %25, label %.critedge

.critedge:                                        ; preds = %22, %25, %.lr.ph, %15
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next110, 10000101
  br i1 %exitcond112.not, label %1, label %5, !llvm.loop !9

25:                                               ; preds = %22
  %26 = sext i32 %23 to i64
  %27 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %26
  store i32 %20, ptr %27, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !11

.preheader72:                                     ; preds = %._crit_edge, %1
  %28 = phi i32 [ %3, %1 ], [ %47, %._crit_edge ]
  %29 = load i32, ptr @m, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph89, label %._crit_edge90

.lr.ph82:                                         ; preds = %1, %._crit_edge
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %._crit_edge ], [ 0, %1 ]
  %31 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv113
  %32 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %31)
  %33 = load i32, ptr %31, align 4, !tbaa !5
  store i32 %33, ptr @tmp, align 4, !tbaa !5
  %.not6977 = icmp eq i32 %33, 1
  br i1 %.not6977, label %._crit_edge, label %.lr.ph79

.lr.ph79:                                         ; preds = %.lr.ph82
  %34 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %indvars.iv113
  br label %35

35:                                               ; preds = %.lr.ph79, %35
  %storemerge6878 = phi i32 [ %33, %.lr.ph79 ], [ %46, %35 ]
  %36 = sext i32 %storemerge6878 to i64
  %37 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %36
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %38 = load i32, ptr @tmp, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10000100 x i32], ptr @c1, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %43, align 4, !tbaa !5
  %46 = sdiv i32 %38, %41
  store i32 %46, ptr @tmp, align 4, !tbaa !5
  %.not69 = icmp eq i32 %46, 1
  br i1 %.not69, label %._crit_edge, label %35, !llvm.loop !12

._crit_edge:                                      ; preds = %35, %.lr.ph82
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next114, %48
  br i1 %49, label %.lr.ph82, label %.preheader72, !llvm.loop !13

._crit_edge90.loopexit:                           ; preds = %._crit_edge87
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge90.loopexit, %.preheader72
  %50 = phi i32 [ %28, %.preheader72 ], [ %.pre, %._crit_edge90.loopexit ]
  %.lcssa = phi i32 [ %29, %.preheader72 ], [ %70, %._crit_edge90.loopexit ]
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %50, i32 noundef %.lcssa)
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.preheader71, label %._crit_edge97

.lr.ph89:                                         ; preds = %.preheader72, %._crit_edge87
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %._crit_edge87 ], [ 0, %.preheader72 ]
  %54 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %indvars.iv116
  %55 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %54)
  %56 = load i32, ptr %54, align 4, !tbaa !5
  store i32 %56, ptr @tmp, align 4, !tbaa !5
  %.not83 = icmp eq i32 %56, 1
  br i1 %.not83, label %._crit_edge87, label %.lr.ph86

.lr.ph86:                                         ; preds = %.lr.ph89
  %57 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %indvars.iv116
  br label %58

58:                                               ; preds = %.lr.ph86, %58
  %storemerge84 = phi i32 [ %56, %.lr.ph86 ], [ %69, %58 ]
  %59 = sext i32 %storemerge84 to i64
  %60 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %59
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %61 = load i32, ptr @tmp, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [10000100 x i32], ptr @p, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [10000100 x i32], ptr @c2, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !5
  %69 = sdiv i32 %61, %64
  store i32 %69, ptr @tmp, align 4, !tbaa !5
  %.not = icmp eq i32 %69, 1
  br i1 %.not, label %._crit_edge87, label %58, !llvm.loop !14

._crit_edge87:                                    ; preds = %58, %.lr.ph89
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %70 = load i32, ptr @m, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next117, %71
  br i1 %72, label %.lr.ph89, label %._crit_edge90.loopexit, !llvm.loop !15

.preheader71:                                     ; preds = %._crit_edge90, %._crit_edge94
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge94 ], [ 0, %._crit_edge90 ]
  %73 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @ap, i64 0, i64 %indvars.iv122
  %74 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #4
  %.not105 = icmp eq i64 %74, 0
  br i1 %.not105, label %._crit_edge94, label %.lr.ph93

._crit_edge97:                                    ; preds = %._crit_edge94, %._crit_edge90
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %76 = load i32, ptr @m, align 4, !tbaa !5
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.preheader, label %._crit_edge104

._crit_edge94:                                    ; preds = %97, %.preheader71
  %.054.lcssa = phi i32 [ 1, %.preheader71 ], [ %.155, %97 ]
  %78 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %.054.lcssa)
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next123, %80
  br i1 %81, label %.preheader71, label %._crit_edge97, !llvm.loop !16

.lr.ph93:                                         ; preds = %.preheader71, %97
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %97 ], [ 0, %.preheader71 ]
  %.05491 = phi i32 [ %.155, %97 ], [ 1, %.preheader71 ]
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %indvars.iv119) #4
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [10000100 x i32], ptr @c2, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp sgt i32 %86, 0
  %88 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %indvars.iv119) #4
  %89 = load i32, ptr %88, align 4, !tbaa !5
  br i1 %87, label %90, label %95

90:                                               ; preds = %.lr.ph93
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds [10000100 x i32], ptr @c2, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr %92, align 4, !tbaa !5
  br label %97

95:                                               ; preds = %.lr.ph93
  %96 = mul nsw i32 %89, %.05491
  br label %97

97:                                               ; preds = %90, %95
  %.155 = phi i32 [ %.05491, %90 ], [ %96, %95 ]
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %98 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #4
  %99 = icmp ugt i64 %98, %indvars.iv.next120
  br i1 %99, label %.lr.ph93, label %._crit_edge94, !llvm.loop !17

.preheader:                                       ; preds = %._crit_edge97, %._crit_edge101
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %._crit_edge101 ], [ 0, %._crit_edge97 ]
  %100 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @bp, i64 0, i64 %indvars.iv128
  %101 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #4
  %.not106 = icmp eq i64 %101, 0
  br i1 %.not106, label %._crit_edge101, label %.lr.ph100

._crit_edge104:                                   ; preds = %._crit_edge101, %._crit_edge97
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  ret i32 0

._crit_edge101:                                   ; preds = %122, %.preheader
  %.051.lcssa = phi i32 [ 1, %.preheader ], [ %.1, %122 ]
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %.051.lcssa)
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %104 = load i32, ptr @m, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next129, %105
  br i1 %106, label %.preheader, label %._crit_edge104, !llvm.loop !18

.lr.ph100:                                        ; preds = %.preheader, %122
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %122 ], [ 0, %.preheader ]
  %.05198 = phi i32 [ %.1, %122 ], [ 1, %.preheader ]
  %107 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %indvars.iv125) #4
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [10000100 x i32], ptr @c1, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = icmp sgt i32 %111, 0
  %113 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %indvars.iv125) #4
  %114 = load i32, ptr %113, align 4, !tbaa !5
  br i1 %112, label %115, label %120

115:                                              ; preds = %.lr.ph100
  %116 = sext i32 %114 to i64
  %117 = getelementptr inbounds [10000100 x i32], ptr @c1, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr %117, align 4, !tbaa !5
  br label %122

120:                                              ; preds = %.lr.ph100
  %121 = mul nsw i32 %114, %.05198
  br label %122

122:                                              ; preds = %115, %120
  %.1 = phi i32 [ %.05198, %115 ], [ %121, %120 ]
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %123 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #4
  %124 = icmp ugt i64 %123, %indvars.iv.next126
  br i1 %124, label %.lr.ph100, label %._crit_edge101, !llvm.loop !19
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nounwind }

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

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


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