; LLVM IR from weicao/cascadb :: src/cache/cache.ll (ZN7cascadb5Cache5evictEv)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator.12" = type { ptr }
%"class.cascadb::ScopedMutex" = type { i8, ptr }
%class.LRUComparator = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.cascadb::Cache::CacheKey" = type { %"class.std::__cxx11::basic_string", i64 }
%"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.cascadb::Cache" = type { %"class.cascadb::Options", %"class.cascadb::RWLock", %"class.std::map", %"class.cascadb::Mutex", i64, %"class.cascadb::RWLock", %"class.std::map.0", %"class.cascadb::Mutex", i8, ptr }
%"class.cascadb::Options" = type <{ ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, cascadb::Cache::TableSettings>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, cascadb::Cache::TableSettings>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, cascadb::Cache::TableSettings>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, cascadb::Cache::TableSettings>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.cascadb::RWLock" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<cascadb::Cache::CacheKey, std::pair<const cascadb::Cache::CacheKey, cascadb::Node *>, std::_Select1st<std::pair<const cascadb::Cache::CacheKey, cascadb::Node *>>, std::less<cascadb::Cache::CacheKey>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<cascadb::Cache::CacheKey, std::pair<const cascadb::Cache::CacheKey, cascadb::Node *>, std::_Select1st<std::pair<const cascadb::Cache::CacheKey, cascadb::Node *>>, std::less<cascadb::Cache::CacheKey>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.cascadb::Mutex" = type { i8, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"struct.std::pair" = type { %"class.cascadb::Cache::CacheKey", ptr }

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN7cascadb6RWLock10write_lockEv(ptr noundef nonnull align 8 dereferenceable(56)) #3

declare void @_ZN7cascadb6RWLock6unlockEv(ptr noundef nonnull align 8 dereferenceable(56)) #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS9_E(ptr noundef nonnull align 8 dereferenceable(48), ptr) #5 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb5Cache12delete_nodesERSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb5Cache8CacheKeyC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cascadb5Cache5evictEv(ptr noundef nonnull align 8 dereferenceable(432) %0) #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %24 = alloca %"class.cascadb::ScopedMutex", align 8
  %25 = alloca %class.LRUComparator, align 1
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %class.LRUComparator, align 1
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca %"class.cascadb::Cache::CacheKey", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 0, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %37 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 5
  invoke void @_ZN7cascadb6RWLock10write_lockEv(ptr noundef nonnull align 8 dereferenceable(56) %37)
          to label %38 unwind label %48

38:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %39 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 6
  %40 = call ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %39) #8
  %41 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.12", ptr %17, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  br label %42

42:                                               ; preds = %161, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %43 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 6
  %44 = call ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #8
  %45 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.12", ptr %18, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br i1 %46, label %52, label %47

47:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %165

48:                                               ; preds = %1
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %15, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %16, align 4
  br label %312

52:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %53 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %54 = getelementptr inbounds %"struct.std::pair", ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  store ptr %55, ptr %19, align 8, !tbaa !5
  %56 = load ptr, ptr %19, align 8, !tbaa !5
  %57 = invoke noundef i64 @_ZN7cascadb4Node3nidEv(ptr noundef nonnull align 8 dereferenceable(200) %56)
          to label %58 unwind label %66

58:                                               ; preds = %52
  %59 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %60 = getelementptr inbounds %"struct.std::pair", ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %"class.cascadb::Cache::CacheKey", ptr %60, i32 0, i32 1
  %62 = load i64, ptr %61, align 8, !tbaa !16
  %63 = icmp eq i64 %57, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %58
  br label %71

65:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 328, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #9
  unreachable

66:                                               ; preds = %81, %80, %75, %71, %52
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %15, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %16, align 4
  br label %164

70:                                               ; No predecessors!
  br label %71

71:                                               ; preds = %70, %64
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = invoke noundef zeroext i1 @_ZN7cascadb4Node7is_deadEv(ptr noundef nonnull align 8 dereferenceable(200) %72)
          to label %74 unwind label %66

74:                                               ; preds = %71
  br i1 %73, label %75, label %89

75:                                               ; preds = %74
  %76 = load ptr, ptr %19, align 8, !tbaa !5
  %77 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %76)
          to label %78 unwind label %66

78:                                               ; preds = %75
  %79 = icmp eq i32 %77, 0
  br i1 %79, label %80, label %88

80:                                               ; preds = %78
  invoke void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %81 unwind label %66

81:                                               ; preds = %80
  %82 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !17
  %83 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.12", ptr %20, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  %85 = invoke ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS9_E(ptr noundef nonnull align 8 dereferenceable(48) %82, ptr %84)
          to label %86 unwind label %66

86:                                               ; preds = %81
  %87 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.12", ptr %21, i32 0, i32 0
  store ptr %85, ptr %87, align 8
  br label %88

88:                                               ; preds = %86, %78
  br label %160

89:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = getelementptr inbounds ptr, ptr %91, i64 2
  %93 = load ptr, ptr %92, align 8
  %94 = invoke noundef i64 %93(ptr noundef nonnull align 8 dereferenceable(200) %90)
          to label %95 unwind label %111

95:                                               ; preds = %89
  store i64 %94, ptr %22, align 8, !tbaa !9
  %96 = load i64, ptr %22, align 8, !tbaa !9
  %97 = load i64, ptr %3, align 8, !tbaa !9
  %98 = add i64 %97, %96
  store i64 %98, ptr %3, align 8, !tbaa !9
  %99 = load i64, ptr %4, align 8, !tbaa !9
  %100 = add i64 %99, 1
  store i64 %100, ptr %4, align 8, !tbaa !9
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %101)
          to label %103 unwind label %111

103:                                              ; preds = %95
  %104 = icmp ne i32 %102, 0
  br i1 %104, label %105, label %115

105:                                              ; preds = %103
  %106 = load i64, ptr %22, align 8, !tbaa !9
  %107 = load i64, ptr %5, align 8, !tbaa !9
  %108 = add i64 %107, %106
  store i64 %108, ptr %5, align 8, !tbaa !9
  %109 = load i64, ptr %6, align 8, !tbaa !9
  %110 = add i64 %109, 1
  store i64 %110, ptr %6, align 8, !tbaa !9
  br label %115

111:                                              ; preds = %152, %148, %144, %140, %135, %125, %115, %95, %89
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %15, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %164

115:                                              ; preds = %105, %103
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = invoke noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200) %116)
          to label %118 unwind label %111

118:                                              ; preds = %115
  br i1 %117, label %119, label %125

119:                                              ; preds = %118
  %120 = load i64, ptr %22, align 8, !tbaa !9
  %121 = load i64, ptr %7, align 8, !tbaa !9
  %122 = add i64 %121, %120
  store i64 %122, ptr %7, align 8, !tbaa !9
  %123 = load i64, ptr %8, align 8, !tbaa !9
  %124 = add i64 %123, 1
  store i64 %124, ptr %8, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %119, %118
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = invoke noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200) %126)
          to label %128 unwind label %111

128:                                              ; preds = %125
  br i1 %127, label %129, label %135

129:                                              ; preds = %128
  %130 = load i64, ptr %22, align 8, !tbaa !9
  %131 = load i64, ptr %9, align 8, !tbaa !9
  %132 = add i64 %131, %130
  store i64 %132, ptr %9, align 8, !tbaa !9
  %133 = load i64, ptr %10, align 8, !tbaa !9
  %134 = add i64 %133, 1
  store i64 %134, ptr %10, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %129, %128
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %136)
          to label %138 unwind label %111

138:                                              ; preds = %135
  %139 = icmp eq i32 %137, 0
  br i1 %139, label %140, label %159

140:                                              ; preds = %138
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = invoke noundef zeroext i1 @_ZN7cascadb4Node7is_deadEv(ptr noundef nonnull align 8 dereferenceable(200) %141)
          to label %143 unwind label %111

143:                                              ; preds = %140
  br i1 %142, label %159, label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr %19, align 8, !tbaa !5
  %146 = invoke noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200) %145)
          to label %147 unwind label %111

147:                                              ; preds = %144
  br i1 %146, label %159, label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = invoke noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200) %149)
          to label %151 unwind label %111

151:                                              ; preds = %148
  br i1 %150, label %159, label %152

152:                                              ; preds = %151
  %153 = load i64, ptr %22, align 8, !tbaa !9
  %154 = load i64, ptr %11, align 8, !tbaa !9
  %155 = add i64 %154, %153
  store i64 %155, ptr %11, align 8, !tbaa !9
  %156 = load i64, ptr %12, align 8, !tbaa !9
  %157 = add i64 %156, 1
  store i64 %157, ptr %12, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %158 unwind label %111

158:                                              ; preds = %152
  br label %159

159:                                              ; preds = %158, %151, %147, %143, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %160

160:                                              ; preds = %159, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %161

161:                                              ; preds = %160
  %162 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #8
  %163 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.12", ptr %23, i32 0, i32 0
  store ptr %162, ptr %163, align 8
  br label %42, !llvm.loop !20

164:                                              ; preds = %111, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %312

165:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %166 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 3
  invoke void @_ZN7cascadb11ScopedMutexC2EPNS_5MutexE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef %166)
          to label %167 unwind label %194

167:                                              ; preds = %165
  %168 = load i64, ptr %3, align 8, !tbaa !9
  %169 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 4
  store i64 %168, ptr %169, align 8, !tbaa !22
  invoke void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %170 unwind label %198

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  %171 = call ptr @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %171, ptr %172, align 8
  %173 = call ptr @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN7cascadb4NodeESt6vectorIS4_SaIS4_EEEE13LRUComparatorEvT_SB_T0_(ptr %176, ptr %178)
          to label %179 unwind label %202

179:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %180 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 0
  %181 = getelementptr inbounds %"class.cascadb::Options", ptr %180, i32 0, i32 8
  %182 = load i64, ptr %181, align 8, !tbaa !43
  %183 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 0
  %184 = getelementptr inbounds %"class.cascadb::Options", ptr %183, i32 0, i32 13
  %185 = load i32, ptr %184, align 8, !tbaa !44
  %186 = zext i32 %185 to i64
  %187 = mul i64 %182, %186
  %188 = udiv i64 %187, 100
  store i64 %188, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store i64 0, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  store i64 0, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %277, %179
  %190 = load i64, ptr %32, align 8, !tbaa !9
  %191 = call noundef i64 @_ZNKSt6vectorIPN7cascadb4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %192 = icmp ult i64 %190, %191
  br i1 %192, label %206, label %193

193:                                              ; preds = %189
  store i32 5, ptr %33, align 4
  br label %281

194:                                              ; preds = %165
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %15, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %16, align 4
  br label %311

198:                                              ; preds = %167
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %15, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %16, align 4
  br label %310

202:                                              ; preds = %170
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %15, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %16, align 4
  br label %309

206:                                              ; preds = %189
  %207 = load i64, ptr %30, align 8, !tbaa !9
  %208 = load i64, ptr %29, align 8, !tbaa !9
  %209 = icmp uge i64 %207, %208
  br i1 %209, label %210, label %211

210:                                              ; preds = %206
  store i32 5, ptr %33, align 4
  br label %281

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %212 = load i64, ptr %32, align 8, !tbaa !9
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %212) #8
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  store ptr %214, ptr %34, align 8, !tbaa !5
  %215 = load ptr, ptr %34, align 8, !tbaa !5
  %216 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %215)
          to label %217 unwind label %232

217:                                              ; preds = %211
  %218 = icmp eq i32 %216, 0
  br i1 %218, label %219, label %228

219:                                              ; preds = %217
  %220 = load ptr, ptr %34, align 8, !tbaa !5
  %221 = invoke noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200) %220)
          to label %222 unwind label %232

222:                                              ; preds = %219
  br i1 %221, label %228, label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %34, align 8, !tbaa !5
  %225 = invoke noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200) %224)
          to label %226 unwind label %232

226:                                              ; preds = %223
  %227 = xor i1 %225, true
  br label %228

228:                                              ; preds = %226, %222, %217
  %229 = phi i1 [ false, %222 ], [ false, %217 ], [ %227, %226 ]
  br i1 %229, label %230, label %231

230:                                              ; preds = %228
  br label %237

231:                                              ; preds = %228
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.1, i32 noundef 386, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #9
  unreachable

232:                                              ; preds = %259, %223, %219, %211
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %15, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %16, align 4
  br label %280

236:                                              ; No predecessors!
  br label %237

237:                                              ; preds = %236, %230
  %238 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 40, ptr %35) #8
  %239 = load ptr, ptr %34, align 8, !tbaa !5
  %240 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN7cascadb4Node10table_nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(200) %239)
          to label %241 unwind label %250

241:                                              ; preds = %237
  %242 = load ptr, ptr %34, align 8, !tbaa !5
  %243 = invoke noundef i64 @_ZN7cascadb4Node3nidEv(ptr noundef nonnull align 8 dereferenceable(200) %242)
          to label %244 unwind label %250

244:                                              ; preds = %241
  invoke void @_ZN7cascadb5Cache8CacheKeyC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(40) %35, ptr noundef nonnull align 8 dereferenceable(32) %240, i64 noundef %243)
          to label %245 unwind label %250

245:                                              ; preds = %244
  %246 = invoke noundef i64 @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseERS8_(ptr noundef nonnull align 8 dereferenceable(48) %238, ptr noundef nonnull align 8 dereferenceable(40) %35)
          to label %247 unwind label %254

247:                                              ; preds = %245
  %248 = icmp ne i64 %246, 1
  call void @_ZN7cascadb5Cache8CacheKeyD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %35) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %35) #8
  br i1 %248, label %249, label %259

249:                                              ; preds = %247
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 390, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #9
  unreachable

250:                                              ; preds = %244, %241, %237
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %15, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %16, align 4
  br label %258

254:                                              ; preds = %245
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %15, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %16, align 4
  call void @_ZN7cascadb5Cache8CacheKeyD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %35) #8
  br label %258

258:                                              ; preds = %254, %250
  call void @llvm.lifetime.end.p0(i64 40, ptr %35) #8
  br label %280

259:                                              ; preds = %247
  %260 = load ptr, ptr %34, align 8, !tbaa !5
  %261 = load ptr, ptr %260, align 8, !tbaa !18
  %262 = getelementptr inbounds ptr, ptr %261, i64 2
  %263 = load ptr, ptr %262, align 8
  %264 = invoke noundef i64 %263(ptr noundef nonnull align 8 dereferenceable(200) %260)
          to label %265 unwind label %232

265:                                              ; preds = %259
  %266 = load i64, ptr %30, align 8, !tbaa !9
  %267 = add i64 %266, %264
  store i64 %267, ptr %30, align 8, !tbaa !9
  %268 = load i64, ptr %31, align 8, !tbaa !9
  %269 = add i64 %268, 1
  store i64 %269, ptr %31, align 8, !tbaa !9
  %270 = load ptr, ptr %34, align 8, !tbaa !5
  %271 = icmp eq ptr %270, null
  br i1 %271, label %276, label %272

272:                                              ; preds = %265
  %273 = load ptr, ptr %270, align 8, !tbaa !18
  %274 = getelementptr inbounds ptr, ptr %273, i64 1
  %275 = load ptr, ptr %274, align 8
  call void %275(ptr noundef nonnull align 8 dereferenceable(200) %270) #8
  br label %276

276:                                              ; preds = %272, %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %277

277:                                              ; preds = %276
  %278 = load i64, ptr %32, align 8, !tbaa !9
  %279 = add i64 %278, 1
  store i64 %279, ptr %32, align 8, !tbaa !9
  br label %189, !llvm.loop !45

280:                                              ; preds = %258, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %308

281:                                              ; preds = %210, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %282

282:                                              ; preds = %281
  invoke void @_ZN7cascadb11ScopedMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %283 unwind label %290

283:                                              ; preds = %282
  %284 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 4
  %285 = load i64, ptr %284, align 8, !tbaa !22
  %286 = load i64, ptr %30, align 8, !tbaa !9
  %287 = icmp uge i64 %285, %286
  br i1 %287, label %288, label %289

288:                                              ; preds = %283
  br label %295

289:                                              ; preds = %283
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.1, i32 noundef 400, ptr noundef @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #9
  unreachable

290:                                              ; preds = %305, %300, %295, %282
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %15, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %16, align 4
  br label %308

294:                                              ; No predecessors!
  br label %295

295:                                              ; preds = %294, %288
  %296 = load i64, ptr %30, align 8, !tbaa !9
  %297 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 4
  %298 = load i64, ptr %297, align 8, !tbaa !22
  %299 = sub i64 %298, %296
  store i64 %299, ptr %297, align 8, !tbaa !22
  invoke void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %300 unwind label %290

300:                                              ; preds = %295
  %301 = getelementptr inbounds %"class.cascadb::Cache", ptr %36, i32 0, i32 5
  invoke void @_ZN7cascadb6RWLock6unlockEv(ptr noundef nonnull align 8 dereferenceable(56) %301)
          to label %302 unwind label %290

302:                                              ; preds = %300
  %303 = call noundef i64 @_ZNKSt6vectorIPN7cascadb4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %304 = icmp ne i64 %303, 0
  br i1 %304, label %305, label %307

305:                                              ; preds = %302
  invoke void @_ZN7cascadb5Cache12delete_nodesERSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(432) %36, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %306 unwind label %290

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret void

308:                                              ; preds = %290, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %309

309:                                              ; preds = %308, %202
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %310

310:                                              ; preds = %309, %198
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #8
  br label %311

311:                                              ; preds = %310, %194
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  br label %312

312:                                              ; preds = %311, %164, %48
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %313

313:                                              ; preds = %312
  %314 = load ptr, ptr %15, align 8
  %315 = load i32, ptr %16, align 4
  %316 = insertvalue { ptr, i32 } poison, ptr %314, 0
  %317 = insertvalue { ptr, i32 } %316, i32 %315, 1
  resume { ptr, i32 } %317
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb4Node3nidEv(ptr noundef nonnull align 8 dereferenceable(200)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN7cascadb4NodeESt6vectorIS4_SaIS4_EEEE13LRUComparatorEvT_SB_T0_(ptr, ptr) #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseERS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"_ZTSSt4pairIKN7cascadb5Cache8CacheKeyEPNS0_4NodeEE", !13, i64 0, !6, i64 40}
!13 = !{!"_ZTSN7cascadb5Cache8CacheKeyE", !14, i64 0, !10, i64 32}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!12, !10, i64 32}
!17 = !{i64 0, i64 8, !5}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !10, i64 256}
!23 = !{!"_ZTSN7cascadb5CacheE", !24, i64 0, !28, i64 104, !29, i64 160, !37, i64 208, !10, i64 256, !28, i64 264, !38, i64 320, !37, i64 368, !27, i64 416, !6, i64 424}
!24 = !{!"_ZTSN7cascadb7OptionsE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !25, i64 72, !25, i64 76, !25, i64 80, !25, i64 84, !25, i64 88, !25, i64 92, !26, i64 96, !27, i64 100}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSN7cascadb8CompressE", !7, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSN7cascadb6RWLockE", !7, i64 0}
!29 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7cascadb5Cache13TableSettingsESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7cascadb5Cache13TableSettingsEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7cascadb5Cache13TableSettingsEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !10, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!37 = !{!"_ZTSN7cascadb5MutexE", !27, i64 0, !7, i64 8}
!38 = !{!"_ZTSSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeIN7cascadb5Cache8CacheKeyESt4pairIKS2_PNS0_4NodeEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeIN7cascadb5Cache8CacheKeyESt4pairIKS2_PNS0_4NodeEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !41, i64 0, !34, i64 8}
!41 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN7cascadb5Cache8CacheKeyEEE", !42, i64 0}
!42 = !{!"_ZTSSt4lessIN7cascadb5Cache8CacheKeyEE"}
!43 = !{!23, !10, i64 64}
!44 = !{!23, !25, i64 88}
!45 = distinct !{!45, !21}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cascadb::Node *, std::allocator<cascadb::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator.12" = type { ptr }
%"class.cascadb::ScopedMutex" = type { i8, ptr }
%"class.cascadb::Cache::CacheKey" = type { %"class.std::__cxx11::basic_string", i64 }
%"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] }

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN7cascadb6RWLock10write_lockEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2

declare void @_ZN7cascadb6RWLock6unlockEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7cascadb4Node7is_deadEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb5Cache12delete_nodesERSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb5Cache8CacheKeyC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cascadb5Cache5evictEv(ptr noundef nonnull align 8 dereferenceable(432) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator.12", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.cascadb::ScopedMutex", align 8
  %8 = alloca %"class.cascadb::Cache::CacheKey", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %9 = getelementptr inbounds i8, ptr %0, i64 264
  invoke void @_ZN7cascadb6RWLock10write_lockEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %10 unwind label %16

10:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 320
  %12 = call ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  store ptr %12, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %13 = call ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  store ptr %13, ptr %5, align 8
  %14 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %76, %10
  %.0.lcssa = phi i64 [ 0, %10 ], [ %.1, %76 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %15 = getelementptr inbounds i8, ptr %0, i64 208
  invoke void @_ZN7cascadb11ScopedMutexC2EPNS_5MutexE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull %15)
          to label %81 unwind label %96

16:                                               ; preds = %1
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %154

.lr.ph:                                           ; preds = %10, %76
  %.0111 = phi i64 [ %.1, %76 ], [ 0, %10 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %19 = getelementptr inbounds i8, ptr %18, i64 40
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %20, ptr %6, align 8, !tbaa !14
  %21 = call noundef i64 @_ZN7cascadb4Node3nidEv(ptr noundef nonnull align 8 dereferenceable(200) %20)
  %22 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %23 = getelementptr inbounds i8, ptr %22, i64 32
  %24 = load i64, ptr %23, align 8, !tbaa !15
  %25 = icmp eq i64 %21, %24
  br i1 %25, label %29, label %26

26:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 328, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #8
  unreachable

27:                                               ; preds = %39, %38, %34, %29
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %80

29:                                               ; preds = %.lr.ph
  %30 = load ptr, ptr %6, align 8, !tbaa !14
  %31 = invoke noundef zeroext i1 @_ZN7cascadb4Node7is_deadEv(ptr noundef nonnull align 8 dereferenceable(200) %30)
          to label %32 unwind label %27

32:                                               ; preds = %29
  %33 = load ptr, ptr %6, align 8, !tbaa !14
  br i1 %31, label %34, label %41

34:                                               ; preds = %32
  %35 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %33)
          to label %36 unwind label %27

36:                                               ; preds = %34
  %37 = icmp eq i32 %35, 0
  br i1 %37, label %38, label %76

38:                                               ; preds = %36
  invoke void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %39 unwind label %27

39:                                               ; preds = %38
  %.sroa.024.0.copyload = load ptr, ptr %4, align 8, !tbaa !14
  %40 = invoke ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS9_E(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr %.sroa.024.0.copyload)
          to label %76 unwind label %27

41:                                               ; preds = %32
  %42 = load ptr, ptr %33, align 8, !tbaa !16
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef i64 %44(ptr noundef nonnull align 8 dereferenceable(200) %33)
          to label %46 unwind label %53

46:                                               ; preds = %41
  %47 = add i64 %45, %.0111
  %48 = load ptr, ptr %6, align 8, !tbaa !14
  %49 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %48)
          to label %50 unwind label %53

50:                                               ; preds = %46
  %51 = load ptr, ptr %6, align 8, !tbaa !14
  %52 = invoke noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200) %51)
          to label %55 unwind label %53

53:                                               ; preds = %75, %71, %67, %63, %58, %55, %50, %46, %41
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %80

55:                                               ; preds = %50
  %56 = load ptr, ptr %6, align 8, !tbaa !14
  %57 = invoke noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200) %56)
          to label %58 unwind label %53

58:                                               ; preds = %55
  %59 = load ptr, ptr %6, align 8, !tbaa !14
  %60 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %59)
          to label %61 unwind label %53

61:                                               ; preds = %58
  %62 = icmp eq i32 %60, 0
  br i1 %62, label %63, label %76

63:                                               ; preds = %61
  %64 = load ptr, ptr %6, align 8, !tbaa !14
  %65 = invoke noundef zeroext i1 @_ZN7cascadb4Node7is_deadEv(ptr noundef nonnull align 8 dereferenceable(200) %64)
          to label %66 unwind label %53

66:                                               ; preds = %63
  br i1 %65, label %76, label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %6, align 8, !tbaa !14
  %69 = invoke noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200) %68)
          to label %70 unwind label %53

70:                                               ; preds = %67
  br i1 %69, label %76, label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %6, align 8, !tbaa !14
  %73 = invoke noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200) %72)
          to label %74 unwind label %53

74:                                               ; preds = %71
  br i1 %73, label %76, label %75

75:                                               ; preds = %74
  invoke void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %76 unwind label %53

76:                                               ; preds = %61, %66, %70, %74, %75, %39, %36
  %.1 = phi i64 [ %.0111, %36 ], [ %.0111, %39 ], [ %47, %66 ], [ %47, %70 ], [ %47, %74 ], [ %47, %75 ], [ %47, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %77 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %78 = call ptr @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  store ptr %78, ptr %5, align 8
  %79 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN7cascadb5Cache8CacheKeyEPNS1_4NodeEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !18

80:                                               ; preds = %53, %27
  %.pn91 = phi { ptr, i32 } [ %28, %27 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %154

81:                                               ; preds = %._crit_edge
  %82 = getelementptr inbounds i8, ptr %0, i64 256
  store i64 %.0.lcssa, ptr %82, align 8, !tbaa !20
  invoke void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %83 unwind label %98

83:                                               ; preds = %81
  %84 = call ptr @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %85 = call ptr @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN7cascadb4NodeESt6vectorIS4_SaIS4_EEEE13LRUComparatorEvT_SB_T0_(ptr %84, ptr %85)
          to label %86 unwind label %100

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %0, i64 64
  %88 = load i64, ptr %87, align 8, !tbaa !41
  %89 = getelementptr inbounds i8, ptr %0, i64 88
  %90 = load i32, ptr %89, align 8, !tbaa !42
  %91 = zext i32 %90 to i64
  %92 = mul i64 %88, %91
  %93 = udiv i64 %92, 100
  %94 = call noundef i64 @_ZNKSt6vectorIPN7cascadb4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %95 = icmp ne i64 %94, 0
  %.not112 = icmp ugt i64 %92, 99
  %or.cond113 = select i1 %95, i1 %.not112, i1 false
  br i1 %or.cond113, label %.lr.ph117, label %._crit_edge118

96:                                               ; preds = %._crit_edge
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %153

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

100:                                              ; preds = %83
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %152

.lr.ph117:                                        ; preds = %86, %132
  %.039115 = phi i64 [ %137, %132 ], [ 0, %86 ]
  %.041114 = phi i64 [ %133, %132 ], [ 0, %86 ]
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.039115) #7
  %103 = load ptr, ptr %102, align 8, !tbaa !14
  %104 = invoke noundef i32 @_ZN7cascadb4Node3refEv(ptr noundef nonnull align 8 dereferenceable(200) %103)
          to label %105 unwind label %113

105:                                              ; preds = %.lr.ph117
  %106 = icmp eq i32 %104, 0
  br i1 %106, label %107, label %.critedge

107:                                              ; preds = %105
  %108 = invoke noundef zeroext i1 @_ZN7cascadb4Node8is_dirtyEv(ptr noundef nonnull align 8 dereferenceable(200) %103)
          to label %109 unwind label %113

109:                                              ; preds = %107
  br i1 %108, label %.critedge, label %110

110:                                              ; preds = %109
  %111 = invoke noundef zeroext i1 @_ZN7cascadb4Node11is_flushingEv(ptr noundef nonnull align 8 dereferenceable(200) %103)
          to label %112 unwind label %113

112:                                              ; preds = %110
  br i1 %111, label %.critedge, label %115

.critedge:                                        ; preds = %109, %105, %112
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.1, i32 noundef 386, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #8
  unreachable

113:                                              ; preds = %127, %110, %107, %.lr.ph117
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %152

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN7cascadb4Node10table_nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(200) %103)
  %117 = call noundef i64 @_ZN7cascadb4Node3nidEv(ptr noundef nonnull align 8 dereferenceable(200) %103)
  invoke void @_ZN7cascadb5Cache8CacheKeyC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(32) %116, i64 noundef %117)
          to label %118 unwind label %122

118:                                              ; preds = %115
  %119 = invoke noundef i64 @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseERS8_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %120 unwind label %124

120:                                              ; preds = %118
  %.not80 = icmp eq i64 %119, 1
  call void @_ZN7cascadb5Cache8CacheKeyD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  br i1 %.not80, label %127, label %121

121:                                              ; preds = %120
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 390, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #8
  unreachable

122:                                              ; preds = %115
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %126

124:                                              ; preds = %118
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7cascadb5Cache8CacheKeyD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %126

126:                                              ; preds = %124, %122
  %.pn = phi { ptr, i32 } [ %125, %124 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  br label %152

127:                                              ; preds = %120
  %128 = load ptr, ptr %103, align 8, !tbaa !16
  %129 = getelementptr inbounds i8, ptr %128, i64 16
  %130 = load ptr, ptr %129, align 8
  %131 = invoke noundef i64 %130(ptr noundef nonnull align 8 dereferenceable(200) %103)
          to label %132 unwind label %113

132:                                              ; preds = %127
  %133 = add i64 %131, %.041114
  %134 = load ptr, ptr %103, align 8, !tbaa !16
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = load ptr, ptr %135, align 8
  call void %136(ptr noundef nonnull align 8 dereferenceable(200) %103) #7
  %137 = add nuw i64 %.039115, 1
  %138 = call noundef i64 @_ZNKSt6vectorIPN7cascadb4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %139 = icmp ult i64 %137, %138
  %.not = icmp ult i64 %133, %93
  %or.cond = select i1 %139, i1 %.not, i1 false
  br i1 %or.cond, label %.lr.ph117, label %._crit_edge118, !llvm.loop !43

._crit_edge118:                                   ; preds = %132, %86
  %.041.lcssa = phi i64 [ 0, %86 ], [ %133, %132 ]
  invoke void @_ZN7cascadb11ScopedMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %140 unwind label %143

140:                                              ; preds = %._crit_edge118
  %141 = load i64, ptr %82, align 8, !tbaa !20
  %.not83 = icmp ult i64 %141, %.041.lcssa
  br i1 %.not83, label %142, label %145

142:                                              ; preds = %140
  call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.1, i32 noundef 400, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cascadb5Cache5evictEv) #8
  unreachable

143:                                              ; preds = %150, %147, %145, %._crit_edge118
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %152

145:                                              ; preds = %140
  %146 = sub i64 %141, %.041.lcssa
  store i64 %146, ptr %82, align 8, !tbaa !20
  invoke void @_ZN7cascadb11ScopedMutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %147 unwind label %143

147:                                              ; preds = %145
  invoke void @_ZN7cascadb6RWLock6unlockEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %148 unwind label %143

148:                                              ; preds = %147
  %149 = call noundef i64 @_ZNKSt6vectorIPN7cascadb4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %.not84 = icmp eq i64 %149, 0
  br i1 %.not84, label %151, label %150

150:                                              ; preds = %148
  invoke void @_ZN7cascadb5Cache12delete_nodesERSt6vectorIPNS_4NodeESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %151 unwind label %143

151:                                              ; preds = %150, %148
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  ret void

152:                                              ; preds = %100, %113, %126, %143, %98
  %.pn85.pn.pn = phi { ptr, i32 } [ %99, %98 ], [ %101, %100 ], [ %144, %143 ], [ %114, %113 ], [ %.pn, %126 ]
  call void @_ZN7cascadb11ScopedMutexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %153

153:                                              ; preds = %152, %96
  %.pn85.pn.pn.pn = phi { ptr, i32 } [ %.pn85.pn.pn, %152 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %154

154:                                              ; preds = %153, %80, %16
  %.pn91.pn = phi { ptr, i32 } [ %.pn91, %80 ], [ %.pn85.pn.pn.pn, %153 ], [ %17, %16 ]
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIPN7cascadb4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn91.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN7cascadb4Node3nidEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN7cascadb4NodeESt6vectorIS4_SaIS4_EEEE13LRUComparatorEvT_SB_T0_(ptr, ptr) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE5eraseERS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cascadb11ScopedMutex4lockEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 40}
!6 = !{!"_ZTSSt4pairIKN7cascadb5Cache8CacheKeyEPNS0_4NodeEE", !7, i64 0, !10, i64 40}
!7 = !{!"_ZTSN7cascadb5Cache8CacheKeyE", !8, i64 0, !13, i64 32}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !13, i64 32}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !13, i64 256}
!21 = !{!"_ZTSN7cascadb5CacheE", !22, i64 0, !26, i64 104, !27, i64 160, !35, i64 208, !13, i64 256, !26, i64 264, !36, i64 320, !35, i64 368, !25, i64 416, !10, i64 424}
!22 = !{!"_ZTSN7cascadb7OptionsE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !23, i64 72, !23, i64 76, !23, i64 80, !23, i64 84, !23, i64 88, !23, i64 92, !24, i64 96, !25, i64 100}
!23 = !{!"int", !11, i64 0}
!24 = !{!"_ZTSN7cascadb8CompressE", !11, i64 0}
!25 = !{!"bool", !11, i64 0}
!26 = !{!"_ZTSN7cascadb6RWLockE", !11, i64 0}
!27 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7cascadb5Cache13TableSettingsESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7cascadb5Cache13TableSettingsEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7cascadb5Cache13TableSettingsEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !30, i64 0, !32, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!32 = !{!"_ZTSSt15_Rb_tree_header", !33, i64 0, !13, i64 32}
!33 = !{!"_ZTSSt18_Rb_tree_node_base", !34, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!34 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!35 = !{!"_ZTSN7cascadb5MutexE", !25, i64 0, !11, i64 8}
!36 = !{!"_ZTSSt3mapIN7cascadb5Cache8CacheKeyEPNS0_4NodeESt4lessIS2_ESaISt4pairIKS2_S4_EEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeIN7cascadb5Cache8CacheKeyESt4pairIKS2_PNS0_4NodeEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeIN7cascadb5Cache8CacheKeyESt4pairIKS2_PNS0_4NodeEESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !39, i64 0, !32, i64 8}
!39 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN7cascadb5Cache8CacheKeyEEE", !40, i64 0}
!40 = !{!"_ZTSSt4lessIN7cascadb5Cache8CacheKeyEE"}
!41 = !{!21, !13, i64 64}
!42 = !{!21, !23, i64 88}
!43 = distinct !{!43, !19}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass