; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SHORT/COOK69/Problem D/D.ll (Z9getAnswerii)

; 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
@s = external dso_local global [125125 x i8], align 16
@t = external dso_local global [125125 x i8], align 16
@low = external dso_local global [125125 x [10 x i32]], align 16
@per = external dso_local global [10 x i32], align 16
@assign1 = external dso_local global [10 x i32], align 16
@assign2 = external dso_local global [10 x i32], align 16
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3LCPii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9getAnswerii(i32 noundef %0, i32 noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %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
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %35, %2
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 10
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %38

24:                                               ; preds = %20
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %27
  store i32 %25, ptr %28, align 4, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %30
  store i32 0, ptr %31, align 4, !tbaa !5
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %33
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %35

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

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

39:                                               ; preds = %187, %38
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 10
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 5, ptr %8, align 4
  br label %190

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = call noundef i32 @_Z3LCPii(i32 noundef %44, i32 noundef %45)
  store i32 %46, ptr %9, align 4, !tbaa !5
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = add nsw i32 %48, %47
  store i32 %49, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %77, %43
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 10
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %80

54:                                               ; preds = %50
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %56
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [10 x i32], ptr %57, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = add nsw i32 %62, %63
  %65 = icmp slt i32 %61, %64
  br i1 %65, label %66, label %76

66:                                               ; preds = %54
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %68
  store i32 1, ptr %69, align 4, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %74
  store i32 1, ptr %75, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %66, %54
  br label %77

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

80:                                               ; preds = %53
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = add nsw i32 %82, %81
  store i32 %83, ptr %3, align 4, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = add nsw i32 %85, %84
  store i32 %86, ptr %4, align 4, !tbaa !5
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = icmp sge i32 %87, %88
  br i1 %89, label %116, label %90

90:                                               ; preds = %80
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = icmp sge i32 %91, %92
  br i1 %93, label %116, label %94

94:                                               ; preds = %90
  %95 = load i32, ptr %3, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !12
  %99 = sext i8 %98 to i32
  %100 = sub nsw i32 %99, 97
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %116, label %105

105:                                              ; preds = %94
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !12
  %110 = sext i8 %109 to i32
  %111 = sub nsw i32 %110, 97
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %105, %94, %90, %80
  store i32 5, ptr %8, align 4
  br label %184

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

118:                                              ; preds = %137, %117
  %119 = load i32, ptr %12, align 4, !tbaa !5
  %120 = icmp slt i32 %119, 10
  br i1 %120, label %122, label %121

121:                                              ; preds = %118
  store i32 11, ptr %8, align 4
  br label %140

122:                                              ; preds = %118
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !12
  %131 = sext i8 %130 to i32
  %132 = sub nsw i32 %131, 97
  %133 = icmp eq i32 %126, %132
  br i1 %133, label %134, label %136

134:                                              ; preds = %122
  %135 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %135, ptr %11, align 4, !tbaa !5
  store i32 11, ptr %8, align 4
  br label %140

136:                                              ; preds = %122
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %12, align 4, !tbaa !5
  br label %118, !llvm.loop !13

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

141:                                              ; preds = %140
  %142 = load i32, ptr %3, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !12
  %146 = sext i8 %145 to i32
  %147 = sub nsw i32 %146, 97
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = load i32, ptr %11, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %152
  store i32 %150, ptr %153, align 4, !tbaa !5
  %154 = load i32, ptr %4, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !12
  %158 = sext i8 %157 to i32
  %159 = sub nsw i32 %158, 97
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %161
  %163 = load i8, ptr %162, align 1, !tbaa !12
  %164 = sext i8 %163 to i32
  %165 = sub nsw i32 %164, 97
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %166
  store i32 %159, ptr %167, align 4, !tbaa !5
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %169
  %171 = load i8, ptr %170, align 1, !tbaa !12
  %172 = sext i8 %171 to i32
  %173 = sub nsw i32 %172, 97
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %174
  store i32 1, ptr %175, align 4, !tbaa !5
  %176 = load i32, ptr %4, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %177
  %179 = load i8, ptr %178, align 1, !tbaa !12
  %180 = sext i8 %179 to i32
  %181 = sub nsw i32 %180, 97
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %182
  store i32 1, ptr %183, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  store i32 0, ptr %8, align 4
  br label %184

184:                                              ; preds = %141, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %185 = load i32, ptr %8, align 4
  switch i32 %185, label %190 [
    i32 0, label %186
  ]

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %7, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %7, align 4, !tbaa !5
  br label %39, !llvm.loop !14

190:                                              ; preds = %184, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %191

191:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %209, %191
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = icmp slt i32 %193, 10
  br i1 %194, label %196, label %195

195:                                              ; preds = %192
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %212

196:                                              ; preds = %192
  %197 = load i32, ptr %14, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %208, label %202

202:                                              ; preds = %196
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %203 unwind label %204

203:                                              ; preds = %202
  br label %208

204:                                              ; preds = %202
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %15, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %268

208:                                              ; preds = %203, %196
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %14, align 4, !tbaa !5
  br label %192, !llvm.loop !15

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

213:                                              ; preds = %233, %212
  %214 = load i32, ptr %17, align 4, !tbaa !5
  %215 = icmp slt i32 %214, 10
  br i1 %215, label %217, label %216

216:                                              ; preds = %213
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %236

217:                                              ; preds = %213
  %218 = load i32, ptr %17, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %232, label %223

223:                                              ; preds = %217
  %224 = load i32, ptr %18, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %18, align 4, !tbaa !5
  %226 = sext i32 %224 to i64
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %226) #4
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = load i32, ptr %17, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %230
  store i32 %228, ptr %231, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %223, %217
  br label %233

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

236:                                              ; preds = %216
  %237 = load i32, ptr %6, align 4, !tbaa !5
  %238 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %237)
          to label %239 unwind label %244

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

240:                                              ; preds = %258, %239
  %241 = load i32, ptr %19, align 4, !tbaa !5
  %242 = icmp slt i32 %241, 10
  br i1 %242, label %248, label %243

243:                                              ; preds = %240
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %265

244:                                              ; preds = %265, %236
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %15, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %16, align 4
  br label %268

248:                                              ; preds = %240
  %249 = load i32, ptr %19, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = add nsw i32 97, %252
  %254 = trunc i32 %253 to i8
  %255 = sext i8 %254 to i32
  %256 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %255)
          to label %257 unwind label %261

257:                                              ; preds = %248
  br label %258

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

261:                                              ; preds = %248
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %15, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %268

265:                                              ; preds = %243
  %266 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %267 unwind label %244

267:                                              ; preds = %265
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  ret void

268:                                              ; preds = %261, %244, %204
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr %15, align 8
  %271 = load i32, ptr %16, align 4
  %272 = insertvalue { ptr, i32 } poison, ptr %270, 0
  %273 = insertvalue { ptr, i32 } %272, i32 %271, 1
  resume { ptr, i32 } %273
}

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

declare i32 @__gxx_personality_v0(...)

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !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 local_unnamed_addr global i32, align 4
@s = external dso_local local_unnamed_addr global [125125 x i8], align 16
@t = external dso_local local_unnamed_addr global [125125 x i8], align 16
@low = external dso_local local_unnamed_addr global [125125 x [10 x i32]], align 16
@per = external dso_local local_unnamed_addr global [10 x i32], align 16
@assign1 = external dso_local local_unnamed_addr global [10 x i32], align 16
@assign2 = external dso_local local_unnamed_addr global [10 x i32], align 16
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3LCPii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9getAnswerii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
.preheader71.preheader:
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) @assign2, i8 0, i64 40, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) @assign1, i8 0, i64 40, i1 false), !tbaa !5
  store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, ptr @per, align 16, !tbaa !5
  store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  store i32 8, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  store i32 9, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  br label %.preheader71

.preheader71:                                     ; preds = %.preheader71.preheader, %.critedge
  %.05278 = phi i32 [ %6, %.critedge ], [ %0, %.preheader71.preheader ]
  %.05377 = phi i32 [ %88, %.critedge ], [ %1, %.preheader71.preheader ]
  %.05976 = phi i32 [ %140, %.critedge ], [ 0, %.preheader71.preheader ]
  %.06075 = phi i32 [ %87, %.critedge ], [ 0, %.preheader71.preheader ]
  %4 = tail call noundef i32 @_Z3LCPii(i32 noundef %.05278, i32 noundef %.05377)
  %5 = sext i32 %.05278 to i64
  %6 = add nsw i32 %4, %.05278
  %7 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 0
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp slt i32 %8, %6
  br i1 %9, label %10, label %14

10:                                               ; preds = %.preheader71
  store i32 1, ptr @assign1, align 16, !tbaa !5
  %11 = load i32, ptr @per, align 16, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %12
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %.preheader71, %10
  %15 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 1
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = icmp slt i32 %16, %6
  br i1 %17, label %18, label %22

18:                                               ; preds = %14
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 4), align 4, !tbaa !5
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 4), align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %20
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %18, %14
  %23 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 2
  %24 = load i32, ptr %23, align 8, !tbaa !5
  %25 = icmp slt i32 %24, %6
  br i1 %25, label %26, label %30

26:                                               ; preds = %22
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 8), align 8, !tbaa !5
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 8), align 8, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %28
  store i32 1, ptr %29, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %26, %22
  %31 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 3
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp slt i32 %32, %6
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 12), align 4, !tbaa !5
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 12), align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %36
  store i32 1, ptr %37, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %34, %30
  %39 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 4
  %40 = load i32, ptr %39, align 8, !tbaa !5
  %41 = icmp slt i32 %40, %6
  br i1 %41, label %42, label %46

42:                                               ; preds = %38
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 16), align 16, !tbaa !5
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %44
  store i32 1, ptr %45, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %42, %38
  %47 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 5
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp slt i32 %48, %6
  br i1 %49, label %50, label %54

50:                                               ; preds = %46
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 20), align 4, !tbaa !5
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 20), align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %52
  store i32 1, ptr %53, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %50, %46
  %55 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 6
  %56 = load i32, ptr %55, align 8, !tbaa !5
  %57 = icmp slt i32 %56, %6
  br i1 %57, label %58, label %62

58:                                               ; preds = %54
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 24), align 8, !tbaa !5
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 24), align 8, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %60
  store i32 1, ptr %61, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %58, %54
  %63 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 7
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = icmp slt i32 %64, %6
  br i1 %65, label %66, label %70

66:                                               ; preds = %62
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 28), align 4, !tbaa !5
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 28), align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %68
  store i32 1, ptr %69, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %66, %62
  %71 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 8
  %72 = load i32, ptr %71, align 8, !tbaa !5
  %73 = icmp slt i32 %72, %6
  br i1 %73, label %74, label %78

74:                                               ; preds = %70
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 32), align 16, !tbaa !5
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %76
  store i32 1, ptr %77, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %74, %70
  %79 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %5, i64 9
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = icmp slt i32 %80, %6
  br i1 %81, label %82, label %86

82:                                               ; preds = %78
  store i32 1, ptr getelementptr inbounds (i8, ptr @assign1, i64 36), align 4, !tbaa !5
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %84
  store i32 1, ptr %85, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %82, %78
  %87 = add nsw i32 %4, %.06075
  %88 = add nsw i32 %4, %.05377
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %.not = icmp slt i32 %6, %89
  %.not66 = icmp slt i32 %88, %89
  %or.cond = select i1 %.not, i1 %.not66, i1 false
  br i1 %or.cond, label %90, label %141

90:                                               ; preds = %86
  %91 = sext i32 %6 to i64
  %92 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !9
  %94 = sext i8 %93 to i64
  %95 = add nsw i64 %94, -97
  %96 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not67 = icmp eq i32 %97, 0
  br i1 %.not67, label %98, label %141

98:                                               ; preds = %90
  %99 = sext i32 %88 to i64
  %100 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !9
  %102 = sext i8 %101 to i64
  %103 = add nsw i64 %102, -97
  %104 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %.not68 = icmp eq i32 %105, 0
  br i1 %.not68, label %.preheader, label %141

.preheader:                                       ; preds = %98
  %106 = sext i8 %101 to i32
  %107 = add nsw i32 %106, -97
  %108 = load i32, ptr @per, align 16, !tbaa !5
  %109 = icmp eq i32 %108, %107
  br i1 %109, label %.critedge, label %110

110:                                              ; preds = %.preheader
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 4), align 4, !tbaa !5
  %112 = icmp eq i32 %111, %107
  br i1 %112, label %.critedge, label %113

113:                                              ; preds = %110
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 8), align 8, !tbaa !5
  %115 = icmp eq i32 %114, %107
  br i1 %115, label %.critedge, label %116

116:                                              ; preds = %113
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 12), align 4, !tbaa !5
  %118 = icmp eq i32 %117, %107
  br i1 %118, label %.critedge, label %119

119:                                              ; preds = %116
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  %121 = icmp eq i32 %120, %107
  br i1 %121, label %.critedge, label %122

122:                                              ; preds = %119
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 20), align 4, !tbaa !5
  %124 = icmp eq i32 %123, %107
  br i1 %124, label %.critedge, label %125

125:                                              ; preds = %122
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 24), align 8, !tbaa !5
  %127 = icmp eq i32 %126, %107
  br i1 %127, label %.critedge, label %128

128:                                              ; preds = %125
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 28), align 4, !tbaa !5
  %130 = icmp eq i32 %129, %107
  br i1 %130, label %.critedge, label %131

131:                                              ; preds = %128
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  %133 = icmp eq i32 %132, %107
  br i1 %133, label %.critedge, label %134

134:                                              ; preds = %131
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  %136 = icmp eq i32 %135, %107
  %spec.select = select i1 %136, i64 9, i64 -1
  br label %.critedge

.critedge:                                        ; preds = %134, %131, %128, %125, %122, %119, %116, %113, %110, %.preheader
  %.055 = phi i64 [ 0, %.preheader ], [ 1, %110 ], [ 2, %113 ], [ 3, %116 ], [ 4, %119 ], [ 5, %122 ], [ 6, %125 ], [ 7, %128 ], [ 8, %131 ], [ %spec.select, %134 ]
  %137 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %95
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %.055
  store i32 %138, ptr %139, align 4, !tbaa !5
  store i32 %107, ptr %137, align 4, !tbaa !5
  store i32 1, ptr %96, align 4, !tbaa !5
  store i32 1, ptr %104, align 4, !tbaa !5
  %140 = add nuw nsw i32 %.05976, 1
  %exitcond.not = icmp eq i32 %140, 10
  br i1 %exitcond.not, label %141, label %.preheader71, !llvm.loop !10

141:                                              ; preds = %98, %90, %86, %.critedge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %144

142:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %143 = load i32, ptr @assign1, align 16, !tbaa !5
  %.not69 = icmp eq i32 %143, 0
  br i1 %.not69, label %155, label %158

144:                                              ; preds = %141, %151
  %storemerge79 = phi i32 [ 0, %141 ], [ %153, %151 ]
  %145 = sext i32 %storemerge79 to i64
  %146 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %.not70 = icmp eq i32 %147, 0
  br i1 %.not70, label %148, label %151

148:                                              ; preds = %144
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %._crit_edge unwind label %149

._crit_edge:                                      ; preds = %148
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %151

149:                                              ; preds = %148
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %150

151:                                              ; preds = %._crit_edge, %144
  %152 = phi i32 [ %.pre, %._crit_edge ], [ %storemerge79, %144 ]
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %3, align 4, !tbaa !5
  %154 = icmp slt i32 %152, 9
  br i1 %154, label %144, label %142, !llvm.loop !12

155:                                              ; preds = %142
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #5
  %157 = load i32, ptr %156, align 4, !tbaa !5
  store i32 %157, ptr @per, align 16, !tbaa !5
  br label %158

158:                                              ; preds = %142, %155
  %.1 = phi i32 [ 0, %142 ], [ 1, %155 ]
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 4), align 4, !tbaa !5
  %.not69.1 = icmp eq i32 %159, 0
  br i1 %.not69.1, label %160, label %165

160:                                              ; preds = %158
  %161 = add nuw nsw i32 %.1, 1
  %162 = zext nneg i32 %.1 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %162) #5
  %164 = load i32, ptr %163, align 4, !tbaa !5
  store i32 %164, ptr getelementptr inbounds (i8, ptr @per, i64 4), align 4, !tbaa !5
  br label %165

165:                                              ; preds = %160, %158
  %.1.1 = phi i32 [ %.1, %158 ], [ %161, %160 ]
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 8), align 8, !tbaa !5
  %.not69.2 = icmp eq i32 %166, 0
  br i1 %.not69.2, label %167, label %172

167:                                              ; preds = %165
  %168 = add nuw nsw i32 %.1.1, 1
  %169 = zext nneg i32 %.1.1 to i64
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %169) #5
  %171 = load i32, ptr %170, align 4, !tbaa !5
  store i32 %171, ptr getelementptr inbounds (i8, ptr @per, i64 8), align 8, !tbaa !5
  br label %172

172:                                              ; preds = %167, %165
  %.1.2 = phi i32 [ %.1.1, %165 ], [ %168, %167 ]
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 12), align 4, !tbaa !5
  %.not69.3 = icmp eq i32 %173, 0
  br i1 %.not69.3, label %174, label %179

174:                                              ; preds = %172
  %175 = add nuw nsw i32 %.1.2, 1
  %176 = zext nneg i32 %.1.2 to i64
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %176) #5
  %178 = load i32, ptr %177, align 4, !tbaa !5
  store i32 %178, ptr getelementptr inbounds (i8, ptr @per, i64 12), align 4, !tbaa !5
  br label %179

179:                                              ; preds = %174, %172
  %.1.3 = phi i32 [ %.1.2, %172 ], [ %175, %174 ]
  %180 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 16), align 16, !tbaa !5
  %.not69.4 = icmp eq i32 %180, 0
  br i1 %.not69.4, label %181, label %186

181:                                              ; preds = %179
  %182 = add nuw nsw i32 %.1.3, 1
  %183 = zext nneg i32 %.1.3 to i64
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %183) #5
  %185 = load i32, ptr %184, align 4, !tbaa !5
  store i32 %185, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  br label %186

186:                                              ; preds = %181, %179
  %.1.4 = phi i32 [ %.1.3, %179 ], [ %182, %181 ]
  %187 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 20), align 4, !tbaa !5
  %.not69.5 = icmp eq i32 %187, 0
  br i1 %.not69.5, label %188, label %193

188:                                              ; preds = %186
  %189 = add nuw nsw i32 %.1.4, 1
  %190 = zext nneg i32 %.1.4 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %190) #5
  %192 = load i32, ptr %191, align 4, !tbaa !5
  store i32 %192, ptr getelementptr inbounds (i8, ptr @per, i64 20), align 4, !tbaa !5
  br label %193

193:                                              ; preds = %188, %186
  %.1.5 = phi i32 [ %.1.4, %186 ], [ %189, %188 ]
  %194 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 24), align 8, !tbaa !5
  %.not69.6 = icmp eq i32 %194, 0
  br i1 %.not69.6, label %195, label %200

195:                                              ; preds = %193
  %196 = add nuw nsw i32 %.1.5, 1
  %197 = zext nneg i32 %.1.5 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %197) #5
  %199 = load i32, ptr %198, align 4, !tbaa !5
  store i32 %199, ptr getelementptr inbounds (i8, ptr @per, i64 24), align 8, !tbaa !5
  br label %200

200:                                              ; preds = %195, %193
  %.1.6 = phi i32 [ %.1.5, %193 ], [ %196, %195 ]
  %201 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 28), align 4, !tbaa !5
  %.not69.7 = icmp eq i32 %201, 0
  br i1 %.not69.7, label %202, label %207

202:                                              ; preds = %200
  %203 = add nuw nsw i32 %.1.6, 1
  %204 = zext nneg i32 %.1.6 to i64
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %204) #5
  %206 = load i32, ptr %205, align 4, !tbaa !5
  store i32 %206, ptr getelementptr inbounds (i8, ptr @per, i64 28), align 4, !tbaa !5
  br label %207

207:                                              ; preds = %202, %200
  %.1.7 = phi i32 [ %.1.6, %200 ], [ %203, %202 ]
  %208 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 32), align 16, !tbaa !5
  %.not69.8 = icmp eq i32 %208, 0
  br i1 %.not69.8, label %209, label %214

209:                                              ; preds = %207
  %210 = add nuw nsw i32 %.1.7, 1
  %211 = zext nneg i32 %.1.7 to i64
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %211) #5
  %213 = load i32, ptr %212, align 4, !tbaa !5
  store i32 %213, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  br label %214

214:                                              ; preds = %209, %207
  %.1.8 = phi i32 [ %.1.7, %207 ], [ %210, %209 ]
  %215 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 36), align 4, !tbaa !5
  %.not69.9 = icmp eq i32 %215, 0
  br i1 %.not69.9, label %216, label %220

216:                                              ; preds = %214
  %217 = zext nneg i32 %.1.8 to i64
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %217) #5
  %219 = load i32, ptr %218, align 4, !tbaa !5
  store i32 %219, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  br label %220

220:                                              ; preds = %216, %214
  %221 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %87)
  %222 = load i32, ptr @per, align 16, !tbaa !5
  %223 = shl i32 %222, 24
  %sext = add i32 %223, 1627389952
  %224 = ashr exact i32 %sext, 24
  %225 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %224)
  %226 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 4), align 4, !tbaa !5
  %227 = shl i32 %226, 24
  %sext.1 = add i32 %227, 1627389952
  %228 = ashr exact i32 %sext.1, 24
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %228)
  %230 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 8), align 8, !tbaa !5
  %231 = shl i32 %230, 24
  %sext.2 = add i32 %231, 1627389952
  %232 = ashr exact i32 %sext.2, 24
  %233 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %232)
  %234 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 12), align 4, !tbaa !5
  %235 = shl i32 %234, 24
  %sext.3 = add i32 %235, 1627389952
  %236 = ashr exact i32 %sext.3, 24
  %237 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %236)
  %238 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  %239 = shl i32 %238, 24
  %sext.4 = add i32 %239, 1627389952
  %240 = ashr exact i32 %sext.4, 24
  %241 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %240)
  %242 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 20), align 4, !tbaa !5
  %243 = shl i32 %242, 24
  %sext.5 = add i32 %243, 1627389952
  %244 = ashr exact i32 %sext.5, 24
  %245 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %244)
  %246 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 24), align 8, !tbaa !5
  %247 = shl i32 %246, 24
  %sext.6 = add i32 %247, 1627389952
  %248 = ashr exact i32 %sext.6, 24
  %249 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %248)
  %250 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 28), align 4, !tbaa !5
  %251 = shl i32 %250, 24
  %sext.7 = add i32 %251, 1627389952
  %252 = ashr exact i32 %sext.7, 24
  %253 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %252)
  %254 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  %255 = shl i32 %254, 24
  %sext.8 = add i32 %255, 1627389952
  %256 = ashr exact i32 %sext.8, 24
  %257 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %256)
  %258 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  %259 = shl i32 %258, 24
  %sext.9 = add i32 %259, 1627389952
  %260 = ashr exact i32 %sext.9, 24
  %261 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %260)
  %262 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 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)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass