; LLVM IR from DionysiosB/CodeForces :: 1200-1299 (1231C-IncreasingMatrix)

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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

24:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @_ZNSaISt6vectorIlSaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %25 unwind label %35

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

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

30:                                               ; preds = %26
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %64

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  br label %39

35:                                               ; preds = %24
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIlSaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %39

39:                                               ; preds = %35, %31
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %292

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

41:                                               ; preds = %53, %40
  %42 = load i64, ptr %13, align 8, !tbaa !5
  %43 = load i64, ptr %3, align 8, !tbaa !5
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %60

46:                                               ; preds = %41
  %47 = load i64, ptr %11, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %47) #5
  %49 = load i64, ptr %13, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #5
  %51 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %50)
          to label %52 unwind label %56

52:                                               ; preds = %46
  br label %53

53:                                               ; preds = %52
  %54 = load i64, ptr %13, align 8, !tbaa !5
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %13, align 8, !tbaa !5
  br label %41, !llvm.loop !9

56:                                               ; preds = %46
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %291

60:                                               ; preds = %45
  br label %61

61:                                               ; preds = %60
  %62 = load i64, ptr %11, align 8, !tbaa !5
  %63 = add nsw i64 %62, 1
  store i64 %63, ptr %11, align 8, !tbaa !5
  br label %26, !llvm.loop !11

64:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 1, ptr %14, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %65 = load i64, ptr %2, align 8, !tbaa !5
  %66 = sub nsw i64 %65, 1
  store i64 %66, ptr %16, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %170, %64
  %68 = load i64, ptr %16, align 8, !tbaa !5
  %69 = icmp sge i64 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = load i8, ptr %14, align 1, !tbaa !12, !range !16, !noundef !17
  %72 = trunc i8 %71 to i1
  br label %73

73:                                               ; preds = %70, %67
  %74 = phi i1 [ false, %67 ], [ %72, %70 ]
  br i1 %74, label %76, label %75

75:                                               ; preds = %73
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %173

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %77 = load i64, ptr %3, align 8, !tbaa !5
  %78 = sub nsw i64 %77, 1
  store i64 %78, ptr %17, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %165, %76
  %80 = load i64, ptr %17, align 8, !tbaa !5
  %81 = icmp sge i64 %80, 0
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load i8, ptr %14, align 1, !tbaa !12, !range !16, !noundef !17
  %84 = trunc i8 %83 to i1
  br label %85

85:                                               ; preds = %82, %79
  %86 = phi i1 [ false, %79 ], [ %84, %82 ]
  br i1 %86, label %88, label %87

87:                                               ; preds = %85
  store i32 11, ptr %12, align 4
  br label %168

88:                                               ; preds = %85
  %89 = load i64, ptr %16, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %89) #5
  %91 = load i64, ptr %17, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #5
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %103

95:                                               ; preds = %88
  %96 = load i64, ptr %16, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %96) #5
  %98 = load i64, ptr %17, align 8, !tbaa !5
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %98) #5
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %101 = load i64, ptr %15, align 8, !tbaa !14
  %102 = add nsw i64 %101, %100
  store i64 %102, ptr %15, align 8, !tbaa !14
  br label %165

103:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %104 = load i64, ptr %16, align 8, !tbaa !5
  %105 = add nsw i64 %104, 1
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %105) #5
  %107 = load i64, ptr %17, align 8, !tbaa !5
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %107) #5
  %109 = load i64, ptr %108, align 8, !tbaa !5
  %110 = load i64, ptr %16, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %110) #5
  %112 = load i64, ptr %17, align 8, !tbaa !5
  %113 = add nsw i64 %112, 1
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #5
  %115 = load i64, ptr %114, align 8, !tbaa !5
  %116 = icmp slt i64 %109, %115
  br i1 %116, label %117, label %124

117:                                              ; preds = %103
  %118 = load i64, ptr %16, align 8, !tbaa !5
  %119 = add nsw i64 %118, 1
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %119) #5
  %121 = load i64, ptr %17, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %121) #5
  %123 = load i64, ptr %122, align 8, !tbaa !5
  br label %131

