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

; 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.anon = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.anon.0 = type { ptr, ptr }
%class.anon.1 = type { ptr, ptr }
%"class.graphlab::general_ifstream" = type { %"struct.boost::iostreams::stream.base", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"struct.boost::iostreams::stream.base" = type { %"class.boost::iostreams::detail::stream_base.base" }
%"class.boost::iostreams::detail::stream_base.base" = type { %"class.std::basic_istream.base", %"class.boost::base_from_member" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.boost::base_from_member" = type { %"class.boost::iostreams::stream_buffer" }
%"class.boost::iostreams::stream_buffer" = type { %"class.boost::iostreams::detail::indirect_streambuf.base", [4 x i8] }
%"class.boost::iostreams::detail::indirect_streambuf.base" = type <{ %"class.boost::iostreams::detail::linked_streambuf.base", [4 x i8], %"class.boost::iostreams::detail::optional", ptr, %"class.boost::iostreams::detail::double_object", i64, i32 }>
%"class.boost::iostreams::detail::linked_streambuf.base" = type <{ %"class.std::basic_streambuf", i32 }>
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::iostreams::detail::optional" = type { %"class.boost::iostreams::detail::aligned_storage", i8, [7 x i8] }
%"class.boost::iostreams::detail::aligned_storage" = type { %"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::general_fstream_source>>::dummy_u" }
%"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::general_fstream_source>>::dummy_u" = type { [56 x i8] }
%"class.boost::iostreams::detail::double_object" = type { %"class.boost::iostreams::detail::single_object_holder" }
%"class.boost::iostreams::detail::single_object_holder" = type { %"class.boost::iostreams::detail::basic_buffer" }
%"class.boost::iostreams::detail::basic_buffer" = type { ptr, i64 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@_ZTISt9exception = external constant ptr
@_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external dso_local constant { ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab16general_ifstreamC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.anon, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %class.anon.0, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.anon.1, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = load ptr, ptr %5, align 8
  %16 = getelementptr inbounds ptr, ptr %15, i64 1
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEEC2INSt7__cxx1112basic_stringIcS6_S7_EEEERT_PNS_10disable_ifINS_7is_sameISD_S4_EEvE4typeE(ptr noundef nonnull align 8 dereferenceable(192) %14, ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null)
          to label %17 unwind label %27

17:                                               ; preds = %3
  %18 = load ptr, ptr %15, align 8
  store ptr %18, ptr %14, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %15, i64 7
  %20 = load ptr, ptr %19, align 8
  %21 = load ptr, ptr %14, align 8, !tbaa !9
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr %14, i64 %23
  store ptr %20, ptr %24, align 8, !tbaa !9
  %25 = getelementptr inbounds %"class.graphlab::general_ifstream", ptr %14, i32 0, i32 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %26 unwind label %31

26:                                               ; preds = %17
  br label %105

27:                                               ; preds = %3
  %28 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr @_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
          catch ptr null
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  br label %36

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr @_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
          catch ptr null
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  %35 = getelementptr inbounds ptr, ptr %15, i64 1
  call void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(192) %14, ptr noundef %35) #7
  br label %36

36:                                               ; preds = %31, %27
  %37 = load i32, ptr %8, align 4
  %38 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %39 = icmp eq i32 %37, %38
  br i1 %39, label %40, label %51

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %41 = load ptr, ptr %7, align 8
  %42 = call ptr @__cxa_begin_catch(ptr %41) #7
  store ptr %42, ptr %12, align 8
  br label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %44 = getelementptr inbounds %class.anon.1, ptr %13, i32 0, i32 0
  store ptr %2, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.anon.1, ptr %13, i32 0, i32 1
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %46, ptr %45, align 8, !tbaa !5
  invoke void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_2clEv"(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %47 unwind label %95

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  invoke void @__cxa_rethrow()
          to label %50 unwind label %99

50:                                               ; preds = %49
  unreachable

51:                                               ; preds = %36
  %52 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #7
  %53 = icmp eq i32 %37, %52
  br i1 %53, label %54, label %66

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  %55 = load ptr, ptr %7, align 8
  %56 = call ptr @__cxa_get_exception_ptr(ptr %55) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %57 unwind label %111

57:                                               ; preds = %54
  %58 = call ptr @__cxa_begin_catch(ptr %55) #7
  br label %59

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %60 = getelementptr inbounds %class.anon.0, ptr %11, i32 0, i32 0
  store ptr %2, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.anon.0, ptr %11, i32 0, i32 1
  store ptr %10, ptr %61, align 8, !tbaa !5
  invoke void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %62 unwind label %85

62:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  invoke void @__cxa_rethrow()
          to label %65 unwind label %89

65:                                               ; preds = %64
  unreachable

66:                                               ; preds = %51
  %67 = load ptr, ptr %7, align 8
  %68 = call ptr @__cxa_begin_catch(ptr %67) #7
  br label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %70 = getelementptr inbounds %class.anon, ptr %9, i32 0, i32 0
  store ptr %2, ptr %70, align 8, !tbaa !5
  invoke void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %71 unwind label %75

71:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  invoke void @__cxa_rethrow()
          to label %74 unwind label %79

74:                                               ; preds = %73
  unreachable

75:                                               ; preds = %69
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %83

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %83

83:                                               ; preds = %79, %75
  invoke void @__cxa_end_catch()
          to label %84 unwind label %111

84:                                               ; preds = %83
  br label %106

85:                                               ; preds = %59
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br label %93

89:                                               ; preds = %64
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %93

93:                                               ; preds = %89, %85
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  invoke void @__cxa_end_catch()
          to label %94 unwind label %111

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %106

95:                                               ; preds = %43
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %7, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %103

99:                                               ; preds = %49
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  br label %103

103:                                              ; preds = %99, %95
  invoke void @__cxa_end_catch()
          to label %104 unwind label %111

104:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %106

105:                                              ; preds = %26
  ret void

106:                                              ; preds = %104, %94, %84
  %107 = load ptr, ptr %7, align 8
  %108 = load i32, ptr %8, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110

111:                                              ; preds = %103, %93, %83, %54
  %112 = landingpad { ptr, i32 }
          catch ptr null
  %113 = extractvalue { ptr, i32 } %112, 0
  call void @__clang_call_terminate(ptr %113) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEEC2INSt7__cxx1112basic_stringIcS6_S7_EEEERT_PNS_10disable_ifINS_7is_sameISD_S4_EEvE4typeE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #0 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 #0 align 2

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

declare ptr @__cxa_begin_catch(ptr)

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

declare void @__cxa_rethrow()

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #5

declare ptr @__cxa_get_exception_ptr(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_2clEv"(ptr noundef nonnull align 8 dereferenceable(16)) #4 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 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 = { nounwind memory(none) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"vtable pointer", !8, i64 0}


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

%class.anon = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.anon.0 = type { ptr, ptr }
%class.anon.1 = type { ptr, ptr }

@_ZTISt9exception = external constant ptr
@_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external dso_local constant { ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab16general_ifstreamC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef %1, ptr noundef nonnull %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.anon, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %class.anon.0, align 8
  %7 = alloca %class.anon.1, align 8
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEEC2INSt7__cxx1112basic_stringIcS6_S7_EEEERT_PNS_10disable_ifINS_7is_sameISD_S4_EEvE4typeE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull %8, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null)
          to label %9 unwind label %17

9:                                                ; preds = %3
  %10 = load ptr, ptr %1, align 8
  store ptr %10, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 56
  %12 = load ptr, ptr %11, align 8
  %13 = getelementptr i8, ptr %10, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr %0, i64 %14
  store ptr %12, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 192
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %59 unwind label %19

17:                                               ; preds = %3
  %18 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr @_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
          catch ptr null
  br label %21

19:                                               ; preds = %9
  %20 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr @_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
          catch ptr null
  tail call void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull %8) #7
  br label %21

21:                                               ; preds = %19, %17
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.08 = extractvalue { ptr, i32 } %.pn, 1
  %22 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %23 = icmp eq i32 %.08, %22
  br i1 %23, label %24, label %29

24:                                               ; preds = %21
  %25 = tail call ptr @__cxa_begin_catch(ptr %.0) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  store ptr %2, ptr %7, align 8, !tbaa !8
  %26 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %25, ptr %26, align 8, !tbaa !8
  invoke void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_2clEv"(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %27 unwind label %54

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  invoke void @__cxa_rethrow()
          to label %28 unwind label %56

28:                                               ; preds = %27
  unreachable

29:                                               ; preds = %21
  %30 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #7
  %31 = icmp eq i32 %.08, %30
  br i1 %31, label %32, label %39

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  %33 = tail call ptr @__cxa_get_exception_ptr(ptr %.0) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %34 unwind label %61

34:                                               ; preds = %32
  %35 = call ptr @__cxa_begin_catch(ptr %.0) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  store ptr %2, ptr %6, align 8, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %5, ptr %36, align 8, !tbaa !8
  invoke void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %37 unwind label %48

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  invoke void @__cxa_rethrow()
          to label %38 unwind label %50

38:                                               ; preds = %37
  unreachable

39:                                               ; preds = %29
  %40 = tail call ptr @__cxa_begin_catch(ptr %.0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr %2, ptr %4, align 8, !tbaa !8
  invoke void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %41 unwind label %43

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  invoke void @__cxa_rethrow()
          to label %42 unwind label %45

42:                                               ; preds = %41
  unreachable

43:                                               ; preds = %39
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %47

45:                                               ; preds = %41
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %47

47:                                               ; preds = %45, %43
  %.pn14 = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  invoke void @__cxa_end_catch()
          to label %60 unwind label %61

48:                                               ; preds = %34
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %52

50:                                               ; preds = %37
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %52

52:                                               ; preds = %50, %48
  %.pn16 = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  invoke void @__cxa_end_catch()
          to label %53 unwind label %61

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %60

54:                                               ; preds = %24
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %58

56:                                               ; preds = %27
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %58

58:                                               ; preds = %56, %54
  %.pn18 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  invoke void @__cxa_end_catch()
          to label %60 unwind label %61

59:                                               ; preds = %9
  ret void

60:                                               ; preds = %58, %47, %53
  %.pn18.pn = phi { ptr, i32 } [ %.pn16, %53 ], [ %.pn14, %47 ], [ %.pn18, %58 ]
  resume { ptr, i32 } %.pn18.pn

61:                                               ; preds = %58, %52, %47, %32
  %62 = landingpad { ptr, i32 }
          catch ptr null
  %63 = extractvalue { ptr, i32 } %62, 0
  call void @__clang_call_terminate(ptr %63) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEEC2INSt7__cxx1112basic_stringIcS6_S7_EEEERT_PNS_10disable_ifINS_7is_sameISD_S4_EEvE4typeE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #0 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 #0 align 2

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

declare void @__cxa_rethrow() local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #5

declare ptr @__cxa_get_exception_ptr(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEENK3$_2clEv"(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 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 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 = { nofree nosync nounwind memory(none) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass