; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SHORT/COOK69/Problem D/D2.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 = %204, %38
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 10
  br i1 %41, label %42, label %50

42:                                               ; preds = %39
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %46, label %50

46:                                               ; preds = %42
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br label %50

50:                                               ; preds = %46, %42, %39
  %51 = phi i1 [ false, %42 ], [ false, %39 ], [ %49, %46 ]
  br i1 %51, label %53, label %52

52:                                               ; preds = %50
  store i32 5, ptr %8, align 4
  br label %207

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = call noundef i32 @_Z3LCPii(i32 noundef %54, i32 noundef %55)
  store i32 %56, ptr %9, align 4, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = add nsw i32 %58, %57
  store i32 %59, 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 %60

60:                                               ; preds = %87, %53
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = icmp slt i32 %61, 10
  br i1 %62, label %64, label %63

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

64:                                               ; preds = %60
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %66
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [10 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = add nsw i32 %72, %73
  %75 = icmp slt i32 %71, %74
  br i1 %75, label %76, label %86

76:                                               ; preds = %64
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %78
  store i32 1, ptr %79, align 4, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %81
  %83 = load i32, ptr %82, 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 = %76, %64
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %10, align 4, !tbaa !5
  br label %60, !llvm.loop !11

90:                                               ; preds = %63
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = add nsw i32 %92, %91
  store i32 %93, ptr %3, align 4, !tbaa !5
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = add nsw i32 %95, %94
  store i32 %96, ptr %4, align 4, !tbaa !5
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = load i32, ptr @n, align 4, !tbaa !5
  %99 = icmp sge i32 %97, %98
  br i1 %99, label %104, label %100

100:                                              ; preds = %90
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = load i32, ptr @n, align 4, !tbaa !5
  %103 = icmp sge i32 %101, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %100, %90
  store i32 5, ptr %8, align 4
  br label %201

105:                                              ; preds = %100
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [125125 x i8], ptr @s, 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 @assign1, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %127, label %116

116:                                              ; preds = %105
  %117 = load i32, ptr %4, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !12
  %121 = sext i8 %120 to i32
  %122 = sub nsw i32 %121, 97
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %128

127:                                              ; preds = %116, %105
  store i32 5, ptr %8, align 4
  br label %201

128:                                              ; preds = %116
  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 %129

129:                                              ; preds = %148, %128
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = icmp slt i32 %130, 10
  br i1 %131, label %133, label %132

132:                                              ; preds = %129
  store i32 11, ptr %8, align 4
  br label %151

133:                                              ; preds = %129
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %139
  %141 = load i8, ptr %140, align 1, !tbaa !12
  %142 = sext i8 %141 to i32
  %143 = sub nsw i32 %142, 97
  %144 = icmp eq i32 %137, %143
  br i1 %144, label %145, label %147

145:                                              ; preds = %133
  %146 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %146, ptr %11, align 4, !tbaa !5
  store i32 11, ptr %8, align 4
  br label %151

147:                                              ; preds = %133
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %12, align 4, !tbaa !5
  br label %129, !llvm.loop !13

151:                                              ; preds = %145, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %154
  %156 = load i8, ptr %155, align 1, !tbaa !12
  %157 = sext i8 %156 to i32
  %158 = sub nsw i32 %157, 97
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = load i32, ptr %11, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %163
  store i32 %161, ptr %164, align 4, !tbaa !5
  %165 = load i32, ptr %4, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %166
  %168 = load i8, ptr %167, align 1, !tbaa !12
  %169 = sext i8 %168 to i32
  %170 = sub nsw i32 %169, 97
  %171 = load i32, ptr %3, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %172
  %174 = load i8, ptr %173, align 1, !tbaa !12
  %175 = sext i8 %174 to i32
  %176 = sub nsw i32 %175, 97
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %177
  store i32 %170, ptr %178, align 4, !tbaa !5
  %179 = load i32, ptr %3, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %180
  %182 = load i8, ptr %181, align 1, !tbaa !12
  %183 = sext i8 %182 to i32
  %184 = sub nsw i32 %183, 97
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %185
  store i32 1, ptr %186, align 4, !tbaa !5
  %187 = load i32, ptr %4, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %188
  %190 = load i8, ptr %189, align 1, !tbaa !12
  %191 = sext i8 %190 to i32
  %192 = sub nsw i32 %191, 97
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %193
  store i32 1, ptr %194, align 4, !tbaa !5
  %195 = load i32, ptr %6, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %6, align 4, !tbaa !5
  %197 = load i32, ptr %3, align 4, !tbaa !5
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %3, align 4, !tbaa !5
  %199 = load i32, ptr %4, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  store i32 0, ptr %8, align 4
  br label %201

201:                                              ; preds = %152, %127, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %202 = load i32, ptr %8, align 4
  switch i32 %202, label %207 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %7, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %7, align 4, !tbaa !5
  br label %39, !llvm.loop !14

207:                                              ; preds = %201, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %208

208:                                              ; preds = %207
  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 %209

209:                                              ; preds = %226, %208
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = icmp slt i32 %210, 10
  br i1 %211, label %213, label %212

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

213:                                              ; preds = %209
  %214 = load i32, ptr %14, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %225, label %219

219:                                              ; preds = %213
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %220 unwind label %221

220:                                              ; preds = %219
  br label %225

221:                                              ; preds = %219
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %15, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %286

225:                                              ; preds = %220, %213
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %14, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %14, align 4, !tbaa !5
  br label %209, !llvm.loop !15

229:                                              ; preds = %212
  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 %230

230:                                              ; preds = %250, %229
  %231 = load i32, ptr %18, align 4, !tbaa !5
  %232 = icmp slt i32 %231, 10
  br i1 %232, label %234, label %233

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

234:                                              ; preds = %230
  %235 = load i32, ptr %18, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %249, label %240

240:                                              ; preds = %234
  %241 = load i32, ptr %17, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %17, align 4, !tbaa !5
  %243 = sext i32 %241 to i64
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %243) #4
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = load i32, ptr %18, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %247
  store i32 %245, ptr %248, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %240, %234
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %18, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %18, align 4, !tbaa !5
  br label %230, !llvm.loop !16

253:                                              ; preds = %233
  %254 = load i32, ptr %6, align 4, !tbaa !5
  %255 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %254)
          to label %256 unwind label %261

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

257:                                              ; preds = %275, %256
  %258 = load i32, ptr %19, align 4, !tbaa !5
  %259 = icmp slt i32 %258, 10
  br i1 %259, label %265, label %260

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

261:                                              ; preds = %282, %253
  %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
  br label %285

265:                                              ; preds = %257
  %266 = load i32, ptr %19, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = add nsw i32 97, %269
  %271 = trunc i32 %270 to i8
  %272 = sext i8 %271 to i32
  %273 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %272)
          to label %274 unwind label %278

274:                                              ; preds = %265
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %19, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %19, align 4, !tbaa !5
  br label %257, !llvm.loop !17

278:                                              ; preds = %265
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %15, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %285

282:                                              ; preds = %260
  %283 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %284 unwind label %261

284:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  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

285:                                              ; preds = %278, %261
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %286

286:                                              ; preds = %285, %221
  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 %287

287:                                              ; preds = %286
  %288 = load ptr, ptr %15, align 8
  %289 = load i32, ptr %16, align 4
  %290 = insertvalue { ptr, i32 } poison, ptr %288, 0
  %291 = insertvalue { ptr, i32 } %290, i32 %289, 1
  resume { ptr, i32 } %291
}

; 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 {
.preheader84.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
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader84

.preheader84:                                     ; preds = %.preheader84.preheader, %141
  %4 = phi i32 [ %93, %141 ], [ %.pre, %.preheader84.preheader ]
  %.05791 = phi i32 [ %146, %141 ], [ %0, %.preheader84.preheader ]
  %.05990 = phi i32 [ %147, %141 ], [ %1, %.preheader84.preheader ]
  %.06689 = phi i32 [ %148, %141 ], [ 0, %.preheader84.preheader ]
  %.06788 = phi i32 [ %145, %141 ], [ 0, %.preheader84.preheader ]
  %5 = icmp slt i32 %.05791, %4
  %6 = icmp slt i32 %.05990, %4
  %or.cond = select i1 %5, i1 %6, i1 false
  br i1 %or.cond, label %7, label %.critedge

7:                                                ; preds = %.preheader84
  %8 = tail call noundef i32 @_Z3LCPii(i32 noundef %.05791, i32 noundef %.05990)
  %9 = sext i32 %.05791 to i64
  %10 = add nsw i32 %8, %.05791
  %11 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 0
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = icmp slt i32 %12, %10
  br i1 %13, label %14, label %18

14:                                               ; preds = %7
  store i32 1, ptr @assign1, align 16, !tbaa !5
  %15 = load i32, ptr @per, align 16, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %16
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %7, %14
  %19 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 1
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp slt i32 %20, %10
  br i1 %21, label %22, label %26

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

26:                                               ; preds = %22, %18
  %27 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 2
  %28 = load i32, ptr %27, align 8, !tbaa !5
  %29 = icmp slt i32 %28, %10
  br i1 %29, label %30, label %34

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

34:                                               ; preds = %30, %26
  %35 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 3
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp slt i32 %36, %10
  br i1 %37, label %38, label %42

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

42:                                               ; preds = %38, %34
  %43 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 4
  %44 = load i32, ptr %43, align 8, !tbaa !5
  %45 = icmp slt i32 %44, %10
  br i1 %45, label %46, label %50

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

50:                                               ; preds = %46, %42
  %51 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 5
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = icmp slt i32 %52, %10
  br i1 %53, label %54, label %58

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

58:                                               ; preds = %54, %50
  %59 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 6
  %60 = load i32, ptr %59, align 8, !tbaa !5
  %61 = icmp slt i32 %60, %10
  br i1 %61, label %62, label %66

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

66:                                               ; preds = %62, %58
  %67 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 7
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = icmp slt i32 %68, %10
  br i1 %69, label %70, label %74

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

74:                                               ; preds = %70, %66
  %75 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 8
  %76 = load i32, ptr %75, align 8, !tbaa !5
  %77 = icmp slt i32 %76, %10
  br i1 %77, label %78, label %82

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

82:                                               ; preds = %78, %74
  %83 = getelementptr inbounds [125125 x [10 x i32]], ptr @low, i64 0, i64 %9, i64 9
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp slt i32 %84, %10
  br i1 %85, label %86, label %90

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

90:                                               ; preds = %86, %82
  %91 = add nsw i32 %8, %.06788
  %92 = add nsw i32 %8, %.05990
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %.not = icmp slt i32 %10, %93
  %.not74 = icmp slt i32 %92, %93
  %or.cond79 = select i1 %.not, i1 %.not74, i1 false
  br i1 %or.cond79, label %94, label %.critedge

94:                                               ; preds = %90
  %95 = sext i32 %10 to i64
  %96 = getelementptr inbounds [125125 x i8], ptr @s, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !9
  %98 = sext i8 %97 to i64
  %99 = add nsw i64 %98, -97
  %100 = getelementptr inbounds [10 x i32], ptr @assign1, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %.not75 = icmp eq i32 %101, 0
  br i1 %.not75, label %102, label %.critedge

102:                                              ; preds = %94
  %103 = sext i32 %92 to i64
  %104 = getelementptr inbounds [125125 x i8], ptr @t, i64 0, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = sext i8 %105 to i64
  %107 = add nsw i64 %106, -97
  %108 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %.not76 = icmp eq i32 %109, 0
  br i1 %.not76, label %.preheader, label %.critedge

.preheader:                                       ; preds = %102
  %110 = sext i8 %105 to i32
  %111 = add nsw i32 %110, -97
  %112 = load i32, ptr @per, align 16, !tbaa !5
  %113 = icmp eq i32 %112, %111
  br i1 %113, label %141, label %114

114:                                              ; preds = %.preheader
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 4), align 4, !tbaa !5
  %116 = icmp eq i32 %115, %111
  br i1 %116, label %141, label %117

117:                                              ; preds = %114
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 8), align 8, !tbaa !5
  %119 = icmp eq i32 %118, %111
  br i1 %119, label %141, label %120

120:                                              ; preds = %117
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 12), align 4, !tbaa !5
  %122 = icmp eq i32 %121, %111
  br i1 %122, label %141, label %123

123:                                              ; preds = %120
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  %125 = icmp eq i32 %124, %111
  br i1 %125, label %141, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 20), align 4, !tbaa !5
  %128 = icmp eq i32 %127, %111
  br i1 %128, label %141, label %129

129:                                              ; preds = %126
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 24), align 8, !tbaa !5
  %131 = icmp eq i32 %130, %111
  br i1 %131, label %141, label %132

132:                                              ; preds = %129
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 28), align 4, !tbaa !5
  %134 = icmp eq i32 %133, %111
  br i1 %134, label %141, label %135

135:                                              ; preds = %132
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  %137 = icmp eq i32 %136, %111
  br i1 %137, label %141, label %138

138:                                              ; preds = %135
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  %140 = icmp eq i32 %139, %111
  %spec.select = select i1 %140, i64 9, i64 -1
  br label %141

141:                                              ; preds = %138, %135, %132, %129, %126, %123, %120, %117, %114, %.preheader
  %.062 = phi i64 [ 0, %.preheader ], [ 1, %114 ], [ 2, %117 ], [ 3, %120 ], [ 4, %123 ], [ 5, %126 ], [ 6, %129 ], [ 7, %132 ], [ 8, %135 ], [ %spec.select, %138 ]
  %142 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %99
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = getelementptr inbounds [10 x i32], ptr @per, i64 0, i64 %.062
  store i32 %143, ptr %144, align 4, !tbaa !5
  store i32 %111, ptr %142, align 4, !tbaa !5
  store i32 1, ptr %100, align 4, !tbaa !5
  store i32 1, ptr %108, align 4, !tbaa !5
  %145 = add nsw i32 %91, 1
  %146 = add nsw i32 %10, 1
  %147 = add nsw i32 %92, 1
  %148 = add nuw nsw i32 %.06689, 1
  %exitcond.not = icmp eq i32 %148, 10
  br i1 %exitcond.not, label %.critedge, label %.preheader84, !llvm.loop !10

.critedge:                                        ; preds = %94, %102, %90, %141, %.preheader84
  %.2 = phi i32 [ %.06788, %.preheader84 ], [ %145, %141 ], [ %91, %90 ], [ %91, %102 ], [ %91, %94 ]
  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 %151

149:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %150 = load i32, ptr @assign1, align 16, !tbaa !5
  %.not77 = icmp eq i32 %150, 0
  br i1 %.not77, label %162, label %165

151:                                              ; preds = %.critedge, %158
  %storemerge92 = phi i32 [ 0, %.critedge ], [ %160, %158 ]
  %152 = sext i32 %storemerge92 to i64
  %153 = getelementptr inbounds [10 x i32], ptr @assign2, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %.not78 = icmp eq i32 %154, 0
  br i1 %.not78, label %155, label %158

155:                                              ; preds = %151
  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 %156

._crit_edge:                                      ; preds = %155
  %.pre103 = load i32, ptr %3, align 4, !tbaa !5
  br label %158

156:                                              ; preds = %155
  %157 = 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 } %157

158:                                              ; preds = %._crit_edge, %151
  %159 = phi i32 [ %.pre103, %._crit_edge ], [ %storemerge92, %151 ]
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %3, align 4, !tbaa !5
  %161 = icmp slt i32 %159, 9
  br i1 %161, label %151, label %149, !llvm.loop !12

162:                                              ; preds = %149
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #5
  %164 = load i32, ptr %163, align 4, !tbaa !5
  store i32 %164, ptr @per, align 16, !tbaa !5
  br label %165

165:                                              ; preds = %149, %162
  %.1 = phi i32 [ 0, %149 ], [ 1, %162 ]
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 4), align 4, !tbaa !5
  %.not77.1 = icmp eq i32 %166, 0
  br i1 %.not77.1, label %167, label %172

167:                                              ; preds = %165
  %168 = add nuw nsw i32 %.1, 1
  %169 = zext nneg i32 %.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 4), align 4, !tbaa !5
  br label %172

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

174:                                              ; preds = %172
  %175 = add nuw nsw i32 %.1.1, 1
  %176 = zext nneg i32 %.1.1 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 8), align 8, !tbaa !5
  br label %179

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

181:                                              ; preds = %179
  %182 = add nuw nsw i32 %.1.2, 1
  %183 = zext nneg i32 %.1.2 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 12), align 4, !tbaa !5
  br label %186

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

188:                                              ; preds = %186
  %189 = add nuw nsw i32 %.1.3, 1
  %190 = zext nneg i32 %.1.3 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 16), align 16, !tbaa !5
  br label %193

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

195:                                              ; preds = %193
  %196 = add nuw nsw i32 %.1.4, 1
  %197 = zext nneg i32 %.1.4 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 20), align 4, !tbaa !5
  br label %200

200:                                              ; preds = %195, %193
  %.1.5 = phi i32 [ %.1.4, %193 ], [ %196, %195 ]
  %201 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 24), align 8, !tbaa !5
  %.not77.6 = icmp eq i32 %201, 0
  br i1 %.not77.6, label %202, label %207

202:                                              ; preds = %200
  %203 = add nuw nsw i32 %.1.5, 1
  %204 = zext nneg i32 %.1.5 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 24), align 8, !tbaa !5
  br label %207

207:                                              ; preds = %202, %200
  %.1.6 = phi i32 [ %.1.5, %200 ], [ %203, %202 ]
  %208 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 28), align 4, !tbaa !5
  %.not77.7 = icmp eq i32 %208, 0
  br i1 %.not77.7, label %209, label %214

209:                                              ; preds = %207
  %210 = add nuw nsw i32 %.1.6, 1
  %211 = zext nneg i32 %.1.6 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 28), align 4, !tbaa !5
  br label %214

214:                                              ; preds = %209, %207
  %.1.7 = phi i32 [ %.1.6, %207 ], [ %210, %209 ]
  %215 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 32), align 16, !tbaa !5
  %.not77.8 = icmp eq i32 %215, 0
  br i1 %.not77.8, label %216, label %221

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

221:                                              ; preds = %216, %214
  %.1.8 = phi i32 [ %.1.7, %214 ], [ %217, %216 ]
  %222 = load i32, ptr getelementptr inbounds (i8, ptr @assign1, i64 36), align 4, !tbaa !5
  %.not77.9 = icmp eq i32 %222, 0
  br i1 %.not77.9, label %223, label %227

223:                                              ; preds = %221
  %224 = zext nneg i32 %.1.8 to i64
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %224) #5
  %226 = load i32, ptr %225, align 4, !tbaa !5
  store i32 %226, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  br label %227

227:                                              ; preds = %223, %221
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.2)
  %229 = load i32, ptr @per, align 16, !tbaa !5
  %230 = shl i32 %229, 24
  %sext = add i32 %230, 1627389952
  %231 = ashr exact i32 %sext, 24
  %232 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %231)
  %233 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 4), align 4, !tbaa !5
  %234 = shl i32 %233, 24
  %sext.1 = add i32 %234, 1627389952
  %235 = ashr exact i32 %sext.1, 24
  %236 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %235)
  %237 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 8), align 8, !tbaa !5
  %238 = shl i32 %237, 24
  %sext.2 = add i32 %238, 1627389952
  %239 = ashr exact i32 %sext.2, 24
  %240 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %239)
  %241 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 12), align 4, !tbaa !5
  %242 = shl i32 %241, 24
  %sext.3 = add i32 %242, 1627389952
  %243 = ashr exact i32 %sext.3, 24
  %244 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %243)
  %245 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 16), align 16, !tbaa !5
  %246 = shl i32 %245, 24
  %sext.4 = add i32 %246, 1627389952
  %247 = ashr exact i32 %sext.4, 24
  %248 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %247)
  %249 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 20), align 4, !tbaa !5
  %250 = shl i32 %249, 24
  %sext.5 = add i32 %250, 1627389952
  %251 = ashr exact i32 %sext.5, 24
  %252 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %251)
  %253 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 24), align 8, !tbaa !5
  %254 = shl i32 %253, 24
  %sext.6 = add i32 %254, 1627389952
  %255 = ashr exact i32 %sext.6, 24
  %256 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %255)
  %257 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 28), align 4, !tbaa !5
  %258 = shl i32 %257, 24
  %sext.7 = add i32 %258, 1627389952
  %259 = ashr exact i32 %sext.7, 24
  %260 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %259)
  %261 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 32), align 16, !tbaa !5
  %262 = shl i32 %261, 24
  %sext.8 = add i32 %262, 1627389952
  %263 = ashr exact i32 %sext.8, 24
  %264 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %263)
  %265 = load i32, ptr getelementptr inbounds (i8, ptr @per, i64 36), align 4, !tbaa !5
  %266 = shl i32 %265, 24
  %sext.9 = add i32 %266, 1627389952
  %267 = ashr exact i32 %sext.9, 24
  %268 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %267)
  %269 = 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,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass