; LLVM IR from cruppstahl/upscaledb :: src/3blob_manager (blob_manager_inmem)

; 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.upscaledb::BlobManager" = type { ptr, ptr, ptr, ptr, i64, i64, i64, i64 }
%struct.ups_record_t = type { i32, ptr, i32 }
%"struct.upscaledb::Context" = type { ptr, ptr, %"struct.upscaledb::Changeset" }
%"struct.upscaledb::Changeset" = type { ptr, %"class.upscaledb::PageCollection" }
%"class.upscaledb::PageCollection" = type { %"struct.upscaledb::IntrusiveList" }
%"struct.upscaledb::IntrusiveList" = type { ptr, ptr, i64 }
%"struct.upscaledb::LocalDb" = type { %"struct.upscaledb::Db", %"struct.upscaledb::ScopedPtr", %"struct.upscaledb::ScopedPtr.1", ptr, %"struct.upscaledb::ScopedPtr.3", i64, %"struct.upscaledb::Histogram" }
%"struct.upscaledb::Db" = type { ptr, ptr, ptr, ptr, %"struct.upscaledb::DbConfig", %"struct.upscaledb::DynamicArray", %"struct.upscaledb::DynamicArray" }
%"struct.upscaledb::DbConfig" = type { i16, i32, i32, i64, i32, i64, i32, i32, %"class.std::__cxx11::basic_string" }
%"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] }
%"struct.upscaledb::DynamicArray" = type <{ ptr, i64, i8, [7 x i8] }>
%"struct.upscaledb::ScopedPtr" = type { %"class.boost::scoped_ptr" }
%"class.boost::scoped_ptr" = type { ptr }
%"struct.upscaledb::ScopedPtr.1" = type { %"class.boost::scoped_ptr.2" }
%"class.boost::scoped_ptr.2" = type { ptr }
%"struct.upscaledb::ScopedPtr.3" = type { %"class.boost::scoped_ptr.4" }
%"class.boost::scoped_ptr.4" = type { ptr }
%"struct.upscaledb::Histogram" = type { ptr, %"struct.upscaledb::DynamicArray", %"struct.upscaledb::DynamicArray", %struct.ups_key_t, %struct.ups_key_t }
%struct.ups_key_t = type { i16, ptr, i32, i32 }
%"struct.upscaledb::Compressor" = type <{ ptr, %"struct.upscaledb::DynamicArray", i32, [4 x i8] }>
%"struct.upscaledb::PBlobHeader" = type <{ i64, i32, i32, i32 }>

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN9upscaledb19InMemoryBlobManager8allocateEPNS_7ContextEP12ups_record_tj(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %16 = load ptr, ptr %5, align 8
  %17 = getelementptr inbounds %"struct.upscaledb::BlobManager", ptr %16, i32 0, i32 6
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = add i64 %18, 1
  store i64 %19, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ups_record_t, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  store ptr %22, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ups_record_t, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !16
  store i32 %25, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ups_record_t, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !16
  store i32 %28, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.upscaledb::Context", ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds %"struct.upscaledb::LocalDb", ptr %31, i32 0, i32 4
  %33 = call noundef ptr @_ZNK5boost10scoped_ptrIN9upscaledb10CompressorEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #4
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %69

36:                                               ; preds = %4
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds %"struct.upscaledb::BlobManager", ptr %16, i32 0, i32 4
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = add i64 %40, %38
  store i64 %41, ptr %39, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ups_record_t, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ups_record_t, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !16
  %49 = load ptr, ptr %42, align 8, !tbaa !23
  %50 = getelementptr inbounds ptr, ptr %49, i64 2
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef i32 %51(ptr noundef nonnull align 8 dereferenceable(36) %42, ptr noundef %45, i32 noundef %48, ptr noundef null, i32 noundef 0)
  store i32 %52, ptr %13, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ups_record_t, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !16
  %57 = icmp ult i32 %53, %56
  br i1 %57, label %58, label %63

58:                                               ; preds = %36
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.upscaledb::Compressor", ptr %59, i32 0, i32 1
  %61 = call noundef ptr @_ZN9upscaledb12DynamicArrayIhE4dataEv(ptr noundef nonnull align 8 dereferenceable(17) %60)
  store ptr %61, ptr %9, align 8, !tbaa !5
  %62 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %62, ptr %10, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %58, %36
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds %"struct.upscaledb::BlobManager", ptr %16, i32 0, i32 5
  %67 = load i64, ptr %66, align 8, !tbaa !25
  %68 = add i64 %67, %65
  store i64 %68, ptr %66, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %69

69:                                               ; preds = %63, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %70 = getelementptr inbounds %"struct.upscaledb::BlobManager", ptr %16, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 20
  %75 = load ptr, ptr %71, align 8, !tbaa !23
  %76 = getelementptr inbounds ptr, ptr %75, i64 13
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef i64 %77(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef %74)
  %79 = inttoptr i64 %78 to ptr
  store ptr %79, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %80, ptr %15, align 8, !tbaa !5
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = ptrtoint ptr %81 to i64
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.upscaledb::PBlobHeader", ptr %83, i32 0, i32 0
  store i64 %82, ptr %84, align 1, !tbaa !27
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = icmp ne i32 %85, %86
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, i32 1, i32 0
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.upscaledb::PBlobHeader", ptr %90, i32 0, i32 1
  store i32 %89, ptr %91, align 1, !tbaa !29
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 20
  %95 = trunc i64 %94 to i32
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.upscaledb::PBlobHeader", ptr %96, i32 0, i32 2
  store i32 %95, ptr %97, align 1, !tbaa !30
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.upscaledb::PBlobHeader", ptr %99, i32 0, i32 3
  store i32 %98, ptr %100, align 1, !tbaa !31
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 20
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %102, ptr align 1 %103, i64 %105, i1 false)
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = ptrtoint ptr %106 to i64
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret i64 %107
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 48}
!12 = !{!"_ZTSN9upscaledb11BlobManagerE", !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTS12ups_record_t", !10, i64 0, !6, i64 8, !10, i64 16}
!16 = !{!15, !10, i64 0}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSN9upscaledb7ContextE", !6, i64 0, !6, i64 8, !19, i64 16}
!19 = !{!"_ZTSN9upscaledb9ChangesetE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSN9upscaledb14PageCollectionILi1EEE", !21, i64 0}
!21 = !{!"_ZTSN9upscaledb13IntrusiveListINS_4PageELi1EEE", !6, i64 0, !6, i64 8, !13, i64 16}
!22 = !{!12, !13, i64 32}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!12, !13, i64 40}
!26 = !{!12, !6, i64 24}
!27 = !{!28, !13, i64 0}
!28 = !{!"_ZTSN9upscaledb11PBlobHeaderE", !13, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!29 = !{!28, !10, i64 8}
!30 = !{!28, !10, i64 12}
!31 = !{!28, !10, i64 16}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN9upscaledb19InMemoryBlobManager8allocateEPNS_7ContextEP12ups_record_tj(ptr nocapture noundef nonnull align 8 dereferenceable(64) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3) unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = add i64 %6, 1
  store i64 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !11
  %10 = load i32, ptr %2, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %12, i64 184
  %14 = tail call noundef ptr @_ZNK5boost10scoped_ptrIN9upscaledb10CompressorEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  %.not = icmp eq ptr %14, null
  %.pre34 = zext i32 %10 to i64
  br i1 %.not, label %._crit_edge, label %15

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load i64, ptr %16, align 8, !tbaa !20
  %18 = add i64 %17, %.pre34
  store i64 %18, ptr %16, align 8, !tbaa !20
  %19 = load ptr, ptr %8, align 8, !tbaa !11
  %20 = load i32, ptr %2, align 8, !tbaa !14
  %21 = load ptr, ptr %14, align 8, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load ptr, ptr %22, align 8
  %24 = tail call noundef i32 %23(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef %19, i32 noundef %20, ptr noundef null, i32 noundef 0)
  %25 = load i32, ptr %2, align 8, !tbaa !14
  %26 = icmp ult i32 %24, %25
  br i1 %26, label %27, label %30

27:                                               ; preds = %15
  %28 = getelementptr inbounds i8, ptr %14, i64 8
  %29 = tail call noundef ptr @_ZN9upscaledb12DynamicArrayIhE4dataEv(ptr noundef nonnull align 8 dereferenceable(17) %28)
  %.pre = zext i32 %24 to i64
  br label %30

30:                                               ; preds = %27, %15
  %.pre-phi = phi i64 [ %.pre, %27 ], [ %.pre34, %15 ]
  %.029 = phi i32 [ %24, %27 ], [ %10, %15 ]
  %.0 = phi ptr [ %29, %27 ], [ %9, %15 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = load i64, ptr %31, align 8, !tbaa !23
  %33 = add i64 %32, %.pre-phi
  store i64 %33, ptr %31, align 8, !tbaa !23
  br label %._crit_edge

._crit_edge:                                      ; preds = %4, %30
  %.pre-phi35 = phi i64 [ %.pre-phi, %30 ], [ %.pre34, %4 ]
  %.130 = phi i32 [ %.029, %30 ], [ %10, %4 ]
  %.1 = phi ptr [ %.0, %30 ], [ %9, %4 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !24
  %36 = add nuw nsw i64 %.pre-phi35, 20
  %37 = load ptr, ptr %35, align 8, !tbaa !21
  %38 = getelementptr inbounds i8, ptr %37, i64 104
  %39 = load ptr, ptr %38, align 8
  %40 = tail call noundef i64 %39(ptr noundef nonnull align 8 dereferenceable(16) %35, i64 noundef %36)
  %41 = inttoptr i64 %40 to ptr
  store i64 %40, ptr %41, align 1, !tbaa !25
  %.not33 = icmp ne i32 %10, %.130
  %42 = zext i1 %.not33 to i32
  %43 = getelementptr inbounds i8, ptr %41, i64 8
  store i32 %42, ptr %43, align 1, !tbaa !27
  %44 = trunc i64 %36 to i32
  %45 = getelementptr inbounds i8, ptr %41, i64 12
  store i32 %44, ptr %45, align 1, !tbaa !28
  %46 = getelementptr inbounds i8, ptr %41, i64 16
  store i32 %10, ptr %46, align 1, !tbaa !29
  %47 = getelementptr inbounds i8, ptr %41, i64 20
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %47, ptr align 1 %.1, i64 %.pre-phi35, i1 false)
  ret i64 %40
}

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !10, i64 48}
!6 = !{!"_ZTSN9upscaledb11BlobManagerE", !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!12, !7, i64 8}
!12 = !{!"_ZTS12ups_record_t", !13, i64 0, !7, i64 8, !13, i64 16}
!13 = !{!"int", !8, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!16, !7, i64 8}
!16 = !{!"_ZTSN9upscaledb7ContextE", !7, i64 0, !7, i64 8, !17, i64 16}
!17 = !{!"_ZTSN9upscaledb9ChangesetE", !7, i64 0, !18, i64 8}
!18 = !{!"_ZTSN9upscaledb14PageCollectionILi1EEE", !19, i64 0}
!19 = !{!"_ZTSN9upscaledb13IntrusiveListINS_4PageELi1EEE", !7, i64 0, !7, i64 8, !10, i64 16}
!20 = !{!6, !10, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !9, i64 0}
!23 = !{!6, !10, i64 40}
!24 = !{!6, !7, i64 24}
!25 = !{!26, !10, i64 0}
!26 = !{!"_ZTSN9upscaledb11PBlobHeaderE", !10, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!27 = !{!26, !13, i64 8}
!28 = !{!26, !13, i64 12}
!29 = !{!26, !13, i64 16}


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