; LLVM IR from vczh/herodb :: Kernel/Source/Utility (InMemoryBuffer)

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

%"struct.vl::database::IdObject" = type { i64 }
%"class.vl::Ptr" = type { ptr, ptr, ptr, ptr }
%"class.vl::database::InMemoryBufferSource" = type { %"class.vl::Object", %"class.vl::database::IBufferSource", %"struct.vl::database::IdObject.0", ptr, i64, %"class.vl::SpinLock", %"class.vl::collections::List", %"class.vl::collections::List.1", %"struct.vl::database::IdObject" }
%"class.vl::Object" = type { ptr }
%"class.vl::database::IBufferSource" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"struct.vl::database::IdObject.0" = type { i32 }
%"class.vl::SpinLock" = type { %"class.vl::Object", i64 }
%"class.vl::collections::List" = type { %"class.vl::collections::ListBase.base", %"class.vl::collections::IEnumerable" }
%"class.vl::collections::ListBase.base" = type <{ %"class.vl::collections::ArrayBase.base", i64, i8 }>
%"class.vl::collections::ArrayBase.base" = type { %"class.vl::collections::ListStore", ptr, i64 }
%"class.vl::collections::ListStore" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable" = type { %"class.vl::Interface" }
%"class.vl::collections::List.1" = type { %"class.vl::collections::ListBase.base.7", %"class.vl::collections::IEnumerable.5" }
%"class.vl::collections::ListBase.base.7" = type <{ %"class.vl::collections::ArrayBase.base.6", i64, i8 }>
%"class.vl::collections::ArrayBase.base.6" = type { %"class.vl::collections::ListStore.4", ptr, i64 }
%"class.vl::collections::ListStore.4" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.5" = type { %"class.vl::Interface" }
%"class.vl::database::BufferPageDesc" = type <{ ptr, i64, i8, [7 x i8], i64, i8, [7 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl3PtrINS_8database14BufferPageDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl8database20InMemoryBufferSource9UnmapPageENS0_8IdObjectImLl1EEE(ptr noundef nonnull align 8 dereferenceable(160) %0, i64 %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca %"struct.vl::database::IdObject", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.vl::Ptr", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %4, i32 0, i32 0
  store i64 %1, ptr %10, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8
  %12 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %4, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds %"class.vl::database::InMemoryBufferSource", ptr %11, i32 0, i32 6
  %15 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_8database14BufferPageDescEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %16 = icmp uge i64 %13, %15
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %57

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  %19 = getelementptr inbounds %"class.vl::database::InMemoryBufferSource", ptr %11, i32 0, i32 6
  %20 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %4, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %19, i64 noundef %21)
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %22)
  %23 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_8database14BufferPageDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %24 unwind label %32

24:                                               ; preds = %18
  br i1 %23, label %25, label %31

25:                                               ; preds = %24
  %26 = invoke noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %27 unwind label %32

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.vl::database::BufferPageDesc", ptr %26, i32 0, i32 2
  %29 = load i8, ptr %28, align 8, !tbaa !12, !range !15, !noundef !16
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %36

31:                                               ; preds = %27, %24
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %56

32:                                               ; preds = %47, %45, %38, %36, %25, %18
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %7, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %8, align 4
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  br label %59

36:                                               ; preds = %27
  %37 = invoke noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %38 unwind label %32

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"class.vl::database::BufferPageDesc", ptr %37, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  call void @free(ptr noundef %40) #4
  %41 = getelementptr inbounds %"class.vl::database::InMemoryBufferSource", ptr %11, i32 0, i32 6
  %42 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %4, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %41, i64 noundef %43)
          to label %45 unwind label %32

45:                                               ; preds = %38
  %46 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_8database14BufferPageDescEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef null)
          to label %47 unwind label %32

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"class.vl::database::InMemoryBufferSource", ptr %11, i32 0, i32 7
  %49 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %4, i32 0, i32 0
  %50 = invoke noundef i64 @_ZN2vl11collections4ListImmE3AddERKm(ptr noundef nonnull align 8 dereferenceable(33) %48, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %51 unwind label %32

51:                                               ; preds = %47
  %52 = getelementptr inbounds %"class.vl::database::InMemoryBufferSource", ptr %11, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = atomicrmw sub ptr %53, i64 1 seq_cst, align 8
  %55 = sub i64 %54, 1
  store i1 true, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %56

56:                                               ; preds = %51, %31
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  br label %57

57:                                               ; preds = %56, %17
  %58 = load i1, ptr %3, align 1
  ret i1 %58

59:                                               ; preds = %32
  %60 = load ptr, ptr %7, align 8
  %61 = load i32, ptr %8, align 4
  %62 = insertvalue { ptr, i32 } poison, ptr %60, 0
  %63 = insertvalue { ptr, i32 } %62, i32 %61, 1
  resume { ptr, i32 } %63
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_8database14BufferPageDescEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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, !11, i64 0}
!10 = !{!"_ZTSN2vl8database8IdObjectImLl1EEE", !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !14, i64 16}
!13 = !{!"_ZTSN2vl8database14BufferPageDescE", !6, i64 0, !11, i64 8, !14, i64 16, !11, i64 24, !14, i64 32}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!13, !6, i64 0}
!18 = !{!19, !6, i64 24}
!19 = !{!"_ZTSN2vl8database20InMemoryBufferSourceE", !20, i64 0, !21, i64 8, !22, i64 16, !6, i64 24, !11, i64 32, !24, i64 40, !25, i64 56, !29, i64 104, !10, i64 152}
!20 = !{!"_ZTSN2vl6ObjectE"}
!21 = !{!"_ZTSN2vl8database13IBufferSourceE"}
!22 = !{!"_ZTSN2vl8database8IdObjectIiLl0EEE", !23, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTSN2vl8SpinLockE", !20, i64 0, !11, i64 8}
!25 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EE", !26, i64 0}
!26 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_8database14BufferPageDescEEEPS4_EE", !27, i64 0, !11, i64 24, !14, i64 32}
!27 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_8database14BufferPageDescEEEEE", !28, i64 0, !6, i64 8, !11, i64 16}
!28 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_8database14BufferPageDescEEELb0EEE", !20, i64 0}
!29 = !{!"_ZTSN2vl11collections4ListImmEE", !30, i64 0}
!30 = !{!"_ZTSN2vl11collections8ListBaseImmEE", !31, i64 0, !11, i64 24, !14, i64 32}
!31 = !{!"_ZTSN2vl11collections9ArrayBaseImEE", !32, i64 0, !6, i64 8, !11, i64 16}
!32 = !{!"_ZTSN2vl11collections9ListStoreImLb1EEE", !20, 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"

%"struct.vl::database::IdObject" = type { i64 }
%"class.vl::Ptr" = type { ptr, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl3PtrINS_8database14BufferPageDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl8database20InMemoryBufferSource9UnmapPageENS0_8IdObjectImLl1EEE(ptr noundef nonnull align 8 dereferenceable(160) %0, i64 %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.vl::database::IdObject", align 8
  %4 = alloca %"class.vl::Ptr", align 8
  store i64 %1, ptr %3, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = tail call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_3PtrINS_8database14BufferPageDescEEEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not = icmp ugt i64 %6, %1
  br i1 %.not, label %7, label %31

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  %8 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %1)
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %8)
  %9 = call noundef zeroext i1 @_ZNK2vl3PtrINS_8database14BufferPageDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  br i1 %9, label %10, label %30

10:                                               ; preds = %7
  %11 = call noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load i8, ptr %12, align 8, !tbaa !5, !range !12, !noundef !13
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %30, label %17

15:                                               ; preds = %23, %21, %17
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  resume { ptr, i32 } %16

17:                                               ; preds = %10
  %18 = call noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  call void @free(ptr noundef %19) #4
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EixEl(ptr noundef nonnull align 8 dereferenceable(33) %5, i64 noundef %1)
          to label %21 unwind label %15

21:                                               ; preds = %17
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_8database14BufferPageDescEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef null)
          to label %23 unwind label %15

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = invoke noundef i64 @_ZN2vl11collections4ListImmE3AddERKm(ptr noundef nonnull align 8 dereferenceable(33) %24, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %26 unwind label %15

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  %29 = atomicrmw sub ptr %28, i64 1 seq_cst, align 8
  br label %30

30:                                               ; preds = %7, %10, %26
  %.0 = phi i1 [ true, %26 ], [ false, %10 ], [ false, %7 ]
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %31

31:                                               ; preds = %2, %30
  %.1 = phi i1 [ %.0, %30 ], [ false, %2 ]
  ret i1 %.1
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl3PtrINS_8database14BufferPageDescEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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, !11, i64 16}
!6 = !{!"_ZTSN2vl8database14BufferPageDescE", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 24, !11, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !7, i64 24}
!16 = !{!"_ZTSN2vl8database20InMemoryBufferSourceE", !17, i64 0, !18, i64 8, !19, i64 16, !7, i64 24, !10, i64 32, !21, i64 40, !22, i64 56, !26, i64 104, !30, i64 152}
!17 = !{!"_ZTSN2vl6ObjectE"}
!18 = !{!"_ZTSN2vl8database13IBufferSourceE"}
!19 = !{!"_ZTSN2vl8database8IdObjectIiLl0EEE", !20, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = !{!"_ZTSN2vl8SpinLockE", !17, i64 0, !10, i64 8}
!22 = !{!"_ZTSN2vl11collections4ListINS_3PtrINS_8database14BufferPageDescEEEPS4_EE", !23, i64 0}
!23 = !{!"_ZTSN2vl11collections8ListBaseINS_3PtrINS_8database14BufferPageDescEEEPS4_EE", !24, i64 0, !10, i64 24, !11, i64 32}
!24 = !{!"_ZTSN2vl11collections9ArrayBaseINS_3PtrINS_8database14BufferPageDescEEEEE", !25, i64 0, !7, i64 8, !10, i64 16}
!25 = !{!"_ZTSN2vl11collections9ListStoreINS_3PtrINS_8database14BufferPageDescEEELb0EEE", !17, i64 0}
!26 = !{!"_ZTSN2vl11collections4ListImmEE", !27, i64 0}
!27 = !{!"_ZTSN2vl11collections8ListBaseImmEE", !28, i64 0, !10, i64 24, !11, i64 32}
!28 = !{!"_ZTSN2vl11collections9ArrayBaseImEE", !29, i64 0, !7, i64 8, !10, i64 16}
!29 = !{!"_ZTSN2vl11collections9ListStoreImLb1EEE", !17, i64 0}
!30 = !{!"_ZTSN2vl8database8IdObjectImLl1EEE", !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass