; LLVM IR from tangjz/acm-icpc :: codeforces/1427D.ll (Z7performiPi)

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

@_ZZ7performiPiE3pos = external hidden global [300001 x i32], align 16
@_ZZ7performiPiE3nxt = external hidden global [300001 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7performiPi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1, ptr noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i1, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %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 i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %39, %3
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %42

30:                                               ; preds = %25
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = load ptr, ptr %6, align 8, !tbaa !9
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i32, ptr %32, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %37
  store i32 %31, ptr %38, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %30
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %7, align 4, !tbaa !5
  br label %25, !llvm.loop !11

42:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %187, %42
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 5, ptr %9, align 4
  br label %190

48:                                               ; preds = %43
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp sgt i32 %53, %57
  br i1 %58, label %59, label %186

59:                                               ; preds = %48
  store i1 false, ptr %10, align 1
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  store i32 %63, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sub nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  store i32 %68, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %93, %59
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = add nsw i32 %70, %71
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %91

75:                                               ; preds = %69
  %76 = load ptr, ptr %6, align 8, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = load i32, ptr %13, align 4, !tbaa !5
  %79 = add nsw i32 %77, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %76, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = load ptr, ptr %6, align 8, !tbaa !9
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %83, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = load i32, ptr %13, align 4, !tbaa !5
  %89 = add nsw i32 %87, %88
  %90 = icmp eq i32 %82, %89
  br label %91

91:                                               ; preds = %75, %69
  %92 = phi i1 [ false, %69 ], [ %90, %75 ]
  br i1 %92, label %93, label %96

93:                                               ; preds = %91
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %13, align 4, !tbaa !5
  br label %69, !llvm.loop !13

96:                                               ; preds = %91
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %99, label %105

99:                                               ; preds = %96
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %100 unwind label %101

100:                                              ; preds = %99
  br label %105

101:                                              ; preds = %105, %99
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %14, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %15, align 4
  br label %183

105:                                              ; preds = %100, %96
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %106 unwind label %101

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = sub nsw i32 %107, %108
  %110 = add nsw i32 %109, 1
  %111 = load i32, ptr %13, align 4, !tbaa !5
  %112 = sub nsw i32 %110, %111
  store i32 %112, ptr %16, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %113 unwind label %124

113:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 1
  %117 = icmp slt i32 %114, %116
  br i1 %117, label %118, label %132

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sub nsw i32 %119, 1
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = sub nsw i32 %120, %121
  store i32 %122, ptr %17, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %123 unwind label %128

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

124:                                              ; preds = %106
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %14, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %183

128:                                              ; preds = %118
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %14, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %183

132:                                              ; preds = %123, %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store ptr %0, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %133 = load ptr, ptr %19, align 8, !tbaa !9
  %134 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #6
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %136 = load ptr, ptr %19, align 8, !tbaa !9
  %137 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  br label %139

139:                                              ; preds = %175, %132
  %140 = 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) #6
  br i1 %140, label %142, label %141

141:                                              ; preds = %139
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %177

142:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  %144 = load i32, ptr %143, align 4, !tbaa !5
  store i32 %144, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = load i32, ptr %18, align 4, !tbaa !5
  %147 = sub nsw i32 %145, %146
  %148 = load i32, ptr %22, align 4, !tbaa !5
  %149 = sub nsw i32 %147, %148
  store i32 %149, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %168, %142
  %151 = load i32, ptr %24, align 4, !tbaa !5
  %152 = load i32, ptr %22, align 4, !tbaa !5
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 12, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %171

155:                                              ; preds = %150
  %156 = load ptr, ptr %6, align 8, !tbaa !9
  %157 = load i32, ptr %18, align 4, !tbaa !5
  %158 = load i32, ptr %24, align 4, !tbaa !5
  %159 = add nsw i32 %157, %158
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %156, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr %23, align 4, !tbaa !5
  %164 = load i32, ptr %24, align 4, !tbaa !5
  %165 = add nsw i32 %163, %164
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %166
  store i32 %162, ptr %167, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %155
  %169 = load i32, ptr %24, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %24, align 4, !tbaa !5
  br label %150, !llvm.loop !14

171:                                              ; preds = %154
  %172 = load i32, ptr %22, align 4, !tbaa !5
  %173 = load i32, ptr %18, align 4, !tbaa !5
  %174 = add nsw i32 %173, %172
  store i32 %174, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %175

175:                                              ; preds = %171
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %139

177:                                              ; preds = %141
  %178 = load ptr, ptr %6, align 8, !tbaa !9
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = mul i64 %180, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %178, ptr align 16 @_ZZ7performiPiE3nxt, i64 %181, i1 false)
  store i1 true, ptr %10, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %182 = load i1, ptr %10, align 1
  br i1 %182, label %185, label %184

183:                                              ; preds = %128, %124, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %194

184:                                              ; preds = %177
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %185

185:                                              ; preds = %184, %177
  br label %190

186:                                              ; preds = %48
  br label %187

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

190:                                              ; preds = %185, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %191 = load i32, ptr %9, align 4
  switch i32 %191, label %199 [
    i32 5, label %192
    i32 1, label %193
  ]

192:                                              ; preds = %190
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %193

193:                                              ; preds = %192, %190
  ret void

194:                                              ; preds = %183
  %195 = load ptr, ptr %14, align 8
  %196 = load i32, ptr %15, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198

199:                                              ; preds = %190
  unreachable
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #3

; 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)) #2 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)) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<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 }

@_ZZ7performiPiE3pos = external hidden local_unnamed_addr global [300001 x i32], align 16
@_ZZ7performiPiE3nxt = external hidden local_unnamed_addr global [300001 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7performiPi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = ptrtoint ptr %2 to i64
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = icmp sgt i32 %1, 0
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %1 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %12 = icmp ult i32 %1, 4
  br i1 %12, label %.preheader.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.preheader.unr-lcssa:                             ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader.unr-lcssa ]
  %13 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.epil
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %15
  %17 = trunc nuw nsw i64 %indvars.iv.epil to i32
  store i32 %17, ptr %16, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.lr.ph.epil, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph.epil, %.preheader.unr-lcssa
  %.not = icmp eq i32 %1, 1
  br i1 %.not, label %._crit_edge, label %.lr.ph63.preheader

.lr.ph63.preheader:                               ; preds = %.preheader
  %wide.trip.count84 = zext nneg i32 %1 to i64
  %.pre = load i32, ptr @_ZZ7performiPiE3pos, align 16, !tbaa !5
  br label %.lr.ph63

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %18 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %20
  %22 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %22, ptr %21, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %23 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %25
  %27 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %27, ptr %26, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %28 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next.1
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %30
  %32 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  store i32 %32, ptr %31, align 4, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %33 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next.2
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %35
  %37 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  store i32 %37, ptr %36, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !11

38:                                               ; preds = %.lr.ph63
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count84
  br i1 %exitcond85.not, label %._crit_edge, label %.lr.ph63, !llvm.loop !13

.lr.ph63:                                         ; preds = %.lr.ph63.preheader, %38
  %39 = phi i32 [ %.pre, %.lr.ph63.preheader ], [ %41, %38 ]
  %indvars.iv81 = phi i64 [ 1, %.lr.ph63.preheader ], [ %indvars.iv.next82, %38 ]
  %40 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %indvars.iv81
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = icmp sgt i32 %39, %41
  br i1 %42, label %43, label %38

43:                                               ; preds = %.lr.ph63
  %44 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %indvars.iv81
  %45 = add nsw i64 %indvars.iv81, -1
  %46 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3pos, i64 0, i64 %45
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %47 = load i32, ptr %44, align 4, !tbaa !5
  store i32 %47, ptr %5, align 4, !tbaa !5
  %48 = load i32, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %49 = add nsw i32 %47, 1
  %50 = icmp slt i32 %49, %1
  br i1 %50, label %.lr.ph66, label %.critedge

.lr.ph66:                                         ; preds = %43
  %51 = sext i32 %47 to i64
  %52 = getelementptr inbounds i32, ptr %2, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sub i32 %1, %47
  %wide.trip.count89 = zext i32 %54 to i64
  br label %55

55:                                               ; preds = %.lr.ph66, %63
  %indvars.iv86 = phi i64 [ 1, %.lr.ph66 ], [ %indvars.iv.next87, %63 ]
  %56 = phi i32 [ %49, %.lr.ph66 ], [ %65, %63 ]
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %2, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = trunc i64 %indvars.iv86 to i32
  %61 = add i32 %53, %60
  %62 = icmp eq i32 %59, %61
  br i1 %62, label %63, label %.critedge.loopexit.split.loop.exit99

63:                                               ; preds = %55
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %64 = trunc i64 %indvars.iv.next87 to i32
  %65 = add i32 %47, %64
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count89
  br i1 %exitcond90.not, label %.critedge, label %55, !llvm.loop !14

.critedge.loopexit.split.loop.exit99:             ; preds = %55
  %66 = trunc nuw nsw i64 %indvars.iv86 to i32
  br label %.critedge

.critedge:                                        ; preds = %63, %.critedge.loopexit.split.loop.exit99, %43
  %storemerge.lcssa = phi i32 [ 1, %43 ], [ %66, %.critedge.loopexit.split.loop.exit99 ], [ %54, %63 ]
  store i32 %storemerge.lcssa, ptr %6, align 4, !tbaa !5
  %67 = icmp sgt i32 %47, 0
  br i1 %67, label %68, label %71

68:                                               ; preds = %.critedge
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %71 unwind label %69

69:                                               ; preds = %71, %68
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %128

71:                                               ; preds = %68, %.critedge
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %72 unwind label %69

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %.neg57 = add i32 %48, 1
  %75 = add i32 %73, %74
  %76 = sub i32 %.neg57, %75
  store i32 %76, ptr %7, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %77 unwind label %83

77:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %78 = add nsw i32 %1, -1
  %79 = icmp slt i32 %48, %78
  br i1 %79, label %80, label %87

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %81 = sub nsw i32 %78, %48
  store i32 %81, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %82 unwind label %85

82:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %87

83:                                               ; preds = %72
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %128

85:                                               ; preds = %80
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %128

87:                                               ; preds = %82, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %88 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %88, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %89 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %89, ptr %10, align 8
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %90, label %.lr.ph75, label %._crit_edge76

.lr.ph75:                                         ; preds = %87, %._crit_edge72
  %.04473 = phi i32 [ %93, %._crit_edge72 ], [ 0, %87 ]
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = add i32 %92, %.04473
  %94 = icmp sgt i32 %92, 0
  br i1 %94, label %.lr.ph71.preheader, label %._crit_edge72

.lr.ph71.preheader:                               ; preds = %.lr.ph75
  %95 = sub i32 %1, %93
  %96 = sext i32 %.04473 to i64
  %97 = sext i32 %95 to i64
  %wide.trip.count94 = zext nneg i32 %92 to i64
  %invariant.gep = getelementptr i32, ptr %2, i64 %96
  %min.iters.check = icmp ult i32 %92, 8
  br i1 %min.iters.check, label %.lr.ph71.preheader104, label %vector.memcheck

.lr.ph71.preheader104:                            ; preds = %middle.block, %vector.memcheck, %.lr.ph71.preheader
  %indvars.iv91.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph71.preheader ], [ %n.vec, %middle.block ]
  %xtraiter107 = and i64 %wide.trip.count94, 3
  %lcmp.mod108.not = icmp eq i64 %xtraiter107, 0
  br i1 %lcmp.mod108.not, label %.lr.ph71.prol.loopexit, label %.lr.ph71.prol

.lr.ph71.prol:                                    ; preds = %.lr.ph71.preheader104, %.lr.ph71.prol
  %indvars.iv91.prol = phi i64 [ %indvars.iv.next92.prol, %.lr.ph71.prol ], [ %indvars.iv91.ph, %.lr.ph71.preheader104 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph71.prol ], [ 0, %.lr.ph71.preheader104 ]
  %gep.prol = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv91.prol
  %98 = load i32, ptr %gep.prol, align 4, !tbaa !5
  %99 = add nsw i64 %indvars.iv91.prol, %97
  %100 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %99
  store i32 %98, ptr %100, align 4, !tbaa !5
  %indvars.iv.next92.prol = add nuw nsw i64 %indvars.iv91.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter107
  br i1 %prol.iter.cmp.not, label %.lr.ph71.prol.loopexit, label %.lr.ph71.prol, !llvm.loop !15

.lr.ph71.prol.loopexit:                           ; preds = %.lr.ph71.prol, %.lr.ph71.preheader104
  %indvars.iv91.unr = phi i64 [ %indvars.iv91.ph, %.lr.ph71.preheader104 ], [ %indvars.iv.next92.prol, %.lr.ph71.prol ]
  %101 = sub nsw i64 %indvars.iv91.ph, %wide.trip.count94
  %102 = icmp ugt i64 %101, -4
  br i1 %102, label %._crit_edge72, label %.lr.ph71

vector.memcheck:                                  ; preds = %.lr.ph71.preheader
  %103 = shl nsw i64 %97, 2
  %104 = shl nsw i64 %96, 2
  %105 = add i64 %103, ptrtoint (ptr @_ZZ7performiPiE3nxt to i64)
  %106 = add i64 %104, %4
  %107 = sub i64 %105, %106
  %diff.check = icmp ult i64 %107, 32
  br i1 %diff.check, label %.lr.ph71.preheader104, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count94, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %108 = getelementptr i32, ptr %invariant.gep, i64 %index
  %109 = getelementptr i8, ptr %108, i64 16
  %wide.load = load <4 x i32>, ptr %108, align 4, !tbaa !5
  %wide.load103 = load <4 x i32>, ptr %109, align 4, !tbaa !5
  %110 = add nsw i64 %index, %97
  %111 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %110
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  store <4 x i32> %wide.load, ptr %111, align 4, !tbaa !5
  store <4 x i32> %wide.load103, ptr %112, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %113 = icmp eq i64 %index.next, %n.vec
  br i1 %113, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count94
  br i1 %cmp.n, label %._crit_edge72, label %.lr.ph71.preheader104

._crit_edge72:                                    ; preds = %.lr.ph71.prol.loopexit, %.lr.ph71, %middle.block, %.lr.ph75
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %115, label %.lr.ph75, label %._crit_edge76

.lr.ph71:                                         ; preds = %.lr.ph71.prol.loopexit, %.lr.ph71
  %indvars.iv91 = phi i64 [ %indvars.iv.next92.3, %.lr.ph71 ], [ %indvars.iv91.unr, %.lr.ph71.prol.loopexit ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv91
  %116 = load i32, ptr %gep, align 4, !tbaa !5
  %117 = add nsw i64 %indvars.iv91, %97
  %118 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %117
  store i32 %116, ptr %118, align 4, !tbaa !5
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %gep.1 = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.next92
  %119 = load i32, ptr %gep.1, align 4, !tbaa !5
  %120 = add nsw i64 %indvars.iv.next92, %97
  %121 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %120
  store i32 %119, ptr %121, align 4, !tbaa !5
  %indvars.iv.next92.1 = add nuw nsw i64 %indvars.iv91, 2
  %gep.2 = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.next92.1
  %122 = load i32, ptr %gep.2, align 4, !tbaa !5
  %123 = add nsw i64 %indvars.iv.next92.1, %97
  %124 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %123
  store i32 %122, ptr %124, align 4, !tbaa !5
  %indvars.iv.next92.2 = add nuw nsw i64 %indvars.iv91, 3
  %gep.3 = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.next92.2
  %125 = load i32, ptr %gep.3, align 4, !tbaa !5
  %126 = add nsw i64 %indvars.iv.next92.2, %97
  %127 = getelementptr inbounds [300001 x i32], ptr @_ZZ7performiPiE3nxt, i64 0, i64 %126
  store i32 %125, ptr %127, align 4, !tbaa !5
  %indvars.iv.next92.3 = add nuw nsw i64 %indvars.iv91, 4
  %exitcond95.not.3 = icmp eq i64 %indvars.iv.next92.3, %wide.trip.count94
  br i1 %exitcond95.not.3, label %._crit_edge72, label %.lr.ph71, !llvm.loop !19

128:                                              ; preds = %85, %83, %69
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn

._crit_edge76:                                    ; preds = %._crit_edge72, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %129 = shl nuw nsw i64 %wide.trip.count84, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr nonnull align 16 @_ZZ7performiPiE3nxt, i64 %129, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %130

._crit_edge:                                      ; preds = %38, %3, %.preheader
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %130

130:                                              ; preds = %._crit_edge76, %._crit_edge
  ret void
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #3

; 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 #2 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 #2 align 2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !12, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !12, !17}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass