; LLVM IR from weicao/cascadb :: src/serialize/layout.ll (ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE)

; 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::ScopedMutex" = type { i8, ptr }
%"class.cascadb::Slice" = type <{ ptr, i32, [4 x i8] }>
%"struct.cascadb::Layout::AsyncWriteReq" = type { i64, ptr, %"struct.cascadb::BlockMeta", %"class.cascadb::Slice" }
%"struct.cascadb::BlockMeta" = type { i64, i32, i32, i16, i16 }
%"class.cascadb::Layout" = type { ptr, i64, %"class.cascadb::Options", %"class.cascadb::Mutex", i64, ptr, %"class.cascadb::Mutex", %"class.std::map", %"class.std::map", %"class.cascadb::Mutex", %"class.cascadb::Mutex", %"class.std::deque", %"class.std::deque", i64, i64 }
%"class.cascadb::Options" = type <{ ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, cascadb::BlockMeta *>, std::_Select1st<std::pair<const unsigned long, cascadb::BlockMeta *>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, cascadb::BlockMeta *>, std::_Select1st<std::pair<const unsigned long, cascadb::BlockMeta *>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<cascadb::Layout::Hole, std::allocator<cascadb::Layout::Hole>>::_Deque_impl" }
%"struct.std::_Deque_base<cascadb::Layout::Hole, std::allocator<cascadb::Layout::Hole>>::_Deque_impl" = type { %"struct.std::_Deque_base<cascadb::Layout::Hole, std::allocator<cascadb::Layout::Hole>>::_Deque_impl_data" }
%"struct.std::_Deque_base<cascadb::Layout::Hole, std::allocator<cascadb::Layout::Hole>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [50 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE = external hidden unnamed_addr constant [72 x i8], align 1

; 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) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare noundef zeroext i16 @_ZN7cascadb5crc16EPKcj(ptr noundef, i32 noundef) #7

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20aio_complete_handlerPvN7cascadb9AIOStatusE(ptr noundef, i8, i64) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE(ptr noundef nonnull align 8 dereferenceable(600) %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca { i64, i64 }, align 8
  %16 = alloca %"class.cascadb::ScopedMutex", align 8
  %17 = alloca %"class.cascadb::Slice", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = call noundef i64 @_ZN7cascadb5Block8capacityEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = call noundef i64 @_ZN7cascadb5Block4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %21)
  %23 = add i64 %22, 4096
  %24 = sub i64 %23, 1
  %25 = and i64 %24, -4096
  %26 = icmp eq i64 %20, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %5
  br label %30

28:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 245, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE) #11
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #12
  %31 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #13
  call void @llvm.memset.p0.i64(ptr align 16 %31, i8 0, i64 56, i1 false)
  invoke void @_ZN7cascadb6Layout13AsyncWriteReqC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %31)
          to label %32 unwind label %107

32:                                               ; preds = %30
  store ptr %31, ptr %11, align 8, !tbaa !5
  %33 = load i64, ptr %7, align 8, !tbaa !9
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %34, i32 0, i32 0
  store i64 %33, ptr %35, align 8, !tbaa !13
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %37, i32 0, i32 1
  store ptr %36, ptr %38, align 8, !tbaa !18
  %39 = load i32, ptr %9, align 4, !tbaa !11
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %"struct.cascadb::BlockMeta", ptr %41, i32 0, i32 1
  store i32 %39, ptr %42, align 8, !tbaa !19
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = call noundef i64 @_ZN7cascadb5Block4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %43)
  %45 = trunc i64 %44 to i32
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %"struct.cascadb::BlockMeta", ptr %47, i32 0, i32 2
  store i32 %45, ptr %48, align 4, !tbaa !20
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN7cascadb5Block6bufferEv(ptr noundef nonnull align 8 dereferenceable(32) %49)
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %51, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 8 %50, i64 12, i1 false), !tbaa.struct !21
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %53, i32 0, i32 3
  %55 = call noundef i64 @_ZNK7cascadb5Slice4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %54)
  %56 = call noundef i64 @_ZN7cascadb6Layout10get_offsetEm(ptr noundef nonnull align 8 dereferenceable(600) %18, i64 noundef %55)
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %"struct.cascadb::BlockMeta", ptr %58, i32 0, i32 0
  store i64 %56, ptr %59, align 8, !tbaa !22
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %60, i32 0, i32 3
  %62 = call noundef ptr @_ZNK7cascadb5Slice4dataEv(ptr noundef nonnull align 8 dereferenceable(12) %61)
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %63, i32 0, i32 3
  %65 = call noundef i64 @_ZNK7cascadb5Slice4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %64)
  %66 = trunc i64 %65 to i32
  %67 = call noundef zeroext i16 @_ZN7cascadb5crc16EPKcj(ptr noundef %62, i32 noundef %66)
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %68, i32 0, i32 2
  %70 = getelementptr inbounds %"struct.cascadb::BlockMeta", ptr %69, i32 0, i32 3
  store i16 %67, ptr %70, align 8, !tbaa !23
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = call noundef ptr @_ZN7cascadb5Block5startEv(ptr noundef nonnull align 8 dereferenceable(32) %71)
  %73 = load i32, ptr %9, align 4, !tbaa !11
  %74 = call noundef zeroext i16 @_ZN7cascadb5crc16EPKcj(ptr noundef %72, i32 noundef %73)
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %75, i32 0, i32 2
  %77 = getelementptr inbounds %"struct.cascadb::BlockMeta", ptr %76, i32 0, i32 4
  store i16 %74, ptr %77, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #12
  %78 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #13
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN7cascadb6Layout18handle_async_writeEPNS0_13AsyncWriteReqENS_9AIOStatusE to i64), i64 0 }, ptr %15, align 8, !tbaa !25
  %80 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %81 = load i64, ptr %80, align 8
  %82 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %83 = load i64, ptr %82, align 8
  invoke void @_ZN7cascadb8CallbackC2INS_6LayoutEPNS2_13AsyncWriteReqENS_9AIOStatusEEEPT_MS6_FvT0_T1_ES8_(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef %18, i64 %81, i64 %83, ptr noundef %79)
          to label %84 unwind label %111

84:                                               ; preds = %32
  store ptr %78, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #12
  %85 = getelementptr inbounds %"class.cascadb::Layout", ptr %18, i32 0, i32 3
  call void @_ZN7cascadb11ScopedMutexC2EPNS_5MutexE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %85)
  %86 = getelementptr inbounds %"class.cascadb::Layout", ptr %18, i32 0, i32 13
  %87 = load i64, ptr %86, align 8, !tbaa !26
  %88 = add i64 %87, 1
  store i64 %88, ptr %86, align 8, !tbaa !26
  invoke void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %89 unwind label %115

89:                                               ; preds = %84
  %90 = getelementptr inbounds %"class.cascadb::Layout", ptr %18, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !45
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %92, i32 0, i32 2
  %94 = getelementptr inbounds %"struct.cascadb::BlockMeta", ptr %93, i32 0, i32 0
  %95 = load i64, ptr %94, align 8, !tbaa !22
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.cascadb::Layout::AsyncWriteReq", ptr %96, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %97, i64 16, i1 false), !tbaa.struct !21
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %102 = load i32, ptr %101, align 8
  %103 = load ptr, ptr %91, align 8, !tbaa !46
  %104 = getelementptr inbounds ptr, ptr %103, i64 5
  %105 = load ptr, ptr %104, align 8
  invoke void %105(ptr noundef nonnull align 8 dereferenceable(8) %91, i64 noundef %95, ptr %100, i32 %102, ptr noundef %98, ptr noundef @_ZL20aio_complete_handlerPvN7cascadb9AIOStatusE)
          to label %106 unwind label %115

106:                                              ; preds = %89
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  ret void

107:                                              ; preds = %30
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %31, i64 noundef 56) #14
  br label %120

111:                                              ; preds = %32
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %78, i64 noundef 8) #14
  br label %119

115:                                              ; preds = %89, %84
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #12
  br label %119

119:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #12
  br label %120

120:                                              ; preds = %119, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  br label %121

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb5Block8capacityEv(ptr noundef nonnull align 8 dereferenceable(32)) #9 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7cascadb6Layout13AsyncWriteReqC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #10 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb6Layout18handle_async_writeEPNS0_13AsyncWriteReqENS_9AIOStatusE(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef, i8, i64) #5 align 2

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #7 = { "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: write) }
attributes #9 = { 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 #10 = { 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 #11 = { noreturn nounwind }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN7cascadb6Layout13AsyncWriteReqE", !10, i64 0, !6, i64 8, !15, i64 16, !17, i64 40}
!15 = !{!"_ZTSN7cascadb9BlockMetaE", !10, i64 0, !12, i64 8, !12, i64 12, !16, i64 16, !16, i64 18}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSN7cascadb5SliceE", !6, i64 0, !12, i64 8}
!18 = !{!14, !6, i64 8}
!19 = !{!14, !12, i64 24}
!20 = !{!14, !12, i64 28}
!21 = !{i64 0, i64 8, !5, i64 8, i64 4, !11}
!22 = !{!14, !10, i64 16}
!23 = !{!14, !16, i64 32}
!24 = !{!14, !16, i64 34}
!25 = !{!7, !7, i64 0}
!26 = !{!27, !10, i64 584}
!27 = !{!"_ZTSN7cascadb6LayoutE", !6, i64 0, !10, i64 8, !28, i64 16, !31, i64 120, !10, i64 168, !6, i64 176, !31, i64 184, !32, i64 232, !32, i64 280, !31, i64 328, !31, i64 376, !40, i64 424, !40, i64 504, !10, i64 584, !10, i64 592}
!28 = !{!"_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, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !29, i64 96, !30, i64 100}
!29 = !{!"_ZTSN7cascadb8CompressE", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN7cascadb5MutexE", !30, i64 0, !7, i64 8}
!32 = !{!"_ZTSSt3mapImPN7cascadb9BlockMetaESt4lessImESaISt4pairIKmS2_EEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN7cascadb9BlockMetaEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN7cascadb9BlockMetaEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !35, i64 0, !37, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessImE"}
!37 = !{!"_ZTSSt15_Rb_tree_header", !38, i64 0, !10, i64 32}
!38 = !{!"_ZTSSt18_Rb_tree_node_base", !39, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!39 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!40 = !{!"_ZTSSt5dequeIN7cascadb6Layout4HoleESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSSt11_Deque_baseIN7cascadb6Layout4HoleESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSNSt11_Deque_baseIN7cascadb6Layout4HoleESaIS2_EE11_Deque_implE", !43, i64 0}
!43 = !{!"_ZTSNSt11_Deque_baseIN7cascadb6Layout4HoleESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !10, i64 8, !44, i64 16, !44, i64 48}
!44 = !{!"_ZTSSt15_Deque_iteratorIN7cascadb6Layout4HoleERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!45 = !{!27, !6, i64 0}
!46 = !{!47, !47, i64 0}
!47 = !{!"vtable pointer", !8, 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.cascadb::ScopedMutex" = type { i8, ptr }

@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [50 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE = external hidden unnamed_addr constant [72 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare noundef zeroext i16 @_ZN7cascadb5crc16EPKcj(ptr noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZN7cascadb5Block6bufferEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20aio_complete_handlerPvN7cascadb9AIOStatusE(ptr noundef, i8, i64) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE(ptr noundef nonnull align 8 dereferenceable(600) %0, i64 noundef %1, ptr noundef nonnull %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.cascadb::ScopedMutex", align 8
  %7 = tail call noundef i64 @_ZN7cascadb5Block8capacityEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %8 = tail call noundef i64 @_ZN7cascadb5Block4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %9 = add i64 %8, 4095
  %10 = and i64 %9, -4096
  %11 = icmp eq i64 %7, %10
  br i1 %11, label %13, label %12

12:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.1, i32 noundef 245, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb6Layout11async_writeEmPNS_5BlockEjPNS_8CallbackE) #11
  unreachable

13:                                               ; preds = %5
  %14 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #12
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(56) %14, i8 0, i64 56, i1 false)
  invoke void @_ZN7cascadb6Layout13AsyncWriteReqC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %15 unwind label %47

15:                                               ; preds = %13
  store i64 %1, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %4, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %14, i64 16
  %18 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 %3, ptr %18, align 8, !tbaa !16
  %19 = tail call noundef i64 @_ZN7cascadb5Block4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %20 = trunc i64 %19 to i32
  %21 = getelementptr inbounds i8, ptr %14, i64 28
  store i32 %20, ptr %21, align 4, !tbaa !17
  %22 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZN7cascadb5Block6bufferEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %23 = getelementptr inbounds i8, ptr %14, i64 40
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %23, ptr noundef nonnull align 8 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !18
  %24 = tail call noundef i64 @_ZNK7cascadb5Slice4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %23)
  %25 = tail call noundef i64 @_ZN7cascadb6Layout10get_offsetEm(ptr noundef nonnull align 8 dereferenceable(600) %0, i64 noundef %24)
  store i64 %25, ptr %17, align 8, !tbaa !21
  %26 = tail call noundef ptr @_ZNK7cascadb5Slice4dataEv(ptr noundef nonnull align 8 dereferenceable(12) %23)
  %27 = tail call noundef i64 @_ZNK7cascadb5Slice4sizeEv(ptr noundef nonnull align 8 dereferenceable(12) %23)
  %28 = trunc i64 %27 to i32
  %29 = tail call noundef zeroext i16 @_ZN7cascadb5crc16EPKcj(ptr noundef %26, i32 noundef %28)
  %30 = getelementptr inbounds i8, ptr %14, i64 32
  store i16 %29, ptr %30, align 8, !tbaa !22
  %31 = tail call noundef ptr @_ZN7cascadb5Block5startEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %32 = tail call noundef zeroext i16 @_ZN7cascadb5crc16EPKcj(ptr noundef %31, i32 noundef %3)
  %33 = getelementptr inbounds i8, ptr %14, i64 34
  store i16 %32, ptr %33, align 2, !tbaa !23
  %34 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #12
  invoke void @_ZN7cascadb8CallbackC2INS_6LayoutEPNS2_13AsyncWriteReqENS_9AIOStatusEEEPT_MS6_FvT0_T1_ES8_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull %0, i64 ptrtoint (ptr @_ZN7cascadb6Layout18handle_async_writeEPNS0_13AsyncWriteReqENS_9AIOStatusE to i64), i64 0, ptr noundef nonnull %14)
          to label %35 unwind label %49

35:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #13
  %36 = getelementptr inbounds i8, ptr %0, i64 120
  call void @_ZN7cascadb11ScopedMutexC2EPNS_5MutexE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %36)
  %37 = getelementptr inbounds i8, ptr %0, i64 584
  %38 = load i64, ptr %37, align 8, !tbaa !24
  %39 = add i64 %38, 1
  store i64 %39, ptr %37, align 8, !tbaa !24
  invoke void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %40 unwind label %51

40:                                               ; preds = %35
  %41 = load ptr, ptr %0, align 8, !tbaa !43
  %42 = load i64, ptr %17, align 8, !tbaa !21
  %.sroa.0.0.copyload = load ptr, ptr %23, align 8, !tbaa !19
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 48
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !20
  %43 = load ptr, ptr %41, align 8, !tbaa !44
  %44 = getelementptr inbounds i8, ptr %43, i64 40
  %45 = load ptr, ptr %44, align 8
  invoke void %45(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %42, ptr %.sroa.0.0.copyload, i32 %.sroa.2.0.copyload, ptr noundef nonnull %34, ptr noundef nonnull @_ZL20aio_complete_handlerPvN7cascadb9AIOStatusE)
          to label %46 unwind label %51

46:                                               ; preds = %40
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #13
  ret void

47:                                               ; preds = %13
  %48 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 56) #14
  br label %53

49:                                               ; preds = %15
  %50 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 8) #14
  br label %53

51:                                               ; preds = %40, %35
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #13
  br label %53

53:                                               ; preds = %49, %51, %47
  %.pn.pn = phi { ptr, i32 } [ %48, %47 ], [ %52, %51 ], [ %50, %49 ]
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb5Block8capacityEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #9 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7cascadb6Layout13AsyncWriteReqC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #10 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7cascadb5Block5startEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb6Layout18handle_async_writeEPNS0_13AsyncWriteReqENS_9AIOStatusE(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef, i8, i64) #5 align 2

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #7 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { 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 #11 = { noreturn nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { nounwind }
attributes #14 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7cascadb6Layout13AsyncWriteReqE", !7, i64 0, !10, i64 8, !11, i64 16, !14, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN7cascadb9BlockMetaE", !7, i64 0, !12, i64 8, !12, i64 12, !13, i64 16, !13, i64 18}
!12 = !{!"int", !8, i64 0}
!13 = !{!"short", !8, i64 0}
!14 = !{!"_ZTSN7cascadb5SliceE", !10, i64 0, !12, i64 8}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !12, i64 24}
!17 = !{!6, !12, i64 28}
!18 = !{i64 0, i64 8, !19, i64 8, i64 4, !20}
!19 = !{!10, !10, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !13, i64 32}
!23 = !{!6, !13, i64 34}
!24 = !{!25, !7, i64 584}
!25 = !{!"_ZTSN7cascadb6LayoutE", !10, i64 0, !7, i64 8, !26, i64 16, !29, i64 120, !7, i64 168, !10, i64 176, !29, i64 184, !30, i64 232, !30, i64 280, !29, i64 328, !29, i64 376, !38, i64 424, !38, i64 504, !7, i64 584, !7, i64 592}
!26 = !{!"_ZTSN7cascadb7OptionsE", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !27, i64 96, !28, i64 100}
!27 = !{!"_ZTSN7cascadb8CompressE", !8, i64 0}
!28 = !{!"bool", !8, i64 0}
!29 = !{!"_ZTSN7cascadb5MutexE", !28, i64 0, !8, i64 8}
!30 = !{!"_ZTSSt3mapImPN7cascadb9BlockMetaESt4lessImESaISt4pairIKmS2_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN7cascadb9BlockMetaEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN7cascadb9BlockMetaEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessImE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !7, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!38 = !{!"_ZTSSt5dequeIN7cascadb6Layout4HoleESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSSt11_Deque_baseIN7cascadb6Layout4HoleESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt11_Deque_baseIN7cascadb6Layout4HoleESaIS2_EE11_Deque_implE", !41, i64 0}
!41 = !{!"_ZTSNSt11_Deque_baseIN7cascadb6Layout4HoleESaIS2_EE16_Deque_impl_dataE", !10, i64 0, !7, i64 8, !42, i64 16, !42, i64 48}
!42 = !{!"_ZTSSt15_Deque_iteratorIN7cascadb6Layout4HoleERS2_PS2_E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!43 = !{!25, !10, i64 0}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass