; LLVM IR from turi-code/SFrame :: oss_src/sframe (sarray_v1_block_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.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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"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] }
%"struct.std::pair" = type { i64, i64 }
%"class.graphlab::v1_block_impl::block_reader" = type { %"struct.graphlab::index_file_information", %"class.std::vector.11", %"class.std::vector.16" }
%"struct.graphlab::index_file_information" = type { %"class.std::__cxx11::basic_string", i32, i64, i64, %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::vector.3", %"class.std::map" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, 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>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, 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.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_info, std::allocator<graphlab::v1_block_impl::block_reader::segment_info>>::_Vector_impl" }
%"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_info, std::allocator<graphlab::v1_block_impl::block_reader::segment_info>>::_Vector_impl" = type { %"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_info, std::allocator<graphlab::v1_block_impl::block_reader::segment_info>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_info, std::allocator<graphlab::v1_block_impl::block_reader::segment_info>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_io_data, std::allocator<graphlab::v1_block_impl::block_reader::segment_io_data>>::_Vector_impl" }
%"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_io_data, std::allocator<graphlab::v1_block_impl::block_reader::segment_io_data>>::_Vector_impl" = type { %"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_io_data, std::allocator<graphlab::v1_block_impl::block_reader::segment_io_data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::segment_io_data, std::allocator<graphlab::v1_block_impl::block_reader::segment_io_data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.graphlab::v1_block_impl::block_reader::segment_io_data" = type { %"class.graphlab::mutex", ptr, %"class.std::vector.39" }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.graphlab::v1_block_impl::block_reader::segment_info" = type { %"class.graphlab::mutex", i8, i64, i64, i64, %"class.std::vector.21" }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::block_info, std::allocator<graphlab::v1_block_impl::block_reader::block_info>>::_Vector_impl" }
%"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::block_info, std::allocator<graphlab::v1_block_impl::block_reader::block_info>>::_Vector_impl" = type { %"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::block_info, std::allocator<graphlab::v1_block_impl::block_reader::block_info>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graphlab::v1_block_impl::block_reader::block_info, std::allocator<graphlab::v1_block_impl::block_reader::block_info>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.graphlab::v1_block_impl::block_reader::block_info" = type { i64, i64, i64, i64, i64 }

@_ZN8graphlab13v1_block_impl6iolockE = external dso_local global %"class.graphlab::mutex", align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab13v1_block_impl12block_reader11read_blocksESt6vectorISt4pairImmESaIS4_EES2_IPcSaIS7_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, ptr noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i1, align 1
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::allocator.0", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca i1, align 1
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  %26 = call noundef i64 @_ZNKSt6vectorISt4pairImmESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 -1, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorImSaImEEC2EmRKmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %26, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %27 unwind label %33

27:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 -1, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %251, %27
  %29 = load i64, ptr %15, align 8, !tbaa !9
  %30 = call noundef i64 @_ZNKSt6vectorISt4pairImmESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %37, label %32

32:                                               ; preds = %28
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %255

33:                                               ; preds = %4
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %12, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %13, align 4
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %276

37:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %38 = load i64, ptr %15, align 8, !tbaa !9
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairImmESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %38) #7
  %40 = getelementptr inbounds %"struct.std::pair", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  store i64 %41, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %42 = load i64, ptr %15, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairImmESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %42) #7
  %44 = getelementptr inbounds %"struct.std::pair", ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !13
  store i64 %45, ptr %18, align 8, !tbaa !9
  %46 = load i64, ptr %17, align 8, !tbaa !9
  invoke void @_ZN8graphlab13v1_block_impl12block_reader23load_segment_block_infoEm(ptr noundef nonnull align 8 dereferenceable(232) %25, i64 noundef %46)
          to label %47 unwind label %63

47:                                               ; preds = %37
  %48 = load i64, ptr %14, align 8, !tbaa !9
  %49 = load i64, ptr %17, align 8, !tbaa !9
  %50 = icmp ne i64 %48, %49
  br i1 %50, label %51, label %74

51:                                               ; preds = %47
  %52 = load i64, ptr %14, align 8, !tbaa !9
  %53 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 0
  %54 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %53, i32 0, i32 2
  %55 = load i64, ptr %54, align 8, !tbaa !14
  %56 = icmp ult i64 %52, %55
  br i1 %56, label %57, label %67

57:                                               ; preds = %51
  %58 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %59 = load i64, ptr %14, align 8, !tbaa !9
  %60 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %59) #7
  %61 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %60, i32 0, i32 0
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %61)
          to label %62 unwind label %63

62:                                               ; preds = %57
  br label %67

63:                                               ; preds = %129, %119, %106, %81, %67, %57, %37
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  br label %254

67:                                               ; preds = %62, %51
  %68 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %69 = load i64, ptr %17, align 8, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #7
  %71 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %70, i32 0, i32 0
  invoke void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %71)
          to label %72 unwind label %63

72:                                               ; preds = %67
  %73 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %73, ptr %14, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %72, %47
  %75 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %76 = load i64, ptr %17, align 8, !tbaa !9
  %77 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %76) #7
  %78 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !44
  %80 = icmp ne ptr %79, null
  br i1 %80, label %106, label %81

81:                                               ; preds = %74
  %82 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 488) #8
          to label %83 unwind label %63

83:                                               ; preds = %81
  store i1 true, ptr %20, align 1
  %84 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 0
  %85 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %84, i32 0, i32 6
  %86 = load i64, ptr %17, align 8, !tbaa !9
  %87 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %86) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %87)
          to label %88 unwind label %94

88:                                               ; preds = %83
  invoke void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(224) %82, ptr noundef %19, i1 noundef zeroext false)
          to label %89 unwind label %98

89:                                               ; preds = %88
  store i1 false, ptr %20, align 1
  %90 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %91 = load i64, ptr %17, align 8, !tbaa !9
  %92 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #7
  %93 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %92, i32 0, i32 1
  store ptr %82, ptr %93, align 8, !tbaa !44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %106

94:                                               ; preds = %83
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %12, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %13, align 4
  br label %102

98:                                               ; preds = %88
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %102

102:                                              ; preds = %98, %94
  %103 = load i1, ptr %20, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @_ZdlPvm(ptr noundef %82, i64 noundef 488) #9
  br label %105

105:                                              ; preds = %104, %102
  br label %254

106:                                              ; preds = %89, %74
  %107 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %108 = load i64, ptr %17, align 8, !tbaa !9
  %109 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #7
  %110 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !44
  %112 = load ptr, ptr %111, align 8, !tbaa !51
  %113 = getelementptr i8, ptr %112, i64 -24
  %114 = load i64, ptr %113, align 8
  %115 = getelementptr inbounds i8, ptr %111, i64 %114
  %116 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %115)
          to label %117 unwind label %63

117:                                              ; preds = %106
  br i1 %116, label %119, label %118

118:                                              ; preds = %117
  store i32 4, ptr %16, align 4
  br label %248

119:                                              ; preds = %117
  %120 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %121 = load i64, ptr %17, align 8, !tbaa !9
  %122 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %121) #7
  %123 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !44
  %125 = load ptr, ptr %124, align 8, !tbaa !51
  %126 = getelementptr i8, ptr %125, i64 -24
  %127 = load i64, ptr %126, align 8
  %128 = getelementptr inbounds i8, ptr %124, i64 %127
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %128, i32 noundef 0)
          to label %129 unwind label %63

129:                                              ; preds = %119
  %130 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %131 = load i64, ptr %17, align 8, !tbaa !9
  %132 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #7
  %133 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %132, i32 0, i32 1
  %134 = load ptr, ptr %133, align 8, !tbaa !44
  %135 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 1
  %136 = load i64, ptr %17, align 8, !tbaa !9
  %137 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %136) #7
  %138 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %137, i32 0, i32 5
  %139 = load i64, ptr %18, align 8, !tbaa !9
  %140 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %139) #7
  %141 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::block_info", ptr %140, i32 0, i32 0
  %142 = load i64, ptr %141, align 8, !tbaa !53
  %143 = add i64 %142, 24
  %144 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %134, i64 noundef %143, i32 noundef 0)
          to label %145 unwind label %63

145:                                              ; preds = %129
  %146 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 1
  %147 = load i64, ptr %17, align 8, !tbaa !9
  %148 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %147) #7
  %149 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %148, i32 0, i32 5
  %150 = load i64, ptr %18, align 8, !tbaa !9
  %151 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %150) #7
  %152 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::block_info", ptr %151, i32 0, i32 4
  %153 = load i64, ptr %152, align 8, !tbaa !55
  %154 = and i64 %153, 1
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %156, label %218

156:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %157 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 1
  %158 = load i64, ptr %17, align 8, !tbaa !9
  %159 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %158) #7
  %160 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %159, i32 0, i32 5
  %161 = load i64, ptr %18, align 8, !tbaa !9
  %162 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %161) #7
  %163 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::block_info", ptr %162, i32 0, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !56
  store i64 %164, ptr %21, align 8, !tbaa !9
  %165 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %166 = load i64, ptr %17, align 8, !tbaa !9
  %167 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %166) #7
  %168 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %167, i32 0, i32 2
  %169 = load i64, ptr %21, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIcSaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %169)
          to label %170 unwind label %204

170:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %171 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %172 = load i64, ptr %17, align 8, !tbaa !9
  %173 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %172) #7
  %174 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %173, i32 0, i32 2
  %175 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %174) #7
  store ptr %175, ptr %22, align 8, !tbaa !5
  invoke void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %176 unwind label %208

176:                                              ; preds = %170
  %177 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %178 = load i64, ptr %17, align 8, !tbaa !9
  %179 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %178) #7
  %180 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %179, i32 0, i32 1
  %181 = load ptr, ptr %180, align 8, !tbaa !44
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  %183 = load i64, ptr %21, align 8, !tbaa !9
  %184 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %181, ptr noundef %182, i64 noundef %183)
          to label %185 unwind label %208

185:                                              ; preds = %176
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %186 unwind label %208

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %187 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 0
  %188 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %187, i32 0, i32 3
  %189 = load i64, ptr %188, align 8, !tbaa !57
  store i64 %189, ptr %23, align 8, !tbaa !9
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  %191 = load i64, ptr %15, align 8, !tbaa !9
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPcSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %191) #7
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i64, ptr %21, align 8, !tbaa !9
  %195 = trunc i64 %194 to i32
  %196 = load i64, ptr %23, align 8, !tbaa !9
  %197 = trunc i64 %196 to i32
  %198 = invoke i32 @LZ4_decompress_safe(ptr noundef %190, ptr noundef %193, i32 noundef %195, i32 noundef %197)
          to label %199 unwind label %212

199:                                              ; preds = %186
  %200 = sext i32 %198 to i64
  store i64 %200, ptr %23, align 8, !tbaa !9
  %201 = load i64, ptr %23, align 8, !tbaa !9
  %202 = load i64, ptr %15, align 8, !tbaa !9
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %202) #7
  store i64 %201, ptr %203, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %247

204:                                              ; preds = %156
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %12, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %13, align 4
  br label %217

208:                                              ; preds = %185, %176, %170
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %12, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %13, align 4
  br label %216

212:                                              ; preds = %186
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %12, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %216

216:                                              ; preds = %212, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %217

217:                                              ; preds = %216, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %254

218:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %219 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 1
  %220 = load i64, ptr %17, align 8, !tbaa !9
  %221 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %220) #7
  %222 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %221, i32 0, i32 5
  %223 = load i64, ptr %18, align 8, !tbaa !9
  %224 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %223) #7
  %225 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::block_info", ptr %224, i32 0, i32 1
  %226 = load i64, ptr %225, align 8, !tbaa !56
  store i64 %226, ptr %24, align 8, !tbaa !9
  invoke void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %227 unwind label %243

227:                                              ; preds = %218
  %228 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %229 = load i64, ptr %17, align 8, !tbaa !9
  %230 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %229) #7
  %231 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %230, i32 0, i32 1
  %232 = load ptr, ptr %231, align 8, !tbaa !44
  %233 = load i64, ptr %15, align 8, !tbaa !9
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPcSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %233) #7
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = load i64, ptr %24, align 8, !tbaa !9
  %237 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %232, ptr noundef %235, i64 noundef %236)
          to label %238 unwind label %243

238:                                              ; preds = %227
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %239 unwind label %243

239:                                              ; preds = %238
  %240 = load i64, ptr %24, align 8, !tbaa !9
  %241 = load i64, ptr %15, align 8, !tbaa !9
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %241) #7
  store i64 %240, ptr %242, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %247

243:                                              ; preds = %238, %227, %218
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %12, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %254

247:                                              ; preds = %239, %199
  store i32 0, ptr %16, align 4
  br label %248

248:                                              ; preds = %247, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %249 = load i32, ptr %16, align 4
  switch i32 %249, label %281 [
    i32 0, label %250
    i32 4, label %251
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %248
  %252 = load i64, ptr %15, align 8, !tbaa !9
  %253 = add i64 %252, 1
  store i64 %253, ptr %15, align 8, !tbaa !9
  br label %28, !llvm.loop !58

254:                                              ; preds = %243, %217, %105, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %273

255:                                              ; preds = %32
  %256 = load i64, ptr %14, align 8, !tbaa !9
  %257 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 0
  %258 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %257, i32 0, i32 2
  %259 = load i64, ptr %258, align 8, !tbaa !14
  %260 = icmp ult i64 %256, %259
  br i1 %260, label %261, label %271

261:                                              ; preds = %255
  %262 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %25, i32 0, i32 2
  %263 = load i64, ptr %14, align 8, !tbaa !9
  %264 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %262, i64 noundef %263) #7
  %265 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_io_data", ptr %264, i32 0, i32 0
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %265)
          to label %266 unwind label %267

266:                                              ; preds = %261
  br label %271

267:                                              ; preds = %261
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %12, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %13, align 4
  br label %273

271:                                              ; preds = %266, %255
  store i1 true, ptr %9, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %272 = load i1, ptr %9, align 1
  br i1 %272, label %275, label %274

273:                                              ; preds = %267, %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %276

274:                                              ; preds = %271
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %275

275:                                              ; preds = %274, %271
  ret void

276:                                              ; preds = %273, %33
  %277 = load ptr, ptr %12, align 8
  %278 = load i32, ptr %13, align 4
  %279 = insertvalue { ptr, i32 } poison, ptr %277, 0
  %280 = insertvalue { ptr, i32 } %279, i32 %278, 1
  resume { ptr, i32 } %280

281:                                              ; preds = %248
  unreachable
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

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

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

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

declare void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, i1 noundef zeroext) unnamed_addr #5

; 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

declare void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) #5

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) #5

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #5

declare i32 @LZ4_decompress_safe(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairImmE", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !10, i64 40}
!15 = !{!"_ZTSN8graphlab13v1_block_impl12block_readerE", !16, i64 0, !36, i64 184, !40, i64 208}
!16 = !{!"_ZTSN8graphlab22index_file_informationE", !17, i64 0, !19, i64 32, !10, i64 40, !10, i64 48, !17, i64 56, !20, i64 88, !24, i64 112, !28, i64 136}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !10, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSSt6vectorImSaImEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseImSaImEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !31, i64 0, !33, i64 8}
!31 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !32, i64 0}
!32 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!33 = !{!"_ZTSSt15_Rb_tree_header", !34, i64 0, !10, i64 32}
!34 = !{!"_ZTSSt18_Rb_tree_node_base", !35, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!35 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!36 = !{!"_ZTSSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!45, !6, i64 40}
!45 = !{!"_ZTSN8graphlab13v1_block_impl12block_reader15segment_io_dataE", !46, i64 0, !6, i64 40, !47, i64 48}
!46 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!47 = !{!"_ZTSSt6vectorIcSaIcEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!52, !52, i64 0}
!52 = !{!"vtable pointer", !8, i64 0}
!53 = !{!54, !10, i64 0}
!54 = !{!"_ZTSN8graphlab13v1_block_impl12block_reader10block_infoE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!55 = !{!54, !10, i64 32}
!56 = !{!54, !10, i64 8}
!57 = !{!15, !10, i64 48}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}


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

%"class.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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"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] }

@_ZN8graphlab13v1_block_impl6iolockE = external dso_local global %"class.graphlab::mutex", align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab13v1_block_impl12block_reader11read_blocksESt6vectorISt4pairImmESaIS4_EES2_IPcSaIS7_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull %2, ptr noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = tail call noundef i64 @_ZNKSt6vectorISt4pairImmESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 -1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorImSaImEEC2EmRKmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %8, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %9 unwind label %19

9:                                                ; preds = %4
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %10 = call noundef i64 @_ZNKSt6vectorISt4pairImmESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %.not77 = icmp eq i64 %10, 0
  br i1 %.not77, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %11 = getelementptr inbounds i8, ptr %1, i64 40
  %12 = getelementptr inbounds i8, ptr %1, i64 208
  %13 = getelementptr inbounds i8, ptr %1, i64 112
  %14 = getelementptr inbounds i8, ptr %1, i64 184
  %15 = getelementptr inbounds i8, ptr %1, i64 48
  br label %21

._crit_edge:                                      ; preds = %133
  %16 = getelementptr inbounds i8, ptr %1, i64 40
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = icmp ult i64 %.155, %17
  br i1 %18, label %137, label %._crit_edge.thread

19:                                               ; preds = %4
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %143

21:                                               ; preds = %.lr.ph, %133
  %.05476 = phi i64 [ -1, %.lr.ph ], [ %.155, %133 ]
  %.05675 = phi i64 [ 0, %.lr.ph ], [ %134, %133 ]
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairImmESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.05675) #7
  %23 = load i64, ptr %22, align 8, !tbaa !40
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairImmESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.05675) #7
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load i64, ptr %25, align 8, !tbaa !42
  invoke void @_ZN8graphlab13v1_block_impl12block_reader23load_segment_block_infoEm(ptr noundef nonnull align 8 dereferenceable(232) %1, i64 noundef %23)
          to label %27 unwind label %33

27:                                               ; preds = %21
  %.not = icmp eq i64 %.05476, %23
  br i1 %.not, label %37, label %28

28:                                               ; preds = %27
  %29 = load i64, ptr %11, align 8, !tbaa !9
  %30 = icmp ult i64 %.05476, %29
  br i1 %30, label %31, label %35

31:                                               ; preds = %28
  %32 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.05476) #7
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %32)
          to label %35 unwind label %33

33:                                               ; preds = %71, %63, %41, %35, %31, %21
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %142

35:                                               ; preds = %31, %28
  %36 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  invoke void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %36)
          to label %37 unwind label %33

37:                                               ; preds = %35, %27
  %.155 = phi i64 [ %.05476, %27 ], [ %23, %35 ]
  %38 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %39 = getelementptr inbounds i8, ptr %38, i64 40
  %40 = load ptr, ptr %39, align 8, !tbaa !43
  %.not58 = icmp eq ptr %40, null
  br i1 %.not58, label %41, label %54

41:                                               ; preds = %37
  %42 = invoke noalias noundef nonnull dereferenceable(488) ptr @_Znwm(i64 noundef 488) #8
          to label %43 unwind label %33

43:                                               ; preds = %41
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %45 unwind label %49

45:                                               ; preds = %43
  invoke void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(224) %42, ptr noundef nonnull %7, i1 noundef zeroext false)
          to label %46 unwind label %51

46:                                               ; preds = %45
  %47 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %48 = getelementptr inbounds i8, ptr %47, i64 40
  store ptr %42, ptr %48, align 8, !tbaa !43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %54

49:                                               ; preds = %43
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %45
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %53

53:                                               ; preds = %49, %51
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @_ZdlPvm(ptr noundef nonnull %42, i64 noundef 488) #9
  br label %142

54:                                               ; preds = %46, %37
  %55 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %56 = getelementptr inbounds i8, ptr %55, i64 40
  %57 = load ptr, ptr %56, align 8, !tbaa !43
  %58 = load ptr, ptr %57, align 8, !tbaa !50
  %59 = getelementptr i8, ptr %58, i64 -24
  %60 = load i64, ptr %59, align 8
  %61 = getelementptr inbounds i8, ptr %57, i64 %60
  %62 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %61)
  br i1 %62, label %63, label %133

63:                                               ; preds = %54
  %64 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %65 = getelementptr inbounds i8, ptr %64, i64 40
  %66 = load ptr, ptr %65, align 8, !tbaa !43
  %67 = load ptr, ptr %66, align 8, !tbaa !50
  %68 = getelementptr i8, ptr %67, i64 -24
  %69 = load i64, ptr %68, align 8
  %70 = getelementptr inbounds i8, ptr %66, i64 %69
  invoke void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264) %70, i32 noundef 0)
          to label %71 unwind label %33

71:                                               ; preds = %63
  %72 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %73 = getelementptr inbounds i8, ptr %72, i64 40
  %74 = load ptr, ptr %73, align 8, !tbaa !43
  %75 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %23) #7
  %76 = getelementptr inbounds i8, ptr %75, i64 72
  %77 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %26) #7
  %78 = load i64, ptr %77, align 8, !tbaa !52
  %79 = add i64 %78, 24
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %74, i64 noundef %79, i32 noundef 0)
          to label %81 unwind label %33

81:                                               ; preds = %71
  %82 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %23) #7
  %83 = getelementptr inbounds i8, ptr %82, i64 72
  %84 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %26) #7
  %85 = getelementptr inbounds i8, ptr %84, i64 32
  %86 = load i64, ptr %85, align 8, !tbaa !54
  %87 = and i64 %86, 1
  %.not60 = icmp eq i64 %87, 0
  %88 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %23) #7
  %89 = getelementptr inbounds i8, ptr %88, i64 72
  %90 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %26) #7
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load i64, ptr %91, align 8, !tbaa !55
  br i1 %.not60, label %121, label %93

93:                                               ; preds = %81
  %94 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %95 = getelementptr inbounds i8, ptr %94, i64 48
  invoke void @_ZNSt6vectorIcSaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %92)
          to label %96 unwind label %115

96:                                               ; preds = %93
  %97 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %98 = getelementptr inbounds i8, ptr %97, i64 48
  %99 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #7
  invoke void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %100 unwind label %117

100:                                              ; preds = %96
  %101 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %102 = getelementptr inbounds i8, ptr %101, i64 40
  %103 = load ptr, ptr %102, align 8, !tbaa !43
  %104 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef %99, i64 noundef %92)
          to label %105 unwind label %117

105:                                              ; preds = %100
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %106 unwind label %117

106:                                              ; preds = %105
  %107 = load i64, ptr %15, align 8, !tbaa !56
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPcSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.05675) #7
  %109 = load ptr, ptr %108, align 8, !tbaa !57
  %110 = trunc i64 %92 to i32
  %111 = trunc i64 %107 to i32
  %112 = invoke i32 @LZ4_decompress_safe(ptr noundef %99, ptr noundef %109, i32 noundef %110, i32 noundef %111)
          to label %113 unwind label %119

113:                                              ; preds = %106
  %114 = sext i32 %112 to i64
  br label %.sink.split

115:                                              ; preds = %93
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %142

117:                                              ; preds = %105, %100, %96
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %142

119:                                              ; preds = %106
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %142

121:                                              ; preds = %81
  invoke void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %122 unwind label %130

122:                                              ; preds = %121
  %123 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #7
  %124 = getelementptr inbounds i8, ptr %123, i64 40
  %125 = load ptr, ptr %124, align 8, !tbaa !43
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPcSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.05675) #7
  %127 = load ptr, ptr %126, align 8, !tbaa !57
  %128 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef %127, i64 noundef %92)
          to label %129 unwind label %130

129:                                              ; preds = %122
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) @_ZN8graphlab13v1_block_impl6iolockE)
          to label %.sink.split unwind label %130

130:                                              ; preds = %129, %122, %121
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %142

.sink.split:                                      ; preds = %129, %113
  %.sink = phi i64 [ %114, %113 ], [ %92, %129 ]
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05675) #7
  store i64 %.sink, ptr %132, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %.sink.split, %54
  %134 = add nuw i64 %.05675, 1
  %135 = call noundef i64 @_ZNKSt6vectorISt4pairImmESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %21, label %._crit_edge, !llvm.loop !58

137:                                              ; preds = %._crit_edge
  %138 = getelementptr inbounds i8, ptr %1, i64 208
  %139 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %.155) #7
  invoke void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %139)
          to label %._crit_edge.thread unwind label %140

140:                                              ; preds = %137
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %142

142:                                              ; preds = %33, %130, %53, %117, %119, %115, %140
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %141, %140 ], [ %131, %130 ], [ %34, %33 ], [ %.pn, %53 ], [ %116, %115 ], [ %120, %119 ], [ %118, %117 ]
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %143

._crit_edge.thread:                               ; preds = %9, %._crit_edge, %137
  ret void

143:                                              ; preds = %142, %19
  %.pn61.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn, %142 ], [ %20, %19 ]
  resume { ptr, i32 } %.pn61.pn.pn.pn.pn
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

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

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

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

declare void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, i1 noundef zeroext) unnamed_addr #5

; 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

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

declare void @_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(ptr noundef nonnull align 8 dereferenceable(264), i32 noundef) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) local_unnamed_addr #5

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #5

declare i32 @LZ4_decompress_safe(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 40}
!10 = !{!"_ZTSN8graphlab13v1_block_impl12block_readerE", !11, i64 0, !32, i64 184, !36, i64 208}
!11 = !{!"_ZTSN8graphlab22index_file_informationE", !12, i64 0, !15, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !16, i64 88, !20, i64 112, !24, i64 136}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !6, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorImSaImEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseImSaImEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!20 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!24 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !6, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!36 = !{!"_ZTSSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!40 = !{!41, !6, i64 0}
!41 = !{!"_ZTSSt4pairImmE", !6, i64 0, !6, i64 8}
!42 = !{!41, !6, i64 8}
!43 = !{!44, !14, i64 40}
!44 = !{!"_ZTSN8graphlab13v1_block_impl12block_reader15segment_io_dataE", !45, i64 0, !14, i64 40, !46, i64 48}
!45 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!46 = !{!"_ZTSSt6vectorIcSaIcEE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!50 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !8, i64 0}
!52 = !{!53, !6, i64 0}
!53 = !{!"_ZTSN8graphlab13v1_block_impl12block_reader10block_infoE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!54 = !{!53, !6, i64 32}
!55 = !{!53, !6, i64 8}
!56 = !{!10, !6, i64 48}
!57 = !{!14, !14, i64 0}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}


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