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

; 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.vl::Ptr" = type { ptr, ptr, ptr, ptr }
%"struct.vl::database::IdObject" = type { i32 }
%"struct.vl::database::IdObject.17" = type { i64 }
%"struct.vl::database::IdObject.16" = type { i64 }
%"struct.vl::database::IdObject.15" = type { i64 }
%"class.vl::database::log_internal::LogReader" = type { %"class.vl::Object", %"class.vl::database::ILogReader", ptr, ptr, %"struct.vl::database::IdObject", ptr, ptr, %"struct.vl::database::IdObject.17", %"struct.vl::database::IdObject.16", %"class.vl::Ptr.38" }
%"class.vl::Object" = type { ptr }
%"class.vl::database::ILogReader" = type { %"class.vl::database::ILogAccessor" }
%"class.vl::database::ILogAccessor" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Ptr.38" = type { ptr, ptr, ptr, ptr }
%"class.vl::database::log_internal::LogTransDesc" = type { %"struct.vl::database::IdObject.16", %"struct.vl::database::IdObject.16", %"class.vl::Ptr.37" }
%"class.vl::Ptr.37" = type { ptr, ptr, ptr, ptr }

@_ZTIN2vl5ErrorE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [146 x i32], align 4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 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) #1

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress uwtable
declare dso_local i64 @_ZN2vl8database12log_internal14LogAddressItem15ReadAddressItemENS0_8IdObjectImLl3EEE(ptr noundef nonnull align 8 dereferenceable(88), i64) #3 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN2vl8database8IdObjectImLl2EE7InvalidEv() #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl8database12log_internal15LogTransactions12GetTransDescENS0_8IdObjectImLl3EEE(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64) #3 align 2

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

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

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

declare noundef zeroext i1 @_ZN2vl8database13BufferManager13EncodePointerERNS0_8IdObjectImLl2EEENS2_ImLl1EEEm(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(8), i64, i64 noundef) #4

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

declare noundef zeroext i1 @_ZN2vl8database13BufferManager13DecodePointerENS0_8IdObjectImLl2EEERNS2_ImLl1EEERm(ptr noundef nonnull align 8 dereferenceable(168), i64, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl8database12log_internal9LogReaderC2ERNS_8SpinLockEPNS0_13BufferManagerENS0_8IdObjectIiLl0EEEPNS1_14LogAddressItemEPNS1_15LogTransactionsENS7_ImLl3EEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %3, i32 %4, ptr noundef %5, ptr noundef %6, i64 %7) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"struct.vl::database::IdObject", align 4
  %10 = alloca %"struct.vl::database::IdObject.17", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.vl::Ptr", align 8
  %20 = alloca %"struct.vl::database::IdObject.17", align 8
  %21 = alloca %"struct.vl::database::IdObject.16", align 8
  %22 = alloca %"struct.vl::database::IdObject.17", align 8
  %23 = alloca %"struct.vl::database::IdObject.15", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.vl::database::IdObject.16", align 8
  %26 = alloca %"struct.vl::database::IdObject.15", align 8
  %27 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %9, i32 0, i32 0
  store i32 %4, ptr %27, align 4
  %28 = getelementptr inbounds %"struct.vl::database::IdObject.17", ptr %10, i32 0, i32 0
  store i64 %7, ptr %28, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8
  %30 = load ptr, ptr %12, align 8
  call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  %31 = getelementptr inbounds i8, ptr %29, i64 8
  %32 = getelementptr inbounds ptr, ptr %30, i64 1
  call void @_ZN2vl8database10ILogReaderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %32) #7
  %33 = load ptr, ptr %30, align 8
  store ptr %33, ptr %29, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %30, i64 4
  %35 = load ptr, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %29, i64 8
  store ptr %35, ptr %36, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %30, i64 5
  %38 = load ptr, ptr %37, align 8
  %39 = load ptr, ptr %29, align 8, !tbaa !9
  %40 = getelementptr i8, ptr %39, i64 -24
  %41 = load i64, ptr %40, align 8
  %42 = getelementptr inbounds i8, ptr %29, i64 %41
  store ptr %38, ptr %42, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %30, i64 6
  %44 = load ptr, ptr %43, align 8
  %45 = load ptr, ptr %29, align 8, !tbaa !9
  %46 = getelementptr i8, ptr %45, i64 -32
  %47 = load i64, ptr %46, align 8
  %48 = getelementptr inbounds i8, ptr %29, i64 %47
  store ptr %44, ptr %48, align 8, !tbaa !9
  %49 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 2
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %50, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 3
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %52, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 4 %9, i64 4, i1 false), !tbaa.struct !21
  %54 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 5
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %55, ptr %54, align 8, !tbaa !23
  %56 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 6
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %57, ptr %56, align 8, !tbaa !24
  %58 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %58, ptr align 8 %10, i64 8, i1 false), !tbaa.struct !25
  %59 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 8
  %60 = invoke i64 @_ZN2vl8database8IdObjectImLl2EE7InvalidEv()
          to label %61 unwind label %78

61:                                               ; preds = %8
  %62 = getelementptr inbounds %"struct.vl::database::IdObject.16", ptr %59, i32 0, i32 0
  store i64 %60, ptr %62, align 8
  %63 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 9
  invoke void @_ZN2vl3PtrINS_6stream12MemoryStreamEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %64 unwind label %78

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  %65 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 6
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %67, i64 8, i1 false), !tbaa.struct !25
  %68 = getelementptr inbounds %"struct.vl::database::IdObject.17", ptr %20, i32 0, i32 0
  %69 = load i64, ptr %68, align 8
  invoke void @_ZN2vl8database12log_internal15LogTransactions12GetTransDescENS0_8IdObjectImLl3EEE(ptr dead_on_unwind writable sret(%"class.vl::Ptr") align 8 %19, ptr noundef nonnull align 8 dereferenceable(136) %66, i64 %69)
          to label %70 unwind label %82

70:                                               ; preds = %64
  %71 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %72 unwind label %86

72:                                               ; preds = %70
  br i1 %71, label %73, label %90

73:                                               ; preds = %72
  %74 = invoke noundef ptr @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %75 unwind label %86

75:                                               ; preds = %73
  %76 = getelementptr inbounds %"class.vl::database::log_internal::LogTransDesc", ptr %74, i32 0, i32 0
  %77 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %77, ptr align 8 %76, i64 8, i1 false), !tbaa.struct !25
  br label %104

78:                                               ; preds = %61, %8
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %17, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %18, align 4
  br label %162

82:                                               ; preds = %64
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  br label %161

86:                                               ; preds = %104, %73, %70
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %17, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %18, align 4
  br label %160

90:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %91 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 5
  %92 = load ptr, ptr %91, align 8, !tbaa !23
  %93 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %93, i64 8, i1 false), !tbaa.struct !25
  %94 = getelementptr inbounds %"struct.vl::database::IdObject.17", ptr %22, i32 0, i32 0
  %95 = load i64, ptr %94, align 8
  %96 = invoke i64 @_ZN2vl8database12log_internal14LogAddressItem15ReadAddressItemENS0_8IdObjectImLl3EEE(ptr noundef nonnull align 8 dereferenceable(88) %92, i64 %95)
          to label %97 unwind label %100

97:                                               ; preds = %90
  %98 = getelementptr inbounds %"struct.vl::database::IdObject.16", ptr %21, i32 0, i32 0
  store i64 %96, ptr %98, align 8
  %99 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %99, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %104

100:                                              ; preds = %90
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %17, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %160

104:                                              ; preds = %97, %75
  %105 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 8
  %106 = invoke noundef zeroext i1 @_ZNK2vl8database8IdObjectImLl2EE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(8) %105)
          to label %107 unwind label %86

107:                                              ; preds = %104
  br i1 %106, label %108, label %159

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  invoke void @_ZN2vl8database8IdObjectImLl1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %109 unwind label %121

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  br label %110

110:                                              ; preds = %109
  %111 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %113, i64 8, i1 false), !tbaa.struct !25
  %114 = getelementptr inbounds %"struct.vl::database::IdObject.16", ptr %25, i32 0, i32 0
  %115 = load i64, ptr %114, align 8
  %116 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13DecodePointerENS0_8IdObjectImLl2EEERNS2_ImLl1EEERm(ptr noundef nonnull align 8 dereferenceable(168) %112, i64 %115, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %117 unwind label %125

117:                                              ; preds = %110
  br i1 %116, label %133, label %118

118:                                              ; preds = %117
  %119 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef @.str.6)
          to label %120 unwind label %129

120:                                              ; preds = %118
  invoke void @__cxa_throw(ptr %119, ptr @_ZTIN2vl5ErrorE, ptr null) #8
          to label %170 unwind label %125

121:                                              ; preds = %108
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %17, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %18, align 4
  br label %158

125:                                              ; preds = %149, %138, %120, %110
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %17, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %18, align 4
  br label %157

129:                                              ; preds = %118
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %17, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %18, align 4
  call void @__cxa_free_exception(ptr %119) #7
  br label %157

133:                                              ; preds = %117
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  %136 = load i64, ptr %24, align 8, !tbaa !26
  %137 = add i64 %136, 8
  store i64 %137, ptr %24, align 8, !tbaa !26
  br label %138

138:                                              ; preds = %135
  %139 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 3
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  %141 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %29, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %23, i64 8, i1 false), !tbaa.struct !25
  %142 = load i64, ptr %24, align 8, !tbaa !26
  %143 = getelementptr inbounds %"struct.vl::database::IdObject.15", ptr %26, i32 0, i32 0
  %144 = load i64, ptr %143, align 8
  %145 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13EncodePointerERNS0_8IdObjectImLl2EEENS2_ImLl1EEEm(ptr noundef nonnull align 8 dereferenceable(168) %140, ptr noundef nonnull align 8 dereferenceable(8) %141, i64 %144, i64 noundef %142)
          to label %146 unwind label %125

146:                                              ; preds = %138
  br i1 %145, label %154, label %147

147:                                              ; preds = %146
  %148 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef @.str.6)
          to label %149 unwind label %150

149:                                              ; preds = %147
  invoke void @__cxa_throw(ptr %148, ptr @_ZTIN2vl5ErrorE, ptr null) #8
          to label %170 unwind label %125

150:                                              ; preds = %147
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %17, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %18, align 4
  call void @__cxa_free_exception(ptr %148) #7
  br label %157

154:                                              ; preds = %146
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %159

157:                                              ; preds = %150, %129, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %158

158:                                              ; preds = %157, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %160

159:                                              ; preds = %156, %107
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  ret void

160:                                              ; preds = %158, %100, %86
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %161

161:                                              ; preds = %160, %82
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @_ZN2vl3PtrINS_6stream12MemoryStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #7
  br label %162

162:                                              ; preds = %161, %78
  %163 = getelementptr inbounds i8, ptr %29, i64 8
  %164 = getelementptr inbounds ptr, ptr %30, i64 1
  call void @_ZN2vl8database10ILogReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef %164) #7
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br label %165

165:                                              ; preds = %162
  %166 = load ptr, ptr %17, align 8
  %167 = load i32, ptr %18, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169

170:                                              ; preds = %149, %120
  unreachable
}

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTSN2vl8database12log_internal9LogReaderE", !13, i64 0, !14, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !6, i64 40, !6, i64 48, !17, i64 56, !19, i64 64, !20, i64 72}
!13 = !{!"_ZTSN2vl6ObjectE"}
!14 = !{!"_ZTSN2vl8database10ILogReaderE"}
!15 = !{!"_ZTSN2vl8database8IdObjectIiLl0EEE", !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN2vl8database8IdObjectImLl3EEE", !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN2vl8database8IdObjectImLl2EEE", !18, i64 0}
!20 = !{!"_ZTSN2vl3PtrINS_6stream12MemoryStreamEEE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{i64 0, i64 4, !22}
!22 = !{!16, !16, i64 0}
!23 = !{!12, !6, i64 40}
!24 = !{!12, !6, i64 48}
!25 = !{i64 0, i64 8, !26}
!26 = !{!18, !18, 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.vl::Ptr" = type { ptr, ptr, ptr, ptr }
%"struct.vl::database::IdObject.15" = type { i64 }

@_ZTIN2vl5ErrorE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [146 x i32], align 4

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

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN2vl8database8IdObjectImLl2EE7InvalidEv() local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl8database12log_internal15LogTransactions12GetTransDescENS0_8IdObjectImLl3EEE(ptr dead_on_unwind noalias writable sret(%"class.vl::Ptr") align 8, ptr noundef nonnull align 8 dereferenceable(136), i64) local_unnamed_addr #2 align 2

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

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

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

declare noundef zeroext i1 @_ZN2vl8database13BufferManager13EncodePointerERNS0_8IdObjectImLl2EEENS2_ImLl1EEEm(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(8), i64, i64 noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN2vl8database13BufferManager13DecodePointerENS0_8IdObjectImLl2EEERNS2_ImLl1EEERm(ptr noundef nonnull align 8 dereferenceable(168), i64, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl8database12log_internal9LogReaderC2ERNS_8SpinLockEPNS0_13BufferManagerENS0_8IdObjectIiLl0EEEPNS1_14LogAddressItemEPNS1_15LogTransactionsENS7_ImLl3EEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %3, i32 %4, ptr noundef %5, ptr noundef %6, i64 %7) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.vl::Ptr", align 8
  %10 = alloca %"struct.vl::database::IdObject.15", align 8
  %11 = alloca i64, align 8
  tail call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @_ZN2vl8database10ILogReaderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13) #6
  %14 = load ptr, ptr %1, align 8
  store ptr %14, ptr %0, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 32
  %16 = load ptr, ptr %15, align 8
  store ptr %16, ptr %12, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %1, i64 40
  %18 = load ptr, ptr %17, align 8
  %19 = getelementptr i8, ptr %14, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 %20
  store ptr %18, ptr %21, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 48
  %23 = load ptr, ptr %22, align 8
  %24 = load ptr, ptr %0, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -32
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %0, i64 %26
  store ptr %23, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %2, ptr %28, align 8, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %3, ptr %29, align 8, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %4, ptr %30, align 8, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %5, ptr %31, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %6, ptr %32, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %7, ptr %33, align 8, !tbaa !24
  %34 = getelementptr inbounds i8, ptr %0, i64 64
  %35 = invoke i64 @_ZN2vl8database8IdObjectImLl2EE7InvalidEv()
          to label %36 unwind label %44

36:                                               ; preds = %8
  store i64 %35, ptr %34, align 8
  %37 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN2vl3PtrINS_6stream12MemoryStreamEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  %38 = load ptr, ptr %32, align 8, !tbaa !23
  %.sroa.04.0.copyload = load i64, ptr %33, align 8, !tbaa !24
  invoke void @_ZN2vl8database12log_internal15LogTransactions12GetTransDescENS0_8IdObjectImLl3EEE(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(136) %38, i64 %.sroa.04.0.copyload)
          to label %39 unwind label %46

39:                                               ; preds = %36
  %40 = call noundef zeroext i1 @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  br i1 %40, label %41, label %48

41:                                               ; preds = %39
  %42 = call noundef ptr @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %43 = load i64, ptr %42, align 8, !tbaa !24
  br label %53

44:                                               ; preds = %8
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %81

46:                                               ; preds = %36
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %80

48:                                               ; preds = %39
  %49 = load ptr, ptr %31, align 8, !tbaa !22
  %.sroa.02.0.copyload = load i64, ptr %33, align 8, !tbaa !24
  %50 = invoke i64 @_ZN2vl8database12log_internal14LogAddressItem15ReadAddressItemENS0_8IdObjectImLl3EEE(ptr noundef nonnull align 8 dereferenceable(88) %49, i64 %.sroa.02.0.copyload)
          to label %53 unwind label %51

51:                                               ; preds = %48
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %79

53:                                               ; preds = %48, %41
  %storemerge = phi i64 [ %43, %41 ], [ %50, %48 ]
  store i64 %storemerge, ptr %34, align 8, !tbaa !24
  %54 = call noundef zeroext i1 @_ZNK2vl8database8IdObjectImLl2EE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
  br i1 %54, label %55, label %78

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN2vl8database8IdObjectImLl1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %56 = load ptr, ptr %29, align 8, !tbaa !11
  %.sroa.01.0.copyload = load i64, ptr %34, align 8, !tbaa !24
  %57 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13DecodePointerENS0_8IdObjectImLl2EEERNS2_ImLl1EEERm(ptr noundef nonnull align 8 dereferenceable(168) %56, i64 %.sroa.01.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %58 unwind label %61

58:                                               ; preds = %55
  br i1 %57, label %65, label %59

59:                                               ; preds = %58
  %60 = call ptr @__cxa_allocate_exception(i64 8) #6
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @.str.6)
          to label %.invoke unwind label %63

61:                                               ; preds = %.invoke, %65, %55
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %77

63:                                               ; preds = %59
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %60) #6
  br label %77

65:                                               ; preds = %58
  %66 = load i64, ptr %11, align 8, !tbaa !24
  %67 = add i64 %66, 8
  store i64 %67, ptr %11, align 8, !tbaa !24
  %68 = load ptr, ptr %29, align 8, !tbaa !11
  %.sroa.0.0.copyload = load i64, ptr %10, align 8, !tbaa !24
  %69 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13EncodePointerERNS0_8IdObjectImLl2EEENS2_ImLl1EEEm(ptr noundef nonnull align 8 dereferenceable(168) %68, ptr noundef nonnull align 8 dereferenceable(8) %34, i64 %.sroa.0.0.copyload, i64 noundef %67)
          to label %70 unwind label %61

70:                                               ; preds = %65
  br i1 %69, label %76, label %71

71:                                               ; preds = %70
  %72 = call ptr @__cxa_allocate_exception(i64 8) #6
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.6)
          to label %.invoke unwind label %74

.invoke:                                          ; preds = %59, %71
  %73 = phi ptr [ %72, %71 ], [ %60, %59 ]
  invoke void @__cxa_throw(ptr nonnull %73, ptr nonnull @_ZTIN2vl5ErrorE, ptr null) #7
          to label %.cont unwind label %61

.cont:                                            ; preds = %.invoke
  unreachable

74:                                               ; preds = %71
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %72) #6
  br label %77

76:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %78

77:                                               ; preds = %74, %63, %61
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %75, %74 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %79

78:                                               ; preds = %76, %53
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  ret void

79:                                               ; preds = %77, %51
  %.pn.pn = phi { ptr, i32 } [ %.pn, %77 ], [ %52, %51 ]
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %80

80:                                               ; preds = %79, %46
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %79 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZN2vl3PtrINS_6stream12MemoryStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %81

81:                                               ; preds = %80, %44
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %80 ], [ %45, %44 ]
  call void @_ZN2vl8database10ILogReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %13) #6
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 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 #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 24}
!12 = !{!"_ZTSN2vl8database12log_internal9LogReaderE", !13, i64 0, !14, i64 8, !9, i64 16, !9, i64 24, !15, i64 32, !9, i64 40, !9, i64 48, !17, i64 56, !19, i64 64, !20, i64 72}
!13 = !{!"_ZTSN2vl6ObjectE"}
!14 = !{!"_ZTSN2vl8database10ILogReaderE"}
!15 = !{!"_ZTSN2vl8database8IdObjectIiLl0EEE", !16, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!"_ZTSN2vl8database8IdObjectImLl3EEE", !18, i64 0}
!18 = !{!"long", !10, i64 0}
!19 = !{!"_ZTSN2vl8database8IdObjectImLl2EEE", !18, i64 0}
!20 = !{!"_ZTSN2vl3PtrINS_6stream12MemoryStreamEEE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!21 = !{!16, !16, i64 0}
!22 = !{!12, !9, i64 40}
!23 = !{!12, !9, i64 48}
!24 = !{!18, !18, i64 0}


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