; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/Random/WORKCHEF/A.ll (Z3getxi)

; 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 [20 x [2600 x [512 x [2 x i64]]]], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4itovx(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i64 noundef) #0

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

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) #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 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3getxi(i64 noundef %0, i32 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %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 i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store i64 %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %2
  %36 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %36, ptr %3, align 8
  br label %270

37:                                               ; preds = %2
  %38 = load i64, ptr %4, align 8, !tbaa !5
  %39 = icmp slt i64 %38, 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  store i64 0, ptr %3, align 8
  br label %270

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %42 = load i64, ptr %4, align 8, !tbaa !5
  call void @_Z4itovx(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %6, i64 noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %43 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %7, align 4, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 0, i64 425984000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 2520, ptr %8, align 4, !tbaa !9
  store i64 1, ptr getelementptr inbounds ([2 x i64], ptr @dp, i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %163, %41
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %166

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %159, %50
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %162

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %155, %56
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = icmp slt i32 %58, 512
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %158

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %151, %61
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = icmp slt i32 %63, 2
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %154

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %68
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [2600 x [512 x [2 x i64]]], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [512 x [2 x i64]], ptr %72, i64 0, i64 %74
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [2 x i64], ptr %75, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !5
  store i64 %79, ptr %14, align 8, !tbaa !5
  %80 = load i64, ptr %14, align 8, !tbaa !5
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %66
  store i32 13, ptr %10, align 4
  br label %148

83:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %83
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %88) #6
  %90 = load i32, ptr %89, align 4, !tbaa !9
  br label %92

91:                                               ; preds = %83
  br label %92

92:                                               ; preds = %91, %86
  %93 = phi i32 [ %90, %86 ], [ 9, %91 ]
  store i32 %93, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %144, %92
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %147

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %109

102:                                              ; preds = %99
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %105) #6
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp eq i32 %103, %107
  br label %109

109:                                              ; preds = %102, %99
  %110 = phi i1 [ false, %99 ], [ %108, %102 ]
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = mul nsw i32 %112, 10
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = add nsw i32 %113, %114
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = srem i32 %115, %116
  store i32 %117, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %118 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %118, ptr %19, align 4, !tbaa !9
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %127

121:                                              ; preds = %109
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = sub nsw i32 %122, 1
  %124 = shl i32 1, %123
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = or i32 %125, %124
  store i32 %126, ptr %19, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %121, %109
  %128 = load i64, ptr %14, align 8, !tbaa !5
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %131
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [2600 x [512 x [2 x i64]]], ptr %132, i64 0, i64 %134
  %136 = load i32, ptr %19, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [512 x [2 x i64]], ptr %135, i64 0, i64 %137
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [2 x i64], ptr %138, i64 0, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !5
  %143 = add nsw i64 %142, %128
  store i64 %143, ptr %141, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %144

144:                                              ; preds = %127
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %16, align 4, !tbaa !9
  br label %94, !llvm.loop !11

147:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  store i32 0, ptr %10, align 4
  br label %148

148:                                              ; preds = %147, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %149 = load i32, ptr %10, align 4
  switch i32 %149, label %277 [
    i32 0, label %150
    i32 13, label %151
  ]

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150, %148
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %13, align 4, !tbaa !9
  br label %62, !llvm.loop !13

154:                                              ; preds = %65
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %12, align 4, !tbaa !9
  br label %57, !llvm.loop !14

158:                                              ; preds = %60
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %11, align 4, !tbaa !9
  br label %51, !llvm.loop !15

162:                                              ; preds = %55
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %9, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %9, align 4, !tbaa !9
  br label %45, !llvm.loop !16

166:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %265, %166
  %168 = load i32, ptr %21, align 4, !tbaa !9
  %169 = icmp slt i32 %168, 512
  br i1 %169, label %171, label %170

170:                                              ; preds = %167
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %268

171:                                              ; preds = %167
  %172 = load i32, ptr %21, align 4, !tbaa !9
  %173 = call i32 @llvm.ctpop.i32(i32 %172)
  %174 = load i32, ptr %5, align 4, !tbaa !9
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %176, label %177

176:                                              ; preds = %171
  br label %265

177:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %196, %177
  %179 = load i32, ptr %23, align 4, !tbaa !9
  %180 = icmp sle i32 %179, 9
  br i1 %180, label %182, label %181

181:                                              ; preds = %178
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %199

182:                                              ; preds = %178
  %183 = load i32, ptr %21, align 4, !tbaa !9
  %184 = load i32, ptr %23, align 4, !tbaa !9
  %185 = sub nsw i32 %184, 1
  %186 = shl i32 1, %185
  %187 = and i32 %183, %186
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %195

189:                                              ; preds = %182
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %190 unwind label %191

190:                                              ; preds = %189
  br label %195

191:                                              ; preds = %189
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %24, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %272

195:                                              ; preds = %190, %182
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %23, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %23, align 4, !tbaa !9
  br label %178, !llvm.loop !17

199:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %261, %199
  %201 = load i32, ptr %26, align 4, !tbaa !9
  %202 = load i32, ptr %8, align 4, !tbaa !9
  %203 = icmp slt i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %264

205:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store ptr %22, ptr %28, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %206 = load ptr, ptr %28, align 8, !tbaa !18
  %207 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %206) #6
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %209 = load ptr, ptr %28, align 8, !tbaa !18
  %210 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %209) #6
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %210, ptr %211, align 8
  br label %212

212:                                              ; preds = %226, %205
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %213, label %215, label %214

214:                                              ; preds = %212
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %228

215:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  %217 = load i32, ptr %216, align 4, !tbaa !9
  store i32 %217, ptr %31, align 4, !tbaa !9
  %218 = load i32, ptr %26, align 4, !tbaa !9
  %219 = load i32, ptr %31, align 4, !tbaa !9
  %220 = srem i32 %218, %219
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %225

222:                                              ; preds = %215
  %223 = load i32, ptr %27, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %27, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %222, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %226

226:                                              ; preds = %225
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %212

228:                                              ; preds = %214
  %229 = load i32, ptr %27, align 4, !tbaa !9
  %230 = load i32, ptr %5, align 4, !tbaa !9
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %232, label %233

232:                                              ; preds = %228
  store i32 25, ptr %10, align 4
  br label %258

233:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %234

234:                                              ; preds = %254, %233
  %235 = load i32, ptr %32, align 4, !tbaa !9
  %236 = icmp slt i32 %235, 2
  br i1 %236, label %238, label %237

237:                                              ; preds = %234
  store i32 28, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %257

238:                                              ; preds = %234
  %239 = load i32, ptr %7, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %240
  %242 = load i32, ptr %26, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [2600 x [512 x [2 x i64]]], ptr %241, i64 0, i64 %243
  %245 = load i32, ptr %21, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [512 x [2 x i64]], ptr %244, i64 0, i64 %246
  %248 = load i32, ptr %32, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [2 x i64], ptr %247, i64 0, i64 %249
  %251 = load i64, ptr %250, align 8, !tbaa !5
  %252 = load i64, ptr %20, align 8, !tbaa !5
  %253 = add nsw i64 %252, %251
  store i64 %253, ptr %20, align 8, !tbaa !5
  br label %254

254:                                              ; preds = %238
  %255 = load i32, ptr %32, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %32, align 4, !tbaa !9
  br label %234, !llvm.loop !20

257:                                              ; preds = %237
  store i32 0, ptr %10, align 4
  br label %258

258:                                              ; preds = %257, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %259 = load i32, ptr %10, align 4
  switch i32 %259, label %277 [
    i32 0, label %260
    i32 25, label %261
  ]

260:                                              ; preds = %258
  br label %261

261:                                              ; preds = %260, %258
  %262 = load i32, ptr %26, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %26, align 4, !tbaa !9
  br label %200, !llvm.loop !21

264:                                              ; preds = %204
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %265

265:                                              ; preds = %264, %176
  %266 = load i32, ptr %21, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %21, align 4, !tbaa !9
  br label %167, !llvm.loop !22

268:                                              ; preds = %170
  %269 = load i64, ptr %20, align 8, !tbaa !5
  store i64 %269, ptr %3, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %270

270:                                              ; preds = %268, %40, %35
  %271 = load i64, ptr %3, align 8
  ret i64 %271

272:                                              ; preds = %191
  %273 = load ptr, ptr %24, align 8
  %274 = load i32, ptr %25, align 4
  %275 = insertvalue { ptr, i32 } poison, ptr %273, 0
  %276 = insertvalue { ptr, i32 } %275, i32 %274, 1
  resume { ptr, i32 } %276

277:                                              ; preds = %258, %148
  unreachable
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #4

; 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

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !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 }

@dp = external dso_local local_unnamed_addr global [20 x [2600 x [512 x [2 x i64]]]], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4itovx(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i64 noundef) local_unnamed_addr #0

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

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) #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 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3getxi(i64 noundef %0, i32 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = icmp eq i32 %1, 0
  br i1 %8, label %159, label %9

9:                                                ; preds = %2
  %10 = icmp slt i64 %0, 1
  br i1 %10, label %159, label %11

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_Z4itovx(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, i64 noundef %0)
  %12 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %13 = trunc i64 %12 to i32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(425984000) @dp, i8 0, i64 425984000, i1 false)
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.preheader89.preheader, label %.preheader85

.preheader89.preheader:                           ; preds = %11
  %wide.trip.count = and i64 %12, 2147483647
  br label %.preheader89

.preheader89:                                     ; preds = %.preheader89.preheader, %50
  %indvars.iv116 = phi i64 [ 0, %.preheader89.preheader ], [ %indvars.iv.next117, %50 ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  br label %.preheader88

.preheader85:                                     ; preds = %50, %11
  %sext = shl i64 %12, 32
  %15 = ashr exact i64 %sext, 32
  br label %121

.preheader88:                                     ; preds = %.preheader89, %53
  %indvars.iv112 = phi i64 [ 0, %.preheader89 ], [ %indvars.iv.next113, %53 ]
  %16 = mul nuw nsw i64 %indvars.iv112, 10
  %17 = trunc nuw nsw i64 %16 to i32
  %18 = urem i32 %17, 2520
  %19 = zext nneg i32 %18 to i64
  %20 = trunc nuw nsw i64 %16 to i32
  %21 = urem i32 %20, 2520
  %22 = zext nneg i32 %21 to i64
  %23 = or disjoint i32 %17, 1
  %24 = urem i32 %23, 2520
  %25 = zext nneg i32 %24 to i64
  %26 = add nuw nsw i32 %17, 2
  %27 = urem i32 %26, 2520
  %28 = zext nneg i32 %27 to i64
  %29 = add nuw nsw i32 %17, 3
  %30 = urem i32 %29, 2520
  %31 = zext nneg i32 %30 to i64
  %32 = add nuw nsw i32 %17, 4
  %33 = urem i32 %32, 2520
  %34 = zext nneg i32 %33 to i64
  %35 = add nuw nsw i32 %17, 5
  %36 = urem i32 %35, 2520
  %37 = zext nneg i32 %36 to i64
  %38 = add nuw nsw i32 %17, 6
  %39 = urem i32 %38, 2520
  %40 = zext nneg i32 %39 to i64
  %41 = add nuw nsw i32 %17, 7
  %42 = urem i32 %41, 2520
  %43 = zext nneg i32 %42 to i64
  %44 = add nuw nsw i32 %17, 8
  %45 = urem i32 %44, 2520
  %46 = zext nneg i32 %45 to i64
  %47 = add nuw nsw i32 %17, 9
  %48 = urem i32 %47, 2520
  %49 = zext nneg i32 %48 to i64
  br label %.preheader87

50:                                               ; preds = %53
  %exitcond119.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count
  br i1 %exitcond119.not, label %.preheader85, label %.preheader89, !llvm.loop !9

.preheader87:                                     ; preds = %.preheader88, %.loopexit86.1
  %indvars.iv = phi i64 [ 0, %.preheader88 ], [ %indvars.iv.next, %.loopexit86.1 ]
  %51 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv116, i64 %indvars.iv112, i64 %indvars.iv, i64 0
  %52 = load i64, ptr %51, align 16, !tbaa !5
  %.not81 = icmp eq i64 %52, 0
  br i1 %.not81, label %.loopexit86, label %.lr.ph.split.us.peel.next

53:                                               ; preds = %.loopexit86.1
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next113, 2520
  br i1 %exitcond115.not, label %50, label %.preheader88, !llvm.loop !11

.lr.ph.split.us.peel.next:                        ; preds = %.preheader87
  %54 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %19, i64 %indvars.iv, i64 0
  %55 = load i64, ptr %54, align 16, !tbaa !5
  %56 = add nsw i64 %55, %52
  store i64 %56, ptr %54, align 16, !tbaa !5
  %.072.us = shl i64 %indvars.iv, 32
  %sext133 = ashr exact i64 %.072.us, 32
  %57 = or i64 %sext133, 1
  %58 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %25, i64 %57, i64 0
  %59 = load i64, ptr %58, align 16, !tbaa !5
  %60 = add nsw i64 %59, %52
  store i64 %60, ptr %58, align 16, !tbaa !5
  %.072.us.1 = shl i64 %indvars.iv, 32
  %sext134 = ashr exact i64 %.072.us.1, 32
  %61 = or i64 %sext134, 2
  %62 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %28, i64 %61, i64 0
  %63 = load i64, ptr %62, align 16, !tbaa !5
  %64 = add nsw i64 %63, %52
  store i64 %64, ptr %62, align 16, !tbaa !5
  %.072.us.2 = shl i64 %indvars.iv, 32
  %sext135 = ashr exact i64 %.072.us.2, 32
  %65 = or i64 %sext135, 4
  %66 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %31, i64 %65, i64 0
  %67 = load i64, ptr %66, align 16, !tbaa !5
  %68 = add nsw i64 %67, %52
  store i64 %68, ptr %66, align 16, !tbaa !5
  %.072.us.3 = shl i64 %indvars.iv, 32
  %sext136 = ashr exact i64 %.072.us.3, 32
  %69 = or i64 %sext136, 8
  %70 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %34, i64 %69, i64 0
  %71 = load i64, ptr %70, align 16, !tbaa !5
  %72 = add nsw i64 %71, %52
  store i64 %72, ptr %70, align 16, !tbaa !5
  %.072.us.4 = shl i64 %indvars.iv, 32
  %sext137 = ashr exact i64 %.072.us.4, 32
  %73 = or i64 %sext137, 16
  %74 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %37, i64 %73, i64 0
  %75 = load i64, ptr %74, align 16, !tbaa !5
  %76 = add nsw i64 %75, %52
  store i64 %76, ptr %74, align 16, !tbaa !5
  %.072.us.5 = shl i64 %indvars.iv, 32
  %sext138 = ashr exact i64 %.072.us.5, 32
  %77 = or i64 %sext138, 32
  %78 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %40, i64 %77, i64 0
  %79 = load i64, ptr %78, align 16, !tbaa !5
  %80 = add nsw i64 %79, %52
  store i64 %80, ptr %78, align 16, !tbaa !5
  %.072.us.6 = shl i64 %indvars.iv, 32
  %sext139 = ashr exact i64 %.072.us.6, 32
  %81 = or i64 %sext139, 64
  %82 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %43, i64 %81, i64 0
  %83 = load i64, ptr %82, align 16, !tbaa !5
  %84 = add nsw i64 %83, %52
  store i64 %84, ptr %82, align 16, !tbaa !5
  %.072.us.7 = shl i64 %indvars.iv, 32
  %sext140 = ashr exact i64 %.072.us.7, 32
  %85 = or i64 %sext140, 128
  %86 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %46, i64 %85, i64 0
  %87 = load i64, ptr %86, align 16, !tbaa !5
  %88 = add nsw i64 %87, %52
  store i64 %88, ptr %86, align 16, !tbaa !5
  %.072.us.8 = shl i64 %indvars.iv, 32
  %sext141 = ashr exact i64 %.072.us.8, 32
  %89 = or i64 %sext141, 256
  %90 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %49, i64 %89, i64 0
  %91 = load i64, ptr %90, align 16, !tbaa !5
  %92 = add nsw i64 %91, %52
  store i64 %92, ptr %90, align 16, !tbaa !5
  br label %.loopexit86

.loopexit86:                                      ; preds = %.lr.ph.split.us.peel.next, %.preheader87
  %93 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv116, i64 %indvars.iv112, i64 %indvars.iv, i64 1
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %.not81.1 = icmp eq i64 %94, 0
  br i1 %.not81.1, label %.loopexit86.1, label %95

95:                                               ; preds = %.loopexit86
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv116) #6
  %97 = load i32, ptr %96, align 4, !tbaa !12
  %.not8391.1 = icmp slt i32 %97, 0
  br i1 %.not8391.1, label %.loopexit86.1, label %.lr.ph.split.preheader.1

.lr.ph.split.preheader.1:                         ; preds = %95
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv116) #6
  %99 = load i32, ptr %98, align 4, !tbaa !12
  %100 = icmp eq i32 %99, 0
  %101 = zext i1 %100 to i64
  %102 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %22, i64 %indvars.iv, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = add nsw i64 %103, %94
  store i64 %104, ptr %102, align 8, !tbaa !5
  %exitcond.peel.1.not = icmp eq i32 %97, 0
  br i1 %exitcond.peel.1.not, label %.loopexit86.1, label %.lr.ph.split.peel.next.1

.lr.ph.split.peel.next.1:                         ; preds = %.lr.ph.split.preheader.1
  %105 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.lr.ph.split.1

.lr.ph.split.1:                                   ; preds = %.lr.ph.split.1, %.lr.ph.split.peel.next.1
  %.07592.1 = phi i32 [ %119, %.lr.ph.split.1 ], [ 1, %.lr.ph.split.peel.next.1 ]
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv116) #6
  %107 = load i32, ptr %106, align 4, !tbaa !12
  %108 = icmp eq i32 %.07592.1, %107
  %109 = add nuw nsw i32 %.07592.1, %20
  %110 = urem i32 %109, 2520
  %111 = add nsw i32 %.07592.1, -1
  %112 = shl nuw i32 1, %111
  %.072.1 = or i32 %112, %105
  %113 = zext nneg i32 %110 to i64
  %114 = sext i32 %.072.1 to i64
  %115 = zext i1 %108 to i64
  %116 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv.next117, i64 %113, i64 %114, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = add nsw i64 %117, %94
  store i64 %118, ptr %116, align 8, !tbaa !5
  %119 = add nuw i32 %.07592.1, 1
  %exitcond.1.not = icmp eq i32 %.07592.1, %97
  br i1 %exitcond.1.not, label %.loopexit86.1, label %.lr.ph.split.1, !llvm.loop !14

.loopexit86.1:                                    ; preds = %.lr.ph.split.1, %.lr.ph.split.preheader.1, %95, %.loopexit86
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 512
  br i1 %exitcond.not, label %53, label %.preheader87, !llvm.loop !16

120:                                              ; preds = %158
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %159

121:                                              ; preds = %.preheader85, %158
  %indvars.iv127 = phi i64 [ 0, %.preheader85 ], [ %indvars.iv.next128, %158 ]
  %.070104 = phi i64 [ 0, %.preheader85 ], [ %.4, %158 ]
  %122 = trunc nuw nsw i64 %indvars.iv127 to i32
  %123 = call range(i32 0, 10) i32 @llvm.ctpop.i32(i32 %122)
  %124 = icmp slt i32 %123, %1
  br i1 %124, label %158, label %125

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 1, ptr %5, align 4, !tbaa !12
  br label %127

126:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %139

127:                                              ; preds = %125, %134
  %128 = phi i32 [ 1, %125 ], [ %136, %134 ]
  %storemerge97 = phi i32 [ 0, %125 ], [ %135, %134 ]
  %129 = shl nuw nsw i32 1, %storemerge97
  %130 = and i32 %129, %122
  %.not = icmp eq i32 %130, 0
  br i1 %.not, label %134, label %131

131:                                              ; preds = %127
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %._crit_edge132 unwind label %132

._crit_edge132:                                   ; preds = %131
  %.pre = load i32, ptr %5, align 4, !tbaa !12
  br label %134

132:                                              ; preds = %131
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %133

134:                                              ; preds = %._crit_edge132, %127
  %135 = phi i32 [ %.pre, %._crit_edge132 ], [ %128, %127 ]
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %5, align 4, !tbaa !12
  %137 = icmp slt i32 %135, 9
  br i1 %137, label %127, label %126, !llvm.loop !17

138:                                              ; preds = %.loopexit
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %158

139:                                              ; preds = %126, %.loopexit
  %indvars.iv123 = phi i64 [ 0, %126 ], [ %indvars.iv.next124, %.loopexit ]
  %.171102 = phi i64 [ %.070104, %126 ], [ %.3, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %140 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %140, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %141 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  store ptr %141, ptr %7, align 8
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %142, label %.lr.ph99.preheader, label %._crit_edge

.lr.ph99.preheader:                               ; preds = %139
  %143 = trunc nuw nsw i64 %indvars.iv123 to i32
  br label %.lr.ph99

._crit_edge:                                      ; preds = %.lr.ph99, %139
  %.066.lcssa = phi i32 [ 0, %139 ], [ %spec.select, %.lr.ph99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %144 = icmp slt i32 %.066.lcssa, %1
  br i1 %144, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %145 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %15, i64 %indvars.iv123, i64 %indvars.iv127, i64 0
  %146 = load i64, ptr %145, align 16, !tbaa !5
  %147 = add nsw i64 %146, %.171102
  %148 = getelementptr inbounds [20 x [2600 x [512 x [2 x i64]]]], ptr @dp, i64 0, i64 %15, i64 %indvars.iv123, i64 %indvars.iv127, i64 1
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = add nsw i64 %149, %147
  br label %.loopexit

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.lr.ph99
  %.06698 = phi i32 [ %spec.select, %.lr.ph99 ], [ 0, %.lr.ph99.preheader ]
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %152 = load i32, ptr %151, align 4, !tbaa !12
  %153 = srem i32 %143, %152
  %154 = icmp eq i32 %153, 0
  %155 = zext i1 %154 to i32
  %spec.select = add nuw nsw i32 %.06698, %155
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %157 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %157, label %.lr.ph99, label %._crit_edge

.loopexit:                                        ; preds = %.preheader, %._crit_edge
  %.3 = phi i64 [ %.171102, %._crit_edge ], [ %150, %.preheader ]
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next124, 2520
  br i1 %exitcond126.not, label %138, label %139, !llvm.loop !18

158:                                              ; preds = %121, %138
  %.4 = phi i64 [ %.070104, %121 ], [ %.3, %138 ]
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next128, 512
  br i1 %exitcond130.not, label %120, label %121, !llvm.loop !19

159:                                              ; preds = %9, %2, %120
  %.064 = phi i64 [ %.4, %120 ], [ %0, %2 ], [ 0, %9 ]
  ret i64 %.064
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #4

; 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

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

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !10, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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