; LLVM IR from turi-code/SFrame :: oss_src/fileio (fixed_size_cache_manager)

; 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::shared_ptr.17" = type { %"class.std::__shared_ptr.18" }
%"class.std::__shared_ptr.18" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.graphlab::fileio::fixed_size_cache_manager" = type { i64, %"class.graphlab::atomic", %"class.graphlab::mutex", %"class.std::unordered_map" }
%"class.graphlab::atomic" = type { %"class.graphlab::graphlab_impl::atomic_impl" }
%"class.graphlab::graphlab_impl::atomic_impl" = type { i64 }
%"class.graphlab::mutex" = type { %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 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.17" }
%"struct.graphlab::fileio::cache_block" = type { %"class.std::__cxx11::basic_string", i64, i64, i64, ptr, %"class.std::__cxx11::basic_string", ptr }

@_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE = external global i64, align 8
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@_ZZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10last_print = external hidden global float, align 4
@__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZN8graphlab6fileio38FILEIO_MAXIMUM_CACHE_CAPACITY_PER_FILEE = external global i64, align 8
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab6fileio11cache_block17initialize_memoryEm(ptr noundef nonnull align 8 dereferenceable(104), i64 noundef) #0 align 2

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

; 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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8graphlab6fileio24fixed_size_cache_manager21get_cache_utilizationEv(ptr noundef nonnull align 8 dereferenceable(112)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.17") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::lock_guard", align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i1, align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca i1, align 1
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %25 = alloca i1, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %27 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 2
  call void @_ZNSt10lock_guardIN8graphlab5mutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(40) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %28 = invoke noundef float @_ZN8graphlab5timer19approx_time_secondsEv()
          to label %29 unwind label %36

29:                                               ; preds = %3
  store float %28, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  store i8 0, ptr %11, align 1, !tbaa !11
  %30 = load float, ptr @_ZZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10last_print, align 4, !tbaa !9
  %31 = fadd float %30, 5.000000e+00
  %32 = load float, ptr %8, align 4, !tbaa !9
  %33 = fcmp ole float %31, %32
  br i1 %33, label %34, label %40

34:                                               ; preds = %29
  %35 = load float, ptr %8, align 4, !tbaa !9
  store float %35, ptr @_ZZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10last_print, align 4, !tbaa !9
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %40

36:                                               ; preds = %3
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %9, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %10, align 4
  br label %65

40:                                               ; preds = %34, %29
  %41 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %42 = trunc i8 %41 to i1
  %43 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef @.str.4, ptr noundef @__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, i32 noundef 158, i1 noundef zeroext %42)
          to label %44 unwind label %61

44:                                               ; preds = %40
  store ptr %43, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %45, ptr noundef @.str.9)
          to label %47 unwind label %66

47:                                               ; preds = %44
  %48 = invoke noundef i64 @_ZN8graphlab6fileio24fixed_size_cache_manager21get_cache_utilizationEv(ptr noundef nonnull align 8 dereferenceable(112) %26)
          to label %49 unwind label %66

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %46, i64 noundef %48)
          to label %51 unwind label %66

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %66

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 1
  %55 = getelementptr inbounds %"class.graphlab::graphlab_impl::atomic_impl", ptr %54, i32 0, i32 0
  %56 = load volatile i64, ptr %55, align 8, !tbaa !15
  %57 = load i64, ptr @_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE, align 8, !tbaa !18
  %58 = icmp uge i64 %56, %57
  br i1 %58, label %59, label %70

59:                                               ; preds = %53
  invoke void @_ZN8graphlab6fileio24fixed_size_cache_manager15try_cache_evictEv(ptr noundef nonnull align 8 dereferenceable(112) %26)
          to label %60 unwind label %66

60:                                               ; preds = %59
  br label %70

61:                                               ; preds = %40
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %65

65:                                               ; preds = %61, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %223

66:                                               ; preds = %59, %51, %49, %47, %44
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  br label %223

70:                                               ; preds = %60, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %71 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 1
  %72 = getelementptr inbounds %"class.graphlab::graphlab_impl::atomic_impl", ptr %71, i32 0, i32 0
  %73 = load volatile i64, ptr %72, align 8, !tbaa !15
  store i64 %73, ptr %13, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !18
  %74 = load i64, ptr %13, align 8, !tbaa !18
  %75 = load i64, ptr @_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE, align 8, !tbaa !18
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %77, label %88

77:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %78 = load i64, ptr @_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE, align 8, !tbaa !18
  %79 = load i64, ptr %13, align 8, !tbaa !18
  %80 = sub i64 %78, %79
  store i64 %80, ptr %15, align 8, !tbaa !18
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN8graphlab6fileio38FILEIO_MAXIMUM_CACHE_CAPACITY_PER_FILEE, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %82 unwind label %84

82:                                               ; preds = %77
  %83 = load i64, ptr %81, align 8, !tbaa !18
  store i64 %83, ptr %14, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %88

84:                                               ; preds = %77
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %9, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %222

88:                                               ; preds = %82, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %89 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 3
  %90 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE4findERSG_(ptr noundef nonnull align 8 dereferenceable(56) %89, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %91 unwind label %120

91:                                               ; preds = %88
  %92 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %16, i32 0, i32 0
  %93 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %92, i32 0, i32 0
  store ptr %90, ptr %93, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %94 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 3
  %95 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %94) #8
  %96 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %17, i32 0, i32 0
  %97 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %96, i32 0, i32 0
  store ptr %95, ptr %97, align 8
  %98 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEEELb1EEESH_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %98, label %99, label %162

99:                                               ; preds = %91
  %100 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %101 unwind label %124

101:                                              ; preds = %99
  %102 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %100)
          to label %103 unwind label %124

103:                                              ; preds = %101
  %104 = icmp sge i32 1, %102
  br i1 %104, label %105, label %132

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 1, ptr noundef @.str.4, ptr noundef @__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, i32 noundef 174, i1 noundef zeroext true)
          to label %107 unwind label %124

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %106, ptr noundef @.str.10)
          to label %109 unwind label %124

109:                                              ; preds = %107
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %110 unwind label %124

110:                                              ; preds = %109
  %111 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %108, ptr noundef %18)
          to label %112 unwind label %128

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %111, ptr noundef @.str.11)
          to label %114 unwind label %128

114:                                              ; preds = %112
  %115 = load i64, ptr %14, align 8, !tbaa !18
  %116 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %113, i64 noundef %115)
          to label %117 unwind label %128

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %116, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %119 unwind label %128

119:                                              ; preds = %117
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %132

120:                                              ; preds = %88
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %9, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %222

124:                                              ; preds = %172, %170, %168, %164, %162, %132, %109, %107, %105, %101, %99
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %9, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %10, align 4
  br label %222

128:                                              ; preds = %117, %114, %112, %110
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %222

132:                                              ; preds = %119, %103
  store i1 false, ptr %19, align 1
  %133 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #9
          to label %134 unwind label %124

134:                                              ; preds = %132
  store i1 true, ptr %21, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %135 unwind label %144

135:                                              ; preds = %134
  %136 = load i64, ptr %14, align 8, !tbaa !18
  invoke void @_ZN8graphlab6fileio11cache_blockC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPNS0_24fixed_size_cache_managerE(ptr noundef nonnull align 8 dereferenceable(104) %133, ptr noundef %20, i64 noundef %136, ptr noundef %26)
          to label %137 unwind label %148

137:                                              ; preds = %135
  store i1 false, ptr %21, align 1
  invoke void @_ZNSt10shared_ptrIN8graphlab6fileio11cache_blockEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %133)
          to label %138 unwind label %148

138:                                              ; preds = %137
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  %139 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 3
  %140 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(56) %139, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %141 unwind label %156

141:                                              ; preds = %138
  %142 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN8graphlab6fileio11cache_blockEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %140, ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  store i1 true, ptr %19, align 1
  store i32 1, ptr %22, align 4
  %143 = load i1, ptr %19, align 1
  br i1 %143, label %161, label %160

144:                                              ; preds = %134
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  br label %152

148:                                              ; preds = %137, %135
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %9, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  br label %152

152:                                              ; preds = %148, %144
  %153 = load i1, ptr %21, align 1
  br i1 %153, label %154, label %155

154:                                              ; preds = %152
  call void @_ZdlPvm(ptr noundef %133, i64 noundef 104) #10
  br label %155

155:                                              ; preds = %154, %152
  br label %222

156:                                              ; preds = %138
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %222

160:                                              ; preds = %141
  call void @_ZNSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %161

161:                                              ; preds = %160, %141
  br label %221

162:                                              ; preds = %91
  %163 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %164 unwind label %124

164:                                              ; preds = %162
  %165 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %163)
          to label %166 unwind label %124

166:                                              ; preds = %164
  %167 = icmp sge i32 1, %165
  br i1 %167, label %168, label %187

168:                                              ; preds = %166
  %169 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 1, ptr noundef @.str.4, ptr noundef @__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, i32 noundef 181, i1 noundef zeroext true)
          to label %170 unwind label %124

170:                                              ; preds = %168
  %171 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %169, ptr noundef @.str.12)
          to label %172 unwind label %124

172:                                              ; preds = %170
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %173 unwind label %124

173:                                              ; preds = %172
  %174 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %171, ptr noundef %23)
          to label %175 unwind label %183

175:                                              ; preds = %173
  %176 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %174, ptr noundef @.str.11)
          to label %177 unwind label %183

177:                                              ; preds = %175
  %178 = load i64, ptr %14, align 8, !tbaa !18
  %179 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %176, i64 noundef %178)
          to label %180 unwind label %183

180:                                              ; preds = %177
  %181 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %179, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %182 unwind label %183

182:                                              ; preds = %180
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #8
  br label %187

183:                                              ; preds = %180, %177, %175, %173
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %9, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #8
  br label %222

187:                                              ; preds = %182, %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %188 = getelementptr inbounds %"class.graphlab::fileio::fixed_size_cache_manager", ptr %26, i32 0, i32 3
  %189 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE4findERSG_(ptr noundef nonnull align 8 dereferenceable(56) %188, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %190 unwind label %204

190:                                              ; preds = %187
  %191 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %192 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %191, i32 0, i32 0
  store ptr %189, ptr %192, align 8
  store i1 false, ptr %25, align 1
  %193 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %194 = getelementptr inbounds %"struct.std::pair", ptr %193, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN8graphlab6fileio11cache_blockEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %194) #8
  %195 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  %196 = invoke noundef zeroext i1 @_ZNK8graphlab6fileio11cache_block10is_pointerEv(ptr noundef nonnull align 8 dereferenceable(104) %195)
          to label %197 unwind label %208

197:                                              ; preds = %190
  br i1 %196, label %198, label %212

198:                                              ; preds = %197
  %199 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  %200 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  %201 = getelementptr inbounds %"struct.graphlab::fileio::cache_block", ptr %200, i32 0, i32 1
  %202 = load i64, ptr %201, align 8, !tbaa !19
  invoke void @_ZN8graphlab6fileio11cache_block17initialize_memoryEm(ptr noundef nonnull align 8 dereferenceable(104) %199, i64 noundef %202)
          to label %203 unwind label %208

203:                                              ; preds = %198
  br label %216

204:                                              ; preds = %187
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %9, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %10, align 4
  br label %220

208:                                              ; preds = %212, %198, %190
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %9, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %220

212:                                              ; preds = %197
  %213 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  %214 = load i64, ptr %14, align 8, !tbaa !18
  invoke void @_ZN8graphlab6fileio11cache_block17initialize_memoryEm(ptr noundef nonnull align 8 dereferenceable(104) %213, i64 noundef %214)
          to label %215 unwind label %208

215:                                              ; preds = %212
  br label %216

216:                                              ; preds = %215, %203
  store i1 true, ptr %25, align 1
  store i32 1, ptr %22, align 4
  %217 = load i1, ptr %25, align 1
  br i1 %217, label %219, label %218

218:                                              ; preds = %216
  call void @_ZNSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %219

219:                                              ; preds = %218, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %221

220:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %222

221:                                              ; preds = %219, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret void

222:                                              ; preds = %220, %183, %156, %155, %128, %124, %120, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %223

223:                                              ; preds = %222, %66, %65
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %224

224:                                              ; preds = %223
  %225 = load ptr, ptr %9, align 8
  %226 = load i32, ptr %10, align 4
  %227 = insertvalue { ptr, i32 } poison, ptr %225, 0
  %228 = insertvalue { ptr, i32 } %227, i32 %226, 1
  resume { ptr, i32 } %228
}

declare noundef float @_ZN8graphlab5timer19approx_time_secondsEv() #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i64 noundef) #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN8graphlab6fileio11cache_blockC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPNS0_24fixed_size_cache_managerE(ptr, ptr, i64, ptr)

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!20, !17, i64 32}
!20 = !{!"_ZTSN8graphlab6fileio11cache_blockE", !21, i64 0, !17, i64 32, !17, i64 40, !17, i64 48, !6, i64 56, !21, i64 64, !6, i64 96}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !17, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}


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

%"class.std::shared_ptr.17" = type { %"class.std::__shared_ptr.18" }
%"class.std::__shared_ptr.18" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE = external local_unnamed_addr global i64, align 8
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@_ZZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10last_print = external hidden local_unnamed_addr global float, align 4
@__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZN8graphlab6fileio38FILEIO_MAXIMUM_CACHE_CAPACITY_PER_FILEE = external global i64, align 8
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab6fileio11cache_block17initialize_memoryEm(ptr noundef nonnull align 8 dereferenceable(104), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.17") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::lock_guard", align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  call void @_ZNSt10lock_guardIN8graphlab5mutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(40) %12)
  %13 = invoke noundef float @_ZN8graphlab5timer19approx_time_secondsEv()
          to label %14 unwind label %19

14:                                               ; preds = %3
  %15 = load float, ptr @_ZZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10last_print, align 4, !tbaa !5
  %16 = fadd float %15, 5.000000e+00
  %17 = fcmp ole float %16, %13
  br i1 %17, label %18, label %21

18:                                               ; preds = %14
  store float %13, ptr @_ZZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10last_print, align 4, !tbaa !5
  br label %21

19:                                               ; preds = %3
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %135

21:                                               ; preds = %18, %14
  %22 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, i32 noundef 158, i1 noundef zeroext %17)
          to label %23 unwind label %35

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %22, ptr noundef nonnull @.str.9)
          to label %25 unwind label %37

25:                                               ; preds = %23
  %26 = call noundef i64 @_ZN8graphlab6fileio24fixed_size_cache_manager21get_cache_utilizationEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  %27 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %24, i64 noundef %26)
          to label %28 unwind label %37

28:                                               ; preds = %25
  %29 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %30 unwind label %37

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load volatile i64, ptr %31, align 8, !tbaa !9
  %33 = load i64, ptr @_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE, align 8, !tbaa !12
  %.not = icmp ult i64 %32, %33
  br i1 %.not, label %39, label %34

34:                                               ; preds = %30
  invoke void @_ZN8graphlab6fileio24fixed_size_cache_manager15try_cache_evictEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
          to label %._crit_edge unwind label %37

._crit_edge:                                      ; preds = %34
  %.pre = load i64, ptr @_ZN8graphlab6fileio29FILEIO_MAXIMUM_CACHE_CAPACITYE, align 8, !tbaa !12
  br label %39

35:                                               ; preds = %21
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %135

37:                                               ; preds = %34, %28, %25, %23
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %135

39:                                               ; preds = %._crit_edge, %30
  %40 = phi i64 [ %.pre, %._crit_edge ], [ %33, %30 ]
  %41 = load volatile i64, ptr %31, align 8, !tbaa !9
  %42 = icmp ult i64 %41, %40
  br i1 %42, label %43, label %47

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %44 = sub i64 %40, %41
  store i64 %44, ptr %5, align 8, !tbaa !12
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN8graphlab6fileio38FILEIO_MAXIMUM_CACHE_CAPACITY_PER_FILEE, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %46 = load i64, ptr %45, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %47

47:                                               ; preds = %43, %39
  %.015 = phi i64 [ %46, %43 ], [ 0, %39 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %48 = getelementptr inbounds i8, ptr %1, i64 56
  %49 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE4findERSG_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %50 unwind label %72

50:                                               ; preds = %47
  store ptr %49, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %51 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %48) #8
  store ptr %51, ptr %7, align 8
  %52 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEEELb1EEESH_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %52, label %53, label %94

53:                                               ; preds = %50
  %54 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %55 unwind label %74

55:                                               ; preds = %53
  %56 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %54)
  %57 = icmp slt i32 %56, 2
  br i1 %57, label %58, label %78

58:                                               ; preds = %55
  %59 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, i32 noundef 174, i1 noundef zeroext true)
          to label %60 unwind label %74

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %59, ptr noundef nonnull @.str.10)
          to label %62 unwind label %74

62:                                               ; preds = %60
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %63 unwind label %74

63:                                               ; preds = %62
  %64 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %61, ptr noundef nonnull %8)
          to label %65 unwind label %76

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %64, ptr noundef nonnull @.str.11)
          to label %67 unwind label %76

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %66, i64 noundef %.015)
          to label %69 unwind label %76

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %76

71:                                               ; preds = %69
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %78

72:                                               ; preds = %47
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %135

74:                                               ; preds = %103, %101, %99, %94, %78, %62, %60, %58, %53
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %135

76:                                               ; preds = %69, %67, %65, %63
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %135

78:                                               ; preds = %71, %55
  %79 = invoke noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #9
          to label %80 unwind label %74

80:                                               ; preds = %78
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %81 unwind label %.thread

81:                                               ; preds = %80
  invoke void @_ZN8graphlab6fileio11cache_blockC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPNS0_24fixed_size_cache_managerE(ptr noundef nonnull align 8 dereferenceable(104) %79, ptr noundef nonnull %9, i64 noundef %.015, ptr noundef nonnull %1)
          to label %83 unwind label %.thread37

.thread37:                                        ; preds = %81
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %91

83:                                               ; preds = %81
  invoke void @_ZNSt10shared_ptrIN8graphlab6fileio11cache_blockEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %79)
          to label %84 unwind label %89

84:                                               ; preds = %83
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %86 unwind label %92

86:                                               ; preds = %84
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN8graphlab6fileio11cache_blockEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %85, ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %134

.thread:                                          ; preds = %80
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %83
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %135

91:                                               ; preds = %.thread37, %.thread
  %.pn2936 = phi { ptr, i32 } [ %88, %.thread ], [ %82, %.thread37 ]
  call void @_ZdlPvm(ptr noundef nonnull %79, i64 noundef 104) #10
  br label %135

92:                                               ; preds = %84
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %135

94:                                               ; preds = %50
  %95 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %96 unwind label %74

96:                                               ; preds = %94
  %97 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %95)
  %98 = icmp slt i32 %97, 2
  br i1 %98, label %99, label %115

99:                                               ; preds = %96
  %100 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8graphlab6fileio24fixed_size_cache_manager9new_cacheENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, i32 noundef 181, i1 noundef zeroext true)
          to label %101 unwind label %74

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %100, ptr noundef nonnull @.str.12)
          to label %103 unwind label %74

103:                                              ; preds = %101
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %104 unwind label %74

104:                                              ; preds = %103
  %105 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %102, ptr noundef nonnull %10)
          to label %106 unwind label %113

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %105, ptr noundef nonnull @.str.11)
          to label %108 unwind label %113

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %107, i64 noundef %.015)
          to label %110 unwind label %113

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %109, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %112 unwind label %113

112:                                              ; preds = %110
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %115

113:                                              ; preds = %110, %108, %106, %104
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %135

115:                                              ; preds = %112, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %116 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SA_EEE4findERSG_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %117 unwind label %127

117:                                              ; preds = %115
  store ptr %116, ptr %11, align 8
  %118 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN8graphlab6fileio11cache_blockEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %119 = getelementptr inbounds i8, ptr %118, i64 32
  call void @_ZNSt10shared_ptrIN8graphlab6fileio11cache_blockEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %119) #8
  %120 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  %121 = call noundef zeroext i1 @_ZNK8graphlab6fileio11cache_block10is_pointerEv(ptr noundef nonnull align 8 dereferenceable(104) %120)
  %122 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  br i1 %121, label %123, label %.invoke

123:                                              ; preds = %117
  %124 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #8
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  %126 = load i64, ptr %125, align 8, !tbaa !13
  br label %.invoke

127:                                              ; preds = %115
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %133

129:                                              ; preds = %.invoke
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #8
  br label %133

.invoke:                                          ; preds = %117, %123
  %131 = phi i64 [ %126, %123 ], [ %.015, %117 ]
  invoke void @_ZN8graphlab6fileio11cache_block17initialize_memoryEm(ptr noundef nonnull align 8 dereferenceable(104) %122, i64 noundef %131)
          to label %132 unwind label %129

132:                                              ; preds = %.invoke
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %134

133:                                              ; preds = %129, %127
  %.pn27 = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %135

134:                                              ; preds = %86, %132
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  ret void

135:                                              ; preds = %89, %72, %74, %76, %92, %113, %133, %91, %19, %35, %37
  %.pn31.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ], [ %20, %19 ], [ %93, %92 ], [ %.pn2936, %91 ], [ %90, %89 ], [ %75, %74 ], [ %77, %76 ], [ %.pn27, %133 ], [ %114, %113 ], [ %73, %72 ]
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn31.pn
}

declare noundef float @_ZN8graphlab5timer19approx_time_secondsEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab6fileio24fixed_size_cache_manager15try_cache_evictEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8graphlab6fileio11cache_block10is_pointerEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3 align 2

declare void @_ZN8graphlab6fileio11cache_blockC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmPNS0_24fixed_size_cache_managerE(ptr, ptr, i64, ptr) local_unnamed_addr

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 32}
!14 = !{!"_ZTSN8graphlab6fileio11cache_blockE", !15, i64 0, !11, i64 32, !11, i64 40, !11, i64 48, !17, i64 56, !15, i64 64, !17, i64 96}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !11, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}


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