; LLVM IR from weicao/cascadb :: src/tree/record.ll (ZN7cascadb13RecordBuckets5splitERS0_)

; 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.cascadb::Slice" = type <{ ptr, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.cascadb::RecordBuckets" = type { i64, %"class.std::vector", i64, i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cascadb::RecordBuckets::RecordBucketInfo, std::allocator<cascadb::RecordBuckets::RecordBucketInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<cascadb::RecordBuckets::RecordBucketInfo, std::allocator<cascadb::RecordBuckets::RecordBucketInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<cascadb::RecordBuckets::RecordBucketInfo, std::allocator<cascadb::RecordBuckets::RecordBucketInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cascadb::RecordBuckets::RecordBucketInfo, std::allocator<cascadb::RecordBuckets::RecordBucketInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cascadb::RecordBuckets::RecordBucketInfo" = type { ptr, i64 }
%"class.cascadb::Record" = type { %"class.cascadb::Slice", %"class.cascadb::Slice" }

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_ = external hidden unnamed_addr constant [53 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local { ptr, i32 } @_ZN7cascadb13RecordBuckets5splitERS0_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #0 align 2 {
  %3 = alloca %"class.cascadb::Slice", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef i64 @_ZN7cascadb13RecordBuckets14buckets_numberEv(ptr noundef nonnull align 8 dereferenceable(56) %19)
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %2
  br label %25

23:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #9
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %27 = call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #10
  %28 = icmp ne i64 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %32

30:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 74, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #9
  unreachable

31:                                               ; No predecessors!
  br label %32

32:                                               ; preds = %31, %29
  %33 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %34 = call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  %35 = icmp eq i64 %34, 1
  br i1 %35, label %36, label %106

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %37 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef 0) #10
  %39 = getelementptr inbounds %"struct.cascadb::RecordBuckets::RecordBucketInfo", ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  store ptr %40, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %41 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
  call void @llvm.memset.p0.i64(ptr align 16 %41, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN7cascadb6RecordESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #10
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #10
  %44 = udiv i64 %43, 2
  store i64 %44, ptr %8, align 8, !tbaa !12
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #10
  %48 = load i64, ptr %8, align 8, !tbaa !12
  %49 = sub i64 %47, %48
  call void @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #10
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  %53 = load i64, ptr %8, align 8, !tbaa !12
  %54 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7cascadb6RecordESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %53) #10
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #10
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = call ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #10
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8
  %66 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPN7cascadb6RecordESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %63, ptr %65, ptr %67)
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load i64, ptr %8, align 8, !tbaa !12
  call void @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %71)
  %72 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef 0) #10
  %74 = getelementptr inbounds %"struct.cascadb::RecordBuckets::RecordBucketInfo", ptr %73, i32 0, i32 1
  store i64 4, ptr %74, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  store i64 0, ptr %14, align 8, !tbaa !12
  br label %75

75:                                               ; preds = %91, %36
  %76 = load i64, ptr %14, align 8, !tbaa !12
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  %79 = icmp ult i64 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %94

81:                                               ; preds = %75
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i64, ptr %14, align 8, !tbaa !12
  %84 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %83) #10
  %85 = call noundef i64 @_ZN7cascadb6Record4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %84)
  %86 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 0) #10
  %88 = getelementptr inbounds %"struct.cascadb::RecordBuckets::RecordBucketInfo", ptr %87, i32 0, i32 1
  %89 = load i64, ptr %88, align 8, !tbaa !13
  %90 = add i64 %89, %85
  store i64 %90, ptr %88, align 8, !tbaa !13
  br label %91

91:                                               ; preds = %81
  %92 = load i64, ptr %14, align 8, !tbaa !12
  %93 = add i64 %92, 1
  store i64 %93, ptr %14, align 8, !tbaa !12
  br label %75, !llvm.loop !14

94:                                               ; preds = %80
  %95 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef 0) #10
  %97 = getelementptr inbounds %"struct.cascadb::RecordBuckets::RecordBucketInfo", ptr %96, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 3
  store i64 %98, ptr %99, align 8, !tbaa !16
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #10
  %102 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 4
  store i64 %101, ptr %102, align 8, !tbaa !22
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN7cascadb13RecordBuckets18set_buckets_numberEm(ptr noundef nonnull align 8 dereferenceable(56) %103, i64 noundef 1)
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7cascadb13RecordBuckets10set_bucketEmPSt6vectorINS_6RecordESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %104, i64 noundef 0, ptr noundef %105)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  br label %148

106:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %107 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %108 = call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #10
  %109 = udiv i64 %108, 2
  store i64 %109, ptr %15, align 8, !tbaa !12
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %112 = call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #10
  %113 = load i64, ptr %15, align 8, !tbaa !12
  %114 = sub i64 %112, %113
  call void @_ZN7cascadb13RecordBuckets18set_buckets_numberEm(ptr noundef nonnull align 8 dereferenceable(56) %110, i64 noundef %114)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %115 = load i64, ptr %15, align 8, !tbaa !12
  store i64 %115, ptr %16, align 8, !tbaa !12
  br label %116

116:                                              ; preds = %132, %106
  %117 = load i64, ptr %16, align 8, !tbaa !12
  %118 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %119 = call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #10
  %120 = icmp ult i64 %117, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %135

122:                                              ; preds = %116
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = load i64, ptr %16, align 8, !tbaa !12
  %125 = load i64, ptr %15, align 8, !tbaa !12
  %126 = sub i64 %124, %125
  %127 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %128 = load i64, ptr %16, align 8, !tbaa !12
  %129 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %128) #10
  %130 = getelementptr inbounds %"struct.cascadb::RecordBuckets::RecordBucketInfo", ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  call void @_ZN7cascadb13RecordBuckets10set_bucketEmPSt6vectorINS_6RecordESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %123, i64 noundef %126, ptr noundef %131)
  br label %132

132:                                              ; preds = %122
  %133 = load i64, ptr %16, align 8, !tbaa !12
  %134 = add i64 %133, 1
  store i64 %134, ptr %16, align 8, !tbaa !12
  br label %116, !llvm.loop !23

135:                                              ; preds = %121
  %136 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 1
  %137 = load i64, ptr %15, align 8, !tbaa !12
  call void @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %137)
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = call noundef i64 @_ZN7cascadb13RecordBuckets6lengthEv(ptr noundef nonnull align 8 dereferenceable(56) %138)
  %140 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 3
  %141 = load i64, ptr %140, align 8, !tbaa !16
  %142 = sub i64 %141, %139
  store i64 %142, ptr %140, align 8, !tbaa !16
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call noundef i64 @_ZN7cascadb13RecordBuckets4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %143)
  %145 = getelementptr inbounds %"class.cascadb::RecordBuckets", ptr %18, i32 0, i32 4
  %146 = load i64, ptr %145, align 8, !tbaa !22
  %147 = sub i64 %146, %144
  store i64 %147, ptr %145, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %148

148:                                              ; preds = %135, %94
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = call noundef i64 @_ZN7cascadb13RecordBuckets14buckets_numberEv(ptr noundef nonnull align 8 dereferenceable(56) %149)
  %151 = icmp ne i64 %150, 0
  br i1 %151, label %152, label %153

152:                                              ; preds = %148
  br label %155

153:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 108, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #9
  unreachable

154:                                              ; No predecessors!
  br label %155

155:                                              ; preds = %154, %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = call noundef ptr @_ZN7cascadb13RecordBuckets6bucketEm(ptr noundef nonnull align 8 dereferenceable(56) %156, i64 noundef 0)
  store ptr %157, ptr %17, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #10
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %155
  br label %164

162:                                              ; preds = %155
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 110, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #9
  unreachable

163:                                              ; No predecessors!
  br label %164

164:                                              ; preds = %163, %161
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #10
  %167 = getelementptr inbounds %"class.cascadb::Record", ptr %166, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %167, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  %168 = load { ptr, i32 }, ptr %3, align 8
  ret { ptr, i32 } %168
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPN7cascadb6RecordESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr, ptr, ptr) #6

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb13RecordBuckets18set_buckets_numberEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb13RecordBuckets10set_bucketEmPSt6vectorINS_6RecordESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb13RecordBuckets6lengthEv(ptr noundef nonnull align 8 dereferenceable(56)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb13RecordBuckets4sizeEv(ptr noundef nonnull align 8 dereferenceable(56)) #7 align 2

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

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

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

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

!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, !6, i64 0}
!10 = !{!"_ZTSN7cascadb13RecordBuckets16RecordBucketInfoE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !11, i64 40}
!17 = !{!"_ZTSN7cascadb13RecordBucketsE", !11, i64 0, !18, i64 8, !11, i64 32, !11, i64 40, !11, i64 48}
!18 = !{!"_ZTSSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!17, !11, i64 48}
!23 = distinct !{!23, !15}
!24 = !{i64 0, i64 8, !5, i64 8, i64 4, !25}
!25 = !{!26, !26, i64 0}
!26 = !{!"int", !7, i64 0}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_ = external hidden unnamed_addr constant [53 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local { ptr, i32 } @_ZN7cascadb13RecordBuckets5splitERS0_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = tail call noundef i64 @_ZN7cascadb13RecordBuckets14buckets_numberEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #8
  unreachable

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %10, label %11

10:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 74, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #8
  unreachable

11:                                               ; preds = %7
  %12 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %13 = icmp eq i64 %12, 1
  br i1 %13, label %14, label %45

14:                                               ; preds = %11
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #9
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %17, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorIN7cascadb6RecordESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %18 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %19 = lshr i64 %18, 1
  %20 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %21 = sub i64 %20, %19
  tail call void @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %22 = tail call ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  store ptr %22, ptr %3, align 8
  %23 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7cascadb6RecordESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %19) #9
  %24 = call ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %25 = call ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %26 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPN7cascadb6RecordESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %23, ptr %24, ptr %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %19)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #9
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  store i64 4, ptr %28, align 8, !tbaa !11
  %29 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %.not48 = icmp eq i64 %29, 0
  br i1 %.not48, label %._crit_edge47, label %.lr.ph46

._crit_edge47:                                    ; preds = %.lr.ph46, %14
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #9
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %32, ptr %33, align 8, !tbaa !12
  %34 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %35 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %34, ptr %35, align 8, !tbaa !18
  call void @_ZN7cascadb13RecordBuckets18set_buckets_numberEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 1)
  call void @_ZN7cascadb13RecordBuckets10set_bucketEmPSt6vectorINS_6RecordESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 0, ptr noundef nonnull %17)
  br label %66

.lr.ph46:                                         ; preds = %14, %.lr.ph46
  %.044 = phi i64 [ %42, %.lr.ph46 ], [ 0, %14 ]
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.044) #9
  %37 = call noundef i64 @_ZN7cascadb6Record4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %36)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #9
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load i64, ptr %39, align 8, !tbaa !11
  %41 = add i64 %40, %37
  store i64 %41, ptr %39, align 8, !tbaa !11
  %42 = add nuw i64 %.044, 1
  %43 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %.lr.ph46, label %._crit_edge47, !llvm.loop !19

45:                                               ; preds = %11
  %46 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %47 = lshr i64 %46, 1
  %48 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %49 = sub i64 %48, %47
  tail call void @_ZN7cascadb13RecordBuckets18set_buckets_numberEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef %49)
  %50 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %51 = icmp ult i64 %47, %50
  br i1 %51, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %45
  tail call void @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %47)
  %52 = tail call noundef i64 @_ZN7cascadb13RecordBuckets6lengthEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %53 = getelementptr inbounds i8, ptr %0, i64 40
  %54 = load i64, ptr %53, align 8, !tbaa !12
  %55 = sub i64 %54, %52
  store i64 %55, ptr %53, align 8, !tbaa !12
  %56 = tail call noundef i64 @_ZN7cascadb13RecordBuckets4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %57 = getelementptr inbounds i8, ptr %0, i64 48
  %58 = load i64, ptr %57, align 8, !tbaa !18
  %59 = sub i64 %58, %56
  store i64 %59, ptr %57, align 8, !tbaa !18
  br label %66

.lr.ph:                                           ; preds = %45, %.lr.ph
  %.04043 = phi i64 [ %63, %.lr.ph ], [ %47, %45 ]
  %60 = sub nuw i64 %.04043, %47
  %61 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.04043) #9
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  tail call void @_ZN7cascadb13RecordBuckets10set_bucketEmPSt6vectorINS_6RecordESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef %60, ptr noundef %62)
  %63 = add nuw i64 %.04043, 1
  %64 = tail call noundef i64 @_ZNKSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !21

66:                                               ; preds = %._crit_edge, %._crit_edge47
  %67 = call noundef i64 @_ZN7cascadb13RecordBuckets14buckets_numberEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %.not41 = icmp eq i64 %67, 0
  br i1 %.not41, label %68, label %69

68:                                               ; preds = %66
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 108, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #8
  unreachable

69:                                               ; preds = %66
  %70 = call noundef ptr @_ZN7cascadb13RecordBuckets6bucketEm(ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef 0)
  %71 = call noundef i64 @_ZNKSt6vectorIN7cascadb6RecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  %.not42 = icmp eq i64 %71, 0
  br i1 %.not42, label %72, label %73

72:                                               ; preds = %69
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 110, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb13RecordBuckets5splitERS0_) #8
  unreachable

73:                                               ; preds = %69
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  %.sroa.039.0.copyload = load ptr, ptr %74, align 8, !tbaa !22
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %74, i64 8
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !23
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.039.0.copyload, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.2.0.copyload, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPN7cascadb6RecordESt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr, ptr, ptr) local_unnamed_addr #6

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb13RecordBuckets18set_buckets_numberEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb13RecordBuckets10set_bucketEmPSt6vectorINS_6RecordESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb13RecordBuckets6lengthEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb13RecordBuckets4sizeEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7cascadb6RecordESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }

!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, !7, i64 0}
!6 = !{!"_ZTSN7cascadb13RecordBuckets16RecordBucketInfoE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !10, i64 40}
!13 = !{!"_ZTSN7cascadb13RecordBucketsE", !10, i64 0, !14, i64 8, !10, i64 32, !10, i64 40, !10, i64 48}
!14 = !{!"_ZTSSt6vectorIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7cascadb13RecordBuckets16RecordBucketInfoESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!13, !10, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass