; 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
@_ZTVN2vl8database12log_internal9LogReaderE = external dso_local unnamed_addr constant { [9 x ptr], [12 x ptr] }, align 8
@_ZTTN2vl8database12log_internal9LogReaderE = external dso_local unnamed_addr constant [9 x ptr], align 8

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN2vl9InterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

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

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

; 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: mustprogress uwtable
define dso_local void @_ZN2vl8database12log_internal9LogReaderC1ERNS_8SpinLockEPNS0_13BufferManagerENS0_8IdObjectIiLl0EEEPNS1_14LogAddressItemEPNS1_15LogTransactionsENS7_ImLl3EEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, i32 %3, ptr noundef %4, ptr noundef %5, i64 %6) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"struct.vl::database::IdObject", align 4
  %9 = alloca %"struct.vl::database::IdObject.17", align 8
  %10 = alloca ptr, 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 i32, align 4
  %17 = alloca %"class.vl::Ptr", align 8
  %18 = alloca %"struct.vl::database::IdObject.17", align 8
  %19 = alloca %"struct.vl::database::IdObject.16", align 8
  %20 = alloca %"struct.vl::database::IdObject.17", align 8
  %21 = alloca %"struct.vl::database::IdObject.15", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.vl::database::IdObject.16", align 8
  %24 = alloca %"struct.vl::database::IdObject.15", align 8
  %25 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %8, i32 0, i32 0
  store i32 %3, ptr %25, align 4
  %26 = getelementptr inbounds %"struct.vl::database::IdObject.17", ptr %9, i32 0, i32 0
  store i64 %6, ptr %26, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  %27 = load ptr, ptr %10, align 8
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  call void @_ZN2vl9InterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28)
  %29 = getelementptr inbounds i8, ptr %27, i64 8
  call void @_ZN2vl8database12ILogAccessorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef getelementptr inbounds ([9 x ptr], ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 0, i64 7)) #8
  call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %30 = getelementptr inbounds i8, ptr %27, i64 8
  call void @_ZN2vl8database10ILogReaderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef getelementptr inbounds ([9 x ptr], ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 0, i64 1)) #8
  store ptr getelementptr inbounds inrange(-32, 40) ({ [9 x ptr], [12 x ptr] }, ptr @_ZTVN2vl8database12log_internal9LogReaderE, i32 0, i32 0, i32 4), ptr %27, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr getelementptr inbounds inrange(-56, 40) ({ [9 x ptr], [12 x ptr] }, ptr @_ZTVN2vl8database12log_internal9LogReaderE, i32 0, i32 1, i32 7), ptr %31, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr getelementptr inbounds inrange(-56, 40) ({ [9 x ptr], [12 x ptr] }, ptr @_ZTVN2vl8database12log_internal9LogReaderE, i32 0, i32 1, i32 7), ptr %32, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr getelementptr inbounds inrange(-56, 40) ({ [9 x ptr], [12 x ptr] }, ptr @_ZTVN2vl8database12log_internal9LogReaderE, i32 0, i32 1, i32 7), ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 2
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %35, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 3
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %37, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !21
  %39 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 5
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %40, ptr %39, align 8, !tbaa !23
  %41 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 6
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %42, ptr %41, align 8, !tbaa !24
  %43 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !25
  %44 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 8
  %45 = invoke i64 @_ZN2vl8database8IdObjectImLl2EE7InvalidEv()
          to label %46 unwind label %63

46:                                               ; preds = %7
  %47 = getelementptr inbounds %"struct.vl::database::IdObject.16", ptr %44, i32 0, i32 0
  store i64 %45, ptr %47, align 8
  %48 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 9
  invoke void @_ZN2vl3PtrINS_6stream12MemoryStreamEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %49 unwind label %63

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %50 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %52 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %52, i64 8, i1 false), !tbaa.struct !25
  %53 = getelementptr inbounds %"struct.vl::database::IdObject.17", ptr %18, i32 0, i32 0
  %54 = load i64, ptr %53, align 8
  invoke void @_ZN2vl8database12log_internal15LogTransactions12GetTransDescENS0_8IdObjectImLl3EEE(ptr dead_on_unwind writable sret(%"class.vl::Ptr") align 8 %17, ptr noundef nonnull align 8 dereferenceable(136) %51, i64 %54)
          to label %55 unwind label %67

55:                                               ; preds = %49
  %56 = invoke noundef zeroext i1 @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %57 unwind label %71

57:                                               ; preds = %55
  br i1 %56, label %58, label %75

58:                                               ; preds = %57
  %59 = invoke noundef ptr @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %60 unwind label %71

60:                                               ; preds = %58
  %61 = getelementptr inbounds %"class.vl::database::log_internal::LogTransDesc", ptr %59, i32 0, i32 0
  %62 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %61, i64 8, i1 false), !tbaa.struct !25
  br label %89

63:                                               ; preds = %46, %7
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %15, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %16, align 4
  br label %147

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %15, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %16, align 4
  br label %146

71:                                               ; preds = %89, %58, %55
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %15, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %16, align 4
  br label %145

75:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %76 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  %78 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %78, i64 8, i1 false), !tbaa.struct !25
  %79 = getelementptr inbounds %"struct.vl::database::IdObject.17", ptr %20, i32 0, i32 0
  %80 = load i64, ptr %79, align 8
  %81 = invoke i64 @_ZN2vl8database12log_internal14LogAddressItem15ReadAddressItemENS0_8IdObjectImLl3EEE(ptr noundef nonnull align 8 dereferenceable(88) %77, i64 %80)
          to label %82 unwind label %85

82:                                               ; preds = %75
  %83 = getelementptr inbounds %"struct.vl::database::IdObject.16", ptr %19, i32 0, i32 0
  store i64 %81, ptr %83, align 8
  %84 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %84, ptr align 8 %19, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %89

85:                                               ; preds = %75
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %15, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %145

89:                                               ; preds = %82, %60
  %90 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 8
  %91 = invoke noundef zeroext i1 @_ZNK2vl8database8IdObjectImLl2EE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %92 unwind label %71

92:                                               ; preds = %89
  br i1 %91, label %93, label %144

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  invoke void @_ZN2vl8database8IdObjectImLl1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %94 unwind label %106

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  br label %95

95:                                               ; preds = %94
  %96 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %98, i64 8, i1 false), !tbaa.struct !25
  %99 = getelementptr inbounds %"struct.vl::database::IdObject.16", ptr %23, i32 0, i32 0
  %100 = load i64, ptr %99, align 8
  %101 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13DecodePointerENS0_8IdObjectImLl2EEERNS2_ImLl1EEERm(ptr noundef nonnull align 8 dereferenceable(168) %97, i64 %100, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %102 unwind label %110

102:                                              ; preds = %95
  br i1 %101, label %118, label %103

103:                                              ; preds = %102
  %104 = call ptr @__cxa_allocate_exception(i64 8) #8
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str.6)
          to label %105 unwind label %114

105:                                              ; preds = %103
  invoke void @__cxa_throw(ptr %104, ptr @_ZTIN2vl5ErrorE, ptr null) #9
          to label %156 unwind label %110

106:                                              ; preds = %93
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %15, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %16, align 4
  br label %143

110:                                              ; preds = %134, %123, %105, %95
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %15, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %16, align 4
  br label %142

114:                                              ; preds = %103
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %15, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %16, align 4
  call void @__cxa_free_exception(ptr %104) #8
  br label %142

118:                                              ; preds = %102
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = load i64, ptr %22, align 8, !tbaa !26
  %122 = add i64 %121, 8
  store i64 %122, ptr %22, align 8, !tbaa !26
  br label %123

123:                                              ; preds = %120
  %124 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds %"class.vl::database::log_internal::LogReader", ptr %27, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !25
  %127 = load i64, ptr %22, align 8, !tbaa !26
  %128 = getelementptr inbounds %"struct.vl::database::IdObject.15", ptr %24, i32 0, i32 0
  %129 = load i64, ptr %128, align 8
  %130 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13EncodePointerERNS0_8IdObjectImLl2EEENS2_ImLl1EEEm(ptr noundef nonnull align 8 dereferenceable(168) %125, ptr noundef nonnull align 8 dereferenceable(8) %126, i64 %129, i64 noundef %127)
          to label %131 unwind label %110

131:                                              ; preds = %123
  br i1 %130, label %139, label %132

132:                                              ; preds = %131
  %133 = call ptr @__cxa_allocate_exception(i64 8) #8
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str.6)
          to label %134 unwind label %135

134:                                              ; preds = %132
  invoke void @__cxa_throw(ptr %133, ptr @_ZTIN2vl5ErrorE, ptr null) #9
          to label %156 unwind label %110

135:                                              ; preds = %132
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %15, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %16, align 4
  call void @__cxa_free_exception(ptr %133) #8
  br label %142

139:                                              ; preds = %131
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %144

142:                                              ; preds = %135, %114, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %143

143:                                              ; preds = %142, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %145

144:                                              ; preds = %141, %92
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  ret void

145:                                              ; preds = %143, %85, %71
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %146

146:                                              ; preds = %145, %67
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @_ZN2vl3PtrINS_6stream12MemoryStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #8
  br label %147

147:                                              ; preds = %146, %63
  %148 = getelementptr inbounds i8, ptr %27, i64 8
  call void @_ZN2vl8database10ILogReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef getelementptr inbounds ([9 x ptr], ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 0, i64 1)) #8
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %149 = getelementptr inbounds i8, ptr %27, i64 8
  call void @_ZN2vl8database12ILogAccessorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef getelementptr inbounds ([9 x ptr], ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 0, i64 7)) #8
  %150 = getelementptr inbounds i8, ptr %27, i64 8
  call void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %150) #8
  br label %151

151:                                              ; preds = %147
  %152 = load ptr, ptr %15, align 8
  %153 = load i32, ptr %16, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155

156:                                              ; preds = %134, %105
  unreachable
}

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

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

!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
@_ZTVN2vl8database12log_internal9LogReaderE = external dso_local unnamed_addr constant { [9 x ptr], [12 x ptr] }, align 8
@_ZTTN2vl8database12log_internal9LogReaderE = external dso_local unnamed_addr constant [9 x ptr], align 8

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN2vl9InterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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

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

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

; 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: mustprogress uwtable
define dso_local void @_ZN2vl8database12log_internal9LogReaderC1ERNS_8SpinLockEPNS0_13BufferManagerENS0_8IdObjectIiLl0EEEPNS1_14LogAddressItemEPNS1_15LogTransactionsENS7_ImLl3EEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, i32 %3, ptr noundef %4, ptr noundef %5, i64 %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.vl::Ptr", align 8
  %9 = alloca %"struct.vl::database::IdObject.15", align 8
  %10 = alloca i64, align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN2vl9InterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  tail call void @_ZN2vl8database12ILogAccessorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 56)) #7
  tail call void @_ZN2vl6ObjectC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  tail call void @_ZN2vl8database10ILogReaderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 8)) #7
  store ptr getelementptr inbounds inrange(-32, 40) (i8, ptr @_ZTVN2vl8database12log_internal9LogReaderE, i64 32), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-56, 40) (i8, ptr @_ZTVN2vl8database12log_internal9LogReaderE, i64 128), ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %1, ptr %12, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %2, ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %3, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %4, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %5, ptr %16, align 8, !tbaa !23
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %6, ptr %17, align 8, !tbaa !24
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = invoke i64 @_ZN2vl8database8IdObjectImLl2EE7InvalidEv()
          to label %20 unwind label %28

20:                                               ; preds = %7
  store i64 %19, ptr %18, align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN2vl3PtrINS_6stream12MemoryStreamEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %22 = load ptr, ptr %16, align 8, !tbaa !23
  %.sroa.04.0.copyload = load i64, ptr %17, align 8, !tbaa !24
  invoke void @_ZN2vl8database12log_internal15LogTransactions12GetTransDescENS0_8IdObjectImLl3EEE(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(136) %22, i64 %.sroa.04.0.copyload)
          to label %23 unwind label %30

23:                                               ; preds = %20
  %24 = call noundef zeroext i1 @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  br i1 %24, label %25, label %32

25:                                               ; preds = %23
  %26 = call noundef ptr @_ZNK2vl3PtrINS_8database12log_internal12LogTransDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %27 = load i64, ptr %26, align 8, !tbaa !24
  br label %37

28:                                               ; preds = %7
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %65

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %64

32:                                               ; preds = %23
  %33 = load ptr, ptr %15, align 8, !tbaa !22
  %.sroa.02.0.copyload = load i64, ptr %17, align 8, !tbaa !24
  %34 = invoke i64 @_ZN2vl8database12log_internal14LogAddressItem15ReadAddressItemENS0_8IdObjectImLl3EEE(ptr noundef nonnull align 8 dereferenceable(88) %33, i64 %.sroa.02.0.copyload)
          to label %37 unwind label %35

35:                                               ; preds = %32
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %63

37:                                               ; preds = %32, %25
  %storemerge = phi i64 [ %27, %25 ], [ %34, %32 ]
  store i64 %storemerge, ptr %18, align 8, !tbaa !24
  %38 = call noundef zeroext i1 @_ZNK2vl8database8IdObjectImLl2EE7IsValidEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  br i1 %38, label %39, label %62

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN2vl8database8IdObjectImLl1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %40 = load ptr, ptr %13, align 8, !tbaa !11
  %.sroa.01.0.copyload = load i64, ptr %18, align 8, !tbaa !24
  %41 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13DecodePointerENS0_8IdObjectImLl2EEERNS2_ImLl1EEERm(ptr noundef nonnull align 8 dereferenceable(168) %40, i64 %.sroa.01.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %42 unwind label %45

42:                                               ; preds = %39
  br i1 %41, label %49, label %43

43:                                               ; preds = %42
  %44 = call ptr @__cxa_allocate_exception(i64 8) #7
  invoke void @_ZN2vl5ErrorC1EPKw(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.6)
          to label %.invoke unwind label %47

45:                                               ; preds = %.invoke, %49, %39
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %61

47:                                               ; preds = %43
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %44) #7
  br label %61

49:                                               ; preds = %42
  %50 = load i64, ptr %10, align 8, !tbaa !24
  %51 = add i64 %50, 8
  store i64 %51, ptr %10, align 8, !tbaa !24
  %52 = load ptr, ptr %13, align 8, !tbaa !11
  %.sroa.0.0.copyload = load i64, ptr %9, align 8, !tbaa !24
  %53 = invoke noundef zeroext i1 @_ZN2vl8database13BufferManager13EncodePointerERNS0_8IdObjectImLl2EEENS2_ImLl1EEEm(ptr noundef nonnull align 8 dereferenceable(168) %52, ptr noundef nonnull align 8 dereferenceable(8) %18, i64 %.sroa.0.0.copyload, i64 noundef %51)
          to label %54 unwind label %45

54:                                               ; preds = %49
  br i1 %53, label %60, label %55

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

.invoke:                                          ; preds = %43, %55
  %57 = phi ptr [ %56, %55 ], [ %44, %43 ]
  invoke void @__cxa_throw(ptr nonnull %57, ptr nonnull @_ZTIN2vl5ErrorE, ptr null) #8
          to label %.cont unwind label %45

.cont:                                            ; preds = %.invoke
  unreachable

58:                                               ; preds = %55
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %56) #7
  br label %61

60:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %62

61:                                               ; preds = %58, %47, %45
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %59, %58 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %63

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

63:                                               ; preds = %61, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %36, %35 ]
  call void @_ZN2vl3PtrINS_8database12log_internal12LogTransDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %64

64:                                               ; preds = %63, %30
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZN2vl3PtrINS_6stream12MemoryStreamEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %65

65:                                               ; preds = %64, %28
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %64 ], [ %29, %28 ]
  call void @_ZN2vl8database10ILogReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 8)) #7
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  call void @_ZN2vl8database12ILogAccessorD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZTTN2vl8database12log_internal9LogReaderE, i64 56)) #7
  call void @_ZN2vl9InterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; 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 = { 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 = { 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 #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 = !{!"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