; LLVM IR from weicao/cascadb :: src/tree (node)

; 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::KeyComp" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.23" = type { ptr }
%"class.cascadb::Pivot" = type <{ %"class.cascadb::Slice", %"class.cascadb::Slice", i64, ptr, i32, i32, i32, i16, [2 x i8] }>
%"class.cascadb::DataNode" = type <{ %"class.cascadb::Node", ptr, i32, [4 x i8] }>
%"class.cascadb::Node" = type { ptr, %"class.std::__cxx11::basic_string", i64, %"class.cascadb::Mutex", i8, i8, i8, %struct.timeval, %struct.timeval, i32, i32, %"class.cascadb::RWLock" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.cascadb::Mutex" = type { i8, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.timeval = type { i64, i64 }
%"class.cascadb::RWLock" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%"class.cascadb::InnerNode" = type { %"class.cascadb::DataNode.base", i8, i64, ptr, %"class.cascadb::Slice", i32, i32, i32, i16, %"class.std::vector", i64, i64, i64 }
%"class.cascadb::DataNode.base" = type <{ %"class.cascadb::Node", ptr, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cascadb::Pivot, std::allocator<cascadb::Pivot>>::_Vector_impl" }
%"struct.std::_Vector_base<cascadb::Pivot, std::allocator<cascadb::Pivot>>::_Vector_impl" = type { %"struct.std::_Vector_base<cascadb::Pivot, std::allocator<cascadb::Pivot>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cascadb::Pivot, std::allocator<cascadb::Pivot>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.cascadb::Tree" = type { %"class.std::__cxx11::basic_string", %"class.cascadb::Options", ptr, ptr, ptr, ptr, ptr, ptr }
%"class.cascadb::Options" = type <{ ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8] }>

@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb9InnerNode9add_pivotENS_5SliceEmRSt6vectorIPNS_8DataNodeESaIS4_EE = external hidden unnamed_addr constant [76 x i8], align 1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb6MsgBufC2EPNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb4Node9set_dirtyEb(ptr noundef nonnull align 8 dereferenceable(200), i1 noundef zeroext) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7cascadb9InnerNode15load_all_msgbufEv(ptr noundef nonnull align 8 dereferenceable(312)) #5 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) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb4Node6unlockEv(ptr noundef nonnull align 8 dereferenceable(200)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb4Node7dec_refEv(ptr noundef nonnull align 8 dereferenceable(200)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cascadb9InnerNode9add_pivotENS_5SliceEmRSt6vectorIPNS_8DataNodeESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr %1, i32 %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.cascadb::Slice", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, 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.cascadb::KeyComp", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %18 = alloca %"class.cascadb::Pivot", align 8
  %19 = alloca %"class.cascadb::Slice", align 8
  %20 = alloca { ptr, i32 }, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.cascadb::Slice", align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  store ptr %1, ptr %23, align 8
  %24 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  store i32 %2, ptr %24, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !9
  store ptr %4, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = icmp eq ptr %28, %25
  br i1 %29, label %30, label %31

30:                                               ; preds = %5
  br label %33

31:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 354, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb9InnerNode9add_pivotENS_5SliceEmRSt6vectorIPNS_8DataNodeESaIS4_EE) #9
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  %34 = getelementptr inbounds %"class.cascadb::DataNode", ptr %25, i32 0, i32 2
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %39

37:                                               ; preds = %33
  %38 = call noundef zeroext i1 @_ZN7cascadb9InnerNode15load_all_msgbufEv(ptr noundef nonnull align 8 dereferenceable(312) %25)
  br label %39

39:                                               ; preds = %37, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %40 = getelementptr inbounds %"class.cascadb::InnerNode", ptr %25, i32 0, i32 9
  %41 = call ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = getelementptr inbounds %"class.cascadb::InnerNode", ptr %25, i32 0, i32 9
  %44 = call ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = getelementptr inbounds %"class.cascadb::DataNode", ptr %25, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = getelementptr inbounds %"class.cascadb::Tree", ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds %"class.cascadb::Options", ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !23
  call void @_ZN7cascadb7KeyCompC2EPNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %50)
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  %55 = getelementptr inbounds %"class.cascadb::KeyComp", ptr %13, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  %57 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPN7cascadb5PivotESt6vectorIS3_SaIS3_EEEENS2_5SliceENS2_7KeyCompEET_SB_SB_RKT0_T1_(ptr %52, ptr %54, ptr noundef nonnull align 8 dereferenceable(12) %6, ptr %56)
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %59 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #10
  %60 = getelementptr inbounds %"class.cascadb::DataNode", ptr %25, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = getelementptr inbounds %"class.cascadb::Tree", ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %"class.cascadb::Options", ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  invoke void @_ZN7cascadb6MsgBufC2EPNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(104) %59, ptr noundef %64)
          to label %65 unwind label %102

65:                                               ; preds = %39
  store ptr %59, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.cascadb::InnerNode", ptr %25, i32 0, i32 9
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7cascadb5PivotESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #8
  %67 = call { ptr, i32 } @_ZNK7cascadb5Slice5cloneEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  store { ptr, i32 } %67, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %20, i64 12, i1 false)
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, i32 }, ptr %19, i32 0, i32 1
  %73 = load i32, ptr %72, align 8
  call void @_ZN7cascadb5PivotC2ENS_5SliceEmPNS_6MsgBufE(ptr noundef nonnull align 8 dereferenceable(62) %18, ptr %71, i32 %73, i64 noundef %68, ptr noundef %69)
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.23", ptr %17, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8
  %76 = call ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr %75, ptr noundef nonnull align 8 dereferenceable(62) %18)
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !27
  %78 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %81 = load i32, ptr %80, align 8
  %82 = call noundef i64 @_ZN7cascadb9InnerNode10pivot_sizeENS_5SliceE(ptr noundef nonnull align 8 dereferenceable(312) %25, ptr %79, i32 %81)
  %83 = getelementptr inbounds %"class.cascadb::InnerNode", ptr %25, i32 0, i32 10
  %84 = load i64, ptr %83, align 8, !tbaa !29
  %85 = add i64 %84, %82
  store i64 %85, ptr %83, align 8, !tbaa !29
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call noundef i64 @_ZNK7cascadb6MsgBuf4sizeEv(ptr noundef nonnull align 8 dereferenceable(104) %86)
  %88 = getelementptr inbounds %"class.cascadb::InnerNode", ptr %25, i32 0, i32 12
  %89 = load i64, ptr %88, align 8, !tbaa !37
  %90 = add i64 %89, %87
  store i64 %90, ptr %88, align 8, !tbaa !37
  call void @_ZN7cascadb4Node9set_dirtyEb(ptr noundef nonnull align 8 dereferenceable(200) %25, i1 noundef zeroext true)
  %91 = getelementptr inbounds %"class.cascadb::InnerNode", ptr %25, i32 0, i32 9
  %92 = call noundef i64 @_ZNKSt6vectorIN7cascadb5PivotESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #8
  %93 = add i64 %92, 1
  %94 = getelementptr inbounds %"class.cascadb::DataNode", ptr %25, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = getelementptr inbounds %"class.cascadb::Tree", ptr %95, i32 0, i32 1
  %97 = getelementptr inbounds %"class.cascadb::Options", ptr %96, i32 0, i32 3
  %98 = load i64, ptr %97, align 8, !tbaa !38
  %99 = icmp ugt i64 %93, %98
  br i1 %99, label %100, label %106

100:                                              ; preds = %65
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7cascadb9InnerNode5splitERSt6vectorIPNS_8DataNodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(312) %25, ptr noundef nonnull align 8 dereferenceable(24) %101)
  br label %120

102:                                              ; preds = %39
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %15, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %16, align 4
  call void @_ZdlPvm(ptr noundef %59, i64 noundef 104) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %121

106:                                              ; preds = %65
  br label %107

107:                                              ; preds = %111, %106
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = call noundef i64 @_ZNKSt6vectorIPN7cascadb8DataNodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #8
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %119

111:                                              ; preds = %107
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #8
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  call void @_ZN7cascadb4Node6unlockEv(ptr noundef nonnull align 8 dereferenceable(200) %114)
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #8
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  call void @_ZN7cascadb4Node7dec_refEv(ptr noundef nonnull align 8 dereferenceable(200) %117)
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  br label %107, !llvm.loop !39

119:                                              ; preds = %107
  br label %120

120:                                              ; preds = %119, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  ret void

121:                                              ; preds = %102
  %122 = load ptr, ptr %15, align 8
  %123 = load i32, ptr %16, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPN7cascadb5PivotESt6vectorIS3_SaIS3_EEEENS2_5SliceENS2_7KeyCompEET_SB_SB_RKT0_T1_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(12), ptr) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef nonnull align 8 dereferenceable(62)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZNK7cascadb5Slice5cloneEv(ptr noundef nonnull align 8 dereferenceable(12)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb5PivotC2ENS_5SliceEmPNS_6MsgBufE(ptr noundef nonnull align 8 dereferenceable(62), ptr, i32, i64 noundef, ptr noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7cascadb9InnerNode10pivot_sizeENS_5SliceE(ptr noundef nonnull align 8 dereferenceable(312), ptr, i32) #5 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !21, i64 208}
!12 = !{!"_ZTSN7cascadb8DataNodeE", !13, i64 0, !6, i64 200, !21, i64 208}
!13 = !{!"_ZTSN7cascadb4NodeE", !14, i64 8, !10, i64 40, !16, i64 48, !17, i64 96, !17, i64 97, !17, i64 98, !18, i64 104, !18, i64 120, !19, i64 136, !19, i64 140, !20, i64 144}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"_ZTSN7cascadb5MutexE", !17, i64 0, !7, i64 8}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS7timeval", !10, i64 0, !10, i64 8}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN7cascadb6RWLockE", !7, i64 0}
!21 = !{!"_ZTSN7cascadb10NodeStatusE", !7, i64 0}
!22 = !{!12, !6, i64 200}
!23 = !{!24, !6, i64 40}
!24 = !{!"_ZTSN7cascadb4TreeE", !14, i64 0, !25, i64 32, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!25 = !{!"_ZTSN7cascadb7OptionsE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !19, i64 72, !19, i64 76, !19, i64 80, !19, i64 84, !19, i64 88, !19, i64 92, !26, i64 96, !17, i64 100}
!26 = !{!"_ZTSN7cascadb8CompressE", !7, i64 0}
!27 = !{i64 0, i64 8, !5, i64 8, i64 4, !28}
!28 = !{!19, !19, i64 0}
!29 = !{!30, !10, i64 288}
!30 = !{!"_ZTSN7cascadb9InnerNodeE", !12, i64 0, !17, i64 212, !10, i64 216, !6, i64 224, !31, i64 232, !19, i64 248, !19, i64 252, !19, i64 256, !32, i64 260, !33, i64 264, !10, i64 288, !10, i64 296, !10, i64 304}
!31 = !{!"_ZTSN7cascadb5SliceE", !6, i64 0, !19, i64 8}
!32 = !{!"short", !7, i64 0}
!33 = !{!"_ZTSSt6vectorIN7cascadb5PivotESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN7cascadb5PivotESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7cascadb5PivotESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7cascadb5PivotESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!30, !10, i64 304}
!38 = !{!24, !10, i64 56}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; 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.cascadb::Slice" = type <{ ptr, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.cascadb::KeyComp" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.23" = type { ptr }
%"class.cascadb::Pivot" = type <{ %"class.cascadb::Slice", %"class.cascadb::Slice", i64, ptr, i32, i32, i32, i16, [2 x i8] }>

@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb9InnerNode9add_pivotENS_5SliceEmRSt6vectorIPNS_8DataNodeESaIS4_EE = external hidden unnamed_addr constant [76 x i8], align 1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, 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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb6MsgBufC2EPNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb4Node9set_dirtyEb(ptr noundef nonnull align 8 dereferenceable(200), i1 noundef zeroext) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7cascadb9InnerNode15load_all_msgbufEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb4Node6unlockEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb4Node7dec_refEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cascadb9InnerNode9add_pivotENS_5SliceEmRSt6vectorIPNS_8DataNodeESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr %1, i32 %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.cascadb::Slice", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.cascadb::KeyComp", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.23", align 8
  %10 = alloca %"class.cascadb::Pivot", align 8
  store ptr %1, ptr %6, align 8
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %2, ptr %11, align 8
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = icmp eq ptr %13, %0
  br i1 %14, label %16, label %15

15:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 354, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb9InnerNode9add_pivotENS_5SliceEmRSt6vectorIPNS_8DataNodeESaIS4_EE) #8
  unreachable

16:                                               ; preds = %5
  %17 = getelementptr inbounds i8, ptr %0, i64 208
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = icmp eq i32 %18, 2
  br i1 %19, label %20, label %22

20:                                               ; preds = %16
  %21 = tail call noundef zeroext i1 @_ZN7cascadb9InnerNode15load_all_msgbufEv(ptr noundef nonnull align 8 dereferenceable(312) %0)
  br label %22

22:                                               ; preds = %20, %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %23 = getelementptr inbounds i8, ptr %0, i64 264
  %24 = tail call ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %25 = tail call ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %26 = getelementptr inbounds i8, ptr %0, i64 200
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  call void @_ZN7cascadb7KeyCompC2EPNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %29)
  %30 = load ptr, ptr %8, align 8
  %31 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPN7cascadb5PivotESt6vectorIS3_SaIS3_EEEENS2_5SliceENS2_7KeyCompEET_SB_SB_RKT0_T1_(ptr %24, ptr %25, ptr noundef nonnull align 8 dereferenceable(12) %6, ptr %30)
  store ptr %31, ptr %7, align 8
  %32 = call noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #9
  %33 = load ptr, ptr %26, align 8, !tbaa !21
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  %35 = load ptr, ptr %34, align 8, !tbaa !22
  invoke void @_ZN7cascadb6MsgBufC2EPNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(104) %32, ptr noundef %35)
          to label %36 unwind label %56

36:                                               ; preds = %22
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7cascadb5PivotESt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  %37 = call { ptr, i32 } @_ZNK7cascadb5Slice5cloneEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %.fca.0.extract = extractvalue { ptr, i32 } %37, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %37, 1
  call void @_ZN7cascadb5PivotC2ENS_5SliceEmPNS_6MsgBufE(ptr noundef nonnull align 8 dereferenceable(62) %10, ptr %.fca.0.extract, i32 %.fca.1.extract, i64 noundef %3, ptr noundef nonnull %32)
  %38 = load ptr, ptr %9, align 8
  %39 = call ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %38, ptr noundef nonnull align 8 dereferenceable(62) %10)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #7
  %.sroa.0.0.copyload = load ptr, ptr %6, align 8, !tbaa !5
  %.sroa.2.0.copyload = load i32, ptr %11, align 8, !tbaa !26
  %40 = call noundef i64 @_ZN7cascadb9InnerNode10pivot_sizeENS_5SliceE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr %.sroa.0.0.copyload, i32 %.sroa.2.0.copyload)
  %41 = getelementptr inbounds i8, ptr %0, i64 288
  %42 = load i64, ptr %41, align 8, !tbaa !27
  %43 = add i64 %42, %40
  store i64 %43, ptr %41, align 8, !tbaa !27
  %44 = call noundef i64 @_ZNK7cascadb6MsgBuf4sizeEv(ptr noundef nonnull align 8 dereferenceable(104) %32)
  %45 = getelementptr inbounds i8, ptr %0, i64 304
  %46 = load i64, ptr %45, align 8, !tbaa !35
  %47 = add i64 %46, %44
  store i64 %47, ptr %45, align 8, !tbaa !35
  call void @_ZN7cascadb4Node9set_dirtyEb(ptr noundef nonnull align 8 dereferenceable(200) %0, i1 noundef zeroext true)
  %48 = call noundef i64 @_ZNKSt6vectorIN7cascadb5PivotESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %49 = add i64 %48, 1
  %50 = load ptr, ptr %26, align 8, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %50, i64 56
  %52 = load i64, ptr %51, align 8, !tbaa !36
  %53 = icmp ugt i64 %49, %52
  br i1 %53, label %55, label %.preheader

.preheader:                                       ; preds = %36
  %54 = call noundef i64 @_ZNKSt6vectorIPN7cascadb8DataNodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not18 = icmp eq i64 %54, 0
  br i1 %.not18, label %.loopexit, label %.lr.ph

55:                                               ; preds = %36
  call void @_ZN7cascadb9InnerNode5splitERSt6vectorIPNS_8DataNodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 8 dereferenceable(24) %4)
  br label %.loopexit

56:                                               ; preds = %22
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %32, i64 noundef 104) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  resume { ptr, i32 } %57

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  call void @_ZN7cascadb4Node6unlockEv(ptr noundef nonnull align 8 dereferenceable(200) %59)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  call void @_ZN7cascadb4Node7dec_refEv(ptr noundef nonnull align 8 dereferenceable(200) %61)
  call void @_ZNSt6vectorIPN7cascadb8DataNodeESaIS2_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %62 = call noundef i64 @_ZNKSt6vectorIPN7cascadb8DataNodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not = icmp eq i64 %62, 0
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !37

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPN7cascadb5PivotESt6vectorIS3_SaIS3_EEEENS2_5SliceENS2_7KeyCompEET_SB_SB_RKT0_T1_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(12), ptr) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIN7cascadb5PivotESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr noundef nonnull align 8 dereferenceable(62)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZNK7cascadb5Slice5cloneEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb5PivotC2ENS_5SliceEmPNS_6MsgBufE(ptr noundef nonnull align 8 dereferenceable(62), ptr, i32, i64 noundef, ptr noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7cascadb9InnerNode10pivot_sizeENS_5SliceE(ptr noundef nonnull align 8 dereferenceable(312), ptr, i32) local_unnamed_addr #5 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !20, i64 208}
!10 = !{!"_ZTSN7cascadb8DataNodeE", !11, i64 0, !6, i64 200, !20, i64 208}
!11 = !{!"_ZTSN7cascadb4NodeE", !12, i64 8, !14, i64 40, !15, i64 48, !16, i64 96, !16, i64 97, !16, i64 98, !17, i64 104, !17, i64 120, !18, i64 136, !18, i64 140, !19, i64 144}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN7cascadb5MutexE", !16, i64 0, !7, i64 8}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS7timeval", !14, i64 0, !14, i64 8}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN7cascadb6RWLockE", !7, i64 0}
!20 = !{!"_ZTSN7cascadb10NodeStatusE", !7, i64 0}
!21 = !{!10, !6, i64 200}
!22 = !{!23, !6, i64 40}
!23 = !{!"_ZTSN7cascadb4TreeE", !12, i64 0, !24, i64 32, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!24 = !{!"_ZTSN7cascadb7OptionsE", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !18, i64 72, !18, i64 76, !18, i64 80, !18, i64 84, !18, i64 88, !18, i64 92, !25, i64 96, !16, i64 100}
!25 = !{!"_ZTSN7cascadb8CompressE", !7, i64 0}
!26 = !{!18, !18, i64 0}
!27 = !{!28, !14, i64 288}
!28 = !{!"_ZTSN7cascadb9InnerNodeE", !10, i64 0, !16, i64 212, !14, i64 216, !6, i64 224, !29, i64 232, !18, i64 248, !18, i64 252, !18, i64 256, !30, i64 260, !31, i64 264, !14, i64 288, !14, i64 296, !14, i64 304}
!29 = !{!"_ZTSN7cascadb5SliceE", !6, i64 0, !18, i64 8}
!30 = !{!"short", !7, i64 0}
!31 = !{!"_ZTSSt6vectorIN7cascadb5PivotESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN7cascadb5PivotESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7cascadb5PivotESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7cascadb5PivotESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!28, !14, i64 304}
!36 = !{!23, !14, i64 56}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}


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