; LLVM IR from nsccgz-storage/nvlsm :: table/table.ll (ZN7leveldb5Table10ReadFilterERKNS_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::Slice" = type { ptr, i64 }
%"class.leveldb::BlockHandle" = type { i64, i64 }
%"struct.leveldb::ReadOptions" = type { i8, i8, ptr }
%"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 }

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7leveldb5Table10ReadFilterERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.leveldb::Slice", align 8
  %6 = alloca %"class.leveldb::BlockHandle", align 8
  %7 = alloca %"class.leveldb::Status", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.leveldb::ReadOptions", align 8
  %12 = alloca %"struct.leveldb::BlockContents", align 8
  %13 = alloca %"class.leveldb::Status", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #9
  call void @_ZN7leveldb11BlockHandleC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  call void @_ZN7leveldb11BlockHandle10DecodeFromEPNS_5SliceE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %5)
  %16 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %17 unwind label %20

17:                                               ; preds = %2
  %18 = xor i1 %16, true
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br i1 %18, label %19, label %24

19:                                               ; preds = %17
  store i32 1, ptr %10, align 4
  br label %69

20:                                               ; preds = %2
  %21 = landingpad { ptr, i32 }
          cleanup
  %22 = extractvalue { ptr, i32 } %21, 0
  store ptr %22, ptr %8, align 8
  %23 = extractvalue { ptr, i32 } %21, 1
  store i32 %23, ptr %9, align 4
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %77

24:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  call void @_ZN7leveldb11ReadOptionsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  %25 = getelementptr inbounds %"class.leveldb::Table", ptr %14, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  %27 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %"struct.leveldb::Options", ptr %27, i32 0, i32 3
  %29 = load i8, ptr %28, align 2, !tbaa !14, !range !22, !noundef !23
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %33

31:                                               ; preds = %24
  %32 = getelementptr inbounds %"struct.leveldb::ReadOptions", ptr %11, i32 0, i32 0
  store i8 1, ptr %32, align 8, !tbaa !24
  br label %33

33:                                               ; preds = %31, %24
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
  call void @_ZN7leveldb13BlockContentsC2Ev(ptr noundef nonnull align 8 dereferenceable(18) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %34 = getelementptr inbounds %"class.leveldb::Table", ptr %14, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !26
  call void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind writable sret(%"class.leveldb::Status") align 8 %13, ptr noundef %37, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %12)
  %38 = invoke noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %39 unwind label %42

39:                                               ; preds = %33
  %40 = xor i1 %38, true
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br i1 %40, label %41, label %46

41:                                               ; preds = %39
  store i32 1, ptr %10, align 4
  br label %68

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %76

46:                                               ; preds = %39
  %47 = getelementptr inbounds %"struct.leveldb::BlockContents", ptr %12, i32 0, i32 2
  %48 = load i8, ptr %47, align 1, !tbaa !27, !range !22, !noundef !23
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %56

50:                                               ; preds = %46
  %51 = getelementptr inbounds %"struct.leveldb::BlockContents", ptr %12, i32 0, i32 0
  %52 = call noundef ptr @_ZNK7leveldb5Slice4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %53 = getelementptr inbounds %"class.leveldb::Table", ptr %14, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  %55 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %54, i32 0, i32 5
  store ptr %52, ptr %55, align 8, !tbaa !30
  br label %56

56:                                               ; preds = %50, %46
  %57 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #10
  %58 = getelementptr inbounds %"class.leveldb::Table", ptr %14, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !12
  %60 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.leveldb::Options", ptr %60, i32 0, i32 14
  %62 = load ptr, ptr %61, align 8, !tbaa !31
  %63 = getelementptr inbounds %"struct.leveldb::BlockContents", ptr %12, i32 0, i32 0
  invoke void @_ZN7leveldb17FilterBlockReaderC1EPKNS_12FilterPolicyERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(40) %57, ptr noundef %62, ptr noundef nonnull align 8 dereferenceable(16) %63)
          to label %64 unwind label %72

64:                                               ; preds = %56
  %65 = getelementptr inbounds %"class.leveldb::Table", ptr %14, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !12
  %67 = getelementptr inbounds %"struct.leveldb::Table::Rep", ptr %66, i32 0, i32 4
  store ptr %57, ptr %67, align 8, !tbaa !32
  store i32 0, ptr %10, align 4
  br label %68

68:                                               ; preds = %64, %41
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %69

69:                                               ; preds = %68, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #9
  %70 = load i32, ptr %10, align 4
  switch i32 %70, label %83 [
    i32 0, label %71
    i32 1, label %71
  ]

71:                                               ; preds = %69, %69
  ret void

72:                                               ; preds = %56
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %57, i64 noundef 40) #11
  br label %76

76:                                               ; preds = %72, %42
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %77

77:                                               ; preds = %76, %20
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #9
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %8, align 8
  %80 = load i32, ptr %9, align 4
  %81 = insertvalue { ptr, i32 } poison, ptr %79, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %80, 1
  resume { ptr, i32 } %82

83:                                               ; preds = %69
  unreachable
}

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

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

declare void @_ZN7leveldb17FilterBlockReaderC1EPKNS_12FilterPolicyERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.leveldb::Status" = type { ptr }
%"class.leveldb::Slice" = type { ptr, i64 }
%"class.leveldb::BlockHandle" = type { i64, i64 }
%"struct.leveldb::ReadOptions" = type { i8, i8, ptr }
%"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: 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 #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7leveldb5Table10ReadFilterERKNS_5SliceE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %1) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.leveldb::Slice", align 8
  %4 = alloca %"class.leveldb::BlockHandle", align 8
  %5 = alloca %"class.leveldb::Status", align 8
  %6 = alloca %"struct.leveldb::ReadOptions", align 8
  %7 = alloca %"struct.leveldb::BlockContents", align 8
  %8 = alloca %"class.leveldb::Status", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !5
  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 8, ptr nonnull %5) #9
  call void @_ZN7leveldb11BlockHandle10DecodeFromEPNS_5SliceE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %3)
  %9 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %9, label %10, label %39

10:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN7leveldb11ReadOptionsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %12, i64 10
  %14 = load i8, ptr %13, align 2, !tbaa !14, !range !22, !noundef !23
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %17

16:                                               ; preds = %10
  store i8 1, ptr %6, align 8, !tbaa !24
  br label %17

17:                                               ; preds = %16, %10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN7leveldb13BlockContentsC2Ev(ptr noundef nonnull align 8 dereferenceable(18) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %18 = load ptr, ptr %11, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %18, i64 112
  %20 = load ptr, ptr %19, align 8, !tbaa !26
  call void @_ZN7leveldb9ReadBlockEPNS_16RandomAccessFileERKNS_11ReadOptionsERKNS_11BlockHandleEPNS_13BlockContentsE(ptr dead_on_unwind nonnull writable sret(%"class.leveldb::Status") align 8 %8, ptr noundef %20, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %7)
  %21 = call noundef zeroext i1 @_ZNK7leveldb6Status2okEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @_ZN7leveldb6StatusD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br i1 %21, label %22, label %38

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %7, i64 17
  %24 = load i8, ptr %23, align 1, !tbaa !27, !range !22, !noundef !23
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %26, label %._crit_edge

._crit_edge:                                      ; preds = %22
  %.pre = load ptr, ptr %11, align 8, !tbaa !12
  br label %30

26:                                               ; preds = %22
  %27 = call noundef ptr @_ZNK7leveldb5Slice4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %28 = load ptr, ptr %11, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %28, i64 136
  store ptr %27, ptr %29, align 8, !tbaa !30
  br label %30

30:                                               ; preds = %._crit_edge, %26
  %31 = phi ptr [ %.pre, %._crit_edge ], [ %28, %26 ]
  %32 = call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #10
  %33 = getelementptr inbounds i8, ptr %31, i64 88
  %34 = load ptr, ptr %33, align 8, !tbaa !31
  invoke void @_ZN7leveldb17FilterBlockReaderC1EPKNS_12FilterPolicyERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef %34, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %35 unwind label %40

35:                                               ; preds = %30
  %36 = load ptr, ptr %11, align 8, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %36, i64 128
  store ptr %32, ptr %37, align 8, !tbaa !32
  br label %38

38:                                               ; preds = %17, %35
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %39

39:                                               ; preds = %2, %38
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  ret void

40:                                               ; preds = %30
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %32, i64 noundef 40) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  resume { ptr, i32 } %41
}

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

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

declare void @_ZN7leveldb17FilterBlockReaderC1EPKNS_12FilterPolicyERKNS_5SliceE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

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


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