; LLVM IR from tangjz/acm-icpc :: codeforces/complete (1342D)

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

@__dso_handle = external hidden global i8
@_ZZ4mainE3cnt = external hidden global [300001 x i32], align 16
@_ZZ4mainE3upp = external hidden global [300001 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3out = external hidden global [300001 x %"class.std::vector"], align 16
@_ZGVZ4mainE3out = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

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

23:                                               ; preds = %187, %0
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  br label %190

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #0
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = mul i64 %31, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @_ZZ4mainE3cnt, i64 1), i8 0, i64 %32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #0
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %45, %28
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = icmp sle i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #0
  br label %48

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #0
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %8)
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #0
  br label %45

45:                                               ; preds = %38
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !5
  br label %33, !llvm.loop !9

48:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #0
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %59, %48
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = icmp sle i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #0
  br label %62

54:                                               ; preds = %49
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr @_ZZ4mainE3upp, i64 %56
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %57)
  br label %59

59:                                               ; preds = %54
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %9, align 4, !tbaa !5
  br label %49, !llvm.loop !11

62:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #0
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #0
  %63 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %63, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #0
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %89, %62
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = icmp sge i32 %65, 1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  br label %92

68:                                               ; preds = %64
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = add nsw i32 %73, %72
  store i32 %74, ptr %12, align 4, !tbaa !5
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %88

77:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #0
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sdiv i32 %79, %83
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %13, align 4, !tbaa !5
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %87 = load i32, ptr %86, align 4, !tbaa !5
  store i32 %87, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #0
  br label %88

88:                                               ; preds = %77, %68
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %11, align 4, !tbaa !5
  br label %64, !llvm.loop !12

92:                                               ; preds = %67
  %93 = load atomic i8, ptr @_ZGVZ4mainE3out acquire, align 8
  %94 = icmp eq i8 %93, 0
  br i1 %94, label %95, label %105, !prof !13

95:                                               ; preds = %92
  %96 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ4mainE3out) #0
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %105

98:                                               ; preds = %95
  br label %99

99:                                               ; preds = %99, %98
  %100 = phi ptr [ @_ZZ4mainE3out, %98 ], [ %101, %99 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %100) #0
  %101 = getelementptr inbounds %"class.std::vector", ptr %100, i64 1
  %102 = icmp eq ptr %101, getelementptr inbounds (%"class.std::vector", ptr @_ZZ4mainE3out, i64 300001)
  br i1 %102, label %103, label %99

103:                                              ; preds = %99
  %104 = call i32 @__cxa_atexit(ptr @__cxx_global_array_dtor, ptr null, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZ4mainE3out) #0
  br label %105

105:                                              ; preds = %103, %95, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #0
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %115, %105
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #0
  br label %118

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #0
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #0
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %113
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %114) #0
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #0
  br label %115

115:                                              ; preds = %111
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %14, align 4, !tbaa !5
  br label %106, !llvm.loop !14

118:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #0
  %119 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %119, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #0
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %144, %118
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = icmp sge i32 %121, 1
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #0
  br label %147

124:                                              ; preds = %120
  br label %125

125:                                              ; preds = %141, %124
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = add nsw i32 %129, -1
  store i32 %130, ptr %128, align 4, !tbaa !5
  %131 = icmp ne i32 %129, 0
  br i1 %131, label %132, label %143

132:                                              ; preds = %125
  %133 = load i32, ptr %17, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %134
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %136 = load i32, ptr %17, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %17, align 4, !tbaa !5
  %138 = load i32, ptr %10, align 4, !tbaa !5
  %139 = icmp eq i32 %137, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %132
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %140, %132
  %142 = phi i1 [ false, %132 ], [ false, %140 ]
  br label %125, !llvm.loop !15

143:                                              ; preds = %125
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %16, align 4, !tbaa !5
  %146 = add nsw i32 %145, -1
  store i32 %146, ptr %16, align 4, !tbaa !5
  br label %120, !llvm.loop !16

147:                                              ; preds = %123
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #0
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %183, %147
  %151 = load i32, ptr %18, align 4, !tbaa !5
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #0
  br label %186

155:                                              ; preds = %150
  %156 = load i32, ptr %18, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %157
  %159 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #0
  %160 = trunc i64 %159 to i32
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %160)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #0
  %162 = load i32, ptr %18, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %163
  store ptr %164, ptr %19, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #0
  %165 = load ptr, ptr %19, align 8, !tbaa !17
  %166 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #0
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #0
  %168 = load ptr, ptr %19, align 8, !tbaa !17
  %169 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #0
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  br label %171

171:                                              ; preds = %179, %155
  %172 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #0
  br i1 %172, label %174, label %173

173:                                              ; preds = %171
  store i32 25, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br label %181

174:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #0
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #0
  store ptr %175, ptr %22, align 8, !tbaa !17
  %176 = load ptr, ptr %22, align 8, !tbaa !17
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %177)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #0
  br label %179

179:                                              ; preds = %174
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #0
  br label %171

181:                                              ; preds = %173
  %182 = call i32 @puts(ptr noundef @.str.5)
  br label %183

183:                                              ; preds = %181
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %18, align 4, !tbaa !5
  br label %150, !llvm.loop !19

186:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #0
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %3, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %3, align 4, !tbaa !5
  br label %23, !llvm.loop !20

190:                                              ; preds = %27
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #0
  %191 = load i32, ptr %1, align 4
  ret i32 %191
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

; Function Attrs: uwtable
declare hidden void @__cxx_global_array_dtor(ptr noundef) #7 section ".text.startup"

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

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

declare i32 @puts(ptr noundef) #3

attributes #0 = { nounwind }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { 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 #8 = { 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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!"branch_weights", i32 1, i32 1048575}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@__dso_handle = external hidden global i8
@_ZZ4mainE3cnt = external hidden local_unnamed_addr global [300001 x i32], align 16
@_ZZ4mainE3upp = external hidden global [300001 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3out = external hidden global [300001 x %"class.std::vector"], align 16
@_ZGVZ4mainE3out = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
.critedge:
  %0 = alloca i32, align 4
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %0, ptr noundef nonnull %1)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = shl nsw i64 %11, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @_ZZ4mainE3cnt, i64 4), i8 0, i64 %12, i1 false)
  %13 = load i32, ptr %0, align 4, !tbaa !5
  %.not42 = icmp slt i32 %13, 1
  br i1 %.not42, label %.preheader40, label %.lr.ph

.preheader40.loopexit:                            ; preds = %.lr.ph
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %.preheader40

.preheader40:                                     ; preds = %.preheader40.loopexit, %.critedge
  %14 = phi i32 [ %.pre, %.preheader40.loopexit ], [ %10, %.critedge ]
  %.not3544 = icmp slt i32 %14, 1
  br i1 %.not3544, label %._crit_edge.thread, label %.lr.ph46

._crit_edge.thread:                               ; preds = %.preheader40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %._crit_edge51

.lr.ph:                                           ; preds = %.critedge, %.lr.ph
  %.03343 = phi i32 [ %21, %.lr.ph ], [ 1, %.critedge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %21 = add nuw nsw i32 %.03343, 1
  %22 = load i32, ptr %0, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.03343, %22
  br i1 %.not.not, label %.lr.ph, label %.preheader40.loopexit, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  %23 = icmp sgt i32 %27, 0
  br i1 %23, label %.lr.ph50.preheader, label %._crit_edge51

.lr.ph50.preheader:                               ; preds = %._crit_edge
  %24 = zext nneg i32 %27 to i64
  br label %.lr.ph50

.lr.ph46:                                         ; preds = %.preheader40, %.lr.ph46
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph46 ], [ 1, %.preheader40 ]
  %25 = getelementptr inbounds i32, ptr @_ZZ4mainE3upp, i64 %indvars.iv
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %25)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %.not35.not = icmp slt i64 %indvars.iv, %28
  br i1 %.not35.not, label %.lr.ph46, label %._crit_edge, !llvm.loop !11

._crit_edge51:                                    ; preds = %43, %._crit_edge.thread, %._crit_edge
  %29 = load atomic i8, ptr @_ZGVZ4mainE3out acquire, align 8
  %30 = icmp eq i8 %29, 0
  br i1 %30, label %45, label %50, !prof !12

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %43
  %indvars.iv74 = phi i64 [ %24, %.lr.ph50.preheader ], [ %indvars.iv.next75, %43 ]
  %.03048 = phi i32 [ 0, %.lr.ph50.preheader ], [ %33, %43 ]
  %31 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %indvars.iv74
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = add nsw i32 %32, %.03048
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %43

35:                                               ; preds = %.lr.ph50
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %36 = add nsw i32 %33, -1
  %37 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %indvars.iv74
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sdiv i32 %36, %38
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %4, align 4, !tbaa !5
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  store i32 %42, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %43

43:                                               ; preds = %.lr.ph50, %35
  %indvars.iv.next75 = add nsw i64 %indvars.iv74, -1
  %44 = icmp sgt i64 %indvars.iv74, 1
  br i1 %44, label %.lr.ph50, label %._crit_edge51, !llvm.loop !13

45:                                               ; preds = %._crit_edge51
  %46 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ4mainE3out) #9
  %.not36 = icmp eq i32 %46, 0
  br i1 %.not36, label %50, label %.preheader39

.preheader39:                                     ; preds = %45, %.preheader39
  %.idx = phi i64 [ %.add, %.preheader39 ], [ 0, %45 ]
  %.ptr = getelementptr inbounds i8, ptr @_ZZ4mainE3out, i64 %.idx
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #9
  %.add = add nuw nsw i64 %.idx, 24
  %47 = icmp eq i64 %.add, 7200024
  br i1 %47, label %48, label %.preheader39

48:                                               ; preds = %.preheader39
  %49 = call i32 @__cxa_atexit(ptr nonnull @__cxx_global_array_dtor, ptr null, ptr nonnull @__dso_handle) #9
  call void @__cxa_guard_release(ptr nonnull @_ZGVZ4mainE3out) #9
  br label %50

50:                                               ; preds = %48, %45, %._crit_edge51
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph54, label %._crit_edge55

._crit_edge55:                                    ; preds = %.lr.ph54, %50
  %53 = phi i32 [ %51, %50 ], [ %57, %.lr.ph54 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %54 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %54, ptr %6, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.preheader, label %._crit_edge63

.lr.ph54:                                         ; preds = %50, %.lr.ph54
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %.lr.ph54 ], [ 0, %50 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %56 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv77
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %56) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next78, %58
  br i1 %59, label %.lr.ph54, label %._crit_edge55, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge55, %._crit_edge59
  %60 = phi i32 [ %80, %._crit_edge59 ], [ %53, %._crit_edge55 ]
  %61 = phi i32 [ %81, %._crit_edge59 ], [ %54, %._crit_edge55 ]
  %.02862 = phi i32 [ %.1.lcssa, %._crit_edge59 ], [ 0, %._crit_edge55 ]
  %62 = zext nneg i32 %61 to i64
  %63 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %63, align 4, !tbaa !5
  %.not3856 = icmp eq i32 %64, 0
  br i1 %.not3856, label %._crit_edge59, label %.lr.ph58

._crit_edge63:                                    ; preds = %._crit_edge59, %._crit_edge55
  %66 = phi i32 [ %53, %._crit_edge55 ], [ %80, %._crit_edge59 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %66)
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %.lr.ph69, label %._crit_edge70

.lr.ph58:                                         ; preds = %.preheader, %.lr.ph58
  %.157 = phi i32 [ %spec.store.select, %.lr.ph58 ], [ %.02862, %.preheader ]
  %70 = sext i32 %.157 to i64
  %71 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %70
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %72 = add nsw i32 %.157, 1
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = icmp eq i32 %72, %73
  %spec.store.select = select i1 %74, i32 0, i32 %72
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [300001 x i32], ptr @_ZZ4mainE3cnt, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %77, align 4, !tbaa !5
  %.not38 = icmp eq i32 %78, 0
  br i1 %.not38, label %._crit_edge59, label %.lr.ph58, !llvm.loop !15

._crit_edge59:                                    ; preds = %.lr.ph58, %.preheader
  %80 = phi i32 [ %60, %.preheader ], [ %73, %.lr.ph58 ]
  %.1.lcssa = phi i32 [ %.02862, %.preheader ], [ %spec.store.select, %.lr.ph58 ]
  %.lcssa = phi i32 [ %61, %.preheader ], [ %75, %.lr.ph58 ]
  %81 = add nsw i32 %.lcssa, -1
  store i32 %81, ptr %6, align 4, !tbaa !5
  %82 = icmp sgt i32 %.lcssa, 1
  br i1 %82, label %.preheader, label %._crit_edge63, !llvm.loop !16

._crit_edge70:                                    ; preds = %._crit_edge66, %._crit_edge63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #9
  ret i32 0

.lr.ph69:                                         ; preds = %._crit_edge63, %._crit_edge66
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %._crit_edge66 ], [ 0, %._crit_edge63 ]
  %83 = getelementptr inbounds [300001 x %"class.std::vector"], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv80
  %84 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #9
  %85 = trunc i64 %84 to i32
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %85)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %87 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #9
  store ptr %87, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %88 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #9
  store ptr %88, ptr %8, align 8
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %89, label %.lr.ph65, label %._crit_edge66

._crit_edge66:                                    ; preds = %.lr.ph65, %.lr.ph69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %90 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = icmp slt i64 %indvars.iv.next81, %92
  br i1 %93, label %.lr.ph69, label %._crit_edge70, !llvm.loop !17

.lr.ph65:                                         ; preds = %.lr.ph69, %.lr.ph65
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %98, label %.lr.ph65, label %._crit_edge66
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

; Function Attrs: uwtable
declare hidden void @__cxx_global_array_dtor(ptr noundef) #7 section ".text.startup"

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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

attributes #0 = { nofree nounwind }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { 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 = !{!"int", !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 = !{!"branch_weights", i32 1, i32 1048575}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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