; LLVM IR from nsccgz-storage/nvlsm :: db (builder)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.leveldb::Slice" = type { ptr, i64 }
%"struct.leveldb::ReadOptions" = type { i8, i8, ptr }
%"struct.leveldb::FileMetaData" = type { i32, i32, i64, i64, %"class.leveldb::InternalKey", %"class.leveldb::InternalKey", i8, %"class.std::vector" }
%"class.leveldb::InternalKey" = type { %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<leveldb::SegmentMeta *, std::allocator<leveldb::SegmentMeta *>>::_Vector_impl" }
%"struct.std::_Vector_base<leveldb::SegmentMeta *, std::allocator<leveldb::SegmentMeta *>>::_Vector_impl" = type { %"struct.std::_Vector_base<leveldb::SegmentMeta *, std::allocator<leveldb::SegmentMeta *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<leveldb::SegmentMeta *, std::allocator<leveldb::SegmentMeta *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._ZN7leveldb10BuildTableERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_3EnvERKNS_7OptionsEPNS_10TableCacheEPNS_8IteratorEPNS_12FileMetaDataE = external hidden unnamed_addr constant [114 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7leveldb10BuildTableERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_3EnvERKNS_7OptionsEPNS_10TableCacheEPNS_8IteratorEPNS_12FileMetaDataE(ptr dead_on_unwind noalias writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i1, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.leveldb::Status", align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.leveldb::Slice", align 8
  %24 = alloca %"class.leveldb::Slice", align 8
  %25 = alloca %"class.leveldb::Slice", align 8
  %26 = alloca %"class.leveldb::Slice", align 8
  %27 = alloca %"class.leveldb::Status", align 8
  %28 = alloca %"class.leveldb::Status", align 8
  %29 = alloca %"class.leveldb::Status", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.leveldb::ReadOptions", align 8
  %32 = alloca %"class.leveldb::Status", align 8
  %33 = alloca %"class.leveldb::Status", align 8
  %34 = alloca %"class.leveldb::Status", align 8
  %35 = alloca %"class.leveldb::Status", align 8
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  store i1 false, ptr %15, align 1
  call void @_ZN7leveldb6StatusC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #11
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %36, i32 0, i32 3
  store i64 0, ptr %37, align 8, !tbaa !9
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = getelementptr inbounds ptr, ptr %39, i64 3
  %41 = load ptr, ptr %40, align 8
  invoke void %41(ptr noundef nonnull align 8 dereferenceable(40) %38)
          to label %42 unwind label %64

42:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #11
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %44, i32 0, i32 2
  %46 = load i64, ptr %45, align 8, !tbaa !23
  invoke void @_ZN7leveldb13TableFileNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %43, i64 noundef %46)
          to label %47 unwind label %68

47:                                               ; preds = %42
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = getelementptr inbounds ptr, ptr %49, i64 2
  %51 = load ptr, ptr %50, align 8
  %52 = invoke noundef zeroext i1 %51(ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %53 unwind label %72

53:                                               ; preds = %47
  br i1 %52, label %54, label %278

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = getelementptr inbounds ptr, ptr %56, i64 5
  %58 = load ptr, ptr %57, align 8
  invoke void %58(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %19)
          to label %59 unwind label %76

59:                                               ; preds = %54
  %60 = 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) #11
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  %61 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %62 unwind label %80

62:                                               ; preds = %59
  br i1 %61, label %84, label %63

63:                                               ; preds = %62
  store i1 true, ptr %15, align 1
  store i32 1, ptr %21, align 4
  br label %272

64:                                               ; preds = %7
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %16, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %17, align 4
  br label %329

68:                                               ; preds = %42
  %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 %326

72:                                               ; preds = %316, %307, %47
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %16, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %17, align 4
  br label %325

76:                                               ; preds = %54
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %16, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  br label %277

80:                                               ; preds = %59
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %16, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %17, align 4
  br label %277

84:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #11
  %85 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #12
          to label %86 unwind label %141

86:                                               ; preds = %84
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN7leveldb12TableBuilderC1ERKNS_7OptionsEPNS_12WritableFileE(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(104) %87, ptr noundef %88)
          to label %89 unwind label %145

89:                                               ; preds = %86
  store ptr %85, ptr %22, align 8, !tbaa !5
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %90, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #11
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !21
  %94 = getelementptr inbounds ptr, ptr %93, i64 8
  %95 = load ptr, ptr %94, align 8
  %96 = invoke { ptr, i64 } %95(ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %97 unwind label %149

97:                                               ; preds = %89
  %98 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %99 = extractvalue { ptr, i64 } %96, 0
  store ptr %99, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %101 = extractvalue { ptr, i64 } %96, 1
  store i64 %101, ptr %100, align 8
  %102 = invoke noundef zeroext i1 @_ZN7leveldb11InternalKey10DecodeFromERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %103 unwind label %149

103:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #11
  invoke void @_ZN7leveldb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %104 unwind label %153

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %140, %104
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !21
  %108 = getelementptr inbounds ptr, ptr %107, i64 2
  %109 = load ptr, ptr %108, align 8
  %110 = invoke noundef zeroext i1 %109(ptr noundef nonnull align 8 dereferenceable(40) %106)
          to label %111 unwind label %153

111:                                              ; preds = %105
  br i1 %110, label %112, label %165

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #11
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  %115 = getelementptr inbounds ptr, ptr %114, i64 8
  %116 = load ptr, ptr %115, align 8
  %117 = invoke { ptr, i64 } %116(ptr noundef nonnull align 8 dereferenceable(40) %113)
          to label %118 unwind label %157

118:                                              ; preds = %112
  %119 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %120 = extractvalue { ptr, i64 } %117, 0
  store ptr %120, ptr %119, align 8
  %121 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %122 = extractvalue { ptr, i64 } %117, 1
  store i64 %122, ptr %121, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #11
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #11
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = getelementptr inbounds ptr, ptr %125, i64 9
  %127 = load ptr, ptr %126, align 8
  %128 = invoke { ptr, i64 } %127(ptr noundef nonnull align 8 dereferenceable(40) %124)
          to label %129 unwind label %161

129:                                              ; preds = %118
  %130 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %131 = extractvalue { ptr, i64 } %128, 0
  store ptr %131, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %133 = extractvalue { ptr, i64 } %128, 1
  store i64 %133, ptr %132, align 8
  invoke void @_ZN7leveldb12TableBuilder3AddERKNS_5SliceES3_(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %134 unwind label %161

134:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds ptr, ptr %137, i64 6
  %139 = load ptr, ptr %138, align 8
  invoke void %139(ptr noundef nonnull align 8 dereferenceable(40) %136)
          to label %140 unwind label %153

140:                                              ; preds = %135
  br label %105, !llvm.loop !26

141:                                              ; preds = %84
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %16, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %17, align 4
  br label %276

145:                                              ; preds = %86
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %16, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %17, align 4
  call void @_ZdlPvm(ptr noundef %85, i64 noundef 8) #13
  br label %276

149:                                              ; preds = %97, %89
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %16, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  br label %276

153:                                              ; preds = %236, %215, %201, %179, %175, %168, %165, %135, %105, %103
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %16, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %17, align 4
  br label %275

157:                                              ; preds = %112
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %16, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #11
  br label %275

161:                                              ; preds = %129, %118
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %16, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  br label %275

165:                                              ; preds = %111
  %166 = invoke noundef zeroext i1 @_ZNK7leveldb5Slice5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %167 unwind label %153

167:                                              ; preds = %165
  br i1 %166, label %173, label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %169, i32 0, i32 5
  %171 = invoke noundef zeroext i1 @_ZN7leveldb11InternalKey10DecodeFromERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(32) %170, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %172 unwind label %153

172:                                              ; preds = %168
  br label %173

173:                                              ; preds = %172, %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  %174 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN7leveldb12TableBuilder6FinishEv(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %174)
          to label %175 unwind label %191

175:                                              ; preds = %173
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %27) #11
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  %177 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %178 unwind label %153

178:                                              ; preds = %175
  br i1 %177, label %179, label %197

179:                                              ; preds = %178
  %180 = load ptr, ptr %22, align 8, !tbaa !5
  %181 = invoke noundef i64 @_ZNK7leveldb12TableBuilder8FileSizeEv(ptr noundef nonnull align 8 dereferenceable(8) %180)
          to label %182 unwind label %153

182:                                              ; preds = %179
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %183, i32 0, i32 3
  store i64 %181, ptr %184, align 8, !tbaa !9
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %185, i32 0, i32 3
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = icmp ugt i64 %187, 0
  br i1 %188, label %189, label %190

189:                                              ; preds = %182
  br label %196

190:                                              ; preds = %182
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 46, ptr noundef @__PRETTY_FUNCTION__._ZN7leveldb10BuildTableERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_3EnvERKNS_7OptionsEPNS_10TableCacheEPNS_8IteratorEPNS_12FileMetaDataE) #14
  unreachable

191:                                              ; preds = %173
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %16, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  br label %275

195:                                              ; No predecessors!
  br label %196

196:                                              ; preds = %195, %189
  br label %197

197:                                              ; preds = %196, %178
  %198 = load ptr, ptr %22, align 8, !tbaa !5
  %199 = icmp eq ptr %198, null
  br i1 %199, label %201, label %200

200:                                              ; preds = %197
  call void @_ZN7leveldb12TableBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %198) #11
  call void @_ZdlPvm(ptr noundef %198, i64 noundef 8) #13
  br label %201

201:                                              ; preds = %200, %197
  %202 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %203 unwind label %153

203:                                              ; preds = %201
  br i1 %202, label %204, label %215

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %205 = load ptr, ptr %19, align 8, !tbaa !5
  %206 = load ptr, ptr %205, align 8, !tbaa !21
  %207 = getelementptr inbounds ptr, ptr %206, i64 5
  %208 = load ptr, ptr %207, align 8
  invoke void %208(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %205)
          to label %209 unwind label %211

209:                                              ; preds = %204
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %28) #11
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  br label %215

211:                                              ; preds = %204
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %16, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  br label %275

215:                                              ; preds = %209, %203
  %216 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %217 unwind label %153

217:                                              ; preds = %215
  br i1 %216, label %218, label %229

218:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %219 = load ptr, ptr %19, align 8, !tbaa !5
  %220 = load ptr, ptr %219, align 8, !tbaa !21
  %221 = getelementptr inbounds ptr, ptr %220, i64 3
  %222 = load ptr, ptr %221, align 8
  invoke void %222(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %29, ptr noundef nonnull align 8 dereferenceable(8) %219)
          to label %223 unwind label %225

223:                                              ; preds = %218
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %29) #11
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %229

225:                                              ; preds = %218
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %16, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %275

229:                                              ; preds = %223, %217
  %230 = load ptr, ptr %19, align 8, !tbaa !5
  %231 = icmp eq ptr %230, null
  br i1 %231, label %236, label %232

232:                                              ; preds = %229
  %233 = load ptr, ptr %230, align 8, !tbaa !21
  %234 = getelementptr inbounds ptr, ptr %233, i64 1
  %235 = load ptr, ptr %234, align 8
  call void %235(ptr noundef nonnull align 8 dereferenceable(8) %230) #11
  br label %236

236:                                              ; preds = %232, %229
  store ptr null, ptr %19, align 8, !tbaa !5
  %237 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %238 unwind label %153

238:                                              ; preds = %236
  br i1 %237, label %239, label %271

239:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #11
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 16, i1 false)
  call void @_ZN7leveldb11ReadOptionsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #11
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %241, i32 0, i32 2
  %243 = load i64, ptr %242, align 8, !tbaa !23
  %244 = load ptr, ptr %14, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %244, i32 0, i32 3
  %246 = load i64, ptr %245, align 8, !tbaa !9
  %247 = invoke noundef ptr @_ZN7leveldb10TableCache11NewIteratorERKNS_11ReadOptionsEmmPPNS_5TableE(ptr noundef nonnull align 8 dereferenceable(56) %240, ptr noundef nonnull align 8 dereferenceable(16) %31, i64 noundef %243, i64 noundef %246, ptr noundef null)
          to label %248 unwind label %262

248:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #11
  store ptr %247, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #11
  %249 = load ptr, ptr %30, align 8, !tbaa !5
  %250 = load ptr, ptr %249, align 8, !tbaa !21
  %251 = getelementptr inbounds ptr, ptr %250, i64 10
  %252 = load ptr, ptr %251, align 8
  invoke void %252(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %32, ptr noundef nonnull align 8 dereferenceable(40) %249)
          to label %253 unwind label %266

253:                                              ; preds = %248
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %32) #11
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  %255 = load ptr, ptr %30, align 8, !tbaa !5
  %256 = icmp eq ptr %255, null
  br i1 %256, label %261, label %257

257:                                              ; preds = %253
  %258 = load ptr, ptr %255, align 8, !tbaa !21
  %259 = getelementptr inbounds ptr, ptr %258, i64 1
  %260 = load ptr, ptr %259, align 8
  call void %260(ptr noundef nonnull align 8 dereferenceable(40) %255) #11
  br label %261

261:                                              ; preds = %257, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  br label %271

262:                                              ; preds = %239
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %16, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #11
  br label %270

266:                                              ; preds = %248
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %16, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  br label %270

270:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  br label %275

271:                                              ; preds = %261, %238
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  store i32 0, ptr %21, align 4
  br label %272

272:                                              ; preds = %271, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  %273 = load i32, ptr %21, align 4
  switch i32 %273, label %323 [
    i32 0, label %274
  ]

274:                                              ; preds = %272
  br label %278

275:                                              ; preds = %270, %225, %211, %191, %161, %157, %153
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #11
  br label %276

276:                                              ; preds = %275, %149, %145, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %277

277:                                              ; preds = %276, %80, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %325

278:                                              ; preds = %274, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = load ptr, ptr %279, align 8, !tbaa !21
  %281 = getelementptr inbounds ptr, ptr %280, i64 10
  %282 = load ptr, ptr %281, align 8
  invoke void %282(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %33, ptr noundef nonnull align 8 dereferenceable(40) %279)
          to label %283 unwind label %294

283:                                              ; preds = %278
  %284 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %285 unwind label %298

285:                                              ; preds = %283
  %286 = xor i1 %284, true
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  br i1 %286, label %287, label %307

287:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #11
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = load ptr, ptr %288, align 8, !tbaa !21
  %290 = getelementptr inbounds ptr, ptr %289, i64 10
  %291 = load ptr, ptr %290, align 8
  invoke void %291(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %34, ptr noundef nonnull align 8 dereferenceable(40) %288)
          to label %292 unwind label %303

292:                                              ; preds = %287
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %34) #11
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %307

294:                                              ; preds = %278
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %16, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %17, align 4
  br label %302

298:                                              ; preds = %283
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %16, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %17, align 4
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #11
  br label %302

302:                                              ; preds = %298, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  br label %325

303:                                              ; preds = %287
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %16, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %325

307:                                              ; preds = %292, %285
  %308 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %309 unwind label %72

309:                                              ; preds = %307
  br i1 %308, label %310, label %316

310:                                              ; preds = %309
  %311 = load ptr, ptr %14, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.leveldb::FileMetaData", ptr %311, i32 0, i32 3
  %313 = load i64, ptr %312, align 8, !tbaa !9
  %314 = icmp ugt i64 %313, 0
  br i1 %314, label %315, label %316

315:                                              ; preds = %310
  br label %322

316:                                              ; preds = %310, %309
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  %318 = load ptr, ptr %317, align 8, !tbaa !21
  %319 = getelementptr inbounds ptr, ptr %318, i64 10
  %320 = load ptr, ptr %319, align 8
  invoke void %320(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %35, ptr noundef nonnull align 8 dereferenceable(8) %317, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %321 unwind label %72

321:                                              ; preds = %316
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #11
  br label %322

322:                                              ; preds = %321, %315
  store i1 true, ptr %15, align 1
  store i32 1, ptr %21, align 4
  br label %323

323:                                              ; preds = %322, %272
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #11
  %324 = load i1, ptr %15, align 1
  br i1 %324, label %328, label %327

325:                                              ; preds = %303, %302, %277, %72
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  br label %326

326:                                              ; preds = %325, %68
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #11
  br label %329

327:                                              ; preds = %323
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #11
  br label %328

328:                                              ; preds = %327, %323
  ret void

329:                                              ; preds = %326, %64
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #11
  br label %330

330:                                              ; preds = %329
  %331 = load ptr, ptr %16, align 8
  %332 = load i32, ptr %17, align 4
  %333 = insertvalue { ptr, i32 } poison, ptr %331, 0
  %334 = insertvalue { ptr, i32 } %333, i32 %332, 1
  resume { ptr, i32 } %334
}

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7leveldb13TableFileNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 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 #1 align 2

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

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

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

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

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

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

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

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

declare void @_ZN7leveldb12TableBuilder3AddERKNS_5SliceES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

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

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

declare noundef i64 @_ZNK7leveldb12TableBuilder8FileSizeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

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

declare noundef ptr @_ZN7leveldb10TableCache11NewIteratorERKNS_11ReadOptionsEmmPPNS_5TableE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { noreturn 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 #9 = { 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 #10 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { noreturn 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, !12, i64 16}
!10 = !{!"_ZTSN7leveldb12FileMetaDataE", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 56, !16, i64 88, !17, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN7leveldb11InternalKeyE", !14, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !12, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIPN7leveldb11SegmentMetaESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7leveldb11SegmentMetaESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7leveldb11SegmentMetaESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7leveldb11SegmentMetaESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{!10, !12, i64 8}
!24 = !{i64 0, i64 8, !5, i64 8, i64 8, !25}
!25 = !{!12, !12, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.leveldb::Slice" = type { ptr, i64 }
%"struct.leveldb::ReadOptions" = type { i8, i8, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__._ZN7leveldb10BuildTableERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_3EnvERKNS_7OptionsEPNS_10TableCacheEPNS_8IteratorEPNS_12FileMetaDataE = external hidden unnamed_addr constant [114 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7leveldb10BuildTableERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_3EnvERKNS_7OptionsEPNS_10TableCacheEPNS_8IteratorEPNS_12FileMetaDataE(ptr dead_on_unwind noalias nonnull writable sret(%"class.leveldb::Status") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.leveldb::Status", align 8
  %11 = alloca %"class.leveldb::Slice", align 8
  %12 = alloca %"class.leveldb::Slice", align 8
  %13 = alloca %"class.leveldb::Slice", align 8
  %14 = alloca %"class.leveldb::Status", align 8
  %15 = alloca %"class.leveldb::Status", align 8
  %16 = alloca %"class.leveldb::Status", align 8
  %17 = alloca %"struct.leveldb::ReadOptions", align 8
  %18 = alloca %"class.leveldb::Status", align 8
  %19 = alloca %"class.leveldb::Status", align 8
  %20 = alloca %"class.leveldb::Status", align 8
  %21 = alloca %"class.leveldb::Status", align 8
  tail call void @_ZN7leveldb6StatusC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #10
  %22 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 0, ptr %22, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %23, i64 24
  %25 = load ptr, ptr %24, align 8
  invoke void %25(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %26 unwind label %42

26:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !22
  invoke void @_ZN7leveldb13TableFileNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %28)
          to label %29 unwind label %44

29:                                               ; preds = %26
  %30 = load ptr, ptr %5, align 8, !tbaa !20
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef zeroext i1 %32(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %34 unwind label %46

34:                                               ; preds = %29
  br i1 %33, label %35, label %168

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %36 = load ptr, ptr %2, align 8, !tbaa !20
  %37 = getelementptr inbounds i8, ptr %36, i64 40
  %38 = load ptr, ptr %37, align 8
  invoke void %38(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull %9)
          to label %39 unwind label %48

39:                                               ; preds = %35
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  %41 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %41, label %50, label %193

42:                                               ; preds = %7
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %197

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

46:                                               ; preds = %188, %29
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %194

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %167

50:                                               ; preds = %39
  %51 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #11
          to label %52 unwind label %92

52:                                               ; preds = %50
  %53 = load ptr, ptr %9, align 8, !tbaa !23
  invoke void @_ZN7leveldb12TableBuilderC1ERKNS_7OptionsEPNS_12WritableFileE(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef %53)
          to label %54 unwind label %94

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  %55 = load ptr, ptr %5, align 8, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %55, i64 64
  %57 = load ptr, ptr %56, align 8
  %58 = invoke { ptr, i64 } %57(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %59 unwind label %96

59:                                               ; preds = %54
  %60 = getelementptr inbounds i8, ptr %6, i64 24
  %61 = extractvalue { ptr, i64 } %58, 0
  store ptr %61, ptr %11, align 8
  %62 = getelementptr inbounds i8, ptr %11, i64 8
  %63 = extractvalue { ptr, i64 } %58, 1
  store i64 %63, ptr %62, align 8
  %64 = invoke noundef zeroext i1 @_ZN7leveldb11InternalKey10DecodeFromERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %65 unwind label %96

65:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  call void @_ZN7leveldb5SliceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %66 = getelementptr inbounds i8, ptr %13, i64 8
  br label %67

67:                                               ; preds = %88, %65
  %68 = load ptr, ptr %5, align 8, !tbaa !20
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = load ptr, ptr %69, align 8
  %71 = invoke noundef zeroext i1 %70(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %72 unwind label %.loopexit

72:                                               ; preds = %67
  br i1 %71, label %73, label %102

73:                                               ; preds = %72
  %74 = load ptr, ptr %5, align 8, !tbaa !20
  %75 = getelementptr inbounds i8, ptr %74, i64 64
  %76 = load ptr, ptr %75, align 8
  %77 = invoke { ptr, i64 } %76(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %78 unwind label %98

78:                                               ; preds = %73
  %79 = extractvalue { ptr, i64 } %77, 0
  %80 = extractvalue { ptr, i64 } %77, 1
  store ptr %79, ptr %12, align 8, !tbaa !23
  store i64 %80, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  %81 = load ptr, ptr %5, align 8, !tbaa !20
  %82 = getelementptr inbounds i8, ptr %81, i64 72
  %83 = load ptr, ptr %82, align 8
  %84 = invoke { ptr, i64 } %83(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %85 unwind label %100

85:                                               ; preds = %78
  %86 = extractvalue { ptr, i64 } %84, 0
  store ptr %86, ptr %13, align 8
  %87 = extractvalue { ptr, i64 } %84, 1
  store i64 %87, ptr %66, align 8
  invoke void @_ZN7leveldb12TableBuilder3AddERKNS_5SliceES3_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %88 unwind label %100

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  %89 = load ptr, ptr %5, align 8, !tbaa !20
  %90 = getelementptr inbounds i8, ptr %89, i64 48
  %91 = load ptr, ptr %90, align 8
  invoke void %91(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %67 unwind label %.loopexit, !llvm.loop !25

92:                                               ; preds = %50
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %167

94:                                               ; preds = %52
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %51, i64 noundef 8) #12
  br label %167

96:                                               ; preds = %59, %54
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %167

.loopexit:                                        ; preds = %67, %88
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %166

.loopexit.split-lp:                               ; preds = %104, %111
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %166

98:                                               ; preds = %73
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %166

100:                                              ; preds = %85, %78
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %166

102:                                              ; preds = %72
  %103 = call noundef zeroext i1 @_ZNK7leveldb5Slice5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  br i1 %103, label %107, label %104

104:                                              ; preds = %102
  %105 = getelementptr inbounds i8, ptr %6, i64 56
  %106 = invoke noundef zeroext i1 @_ZN7leveldb11InternalKey10DecodeFromERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(32) %105, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %107 unwind label %.loopexit.split-lp

107:                                              ; preds = %104, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  invoke void @_ZN7leveldb12TableBuilder6FinishEv(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %108 unwind label %115

108:                                              ; preds = %107
  %109 = 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
  %110 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %110, label %111, label %117

111:                                              ; preds = %108
  %112 = invoke noundef i64 @_ZNK7leveldb12TableBuilder8FileSizeEv(ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %113 unwind label %.loopexit.split-lp

113:                                              ; preds = %111
  store i64 %112, ptr %22, align 8, !tbaa !5
  %.not = icmp eq i64 %112, 0
  br i1 %.not, label %114, label %117

114:                                              ; preds = %113
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 46, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7leveldb10BuildTableERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_3EnvERKNS_7OptionsEPNS_10TableCacheEPNS_8IteratorEPNS_12FileMetaDataE) #13
  unreachable

115:                                              ; preds = %107
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br label %166

117:                                              ; preds = %108, %113
  call void @_ZN7leveldb12TableBuilderD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #10
  call void @_ZdlPvm(ptr noundef nonnull %51, i64 noundef 8) #12
  %118 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %118, label %119, label %128

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  %120 = load ptr, ptr %9, align 8, !tbaa !23
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  %123 = load ptr, ptr %122, align 8
  invoke void %123(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %124 unwind label %126

124:                                              ; preds = %119
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %128

126:                                              ; preds = %119
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %166

128:                                              ; preds = %124, %117
  %129 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %129, label %130, label %139

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #10
  %131 = load ptr, ptr %9, align 8, !tbaa !23
  %132 = load ptr, ptr %131, align 8, !tbaa !20
  %133 = getelementptr inbounds i8, ptr %132, i64 24
  %134 = load ptr, ptr %133, align 8
  invoke void %134(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %131)
          to label %135 unwind label %137

135:                                              ; preds = %130
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  br label %139

137:                                              ; preds = %130
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  br label %166

139:                                              ; preds = %135, %128
  %140 = load ptr, ptr %9, align 8, !tbaa !23
  %141 = icmp eq ptr %140, null
  br i1 %141, label %146, label %142

142:                                              ; preds = %139
  %143 = load ptr, ptr %140, align 8, !tbaa !20
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = load ptr, ptr %144, align 8
  call void %145(ptr noundef nonnull align 8 dereferenceable(8) %140) #10
  br label %146

146:                                              ; preds = %142, %139
  store ptr null, ptr %9, align 8, !tbaa !23
  %147 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %147, label %148, label %165

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, i8 0, i64 16, i1 false)
  call void @_ZN7leveldb11ReadOptionsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  %149 = load i64, ptr %27, align 8, !tbaa !22
  %150 = load i64, ptr %22, align 8, !tbaa !5
  %151 = invoke noundef ptr @_ZN7leveldb10TableCache11NewIteratorERKNS_11ReadOptionsEmmPPNS_5TableE(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %149, i64 noundef %150, ptr noundef null)
          to label %152 unwind label %161

152:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %153 = load ptr, ptr %151, align 8, !tbaa !20
  %154 = getelementptr inbounds i8, ptr %153, i64 80
  %155 = load ptr, ptr %154, align 8
  invoke void %155(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %151)
          to label %156 unwind label %163

156:                                              ; preds = %152
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7leveldb6StatusaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  %158 = load ptr, ptr %151, align 8, !tbaa !20
  %159 = getelementptr inbounds i8, ptr %158, i64 8
  %160 = load ptr, ptr %159, align 8
  call void %160(ptr noundef nonnull align 8 dereferenceable(40) %151) #10
  br label %165

161:                                              ; preds = %148
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %166

163:                                              ; preds = %152
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %166

165:                                              ; preds = %156, %146
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %168

166:                                              ; preds = %.loopexit, %.loopexit.split-lp, %161, %163, %137, %126, %115, %100, %98
  %.pn45 = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ], [ %138, %137 ], [ %127, %126 ], [ %116, %115 ], [ %164, %163 ], [ %162, %161 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  br label %167

167:                                              ; preds = %92, %94, %96, %166, %48
  %.pn45.pn.pn = phi { ptr, i32 } [ %49, %48 ], [ %.pn45, %166 ], [ %97, %96 ], [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %194

168:                                              ; preds = %165, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  %169 = load ptr, ptr %5, align 8, !tbaa !20
  %170 = getelementptr inbounds i8, ptr %169, i64 80
  %171 = load ptr, ptr %170, align 8
  invoke void %171(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %172 unwind label %180

172:                                              ; preds = %168
  %173 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  br i1 %173, label %184, label %174

174:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #10
  %175 = load ptr, ptr %5, align 8, !tbaa !20
  %176 = getelementptr inbounds i8, ptr %175, i64 80
  %177 = load ptr, ptr %176, align 8
  invoke void %177(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %178 unwind label %182

178:                                              ; preds = %174
  %179 = 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) #10
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  br label %184

180:                                              ; preds = %168
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  br label %194

182:                                              ; preds = %174
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  br label %194

184:                                              ; preds = %178, %172
  %185 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %185, label %186, label %188

186:                                              ; preds = %184
  %187 = load i64, ptr %22, align 8, !tbaa !5
  %.not44 = icmp eq i64 %187, 0
  br i1 %.not44, label %188, label %.critedge

188:                                              ; preds = %186, %184
  %189 = load ptr, ptr %2, align 8, !tbaa !20
  %190 = getelementptr inbounds i8, ptr %189, i64 80
  %191 = load ptr, ptr %190, align 8
  invoke void %191(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %192 unwind label %46

192:                                              ; preds = %188
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #10
  br label %.critedge

193:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  br label %196

194:                                              ; preds = %182, %180, %167, %46
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %167 ], [ %47, %46 ], [ %183, %182 ], [ %181, %180 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %195

195:                                              ; preds = %194, %44
  %.pn45.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn, %194 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  br label %197

.critedge:                                        ; preds = %192, %186
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  br label %196

196:                                              ; preds = %193, %.critedge
  ret void

197:                                              ; preds = %195, %42
  %.pn45.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn, %195 ], [ %43, %42 ]
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #10
  resume { ptr, i32 } %.pn45.pn.pn.pn.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN7leveldb13TableFileNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 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 #1 align 2

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

; 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

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

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

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

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

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

declare void @_ZN7leveldb12TableBuilder3AddERKNS_5SliceES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

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

declare noundef i64 @_ZNK7leveldb12TableBuilder8FileSizeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

declare noundef ptr @_ZN7leveldb10TableCache11NewIteratorERKNS_11ReadOptionsEmmPPNS_5TableE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { noreturn 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, !10, i64 16}
!6 = !{!"_ZTSN7leveldb12FileMetaDataE", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 56, !15, i64 88, !16, i64 96}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN7leveldb11InternalKeyE", !12, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !10, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIPN7leveldb11SegmentMetaESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIPN7leveldb11SegmentMetaESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7leveldb11SegmentMetaESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7leveldb11SegmentMetaESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !9, i64 0}
!22 = !{!6, !10, i64 8}
!23 = !{!14, !14, i64 0}
!24 = !{!10, !10, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass