; LLVM IR from turi-code/SFrame :: oss_test/fileio (fstream_bench)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"class.std::locale" = type { ptr }
%"class.graphlab::general_ofstream" = 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_ostream.base", %"class.boost::base_from_member" }
%"class.std::basic_ostream.base" = type { ptr }
%"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.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_sink>>::dummy_u" }
%"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::general_fstream_sink>>::dummy_u" = type { [88 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.graphlab::timer" = type { %struct.timeval }
%struct.timeval = type { i64, i64 }
%"class.graphlab::general_ifstream" = type { %"struct.boost::iostreams::stream.base.12", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"struct.boost::iostreams::stream.base.12" = type { %"class.boost::iostreams::detail::stream_base.base.11" }
%"class.boost::iostreams::detail::stream_base.base.11" = type { %"class.std::basic_istream.base", %"class.boost::base_from_member.2" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.boost::base_from_member.2" = type { %"class.boost::iostreams::stream_buffer.3" }
%"class.boost::iostreams::stream_buffer.3" = type { %"class.boost::iostreams::detail::indirect_streambuf.base.9", [4 x i8] }
%"class.boost::iostreams::detail::indirect_streambuf.base.9" = type <{ %"class.boost::iostreams::detail::linked_streambuf.base", [4 x i8], %"class.boost::iostreams::detail::optional.5", ptr, %"class.boost::iostreams::detail::double_object.8", i64, i32 }>
%"class.boost::iostreams::detail::optional.5" = type { %"class.boost::iostreams::detail::aligned_storage.6", i8, [7 x i8] }
%"class.boost::iostreams::detail::aligned_storage.6" = 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.8" = type { %"class.boost::iostreams::detail::single_object_holder" }
%"struct.boost::iostreams::stream.13" = type { %"class.boost::iostreams::detail::stream_base.base.23", %"class.std::basic_ios" }
%"class.boost::iostreams::detail::stream_base.base.23" = type { %"class.std::basic_istream.base", %"class.boost::base_from_member.15" }
%"class.boost::base_from_member.15" = type { %"class.boost::iostreams::stream_buffer.16" }
%"class.boost::iostreams::stream_buffer.16" = type { %"class.boost::iostreams::detail::indirect_streambuf.base.21", [4 x i8] }
%"class.boost::iostreams::detail::indirect_streambuf.base.21" = type <{ %"class.boost::iostreams::detail::linked_streambuf.base", [4 x i8], %"class.boost::iostreams::detail::optional.18", ptr, %"class.boost::iostreams::detail::double_object.8", i64, i32 }>
%"class.boost::iostreams::detail::optional.18" = type { %"class.boost::iostreams::detail::aligned_storage.19", i8, [7 x i8] }
%"class.boost::iostreams::detail::aligned_storage.19" = type { %"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::cache_stream_source>>::dummy_u" }
%"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::cache_stream_source>>::dummy_u" = type { [56 x i8] }

@KBYTES = external dso_local global i64, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4copyPVcPc(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5benchNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.graphlab::general_ofstream", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [1024 x i8], align 16
  %8 = alloca %"class.graphlab::timer", align 8
  %9 = alloca i64, align 8
  %10 = alloca [1024 x i8], align 16
  %11 = alloca i64, align 8
  %12 = alloca %"class.graphlab::general_ifstream", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"struct.boost::iostreams::stream.13", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_ZN8graphlab16general_ofstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef %4)
          to label %20 unwind label %27

20:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr %7) #7
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  invoke void @_ZN8graphlab5timerC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %21 unwind label %31

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %39, %21
  %23 = load i64, ptr %9, align 8, !tbaa !9
  %24 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %35, label %26

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

27:                                               ; preds = %1
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %5, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %271

31:                                               ; preds = %59, %57, %54, %52, %50, %47, %46, %20
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %5, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %6, align 4
  br label %270

35:                                               ; preds = %22
  %36 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %36, i64 noundef 1024)
          to label %38 unwind label %42

38:                                               ; preds = %35
  br label %39

39:                                               ; preds = %38
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = add i64 %40, 1
  store i64 %41, ptr %9, align 8, !tbaa !9
  br label %22, !llvm.loop !11

42:                                               ; preds = %35
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %270

46:                                               ; preds = %26
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl20general_fstream_sinkESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %47 unwind label %31

47:                                               ; preds = %46
  %48 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %48)
          to label %50 unwind label %31

50:                                               ; preds = %47
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @.str)
          to label %52 unwind label %31

52:                                               ; preds = %50
  %53 = invoke noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %54 unwind label %31

54:                                               ; preds = %52
  %55 = fmul double %53, 1.000000e+03
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %51, double noundef %55)
          to label %57 unwind label %31

57:                                               ; preds = %54
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @.str.4)
          to label %59 unwind label %31

59:                                               ; preds = %57
  invoke void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %60 unwind label %31

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #7
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 1024, i1 true)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %69, %60
  %62 = load i64, ptr %11, align 8, !tbaa !9
  %63 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %66, label %65

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

66:                                               ; preds = %61
  %67 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %68 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  call void @_Z4copyPVcPc(ptr noundef %67, ptr noundef %68)
  br label %69

69:                                               ; preds = %66
  %70 = load i64, ptr %11, align 8, !tbaa !9
  %71 = add i64 %70, 1
  store i64 %71, ptr %11, align 8, !tbaa !9
  br label %61, !llvm.loop !13

72:                                               ; preds = %65
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl20general_fstream_sinkESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %73 unwind label %94

73:                                               ; preds = %72
  %74 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %74)
          to label %76 unwind label %94

76:                                               ; preds = %73
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @.str.5)
          to label %78 unwind label %94

78:                                               ; preds = %76
  %79 = invoke noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %80 unwind label %94

80:                                               ; preds = %78
  %81 = fmul double %79, 1.000000e+03
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %77, double noundef %81)
          to label %83 unwind label %94

83:                                               ; preds = %80
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @.str.4)
          to label %85 unwind label %94

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 488, ptr %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %86 unwind label %98

86:                                               ; preds = %85
  invoke void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(224) %12, ptr noundef %13)
          to label %87 unwind label %102

87:                                               ; preds = %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  invoke void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %88 unwind label %106

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %114, %88
  %90 = load i64, ptr %14, align 8, !tbaa !9
  %91 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %110, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %121

94:                                               ; preds = %83, %80, %78, %76, %73, %72
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %5, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %6, align 4
  br label %269

98:                                               ; preds = %85
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %5, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %6, align 4
  br label %268

102:                                              ; preds = %86
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %268

106:                                              ; preds = %175, %169, %166, %164, %162, %159, %158, %133, %131, %128, %126, %124, %121, %87
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %5, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %6, align 4
  br label %267

110:                                              ; preds = %89
  %111 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %112 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %111, i64 noundef 1024)
          to label %113 unwind label %117

113:                                              ; preds = %110
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %14, align 8, !tbaa !9
  %116 = add i64 %115, 1
  store i64 %116, ptr %14, align 8, !tbaa !9
  br label %89, !llvm.loop !14

117:                                              ; preds = %110
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %5, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %267

121:                                              ; preds = %93
  %122 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %122)
          to label %124 unwind label %106

124:                                              ; preds = %121
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @.str.6)
          to label %126 unwind label %106

126:                                              ; preds = %124
  %127 = invoke noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %128 unwind label %106

128:                                              ; preds = %126
  %129 = fmul double %127, 1.000000e+03
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %125, double noundef %129)
          to label %131 unwind label %106

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @.str.4)
          to label %133 unwind label %106

133:                                              ; preds = %131
  invoke void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %134 unwind label %106

134:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %151, %134
  %136 = load i64, ptr %15, align 8, !tbaa !9
  %137 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %138 = icmp ult i64 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %158

140:                                              ; preds = %135
  %141 = load i64, ptr %15, align 8, !tbaa !9
  %142 = mul i64 %141, 991
  %143 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %144 = urem i64 %142, %143
  %145 = mul i64 1024, %144
  %146 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %145, i32 noundef 0)
          to label %147 unwind label %154

147:                                              ; preds = %140
  %148 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %149 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %148, i64 noundef 1024)
          to label %150 unwind label %154

150:                                              ; preds = %147
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %15, align 8, !tbaa !9
  %153 = add i64 %152, 1
  store i64 %153, ptr %15, align 8, !tbaa !9
  br label %135, !llvm.loop !15

154:                                              ; preds = %147, %140
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %5, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %267

158:                                              ; preds = %139
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(192) %12)
          to label %159 unwind label %106

159:                                              ; preds = %158
  %160 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %160)
          to label %162 unwind label %106

162:                                              ; preds = %159
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef @.str.7)
          to label %164 unwind label %106

164:                                              ; preds = %162
  %165 = invoke noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %166 unwind label %106

166:                                              ; preds = %164
  %167 = fmul double %165, 1.000000e+03
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %163, double noundef %167)
          to label %169 unwind label %106

169:                                              ; preds = %166
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @.str.4)
          to label %171 unwind label %106

171:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0, i64 noundef 5)
          to label %172 unwind label %185

172:                                              ; preds = %171
  %173 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.8)
          to label %174 unwind label %189

174:                                              ; preds = %172
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br i1 %173, label %175, label %266

175:                                              ; preds = %174
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
          to label %177 unwind label %106

177:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 456, ptr %17) #7
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEEC1INSt7__cxx1112basic_stringIcS6_S7_EEEERT_PNS_10disable_ifINS_7is_sameISD_S4_EEvE4typeE(ptr noundef nonnull align 8 dereferenceable(192) %17, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
          to label %178 unwind label %194

178:                                              ; preds = %177
  invoke void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %179 unwind label %198

179:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %206, %179
  %181 = load i64, ptr %18, align 8, !tbaa !9
  %182 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %183 = icmp ult i64 %181, %182
  br i1 %183, label %202, label %184

184:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %213

185:                                              ; preds = %171
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %5, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %6, align 4
  br label %193

189:                                              ; preds = %172
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %5, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %193

193:                                              ; preds = %189, %185
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br label %267

194:                                              ; preds = %177
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %5, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %6, align 4
  br label %265

198:                                              ; preds = %261, %258, %256, %254, %251, %250, %225, %223, %220, %218, %216, %213, %178
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %5, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %6, align 4
  br label %264

202:                                              ; preds = %180
  %203 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %204 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %203, i64 noundef 1024)
          to label %205 unwind label %209

205:                                              ; preds = %202
  br label %206

206:                                              ; preds = %205
  %207 = load i64, ptr %18, align 8, !tbaa !9
  %208 = add i64 %207, 1
  store i64 %208, ptr %18, align 8, !tbaa !9
  br label %180, !llvm.loop !16

209:                                              ; preds = %202
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %5, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %264

213:                                              ; preds = %184
  %214 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %214)
          to label %216 unwind label %198

216:                                              ; preds = %213
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef @.str.6)
          to label %218 unwind label %198

218:                                              ; preds = %216
  %219 = invoke noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %220 unwind label %198

220:                                              ; preds = %218
  %221 = fmul double %219, 1.000000e+03
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %217, double noundef %221)
          to label %223 unwind label %198

223:                                              ; preds = %220
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef @.str.4)
          to label %225 unwind label %198

225:                                              ; preds = %223
  invoke void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %226 unwind label %198

226:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %243, %226
  %228 = load i64, ptr %19, align 8, !tbaa !9
  %229 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %230 = icmp ult i64 %228, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %250

232:                                              ; preds = %227
  %233 = load i64, ptr %19, align 8, !tbaa !9
  %234 = mul i64 %233, 991
  %235 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %236 = urem i64 %234, %235
  %237 = mul i64 1024, %236
  %238 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %237, i32 noundef 0)
          to label %239 unwind label %246

239:                                              ; preds = %232
  %240 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %241 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %240, i64 noundef 1024)
          to label %242 unwind label %246

242:                                              ; preds = %239
  br label %243

243:                                              ; preds = %242
  %244 = load i64, ptr %19, align 8, !tbaa !9
  %245 = add i64 %244, 1
  store i64 %245, ptr %19, align 8, !tbaa !9
  br label %227, !llvm.loop !17

246:                                              ; preds = %239, %232
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %5, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %264

250:                                              ; preds = %231
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(192) %17)
          to label %251 unwind label %198

251:                                              ; preds = %250
  %252 = load i64, ptr @KBYTES, align 8, !tbaa !9
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %252)
          to label %254 unwind label %198

254:                                              ; preds = %251
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @.str.7)
          to label %256 unwind label %198

256:                                              ; preds = %254
  %257 = invoke noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %258 unwind label %198

258:                                              ; preds = %256
  %259 = fmul double %257, 1.000000e+03
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %255, double noundef %259)
          to label %261 unwind label %198

261:                                              ; preds = %258
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef @.str.4)
          to label %263 unwind label %198

263:                                              ; preds = %261
  call void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(192) %17) #7
  call void @llvm.lifetime.end.p0(i64 456, ptr %17) #7
  br label %266

264:                                              ; preds = %246, %209, %198
  call void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(192) %17) #7
  br label %265

265:                                              ; preds = %264, %194
  call void @llvm.lifetime.end.p0(i64 456, ptr %17) #7
  br label %267

266:                                              ; preds = %263, %174
  call void @_ZN8graphlab16general_ifstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %12) #7
  call void @llvm.lifetime.end.p0(i64 488, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #7
  call void @_ZN8graphlab16general_ofstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  ret void

267:                                              ; preds = %265, %193, %154, %117, %106
  call void @_ZN8graphlab16general_ifstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %12) #7
  br label %268

268:                                              ; preds = %267, %102, %98
  call void @llvm.lifetime.end.p0(i64 488, ptr %12) #7
  br label %269

269:                                              ; preds = %268, %94
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #7
  br label %270

270:                                              ; preds = %269, %42, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #7
  call void @_ZN8graphlab16general_ofstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  br label %271

271:                                              ; preds = %270, %27
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  br label %272

272:                                              ; preds = %271
  %273 = load ptr, ptr %5, align 8
  %274 = load i32, ptr %6, align 4
  %275 = insertvalue { ptr, i32 } poison, ptr %273, 0
  %276 = insertvalue { ptr, i32 } %275, i32 %274, 1
  resume { ptr, i32 } %276
}

; 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_ofstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef) unnamed_addr #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

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

declare void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #2 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"class.std::locale" = type { ptr }
%"class.graphlab::general_ofstream" = 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_ostream.base", %"class.boost::base_from_member" }
%"class.std::basic_ostream.base" = type { ptr }
%"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.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_sink>>::dummy_u" }
%"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::general_fstream_sink>>::dummy_u" = type { [88 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.graphlab::timer" = type { %struct.timeval }
%struct.timeval = type { i64, i64 }
%"class.graphlab::general_ifstream" = type { %"struct.boost::iostreams::stream.base.12", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"struct.boost::iostreams::stream.base.12" = type { %"class.boost::iostreams::detail::stream_base.base.11" }
%"class.boost::iostreams::detail::stream_base.base.11" = type { %"class.std::basic_istream.base", %"class.boost::base_from_member.2" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.boost::base_from_member.2" = type { %"class.boost::iostreams::stream_buffer.3" }
%"class.boost::iostreams::stream_buffer.3" = type { %"class.boost::iostreams::detail::indirect_streambuf.base.9", [4 x i8] }
%"class.boost::iostreams::detail::indirect_streambuf.base.9" = type <{ %"class.boost::iostreams::detail::linked_streambuf.base", [4 x i8], %"class.boost::iostreams::detail::optional.5", ptr, %"class.boost::iostreams::detail::double_object.8", i64, i32 }>
%"class.boost::iostreams::detail::optional.5" = type { %"class.boost::iostreams::detail::aligned_storage.6", i8, [7 x i8] }
%"class.boost::iostreams::detail::aligned_storage.6" = 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.8" = type { %"class.boost::iostreams::detail::single_object_holder" }
%"struct.boost::iostreams::stream.13" = type { %"class.boost::iostreams::detail::stream_base.base.23", %"class.std::basic_ios" }
%"class.boost::iostreams::detail::stream_base.base.23" = type { %"class.std::basic_istream.base", %"class.boost::base_from_member.15" }
%"class.boost::base_from_member.15" = type { %"class.boost::iostreams::stream_buffer.16" }
%"class.boost::iostreams::stream_buffer.16" = type { %"class.boost::iostreams::detail::indirect_streambuf.base.21", [4 x i8] }
%"class.boost::iostreams::detail::indirect_streambuf.base.21" = type <{ %"class.boost::iostreams::detail::linked_streambuf.base", [4 x i8], %"class.boost::iostreams::detail::optional.18", ptr, %"class.boost::iostreams::detail::double_object.8", i64, i32 }>
%"class.boost::iostreams::detail::optional.18" = type { %"class.boost::iostreams::detail::aligned_storage.19", i8, [7 x i8] }
%"class.boost::iostreams::detail::aligned_storage.19" = type { %"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::cache_stream_source>>::dummy_u" }
%"union.boost::iostreams::detail::aligned_storage<boost::iostreams::detail::concept_adapter<graphlab::fileio_impl::cache_stream_source>>::dummy_u" = type { [56 x i8] }

@KBYTES = external dso_local local_unnamed_addr global i64, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4copyPVcPc(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5benchNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.graphlab::general_ofstream", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca [1024 x i8], align 16
  %5 = alloca %"class.graphlab::timer", align 8
  %6 = alloca [1024 x i8], align 16
  %7 = alloca %"class.graphlab::general_ifstream", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"struct.boost::iostreams::stream.13", align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_ZN8graphlab16general_ofstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull %3)
          to label %11 unwind label %13

11:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %4, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  invoke void @_ZN8graphlab5timerC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %.preheader unwind label %15

.preheader:                                       ; preds = %11
  %12 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %18, %.preheader
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl20general_fstream_sinkESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %24 unwind label %15

13:                                               ; preds = %1
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %169

15:                                               ; preds = %33, %29, %27, %24, %._crit_edge, %11
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %168

.lr.ph:                                           ; preds = %.preheader, %18
  %.01944 = phi i64 [ %19, %18 ], [ 0, %.preheader ]
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %4, i64 noundef 1024)
          to label %18 unwind label %22

18:                                               ; preds = %.lr.ph
  %19 = add nuw i64 %.01944, 1
  %20 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %21 = icmp ult i64 %19, %20
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !9

22:                                               ; preds = %.lr.ph
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %168

24:                                               ; preds = %._crit_edge
  %25 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %25)
          to label %27 unwind label %15

27:                                               ; preds = %24
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str)
          to label %29 unwind label %15

29:                                               ; preds = %27
  %30 = call noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %31 = fmul double %30, 1.000000e+03
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %28, double noundef %31)
          to label %33 unwind label %15

33:                                               ; preds = %29
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.4)
          to label %35 unwind label %15

35:                                               ; preds = %33
  call void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #7
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %6, i8 0, i64 1024, i1 true)
  %36 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %.not66 = icmp eq i64 %36, 0
  br i1 %.not66, label %._crit_edge48, label %.lr.ph47

._crit_edge48:                                    ; preds = %.lr.ph47, %35
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl20general_fstream_sinkESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %40 unwind label %56

.lr.ph47:                                         ; preds = %35, %.lr.ph47
  %.01845 = phi i64 [ %37, %.lr.ph47 ], [ 0, %35 ]
  call void @_Z4copyPVcPc(ptr noundef nonnull %6, ptr noundef nonnull %4)
  %37 = add nuw i64 %.01845, 1
  %38 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %.lr.ph47, label %._crit_edge48, !llvm.loop !11

40:                                               ; preds = %._crit_edge48
  %41 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %41)
          to label %43 unwind label %56

43:                                               ; preds = %40
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @.str.5)
          to label %45 unwind label %56

45:                                               ; preds = %43
  %46 = call noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %47 = fmul double %46, 1.000000e+03
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %44, double noundef %47)
          to label %49 unwind label %56

49:                                               ; preds = %45
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @.str.4)
          to label %51 unwind label %56

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 488, ptr nonnull %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %52 unwind label %58

52:                                               ; preds = %51
  invoke void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(224) %7, ptr noundef nonnull %8)
          to label %53 unwind label %60

53:                                               ; preds = %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %54 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %.not67 = icmp eq i64 %54, 0
  br i1 %.not67, label %._crit_edge52, label %.lr.ph51

._crit_edge52:                                    ; preds = %65, %53
  %.lcssa42 = phi i64 [ 0, %53 ], [ %67, %65 ]
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.lcssa42)
          to label %71 unwind label %62

56:                                               ; preds = %49, %45, %43, %40, %._crit_edge48
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %167

58:                                               ; preds = %51
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %166

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

62:                                               ; preds = %108, %103, %99, %97, %94, %._crit_edge56, %77, %73, %71, %._crit_edge52
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %165

.lr.ph51:                                         ; preds = %53, %65
  %.01749 = phi i64 [ %66, %65 ], [ 0, %53 ]
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull %4, i64 noundef 1024)
          to label %65 unwind label %69

65:                                               ; preds = %.lr.ph51
  %66 = add nuw i64 %.01749, 1
  %67 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %68 = icmp ult i64 %66, %67
  br i1 %68, label %.lr.ph51, label %._crit_edge52, !llvm.loop !12

69:                                               ; preds = %.lr.ph51
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %165

71:                                               ; preds = %._crit_edge52
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.6)
          to label %73 unwind label %62

73:                                               ; preds = %71
  %74 = call noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %75 = fmul double %74, 1.000000e+03
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %72, double noundef %75)
          to label %77 unwind label %62

77:                                               ; preds = %73
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @.str.4)
          to label %79 unwind label %62

79:                                               ; preds = %77
  call void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %80 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %.not68 = icmp eq i64 %80, 0
  br i1 %.not68, label %._crit_edge56, label %.lr.ph55

._crit_edge56:                                    ; preds = %88, %79
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl22general_fstream_sourceESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
          to label %94 unwind label %62

.lr.ph55:                                         ; preds = %79, %88
  %81 = phi i64 [ %90, %88 ], [ %80, %79 ]
  %.01653 = phi i64 [ %89, %88 ], [ 0, %79 ]
  %82 = mul i64 %.01653, 991
  %83 = urem i64 %82, %81
  %84 = shl i64 %83, 10
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %84, i32 noundef 0)
          to label %86 unwind label %92

86:                                               ; preds = %.lr.ph55
  %87 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull %4, i64 noundef 1024)
          to label %88 unwind label %92

88:                                               ; preds = %86
  %89 = add nuw i64 %.01653, 1
  %90 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %.lr.ph55, label %._crit_edge56, !llvm.loop !13

92:                                               ; preds = %86, %.lr.ph55
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %165

94:                                               ; preds = %._crit_edge56
  %95 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %95)
          to label %97 unwind label %62

97:                                               ; preds = %94
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @.str.7)
          to label %99 unwind label %62

99:                                               ; preds = %97
  %100 = call noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %101 = fmul double %100, 1.000000e+03
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %98, double noundef %101)
          to label %103 unwind label %62

103:                                              ; preds = %99
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @.str.4)
          to label %105 unwind label %62

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef 0, i64 noundef 5)
          to label %106 unwind label %114

106:                                              ; preds = %105
  %107 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.8)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br i1 %107, label %108, label %164

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
          to label %110 unwind label %62

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 456, ptr nonnull %10) #7
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEEC1INSt7__cxx1112basic_stringIcS6_S7_EEEERT_PNS_10disable_ifINS_7is_sameISD_S4_EEvE4typeE(ptr noundef nonnull align 8 dereferenceable(192) %10, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef null)
          to label %111 unwind label %116

111:                                              ; preds = %110
  call void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %112 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %.not69 = icmp eq i64 %112, 0
  br i1 %.not69, label %._crit_edge60, label %.lr.ph59

._crit_edge60:                                    ; preds = %121, %111
  %.lcssa = phi i64 [ 0, %111 ], [ %123, %121 ]
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.lcssa)
          to label %127 unwind label %118

114:                                              ; preds = %105
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %165

116:                                              ; preds = %110
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %163

118:                                              ; preds = %159, %155, %153, %150, %._crit_edge65, %133, %129, %127, %._crit_edge60
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %162

.lr.ph59:                                         ; preds = %111, %121
  %.01557 = phi i64 [ %122, %121 ], [ 0, %111 ]
  %120 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull %4, i64 noundef 1024)
          to label %121 unwind label %125

121:                                              ; preds = %.lr.ph59
  %122 = add nuw i64 %.01557, 1
  %123 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %.lr.ph59, label %._crit_edge60, !llvm.loop !14

125:                                              ; preds = %.lr.ph59
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %162

127:                                              ; preds = %._crit_edge60
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @.str.6)
          to label %129 unwind label %118

129:                                              ; preds = %127
  %130 = call noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %131 = fmul double %130, 1.000000e+03
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %128, double noundef %131)
          to label %133 unwind label %118

133:                                              ; preds = %129
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull @.str.4)
          to label %135 unwind label %118

135:                                              ; preds = %133
  call void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %136 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %.not70 = icmp eq i64 %136, 0
  br i1 %.not70, label %._crit_edge65, label %.lr.ph64

._crit_edge65:                                    ; preds = %144, %135
  invoke void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(192) %10)
          to label %150 unwind label %118

.lr.ph64:                                         ; preds = %135, %144
  %137 = phi i64 [ %146, %144 ], [ %136, %135 ]
  %.062 = phi i64 [ %145, %144 ], [ 0, %135 ]
  %138 = mul i64 %.062, 991
  %139 = urem i64 %138, %137
  %140 = shl i64 %139, 10
  %141 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %140, i32 noundef 0)
          to label %142 unwind label %148

142:                                              ; preds = %.lr.ph64
  %143 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull %4, i64 noundef 1024)
          to label %144 unwind label %148

144:                                              ; preds = %142
  %145 = add nuw i64 %.062, 1
  %146 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %147 = icmp ult i64 %145, %146
  br i1 %147, label %.lr.ph64, label %._crit_edge65, !llvm.loop !15

148:                                              ; preds = %142, %.lr.ph64
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %162

150:                                              ; preds = %._crit_edge65
  %151 = load i64, ptr @KBYTES, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %151)
          to label %153 unwind label %118

153:                                              ; preds = %150
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @.str.7)
          to label %155 unwind label %118

155:                                              ; preds = %153
  %156 = call noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %157 = fmul double %156, 1.000000e+03
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %154, double noundef %157)
          to label %159 unwind label %118

159:                                              ; preds = %155
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull @.str.4)
          to label %161 unwind label %118

161:                                              ; preds = %159
  call void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(192) %10) #7
  call void @llvm.lifetime.end.p0(i64 456, ptr nonnull %10) #7
  br label %164

162:                                              ; preds = %148, %125, %118
  %.pn = phi { ptr, i32 } [ %126, %125 ], [ %149, %148 ], [ %119, %118 ]
  call void @_ZN5boost9iostreams6streamIN8graphlab11fileio_impl19cache_stream_sourceESt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(192) %10) #7
  br label %163

163:                                              ; preds = %162, %116
  %.pn.pn = phi { ptr, i32 } [ %.pn, %162 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 456, ptr nonnull %10) #7
  br label %165

164:                                              ; preds = %161, %106
  call void @_ZN8graphlab16general_ifstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %7) #7
  call void @llvm.lifetime.end.p0(i64 488, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #7
  call void @_ZN8graphlab16general_ofstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #7
  ret void

165:                                              ; preds = %163, %114, %92, %69, %62
  %.pn34 = phi { ptr, i32 } [ %70, %69 ], [ %93, %92 ], [ %.pn.pn, %163 ], [ %63, %62 ], [ %115, %114 ]
  call void @_ZN8graphlab16general_ifstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %7) #7
  br label %166

166:                                              ; preds = %165, %60, %58
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %165 ], [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 488, ptr nonnull %7) #7
  br label %167

167:                                              ; preds = %166, %56
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %166 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #7
  br label %168

168:                                              ; preds = %167, %22, %15
  %.pn38 = phi { ptr, i32 } [ %23, %22 ], [ %.pn34.pn.pn, %167 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #7
  call void @_ZN8graphlab16general_ofstreamD1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #7
  br label %169

169:                                              ; preds = %168, %13
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %168 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn38.pn
}

; 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_ofstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef) unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8graphlab5timer12current_timeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8graphlab5timer5startEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

declare void @_ZN8graphlab16general_ifstreamC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef) unnamed_addr #3

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

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 #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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


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