; LLVM IR from nsccgz-storage/nvlsm :: table/table.ll (ZN7leveldb5Table4OpenERKNS_7OptionsEPNS_16RandomAccessFileEmPPS0_)

; 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.leveldb::Status" = type { ptr }
%"class.leveldb::Slice" = type { ptr, i64 }
%"class.leveldb::Footer" = type { %"class.leveldb::BlockHandle", %"class.leveldb::BlockHandle" }
%"class.leveldb::BlockHandle" = type { i64, i64 }
%"struct.leveldb::BlockContents" = type <{ %"class.leveldb::Slice", i8, i8, [6 x i8] }>
%"struct.leveldb::ReadOptions" = type { i8, i8, ptr }
%"struct.leveldb::Options" = type { ptr, i8, i8, i8, ptr, ptr, i64, i32, ptr, i64, i32, i64, i32, i8, ptr, i64 }
%"struct.leveldb::Table::Rep" = type { %"struct.leveldb::Options", %"class.leveldb::Status", ptr, i64, ptr, ptr, %"class.leveldb::BlockHandle", ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7leveldb5Table4OpenERKNS_7OptionsEPNS_16RandomAccessFileEmPPS0_(ptr dead_on_unwind noalias writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.leveldb::Slice", align 8
  %12 = alloca %"class.leveldb::Slice", align 8
  %13 = alloca [48 x i8], align 16
  %14 = alloca %"class.leveldb::Slice", align 8
  %15 = alloca i1, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.leveldb::Footer", align 8
  %20 = alloca %"class.leveldb::Status", align 8
  %21 = alloca %"struct.leveldb::BlockContents", align 8
  %22 = alloca %"struct.leveldb::ReadOptions", align 8
  %23 = alloca %"class.leveldb::Status", align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr null, ptr %26, align 8, !tbaa !5
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = icmp ult i64 %27, 48
  br i1 %28, label %29, label %30

29:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  call void @_ZN7leveldb5SliceC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  call void @_ZN7leveldb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @_ZN7leveldb6Status10CorruptionERKNS_5SliceES3_(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %170

30:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  call void @_ZN7leveldb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
  store i1 false, ptr %15, align 1
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = sub i64 %32, 48
  %34 = getelementptr inbounds [48 x i8], ptr %13, i64 0, i64 0
  %35 = load ptr, ptr %31, align 8, !tbaa !11
  %36 = getelementptr inbounds ptr, ptr %35, i64 2
  %37 = load ptr, ptr %36, align 8
  call void %37(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %33, i64 noundef 48, ptr noundef %14, ptr noundef %34)
  %38 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %39 unwind label %41

39:                                               ; preds = %30
  br i1 %38, label %45, label %40

40:                                               ; preds = %39
  store i1 true, ptr %15, align 1
  store i32 1, ptr %18, align 4
  br label %165

41:                                               ; preds = %30
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %16, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %17, align 4
  br label %169

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #9
  invoke void @_ZN7leveldb6FooterC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %46 unwind label %52

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  invoke void @_ZN7leveldb6Footer10DecodeFromEPNS_5SliceE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %14)
          to label %47 unwind label %56

47:                                               ; preds = %46
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  %49 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %50 unwind label %52

50:                                               ; preds = %47
  br i1 %49, label %60, label %51

51:                                               ; preds = %50
  store i1 true, ptr %15, align 1
  store i32 1, ptr %18, align 4
  br label %163

52:                                               ; preds = %47, %45
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %16, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %17, align 4
  br label %164

56:                                               ; preds = %46
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %16, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %164

60:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #9
  invoke void @_ZN7leveldb13BlockContentsC2Ev(ptr noundef nonnull align 8 dereferenceable(18) %21)
          to label %61 unwind label %68

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  call void @_ZN7leveldb11ReadOptionsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.leveldb::Options", ptr %62, i32 0, i32 3
  %64 = load i8, ptr %63, align 2, !tbaa !13, !range !18, !noundef !19
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %72

66:                                               ; preds = %61
  %67 = getelementptr inbounds %"struct.leveldb::ReadOptions", ptr %22, i32 0, i32 0
  store i8 1, ptr %67, align 8, !tbaa !20
  br label %72

68:                                               ; preds = %60
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %16, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %17, align 4
  br label %162

72:                                               ; preds = %66, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7leveldb6Footer12index_handleEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %75 unwind label %130

75:                                               ; preds = %72
  invoke void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %23, ptr noundef %73, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef %21)
          to label %76 unwind label %130

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  %78 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %79 unwind label %134

79:                                               ; preds = %76
  br i1 %78, label %80, label %160

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %81 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %82 unwind label %138

82:                                               ; preds = %80
  invoke void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21) %81, ptr noundef nonnull align 8 dereferenceable(18) %21)
          to label %83 unwind label %142

83:                                               ; preds = %82
  store ptr %81, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %84 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 168) #10
          to label %85 unwind label %146

85:                                               ; preds = %83
  invoke void @_ZN7leveldb5Table3RepC2Ev(ptr noundef nonnull align 8 dereferenceable(168) %84)
          to label %86 unwind label %150

86:                                               ; preds = %85
  store ptr %84, ptr %25, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %25, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %88, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 8 %87, i64 104, i1 false), !tbaa.struct !22
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load ptr, ptr %25, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %91, i32 0, i32 2
  store ptr %90, ptr %92, align 8, !tbaa !26
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7leveldb6Footer16metaindex_handleEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %94 unwind label %146

94:                                               ; preds = %86
  %95 = load ptr, ptr %25, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %95, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %96, ptr align 8 %93, i64 16, i1 false), !tbaa.struct !30
  %97 = load ptr, ptr %24, align 8, !tbaa !5
  %98 = load ptr, ptr %25, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %98, i32 0, i32 7
  store ptr %97, ptr %99, align 8, !tbaa !31
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.leveldb::Options", ptr %100, i32 0, i32 8
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %113

104:                                              ; preds = %94
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.leveldb::Options", ptr %105, i32 0, i32 8
  %107 = load ptr, ptr %106, align 8, !tbaa !32
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds ptr, ptr %108, i64 7
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef i64 %110(ptr noundef nonnull align 8 dereferenceable(16) %107)
          to label %112 unwind label %146

112:                                              ; preds = %104
  br label %114

113:                                              ; preds = %94
  br label %114

114:                                              ; preds = %113, %112
  %115 = phi i64 [ %111, %112 ], [ 0, %113 ]
  %116 = load ptr, ptr %25, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %116, i32 0, i32 3
  store i64 %115, ptr %117, align 8, !tbaa !33
  %118 = load ptr, ptr %25, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %118, i32 0, i32 5
  store ptr null, ptr %119, align 8, !tbaa !34
  %120 = load ptr, ptr %25, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %120, i32 0, i32 4
  store ptr null, ptr %121, align 8, !tbaa !35
  %122 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #10
          to label %123 unwind label %146

123:                                              ; preds = %114
  %124 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZN7leveldb5TableC2EPNS0_3RepE(ptr noundef nonnull align 8 dereferenceable(16) %122, ptr noundef %124)
          to label %125 unwind label %154

125:                                              ; preds = %123
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %122, ptr %126, align 8, !tbaa !5
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  invoke void @_ZN7leveldb5Table8ReadMetaERKNS_6FooterE(ptr noundef nonnull align 8 dereferenceable(16) %128, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %129 unwind label %146

129:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %160

130:                                              ; preds = %75, %72
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %16, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %161

134:                                              ; preds = %76
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %16, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %17, align 4
  br label %161

138:                                              ; preds = %80
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %16, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %17, align 4
  br label %159

142:                                              ; preds = %82
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %16, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %17, align 4
  call void @_ZdlPvm(ptr noundef %81, i64 noundef 24) #11
  br label %159

146:                                              ; preds = %125, %114, %104, %86, %83
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %16, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %17, align 4
  br label %158

150:                                              ; preds = %85
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %16, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %17, align 4
  call void @_ZdlPvm(ptr noundef %84, i64 noundef 168) #11
  br label %158

154:                                              ; preds = %123
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %16, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %17, align 4
  call void @_ZdlPvm(ptr noundef %122, i64 noundef 16) #11
  br label %158

158:                                              ; preds = %154, %150, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %159

159:                                              ; preds = %158, %142, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %161

160:                                              ; preds = %129, %79
  store i1 true, ptr %15, align 1
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  br label %163

161:                                              ; preds = %159, %134, %130
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br label %162

162:                                              ; preds = %161, %68
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  br label %164

163:                                              ; preds = %160, %51
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  br label %165

164:                                              ; preds = %162, %56, %52
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  br label %169

165:                                              ; preds = %163, %40
  %166 = load i1, ptr %15, align 1
  br i1 %166, label %168, label %167

167:                                              ; preds = %165
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #9
  br label %168

168:                                              ; preds = %167, %165
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #9
  br label %170

169:                                              ; preds = %164, %41
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #9
  br label %171

170:                                              ; preds = %168, %29
  ret void

171:                                              ; preds = %169
  %172 = load ptr, ptr %16, align 8
  %173 = load i32, ptr %17, align 4
  %174 = insertvalue { ptr, i32 } poison, ptr %172, 0
  %175 = insertvalue { ptr, i32 } %174, i32 %173, 1
  resume { ptr, i32 } %175
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7leveldb6Status10CorruptionERKNS_5SliceES3_(ptr dead_on_unwind noalias writable sret(%"class.leveldb::Status") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7leveldb6Footer10DecodeFromEPNS_5SliceE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

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

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

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

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

declare void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

declare void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(18)) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7leveldb5Table8ReadMetaERKNS_6FooterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 = { nobuiltin allocsize(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 = { nobuiltin 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !15, i64 10}
!14 = !{!"_ZTSN7leveldb7OptionsE", !6, i64 0, !15, i64 8, !15, i64 9, !15, i64 10, !6, i64 16, !6, i64 24, !10, i64 32, !16, i64 40, !6, i64 48, !10, i64 56, !16, i64 64, !10, i64 72, !17, i64 80, !15, i64 84, !6, i64 88, !10, i64 96}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN7leveldb15CompressionTypeE", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !15, i64 0}
!21 = !{!"_ZTSN7leveldb11ReadOptionsE", !15, i64 0, !15, i64 1, !6, i64 8}
!22 = !{i64 0, i64 8, !5, i64 8, i64 1, !23, i64 9, i64 1, !23, i64 10, i64 1, !23, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !9, i64 40, i64 4, !24, i64 48, i64 8, !5, i64 56, i64 8, !9, i64 64, i64 4, !24, i64 72, i64 8, !9, i64 80, i64 4, !25, i64 84, i64 1, !23, i64 88, i64 8, !5, i64 96, i64 8, !9}
!23 = !{!15, !15, i64 0}
!24 = !{!16, !16, i64 0}
!25 = !{!17, !17, i64 0}
!26 = !{!27, !6, i64 112}
!27 = !{!"_ZTSN7leveldb5Table3RepE", !14, i64 0, !28, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !29, i64 144, !6, i64 160}
!28 = !{!"_ZTSN7leveldb6StatusE", !6, i64 0}
!29 = !{!"_ZTSN7leveldb11BlockHandleE", !10, i64 0, !10, i64 8}
!30 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!31 = !{!27, !6, i64 160}
!32 = !{!14, !6, i64 48}
!33 = !{!27, !10, i64 120}
!34 = !{!27, !6, i64 136}
!35 = !{!27, !6, i64 128}


; 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.leveldb::Status" = type { ptr }
%"class.leveldb::Slice" = type { ptr, i64 }
%"class.leveldb::Footer" = type { %"class.leveldb::BlockHandle", %"class.leveldb::BlockHandle" }
%"class.leveldb::BlockHandle" = type { i64, i64 }
%"struct.leveldb::BlockContents" = type <{ %"class.leveldb::Slice", i8, i8, [6 x i8] }>
%"struct.leveldb::ReadOptions" = type { i8, i8, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7leveldb5Table4OpenERKNS_7OptionsEPNS_16RandomAccessFileEmPPS0_(ptr dead_on_unwind noalias writable sret(%"class.leveldb::Status") align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(104) %1, ptr noundef %2, i64 noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.leveldb::Slice", align 8
  %7 = alloca %"class.leveldb::Slice", align 8
  %8 = alloca [48 x i8], align 16
  %9 = alloca %"class.leveldb::Slice", align 8
  %10 = alloca %"class.leveldb::Footer", align 8
  %11 = alloca %"class.leveldb::Status", align 8
  %12 = alloca %"struct.leveldb::BlockContents", align 8
  %13 = alloca %"struct.leveldb::ReadOptions", align 8
  %14 = alloca %"class.leveldb::Status", align 8
  store ptr null, ptr %4, align 8, !tbaa !5
  %15 = icmp ult i64 %3, 48
  br i1 %15, label %16, label %17

16:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  call void @_ZN7leveldb5SliceC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  call void @_ZN7leveldb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @_ZN7leveldb6Status10CorruptionERKNS_5SliceES3_(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  br label %85

17:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  call void @_ZN7leveldb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %18 = add i64 %3, -48
  %19 = load ptr, ptr %2, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load ptr, ptr %20, align 8
  call void %21(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %18, i64 noundef 48, ptr noundef nonnull %9, ptr noundef nonnull %8)
  %22 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %22, label %23, label %84

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  invoke void @_ZN7leveldb6FooterC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %24 unwind label %28

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  invoke void @_ZN7leveldb6Footer10DecodeFromEPNS_5SliceE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull %9)
          to label %25 unwind label %30

25:                                               ; preds = %24
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  %27 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %27, label %32, label %82

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

30:                                               ; preds = %24
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %83

32:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #10
  invoke void @_ZN7leveldb13BlockContentsC2Ev(ptr noundef nonnull align 8 dereferenceable(18) %12)
          to label %33 unwind label %38

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  call void @_ZN7leveldb11ReadOptionsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #10
  %34 = getelementptr inbounds i8, ptr %1, i64 10
  %35 = load i8, ptr %34, align 2, !tbaa !11, !range !17, !noundef !18
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %37, label %40

37:                                               ; preds = %33
  store i8 1, ptr %13, align 8, !tbaa !19
  br label %40

38:                                               ; preds = %32
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %81

40:                                               ; preds = %37, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7leveldb6Footer12index_handleEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  invoke void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %14, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull %12)
          to label %42 unwind label %69

42:                                               ; preds = %40
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  %44 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %44, label %45, label %79

45:                                               ; preds = %42
  %46 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %47 unwind label %71

47:                                               ; preds = %45
  invoke void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21) %46, ptr noundef nonnull align 8 dereferenceable(18) %12)
          to label %48 unwind label %73

48:                                               ; preds = %47
  %49 = invoke noalias noundef nonnull dereferenceable(168) ptr @_Znwm(i64 noundef 168) #11
          to label %50 unwind label %75

50:                                               ; preds = %48
  invoke void @_ZN7leveldb5Table3RepC2Ev(ptr noundef nonnull align 8 dereferenceable(168) %49)
          to label %51 unwind label %77

51:                                               ; preds = %50
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %49, ptr noundef nonnull align 8 dereferenceable(104) %1, i64 104, i1 false), !tbaa.struct !21
  %52 = getelementptr inbounds i8, ptr %49, i64 112
  store ptr %2, ptr %52, align 8, !tbaa !26
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7leveldb6Footer16metaindex_handleEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %54 = getelementptr inbounds i8, ptr %49, i64 144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %53, i64 16, i1 false), !tbaa.struct !30
  %55 = getelementptr inbounds i8, ptr %49, i64 160
  store ptr %46, ptr %55, align 8, !tbaa !31
  %56 = getelementptr inbounds i8, ptr %1, i64 48
  %57 = load ptr, ptr %56, align 8, !tbaa !32
  %.not = icmp eq ptr %57, null
  br i1 %.not, label %63, label %58

58:                                               ; preds = %51
  %59 = load ptr, ptr %57, align 8, !tbaa !9
  %60 = getelementptr inbounds i8, ptr %59, i64 56
  %61 = load ptr, ptr %60, align 8
  %62 = invoke noundef i64 %61(ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %63 unwind label %75

63:                                               ; preds = %51, %58
  %64 = phi i64 [ %62, %58 ], [ 0, %51 ]
  %65 = getelementptr inbounds i8, ptr %49, i64 120
  store i64 %64, ptr %65, align 8, !tbaa !33
  %66 = getelementptr inbounds i8, ptr %49, i64 128
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %66, i8 0, i64 16, i1 false)
  %67 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #11
          to label %68 unwind label %75

68:                                               ; preds = %63
  call void @_ZN7leveldb5TableC2EPNS0_3RepE(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull %49)
  store ptr %67, ptr %4, align 8, !tbaa !5
  invoke void @_ZN7leveldb5Table8ReadMetaERKNS_6FooterE(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %79 unwind label %75

69:                                               ; preds = %40
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br label %80

71:                                               ; preds = %45
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %80

73:                                               ; preds = %47
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %46, i64 noundef 24) #12
  br label %80

75:                                               ; preds = %68, %63, %58, %48
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %80

77:                                               ; preds = %50
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %49, i64 noundef 168) #12
  br label %80

79:                                               ; preds = %68, %42
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #10
  br label %82

80:                                               ; preds = %71, %73, %77, %75, %69
  %.pn.pn.pn = phi { ptr, i32 } [ %70, %69 ], [ %74, %73 ], [ %72, %71 ], [ %76, %75 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %81

81:                                               ; preds = %80, %38
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %80 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #10
  br label %83

82:                                               ; preds = %25, %79
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  br label %84

83:                                               ; preds = %81, %30, %28
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %81 ], [ %31, %30 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

84:                                               ; preds = %82, %17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  br label %85

85:                                               ; preds = %84, %16
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7leveldb6Status10CorruptionERKNS_5SliceES3_(ptr dead_on_unwind noalias writable sret(%"class.leveldb::Status") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7leveldb6Footer10DecodeFromEPNS_5SliceE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

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

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

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

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

declare void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

declare void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(18)) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7leveldb5Table8ReadMetaERKNS_6FooterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 = { nobuiltin allocsize(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 = { nobuiltin 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !13, i64 10}
!12 = !{!"_ZTSN7leveldb7OptionsE", !6, i64 0, !13, i64 8, !13, i64 9, !13, i64 10, !6, i64 16, !6, i64 24, !14, i64 32, !15, i64 40, !6, i64 48, !14, i64 56, !15, i64 64, !14, i64 72, !16, i64 80, !13, i64 84, !6, i64 88, !14, i64 96}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN7leveldb15CompressionTypeE", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !13, i64 0}
!20 = !{!"_ZTSN7leveldb11ReadOptionsE", !13, i64 0, !13, i64 1, !6, i64 8}
!21 = !{i64 0, i64 8, !5, i64 8, i64 1, !22, i64 9, i64 1, !22, i64 10, i64 1, !22, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !23, i64 40, i64 4, !24, i64 48, i64 8, !5, i64 56, i64 8, !23, i64 64, i64 4, !24, i64 72, i64 8, !23, i64 80, i64 4, !25, i64 84, i64 1, !22, i64 88, i64 8, !5, i64 96, i64 8, !23}
!22 = !{!13, !13, i64 0}
!23 = !{!14, !14, i64 0}
!24 = !{!15, !15, i64 0}
!25 = !{!16, !16, i64 0}
!26 = !{!27, !6, i64 112}
!27 = !{!"_ZTSN7leveldb5Table3RepE", !12, i64 0, !28, i64 104, !6, i64 112, !14, i64 120, !6, i64 128, !6, i64 136, !29, i64 144, !6, i64 160}
!28 = !{!"_ZTSN7leveldb6StatusE", !6, i64 0}
!29 = !{!"_ZTSN7leveldb11BlockHandleE", !14, i64 0, !14, i64 8}
!30 = !{i64 0, i64 8, !23, i64 8, i64 8, !23}
!31 = !{!27, !6, i64 160}
!32 = !{!12, !6, i64 48}
!33 = !{!27, !14, i64 120}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass