; LLVM IR from DionysiosB/CodeForces :: 1100-1199 (1157C2-IncreasingSubsequenceHardVersion)

; 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.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

26:                                               ; preds = %40, %25
  %27 = load i64, ptr %7, align 8, !tbaa !5
  %28 = load i64, ptr %2, align 8, !tbaa !5
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %35, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %47

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

35:                                               ; preds = %26
  %36 = load i64, ptr %7, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %36) #5
  %38 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %37)
          to label %39 unwind label %43

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %39
  %41 = load i64, ptr %7, align 8, !tbaa !5
  %42 = add nsw i64 %41, 1
  store i64 %42, ptr %7, align 8, !tbaa !5
  br label %26, !llvm.loop !9

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

47:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %49 = sub nsw i64 %48, 1
  store i64 %49, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %50

50:                                               ; preds = %236, %47
  %51 = load i64, ptr %8, align 8, !tbaa !5
  %52 = load i64, ptr %9, align 8, !tbaa !5
  %53 = icmp sle i64 %51, %52
  br i1 %53, label %54, label %237

54:                                               ; preds = %50
  %55 = load i64, ptr %10, align 8, !tbaa !5
  %56 = load i64, ptr %8, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %56) #5
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = icmp slt i64 %55, %58
  br i1 %59, label %60, label %79

60:                                               ; preds = %54
  %61 = load i64, ptr %8, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #5
  %63 = load i64, ptr %62, align 8, !tbaa !5
  %64 = load i64, ptr %9, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %64) #5
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = icmp slt i64 %63, %66
  br i1 %67, label %68, label %79

68:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 76, ptr %12, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %69 unwind label %75

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  %70 = load i64, ptr %8, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %70) #5
  %72 = load i64, ptr %71, align 8, !tbaa !5
  store i64 %72, ptr %10, align 8, !tbaa !5
  %73 = load i64, ptr %8, align 8, !tbaa !5
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %8, align 8, !tbaa !5
  br label %236

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %268

79:                                               ; preds = %60, %54
  %80 = load i64, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %9, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %81) #5
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = icmp slt i64 %80, %83
  br i1 %84, label %85, label %104

85:                                               ; preds = %79
  %86 = load i64, ptr %9, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %86) #5
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = load i64, ptr %8, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %89) #5
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = icmp slt i64 %88, %91
  br i1 %92, label %93, label %104

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 82, ptr %13, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %94 unwind label %100

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  %95 = load i64, ptr %9, align 8, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %95) #5
  %97 = load i64, ptr %96, align 8, !tbaa !5
  store i64 %97, ptr %10, align 8, !tbaa !5
  %98 = load i64, ptr %9, align 8, !tbaa !5
  %99 = add nsw i64 %98, -1
  store i64 %99, ptr %9, align 8, !tbaa !5
  br label %235

100:                                              ; preds = %93
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %5, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %268

104:                                              ; preds = %85, %79
  %105 = load i64, ptr %10, align 8, !tbaa !5
  %106 = load i64, ptr %8, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %106) #5
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = icmp slt i64 %105, %108
  br i1 %109, label %110, label %197

110:                                              ; preds = %104
  %111 = load i64, ptr %8, align 8, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %111) #5
  %113 = load i64, ptr %112, align 8, !tbaa !5
  %114 = load i64, ptr %9, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %114) #5
  %116 = load i64, ptr %115, align 8, !tbaa !5
  %117 = icmp eq i64 %113, %116
  br i1 %117, label %118, label %197

118:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %119 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %119, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %136, %118
  %121 = load i64, ptr %8, align 8, !tbaa !5
  %122 = load i64, ptr %15, align 8, !tbaa !5
  %123 = add nsw i64 %121, %122
  %124 = load i64, ptr %2, align 8, !tbaa !5
  %125 = icmp slt i64 %123, %124
  br i1 %125, label %126, label %134

126:                                              ; preds = %120
  %127 = load i64, ptr %14, align 8, !tbaa !5
  %128 = load i64, ptr %8, align 8, !tbaa !5
  %129 = load i64, ptr %15, align 8, !tbaa !5
  %130 = add nsw i64 %128, %129
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %130) #5
  %132 = load i64, ptr %131, align 8, !tbaa !5
  %133 = icmp slt i64 %127, %132
  br label %134

134:                                              ; preds = %126, %120
  %135 = phi i1 [ false, %120 ], [ %133, %126 ]
  br i1 %135, label %136, label %144

136:                                              ; preds = %134
  %137 = load i64, ptr %8, align 8, !tbaa !5
  %138 = load i64, ptr %15, align 8, !tbaa !5
  %139 = add nsw i64 %137, %138
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %139) #5
  %141 = load i64, ptr %140, align 8, !tbaa !5
  store i64 %141, ptr %14, align 8, !tbaa !5
  %142 = load i64, ptr %15, align 8, !tbaa !5
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %15, align 8, !tbaa !5
  br label %120, !llvm.loop !12

144:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %145 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %145, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %161, %144
  %147 = load i64, ptr %9, align 8, !tbaa !5
  %148 = load i64, ptr %17, align 8, !tbaa !5
  %149 = sub nsw i64 %147, %148
  %150 = icmp sge i64 %149, 0
  br i1 %150, label %151, label %159

151:                                              ; preds = %146
  %152 = load i64, ptr %16, align 8, !tbaa !5
  %153 = load i64, ptr %9, align 8, !tbaa !5
  %154 = load i64, ptr %17, align 8, !tbaa !5
  %155 = sub nsw i64 %153, %154
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %155) #5
  %157 = load i64, ptr %156, align 8, !tbaa !5
  %158 = icmp slt i64 %152, %157
  br label %159

159:                                              ; preds = %151, %146
  %160 = phi i1 [ false, %146 ], [ %158, %151 ]
  br i1 %160, label %161, label %169

161:                                              ; preds = %159
  %162 = load i64, ptr %9, align 8, !tbaa !5
  %163 = load i64, ptr %17, align 8, !tbaa !5
  %164 = sub nsw i64 %162, %163
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %164) #5
  %166 = load i64, ptr %165, align 8, !tbaa !5
  store i64 %166, ptr %16, align 8, !tbaa !5
  %167 = load i64, ptr %17, align 8, !tbaa !5
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %17, align 8, !tbaa !5
  br label %146, !llvm.loop !13

169:                                              ; preds = %159
  %170 = load i64, ptr %15, align 8, !tbaa !5
  %171 = load i64, ptr %17, align 8, !tbaa !5
  %172 = icmp sge i64 %170, %171
  br i1 %172, label %173, label %184

173:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  store i8 76, ptr %18, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %174 unwind label %180

174:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %175 = load i64, ptr %8, align 8, !tbaa !5
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %175) #5
  %177 = load i64, ptr %176, align 8, !tbaa !5
  store i64 %177, ptr %10, align 8, !tbaa !5
  %178 = load i64, ptr %8, align 8, !tbaa !5
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %8, align 8, !tbaa !5
  br label %195

180:                                              ; preds = %173
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %5, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %196

184:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  store i8 82, ptr %19, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %185 unwind label %191

185:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  %186 = load i64, ptr %9, align 8, !tbaa !5
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %186) #5
  %188 = load i64, ptr %187, align 8, !tbaa !5
  store i64 %188, ptr %10, align 8, !tbaa !5
  %189 = load i64, ptr %9, align 8, !tbaa !5
  %190 = add nsw i64 %189, -1
  store i64 %190, ptr %9, align 8, !tbaa !5
  br label %195

191:                                              ; preds = %184
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %5, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %196

195:                                              ; preds = %185, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %234

196:                                              ; preds = %191, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %268

197:                                              ; preds = %110, %104
  %198 = load i64, ptr %10, align 8, !tbaa !5
  %199 = load i64, ptr %8, align 8, !tbaa !5
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %199) #5
  %201 = load i64, ptr %200, align 8, !tbaa !5
  %202 = icmp slt i64 %198, %201
  br i1 %202, label %203, label %214

203:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  store i8 76, ptr %20, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %204 unwind label %210

204:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  %205 = load i64, ptr %8, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %205) #5
  %207 = load i64, ptr %206, align 8, !tbaa !5
  store i64 %207, ptr %10, align 8, !tbaa !5
  %208 = load i64, ptr %8, align 8, !tbaa !5
  %209 = add nsw i64 %208, 1
  store i64 %209, ptr %8, align 8, !tbaa !5
  br label %233

210:                                              ; preds = %203
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %5, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  br label %268

214:                                              ; preds = %197
  %215 = load i64, ptr %10, align 8, !tbaa !5
  %216 = load i64, ptr %9, align 8, !tbaa !5
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %216) #5
  %218 = load i64, ptr %217, align 8, !tbaa !5
  %219 = icmp slt i64 %215, %218
  br i1 %219, label %220, label %231

220:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  store i8 82, ptr %21, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %221 unwind label %227

221:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  %222 = load i64, ptr %9, align 8, !tbaa !5
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %222) #5
  %224 = load i64, ptr %223, align 8, !tbaa !5
  store i64 %224, ptr %10, align 8, !tbaa !5
  %225 = load i64, ptr %9, align 8, !tbaa !5
  %226 = add nsw i64 %225, -1
  store i64 %226, ptr %9, align 8, !tbaa !5
  br label %232

227:                                              ; preds = %220
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %5, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  br label %268

231:                                              ; preds = %214
  br label %237

232:                                              ; preds = %221
  br label %233

233:                                              ; preds = %232, %204
  br label %234

234:                                              ; preds = %233, %195
  br label %235

235:                                              ; preds = %234, %94
  br label %236

236:                                              ; preds = %235, %69
  br label %50, !llvm.loop !14

237:                                              ; preds = %231, %50
  %238 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %239 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %238)
          to label %240 unwind label %246

240:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !5
  br label %241

241:                                              ; preds = %257, %240
  %242 = load i64, ptr %22, align 8, !tbaa !5
  %243 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %244 = icmp ult i64 %242, %243
  br i1 %244, label %250, label %245

245:                                              ; preds = %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %264

246:                                              ; preds = %264, %237
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %5, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %6, align 4
  br label %268

250:                                              ; preds = %241
  %251 = load i64, ptr %22, align 8, !tbaa !5
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %251) #5
  %253 = load i8, ptr %252, align 1, !tbaa !11
  %254 = sext i8 %253 to i32
  %255 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %254)
          to label %256 unwind label %260

256:                                              ; preds = %250
  br label %257

257:                                              ; preds = %256
  %258 = load i64, ptr %22, align 8, !tbaa !5
  %259 = add nsw i64 %258, 1
  store i64 %259, ptr %22, align 8, !tbaa !5
  br label %241, !llvm.loop !15

260:                                              ; preds = %250
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %5, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %268

264:                                              ; preds = %245
  %265 = invoke i32 @puts(ptr noundef @.str.3)
          to label %266 unwind label %246

266:                                              ; preds = %264
  store i32 0, ptr %1, align 4
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %267 = load i32, ptr %1, align 4
  ret i32 %267

268:                                              ; preds = %260, %246, %227, %210, %196, %100, %75
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %269

269:                                              ; preds = %268, %43
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %270

270:                                              ; preds = %269, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %5, align 8
  %273 = load i32, ptr %6, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

; 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

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

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

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

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

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

declare i32 @puts(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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

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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 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 %"class.std::allocator", align 1
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  %12 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %13 unwind label %17

13:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  %14 = load i64, ptr %1, align 8, !tbaa !5
  %15 = icmp sgt i64 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %._crit_edge105

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %.not99 = icmp slt i64 %22, 1
  br i1 %.not99, label %._crit_edge105, label %.lr.ph104.preheader

.lr.ph104.preheader:                              ; preds = %._crit_edge
  %16 = add nsw i64 %22, -1
  br label %.lr.ph104

17:                                               ; preds = %0
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %134

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.07186 = phi i64 [ %21, %.lr.ph ], [ 0, %13 ]
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.07186) #5
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %19)
  %21 = add nuw nsw i64 %.07186, 1
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph104:                                        ; preds = %.lr.ph104.preheader, %121
  %.064102 = phi i64 [ %.2, %121 ], [ 0, %.lr.ph104.preheader ]
  %.065101 = phi i64 [ %.267, %121 ], [ %16, %.lr.ph104.preheader ]
  %.068100 = phi i64 [ %.270, %121 ], [ 0, %.lr.ph104.preheader ]
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = icmp slt i64 %.064102, %25
  br i1 %26, label %27, label %39

27:                                               ; preds = %.lr.ph104
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = icmp slt i64 %29, %31
  br i1 %32, label %33, label %39

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  store i8 76, ptr %5, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %34 unwind label %37

34:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %36 = add nsw i64 %.068100, 1
  br label %121

37:                                               ; preds = %33
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %133

39:                                               ; preds = %27, %.lr.ph104
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = icmp slt i64 %.064102, %41
  br i1 %42, label %43, label %55

43:                                               ; preds = %39
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #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) %2, i64 noundef %.068100) #5
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = icmp slt i64 %45, %47
  br i1 %48, label %49, label %55

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 82, ptr %6, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %50 unwind label %53

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %52 = add nsw i64 %.065101, -1
  br label %121

53:                                               ; preds = %49
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %133

55:                                               ; preds = %43, %39
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = icmp slt i64 %.064102, %57
  br i1 %58, label %59, label %101

59:                                               ; preds = %55
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %63 = load i64, ptr %62, align 8, !tbaa !5
  %64 = icmp eq i64 %61, %63
  br i1 %64, label %.preheader, label %101

.preheader:                                       ; preds = %59
  %65 = load i64, ptr %1, align 8, !tbaa !5
  %66 = icmp slt i64 %.068100, %65
  br i1 %66, label %.lr.ph89, label %.critedge

.lr.ph89:                                         ; preds = %.preheader, %71
  %.06288 = phi i64 [ %74, %71 ], [ 0, %.preheader ]
  %.06387 = phi i64 [ %73, %71 ], [ %.064102, %.preheader ]
  %67 = add nsw i64 %.06288, %.068100
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %67) #5
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = icmp slt i64 %.06387, %69
  br i1 %70, label %71, label %.critedge

71:                                               ; preds = %.lr.ph89
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %67) #5
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = add nuw nsw i64 %.06288, 1
  %75 = add nsw i64 %74, %.068100
  %76 = load i64, ptr %1, align 8, !tbaa !5
  %77 = icmp slt i64 %75, %76
  br i1 %77, label %.lr.ph89, label %.critedge, !llvm.loop !12

.critedge:                                        ; preds = %.lr.ph89, %71, %.preheader
  %.062.lcssa = phi i64 [ 0, %.preheader ], [ %74, %71 ], [ %.06288, %.lr.ph89 ]
  %78 = icmp sgt i64 %.065101, -1
  br i1 %78, label %.lr.ph95.preheader, label %.critedge2

.lr.ph95.preheader:                               ; preds = %.critedge
  %79 = add nuw nsw i64 %.065101, 1
  br label %.lr.ph95

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %84
  %80 = phi i64 [ %88, %84 ], [ %.065101, %.lr.ph95.preheader ]
  %.06094 = phi i64 [ %87, %84 ], [ 0, %.lr.ph95.preheader ]
  %.06193 = phi i64 [ %86, %84 ], [ %.064102, %.lr.ph95.preheader ]
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %80) #5
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = icmp slt i64 %.06193, %82
  br i1 %83, label %84, label %.critedge2

84:                                               ; preds = %.lr.ph95
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %80) #5
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = add nuw i64 %.06094, 1
  %88 = sub nsw i64 %.065101, %87
  %exitcond.not = icmp eq i64 %.06094, %.065101
  br i1 %exitcond.not, label %.critedge2, label %.lr.ph95, !llvm.loop !13

.critedge2:                                       ; preds = %.lr.ph95, %84, %.critedge
  %.060.lcssa = phi i64 [ 0, %.critedge ], [ %79, %84 ], [ %.06094, %.lr.ph95 ]
  %.not81 = icmp ult i64 %.062.lcssa, %.060.lcssa
  br i1 %.not81, label %95, label %89

89:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  store i8 76, ptr %7, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %90 unwind label %93

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %92 = add nsw i64 %.068100, 1
  br label %121

93:                                               ; preds = %89
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %133

95:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  store i8 82, ptr %8, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %96 unwind label %99

96:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %98 = add nsw i64 %.065101, -1
  br label %121

99:                                               ; preds = %95
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  br label %133

101:                                              ; preds = %59, %55
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = icmp slt i64 %.064102, %103
  br i1 %104, label %105, label %111

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  store i8 76, ptr %9, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %106 unwind label %109

106:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.068100) #5
  %108 = add nsw i64 %.068100, 1
  br label %121

109:                                              ; preds = %105
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %133

111:                                              ; preds = %101
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %113 = load i64, ptr %112, align 8, !tbaa !5
  %114 = icmp slt i64 %.064102, %113
  br i1 %114, label %115, label %._crit_edge105

115:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  store i8 82, ptr %10, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %116 unwind label %119

116:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.065101) #5
  %118 = add nsw i64 %.065101, -1
  br label %121

119:                                              ; preds = %115
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  br label %133

121:                                              ; preds = %90, %96, %50, %106, %116, %34
  %.270 = phi i64 [ %36, %34 ], [ %.068100, %50 ], [ %108, %106 ], [ %.068100, %116 ], [ %92, %90 ], [ %.068100, %96 ]
  %.267 = phi i64 [ %.065101, %34 ], [ %52, %50 ], [ %.065101, %106 ], [ %118, %116 ], [ %.065101, %90 ], [ %98, %96 ]
  %.2.in = phi ptr [ %35, %34 ], [ %51, %50 ], [ %107, %106 ], [ %117, %116 ], [ %91, %90 ], [ %97, %96 ]
  %.2 = load i64, ptr %.2.in, align 8, !tbaa !5
  %.not = icmp sgt i64 %.270, %.267
  br i1 %.not, label %._crit_edge105, label %.lr.ph104, !llvm.loop !14

._crit_edge105:                                   ; preds = %121, %111, %._crit_edge.thread, %._crit_edge
  %122 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %122)
  %124 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %.not111 = icmp eq i64 %124, 0
  br i1 %.not111, label %._crit_edge110, label %.lr.ph109

._crit_edge110:                                   ; preds = %.lr.ph109, %._crit_edge105
  %125 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0

.lr.ph109:                                        ; preds = %._crit_edge105, %.lr.ph109
  %.0107 = phi i64 [ %130, %.lr.ph109 ], [ 0, %._crit_edge105 ]
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0107) #5
  %127 = load i8, ptr %126, align 1, !tbaa !11
  %128 = sext i8 %127 to i32
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %128)
  %130 = add nuw nsw i64 %.0107, 1
  %131 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %132 = icmp ult i64 %130, %131
  br i1 %132, label %.lr.ph109, label %._crit_edge110, !llvm.loop !15

133:                                              ; preds = %93, %99, %119, %109, %53, %37
  %.pn83 = phi { ptr, i32 } [ %38, %37 ], [ %54, %53 ], [ %110, %109 ], [ %120, %119 ], [ %94, %93 ], [ %100, %99 ]
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  br label %134

134:                                              ; preds = %133, %17
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %133 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn83.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 @_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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 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 @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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