; LLVM IR from DionysiosB/CodeForces :: 1400-1499 (1454F-ArrayPartition)

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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 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 %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %22

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

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %29 = add nsw i64 %28, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %30 unwind label %42

30:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIlED2Ev(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 24, ptr %8) #5
  %31 = load i64, ptr %3, align 8, !tbaa !5
  %32 = add nsw i64 %31, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %32, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %33 unwind label %46

33:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %34 = load i64, ptr %3, align 8, !tbaa !5
  %35 = add nsw i64 %34, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %36 unwind label %50

36:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 1, ptr %12, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %66, %36
  %38 = load i64, ptr %12, align 8, !tbaa !5
  %39 = load i64, ptr %3, align 8, !tbaa !5
  %40 = icmp sle i64 %38, %39
  br i1 %40, label %54, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %73

42:                                               ; preds = %26
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %6, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %235

46:                                               ; preds = %30
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %6, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %234

50:                                               ; preds = %33
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %6, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %233

54:                                               ; preds = %37
  %55 = load i64, ptr %12, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %55) #5
  %57 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %56)
          to label %58 unwind label %69

58:                                               ; preds = %54
  %59 = load i64, ptr %12, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %59) #5
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = load i64, ptr %12, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %62) #5
  store i64 %61, ptr %63, align 8, !tbaa !5
  %64 = load i64, ptr %12, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %64) #5
  store i64 %61, ptr %65, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %58
  %67 = load i64, ptr %12, align 8, !tbaa !5
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %12, align 8, !tbaa !5
  br label %37, !llvm.loop !9

69:                                               ; preds = %54
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %6, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %232

73:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 1, ptr %13, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %101, %73
  %75 = load i64, ptr %13, align 8, !tbaa !5
  %76 = load i64, ptr %3, align 8, !tbaa !5
  %77 = icmp sle i64 %75, %76
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %74
  %80 = load i64, ptr %13, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %80) #5
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = load i64, ptr %13, align 8, !tbaa !5
  %84 = sub nsw i64 %83, 1
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %84) #5
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = icmp sgt i64 %82, %86
  br i1 %87, label %88, label %92

88:                                               ; preds = %79
  %89 = load i64, ptr %13, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %89) #5
  %91 = load i64, ptr %90, align 8, !tbaa !5
  br label %97

92:                                               ; preds = %79
  %93 = load i64, ptr %13, align 8, !tbaa !5
  %94 = sub nsw i64 %93, 1
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %94) #5
  %96 = load i64, ptr %95, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %92, %88
  %98 = phi i64 [ %91, %88 ], [ %96, %92 ]
  %99 = load i64, ptr %13, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %99) #5
  store i64 %98, ptr %100, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %97
  %102 = load i64, ptr %13, align 8, !tbaa !5
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %13, align 8, !tbaa !5
  br label %74, !llvm.loop !11

104:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %105 = load i64, ptr %3, align 8, !tbaa !5
  %106 = sub nsw i64 %105, 1
  store i64 %106, ptr %14, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %133, %104
  %108 = load i64, ptr %14, align 8, !tbaa !5
  %109 = icmp sge i64 %108, 0
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %136

111:                                              ; preds = %107
  %112 = load i64, ptr %14, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %112) #5
  %114 = load i64, ptr %113, align 8, !tbaa !5
  %115 = load i64, ptr %14, align 8, !tbaa !5
  %116 = add nsw i64 %115, 1
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %116) #5
  %118 = load i64, ptr %117, align 8, !tbaa !5
  %119 = icmp sgt i64 %114, %118
  br i1 %119, label %120, label %124

120:                                              ; preds = %111
  %121 = load i64, ptr %14, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %121) #5
  %123 = load i64, ptr %122, align 8, !tbaa !5
  br label %129

124:                                              ; preds = %111
  %125 = load i64, ptr %14, align 8, !tbaa !5
  %126 = add nsw i64 %125, 1
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %126) #5
  %128 = load i64, ptr %127, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %124, %120
  %130 = phi i64 [ %123, %120 ], [ %128, %124 ]
  %131 = load i64, ptr %14, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %131) #5
  store i64 %130, ptr %132, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %129
  %134 = load i64, ptr %14, align 8, !tbaa !5
  %135 = add nsw i64 %134, -1
  store i64 %135, ptr %14, align 8, !tbaa !5
  br label %107, !llvm.loop !12

136:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  store i8 0, ptr %15, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 1, ptr %16, align 8, !tbaa !5
  br label %137

137:                                              ; preds = %214, %136
  %138 = load i64, ptr %16, align 8, !tbaa !5
  %139 = load i64, ptr %3, align 8, !tbaa !5
  %140 = sub nsw i64 %139, 2
  %141 = icmp sle i64 %138, %140
  br i1 %141, label %142, label %146

142:                                              ; preds = %137
  %143 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
  %144 = trunc i8 %143 to i1
  %145 = xor i1 %144, true
  br label %146

146:                                              ; preds = %142, %137
  %147 = phi i1 [ false, %137 ], [ %145, %142 ]
  br i1 %147, label %149, label %148

148:                                              ; preds = %146
  store i32 13, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %217

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 1000000007, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 1, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %150 = load i64, ptr %16, align 8, !tbaa !5
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %20, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %207, %149
  %153 = load i64, ptr %20, align 8, !tbaa !5
  %154 = load i64, ptr %3, align 8, !tbaa !5
  %155 = sub nsw i64 %154, 1
  %156 = icmp sle i64 %153, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %152
  store i32 16, ptr %17, align 4
  br label %212

158:                                              ; preds = %152
  %159 = load i64, ptr %18, align 8, !tbaa !5
  %160 = load i64, ptr %20, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %160) #5
  %162 = load i64, ptr %161, align 8, !tbaa !5
  %163 = icmp slt i64 %159, %162
  br i1 %163, label %164, label %166

164:                                              ; preds = %158
  %165 = load i64, ptr %18, align 8, !tbaa !5
  br label %170

166:                                              ; preds = %158
  %167 = load i64, ptr %20, align 8, !tbaa !5
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %167) #5
  %169 = load i64, ptr %168, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %166, %164
  %171 = phi i64 [ %165, %164 ], [ %169, %166 ]
  store i64 %171, ptr %18, align 8, !tbaa !5
  %172 = load i64, ptr %18, align 8, !tbaa !5
  %173 = load i64, ptr %16, align 8, !tbaa !5
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %173) #5
  %175 = load i64, ptr %174, align 8, !tbaa !5
  %176 = icmp eq i64 %172, %175
  br i1 %176, label %177, label %198

177:                                              ; preds = %170
  %178 = load i64, ptr %18, align 8, !tbaa !5
  %179 = load i64, ptr %20, align 8, !tbaa !5
  %180 = add nsw i64 %179, 1
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %180) #5
  %182 = load i64, ptr %181, align 8, !tbaa !5
  %183 = icmp eq i64 %178, %182
  br i1 %183, label %184, label %198

184:                                              ; preds = %177
  %185 = load i64, ptr %16, align 8, !tbaa !5
  %186 = load i64, ptr %19, align 8, !tbaa !5
  %187 = load i64, ptr %3, align 8, !tbaa !5
  %188 = load i64, ptr %16, align 8, !tbaa !5
  %189 = sub nsw i64 %187, %188
  %190 = load i64, ptr %19, align 8, !tbaa !5
  %191 = sub nsw i64 %189, %190
  %192 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %185, i64 noundef %186, i64 noundef %191)
          to label %193 unwind label %194

193:                                              ; preds = %184
  store i8 1, ptr %15, align 1, !tbaa !13
  store i32 16, ptr %17, align 4
  br label %212

194:                                              ; preds = %184
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %6, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %231

198:                                              ; preds = %177, %170
  %199 = load i64, ptr %18, align 8, !tbaa !5
  %200 = load i64, ptr %16, align 8, !tbaa !5
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %200) #5
  %202 = load i64, ptr %201, align 8, !tbaa !5
  %203 = icmp slt i64 %199, %202
  br i1 %203, label %204, label %205

204:                                              ; preds = %198
  store i32 16, ptr %17, align 4
  br label %212

205:                                              ; preds = %198
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %20, align 8, !tbaa !5
  %209 = add nsw i64 %208, 1
  store i64 %209, ptr %20, align 8, !tbaa !5
  %210 = load i64, ptr %19, align 8, !tbaa !5
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %19, align 8, !tbaa !5
  br label %152, !llvm.loop !17

212:                                              ; preds = %204, %193, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %213

213:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %214

214:                                              ; preds = %213
  %215 = load i64, ptr %16, align 8, !tbaa !5
  %216 = add nsw i64 %215, 1
  store i64 %216, ptr %16, align 8, !tbaa !5
  br label %137, !llvm.loop !18

217:                                              ; preds = %148
  %218 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %221

220:                                              ; preds = %217
  store i32 2, ptr %17, align 4
  br label %224, !llvm.loop !19

221:                                              ; preds = %217
  %222 = invoke i32 @puts(ptr noundef @.str.2)
          to label %223 unwind label %227

223:                                              ; preds = %221
  store i32 0, ptr %17, align 4
  br label %224

224:                                              ; preds = %223, %220
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(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
  %225 = load i32, ptr %17, align 4
  switch i32 %225, label %243 [
    i32 0, label %226
    i32 2, label %22
  ]

226:                                              ; preds = %224
  br label %22, !llvm.loop !19

227:                                              ; preds = %221
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %6, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %7, align 4
  br label %231

231:                                              ; preds = %227, %194
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %232

232:                                              ; preds = %231, %69
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %233

233:                                              ; preds = %232, %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %234

234:                                              ; preds = %233, %46
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %235

235:                                              ; preds = %234, %42
  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 %238

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

238:                                              ; preds = %235
  %239 = load ptr, ptr %6, align 8
  %240 = load i32, ptr %7, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242

243:                                              ; preds = %224
  unreachable
}

; 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 @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

declare i32 @puts(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(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", !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 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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

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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 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
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = add nsw i64 %10, -1
  store i64 %11, ptr %1, align 8, !tbaa !5
  %.not88 = icmp eq i64 %10, 0
  br i1 %.not88, label %._crit_edge91, label %.lr.ph90

.lr.ph90:                                         ; preds = %0, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = add nsw i64 %13, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %14, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %15 unwind label %23

15:                                               ; preds = %.lr.ph90
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = add nsw i64 %16, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %18 unwind label %25

18:                                               ; preds = %15
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %20 = add nsw i64 %19, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %21 unwind label %27

21:                                               ; preds = %18
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %.not6069 = icmp slt i64 %22, 1
  br i1 %.not6069, label %.critedge, label %.lr.ph

.preheader67:                                     ; preds = %.lr.ph
  %.not6171 = icmp slt i64 %36, 1
  br i1 %.not6171, label %.critedge, label %.lr.ph73

23:                                               ; preds = %.lr.ph90
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %96

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %95

27:                                               ; preds = %18
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %95

.lr.ph:                                           ; preds = %21, %.lr.ph
  %.05070 = phi i64 [ %35, %.lr.ph ], [ 1, %21 ]
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.05070) #5
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %29)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.05070) #5
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.05070) #5
  store i64 %32, ptr %33, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.05070) #5
  store i64 %32, ptr %34, align 8, !tbaa !5
  %35 = add nuw nsw i64 %.05070, 1
  %36 = load i64, ptr %2, align 8, !tbaa !5
  %.not60.not = icmp slt i64 %.05070, %36
  br i1 %.not60.not, label %.lr.ph, label %.preheader67, !llvm.loop !9

.preheader66:                                     ; preds = %.lr.ph73
  %37 = icmp sgt i64 %48, 0
  br i1 %37, label %.lr.ph77, label %.critedge

.lr.ph73:                                         ; preds = %.preheader67, %.lr.ph73
  %.04972 = phi i64 [ %47, %.lr.ph73 ], [ 1, %.preheader67 ]
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04972) #5
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = add nsw i64 %.04972, -1
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %40) #5
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = icmp sgt i64 %39, %42
  %.04972. = select i1 %43, i64 %.04972, i64 %40
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04972.) #5
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04972) #5
  store i64 %45, ptr %46, align 8, !tbaa !5
  %47 = add nuw nsw i64 %.04972, 1
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %.not61.not = icmp slt i64 %.04972, %48
  br i1 %.not61.not, label %.lr.ph73, label %.preheader66, !llvm.loop !11

.preheader:                                       ; preds = %.lr.ph77
  %.pre = load i64, ptr %2, align 8, !tbaa !5
  %49 = icmp slt i64 %.pre, 3
  br i1 %49, label %.critedge, label %.lr.ph86

.lr.ph77:                                         ; preds = %.preheader66, %.lr.ph77
  %.048.in75 = phi i64 [ %.04876, %.lr.ph77 ], [ %48, %.preheader66 ]
  %.04876 = add nsw i64 %.048.in75, -1
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.04876) #5
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.048.in75) #5
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = icmp sgt i64 %51, %53
  %.04876..048.in75 = select i1 %54, i64 %.04876, i64 %.048.in75
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.04876..048.in75) #5
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.04876) #5
  store i64 %56, ptr %57, align 8, !tbaa !5
  %58 = icmp ugt i64 %.048.in75, 1
  br i1 %58, label %.lr.ph77, label %.preheader, !llvm.loop !12

._crit_edge:                                      ; preds = %.loopexit
  br label %.critedge, !llvm.loop !13

.lr.ph86:                                         ; preds = %.preheader, %.loopexit
  %59 = phi i64 [ %85, %.loopexit ], [ %.pre, %.preheader ]
  %.04685 = phi i64 [ %60, %.loopexit ], [ 1, %.preheader ]
  %60 = add nuw nsw i64 %.04685, 1
  %.not64.not78 = icmp slt i64 %60, %59
  br i1 %.not64.not78, label %.lr.ph82, label %.loopexit

.lr.ph82:                                         ; preds = %.lr.ph86, %81
  %.081 = phi i64 [ %82, %81 ], [ %60, %.lr.ph86 ]
  %.04480 = phi i64 [ %83, %81 ], [ 1, %.lr.ph86 ]
  %.04579 = phi i64 [ %68, %81 ], [ 1000000007, %.lr.ph86 ]
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.081) #5
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = icmp slt i64 %.04579, %62
  br i1 %63, label %67, label %64

64:                                               ; preds = %.lr.ph82
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.081) #5
  %66 = load i64, ptr %65, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %.lr.ph82, %64
  %68 = phi i64 [ %66, %64 ], [ %.04579, %.lr.ph82 ]
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04685) #5
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = icmp eq i64 %68, %70
  br i1 %71, label %72, label %77

72:                                               ; preds = %67
  %73 = add nuw nsw i64 %.081, 1
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %73) #5
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = icmp eq i64 %68, %75
  br i1 %76, label %._crit_edge.thread, label %77

77:                                               ; preds = %72, %67
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.04685) #5
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = icmp slt i64 %68, %79
  br i1 %80, label %.loopexit, label %81

81:                                               ; preds = %77
  %82 = add nuw nsw i64 %.081, 1
  %83 = add nuw nsw i64 %.04480, 1
  %84 = load i64, ptr %2, align 8, !tbaa !5
  %.not64.not = icmp slt i64 %82, %84
  br i1 %.not64.not, label %.lr.ph82, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %81, %77, %.lr.ph86
  %85 = load i64, ptr %2, align 8, !tbaa !5
  %86 = add nsw i64 %85, -2
  %.not103 = icmp slt i64 %.04685, %86
  br i1 %.not103, label %.lr.ph86, label %._crit_edge, !llvm.loop !15

._crit_edge.thread:                               ; preds = %72
  %87 = load i64, ptr %2, align 8, !tbaa !5
  %88 = add nuw nsw i64 %.04480, %.04685
  %89 = sub i64 %87, %88
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %.04685, i64 noundef %.04480, i64 noundef %89)
  br label %92

.critedge:                                        ; preds = %21, %.preheader67, %.preheader66, %._crit_edge, %.preheader
  %91 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %92

92:                                               ; preds = %._crit_edge.thread, %.critedge
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %93 = load i64, ptr %1, align 8, !tbaa !5
  %94 = add nsw i64 %93, -1
  store i64 %94, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %93, 0
  br i1 %.not, label %._crit_edge91, label %.lr.ph90

95:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %96

96:                                               ; preds = %95, %23
  %.pn.pn = phi { ptr, i32 } [ %.pn, %95 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn.pn

._crit_edge91:                                    ; preds = %92, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  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 @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(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 @_ZNSt6vectorIlSaIlEEixEm(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: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(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 = { 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 = { 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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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