; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/CNT_LUCK/A.ll (Z3getSt6vectorIiSaIiEEb)

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

@dp = external dso_local global [65 x [48 x [2 x i64]]], align 16
@lucky = external dso_local global %"class.std::vector", align 8

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_Z3getSt6vectorIiSaIiEEb(ptr noundef %0, i1 noundef zeroext %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %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 i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %24 = zext i1 %1 to i8
  store i8 %24, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %25 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %27

27:                                               ; preds = %45, %2
  %28 = load i32, ptr %7, align 4, !tbaa !11
  %29 = icmp slt i32 %28, 4
  br i1 %29, label %30, label %37

30:                                               ; preds = %27
  %31 = load i32, ptr %7, align 4, !tbaa !11
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef %32) #3
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = load i32, ptr %5, align 4, !tbaa !11
  %36 = icmp sle i32 %34, %35
  br label %37

37:                                               ; preds = %30, %27
  %38 = phi i1 [ false, %27 ], [ %36, %30 ]
  br i1 %38, label %40, label %39

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %48

40:                                               ; preds = %37
  %41 = load i32, ptr %7, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef %42) #3
  %44 = load i32, ptr %43, align 4, !tbaa !11
  store i32 %44, ptr %6, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %40
  %46 = load i32, ptr %7, align 4, !tbaa !11
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !11
  br label %27, !llvm.loop !13

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %49

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

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

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %55

55:                                               ; preds = %75, %54
  %56 = load i32, ptr %10, align 4, !tbaa !11
  %57 = load i32, ptr %6, align 4, !tbaa !11
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %78

60:                                               ; preds = %55
  %61 = load i32, ptr %8, align 4, !tbaa !11
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %62
  %64 = load i32, ptr %10, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [48 x [2 x i64]], ptr %63, i64 0, i64 %65
  %67 = getelementptr inbounds [2 x i64], ptr %66, i64 0, i64 1
  store i64 0, ptr %67, align 8, !tbaa !15
  %68 = load i32, ptr %8, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %69
  %71 = load i32, ptr %10, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [48 x [2 x i64]], ptr %70, i64 0, i64 %72
  %74 = getelementptr inbounds [2 x i64], ptr %73, i64 0, i64 0
  store i64 0, ptr %74, align 16, !tbaa !15
  br label %75

75:                                               ; preds = %60
  %76 = load i32, ptr %10, align 4, !tbaa !11
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %10, align 4, !tbaa !11
  br label %55, !llvm.loop !17

78:                                               ; preds = %59
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %8, align 4, !tbaa !11
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %8, align 4, !tbaa !11
  br label %49, !llvm.loop !18

82:                                               ; preds = %53
  store i64 1, ptr getelementptr inbounds ([2 x i64], ptr @dp, i64 0, i64 1), align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %83

83:                                               ; preds = %182, %82
  %84 = load i32, ptr %11, align 4, !tbaa !11
  %85 = load i32, ptr %5, align 4, !tbaa !11
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %185

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %178, %88
  %90 = load i32, ptr %12, align 4, !tbaa !11
  %91 = load i32, ptr %6, align 4, !tbaa !11
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %181

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %174, %94
  %96 = load i32, ptr %13, align 4, !tbaa !11
  %97 = icmp slt i32 %96, 2
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %177

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %100 = load i32, ptr %11, align 4, !tbaa !11
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %101
  %103 = load i32, ptr %12, align 4, !tbaa !11
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [48 x [2 x i64]], ptr %102, i64 0, i64 %104
  %106 = load i32, ptr %13, align 4, !tbaa !11
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [2 x i64], ptr %105, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !15
  store i64 %109, ptr %14, align 8, !tbaa !15
  %110 = load i64, ptr %14, align 8, !tbaa !15
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %99
  store i32 19, ptr %9, align 4
  br label %171

113:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %114 = load i32, ptr %13, align 4, !tbaa !11
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %121

116:                                              ; preds = %113
  %117 = load i32, ptr %11, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %118) #3
  %120 = load i32, ptr %119, align 4, !tbaa !11
  br label %122

121:                                              ; preds = %113
  br label %122

122:                                              ; preds = %121, %116
  %123 = phi i32 [ %120, %116 ], [ 1, %121 ]
  store i32 %123, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %124

124:                                              ; preds = %166, %122
  %125 = load i32, ptr %16, align 4, !tbaa !11
  %126 = load i32, ptr %15, align 4, !tbaa !11
  %127 = icmp sle i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 20, ptr %9, align 4
  br label %169

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %130 = load i32, ptr %12, align 4, !tbaa !11
  %131 = load i32, ptr %16, align 4, !tbaa !11
  %132 = add nsw i32 %130, %131
  store i32 %132, ptr %17, align 4, !tbaa !11
  %133 = load i32, ptr %17, align 4, !tbaa !11
  %134 = load i32, ptr %6, align 4, !tbaa !11
  %135 = icmp sgt i32 %133, %134
  br i1 %135, label %136, label %137

136:                                              ; preds = %129
  store i32 20, ptr %9, align 4
  br label %163

137:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %138 = load i32, ptr %13, align 4, !tbaa !11
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %147

140:                                              ; preds = %137
  %141 = load i32, ptr %16, align 4, !tbaa !11
  %142 = load i32, ptr %11, align 4, !tbaa !11
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %143) #3
  %145 = load i32, ptr %144, align 4, !tbaa !11
  %146 = icmp eq i32 %141, %145
  br label %147

147:                                              ; preds = %140, %137
  %148 = phi i1 [ false, %137 ], [ %146, %140 ]
  %149 = zext i1 %148 to i32
  store i32 %149, ptr %18, align 4, !tbaa !11
  %150 = load i64, ptr %14, align 8, !tbaa !15
  %151 = load i32, ptr %11, align 4, !tbaa !11
  %152 = add nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %153
  %155 = load i32, ptr %17, align 4, !tbaa !11
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [48 x [2 x i64]], ptr %154, i64 0, i64 %156
  %158 = load i32, ptr %18, align 4, !tbaa !11
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [2 x i64], ptr %157, i64 0, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !15
  %162 = add i64 %161, %150
  store i64 %162, ptr %160, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  store i32 0, ptr %9, align 4
  br label %163

163:                                              ; preds = %147, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  %164 = load i32, ptr %9, align 4
  switch i32 %164, label %169 [
    i32 0, label %165
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %16, align 4, !tbaa !11
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %16, align 4, !tbaa !11
  br label %124, !llvm.loop !19

169:                                              ; preds = %163, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %170

170:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  store i32 0, ptr %9, align 4
  br label %171

171:                                              ; preds = %170, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %172 = load i32, ptr %9, align 4
  switch i32 %172, label %233 [
    i32 0, label %173
    i32 19, label %174
  ]

173:                                              ; preds = %171
  br label %174

174:                                              ; preds = %173, %171
  %175 = load i32, ptr %13, align 4, !tbaa !11
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %13, align 4, !tbaa !11
  br label %95, !llvm.loop !20

177:                                              ; preds = %98
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %12, align 4, !tbaa !11
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %12, align 4, !tbaa !11
  br label %89, !llvm.loop !21

181:                                              ; preds = %93
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %11, align 4, !tbaa !11
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %11, align 4, !tbaa !11
  br label %83, !llvm.loop !22

185:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store i64 0, ptr %19, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store ptr @lucky, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %186 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @lucky) #3
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %186, ptr %187, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %188 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @lucky) #3
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %188, ptr %189, align 8
  br label %190

190:                                              ; preds = %228, %185
  %191 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #3
  br i1 %191, label %193, label %192

192:                                              ; preds = %190
  store i32 23, ptr %9, align 4
  br label %230

193:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #3
  %195 = load i32, ptr %194, align 4, !tbaa !11
  store i32 %195, ptr %23, align 4, !tbaa !11
  %196 = load i32, ptr %23, align 4, !tbaa !11
  %197 = load i32, ptr %5, align 4, !tbaa !11
  %198 = icmp sgt i32 %196, %197
  br i1 %198, label %199, label %200

199:                                              ; preds = %193
  store i32 23, ptr %9, align 4
  br label %225

200:                                              ; preds = %193
  %201 = load i32, ptr %5, align 4, !tbaa !11
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %202
  %204 = load i32, ptr %23, align 4, !tbaa !11
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [48 x [2 x i64]], ptr %203, i64 0, i64 %205
  %207 = getelementptr inbounds [2 x i64], ptr %206, i64 0, i64 0
  %208 = load i64, ptr %207, align 16, !tbaa !15
  %209 = load i64, ptr %19, align 8, !tbaa !15
  %210 = add i64 %209, %208
  store i64 %210, ptr %19, align 8, !tbaa !15
  %211 = load i8, ptr %4, align 1, !tbaa !9, !range !23, !noundef !24
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %224

213:                                              ; preds = %200
  %214 = load i32, ptr %5, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %215
  %217 = load i32, ptr %23, align 4, !tbaa !11
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [48 x [2 x i64]], ptr %216, i64 0, i64 %218
  %220 = getelementptr inbounds [2 x i64], ptr %219, i64 0, i64 1
  %221 = load i64, ptr %220, align 8, !tbaa !15
  %222 = load i64, ptr %19, align 8, !tbaa !15
  %223 = add i64 %222, %221
  store i64 %223, ptr %19, align 8, !tbaa !15
  br label %224

224:                                              ; preds = %213, %200
  store i32 0, ptr %9, align 4
  br label %225

225:                                              ; preds = %224, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  %226 = load i32, ptr %9, align 4
  switch i32 %226, label %230 [
    i32 0, label %227
  ]

227:                                              ; preds = %225
  br label %228

228:                                              ; preds = %227
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #3
  br label %190

230:                                              ; preds = %225, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %231

231:                                              ; preds = %230
  %232 = load i64, ptr %19, align 8, !tbaa !15
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret i64 %232

233:                                              ; preds = %171
  unreachable
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = !{i8 0, i8 2}
!24 = !{}


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

@dp = external dso_local local_unnamed_addr global [65 x [48 x [2 x i64]]], align 16
@lucky = external dso_local global %"class.std::vector", align 8

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_Z3getSt6vectorIiSaIiEEb(ptr noundef nonnull %0, i1 noundef zeroext %1) local_unnamed_addr #1 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %6 = trunc i64 %5 to i32
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 0) #4
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %.not = icmp sgt i32 %8, %6
  br i1 %.not, label %.critedge.thread, label %15

.critedge:                                        ; preds = %30, %25, %20, %15
  %.0.lcssa = phi i32 [ %17, %15 ], [ %22, %20 ], [ %27, %25 ], [ %32, %30 ]
  %.not7088 = icmp slt i32 %6, 0
  br i1 %.not7088, label %._crit_edge90.thread, label %.preheader83.lr.ph

.critedge.thread:                                 ; preds = %2
  %.not7088142 = icmp slt i32 %6, 0
  br i1 %.not7088142, label %._crit_edge90.thread, label %.preheader83.preheader

.preheader83.lr.ph:                               ; preds = %.critedge
  %.not7786 = icmp slt i32 %.0.lcssa, 0
  br i1 %.not7786, label %._crit_edge90, label %.preheader83.preheader

.preheader83.preheader:                           ; preds = %.critedge.thread, %.preheader83.lr.ph
  %.0.lcssa143147 = phi i32 [ %.0.lcssa, %.preheader83.lr.ph ], [ 0, %.critedge.thread ]
  %9 = add nuw i32 %.0.lcssa143147, 1
  %10 = zext i32 %9 to i64
  %11 = shl nuw nsw i64 %10, 4
  %12 = add nuw nsw i64 %5, 1
  %wide.trip.count = and i64 %12, 4294967295
  %13 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %12, 7
  %14 = icmp ult i64 %13, 7
  br i1 %14, label %._crit_edge90.loopexit.unr-lcssa, label %.preheader83.preheader.new

.preheader83.preheader.new:                       ; preds = %.preheader83.preheader
  %unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
  br label %.preheader83

15:                                               ; preds = %2
  %16 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 0) #4
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 1) #4
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %.not.1 = icmp sgt i32 %19, %6
  br i1 %.not.1, label %.critedge, label %20

20:                                               ; preds = %15
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 1) #4
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 2) #4
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %.not.2 = icmp sgt i32 %24, %6
  br i1 %.not.2, label %.critedge, label %25

25:                                               ; preds = %20
  %26 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 2) #4
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 3) #4
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %.not.3 = icmp sgt i32 %29, %6
  br i1 %.not.3, label %.critedge, label %30

30:                                               ; preds = %25
  %31 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @lucky, i64 noundef 3) #4
  %32 = load i32, ptr %31, align 4, !tbaa !5
  br label %.critedge

.preheader83:                                     ; preds = %.preheader83, %.preheader83.preheader.new
  %indvar = phi i64 [ 0, %.preheader83.preheader.new ], [ %indvar.next.7, %.preheader83 ]
  %niter = phi i64 [ 0, %.preheader83.preheader.new ], [ %niter.next.7, %.preheader83 ]
  %33 = mul nuw nsw i64 %indvar, 768
  %scevgep = getelementptr i8, ptr @dp, i64 %33
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep, i8 0, i64 %11, i1 false), !tbaa !9
  %34 = mul nuw i64 %indvar, 768
  %35 = or disjoint i64 %34, 768
  %scevgep.1 = getelementptr i8, ptr @dp, i64 %35
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep.1, i8 0, i64 %11, i1 false), !tbaa !9
  %36 = mul nuw i64 %indvar, 768
  %37 = or disjoint i64 %36, 1536
  %scevgep.2 = getelementptr i8, ptr @dp, i64 %37
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep.2, i8 0, i64 %11, i1 false), !tbaa !9
  %38 = mul nuw i64 %indvar, 768
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 2304), i64 %38
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep, i8 0, i64 %11, i1 false), !tbaa !9
  %39 = mul nuw i64 %indvar, 768
  %gep155 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 3072), i64 %39
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep155, i8 0, i64 %11, i1 false), !tbaa !9
  %40 = mul nuw i64 %indvar, 768
  %gep156 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 3840), i64 %40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep156, i8 0, i64 %11, i1 false), !tbaa !9
  %41 = mul nuw i64 %indvar, 768
  %gep157 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 4608), i64 %41
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep157, i8 0, i64 %11, i1 false), !tbaa !9
  %42 = mul nuw i64 %indvar, 768
  %gep158 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 5376), i64 %42
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %gep158, i8 0, i64 %11, i1 false), !tbaa !9
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge90.loopexit.unr-lcssa, label %.preheader83, !llvm.loop !11

._crit_edge90.thread:                             ; preds = %.critedge.thread, %.critedge
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !9
  br label %._crit_edge100

._crit_edge90.loopexit.unr-lcssa:                 ; preds = %.preheader83, %.preheader83.preheader
  %indvar.unr = phi i64 [ 0, %.preheader83.preheader ], [ %indvar.next.7, %.preheader83 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge90, label %.preheader83.epil

.preheader83.epil:                                ; preds = %._crit_edge90.loopexit.unr-lcssa, %.preheader83.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader83.epil ], [ %indvar.unr, %._crit_edge90.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader83.epil ], [ 0, %._crit_edge90.loopexit.unr-lcssa ]
  %43 = mul nuw nsw i64 %indvar.epil, 768
  %scevgep.epil = getelementptr i8, ptr @dp, i64 %43
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep.epil, i8 0, i64 %11, i1 false), !tbaa !9
  %indvar.next.epil = add nuw nsw i64 %indvar.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 %._crit_edge90, label %.preheader83.epil, !llvm.loop !13

._crit_edge90:                                    ; preds = %._crit_edge90.loopexit.unr-lcssa, %.preheader83.epil, %.preheader83.lr.ph
  %.0.lcssa144 = phi i32 [ %.0.lcssa, %.preheader83.lr.ph ], [ %.0.lcssa143147, %.preheader83.epil ], [ %.0.lcssa143147, %._crit_edge90.loopexit.unr-lcssa ]
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !9
  %44 = icmp slt i32 %6, 1
  %.not7296 = icmp slt i32 %.0.lcssa144, 0
  %or.cond = select i1 %44, i1 true, i1 %.not7296
  br i1 %or.cond, label %._crit_edge100, label %.preheader82.preheader

.preheader82.preheader:                           ; preds = %._crit_edge90
  %45 = add nuw i32 %.0.lcssa144, 1
  %wide.trip.count139 = and i64 %5, 2147483647
  %wide.trip.count134 = zext i32 %45 to i64
  br label %.preheader82

.preheader82:                                     ; preds = %.preheader82.preheader, %._crit_edge98
  %indvars.iv136 = phi i64 [ 0, %.preheader82.preheader ], [ %indvars.iv.next137, %._crit_edge98 ]
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  br label %.preheader

._crit_edge100:                                   ; preds = %._crit_edge98, %._crit_edge90.thread, %._crit_edge90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %46 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @lucky) #4
  store ptr %46, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %47 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @lucky) #4
  store ptr %47, ptr %4, align 8
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %48, label %.lr.ph103, label %._crit_edge104

.lr.ph103:                                        ; preds = %._crit_edge100
  %sext = shl i64 %5, 32
  %49 = ashr exact i64 %sext, 32
  br i1 %1, label %.lr.ph103.split.us, label %.lr.ph103.split

.lr.ph103.split.us:                               ; preds = %.lr.ph103, %52
  %.057101.us = phi i64 [ %59, %52 ], [ 0, %.lr.ph103 ]
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %.not71.us = icmp sgt i32 %51, %6
  br i1 %.not71.us, label %._crit_edge104, label %52

52:                                               ; preds = %.lr.ph103.split.us
  %53 = sext i32 %51 to i64
  %54 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %49, i64 %53
  %55 = load i64, ptr %54, align 16, !tbaa !9
  %56 = add i64 %55, %.057101.us
  %57 = getelementptr inbounds i8, ptr %54, i64 8
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = add i64 %58, %56
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %61 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %61, label %.lr.ph103.split.us, label %._crit_edge104

.preheader:                                       ; preds = %.preheader82, %.critedge79.1
  %indvars.iv = phi i64 [ 0, %.preheader82 ], [ %indvars.iv.next, %.critedge79.1 ]
  %indvars.iv117 = phi i32 [ %45, %.preheader82 ], [ %indvars.iv.next118, %.critedge79.1 ]
  %62 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv, i64 0
  %63 = load i64, ptr %62, align 16, !tbaa !9
  %.not73 = icmp eq i64 %63, 0
  %exitcond127 = icmp eq i32 %indvars.iv117, 0
  %or.cond159 = select i1 %.not73, i1 true, i1 %exitcond127
  br i1 %or.cond159, label %.critedge79, label %.lr.ph.split.us.1

._crit_edge98:                                    ; preds = %.critedge79.1
  %exitcond140.not = icmp eq i64 %indvars.iv.next137, %wide.trip.count139
  br i1 %exitcond140.not, label %._crit_edge100, label %.preheader82, !llvm.loop !15

.lr.ph.split.us.1:                                ; preds = %.preheader
  %64 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next137, i64 %indvars.iv, i64 0
  %65 = load i64, ptr %64, align 16, !tbaa !9
  %66 = add i64 %65, %63
  store i64 %66, ptr %64, align 16, !tbaa !9
  %exitcond127.1 = icmp eq i32 %indvars.iv117, 1
  br i1 %exitcond127.1, label %.critedge79, label %67

67:                                               ; preds = %.lr.ph.split.us.1
  %68 = add nuw nsw i64 %indvars.iv, 1
  %69 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next137, i64 %68, i64 0
  %70 = load i64, ptr %69, align 16, !tbaa !9
  %71 = add i64 %70, %63
  store i64 %71, ptr %69, align 16, !tbaa !9
  br label %.critedge79

.critedge79:                                      ; preds = %.lr.ph.split.us.1, %67, %.preheader
  %72 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv, i64 1
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %.not73.1 = icmp eq i64 %73, 0
  br i1 %.not73.1, label %.critedge79.1, label %74

74:                                               ; preds = %.critedge79
  %75 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv136) #4
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not7591.1 = icmp slt i32 %76, 0
  br i1 %.not7591.1, label %.critedge79.1, label %.lr.ph.split.preheader.1

.lr.ph.split.preheader.1:                         ; preds = %74
  %wide.trip.count119.1 = zext i32 %indvars.iv117 to i64
  %77 = add nuw i32 %76, 1
  %wide.trip.count121.1 = zext i32 %77 to i64
  br label %.lr.ph.split.1

.lr.ph.split.1:                                   ; preds = %78, %.lr.ph.split.preheader.1
  %indvars.iv.1 = phi i64 [ 0, %.lr.ph.split.preheader.1 ], [ %indvars.iv.next.1, %78 ]
  %exitcond120.1 = icmp eq i64 %indvars.iv.1, %wide.trip.count119.1
  br i1 %exitcond120.1, label %.critedge79.1, label %78

78:                                               ; preds = %.lr.ph.split.1
  %79 = add nuw nsw i64 %indvars.iv.1, %indvars.iv
  %80 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv136) #4
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = zext i32 %81 to i64
  %83 = icmp eq i64 %indvars.iv.1, %82
  %84 = zext i1 %83 to i64
  %85 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next137, i64 %79, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = add i64 %86, %73
  store i64 %87, ptr %85, align 8, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond122.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count121.1
  br i1 %exitcond122.1.not, label %.critedge79.1, label %.lr.ph.split.1, !llvm.loop !16

.critedge79.1:                                    ; preds = %.lr.ph.split.1, %78, %74, %.critedge79
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next118 = add i32 %indvars.iv117, -1
  %exitcond135.not = icmp eq i64 %indvars.iv.next, %wide.trip.count134
  br i1 %exitcond135.not, label %._crit_edge98, label %.preheader, !llvm.loop !17

.lr.ph103.split:                                  ; preds = %.lr.ph103, %90
  %.057101 = phi i64 [ %94, %90 ], [ 0, %.lr.ph103 ]
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %.not71 = icmp sgt i32 %89, %6
  br i1 %.not71, label %._crit_edge104, label %90

90:                                               ; preds = %.lr.ph103.split
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds [65 x [48 x [2 x i64]]], ptr @dp, i64 0, i64 %49, i64 %91
  %93 = load i64, ptr %92, align 16, !tbaa !9
  %94 = add i64 %93, %.057101
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %96 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %96, label %.lr.ph103.split, label %._crit_edge104

._crit_edge104:                                   ; preds = %90, %.lr.ph103.split, %52, %.lr.ph103.split.us, %._crit_edge100
  %.057.lcssa = phi i64 [ 0, %._crit_edge100 ], [ %.057101.us, %.lr.ph103.split.us ], [ %59, %52 ], [ %.057101, %.lr.ph103.split ], [ %94, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i64 %.057.lcssa
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass