; LLVM IR from DionysiosB/CodeForces :: 0800-0899 (822C-HackerPackYourBags)

; 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"

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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10vacCompare3vacS_(ptr noundef byval(%struct.vac) align 8, ptr noundef byval(%struct.vac) align 8) #0

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

24:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorISt6vectorI3vacSaIS1_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %25 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %7, ptr noundef %8)
          to label %26 unwind label %36

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

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

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

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

36:                                               ; preds = %24
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  br label %188

40:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %41 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %10, ptr noundef %11, ptr noundef %12)
          to label %42 unwind label %58

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %43 = load i64, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.vac, ptr %13, i32 0, i32 0
  store i64 %43, ptr %44, align 8, !tbaa !9
  %45 = load i64, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.vac, ptr %13, i32 0, i32 1
  store i64 %45, ptr %46, align 8, !tbaa !11
  %47 = load i64, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.vac, ptr %13, i32 0, i32 2
  store i64 %47, ptr %48, align 8, !tbaa !12
  %49 = load i64, ptr %11, align 8, !tbaa !5
  %50 = load i64, ptr %10, align 8, !tbaa !5
  %51 = sub nsw i64 %49, %50
  %52 = add nsw i64 %51, 1
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #6
  invoke void @_ZNSt6vectorI3vacSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %54 unwind label %62

54:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %55

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

58:                                               ; preds = %40
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  br label %66

62:                                               ; preds = %42
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %66

66:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %188

67:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %86, %67
  %69 = load i64, ptr %14, align 8, !tbaa !5
  %70 = icmp slt i64 %69, 200010
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %93

72:                                               ; preds = %68
  %73 = load i64, ptr %14, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %73) #6
  %75 = call ptr @_ZNSt6vectorI3vacSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #6
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  %77 = load i64, ptr %14, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %77) #6
  %79 = call ptr @_ZNSt6vectorI3vacSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #6
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3vacSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %82, ptr %84, ptr noundef @_Z10vacCompare3vacS_)
          to label %85 unwind label %89

85:                                               ; preds = %72
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %14, align 8, !tbaa !5
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %14, align 8, !tbaa !5
  br label %68, !llvm.loop !15

89:                                               ; preds = %72
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %5, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %188

93:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 2000000010, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 1, ptr %18, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %169, %93
  %95 = load i64, ptr %18, align 8, !tbaa !5
  %96 = load i64, ptr %8, align 8, !tbaa !5
  %97 = icmp slt i64 %95, %96
  br i1 %97, label %98, label %101

98:                                               ; preds = %94
  %99 = load i64, ptr %18, align 8, !tbaa !5
  %100 = icmp slt i64 %99, 200010
  br label %101

101:                                              ; preds = %98, %94
  %102 = phi i1 [ false, %94 ], [ %100, %98 ]
  br i1 %102, label %104, label %103

103:                                              ; preds = %101
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %172

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %105 = load i64, ptr %8, align 8, !tbaa !5
  %106 = load i64, ptr %18, align 8, !tbaa !5
  %107 = sub nsw i64 %105, %106
  store i64 %107, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %165, %104
  %109 = load i64, ptr %21, align 8, !tbaa !5
  %110 = load i64, ptr %18, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %110) #6
  %112 = call noundef i64 @_ZNKSt6vectorI3vacSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #6
  %113 = icmp ult i64 %109, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %108
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %168

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

116:                                              ; preds = %161, %115
  %117 = load i64, ptr %22, align 8, !tbaa !5
  %118 = load i64, ptr %20, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %118) #6
  %120 = call noundef i64 @_ZNKSt6vectorI3vacSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #6
  %121 = icmp ult i64 %117, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %116
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %164

123:                                              ; preds = %116
  %124 = load i64, ptr %18, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %124) #6
  %126 = load i64, ptr %21, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %126) #6
  %128 = getelementptr inbounds %struct.vac, ptr %127, i32 0, i32 1
  %129 = load i64, ptr %128, align 8, !tbaa !11
  %130 = load i64, ptr %20, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %130) #6
  %132 = load i64, ptr %22, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %132) #6
  %134 = getelementptr inbounds %struct.vac, ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = icmp sge i64 %129, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %123
  br label %161

138:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %139 = load i64, ptr %18, align 8, !tbaa !5
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %139) #6
  %141 = load i64, ptr %21, align 8, !tbaa !5
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %141) #6
  %143 = getelementptr inbounds %struct.vac, ptr %142, i32 0, i32 2
  %144 = load i64, ptr %143, align 8, !tbaa !12
  %145 = load i64, ptr %20, align 8, !tbaa !5
  %146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %145) #6
  %147 = load i64, ptr %22, align 8, !tbaa !5
  %148 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %147) #6
  %149 = getelementptr inbounds %struct.vac, ptr %148, i32 0, i32 2
  %150 = load i64, ptr %149, align 8, !tbaa !12
  %151 = add nsw i64 %144, %150
  store i64 %151, ptr %23, align 8, !tbaa !5
  %152 = load i64, ptr %17, align 8, !tbaa !5
  %153 = load i64, ptr %23, align 8, !tbaa !5
  %154 = icmp slt i64 %152, %153
  br i1 %154, label %155, label %157

155:                                              ; preds = %138
  %156 = load i64, ptr %17, align 8, !tbaa !5
  br label %159

157:                                              ; preds = %138
  %158 = load i64, ptr %23, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %157, %155
  %160 = phi i64 [ %156, %155 ], [ %158, %157 ]
  store i64 %160, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %161

161:                                              ; preds = %159, %137
  %162 = load i64, ptr %22, align 8, !tbaa !5
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %22, align 8, !tbaa !5
  br label %116, !llvm.loop !16

164:                                              ; preds = %122
  br label %165

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

168:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %18, align 8, !tbaa !5
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr %18, align 8, !tbaa !5
  br label %94, !llvm.loop !18

172:                                              ; preds = %103
  %173 = load i64, ptr %17, align 8, !tbaa !5
  %174 = sitofp i64 %173 to double
  %175 = fcmp ogt double %174, 0x41DDCD6501400000
  br i1 %175, label %176, label %177

176:                                              ; preds = %172
  br label %179

177:                                              ; preds = %172
  %178 = load i64, ptr %17, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %177, %176
  %180 = phi i64 [ -1, %176 ], [ %178, %177 ]
  %181 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %180)
          to label %182 unwind label %184

182:                                              ; preds = %179
  store i32 0, ptr %1, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %183 = load i32, ptr %1, align 4
  ret i32 %183

184:                                              ; preds = %179
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %5, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %188

188:                                              ; preds = %184, %89, %66, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %189

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

190:                                              ; preds = %189
  %191 = load ptr, ptr %5, align 8
  %192 = load i32, ptr %6, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS3vac", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!10, !6, i64 8}
!12 = !{!10, !6, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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"

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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10vacCompare3vacS_(ptr noundef byval(%struct.vac) align 8, ptr noundef byval(%struct.vac) align 8) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %struct.vac, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #7
  call void @_ZNSaISt6vectorI3vacSaIS0_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  invoke void @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 200010, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %9 unwind label %15

9:                                                ; preds = %0
  call void @_ZNSt15__new_allocatorISt6vectorI3vacSaIS1_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %11 = load i64, ptr %3, align 8, !tbaa !5
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph, label %.preheader46.preheader

.preheader46.preheader:                           ; preds = %24, %9
  br label %.preheader46

.lr.ph:                                           ; preds = %9
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  %14 = getelementptr inbounds i8, ptr %8, i64 16
  br label %17

15:                                               ; preds = %0
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorI3vacSaIS1_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  br label %83

17:                                               ; preds = %.lr.ph, %24
  %.04047 = phi i64 [ 0, %.lr.ph ], [ %25, %24 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %19 = load i64, ptr %5, align 8, !tbaa !5
  store i64 %19, ptr %8, align 8, !tbaa !9
  %20 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %20, ptr %13, align 8, !tbaa !11
  %21 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %21, ptr %14, align 8, !tbaa !12
  %reass.sub = sub i64 %20, %19
  %22 = add i64 %reass.sub, 1
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %22) #7
  invoke void @_ZNSt6vectorI3vacSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %24 unwind label %28

24:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %25 = add nuw nsw i64 %.04047, 1
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = icmp slt i64 %25, %26
  br i1 %27, label %17, label %.preheader46.preheader, !llvm.loop !13

28:                                               ; preds = %17
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %82

.preheader45:                                     ; preds = %36
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %31 = icmp sgt i64 %30, 1
  br i1 %31, label %.lr.ph58, label %._crit_edge59.thread

.preheader46:                                     ; preds = %.preheader46.preheader, %36
  %.04148 = phi i64 [ %37, %36 ], [ 0, %.preheader46.preheader ]
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04148) #7
  %33 = call ptr @_ZNSt6vectorI3vacSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04148) #7
  %35 = call ptr @_ZNSt6vectorI3vacSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3vacSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %33, ptr %35, ptr noundef nonnull @_Z10vacCompare3vacS_)
          to label %36 unwind label %38

36:                                               ; preds = %.preheader46
  %37 = add nuw nsw i64 %.04148, 1
  %exitcond.not = icmp eq i64 %37, 200010
  br i1 %exitcond.not, label %.preheader45, label %.preheader46, !llvm.loop !15

38:                                               ; preds = %.preheader46
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %82

._crit_edge59:                                    ; preds = %._crit_edge54
  %40 = icmp sgt i64 %.137.lcssa.fr, 2000000005
  br i1 %40, label %._crit_edge59.thread, label %41

._crit_edge59.thread:                             ; preds = %.preheader45, %._crit_edge59
  br label %41

41:                                               ; preds = %._crit_edge59, %._crit_edge59.thread
  %42 = phi i64 [ -1, %._crit_edge59.thread ], [ %.137.lcssa.fr, %._crit_edge59 ]
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %42)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  ret i32 0

.lr.ph58:                                         ; preds = %.preheader45, %._crit_edge54
  %44 = phi i64 [ %51, %._crit_edge54 ], [ %30, %.preheader45 ]
  %.03557 = phi i64 [ %50, %._crit_edge54 ], [ 1, %.preheader45 ]
  %.03656 = phi i64 [ %.137.lcssa.fr, %._crit_edge54 ], [ 2000000010, %.preheader45 ]
  %45 = sub nsw i64 %44, %.03557
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03557) #7
  %47 = call noundef i64 @_ZNKSt6vectorI3vacSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %.not61 = icmp eq i64 %47, 0
  br i1 %.not61, label %._crit_edge54, label %.preheader

.preheader:                                       ; preds = %.lr.ph58, %._crit_edge
  %.03353 = phi i64 [ %55, %._crit_edge ], [ 0, %.lr.ph58 ]
  %.13752 = phi i64 [ %.2.lcssa, %._crit_edge ], [ %.03656, %.lr.ph58 ]
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #7
  %49 = call noundef i64 @_ZNKSt6vectorI3vacSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #7
  %.not62 = icmp eq i64 %49, 0
  br i1 %.not62, label %._crit_edge, label %.lr.ph51

._crit_edge54:                                    ; preds = %._crit_edge, %.lr.ph58
  %.137.lcssa = phi i64 [ %.03656, %.lr.ph58 ], [ %.2.lcssa, %._crit_edge ]
  %.137.lcssa.fr = freeze i64 %.137.lcssa
  %50 = add nuw nsw i64 %.03557, 1
  %51 = load i64, ptr %4, align 8, !tbaa !5
  %52 = icmp slt i64 %50, %51
  %53 = icmp ult i64 %.03557, 200009
  %54 = and i1 %53, %52
  br i1 %54, label %.lr.ph58, label %._crit_edge59, !llvm.loop !16

._crit_edge:                                      ; preds = %77, %.preheader
  %.2.lcssa = phi i64 [ %.13752, %.preheader ], [ %.3, %77 ]
  %55 = add nuw nsw i64 %.03353, 1
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03557) #7
  %57 = call noundef i64 @_ZNKSt6vectorI3vacSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %.preheader, label %._crit_edge54, !llvm.loop !17

.lr.ph51:                                         ; preds = %.preheader, %77
  %.050 = phi i64 [ %78, %77 ], [ 0, %.preheader ]
  %.249 = phi i64 [ %.3, %77 ], [ %.13752, %.preheader ]
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03557) #7
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %.03353) #7
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #7
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %.050) #7
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %.not = icmp slt i64 %62, %65
  br i1 %.not, label %66, label %77

66:                                               ; preds = %.lr.ph51
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03557) #7
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %.03353) #7
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = load i64, ptr %69, align 8, !tbaa !12
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #7
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3vacSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %.050) #7
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  %74 = load i64, ptr %73, align 8, !tbaa !12
  %75 = add nsw i64 %74, %70
  %76 = call i64 @llvm.smin.i64(i64 %.249, i64 %75)
  br label %77

77:                                               ; preds = %.lr.ph51, %66
  %.3 = phi i64 [ %.249, %.lr.ph51 ], [ %76, %66 ]
  %78 = add nuw nsw i64 %.050, 1
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #7
  %80 = call noundef i64 @_ZNKSt6vectorI3vacSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #7
  %81 = icmp ult i64 %78, %80
  br i1 %81, label %.lr.ph51, label %._crit_edge, !llvm.loop !18

82:                                               ; preds = %38, %28
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt6vectorIS_I3vacSaIS0_EESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br label %83

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #6

attributes #0 = { 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 #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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS3vac", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!10, !6, i64 8}
!12 = !{!10, !6, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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