; LLVM IR from upupming/algorithm :: BasicLevel_C++/1012. 数字分类 (20) (main)

; 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::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 }

@_ZSt3cin = external global %"class.std::basic_istream", 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
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 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 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 double, align 8
  %8 = alloca [5 x %"class.std::vector"], align 16
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 120, ptr %8) #5
  %17 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i32 0, i32 0
  %18 = getelementptr inbounds %"class.std::vector", ptr %17, i64 5
  br label %19

19:                                               ; preds = %19, %0
  %20 = phi ptr [ %17, %0 ], [ %21, %19 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %21 = getelementptr inbounds %"class.std::vector", ptr %20, i64 1
  %22 = icmp eq ptr %21, %18
  br i1 %22, label %23, label %19

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

24:                                               ; preds = %37, %23
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %44

29:                                               ; preds = %24
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %31 unwind label %40

31:                                               ; preds = %29
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = srem i32 %32, 5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %34
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %36 unwind label %40

36:                                               ; preds = %31
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %9, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %9, align 4, !tbaa !5
  br label %24, !llvm.loop !11

40:                                               ; preds = %31, %29
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %10, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %245

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

45:                                               ; preds = %156, %44
  %46 = load i32, ptr %12, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 5
  br i1 %47, label %49, label %48

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

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

50:                                               ; preds = %152, %49
  %51 = load i32, ptr %14, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = load i32, ptr %12, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %54
  %56 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  %57 = icmp ult i64 %52, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %50
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %155

59:                                               ; preds = %50
  %60 = load i32, ptr %12, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %82

62:                                               ; preds = %59
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %64
  %66 = load i32, ptr %14, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #5
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = srem i32 %69, 2
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %82

72:                                               ; preds = %62
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %74
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #5
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %4, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %72, %62, %59
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %99

85:                                               ; preds = %82
  %86 = load i32, ptr %14, align 4, !tbaa !5
  %87 = srem i32 %86, 2
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %99

89:                                               ; preds = %85
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %91
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #5
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = add nsw i32 %97, %96
  store i32 %98, ptr %5, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %89, %85, %82
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = icmp eq i32 %100, 1
  br i1 %101, label %102, label %116

102:                                              ; preds = %99
  %103 = load i32, ptr %14, align 4, !tbaa !5
  %104 = srem i32 %103, 2
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %116

106:                                              ; preds = %102
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %108
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #5
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = sub nsw i32 %114, %113
  store i32 %115, ptr %5, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %106, %102, %99
  %117 = load i32, ptr %12, align 4, !tbaa !5
  %118 = icmp eq i32 %117, 3
  br i1 %118, label %119, label %130

119:                                              ; preds = %116
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %121
  %123 = load i32, ptr %14, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #5
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = sitofp i32 %126 to double
  %128 = load double, ptr %7, align 8, !tbaa !9
  %129 = fadd double %128, %127
  store double %129, ptr %7, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %119, %116
  %131 = load i32, ptr %12, align 4, !tbaa !5
  %132 = icmp eq i32 %131, 4
  br i1 %132, label %133, label %151

133:                                              ; preds = %130
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %135
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #5
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = load i32, ptr %6, align 4, !tbaa !5
  %142 = icmp sgt i32 %140, %141
  br i1 %142, label %143, label %151

143:                                              ; preds = %133
  %144 = load i32, ptr %12, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %145
  %147 = load i32, ptr %14, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %148) #5
  %150 = load i32, ptr %149, align 4, !tbaa !5
  store i32 %150, ptr %6, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %143, %133, %130
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %14, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %14, align 4, !tbaa !5
  br label %50, !llvm.loop !13

155:                                              ; preds = %58
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %12, align 4, !tbaa !5
  br label %45, !llvm.loop !14

159:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %233, %159
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = icmp slt i32 %161, 5
  br i1 %162, label %164, label %163

163:                                              ; preds = %160
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %236

164:                                              ; preds = %160
  %165 = load i32, ptr %15, align 4, !tbaa !5
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %174

167:                                              ; preds = %164
  %168 = invoke i32 (ptr, ...) @printf(ptr noundef @.str)
          to label %169 unwind label %170

169:                                              ; preds = %167
  br label %174

170:                                              ; preds = %228, %217, %209, %202, %195, %189, %167
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %10, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %245

174:                                              ; preds = %169, %164
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %180

177:                                              ; preds = %174
  %178 = load i32, ptr %4, align 4, !tbaa !5
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %189, label %180

180:                                              ; preds = %177, %174
  %181 = load i32, ptr %15, align 4, !tbaa !5
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %192

183:                                              ; preds = %180
  %184 = load i32, ptr %15, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 %185
  %187 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #5
  %188 = icmp eq i64 %187, 0
  br i1 %188, label %189, label %192

189:                                              ; preds = %183, %177
  %190 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %191 unwind label %170

191:                                              ; preds = %189
  br label %233

192:                                              ; preds = %183, %180
  %193 = load i32, ptr %15, align 4, !tbaa !5
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %199

195:                                              ; preds = %192
  %196 = load i32, ptr %4, align 4, !tbaa !5
  %197 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %196)
          to label %198 unwind label %170

198:                                              ; preds = %195
  br label %199

199:                                              ; preds = %198, %192
  %200 = load i32, ptr %15, align 4, !tbaa !5
  %201 = icmp eq i32 %200, 1
  br i1 %201, label %202, label %206

202:                                              ; preds = %199
  %203 = load i32, ptr %5, align 4, !tbaa !5
  %204 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %203)
          to label %205 unwind label %170

205:                                              ; preds = %202
  br label %206

206:                                              ; preds = %205, %199
  %207 = load i32, ptr %15, align 4, !tbaa !5
  %208 = icmp eq i32 %207, 2
  br i1 %208, label %209, label %214

209:                                              ; preds = %206
  %210 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 2
  %211 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #5
  %212 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %211)
          to label %213 unwind label %170

213:                                              ; preds = %209
  br label %214

214:                                              ; preds = %213, %206
  %215 = load i32, ptr %15, align 4, !tbaa !5
  %216 = icmp eq i32 %215, 3
  br i1 %216, label %217, label %225

217:                                              ; preds = %214
  %218 = load double, ptr %7, align 8, !tbaa !9
  %219 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i64 0, i64 3
  %220 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %219) #5
  %221 = uitofp i64 %220 to double
  %222 = fdiv double %218, %221
  %223 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %222)
          to label %224 unwind label %170

224:                                              ; preds = %217
  br label %225

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

228:                                              ; preds = %225
  %229 = load i32, ptr %6, align 4, !tbaa !5
  %230 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %229)
          to label %231 unwind label %170

231:                                              ; preds = %228
  br label %232

232:                                              ; preds = %231, %225
  br label %233

233:                                              ; preds = %232, %191
  %234 = load i32, ptr %15, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %15, align 4, !tbaa !5
  br label %160, !llvm.loop !15

236:                                              ; preds = %163
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  %237 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i32 0, i32 0
  %238 = getelementptr inbounds %"class.std::vector", ptr %237, i64 5
  br label %239

239:                                              ; preds = %239, %236
  %240 = phi ptr [ %238, %236 ], [ %241, %239 ]
  %241 = getelementptr inbounds %"class.std::vector", ptr %240, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %241) #5
  %242 = icmp eq ptr %241, %237
  br i1 %242, label %243, label %239

243:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %244 = load i32, ptr %1, align 4
  ret i32 %244

245:                                              ; preds = %170, %40
  %246 = getelementptr inbounds [5 x %"class.std::vector"], ptr %8, i32 0, i32 0
  %247 = getelementptr inbounds %"class.std::vector", ptr %246, i64 5
  br label %248

248:                                              ; preds = %248, %245
  %249 = phi ptr [ %247, %245 ], [ %250, %248 ]
  %250 = getelementptr inbounds %"class.std::vector", ptr %249, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %250) #5
  %251 = icmp eq ptr %250, %246
  br i1 %251, label %252, label %248

252:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %253

253:                                              ; preds = %252
  %254 = load ptr, ptr %10, align 8
  %255 = load i32, ptr %11, align 4
  %256 = insertvalue { ptr, i32 } poison, ptr %254, 0
  %257 = insertvalue { ptr, i32 } %256, i32 %255, 1
  resume { ptr, i32 } %257
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #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) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 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 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; 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::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 }

@_ZSt3cin = external global %"class.std::basic_istream", 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
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
.preheader94:
  %0 = alloca i32, align 4
  %1 = alloca i32, align 4
  %2 = alloca [5 x %"class.std::vector"], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %0)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #6
  %.ptr.2 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #6
  %.ptr.3 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #6
  %.ptr.4 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #6
  %4 = load i32, ptr %0, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %.preheader92.preheader

.preheader92.preheader:                           ; preds = %12, %.preheader94
  br label %.preheader92

.lr.ph:                                           ; preds = %.preheader94, %12
  %.05595 = phi i32 [ %13, %12 ], [ 0, %.preheader94 ]
  %6 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %7 unwind label %16

7:                                                ; preds = %.lr.ph
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = srem i32 %8, 5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [5 x %"class.std::vector"], ptr %2, i64 0, i64 %10
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %12 unwind label %16

12:                                               ; preds = %7
  %13 = add nuw nsw i32 %.05595, 1
  %14 = load i32, ptr %0, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %.lr.ph, label %.preheader92.preheader, !llvm.loop !9

16:                                               ; preds = %7, %.lr.ph
  %17 = landingpad { ptr, i32 }
          cleanup
  %18 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %19 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %20 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %21 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #6
  resume { ptr, i32 } %17

.preheader92:                                     ; preds = %.preheader92.preheader, %._crit_edge
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge ], [ 0, %.preheader92.preheader ]
  %.054111 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %.preheader92.preheader ]
  %.056110 = phi double [ %.157.lcssa, %._crit_edge ], [ 0.000000e+00, %.preheader92.preheader ]
  %.059109 = phi i32 [ %.160.lcssa, %._crit_edge ], [ 0, %.preheader92.preheader ]
  %.062108 = phi i32 [ %.163.lcssa, %._crit_edge ], [ 0, %.preheader92.preheader ]
  %22 = getelementptr inbounds [5 x %"class.std::vector"], ptr %2, i64 0, i64 %indvars.iv122
  %23 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %.not116 = icmp eq i64 %23, 0
  br i1 %.not116, label %._crit_edge, label %.lr.ph101

.lr.ph101:                                        ; preds = %.preheader92
  %24 = icmp eq i64 %indvars.iv122, 0
  %25 = icmp eq i64 %indvars.iv122, 1
  br i1 %24, label %.lr.ph101.split.us, label %.lr.ph101.split.preheader

.lr.ph101.split.preheader:                        ; preds = %.lr.ph101
  %.not73 = xor i1 %25, true
  %26 = trunc nuw nsw i64 %indvars.iv122 to i32
  br label %.lr.ph101.split

.lr.ph101.split.us:                               ; preds = %.lr.ph101, %.thread82.us
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %.thread82.us ], [ 0, %.lr.ph101 ]
  %.199.us = phi i32 [ %.2.ph.us, %.thread82.us ], [ %.054111, %.lr.ph101 ]
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv119) #6
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = and i32 %28, 1
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %.thread82.us

31:                                               ; preds = %.lr.ph101.split.us
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv119) #6
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %33, %.199.us
  br label %.thread82.us

.thread82.us:                                     ; preds = %.lr.ph101.split.us, %31
  %.2.ph.us = phi i32 [ %.199.us, %.lr.ph101.split.us ], [ %34, %31 ]
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %35 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %36 = icmp ugt i64 %35, %indvars.iv.next120
  br i1 %36, label %.lr.ph101.split.us, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.thread82, %.thread82.us, %.preheader92
  %.163.lcssa = phi i32 [ %.062108, %.preheader92 ], [ %.062108, %.thread82.us ], [ %.38085, %.thread82 ]
  %.160.lcssa = phi i32 [ %.059109, %.preheader92 ], [ %.059109, %.thread82.us ], [ %.261, %.thread82 ]
  %.157.lcssa = phi double [ %.056110, %.preheader92 ], [ %.056110, %.thread82.us ], [ %.25886, %.thread82 ]
  %.1.lcssa = phi i32 [ %.054111, %.preheader92 ], [ %.2.ph.us, %.thread82.us ], [ %.054111, %.thread82 ]
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next123, 5
  br i1 %exitcond.not, label %.preheader91, label %.preheader92, !llvm.loop !12

.lr.ph101.split:                                  ; preds = %.lr.ph101.split.preheader, %.thread82
  %indvars.iv = phi i64 [ 0, %.lr.ph101.split.preheader ], [ %indvars.iv.next, %.thread82 ]
  %.15798 = phi double [ %.056110, %.lr.ph101.split.preheader ], [ %.25886, %.thread82 ]
  %.16097 = phi i32 [ %.059109, %.lr.ph101.split.preheader ], [ %.261, %.thread82 ]
  %.16396 = phi i32 [ %.062108, %.lr.ph101.split.preheader ], [ %.38085, %.thread82 ]
  %37 = and i64 %indvars.iv, 1
  %38 = icmp eq i64 %37, 0
  %or.cond72 = select i1 %25, i1 %38, i1 false
  br i1 %or.cond72, label %.thread139, label %42

.thread139:                                       ; preds = %.lr.ph101.split
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #6
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = add nsw i32 %40, %.16396
  br label %.thread82

42:                                               ; preds = %.lr.ph101.split
  %or.cond74 = select i1 %.not73, i1 true, i1 %38
  br i1 %or.cond74, label %46, label %.thread78

.thread78:                                        ; preds = %42
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #6
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sub nsw i32 %.16396, %44
  br label %.thread82

46:                                               ; preds = %42
  switch i32 %26, label %.thread82 [
    i32 3, label %47
    i32 4, label %52
  ]

47:                                               ; preds = %46
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #6
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = sitofp i32 %49 to double
  %51 = fadd double %.15798, %50
  br label %.thread82

52:                                               ; preds = %46
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #6
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, %.16097
  br i1 %55, label %56, label %.thread82

56:                                               ; preds = %52
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #6
  %58 = load i32, ptr %57, align 4, !tbaa !5
  br label %.thread82

.thread82:                                        ; preds = %.thread139, %46, %47, %.thread78, %52, %56
  %.25886 = phi double [ %.15798, %56 ], [ %.15798, %52 ], [ %.15798, %.thread78 ], [ %51, %47 ], [ %.15798, %46 ], [ %.15798, %.thread139 ]
  %.38085 = phi i32 [ %.16396, %56 ], [ %.16396, %52 ], [ %45, %.thread78 ], [ %.16396, %47 ], [ %.16396, %46 ], [ %41, %.thread139 ]
  %.261 = phi i32 [ %58, %56 ], [ %.16097, %52 ], [ %.16097, %.thread78 ], [ %.16097, %47 ], [ %.16097, %46 ], [ %.16097, %.thread139 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %59 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %60 = icmp ugt i64 %59, %indvars.iv.next
  br i1 %60, label %.lr.ph101.split, label %._crit_edge, !llvm.loop !11

.preheader91:                                     ; preds = %._crit_edge
  %61 = icmp eq i32 %.1.lcssa, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %.preheader91
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %66

64:                                               ; preds = %.preheader91
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.1.lcssa)
  br label %66

66:                                               ; preds = %62, %64
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %68 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #6
  %69 = icmp eq i64 %68, 0
  br i1 %69, label %72, label %70

70:                                               ; preds = %66
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.163.lcssa)
  br label %74

72:                                               ; preds = %66
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %74

74:                                               ; preds = %70, %72
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %76 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #6
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %81, label %78

78:                                               ; preds = %74
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #6
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %79)
  br label %83

81:                                               ; preds = %74
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %83

83:                                               ; preds = %78, %81
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %85 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #6
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %92, label %87

87:                                               ; preds = %83
  %88 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #6
  %89 = uitofp i64 %88 to double
  %90 = fdiv double %.157.lcssa, %89
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %90)
  br label %94

92:                                               ; preds = %83
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %94

94:                                               ; preds = %87, %92
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %96 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #6
  %97 = icmp eq i64 %96, 0
  br i1 %97, label %100, label %98

98:                                               ; preds = %94
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.160.lcssa)
  br label %.preheader.preheader

100:                                              ; preds = %94
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %100, %98
  %102 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %102) #6
  %103 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %103) #6
  %104 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %104) #6
  %105 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %105) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #6
  ret i32 0
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 #4 align 2

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

; Function Attrs: 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { mustprogress 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 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 = { 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 = { 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 #6 = { nounwind }

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

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


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass