; LLVM IR from DionysiosB/CodeForces :: 1400-1499 (1453B-SuffixOperations)

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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %23

23:                                               ; preds = %283, %0
  %24 = load i64, ptr %2, align 8, !tbaa !5
  %25 = add nsw i64 %24, -1
  store i64 %25, ptr %2, align 8, !tbaa !5
  %26 = icmp ne i64 %24, 0
  br i1 %26, label %27, label %290

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  %29 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %30 unwind label %36

30:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %45, %30
  %32 = load i64, ptr %8, align 8, !tbaa !5
  %33 = load i64, ptr %3, align 8, !tbaa !5
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %52

36:                                               ; preds = %27
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %289

40:                                               ; preds = %31
  %41 = load i64, ptr %8, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %41) #5
  %43 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %42)
          to label %44 unwind label %48

44:                                               ; preds = %40
  br label %45

45:                                               ; preds = %44
  %46 = load i64, ptr %8, align 8, !tbaa !5
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %8, align 8, !tbaa !5
  br label %31, !llvm.loop !9

48:                                               ; preds = %40
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %6, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %288

52:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #5
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = icmp slt i64 %54, %56
  br i1 %57, label %58, label %64

58:                                               ; preds = %52
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #5
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = sub nsw i64 %60, %62
  br label %70

64:                                               ; preds = %52
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #5
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = sub nsw i64 %66, %68
  br label %70

70:                                               ; preds = %64, %58
  %71 = phi i64 [ %63, %58 ], [ %69, %64 ]
  store i64 %71, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %72 = load i64, ptr %3, align 8, !tbaa !5
  %73 = sub nsw i64 %72, 2
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %73) #5
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = load i64, ptr %3, align 8, !tbaa !5
  %77 = sub nsw i64 %76, 1
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %77) #5
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = icmp slt i64 %75, %79
  br i1 %80, label %81, label %91

81:                                               ; preds = %70
  %82 = load i64, ptr %3, align 8, !tbaa !5
  %83 = sub nsw i64 %82, 1
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %83) #5
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = load i64, ptr %3, align 8, !tbaa !5
  %87 = sub nsw i64 %86, 2
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %87) #5
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = sub nsw i64 %85, %89
  br label %101

91:                                               ; preds = %70
  %92 = load i64, ptr %3, align 8, !tbaa !5
  %93 = sub nsw i64 %92, 2
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %93) #5
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = load i64, ptr %3, align 8, !tbaa !5
  %97 = sub nsw i64 %96, 1
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %97) #5
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = sub nsw i64 %95, %99
  br label %101

101:                                              ; preds = %91, %81
  %102 = phi i64 [ %90, %81 ], [ %100, %91 ]
  store i64 %102, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %103 = load i64, ptr %9, align 8, !tbaa !5
  %104 = load i64, ptr %10, align 8, !tbaa !5
  %105 = icmp sgt i64 %103, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %101
  %107 = load i64, ptr %9, align 8, !tbaa !5
  br label %110

108:                                              ; preds = %101
  %109 = load i64, ptr %10, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %108, %106
  %111 = phi i64 [ %107, %106 ], [ %109, %108 ]
  store i64 %111, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %112 = load i64, ptr %9, align 8, !tbaa !5
  %113 = load i64, ptr %10, align 8, !tbaa !5
  %114 = icmp sgt i64 %112, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %110
  br label %119

116:                                              ; preds = %110
  %117 = load i64, ptr %3, align 8, !tbaa !5
  %118 = sub nsw i64 %117, 1
  br label %119

119:                                              ; preds = %116, %115
  %120 = phi i64 [ 0, %115 ], [ %118, %116 ]
  store i64 %120, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 1, ptr %13, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %222, %119
  %122 = load i64, ptr %13, align 8, !tbaa !5
  %123 = add nsw i64 %122, 1
  %124 = load i64, ptr %3, align 8, !tbaa !5
  %125 = icmp slt i64 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %225

127:                                              ; preds = %121
  %128 = load i64, ptr %13, align 8, !tbaa !5
  %129 = sub nsw i64 %128, 1
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %129) #5
  %131 = load i64, ptr %130, align 8, !tbaa !5
  %132 = load i64, ptr %13, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %132) #5
  %134 = load i64, ptr %133, align 8, !tbaa !5
  %135 = icmp sle i64 %131, %134
  br i1 %135, label %136, label %146

136:                                              ; preds = %127
  %137 = load i64, ptr %13, align 8, !tbaa !5
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %137) #5
  %139 = load i64, ptr %138, align 8, !tbaa !5
  %140 = load i64, ptr %13, align 8, !tbaa !5
  %141 = add nsw i64 %140, 1
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %141) #5
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = icmp sle i64 %139, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %136
  br label %222

146:                                              ; preds = %136, %127
  %147 = load i64, ptr %13, align 8, !tbaa !5
  %148 = sub nsw i64 %147, 1
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %148) #5
  %150 = load i64, ptr %149, align 8, !tbaa !5
  %151 = load i64, ptr %13, align 8, !tbaa !5
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %151) #5
  %153 = load i64, ptr %152, align 8, !tbaa !5
  %154 = icmp sge i64 %150, %153
  br i1 %154, label %155, label %165

155:                                              ; preds = %146
  %156 = load i64, ptr %13, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %156) #5
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = load i64, ptr %13, align 8, !tbaa !5
  %160 = add nsw i64 %159, 1
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %160) #5
  %162 = load i64, ptr %161, align 8, !tbaa !5
  %163 = icmp sge i64 %158, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %155
  br label %222

165:                                              ; preds = %155, %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %166 = load i64, ptr %13, align 8, !tbaa !5
  %167 = sub nsw i64 %166, 1
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %167) #5
  %169 = load i64, ptr %168, align 8, !tbaa !5
  %170 = load i64, ptr %13, align 8, !tbaa !5
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %170) #5
  %172 = load i64, ptr %171, align 8, !tbaa !5
  %173 = sub nsw i64 %169, %172
  store i64 %173, ptr %14, align 8, !tbaa !5
  %174 = load i64, ptr %14, align 8, !tbaa !5
  %175 = icmp slt i64 %174, 0
  br i1 %175, label %176, label %179

176:                                              ; preds = %165
  %177 = load i64, ptr %14, align 8, !tbaa !5
  %178 = sub nsw i64 0, %177
  store i64 %178, ptr %14, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %176, %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %180 = load i64, ptr %13, align 8, !tbaa !5
  %181 = add nsw i64 %180, 1
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %181) #5
  %183 = load i64, ptr %182, align 8, !tbaa !5
  %184 = load i64, ptr %13, align 8, !tbaa !5
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %184) #5
  %186 = load i64, ptr %185, align 8, !tbaa !5
  %187 = sub nsw i64 %183, %186
  store i64 %187, ptr %15, align 8, !tbaa !5
  %188 = load i64, ptr %15, align 8, !tbaa !5
  %189 = icmp slt i64 %188, 0
  br i1 %189, label %190, label %193

190:                                              ; preds = %179
  %191 = load i64, ptr %15, align 8, !tbaa !5
  %192 = sub nsw i64 0, %191
  store i64 %192, ptr %15, align 8, !tbaa !5
  br label %193

193:                                              ; preds = %190, %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %194 = load i64, ptr %14, align 8, !tbaa !5
  %195 = load i64, ptr %15, align 8, !tbaa !5
  %196 = add nsw i64 %194, %195
  store i64 %196, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %197 = load i64, ptr %13, align 8, !tbaa !5
  %198 = add nsw i64 %197, 1
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %198) #5
  %200 = load i64, ptr %199, align 8, !tbaa !5
  %201 = load i64, ptr %13, align 8, !tbaa !5
  %202 = sub nsw i64 %201, 1
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %202) #5
  %204 = load i64, ptr %203, align 8, !tbaa !5
  %205 = sub nsw i64 %200, %204
  store i64 %205, ptr %17, align 8, !tbaa !5
  %206 = load i64, ptr %17, align 8, !tbaa !5
  %207 = icmp slt i64 %206, 0
  br i1 %207, label %208, label %211

208:                                              ; preds = %193
  %209 = load i64, ptr %17, align 8, !tbaa !5
  %210 = sub nsw i64 0, %209
  store i64 %210, ptr %17, align 8, !tbaa !5
  br label %211

211:                                              ; preds = %208, %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %212 = load i64, ptr %16, align 8, !tbaa !5
  %213 = load i64, ptr %17, align 8, !tbaa !5
  %214 = sub nsw i64 %212, %213
  store i64 %214, ptr %18, align 8, !tbaa !5
  %215 = load i64, ptr %18, align 8, !tbaa !5
  %216 = load i64, ptr %11, align 8, !tbaa !5
  %217 = icmp sgt i64 %215, %216
  br i1 %217, label %218, label %221

218:                                              ; preds = %211
  %219 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %219, ptr %12, align 8, !tbaa !5
  %220 = load i64, ptr %18, align 8, !tbaa !5
  store i64 %220, ptr %11, align 8, !tbaa !5
  br label %221

221:                                              ; preds = %218, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %222

222:                                              ; preds = %221, %164, %145
  %223 = load i64, ptr %13, align 8, !tbaa !5
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %13, align 8, !tbaa !5
  br label %121, !llvm.loop !11

225:                                              ; preds = %126
  %226 = load i64, ptr %12, align 8, !tbaa !5
  %227 = icmp eq i64 %226, 0
  br i1 %227, label %228, label %232

228:                                              ; preds = %225
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #5
  %230 = load i64, ptr %229, align 8, !tbaa !5
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  store i64 %230, ptr %231, align 8, !tbaa !5
  br label %253

232:                                              ; preds = %225
  %233 = load i64, ptr %12, align 8, !tbaa !5
  %234 = load i64, ptr %3, align 8, !tbaa !5
  %235 = sub nsw i64 %234, 1
  %236 = icmp eq i64 %233, %235
  br i1 %236, label %237, label %245

237:                                              ; preds = %232
  %238 = load i64, ptr %3, align 8, !tbaa !5
  %239 = sub nsw i64 %238, 2
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %239) #5
  %241 = load i64, ptr %240, align 8, !tbaa !5
  %242 = load i64, ptr %3, align 8, !tbaa !5
  %243 = sub nsw i64 %242, 1
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %243) #5
  store i64 %241, ptr %244, align 8, !tbaa !5
  br label %252

245:                                              ; preds = %232
  %246 = load i64, ptr %12, align 8, !tbaa !5
  %247 = sub nsw i64 %246, 1
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %247) #5
  %249 = load i64, ptr %248, align 8, !tbaa !5
  %250 = load i64, ptr %12, align 8, !tbaa !5
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %250) #5
  store i64 %249, ptr %251, align 8, !tbaa !5
  br label %252

252:                                              ; preds = %245, %237
  br label %253

253:                                              ; preds = %252, %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 1, ptr %20, align 8, !tbaa !12
  br label %254

254:                                              ; preds = %277, %253
  %255 = load i64, ptr %20, align 8, !tbaa !12
  %256 = load i64, ptr %3, align 8, !tbaa !5
  %257 = icmp slt i64 %255, %256
  br i1 %257, label %259, label %258

258:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %280

259:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %260 = load i64, ptr %20, align 8, !tbaa !12
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %260) #5
  %262 = load i64, ptr %261, align 8, !tbaa !5
  %263 = load i64, ptr %20, align 8, !tbaa !12
  %264 = sub nsw i64 %263, 1
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %264) #5
  %266 = load i64, ptr %265, align 8, !tbaa !5
  %267 = sub nsw i64 %262, %266
  store i64 %267, ptr %21, align 8, !tbaa !5
  %268 = load i64, ptr %21, align 8, !tbaa !5
  %269 = icmp slt i64 %268, 0
  br i1 %269, label %270, label %273

270:                                              ; preds = %259
  %271 = load i64, ptr %21, align 8, !tbaa !5
  %272 = sub nsw i64 0, %271
  store i64 %272, ptr %21, align 8, !tbaa !5
  br label %273

273:                                              ; preds = %270, %259
  %274 = load i64, ptr %21, align 8, !tbaa !5
  %275 = load i64, ptr %19, align 8, !tbaa !5
  %276 = add nsw i64 %275, %274
  store i64 %276, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %277

277:                                              ; preds = %273
  %278 = load i64, ptr %20, align 8, !tbaa !12
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %20, align 8, !tbaa !12
  br label %254, !llvm.loop !14

280:                                              ; preds = %258
  %281 = load i64, ptr %19, align 8, !tbaa !5
  %282 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %281)
          to label %283 unwind label %284

283:                                              ; preds = %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %23, !llvm.loop !15

284:                                              ; preds = %280
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %6, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %288

288:                                              ; preds = %284, %48
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %289

289:                                              ; preds = %288, %36
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %292

290:                                              ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %291 = load i32, ptr %1, align 4
  ret i32 %291

292:                                              ; preds = %289
  %293 = load ptr, ptr %6, align 8
  %294 = load i32, ptr %7, align 4
  %295 = insertvalue { ptr, i32 } poison, ptr %293, 0
  %296 = insertvalue { ptr, i32 } %295, i32 %294, 1
  resume { ptr, i32 } %296
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !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 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = add nsw i64 %6, -1
  store i64 %7, ptr %1, align 8, !tbaa !5
  %.not95 = icmp eq i64 %6, 0
  br i1 %.not95, label %._crit_edge98, label %.lr.ph97

.lr.ph97:                                         ; preds = %0, %._crit_edge93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %9 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %33

10:                                               ; preds = %.lr.ph97
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %11 = load i64, ptr %2, align 8, !tbaa !5
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %10
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %17 = icmp slt i64 %14, %16
  %. = zext i1 %17 to i64
  %not. = xor i1 %17, true
  %.114 = zext i1 %not. to i64
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.) #6
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.114) #6
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = sub nsw i64 %19, %21
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %24 = add nsw i64 %23, -2
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %24) #6
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = add nsw i64 %27, -1
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %28) #6
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = icmp slt i64 %26, %30
  %32 = load i64, ptr %2, align 8, !tbaa !5
  br i1 %31, label %40, label %45

33:                                               ; preds = %.lr.ph97
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %34

.lr.ph:                                           ; preds = %10, %.lr.ph
  %.05681 = phi i64 [ %37, %.lr.ph ], [ 0, %10 ]
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.05681) #6
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %35)
  %37 = add nuw nsw i64 %.05681, 1
  %38 = load i64, ptr %2, align 8, !tbaa !5
  %39 = icmp slt i64 %37, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !9

40:                                               ; preds = %._crit_edge
  %41 = add nsw i64 %32, -1
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %41) #6
  %43 = load i64, ptr %2, align 8, !tbaa !5
  %44 = add nsw i64 %43, -2
  br label %50

45:                                               ; preds = %._crit_edge
  %46 = add nsw i64 %32, -2
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %46) #6
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %49 = add nsw i64 %48, -1
  br label %50

50:                                               ; preds = %45, %40
  %.sink110 = phi i64 [ %49, %45 ], [ %44, %40 ]
  %.sink107.in = phi ptr [ %47, %45 ], [ %42, %40 ]
  %.sink107 = load i64, ptr %.sink107.in, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.sink110) #6
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = sub nsw i64 %.sink107, %52
  %54 = icmp sgt i64 %22, %53
  %55 = load i64, ptr %2, align 8
  %56 = add nsw i64 %55, -1
  %57 = select i1 %54, i64 0, i64 %56
  %58 = icmp sgt i64 %55, 2
  br i1 %58, label %.lr.ph86.preheader, label %._crit_edge87

.lr.ph86.preheader:                               ; preds = %50
  %59 = call i64 @llvm.smax.i64(i64 %22, i64 %53)
  br label %.lr.ph86

._crit_edge87:                                    ; preds = %101, %50
  %.062.lcssa = phi i64 [ %57, %50 ], [ %.264, %101 ]
  %.lcssa = phi i64 [ %55, %50 ], [ %103, %101 ]
  %60 = icmp eq i64 %.062.lcssa, 0
  br i1 %60, label %105, label %107

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %101
  %61 = phi i64 [ %102, %101 ], [ 2, %.lr.ph86.preheader ]
  %.05884 = phi i64 [ %.2, %101 ], [ %59, %.lr.ph86.preheader ]
  %.06183 = phi i64 [ %61, %101 ], [ 1, %.lr.ph86.preheader ]
  %.06282 = phi i64 [ %.264, %101 ], [ %57, %.lr.ph86.preheader ]
  %62 = add nsw i64 %.06183, -1
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #6
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06183) #6
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %.not76 = icmp sgt i64 %64, %66
  br i1 %.not76, label %72, label %67

67:                                               ; preds = %.lr.ph86
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06183) #6
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #6
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %.not77 = icmp sgt i64 %69, %71
  br i1 %.not77, label %72, label %101

72:                                               ; preds = %67, %.lr.ph86
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #6
  %74 = load i64, ptr %73, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06183) #6
  %76 = load i64, ptr %75, align 8, !tbaa !5
  %.not78 = icmp slt i64 %74, %76
  br i1 %.not78, label %82, label %77

77:                                               ; preds = %72
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06183) #6
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #6
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %.not79 = icmp slt i64 %79, %81
  br i1 %.not79, label %82, label %101

82:                                               ; preds = %77, %72
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #6
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06183) #6
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = sub nsw i64 %84, %86
  %spec.select = call i64 @llvm.abs.i64(i64 %87, i1 true)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #6
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.06183) #6
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = sub nsw i64 %89, %91
  %.059 = call i64 @llvm.abs.i64(i64 %92, i1 true)
  %93 = add nuw nsw i64 %.059, %spec.select
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #6
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62) #6
  %97 = load i64, ptr %96, align 8, !tbaa !5
  %98 = sub nsw i64 %95, %97
  %.057 = call i64 @llvm.abs.i64(i64 %98, i1 true)
  %99 = sub nsw i64 %93, %.057
  %100 = icmp sgt i64 %99, %.05884
  %.163 = select i1 %100, i64 %.06183, i64 %.06282
  %.1 = call i64 @llvm.smax.i64(i64 %99, i64 %.05884)
  br label %101

101:                                              ; preds = %77, %67, %82
  %.264 = phi i64 [ %.06282, %67 ], [ %.06282, %77 ], [ %.163, %82 ]
  %.2 = phi i64 [ %.05884, %67 ], [ %.05884, %77 ], [ %.1, %82 ]
  %102 = add nuw nsw i64 %61, 1
  %103 = load i64, ptr %2, align 8, !tbaa !5
  %104 = icmp slt i64 %102, %103
  br i1 %104, label %.lr.ph86, label %._crit_edge87, !llvm.loop !11

105:                                              ; preds = %._crit_edge87
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  br label %118

107:                                              ; preds = %._crit_edge87
  %108 = add nsw i64 %.lcssa, -1
  %109 = icmp eq i64 %.062.lcssa, %108
  br i1 %109, label %110, label %115

110:                                              ; preds = %107
  %111 = add nsw i64 %.lcssa, -2
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %111) #6
  %113 = load i64, ptr %2, align 8, !tbaa !5
  %114 = add nsw i64 %113, -1
  br label %118

115:                                              ; preds = %107
  %116 = add nsw i64 %.062.lcssa, -1
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %116) #6
  br label %118

118:                                              ; preds = %110, %115, %105
  %.sink113 = phi i64 [ %114, %110 ], [ %.062.lcssa, %115 ], [ 0, %105 ]
  %.sink111.in = phi ptr [ %112, %110 ], [ %117, %115 ], [ %106, %105 ]
  %.sink111 = load i64, ptr %.sink111.in, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.sink113) #6
  store i64 %.sink111, ptr %119, align 8, !tbaa !5
  %120 = load i64, ptr %2, align 8, !tbaa !5
  %121 = icmp sgt i64 %120, 1
  br i1 %121, label %.lr.ph92, label %._crit_edge93

._crit_edge93:                                    ; preds = %.lr.ph92, %118
  %.055.lcssa = phi i64 [ 0, %118 ], [ %131, %.lr.ph92 ]
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %.055.lcssa)
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %123 = load i64, ptr %1, align 8, !tbaa !5
  %124 = add nsw i64 %123, -1
  store i64 %124, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %123, 0
  br i1 %.not, label %._crit_edge98, label %.lr.ph97, !llvm.loop !12

.lr.ph92:                                         ; preds = %118, %.lr.ph92
  %.05490 = phi i64 [ %132, %.lr.ph92 ], [ 1, %118 ]
  %.05589 = phi i64 [ %131, %.lr.ph92 ], [ 0, %118 ]
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.05490) #6
  %126 = load i64, ptr %125, align 8, !tbaa !5
  %127 = add nsw i64 %.05490, -1
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %127) #6
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = sub nsw i64 %126, %129
  %spec.select80 = call i64 @llvm.abs.i64(i64 %130, i1 true)
  %131 = add nuw nsw i64 %spec.select80, %.05589
  %132 = add nuw nsw i64 %.05490, 1
  %133 = load i64, ptr %2, align 8, !tbaa !5
  %134 = icmp slt i64 %132, %133
  br i1 %134, label %.lr.ph92, label %._crit_edge93, !llvm.loop !13

._crit_edge98:                                    ; preds = %._crit_edge93, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #5

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

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

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


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