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

; 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 }
%"class.vl::collections::Array" = type { %"class.vl::collections::ArrayBase.base.14", %"class.vl::collections::IEnumerable.13" }
%"class.vl::collections::ArrayBase.base.14" = type { %"class.vl::collections::ListStore.12", ptr, i64 }
%"class.vl::collections::ListStore.12" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.13" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"struct.vl::database::IdObject" = type { i64 }
%"class.vl::Tuple" = type { %"class.vl::Object", %"struct.vl::database::IdObject.10", %"struct.vl::database::IdObject", i64 }
%"struct.vl::database::IdObject.10" = type { i32 }
%class.anon = type { i8 }
%"class.vl::database::FileBufferSource" = type { %"class.vl::Object", %"class.vl::database::IBufferSource", %"struct.vl::database::IdObject.10", i64, %"class.vl::SpinLock", %"class.vl::ObjectString", i32, %"struct.vl::database::IdObject", %"class.vl::database::buffer_internal::FileMapping", %"class.vl::database::buffer_internal::FileUseMasks", %"class.vl::database::buffer_internal::FileFreePages" }
%"class.vl::database::IBufferSource" = type { %"class.vl::Interface" }
%"class.vl::SpinLock" = type { %"class.vl::Object", i64 }
%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::database::buffer_internal::FileMapping" = type { %"class.vl::Object", i64, i32, ptr, %"class.vl::collections::Dictionary", i64 }
%"class.vl::collections::Dictionary" = type { %"class.vl::Object", %"class.vl::collections::SortedList", %"class.vl::collections::List", %"class.vl::collections::IEnumerable.6" }
%"class.vl::collections::SortedList" = type { %"class.vl::collections::ListBase.base", %"class.vl::collections::IEnumerable" }
%"class.vl::collections::ListBase.base" = type <{ %"class.vl::collections::ArrayBase.base", i64, i8 }>
%"class.vl::collections::ArrayBase.base" = type { %"class.vl::collections::ListStore", ptr, i64 }
%"class.vl::collections::ListStore" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable" = type { %"class.vl::Interface" }
%"class.vl::collections::List" = type { %"class.vl::collections::ListBase.base.5", %"class.vl::collections::IEnumerable.3" }
%"class.vl::collections::ListBase.base.5" = type <{ %"class.vl::collections::ArrayBase.base.4", i64, i8 }>
%"class.vl::collections::ArrayBase.base.4" = type { %"class.vl::collections::ListStore.2", ptr, i64 }
%"class.vl::collections::ListStore.2" = type { %"class.vl::Object" }
%"class.vl::collections::IEnumerable.3" = type { %"class.vl::Interface" }
%"class.vl::collections::IEnumerable.6" = type { %"class.vl::Interface" }
%"class.vl::database::buffer_internal::FileUseMasks" = type { %"class.vl::Object", i32, i64, %"class.vl::collections::List.8", i64, ptr }
%"class.vl::collections::List.8" = type { %"class.vl::collections::ListBase.base", %"class.vl::collections::IEnumerable" }
%"class.vl::database::buffer_internal::FileFreePages" = type { %"class.vl::Object", i64, %"class.vl::collections::List.8", i64, i64, ptr, ptr }
%"class.vl::database::BufferPageDesc" = type <{ ptr, i64, i8, [7 x i8], i64, i8, [7 x i8] }>

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) #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 nounwind uwtable
declare dso_local noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN2vl8database15buffer_internal11FileMapping18GetMappedPageCountEv(ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN2vl8database15buffer_internal11FileMapping13GetMappedPageEl(ptr noundef nonnull align 8 dereferenceable(152), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl8database16FileBufferSource23FillUnmapPageCandidatesERNS_11collections4ListINS_5TupleINS0_8IdObjectIiLl0EEENS5_ImLl1EEEmNS_13TupleNullItemES8_S8_S8_S8_S8_S8_S8_EES9_EEl(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.vl::collections::Array", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.vl::database::IdObject", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.vl::Ptr", align 8
  %16 = alloca %"struct.vl::database::IdObject", align 8
  %17 = alloca %"class.vl::Tuple", align 8
  %18 = alloca %"struct.vl::database::IdObject.10", align 4
  %19 = alloca %"struct.vl::database::IdObject", align 8
  %20 = alloca %class.anon, align 1
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %24 = getelementptr inbounds %"class.vl::database::FileBufferSource", ptr %23, i32 0, i32 8
  %25 = call noundef i64 @_ZN2vl8database15buffer_internal11FileMapping18GetMappedPageCountEv(ptr noundef nonnull align 8 dereferenceable(152) %24)
  store i64 %25, ptr %7, align 8, !tbaa !9
  %26 = load i64, ptr %7, align 8, !tbaa !9
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %3
  store i32 1, ptr %8, align 4
  br label %137

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %30 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EC1El(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %88, %29
  %32 = load i64, ptr %11, align 8, !tbaa !9
  %33 = load i64, ptr %7, align 8, !tbaa !9
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %94

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %37 = getelementptr inbounds %"class.vl::database::FileBufferSource", ptr %23, i32 0, i32 8
  %38 = load i64, ptr %11, align 8, !tbaa !9
  %39 = invoke i64 @_ZN2vl8database15buffer_internal11FileMapping13GetMappedPageEl(ptr noundef nonnull align 8 dereferenceable(152) %37, i64 noundef %38)
          to label %40 unwind label %66

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %12, i32 0, i32 0
  store i64 %39, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %42 = getelementptr inbounds %"class.vl::database::FileBufferSource", ptr %23, i32 0, i32 8
  %43 = load i64, ptr %11, align 8, !tbaa !9
  invoke void @_ZN2vl8database15buffer_internal11FileMapping17GetMappedPageDescEl(ptr dead_on_unwind writable sret(%"class.vl::Ptr") align 8 %15, ptr noundef nonnull align 8 dereferenceable(152) %42, i64 noundef %43)
          to label %44 unwind label %70

44:                                               ; preds = %40
  %45 = invoke noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %46 unwind label %74

46:                                               ; preds = %44
  %47 = getelementptr inbounds %"class.vl::database::BufferPageDesc", ptr %45, i32 0, i32 2
  %48 = load i8, ptr %47, align 8, !tbaa !11, !range !14, !noundef !15
  %49 = trunc i8 %48 to i1
  br i1 %49, label %87, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  %51 = getelementptr inbounds %"class.vl::database::FileBufferSource", ptr %23, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %51, i64 4, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %16, i64 8, i1 false), !tbaa.struct !16
  %52 = invoke noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %53 unwind label %78

53:                                               ; preds = %50
  %54 = getelementptr inbounds %"class.vl::database::BufferPageDesc", ptr %52, i32 0, i32 4
  %55 = load i64, ptr %54, align 8, !tbaa !20
  %56 = getelementptr inbounds %"struct.vl::database::IdObject.10", ptr %18, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  %58 = getelementptr inbounds %"struct.vl::database::IdObject", ptr %19, i32 0, i32 0
  %59 = load i64, ptr %58, align 8
  invoke void @_ZN2vl5TupleINS_8database8IdObjectIiLl0EEENS2_ImLl1EEEmNS_13TupleNullItemES5_S5_S5_S5_S5_S5_S5_EC2ES3_S4_m(ptr noundef nonnull align 8 dereferenceable(32) %17, i32 %57, i64 %59, i64 noundef %55)
          to label %60 unwind label %78

60:                                               ; preds = %53
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %10, align 8, !tbaa !9
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %61)
          to label %64 unwind label %82

64:                                               ; preds = %60
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl5TupleINS_8database8IdObjectIiLl0EEENS2_ImLl1EEEmNS_13TupleNullItemES5_S5_S5_S5_S5_S5_S5_EaSEOS6_(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %87

66:                                               ; preds = %36
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  br label %93

70:                                               ; preds = %40
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  br label %92

74:                                               ; preds = %44
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  br label %91

78:                                               ; preds = %53, %50
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %13, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %14, align 4
  br label %86

82:                                               ; preds = %60
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %14, align 4
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %91

87:                                               ; preds = %64, %46
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %11, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %11, align 8, !tbaa !9
  br label %31, !llvm.loop !21

91:                                               ; preds = %86, %74
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %92

92:                                               ; preds = %91, %70
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %93

93:                                               ; preds = %92, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %140

94:                                               ; preds = %35
  %95 = invoke noundef i64 @_ZNK2vl11collections9ArrayBaseINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %96 unwind label %117

96:                                               ; preds = %94
  %97 = icmp sgt i64 %95, 0
  br i1 %97, label %98, label %136

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0)
          to label %100 unwind label %117

100:                                              ; preds = %98
  %101 = load i64, ptr %10, align 8, !tbaa !9
  invoke void @"_ZN2vl11collections10SortLambdaINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EEZNS3_16FileBufferSource23FillUnmapPageCandidatesERNS0_4ListIS8_S8_EElE3$_0EEvPT_lT0_"(ptr noundef %99, i64 noundef %101)
          to label %102 unwind label %117

102:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = load i64, ptr %6, align 8, !tbaa !9
  %105 = icmp slt i64 %103, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %102
  %107 = load i64, ptr %10, align 8, !tbaa !9
  br label %110

108:                                              ; preds = %102
  %109 = load i64, ptr %6, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %108, %106
  %111 = phi i64 [ %107, %106 ], [ %109, %108 ]
  store i64 %111, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %128, %110
  %113 = load i64, ptr %22, align 8, !tbaa !9
  %114 = load i64, ptr %21, align 8, !tbaa !9
  %115 = icmp slt i64 %113, %114
  br i1 %115, label %121, label %116

116:                                              ; preds = %112
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %135

117:                                              ; preds = %100, %98, %94
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %13, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %14, align 4
  br label %140

121:                                              ; preds = %112
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load i64, ptr %22, align 8, !tbaa !9
  %124 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %123)
          to label %125 unwind label %131

125:                                              ; preds = %121
  %126 = invoke noundef i64 @_ZN2vl11collections4ListINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_E3AddERKS8_(ptr noundef nonnull align 8 dereferenceable(33) %122, ptr noundef nonnull align 8 dereferenceable(32) %124)
          to label %127 unwind label %131

127:                                              ; preds = %125
  br label %128

128:                                              ; preds = %127
  %129 = load i64, ptr %22, align 8, !tbaa !9
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %22, align 8, !tbaa !9
  br label %112, !llvm.loop !23

131:                                              ; preds = %125, %121
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %13, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %140

135:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %136

136:                                              ; preds = %135, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_ED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %137

137:                                              ; preds = %136, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %138 = load i32, ptr %8, align 4
  switch i32 %138, label %146 [
    i32 0, label %139
    i32 1, label %139
  ]

139:                                              ; preds = %137, %137
  ret void

140:                                              ; preds = %131, %117, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_ED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %13, align 8
  %143 = load i32, ptr %14, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145

146:                                              ; preds = %137
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN2vl11collections10SortLambdaINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EEZNS3_16FileBufferSource23FillUnmapPageCandidatesERNS0_4ListIS8_S8_EElE3$_0EEvPT_lT0_"(ptr noundef, i64 noundef) #3

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree 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 = { 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 #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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"_ZTSN2vl8database14BufferPageDescE", !6, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !13, i64 32}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{i64 0, i64 8, !9}
!17 = !{i64 0, i64 4, !18}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!12, !10, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; 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 }
%"class.vl::collections::Array" = type { %"class.vl::collections::ArrayBase.base.14", %"class.vl::collections::IEnumerable.13" }
%"class.vl::collections::ArrayBase.base.14" = type { %"class.vl::collections::ListStore.12", ptr, i64 }
%"class.vl::collections::ListStore.12" = type { %"class.vl::Object" }
%"class.vl::Object" = type { ptr }
%"class.vl::collections::IEnumerable.13" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::Tuple" = type { %"class.vl::Object", %"struct.vl::database::IdObject.10", %"struct.vl::database::IdObject", i64 }
%"struct.vl::database::IdObject.10" = type { i32 }
%"struct.vl::database::IdObject" = type { i64 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2vl8database16FileBufferSource23FillUnmapPageCandidatesERNS_11collections4ListINS_5TupleINS0_8IdObjectIiLl0EEENS5_ImLl1EEEmNS_13TupleNullItemES8_S8_S8_S8_S8_S8_S8_EES9_EEl(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i64 noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vl::collections::Array", align 8
  %5 = alloca %"class.vl::Ptr", align 8
  %6 = alloca %"class.vl::Tuple", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = tail call noundef i64 @_ZN2vl8database15buffer_internal11FileMapping18GetMappedPageCountEv(ptr noundef nonnull align 8 dereferenceable(152) %7)
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %55, label %10

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EC1El(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %8)
  %11 = icmp sgt i64 %8, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %10
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  br label %15

._crit_edge:                                      ; preds = %37, %10
  %.023.lcssa = phi i64 [ 0, %10 ], [ %.1, %37 ]
  %13 = call noundef i64 @_ZNK2vl11collections9ArrayBaseINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EEE5CountEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %40, label %.loopexit

15:                                               ; preds = %.lr.ph, %37
  %.02338 = phi i64 [ 0, %.lr.ph ], [ %.1, %37 ]
  %.02437 = phi i64 [ 0, %.lr.ph ], [ %38, %37 ]
  %16 = invoke i64 @_ZN2vl8database15buffer_internal11FileMapping13GetMappedPageEl(ptr noundef nonnull align 8 dereferenceable(152) %7, i64 noundef %.02437)
          to label %17 unwind label %31

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  invoke void @_ZN2vl8database15buffer_internal11FileMapping17GetMappedPageDescEl(ptr dead_on_unwind nonnull writable sret(%"class.vl::Ptr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(152) %7, i64 noundef %.02437)
          to label %18 unwind label %33

18:                                               ; preds = %17
  %19 = call noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load i8, ptr %20, align 8, !tbaa !5, !range !12, !noundef !13
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %37, label %23

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %.sroa.04.0.copyload = load i32, ptr %12, align 8, !tbaa !14
  %24 = call noundef ptr @_ZNK2vl3PtrINS_8database14BufferPageDescEEptEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  %26 = load i64, ptr %25, align 8, !tbaa !16
  call void @_ZN2vl5TupleINS_8database8IdObjectIiLl0EEENS2_ImLl1EEEmNS_13TupleNullItemES5_S5_S5_S5_S5_S5_S5_EC2ES3_S4_m(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 %.sroa.04.0.copyload, i64 %16, i64 noundef %26)
  %27 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02338)
          to label %28 unwind label %35

28:                                               ; preds = %23
  %29 = add nsw i64 %.02338, 1
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl5TupleINS_8database8IdObjectIiLl0EEENS2_ImLl1EEEmNS_13TupleNullItemES5_S5_S5_S5_S5_S5_S5_EaSEOS6_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %37

31:                                               ; preds = %15
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %56

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %39

35:                                               ; preds = %23
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %39

37:                                               ; preds = %28, %18
  %.1 = phi i64 [ %.02338, %18 ], [ %29, %28 ]
  call void @_ZN2vl3PtrINS_8database14BufferPageDescEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  %38 = add nuw nsw i64 %.02437, 1
  %exitcond.not = icmp eq i64 %38, %8
  br i1 %exitcond.not, label %._crit_edge, label %15, !llvm.loop !17

39:                                               ; preds = %35, %33
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %56

40:                                               ; preds = %._crit_edge
  %41 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0)
          to label %42 unwind label %46

42:                                               ; preds = %40
  invoke void @"_ZN2vl11collections10SortLambdaINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EEZNS3_16FileBufferSource23FillUnmapPageCandidatesERNS0_4ListIS8_S8_EElE3$_0EEvPT_lT0_"(ptr noundef nonnull %41, i64 noundef %.023.lcssa)
          to label %43 unwind label %46

43:                                               ; preds = %42
  %44 = call i64 @llvm.smin.i64(i64 %.023.lcssa, i64 %2)
  %45 = icmp sgt i64 %44, 0
  br i1 %45, label %.lr.ph41, label %.loopexit

46:                                               ; preds = %42, %40
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %56

.lr.ph41:                                         ; preds = %43, %51
  %.039 = phi i64 [ %52, %51 ], [ 0, %43 ]
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_EixEl(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.039)
          to label %49 unwind label %53

49:                                               ; preds = %.lr.ph41
  %50 = invoke noundef i64 @_ZN2vl11collections4ListINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_E3AddERKS8_(ptr noundef nonnull align 8 dereferenceable(33) %1, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %51 unwind label %53

51:                                               ; preds = %49
  %52 = add nuw nsw i64 %.039, 1
  %exitcond42.not = icmp eq i64 %52, %44
  br i1 %exitcond42.not, label %.loopexit, label %.lr.ph41, !llvm.loop !19

53:                                               ; preds = %49, %.lr.ph41
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %56

.loopexit:                                        ; preds = %51, %43, %._crit_edge
  call void @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_ED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %55

55:                                               ; preds = %3, %.loopexit
  ret void

56:                                               ; preds = %31, %39, %53, %46
  %.pn.pn.pn = phi { ptr, i32 } [ %54, %53 ], [ %47, %46 ], [ %.pn, %39 ], [ %32, %31 ]
  call void @_ZN2vl11collections5ArrayINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EES8_ED1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN2vl11collections10SortLambdaINS_5TupleINS_8database8IdObjectIiLl0EEENS4_ImLl1EEEmNS_13TupleNullItemES7_S7_S7_S7_S7_S7_S7_EEZNS3_16FileBufferSource23FillUnmapPageCandidatesERNS0_4ListIS8_S8_EElE3$_0EEvPT_lT0_"(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"_ZTSN2vl8database14BufferPageDescE", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 24, !11, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!6, !10, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass