; 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::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::__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.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::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_info" = type { %"class.graphlab::mutex", i8, i64, i64, i64, %"class.std::vector.21" }
%"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.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 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab13v1_block_impl12block_reader4initENS_22index_file_informationE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 0
  %9 = call noundef nonnull align 8 dereferenceable(184) ptr @_ZN8graphlab22index_file_informationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(184) %8, ptr noundef nonnull align 8 dereferenceable(184) %1)
  %10 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %11 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 2
  call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %12 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %13 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %1, i32 0, i32 2
  %14 = load i64, ptr %13, align 8, !tbaa !9
  call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %14)
  %15 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 2
  %16 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %1, i32 0, i32 2
  %17 = load i64, ptr %16, align 8, !tbaa !9
  call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !31
  br label %18

18:                                               ; preds = %59, %2
  %19 = load i64, ptr %6, align 8, !tbaa !31
  %20 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %21 = call noundef i64 @_ZNKSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %22 = icmp ult i64 %19, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %62

24:                                               ; preds = %18
  %25 = load i64, ptr %5, align 8, !tbaa !31
  %26 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %27 = load i64, ptr %6, align 8, !tbaa !31
  %28 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %27) #4
  %29 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %28, i32 0, i32 2
  store i64 %25, ptr %29, align 8, !tbaa !32
  %30 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %1, i32 0, i32 5
  %31 = load i64, ptr %6, align 8, !tbaa !31
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %31) #4
  %33 = load i64, ptr %32, align 8, !tbaa !31
  %34 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %35 = load i64, ptr %6, align 8, !tbaa !31
  %36 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %35) #4
  %37 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %36, i32 0, i32 4
  store i64 %33, ptr %37, align 8, !tbaa !40
  %38 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %39 = load i64, ptr %6, align 8, !tbaa !31
  %40 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %39) #4
  %41 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %40, i32 0, i32 2
  %42 = load i64, ptr %41, align 8, !tbaa !32
  %43 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %44 = load i64, ptr %6, align 8, !tbaa !31
  %45 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %44) #4
  %46 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %45, i32 0, i32 4
  %47 = load i64, ptr %46, align 8, !tbaa !40
  %48 = add i64 %42, %47
  %49 = getelementptr inbounds %"class.graphlab::v1_block_impl::block_reader", ptr %7, i32 0, i32 1
  %50 = load i64, ptr %6, align 8, !tbaa !31
  %51 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %50) #4
  %52 = getelementptr inbounds %"struct.graphlab::v1_block_impl::block_reader::segment_info", ptr %51, i32 0, i32 3
  store i64 %48, ptr %52, align 8, !tbaa !41
  %53 = getelementptr inbounds %"struct.graphlab::index_file_information", ptr %1, i32 0, i32 5
  %54 = load i64, ptr %6, align 8, !tbaa !31
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %54) #4
  %56 = load i64, ptr %55, align 8, !tbaa !31
  %57 = load i64, ptr %5, align 8, !tbaa !31
  %58 = add i64 %57, %56
  store i64 %58, ptr %5, align 8, !tbaa !31
  br label %59

59:                                               ; preds = %24
  %60 = load i64, ptr %6, align 8, !tbaa !31
  %61 = add i64 %60, 1
  store i64 %61, ptr %6, align 8, !tbaa !31
  br label %18, !llvm.loop !42

62:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(184) ptr @_ZN8graphlab22index_file_informationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(184)) #1 align 2

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

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

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

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

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

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

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

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

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 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !13, i64 40}
!10 = !{!"_ZTSN8graphlab22index_file_informationE", !11, i64 0, !14, i64 32, !13, i64 40, !13, i64 48, !11, i64 56, !15, i64 88, !19, i64 112, !23, i64 136}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt6vectorImSaImEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseImSaImEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !26, i64 0, !28, i64 8}
!26 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !27, i64 0}
!27 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!28 = !{!"_ZTSSt15_Rb_tree_header", !29, i64 0, !13, i64 32}
!29 = !{!"_ZTSSt18_Rb_tree_node_base", !30, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!30 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!31 = !{!13, !13, i64 0}
!32 = !{!33, !13, i64 48}
!33 = !{!"_ZTSN8graphlab13v1_block_impl12block_reader12segment_infoE", !34, i64 0, !35, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !36, i64 72}
!34 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTSSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!33, !13, i64 64}
!41 = !{!33, !13, i64 56}
!42 = distinct !{!42, !43}
!43 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab13v1_block_impl12block_reader4initENS_22index_file_informationE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef nonnull align 8 dereferenceable(184) ptr @_ZN8graphlab22index_file_informationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(184) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  %6 = getelementptr inbounds i8, ptr %1, i64 40
  %7 = load i64, ptr %6, align 8, !tbaa !5
  tail call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %7)
  %8 = load i64, ptr %6, align 8, !tbaa !5
  tail call void @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader15segment_io_dataESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %8)
  %9 = tail call noundef i64 @_ZNKSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 88
  br label %11

._crit_edge:                                      ; preds = %11, %2
  ret void

11:                                               ; preds = %.lr.ph, %11
  %.013 = phi i64 [ 0, %.lr.ph ], [ %30, %11 ]
  %.01112 = phi i64 [ 0, %.lr.ph ], [ %29, %11 ]
  %12 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.013) #3
  %13 = getelementptr inbounds i8, ptr %12, i64 48
  store i64 %.01112, ptr %13, align 8, !tbaa !30
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.013) #3
  %15 = load i64, ptr %14, align 8, !tbaa !38
  %16 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.013) #3
  %17 = getelementptr inbounds i8, ptr %16, i64 64
  store i64 %15, ptr %17, align 8, !tbaa !39
  %18 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.013) #3
  %19 = getelementptr inbounds i8, ptr %18, i64 48
  %20 = load i64, ptr %19, align 8, !tbaa !30
  %21 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.013) #3
  %22 = getelementptr inbounds i8, ptr %21, i64 64
  %23 = load i64, ptr %22, align 8, !tbaa !39
  %24 = add i64 %23, %20
  %25 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.013) #3
  %26 = getelementptr inbounds i8, ptr %25, i64 56
  store i64 %24, ptr %26, align 8, !tbaa !40
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.013) #3
  %28 = load i64, ptr %27, align 8, !tbaa !38
  %29 = add i64 %28, %.01112
  %30 = add nuw i64 %.013, 1
  %31 = tail call noundef i64 @_ZNKSt6vectorIN8graphlab13v1_block_impl12block_reader12segment_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %11, label %._crit_edge, !llvm.loop !41
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(184) ptr @_ZN8graphlab22index_file_informationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !12, i64 40}
!6 = !{!"_ZTSN8graphlab22index_file_informationE", !7, i64 0, !13, i64 32, !12, i64 40, !12, i64 48, !7, i64 56, !14, i64 88, !18, i64 112, !22, i64 136}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSSt6vectorImSaImEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseImSaImEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!18 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!22 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !23, i64 0}
!23 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !24, i64 0}
!24 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !25, i64 0, !27, i64 8}
!25 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !26, i64 0}
!26 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!27 = !{!"_ZTSSt15_Rb_tree_header", !28, i64 0, !12, i64 32}
!28 = !{!"_ZTSSt18_Rb_tree_node_base", !29, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!29 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!30 = !{!31, !12, i64 48}
!31 = !{!"_ZTSN8graphlab13v1_block_impl12block_reader12segment_infoE", !32, i64 0, !33, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !34, i64 72}
!32 = !{!"_ZTSN8graphlab5mutexE", !10, i64 0}
!33 = !{!"bool", !10, i64 0}
!34 = !{!"_ZTSSt6vectorIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN8graphlab13v1_block_impl12block_reader10block_infoESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!38 = !{!12, !12, i64 0}
!39 = !{!31, !12, i64 64}
!40 = !{!31, !12, i64 56}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


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