124:                                              ; preds = %103
  %125 = load i64, ptr %16, align 8, !tbaa !5
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %125) #5
  %127 = load i64, ptr %17, align 8, !tbaa !5
  %128 = add nsw i64 %127, 1
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %128) #5
  %130 = load i64, ptr %129, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %124, %117
  %132 = phi i64 [ %123, %117 ], [ %130, %124 ]
  %133 = sub nsw i64 %132, 1
  store i64 %133, ptr %18, align 8, !tbaa !5
  %134 = load i64, ptr %18, align 8, !tbaa !5
  %135 = load i64, ptr %16, align 8, !tbaa !5
  %136 = sub nsw i64 %135, 1
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %136) #5
  %138 = load i64, ptr %17, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %138) #5
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = icmp sle i64 %134, %140
  br i1 %141, label %151, label %142

142:                                              ; preds = %131
  %143 = load i64, ptr %18, align 8, !tbaa !5
  %144 = load i64, ptr %16, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %144) #5
  %146 = load i64, ptr %17, align 8, !tbaa !5
  %147 = sub nsw i64 %146, 1
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #5
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = icmp sle i64 %143, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %142, %131
  store i8 0, ptr %14, align 1, !tbaa !12
  store i32 11, ptr %12, align 4
  br label %162

152:                                              ; preds = %142
  %153 = load i64, ptr %18, align 8, !tbaa !5
  %154 = load i64, ptr %16, align 8, !tbaa !5
  %155 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %154) #5
  %156 = load i64, ptr %17, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %156) #5
  store i64 %153, ptr %157, align 8, !tbaa !5
  %158 = load i64, ptr %18, align 8, !tbaa !5
  %159 = load i64, ptr %15, align 8, !tbaa !14
  %160 = add nsw i64 %159, %158
  store i64 %160, ptr %15, align 8, !tbaa !14
  br label %161

161:                                              ; preds = %152
  store i32 0, ptr %12, align 4
  br label %162

162:                                              ; preds = %161, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %163 = load i32, ptr %12, align 4
  switch i32 %163, label %168 [
    i32 0, label %164
  ]

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164, %95
  %166 = load i64, ptr %17, align 8, !tbaa !5
  %167 = add nsw i64 %166, -1
  store i64 %167, ptr %17, align 8, !tbaa !5
  br label %79, !llvm.loop !18

168:                                              ; preds = %162, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %16, align 8, !tbaa !5
  %172 = add nsw i64 %171, -1
  store i64 %172, ptr %16, align 8, !tbaa !5
  br label %67, !llvm.loop !19

173:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %174

174:                                              ; preds = %272, %173
  %175 = load i64, ptr %19, align 8, !tbaa !5
  %176 = load i64, ptr %2, align 8, !tbaa !5
  %177 = icmp slt i64 %175, %176
  br i1 %177, label %178, label %181

178:                                              ; preds = %174
  %179 = load i8, ptr %14, align 1, !tbaa !12, !range !16, !noundef !17
  %180 = trunc i8 %179 to i1
  br label %181

181:                                              ; preds = %178, %174
  %182 = phi i1 [ false, %174 ], [ %180, %178 ]
  br i1 %182, label %184, label %183

183:                                              ; preds = %181
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %275

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %185

185:                                              ; preds = %268, %184
  %186 = load i64, ptr %20, align 8, !tbaa !5
  %187 = load i64, ptr %3, align 8, !tbaa !5
  %188 = icmp slt i64 %186, %187
  br i1 %188, label %189, label %192

189:                                              ; preds = %185
  %190 = load i8, ptr %14, align 1, !tbaa !12, !range !16, !noundef !17
  %191 = trunc i8 %190 to i1
  br label %192

192:                                              ; preds = %189, %185
  %193 = phi i1 [ false, %185 ], [ %191, %189 ]
  br i1 %193, label %195, label %194

194:                                              ; preds = %192
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %271

195:                                              ; preds = %192
  %196 = load i64, ptr %19, align 8, !tbaa !5
  %197 = icmp sgt i64 %196, 0
  br i1 %197, label %198, label %212

198:                                              ; preds = %195
  %199 = load i64, ptr %19, align 8, !tbaa !5
  %200 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %199) #5
  %201 = load i64, ptr %20, align 8, !tbaa !5
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %201) #5
  %203 = load i64, ptr %202, align 8, !tbaa !5
  %204 = load i64, ptr %19, align 8, !tbaa !5
  %205 = sub nsw i64 %204, 1
  %206 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %205) #5
  %207 = load i64, ptr %20, align 8, !tbaa !5
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %207) #5
  %209 = load i64, ptr %208, align 8, !tbaa !5
  %210 = icmp sle i64 %203, %209
  br i1 %210, label %211, label %212

211:                                              ; preds = %198
  store i8 0, ptr %14, align 1, !tbaa !12
  br label %212

212:                                              ; preds = %211, %198, %195
  %213 = load i64, ptr %19, align 8, !tbaa !5
  %214 = add nsw i64 %213, 1
  %215 = load i64, ptr %2, align 8, !tbaa !5
  %216 = icmp slt i64 %214, %215
  br i1 %216, label %217, label %231

217:                                              ; preds = %212
  %218 = load i64, ptr %19, align 8, !tbaa !5
  %219 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %218) #5
  %220 = load i64, ptr %20, align 8, !tbaa !5
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %220) #5
  %222 = load i64, ptr %221, align 8, !tbaa !5
  %223 = load i64, ptr %19, align 8, !tbaa !5
  %224 = add nsw i64 %223, 1
  %225 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %224) #5
  %226 = load i64, ptr %20, align 8, !tbaa !5
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %226) #5
  %228 = load i64, ptr %227, align 8, !tbaa !5
  %229 = icmp sge i64 %222, %228
  br i1 %229, label %230, label %231

230:                                              ; preds = %217
  store i8 0, ptr %14, align 1, !tbaa !12
  br label %231

231:                                              ; preds = %230, %217, %212
  %232 = load i64, ptr %20, align 8, !tbaa !5
  %233 = icmp sgt i64 %232, 0
  br i1 %233, label %234, label %248

234:                                              ; preds = %231
  %235 = load i64, ptr %19, align 8, !tbaa !5
  %236 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %235) #5
  %237 = load i64, ptr %20, align 8, !tbaa !5
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %237) #5
  %239 = load i64, ptr %238, align 8, !tbaa !5
  %240 = load i64, ptr %19, align 8, !tbaa !5
  %241 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %240) #5
  %242 = load i64, ptr %20, align 8, !tbaa !5
  %243 = sub nsw i64 %242, 1
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %243) #5
  %245 = load i64, ptr %244, align 8, !tbaa !5
  %246 = icmp sle i64 %239, %245
  br i1 %246, label %247, label %248

247:                                              ; preds = %234
  store i8 0, ptr %14, align 1, !tbaa !12
  br label %248

248:                                              ; preds = %247, %234, %231
  %249 = load i64, ptr %20, align 8, !tbaa !5
  %250 = add nsw i64 %249, 1
  %251 = load i64, ptr %3, align 8, !tbaa !5
  %252 = icmp slt i64 %250, %251
  br i1 %252, label %253, label %267

253:                                              ; preds = %248
  %254 = load i64, ptr %19, align 8, !tbaa !5
  %255 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %254) #5
  %256 = load i64, ptr %20, align 8, !tbaa !5
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %256) #5
  %258 = load i64, ptr %257, align 8, !tbaa !5
  %259 = load i64, ptr %19, align 8, !tbaa !5
  %260 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %259) #5
  %261 = load i64, ptr %20, align 8, !tbaa !5
  %262 = add nsw i64 %261, 1
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %260, i64 noundef %262) #5
  %264 = load i64, ptr %263, align 8, !tbaa !5
  %265 = icmp sge i64 %258, %264
  br i1 %265, label %266, label %267

266:                                              ; preds = %253
  store i8 0, ptr %14, align 1, !tbaa !12
  br label %267

267:                                              ; preds = %266, %253, %248
  br label %268

268:                                              ; preds = %267
  %269 = load i64, ptr %20, align 8, !tbaa !5
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %20, align 8, !tbaa !5
  br label %185, !llvm.loop !20

271:                                              ; preds = %194
  br label %272

272:                                              ; preds = %271
  %273 = load i64, ptr %19, align 8, !tbaa !5
  %274 = add nsw i64 %273, 1
  store i64 %274, ptr %19, align 8, !tbaa !5
  br label %174, !llvm.loop !21

275:                                              ; preds = %183
  %276 = load i8, ptr %14, align 1, !tbaa !12, !range !16, !noundef !17
  %277 = trunc i8 %276 to i1
  br i1 %277, label %278, label %286

278:                                              ; preds = %275
  %279 = load i64, ptr %15, align 8, !tbaa !14
  %280 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %279)
          to label %281 unwind label %282

281:                                              ; preds = %278
  br label %289

282:                                              ; preds = %286, %278
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %8, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %291

286:                                              ; preds = %275
  %287 = invoke i32 @puts(ptr noundef @.str.3)
          to label %288 unwind label %282

288:                                              ; preds = %286
  br label %289

289:                                              ; preds = %288, %281
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %290 = load i32, ptr %1, align 4
  ret i32 %290

291:                                              ; preds = %282, %56
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %292

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

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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIlSaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

; 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 void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

declare i32 @puts(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !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<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.2" = type { i8 }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

11:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaISt6vectorIlSaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %12 unwind label %23

12:                                               ; preds = %11
  call void @_ZNSt15__new_allocatorISt6vectorIlSaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %.preheader103.lr.ph, label %._crit_edge136.thread

.preheader103.lr.ph:                              ; preds = %12
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = icmp sgt i64 %15, 0
  br i1 %16, label %.preheader103, label %.lr.ph126.preheader

.preheader103:                                    ; preds = %.preheader103.lr.ph, %._crit_edge
  %17 = phi i64 [ %26, %._crit_edge ], [ %13, %.preheader103.lr.ph ]
  %18 = phi i64 [ %27, %._crit_edge ], [ %15, %.preheader103.lr.ph ]
  %.078106 = phi i64 [ %28, %._crit_edge ], [ 0, %.preheader103.lr.ph ]
  %19 = icmp sgt i64 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.preheader102:                                    ; preds = %._crit_edge
  %20 = icmp sgt i64 %26, 0
  br i1 %20, label %.lr.ph126.preheader, label %._crit_edge136.thread

.lr.ph126.preheader:                              ; preds = %.preheader103.lr.ph, %.preheader102
  %.069.in124.ph = phi i64 [ %13, %.preheader103.lr.ph ], [ %26, %.preheader102 ]
  br label %.lr.ph126

21:                                               ; preds = %0
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %25

23:                                               ; preds = %11
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIlSaIlEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader103
  %26 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %17, %.preheader103 ]
  %27 = phi i64 [ %34, %._crit_edge.loopexit ], [ %18, %.preheader103 ]
  %28 = add nuw nsw i64 %.078106, 1
  %29 = icmp slt i64 %28, %26
  br i1 %29, label %.preheader103, label %.preheader102, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader103, %.lr.ph
  %.076105 = phi i64 [ %33, %.lr.ph ], [ 0, %.preheader103 ]
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.078106) #5
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.076105) #5
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %31)
  %33 = add nuw nsw i64 %.076105, 1
  %34 = load i64, ptr %2, align 8, !tbaa !5
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !12

.preheader101:                                    ; preds = %.thread
  %.pre142 = load i64, ptr %1, align 8, !tbaa !5
  %36 = icmp sgt i64 %.pre142, 0
  %37 = trunc nuw i8 %.475 to i1
  %38 = select i1 %36, i1 %37, i1 false
  br i1 %38, label %.preheader.preheader, label %._crit_edge136

.preheader.preheader:                             ; preds = %.preheader101
  %.pre143 = load i64, ptr %2, align 8, !tbaa !5
  br label %.preheader

.lr.ph126:                                        ; preds = %.lr.ph126.preheader, %.thread
  %.069.in124 = phi i64 [ %.069125, %.thread ], [ %.069.in124.ph, %.lr.ph126.preheader ]
  %.070123 = phi i64 [ %.1.lcssa, %.thread ], [ 0, %.lr.ph126.preheader ]
  %.071122 = phi i8 [ %.475, %.thread ], [ 1, %.lr.ph126.preheader ]
  %.069125 = add nsw i64 %.069.in124, -1
  %39 = load i64, ptr %2, align 8, !tbaa !5
  %40 = trunc nuw i8 %.071122 to i1
  %41 = icmp sgt i64 %39, 0
  %42 = select i1 %41, i1 %40, i1 false
  br i1 %42, label %.lr.ph112, label %.thread

.lr.ph112:                                        ; preds = %.lr.ph126
  %43 = add nsw i64 %.069.in124, -2
  br label %44

44:                                               ; preds = %.lr.ph112, %75
  %.068.in109 = phi i64 [ %39, %.lr.ph112 ], [ %.068110, %75 ]
  %.1108 = phi i64 [ %.070123, %.lr.ph112 ], [ %.3, %75 ]
  %.068110 = add nsw i64 %.068.in109, -1
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069125) #5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %.068110) #5
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %.not91 = icmp eq i64 %47, 0
  br i1 %.not91, label %52, label %48

48:                                               ; preds = %44
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069125) #5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %.068110) #5
  %51 = load i64, ptr %50, align 8, !tbaa !5
  br label %75

52:                                               ; preds = %44
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069.in124) #5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %.068110) #5
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069125) #5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %.068.in109) #5
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = icmp slt i64 %55, %58
  %.069.in124..069125 = select i1 %59, i64 %.069.in124, i64 %.069125
  %.068110..068.in109 = select i1 %59, i64 %.068110, i64 %.068.in109
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069.in124..069125) #5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %.068110..068.in109) #5
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = add nsw i64 %62, -1
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %43) #5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %.068110) #5
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %.not92 = icmp sgt i64 %63, %66
  br i1 %.not92, label %67, label %.thread.loopexit

67:                                               ; preds = %52
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069125) #5
  %69 = add nsw i64 %.068.in109, -2
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #5
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %.not93 = icmp sgt i64 %63, %71
  br i1 %.not93, label %72, label %.thread.loopexit

72:                                               ; preds = %67
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.069125) #5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %.068110) #5
  store i64 %63, ptr %74, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %72, %48
  %.pn100 = phi i64 [ %51, %48 ], [ %63, %72 ]
  %.3 = add nsw i64 %.pn100, %.1108
  %76 = icmp ugt i64 %.068.in109, 1
  br i1 %76, label %44, label %.thread.loopexit, !llvm.loop !13

.thread.loopexit:                                 ; preds = %52, %67, %75
  %.1.lcssa.ph = phi i64 [ %.3, %75 ], [ %.1108, %67 ], [ %.1108, %52 ]
  %.475.ph = phi i8 [ %.071122, %75 ], [ 0, %67 ], [ 0, %52 ]
  %.pre151 = trunc nuw i8 %.475.ph to i1
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %.lr.ph126
  %.pre-phi = phi i1 [ %.pre151, %.thread.loopexit ], [ %40, %.lr.ph126 ]
  %.1.lcssa = phi i64 [ %.1.lcssa.ph, %.thread.loopexit ], [ %.070123, %.lr.ph126 ]
  %.475 = phi i8 [ %.475.ph, %.thread.loopexit ], [ %.071122, %.lr.ph126 ]
  %77 = icmp sgt i64 %.069.in124, 1
  %78 = select i1 %77, i1 %.pre-phi, i1 false
  br i1 %78, label %.lr.ph126, label %.preheader101, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge132
  %79 = phi i64 [ %116, %._crit_edge132 ], [ %.pre142, %.preheader.preheader ]
  %80 = phi i64 [ %117, %._crit_edge132 ], [ %.pre143, %.preheader.preheader ]
  %.067135 = phi i64 [ %.pre-phi155, %._crit_edge132 ], [ 0, %.preheader.preheader ]
  %.5134 = phi i8 [ %.6.lcssa, %._crit_edge132 ], [ %.475, %.preheader.preheader ]
  %81 = icmp sgt i64 %80, 0
  %82 = trunc nuw i8 %.5134 to i1
  %83 = select i1 %81, i1 %82, i1 false
  br i1 %83, label %.lr.ph131, label %.preheader.._crit_edge132_crit_edge

.preheader.._crit_edge132_crit_edge:              ; preds = %.preheader
  %.pre154 = add nuw nsw i64 %.067135, 1
  br label %._crit_edge132

.lr.ph131:                                        ; preds = %.preheader
  %.not = icmp eq i64 %.067135, 0
  %84 = add nsw i64 %.067135, -1
  %85 = add nuw nsw i64 %.067135, 1
  br i1 %.not, label %93, label %86

86:                                               ; preds = %.lr.ph131
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #5
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %84) #5
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef 0) #5
  %92 = load i64, ptr %91, align 8, !tbaa !5
  %.not86.peel = icmp sgt i64 %89, %92
  %spec.select.peel = select i1 %.not86.peel, i8 %.5134, i8 0
  %.pre144 = load i64, ptr %1, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %86, %.lr.ph131
  %94 = phi i64 [ %79, %.lr.ph131 ], [ %.pre144, %86 ]
  %.7.peel = phi i8 [ %.5134, %.lr.ph131 ], [ %spec.select.peel, %86 ]
  %95 = icmp slt i64 %85, %94
  br i1 %95, label %96, label %._crit_edge145

96:                                               ; preds = %93
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef 0) #5
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %85) #5
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef 0) #5
  %102 = load i64, ptr %101, align 8, !tbaa !5
  %.not87.peel = icmp slt i64 %99, %102
  %spec.select94.peel = select i1 %.not87.peel, i8 %.7.peel, i8 0
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %96, %93
  %.8.peel = phi i8 [ %.7.peel, %93 ], [ %spec.select94.peel, %96 ]
  %.pre146 = load i64, ptr %2, align 8, !tbaa !5
  %103 = icmp sgt i64 %.pre146, 1
  br i1 %103, label %105, label %.thread163

.thread163:                                       ; preds = %._crit_edge145
  %104 = trunc nuw i8 %.8.peel to i1
  br label %._crit_edge132.loopexit

105:                                              ; preds = %._crit_edge145
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 0) #5
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef 1) #5
  %111 = load i64, ptr %110, align 8, !tbaa !5
  %.not90.peel = icmp slt i64 %108, %111
  %spec.select96.peel = select i1 %.not90.peel, i8 %.8.peel, i8 0
  %.pre147 = load i64, ptr %2, align 8, !tbaa !5
  %112 = icmp sgt i64 %.pre147, 1
  %113 = trunc nuw i8 %spec.select96.peel to i1
  %114 = select i1 %112, i1 %113, i1 false
  br i1 %114, label %.peel.next, label %._crit_edge132.loopexit

._crit_edge136:                                   ; preds = %._crit_edge132, %.preheader101
  %.lcssa = phi i1 [ %37, %.preheader101 ], [ %.pre-phi153, %._crit_edge132 ]
  br i1 %.lcssa, label %._crit_edge136.thread, label %161

._crit_edge132.loopexit:                          ; preds = %155, %.thread163, %105
  %.pre152.pre-phi = phi i1 [ %113, %105 ], [ %104, %.thread163 ], [ %158, %155 ]
  %115 = phi i64 [ %.pre147, %105 ], [ %.pre146, %.thread163 ], [ %156, %155 ]
  %.10.lcssa = phi i8 [ %spec.select96.peel, %105 ], [ %.8.peel, %.thread163 ], [ %.10, %155 ]
  %.pre150 = load i64, ptr %1, align 8, !tbaa !5
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %.preheader.._crit_edge132_crit_edge, %._crit_edge132.loopexit
  %.pre-phi155 = phi i64 [ %.pre154, %.preheader.._crit_edge132_crit_edge ], [ %85, %._crit_edge132.loopexit ]
  %.pre-phi153 = phi i1 [ %82, %.preheader.._crit_edge132_crit_edge ], [ %.pre152.pre-phi, %._crit_edge132.loopexit ]
  %116 = phi i64 [ %79, %.preheader.._crit_edge132_crit_edge ], [ %.pre150, %._crit_edge132.loopexit ]
  %117 = phi i64 [ %80, %.preheader.._crit_edge132_crit_edge ], [ %115, %._crit_edge132.loopexit ]
  %.6.lcssa = phi i8 [ %.5134, %.preheader.._crit_edge132_crit_edge ], [ %.10.lcssa, %._crit_edge132.loopexit ]
  %118 = icmp slt i64 %.pre-phi155, %116
  %119 = select i1 %118, i1 %.pre-phi153, i1 false
  br i1 %119, label %.preheader, label %._crit_edge136, !llvm.loop !15

.peel.next:                                       ; preds = %105, %155
  %.0130 = phi i64 [ %145, %155 ], [ 1, %105 ]
  %.6129 = phi i8 [ %.10, %155 ], [ %spec.select96.peel, %105 ]
  br i1 %.not, label %127, label %120

120:                                              ; preds = %.peel.next
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %.0130) #5
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %84) #5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %.0130) #5
  %126 = load i64, ptr %125, align 8, !tbaa !5
  %.not86 = icmp sgt i64 %123, %126
  %spec.select = select i1 %.not86, i8 %.6129, i8 0
  br label %127

127:                                              ; preds = %120, %.peel.next
  %.7 = phi i8 [ %.6129, %.peel.next ], [ %spec.select, %120 ]
  %128 = load i64, ptr %1, align 8, !tbaa !5
  %129 = icmp slt i64 %85, %128
  br i1 %129, label %130, label %137

130:                                              ; preds = %127
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %.0130) #5
  %133 = load i64, ptr %132, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %85) #5
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %.0130) #5
  %136 = load i64, ptr %135, align 8, !tbaa !5
  %.not87 = icmp slt i64 %133, %136
  %spec.select94 = select i1 %.not87, i8 %.7, i8 0
  br label %137

137:                                              ; preds = %130, %127
  %.8 = phi i8 [ %.7, %127 ], [ %spec.select94, %130 ]
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %.0130) #5
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %142 = add nsw i64 %.0130, -1
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %142) #5
  %144 = load i64, ptr %143, align 8, !tbaa !5
  %.not89 = icmp sgt i64 %140, %144
  %spec.select95 = select i1 %.not89, i8 %.8, i8 0
  %145 = add nuw nsw i64 %.0130, 1
  %146 = load i64, ptr %2, align 8, !tbaa !5
  %147 = icmp slt i64 %145, %146
  br i1 %147, label %148, label %155

148:                                              ; preds = %137
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %.0130) #5
  %151 = load i64, ptr %150, align 8, !tbaa !5
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067135) #5
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %145) #5
  %154 = load i64, ptr %153, align 8, !tbaa !5
  %.not90 = icmp slt i64 %151, %154
  %spec.select96 = select i1 %.not90, i8 %spec.select95, i8 0
  %.pre149 = load i64, ptr %2, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %148, %137
  %156 = phi i64 [ %146, %137 ], [ %.pre149, %148 ]
  %.10 = phi i8 [ %spec.select95, %137 ], [ %spec.select96, %148 ]
  %157 = icmp slt i64 %145, %156
  %158 = trunc nuw i8 %.10 to i1
  %159 = select i1 %157, i1 %158, i1 false
  br i1 %159, label %.peel.next, label %._crit_edge132.loopexit, !llvm.loop !16

._crit_edge136.thread:                            ; preds = %.preheader102, %12, %._crit_edge136
  %.070.lcssa162167 = phi i64 [ %.1.lcssa, %._crit_edge136 ], [ 0, %12 ], [ 0, %.preheader102 ]
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.070.lcssa162167)
  br label %163

161:                                              ; preds = %._crit_edge136
  %162 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %163

163:                                              ; preds = %161, %._crit_edge136.thread
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_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 nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIlSaIlEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

; 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 void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIlSaIlEEED2Ev(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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !17}
!17 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass