; LLVM IR from DionysiosB/CodeForces :: 0300-0399 (382C-ArithmeticProgression)

; 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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.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 [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1

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

25:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %42, %25
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = load i64, ptr %2, align 8, !tbaa !5
  %30 = icmp slt i64 %28, %29
  br i1 %30, label %36, label %31

31:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %49

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

36:                                               ; preds = %26
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %38) #6
  %40 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %39)
          to label %41 unwind label %45

41:                                               ; preds = %36
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %8, align 4, !tbaa !9
  br label %26, !llvm.loop !11

45:                                               ; preds = %36
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %418

49:                                               ; preds = %31
  %50 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEEEvT_S7_(ptr %55, ptr %57)
          to label %58 unwind label %64

58:                                               ; preds = %49
  %59 = load i64, ptr %2, align 8, !tbaa !5
  %60 = icmp eq i64 %59, 1
  br i1 %60, label %61, label %68

61:                                               ; preds = %58
  %62 = invoke i32 @puts(ptr noundef @.str.1)
          to label %63 unwind label %64

63:                                               ; preds = %61
  br label %416

64:                                               ; preds = %76, %61, %49
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %6, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %7, align 4
  br label %418

68:                                               ; preds = %58
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = load i64, ptr %2, align 8, !tbaa !5
  %72 = sub nsw i64 %71, 1
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %72) #6
  %74 = load i64, ptr %73, align 8, !tbaa !5
  %75 = icmp eq i64 %70, %74
  br i1 %75, label %76, label %81

76:                                               ; preds = %68
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %78)
          to label %80 unwind label %64

80:                                               ; preds = %76
  br label %415

81:                                               ; preds = %68
  %82 = load i64, ptr %2, align 8, !tbaa !5
  %83 = icmp eq i64 %82, 2
  br i1 %83, label %84, label %133

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = sub nsw i64 %86, %88
  store i64 %89, ptr %11, align 8, !tbaa !5
  %90 = load i64, ptr %11, align 8, !tbaa !5
  %91 = srem i64 %90, 2
  %92 = icmp eq i64 %91, 0
  br i1 %92, label %93, label %100

93:                                               ; preds = %84
  %94 = invoke i32 @puts(ptr noundef @.str.3)
          to label %95 unwind label %96

95:                                               ; preds = %93
  br label %103

96:                                               ; preds = %124, %115, %103, %100, %93
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %6, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %418

100:                                              ; preds = %84
  %101 = invoke i32 @puts(ptr noundef @.str.4)
          to label %102 unwind label %96

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102, %95
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = mul nsw i64 2, %105
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = sub nsw i64 %106, %108
  %110 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %109)
          to label %111 unwind label %96

111:                                              ; preds = %103
  %112 = load i64, ptr %11, align 8, !tbaa !5
  %113 = srem i64 %112, 2
  %114 = icmp eq i64 %113, 0
  br i1 %114, label %115, label %124

115:                                              ; preds = %111
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = add nsw i64 %117, %119
  %121 = sdiv i64 %120, 2
  %122 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %121)
          to label %123 unwind label %96

123:                                              ; preds = %115
  br label %124

124:                                              ; preds = %123, %111
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %126 = load i64, ptr %125, align 8, !tbaa !5
  %127 = mul nsw i64 2, %126
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = sub nsw i64 %127, %129
  %131 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %130)
          to label %132 unwind label %96

132:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %414

133:                                              ; preds = %81
  %134 = load i64, ptr %2, align 8, !tbaa !5
  %135 = icmp eq i64 %134, 3
  br i1 %135, label %136, label %195

136:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %138 = load i64, ptr %137, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = sub nsw i64 %138, %140
  store i64 %141, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %145 = load i64, ptr %144, align 8, !tbaa !5
  %146 = sub nsw i64 %143, %145
  store i64 %146, ptr %13, align 8, !tbaa !5
  %147 = load i64, ptr %12, align 8, !tbaa !5
  %148 = load i64, ptr %13, align 8, !tbaa !5
  %149 = icmp eq i64 %147, %148
  br i1 %149, label %150, label %165

150:                                              ; preds = %136
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %152 = load i64, ptr %151, align 8, !tbaa !5
  %153 = load i64, ptr %12, align 8, !tbaa !5
  %154 = sub nsw i64 %152, %153
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %156 = load i64, ptr %155, align 8, !tbaa !5
  %157 = load i64, ptr %12, align 8, !tbaa !5
  %158 = add nsw i64 %156, %157
  %159 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %154, i64 noundef %158)
          to label %160 unwind label %161

160:                                              ; preds = %150
  br label %194

161:                                              ; preds = %189, %182, %170, %150
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %6, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %418

165:                                              ; preds = %136
  %166 = load i64, ptr %12, align 8, !tbaa !5
  %167 = load i64, ptr %13, align 8, !tbaa !5
  %168 = mul nsw i64 2, %167
  %169 = icmp eq i64 %166, %168
  br i1 %169, label %170, label %177

170:                                              ; preds = %165
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %172 = load i64, ptr %171, align 8, !tbaa !5
  %173 = load i64, ptr %13, align 8, !tbaa !5
  %174 = add nsw i64 %172, %173
  %175 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %174)
          to label %176 unwind label %161

176:                                              ; preds = %170
  br label %193

177:                                              ; preds = %165
  %178 = load i64, ptr %13, align 8, !tbaa !5
  %179 = load i64, ptr %12, align 8, !tbaa !5
  %180 = mul nsw i64 2, %179
  %181 = icmp eq i64 %178, %180
  br i1 %181, label %182, label %189

182:                                              ; preds = %177
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %184 = load i64, ptr %183, align 8, !tbaa !5
  %185 = load i64, ptr %12, align 8, !tbaa !5
  %186 = add nsw i64 %184, %185
  %187 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %186)
          to label %188 unwind label %161

188:                                              ; preds = %182
  br label %192

189:                                              ; preds = %177
  %190 = invoke i32 @puts(ptr noundef @.str.7)
          to label %191 unwind label %161

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %188
  br label %193

193:                                              ; preds = %192, %176
  br label %194

194:                                              ; preds = %193, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %413

195:                                              ; preds = %133
  %196 = load i64, ptr %2, align 8, !tbaa !5
  %197 = icmp sgt i64 %196, 3
  br i1 %197, label %198, label %412

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %199 = load i64, ptr %2, align 8, !tbaa !5
  %200 = sub nsw i64 %199, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %200, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %201 unwind label %209

201:                                              ; preds = %198
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %227, %201
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = load i64, ptr %2, align 8, !tbaa !5
  %206 = sub nsw i64 %205, 1
  %207 = icmp slt i64 %204, %206
  br i1 %207, label %213, label %208

208:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %230

209:                                              ; preds = %198
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %6, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %411

213:                                              ; preds = %202
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %216) #6
  %218 = load i64, ptr %217, align 8, !tbaa !5
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %220) #6
  %222 = load i64, ptr %221, align 8, !tbaa !5
  %223 = sub nsw i64 %218, %222
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %225) #6
  store i64 %223, ptr %226, align 8, !tbaa !5
  br label %227

227:                                              ; preds = %213
  %228 = load i32, ptr %17, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %17, align 4, !tbaa !9
  br label %202, !llvm.loop !13

230:                                              ; preds = %208
  %231 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %231, ptr %232, align 8
  %233 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %234 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8
  %237 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEEEvT_S7_(ptr %236, ptr %238)
          to label %239 unwind label %262

239:                                              ; preds = %230
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %241 = load i64, ptr %240, align 8, !tbaa !5
  %242 = load i64, ptr %2, align 8, !tbaa !5
  %243 = sub nsw i64 %242, 2
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %243) #6
  %245 = load i64, ptr %244, align 8, !tbaa !5
  %246 = icmp eq i64 %241, %245
  br i1 %246, label %247, label %266

247:                                              ; preds = %239
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %249 = load i64, ptr %248, align 8, !tbaa !5
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %251 = load i64, ptr %250, align 8, !tbaa !5
  %252 = sub nsw i64 %249, %251
  %253 = load i64, ptr %2, align 8, !tbaa !5
  %254 = sub nsw i64 %253, 1
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %254) #6
  %256 = load i64, ptr %255, align 8, !tbaa !5
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %258 = load i64, ptr %257, align 8, !tbaa !5
  %259 = add nsw i64 %256, %258
  %260 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %252, i64 noundef %259)
          to label %261 unwind label %262

261:                                              ; preds = %247
  br label %409

262:                                              ; preds = %404, %360, %289, %247, %230
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %6, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %7, align 4
  br label %410

266:                                              ; preds = %239
  %267 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %268 = load i64, ptr %267, align 8, !tbaa !5
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1) #6
  %270 = load i64, ptr %269, align 8, !tbaa !5
  %271 = icmp eq i64 %268, %270
  br i1 %271, label %272, label %333

272:                                              ; preds = %266
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %274 = load i64, ptr %273, align 8, !tbaa !5
  %275 = load i64, ptr %2, align 8, !tbaa !5
  %276 = sub nsw i64 %275, 3
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %276) #6
  %278 = load i64, ptr %277, align 8, !tbaa !5
  %279 = icmp eq i64 %274, %278
  br i1 %279, label %280, label %333

280:                                              ; preds = %272
  %281 = load i64, ptr %2, align 8, !tbaa !5
  %282 = sub nsw i64 %281, 2
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %282) #6
  %284 = load i64, ptr %283, align 8, !tbaa !5
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %286 = load i64, ptr %285, align 8, !tbaa !5
  %287 = mul nsw i64 2, %286
  %288 = icmp eq i64 %284, %287
  br i1 %288, label %289, label %333

289:                                              ; preds = %280
  %290 = invoke i32 @puts(ptr noundef @.str.8)
          to label %291 unwind label %262

291:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %292

292:                                              ; preds = %328, %291
  %293 = load i32, ptr %20, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = load i64, ptr %2, align 8, !tbaa !5
  %296 = sub nsw i64 %295, 1
  %297 = icmp slt i64 %294, %296
  br i1 %297, label %299, label %298

298:                                              ; preds = %292
  store i32 8, ptr %21, align 4
  br label %331

299:                                              ; preds = %292
  %300 = load i32, ptr %20, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  %302 = sext i32 %301 to i64
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %302) #6
  %304 = load i64, ptr %303, align 8, !tbaa !5
  %305 = load i32, ptr %20, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %306) #6
  %308 = load i64, ptr %307, align 8, !tbaa !5
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %310 = load i64, ptr %309, align 8, !tbaa !5
  %311 = add nsw i64 %308, %310
  %312 = icmp sgt i64 %304, %311
  br i1 %312, label %313, label %327

313:                                              ; preds = %299
  %314 = load i32, ptr %20, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %315) #6
  %317 = load i64, ptr %316, align 8, !tbaa !5
  %318 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %319 = load i64, ptr %318, align 8, !tbaa !5
  %320 = add nsw i64 %317, %319
  %321 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.9, i64 noundef %320)
          to label %322 unwind label %323

322:                                              ; preds = %313
  store i32 8, ptr %21, align 4
  br label %331

323:                                              ; preds = %313
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %6, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %410

327:                                              ; preds = %299
  br label %328

328:                                              ; preds = %327
  %329 = load i32, ptr %20, align 4, !tbaa !9
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %20, align 4, !tbaa !9
  br label %292, !llvm.loop !14

331:                                              ; preds = %322, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %332

332:                                              ; preds = %331
  br label %408

333:                                              ; preds = %280, %272, %266
  %334 = load i64, ptr %2, align 8, !tbaa !5
  %335 = sub nsw i64 %334, 2
  %336 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %335) #6
  %337 = load i64, ptr %336, align 8, !tbaa !5
  %338 = load i64, ptr %2, align 8, !tbaa !5
  %339 = sub nsw i64 %338, 3
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %339) #6
  %341 = load i64, ptr %340, align 8, !tbaa !5
  %342 = icmp eq i64 %337, %341
  br i1 %342, label %343, label %404

343:                                              ; preds = %333
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1) #6
  %345 = load i64, ptr %344, align 8, !tbaa !5
  %346 = load i64, ptr %2, align 8, !tbaa !5
  %347 = sub nsw i64 %346, 2
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %347) #6
  %349 = load i64, ptr %348, align 8, !tbaa !5
  %350 = icmp eq i64 %345, %349
  br i1 %350, label %351, label %404

351:                                              ; preds = %343
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  %353 = load i64, ptr %352, align 8, !tbaa !5
  %354 = load i64, ptr %2, align 8, !tbaa !5
  %355 = sub nsw i64 %354, 2
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %355) #6
  %357 = load i64, ptr %356, align 8, !tbaa !5
  %358 = mul nsw i64 2, %357
  %359 = icmp eq i64 %353, %358
  br i1 %359, label %360, label %404

360:                                              ; preds = %351
  %361 = invoke i32 @puts(ptr noundef @.str.8)
          to label %362 unwind label %262

362:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %363

363:                                              ; preds = %399, %362
  %364 = load i32, ptr %22, align 4, !tbaa !9
  %365 = sext i32 %364 to i64
  %366 = load i64, ptr %2, align 8, !tbaa !5
  %367 = sub nsw i64 %366, 1
  %368 = icmp slt i64 %365, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %363
  store i32 11, ptr %21, align 4
  br label %402

370:                                              ; preds = %363
  %371 = load i32, ptr %22, align 4, !tbaa !9
  %372 = add nsw i32 %371, 1
  %373 = sext i32 %372 to i64
  %374 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %373) #6
  %375 = load i64, ptr %374, align 8, !tbaa !5
  %376 = load i32, ptr %22, align 4, !tbaa !9
  %377 = sext i32 %376 to i64
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %377) #6
  %379 = load i64, ptr %378, align 8, !tbaa !5
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1) #6
  %381 = load i64, ptr %380, align 8, !tbaa !5
  %382 = add nsw i64 %379, %381
  %383 = icmp sgt i64 %375, %382
  br i1 %383, label %384, label %398

384:                                              ; preds = %370
  %385 = load i32, ptr %22, align 4, !tbaa !9
  %386 = sext i32 %385 to i64
  %387 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %386) #6
  %388 = load i64, ptr %387, align 8, !tbaa !5
  %389 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1) #6
  %390 = load i64, ptr %389, align 8, !tbaa !5
  %391 = add nsw i64 %388, %390
  %392 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.9, i64 noundef %391)
          to label %393 unwind label %394

393:                                              ; preds = %384
  store i32 11, ptr %21, align 4
  br label %402

394:                                              ; preds = %384
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %6, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %410

398:                                              ; preds = %370
  br label %399

399:                                              ; preds = %398
  %400 = load i32, ptr %22, align 4, !tbaa !9
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %22, align 4, !tbaa !9
  br label %363, !llvm.loop !15

402:                                              ; preds = %393, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %403

403:                                              ; preds = %402
  br label %407

404:                                              ; preds = %351, %343, %333
  %405 = invoke i32 @puts(ptr noundef @.str.7)
          to label %406 unwind label %262

406:                                              ; preds = %404
  br label %407

407:                                              ; preds = %406, %403
  br label %408

408:                                              ; preds = %407, %332
  br label %409

409:                                              ; preds = %408, %261
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %412

410:                                              ; preds = %394, %323, %262
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %411

411:                                              ; preds = %410, %209
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %418

412:                                              ; preds = %409, %195
  br label %413

413:                                              ; preds = %412, %194
  br label %414

414:                                              ; preds = %413, %132
  br label %415

415:                                              ; preds = %414, %80
  br label %416

416:                                              ; preds = %415, %63
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %417 = load i32, ptr %1, align 4
  ret i32 %417

418:                                              ; preds = %411, %161, %96, %64, %45
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %419

419:                                              ; preds = %418, %32
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %420

420:                                              ; preds = %419
  %421 = load ptr, ptr %6, align 8
  %422 = load i32, ptr %7, align 4
  %423 = insertvalue { ptr, i32 } poison, ptr %421, 0
  %424 = insertvalue { ptr, i32 } %423, i32 %422, 1
  resume { ptr, i32 } %424
}

; 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 @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEEEvT_S7_(ptr, ptr) #5

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

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

declare i32 @puts(ptr noundef) #2

declare i32 @printf(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 = { inlinehint 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 #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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

%"class.std::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 [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store i64 0, ptr %1, align 8, !tbaa !5
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %9 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %9, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %15

10:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIlED2Ev(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 8, ptr nonnull %3) #6
  %11 = load i64, ptr %1, 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 ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %14 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEEEvT_S7_(ptr %13, ptr %14)
          to label %21 unwind label %26

15:                                               ; preds = %0
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(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 8, ptr nonnull %3) #6
  br label %255

.lr.ph:                                           ; preds = %10, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %10 ]
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #6
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %17)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %20 = icmp sgt i64 %19, %indvars.iv.next
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !9

21:                                               ; preds = %._crit_edge
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp eq i64 %22, 1
  br i1 %23, label %24, label %28

24:                                               ; preds = %21
  %25 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %253

26:                                               ; preds = %._crit_edge
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %254

28:                                               ; preds = %21
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = load i64, ptr %1, align 8, !tbaa !5
  %32 = add nsw i64 %31, -1
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32) #6
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = icmp eq i64 %30, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %28
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %38)
  br label %253

40:                                               ; preds = %28
  %41 = load i64, ptr %1, align 8, !tbaa !5
  switch i64 %41, label %112 [
    i64 2, label %42
    i64 3, label %74
  ]

42:                                               ; preds = %40
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = sub nsw i64 %44, %46
  %48 = and i64 %47, 1
  %49 = icmp eq i64 %48, 0
  %.str.3..str.4 = select i1 %49, ptr @.str.3, ptr @.str.4
  %50 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.3..str.4)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = shl nsw i64 %52, 1
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = sub nsw i64 %53, %55
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %56)
  br i1 %49, label %58, label %66

58:                                               ; preds = %42
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = add nsw i64 %62, %60
  %64 = sdiv i64 %63, 2
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %64)
  br label %66

66:                                               ; preds = %58, %42
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = shl nsw i64 %68, 1
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = sub nsw i64 %69, %71
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %72)
  br label %253

74:                                               ; preds = %40
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %76 = load i64, ptr %75, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = sub nsw i64 %76, %78
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
  %81 = load i64, ptr %80, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = sub nsw i64 %81, %83
  %85 = icmp eq i64 %79, %84
  br i1 %85, label %86, label %94

86:                                               ; preds = %74
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = sub nsw i64 %88, %79
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = add nsw i64 %91, %79
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %89, i64 noundef %92)
  br label %253

94:                                               ; preds = %74
  %95 = shl nsw i64 %84, 1
  %96 = icmp eq i64 %79, %95
  br i1 %96, label %97, label %102

97:                                               ; preds = %94
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = add nsw i64 %99, %84
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %100)
  br label %253

102:                                              ; preds = %94
  %103 = shl nsw i64 %79, 1
  %104 = icmp eq i64 %84, %103
  br i1 %104, label %105, label %110

105:                                              ; preds = %102
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %107 = load i64, ptr %106, align 8, !tbaa !5
  %108 = add nsw i64 %107, %79
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %108)
  br label %253

110:                                              ; preds = %102
  %111 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %253

112:                                              ; preds = %40
  %113 = icmp sgt i64 %41, 3
  br i1 %113, label %114, label %253

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %115 = add nsw i64 %41, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %115, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %116 unwind label %121

116:                                              ; preds = %114
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %117 = load i64, ptr %1, align 8, !tbaa !5
  %118 = icmp sgt i64 %117, 1
  br i1 %118, label %.lr.ph59, label %._crit_edge60

._crit_edge60:                                    ; preds = %.lr.ph59, %116
  %119 = call ptr @_ZNSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %120 = call ptr @_ZNSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEEEvT_S7_(ptr %119, ptr %120)
          to label %132 unwind label %154

121:                                              ; preds = %114
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %252

.lr.ph59:                                         ; preds = %116, %.lr.ph59
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.lr.ph59 ], [ 0, %116 ]
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next66) #6
  %124 = load i64, ptr %123, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv65) #6
  %126 = load i64, ptr %125, align 8, !tbaa !5
  %127 = sub nsw i64 %124, %126
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv65) #6
  store i64 %127, ptr %128, align 8, !tbaa !5
  %129 = load i64, ptr %1, align 8, !tbaa !5
  %130 = add nsw i64 %129, -1
  %131 = icmp sgt i64 %130, %indvars.iv.next66
  br i1 %131, label %.lr.ph59, label %._crit_edge60, !llvm.loop !11

132:                                              ; preds = %._crit_edge60
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %134 = load i64, ptr %133, align 8, !tbaa !5
  %135 = load i64, ptr %1, align 8, !tbaa !5
  %136 = add nsw i64 %135, -2
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %136) #6
  %138 = load i64, ptr %137, align 8, !tbaa !5
  %139 = icmp eq i64 %134, %138
  br i1 %139, label %140, label %156

140:                                              ; preds = %132
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %142 = load i64, ptr %141, align 8, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %144 = load i64, ptr %143, align 8, !tbaa !5
  %145 = sub nsw i64 %142, %144
  %146 = load i64, ptr %1, align 8, !tbaa !5
  %147 = add nsw i64 %146, -1
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %147) #6
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %151 = load i64, ptr %150, align 8, !tbaa !5
  %152 = add nsw i64 %151, %149
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %145, i64 noundef %152)
  br label %.loopexit

154:                                              ; preds = %._crit_edge60
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %252

156:                                              ; preds = %132
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1) #6
  %160 = load i64, ptr %159, align 8, !tbaa !5
  %161 = icmp eq i64 %158, %160
  br i1 %161, label %162, label %201

162:                                              ; preds = %156
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %164 = load i64, ptr %163, align 8, !tbaa !5
  %165 = load i64, ptr %1, align 8, !tbaa !5
  %166 = add nsw i64 %165, -3
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %166) #6
  %168 = load i64, ptr %167, align 8, !tbaa !5
  %169 = icmp eq i64 %164, %168
  br i1 %169, label %170, label %201

170:                                              ; preds = %162
  %171 = load i64, ptr %1, align 8, !tbaa !5
  %172 = add nsw i64 %171, -2
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %172) #6
  %174 = load i64, ptr %173, align 8, !tbaa !5
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %176 = load i64, ptr %175, align 8, !tbaa !5
  %177 = shl nsw i64 %176, 1
  %178 = icmp eq i64 %174, %177
  br i1 %178, label %179, label %201

179:                                              ; preds = %170
  %180 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %181

181:                                              ; preds = %185, %179
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %185 ], [ 0, %179 ]
  %182 = load i64, ptr %1, align 8, !tbaa !5
  %183 = add nsw i64 %182, -1
  %184 = icmp sgt i64 %183, %indvars.iv71
  br i1 %184, label %185, label %.loopexit

185:                                              ; preds = %181
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next72) #6
  %187 = load i64, ptr %186, align 8, !tbaa !5
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv71) #6
  %189 = load i64, ptr %188, align 8, !tbaa !5
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %191 = load i64, ptr %190, align 8, !tbaa !5
  %192 = add nsw i64 %191, %189
  %193 = icmp sgt i64 %187, %192
  br i1 %193, label %194, label %181, !llvm.loop !12

194:                                              ; preds = %185
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv71) #6
  %196 = load i64, ptr %195, align 8, !tbaa !5
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %198 = load i64, ptr %197, align 8, !tbaa !5
  %199 = add nsw i64 %198, %196
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i64 noundef %199)
  br label %.loopexit

201:                                              ; preds = %170, %162, %156
  %202 = load i64, ptr %1, align 8, !tbaa !5
  %203 = add nsw i64 %202, -2
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %203) #6
  %205 = load i64, ptr %204, align 8, !tbaa !5
  %206 = load i64, ptr %1, align 8, !tbaa !5
  %207 = add nsw i64 %206, -3
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %207) #6
  %209 = load i64, ptr %208, align 8, !tbaa !5
  %210 = icmp eq i64 %205, %209
  br i1 %210, label %211, label %250

211:                                              ; preds = %201
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1) #6
  %213 = load i64, ptr %212, align 8, !tbaa !5
  %214 = load i64, ptr %1, align 8, !tbaa !5
  %215 = add nsw i64 %214, -2
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %215) #6
  %217 = load i64, ptr %216, align 8, !tbaa !5
  %218 = icmp eq i64 %213, %217
  br i1 %218, label %219, label %250

219:                                              ; preds = %211
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %221 = load i64, ptr %220, align 8, !tbaa !5
  %222 = load i64, ptr %1, align 8, !tbaa !5
  %223 = add nsw i64 %222, -2
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %223) #6
  %225 = load i64, ptr %224, align 8, !tbaa !5
  %226 = shl nsw i64 %225, 1
  %227 = icmp eq i64 %221, %226
  br i1 %227, label %228, label %250

228:                                              ; preds = %219
  %229 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %230

230:                                              ; preds = %234, %228
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %234 ], [ 0, %228 ]
  %231 = load i64, ptr %1, align 8, !tbaa !5
  %232 = add nsw i64 %231, -1
  %233 = icmp sgt i64 %232, %indvars.iv68
  br i1 %233, label %234, label %.loopexit

234:                                              ; preds = %230
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next69) #6
  %236 = load i64, ptr %235, align 8, !tbaa !5
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #6
  %238 = load i64, ptr %237, align 8, !tbaa !5
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1) #6
  %240 = load i64, ptr %239, align 8, !tbaa !5
  %241 = add nsw i64 %240, %238
  %242 = icmp sgt i64 %236, %241
  br i1 %242, label %243, label %230, !llvm.loop !13

243:                                              ; preds = %234
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #6
  %245 = load i64, ptr %244, align 8, !tbaa !5
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1) #6
  %247 = load i64, ptr %246, align 8, !tbaa !5
  %248 = add nsw i64 %247, %245
  %249 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i64 noundef %248)
  br label %.loopexit

250:                                              ; preds = %219, %211, %201
  %251 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %.loopexit

.loopexit:                                        ; preds = %230, %181, %243, %194, %250, %140
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %253

252:                                              ; preds = %154, %121
  %.pn = phi { ptr, i32 } [ %155, %154 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %254

253:                                              ; preds = %86, %105, %110, %97, %36, %.loopexit, %112, %66, %24
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

254:                                              ; preds = %252, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %252 ], [ %27, %26 ]
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %255

255:                                              ; preds = %254, %15
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %254 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn
}

; 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 @_ZNSt6vectorIlSaIlEEC2EmRKlRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #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 @_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 = { inlinehint 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 #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", !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,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass