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

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

; 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 zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare noundef ptr @_ZN7leveldb5Block11NewIteratorEPKNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7leveldb5Table11BlockReaderEPvRKNS_11ReadOptionsERKNS_5SliceE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #8 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.leveldb::BlockHandle", align 8
  %12 = alloca %"class.leveldb::Slice", align 8
  %13 = alloca %"class.leveldb::Status", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.leveldb::BlockContents", align 8
  %17 = alloca [16 x i8], align 16
  %18 = alloca %"class.leveldb::Slice", align 8
  %19 = alloca %"class.leveldb::Status", align 8
  %20 = alloca %"class.leveldb::Status", align 8
  %21 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %22, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.leveldb::Table", ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.leveldb::Options", ptr %26, i32 0, i32 8
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  call void @_ZN7leveldb11BlockHandleC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @_ZN7leveldb11BlockHandle10DecodeFromEPNS_5SliceE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %12)
  %30 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %31 unwind label %67

31:                                               ; preds = %3
  br i1 %30, label %32, label %156

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

33:                                               ; preds = %32
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %130

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %37 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.leveldb::Table", ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %40, i32 0, i32 3
  %42 = load i64, ptr %41, align 8, !tbaa !22
  invoke void @_ZN7leveldb13EncodeFixed64EPcm(ptr noundef %37, i64 noundef %42)
          to label %43 unwind label %75

43:                                               ; preds = %36
  %44 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = invoke noundef i64 @_ZNK7leveldb11BlockHandle6offsetEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %47 unwind label %75

47:                                               ; preds = %43
  invoke void @_ZN7leveldb13EncodeFixed64EPcm(ptr noundef %45, i64 noundef %46)
          to label %48 unwind label %75

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %49 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
  invoke void @_ZN7leveldb5SliceC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %49, i64 noundef 16)
          to label %50 unwind label %79

50:                                               ; preds = %48
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = getelementptr inbounds ptr, ptr %52, i64 3
  %54 = load ptr, ptr %53, align 8
  %55 = invoke noundef ptr %54(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %56 unwind label %79

56:                                               ; preds = %50
  store ptr %55, ptr %10, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %83

59:                                               ; preds = %56
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load ptr, ptr %60, align 8, !tbaa !23
  %63 = getelementptr inbounds ptr, ptr %62, i64 5
  %64 = load ptr, ptr %63, align 8
  %65 = invoke noundef ptr %64(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef %61)
          to label %66 unwind label %79

66:                                               ; preds = %59
  store ptr %65, ptr %9, align 8, !tbaa !5
  br label %127

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

71:                                               ; preds = %141, %137, %32
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %14, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %15, align 4
  br label %155

75:                                               ; preds = %47, %43, %36
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %14, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %15, align 4
  br label %129

79:                                               ; preds = %111, %106, %94, %90, %59, %50, %48
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %14, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %15, align 4
  br label %128

83:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.leveldb::Table", ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !25
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %19, ptr noundef %88, ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %16)
          to label %90 unwind label %117

90:                                               ; preds = %83
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  %92 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %93 unwind label %79

93:                                               ; preds = %90
  br i1 %92, label %94, label %126

94:                                               ; preds = %93
  %95 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %96 unwind label %79

96:                                               ; preds = %94
  invoke void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21) %95, ptr noundef nonnull align 8 dereferenceable(18) %16)
          to label %97 unwind label %121

97:                                               ; preds = %96
  store ptr %95, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.leveldb::BlockContents", ptr %16, i32 0, i32 1
  %99 = load i8, ptr %98, align 8, !tbaa !26, !range !29, !noundef !30
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %125

101:                                              ; preds = %97
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.leveldb::ReadOptions", ptr %102, i32 0, i32 1
  %104 = load i8, ptr %103, align 1, !tbaa !31, !range !29, !noundef !30
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %125

106:                                              ; preds = %101
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = invoke noundef i64 @_ZNK7leveldb5Block4sizeEv(ptr noundef nonnull align 8 dereferenceable(21) %109)
          to label %111 unwind label %79

111:                                              ; preds = %106
  %112 = load ptr, ptr %107, align 8, !tbaa !23
  %113 = getelementptr inbounds ptr, ptr %112, i64 2
  %114 = load ptr, ptr %113, align 8
  %115 = invoke noundef ptr %114(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %108, i64 noundef %110, ptr noundef @_ZN7leveldbL17DeleteCachedBlockERKNS_5SliceEPv)
          to label %116 unwind label %79

116:                                              ; preds = %111
  store ptr %115, ptr %10, align 8, !tbaa !5
  br label %125

117:                                              ; preds = %83
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %14, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %128

121:                                              ; preds = %96
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %14, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %95, i64 noundef 24) #11
  br label %128

125:                                              ; preds = %116, %101, %97
  br label %126

126:                                              ; preds = %125, %93
  br label %127

127:                                              ; preds = %126, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %154

128:                                              ; preds = %121, %117, %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  br label %129

129:                                              ; preds = %128, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %155

130:                                              ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.leveldb::Table", ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !25
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %20, ptr noundef %135, ptr noundef nonnull align 8 dereferenceable(16) %136, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %16)
          to label %137 unwind label %145

137:                                              ; preds = %130
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, 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
  %139 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %140 unwind label %71

140:                                              ; preds = %137
  br i1 %139, label %141, label %153

141:                                              ; preds = %140
  %142 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %143 unwind label %71

143:                                              ; preds = %141
  invoke void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21) %142, ptr noundef nonnull align 8 dereferenceable(18) %16)
          to label %144 unwind label %149

144:                                              ; preds = %143
  store ptr %142, ptr %9, align 8, !tbaa !5
  br label %153

145:                                              ; preds = %130
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %14, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %155

149:                                              ; preds = %143
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %14, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %142, i64 noundef 24) #11
  br label %155

153:                                              ; preds = %144, %140
  br label %154

154:                                              ; preds = %153, %127
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  br label %156

155:                                              ; preds = %149, %145, %129, %71
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  br label %190

156:                                              ; preds = %154, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %185

159:                                              ; preds = %156
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %"class.leveldb::Table", ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.leveldb::Options", ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !33
  %167 = invoke noundef ptr @_ZN7leveldb5Block11NewIteratorEPKNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(21) %160, ptr noundef %166)
          to label %168 unwind label %175

168:                                              ; preds = %159
  store ptr %167, ptr %21, align 8, !tbaa !5
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = icmp eq ptr %169, null
  br i1 %170, label %171, label %179

171:                                              ; preds = %168
  %172 = load ptr, ptr %21, align 8, !tbaa !5
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN7leveldb8Iterator15RegisterCleanupEPFvPvS1_ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %172, ptr noundef @_ZN7leveldbL11DeleteBlockEPvS0_, ptr noundef %173, ptr noundef null)
          to label %174 unwind label %175

174:                                              ; preds = %171
  br label %184

175:                                              ; preds = %185, %179, %171, %159
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %14, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %190

179:                                              ; preds = %168
  %180 = load ptr, ptr %21, align 8, !tbaa !5
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN7leveldb8Iterator15RegisterCleanupEPFvPvS1_ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %180, ptr noundef @_ZN7leveldbL12ReleaseBlockEPvS0_, ptr noundef %181, ptr noundef %182)
          to label %183 unwind label %175

183:                                              ; preds = %179
  br label %184

184:                                              ; preds = %183, %174
  br label %188

185:                                              ; preds = %156
  %186 = invoke noundef ptr @_ZN7leveldb16NewErrorIteratorERKNS_6StatusE(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %187 unwind label %175

187:                                              ; preds = %185
  store ptr %186, ptr %21, align 8, !tbaa !5
  br label %188

188:                                              ; preds = %187, %184
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret ptr %189

190:                                              ; preds = %175, %155, %67
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %191

191:                                              ; preds = %190
  %192 = load ptr, ptr %14, align 8
  %193 = load i32, ptr %15, align 4
  %194 = insertvalue { ptr, i32 } poison, ptr %192, 0
  %195 = insertvalue { ptr, i32 } %194, i32 %193, 1
  resume { ptr, i32 } %195
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7leveldb13EncodeFixed64EPcm(ptr noundef, i64 noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7leveldbL17DeleteCachedBlockERKNS_5SliceEPv(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #1

declare void @_ZN7leveldb8Iterator15RegisterCleanupEPFvPvS1_ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7leveldbL11DeleteBlockEPvS0_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7leveldbL12ReleaseBlockEPvS0_(ptr noundef, ptr noundef) #8

declare noundef ptr @_ZN7leveldb16NewErrorIteratorERKNS_6StatusE(ptr noundef nonnull align 8 dereferenceable(8)) #4

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 = { 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 #3 = { 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 #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 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #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, !6, i64 8}
!10 = !{!"_ZTSN7leveldb5TableE", !6, i64 8}
!11 = !{!12, !6, i64 48}
!12 = !{!"_ZTSN7leveldb5Table3RepE", !13, i64 0, !18, i64 104, !6, i64 112, !15, i64 120, !6, i64 128, !6, i64 136, !19, i64 144, !6, i64 160}
!13 = !{!"_ZTSN7leveldb7OptionsE", !6, i64 0, !14, i64 8, !14, i64 9, !14, i64 10, !6, i64 16, !6, i64 24, !15, i64 32, !16, i64 40, !6, i64 48, !15, i64 56, !16, i64 64, !15, i64 72, !17, i64 80, !14, i64 84, !6, i64 88, !15, i64 96}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN7leveldb15CompressionTypeE", !7, i64 0}
!18 = !{!"_ZTSN7leveldb6StatusE", !6, i64 0}
!19 = !{!"_ZTSN7leveldb11BlockHandleE", !15, i64 0, !15, i64 8}
!20 = !{i64 0, i64 8, !5, i64 8, i64 8, !21}
!21 = !{!15, !15, i64 0}
!22 = !{!12, !15, i64 120}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!12, !6, i64 112}
!26 = !{!27, !14, i64 16}
!27 = !{!"_ZTSN7leveldb13BlockContentsE", !28, i64 0, !14, i64 16, !14, i64 17}
!28 = !{!"_ZTSN7leveldb5SliceE", !6, i64 0, !15, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !14, i64 1}
!32 = !{!"_ZTSN7leveldb11ReadOptionsE", !14, i64 0, !14, i64 1, !6, i64 8}
!33 = !{!12, !6, 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.leveldb::Status" = type { ptr }
%"class.leveldb::BlockHandle" = type { i64, i64 }
%"class.leveldb::Slice" = type { ptr, i64 }
%"struct.leveldb::BlockContents" = type <{ %"class.leveldb::Slice", i8, i8, [6 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare noundef ptr @_ZN7leveldb5Block11NewIteratorEPKNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7leveldb5Table11BlockReaderEPvRKNS_11ReadOptionsERKNS_5SliceE(ptr nocapture noundef readonly %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %2) local_unnamed_addr #8 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.leveldb::BlockHandle", align 8
  %5 = alloca %"class.leveldb::Slice", align 8
  %6 = alloca %"class.leveldb::Status", align 8
  %7 = alloca %"struct.leveldb::BlockContents", align 8
  %8 = alloca [16 x i8], align 16
  %9 = alloca %"class.leveldb::Slice", align 8
  %10 = alloca %"class.leveldb::Status", align 8
  %11 = alloca %"class.leveldb::Status", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 48
  %15 = load ptr, ptr %14, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN7leveldb11BlockHandleC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN7leveldb11BlockHandle10DecodeFromEPNS_5SliceE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %5)
  %16 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %16, label %17, label %.thread

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  invoke void @_ZN7leveldb13BlockContentsC2Ev(ptr noundef nonnull align 8 dereferenceable(18) %7)
          to label %18 unwind label %35

18:                                               ; preds = %17
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %68, label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 120
  %22 = load i64, ptr %21, align 8, !tbaa !22
  call void @_ZN7leveldb13EncodeFixed64EPcm(ptr noundef nonnull %8, i64 noundef %22)
  %23 = getelementptr inbounds i8, ptr %8, i64 8
  %24 = call noundef i64 @_ZNK7leveldb11BlockHandle6offsetEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @_ZN7leveldb13EncodeFixed64EPcm(ptr noundef nonnull %23, i64 noundef %24)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call void @_ZN7leveldb5SliceC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %8, i64 noundef 16)
  %25 = load ptr, ptr %15, align 8, !tbaa !23
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  %27 = load ptr, ptr %26, align 8
  %28 = invoke noundef ptr %27(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %29 unwind label %37

29:                                               ; preds = %19
  %.not41 = icmp eq ptr %28, null
  br i1 %.not41, label %39, label %30

30:                                               ; preds = %29
  %31 = load ptr, ptr %15, align 8, !tbaa !23
  %32 = getelementptr inbounds i8, ptr %31, i64 40
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef ptr %33(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %28)
          to label %83 unwind label %37

35:                                               ; preds = %75, %17
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %82

37:                                               ; preds = %57, %46, %30, %19
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %67

39:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 112
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  invoke void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %10, ptr noundef %42, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %7)
          to label %43 unwind label %63

43:                                               ; preds = %39
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  %45 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %45, label %46, label %.thread64

.thread64:                                        ; preds = %43
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %.thread

46:                                               ; preds = %43
  %47 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
          to label %48 unwind label %37

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

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %7, i64 16
  %51 = load i8, ptr %50, align 8, !tbaa !26, !range !29, !noundef !30
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %.thread60

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %1, i64 1
  %55 = load i8, ptr %54, align 1, !tbaa !31, !range !29, !noundef !30
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %.thread60

57:                                               ; preds = %53
  %58 = call noundef i64 @_ZNK7leveldb5Block4sizeEv(ptr noundef nonnull align 8 dereferenceable(21) %47)
  %59 = load ptr, ptr %15, align 8, !tbaa !23
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load ptr, ptr %60, align 8
  %62 = invoke noundef ptr %61(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %47, i64 noundef %58, ptr noundef nonnull @_ZN7leveldbL17DeleteCachedBlockERKNS_5SliceEPv)
          to label %.thread60 unwind label %37

63:                                               ; preds = %39
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %67

65:                                               ; preds = %48
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 24) #11
  br label %67

67:                                               ; preds = %65, %63, %37
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %82

68:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 112
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  invoke void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %11, ptr noundef %71, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %7)
          to label %72 unwind label %78

72:                                               ; preds = %68
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  %74 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %74, label %75, label %.thread50

.thread50:                                        ; preds = %72
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %.thread

75:                                               ; preds = %72
  %76 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
          to label %77 unwind label %35

77:                                               ; preds = %75
  invoke void @_ZN7leveldb5BlockC1ERKNS_13BlockContentsE(ptr noundef nonnull align 8 dereferenceable(21) %76, ptr noundef nonnull align 8 dereferenceable(18) %7)
          to label %.thread54 unwind label %80

.thread54:                                        ; preds = %77
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %84

78:                                               ; preds = %68
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %82

80:                                               ; preds = %77
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %76, i64 noundef 24) #11
  br label %82

82:                                               ; preds = %80, %78, %67, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %81, %80 ], [ %36, %35 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %96

.thread60:                                        ; preds = %53, %49, %57
  %.032.ph = phi ptr [ %62, %57 ], [ null, %49 ], [ null, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %84

83:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  %.not44 = icmp eq ptr %34, null
  br i1 %.not44, label %.thread, label %84

84:                                               ; preds = %.thread60, %.thread54, %83
  %.13359 = phi ptr [ null, %.thread54 ], [ %28, %83 ], [ %.032.ph, %.thread60 ]
  %.13658 = phi ptr [ %76, %.thread54 ], [ %34, %83 ], [ %47, %.thread60 ]
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !33
  %87 = invoke noundef ptr @_ZN7leveldb5Block11NewIteratorEPKNS_10ComparatorE(ptr noundef nonnull align 8 dereferenceable(21) %.13658, ptr noundef %86)
          to label %88 unwind label %91

88:                                               ; preds = %84
  %89 = icmp eq ptr %.13359, null
  br i1 %89, label %90, label %93

90:                                               ; preds = %88
  invoke void @_ZN7leveldb8Iterator15RegisterCleanupEPFvPvS1_ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %87, ptr noundef nonnull @_ZN7leveldbL11DeleteBlockEPvS0_, ptr noundef nonnull %.13658, ptr noundef null)
          to label %95 unwind label %91

91:                                               ; preds = %.thread, %93, %90, %84
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %96

93:                                               ; preds = %88
  invoke void @_ZN7leveldb8Iterator15RegisterCleanupEPFvPvS1_ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40) %87, ptr noundef nonnull @_ZN7leveldbL12ReleaseBlockEPvS0_, ptr noundef %15, ptr noundef nonnull %.13359)
          to label %95 unwind label %91

.thread:                                          ; preds = %3, %.thread64, %.thread50, %83
  %94 = invoke noundef ptr @_ZN7leveldb16NewErrorIteratorERKNS_6StatusE(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %95 unwind label %91

95:                                               ; preds = %.thread, %90, %93
  %.0 = phi ptr [ %87, %90 ], [ %87, %93 ], [ %94, %.thread ]
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  ret ptr %.0

96:                                               ; preds = %91, %82
  %.pn45 = phi { ptr, i32 } [ %92, %91 ], [ %.pn.pn, %82 ]
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn45
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7leveldb13EncodeFixed64EPcm(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7leveldbL17DeleteCachedBlockERKNS_5SliceEPv(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #1

declare void @_ZN7leveldb8Iterator15RegisterCleanupEPFvPvS1_ES1_S1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7leveldbL11DeleteBlockEPvS0_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7leveldbL12ReleaseBlockEPvS0_(ptr noundef, ptr noundef) #8

declare noundef ptr @_ZN7leveldb16NewErrorIteratorERKNS_6StatusE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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 = { 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 #3 = { 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 #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 = { 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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #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, !7, i64 8}
!6 = !{!"_ZTSN7leveldb5TableE", !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 48}
!11 = !{!"_ZTSN7leveldb5Table3RepE", !12, i64 0, !17, i64 104, !7, i64 112, !14, i64 120, !7, i64 128, !7, i64 136, !18, i64 144, !7, i64 160}
!12 = !{!"_ZTSN7leveldb7OptionsE", !7, i64 0, !13, i64 8, !13, i64 9, !13, i64 10, !7, i64 16, !7, i64 24, !14, i64 32, !15, i64 40, !7, i64 48, !14, i64 56, !15, i64 64, !14, i64 72, !16, i64 80, !13, i64 84, !7, i64 88, !14, i64 96}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTSN7leveldb15CompressionTypeE", !8, i64 0}
!17 = !{!"_ZTSN7leveldb6StatusE", !7, i64 0}
!18 = !{!"_ZTSN7leveldb11BlockHandleE", !14, i64 0, !14, i64 8}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !21}
!20 = !{!7, !7, i64 0}
!21 = !{!14, !14, i64 0}
!22 = !{!11, !14, i64 120}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !9, i64 0}
!25 = !{!11, !7, i64 112}
!26 = !{!27, !13, i64 16}
!27 = !{!"_ZTSN7leveldb13BlockContentsE", !28, i64 0, !13, i64 16, !13, i64 17}
!28 = !{!"_ZTSN7leveldb5SliceE", !7, i64 0, !14, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !13, i64 1}
!32 = !{!"_ZTSN7leveldb11ReadOptionsE", !13, i64 0, !13, i64 1, !7, i64 8}
!33 = !{!11, !7, i64 0}


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