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

; 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::fpos" = type { i64, %struct.__mbstate_t }
%struct.__mbstate_t = type { i32, %union.anon.8 }
%union.anon.8 = type { i32 }
%class.anon = type { i8 }
%"class.graphlab::fileio_impl::cache_stream_source" = type { ptr, i64, i64, %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i64 } @_ZN8graphlab11fileio_impl19cache_stream_source4seekElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %1, i32 noundef %2) #3 align 2 {
  %4 = alloca %"class.std::fpos", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::fpos", align 8
  %9 = alloca %"class.std::fpos", align 8
  %10 = alloca %"class.std::fpos", align 8
  %11 = alloca %"class.std::fpos", align 8
  %12 = alloca %"class.std::fpos", align 8
  %13 = alloca %class.anon, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !11
  %14 = load ptr, ptr %5, align 8
  %15 = getelementptr inbounds %"class.graphlab::fileio_impl::cache_stream_source", ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %63

18:                                               ; preds = %3
  call void @_ZNSt4fposI11__mbstate_tEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %19 = load i32, ptr %7, align 4, !tbaa !11
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %22 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %22)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  br label %46

23:                                               ; preds = %18
  %24 = load i32, ptr %7, align 4, !tbaa !11
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %35

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %27 = getelementptr inbounds %"class.graphlab::fileio_impl::cache_stream_source", ptr %14, i32 0, i32 2
  %28 = load i64, ptr %27, align 8, !tbaa !24
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %28)
  %29 = load i64, ptr %6, align 8, !tbaa !9
  %30 = call { i64, i64 } @_ZNKSt4fposI11__mbstate_tEplEl(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %29)
  %31 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %32 = extractvalue { i64, i64 } %30, 0
  store i64 %32, ptr %31, align 8
  %33 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %34 = extractvalue { i64, i64 } %30, 1
  store i64 %34, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %45

35:                                               ; preds = %23
  %36 = load i32, ptr %7, align 4, !tbaa !11
  %37 = icmp eq i32 %36, 2
  br i1 %37, label %38, label %44

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %39 = getelementptr inbounds %"class.graphlab::fileio_impl::cache_stream_source", ptr %14, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !25
  %41 = load i64, ptr %6, align 8, !tbaa !9
  %42 = add i64 %40, %41
  %43 = sub i64 %42, 1
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %43)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %44

44:                                               ; preds = %38, %35
  br label %45

45:                                               ; preds = %44, %26
  br label %46

46:                                               ; preds = %45, %21
  %47 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %48 = icmp slt i64 %47, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  br i1 %48, label %55, label %49

49:                                               ; preds = %46
  %50 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %51 = getelementptr inbounds %"class.graphlab::fileio_impl::cache_stream_source", ptr %14, i32 0, i32 1
  %52 = load i64, ptr %51, align 8, !tbaa !25
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %52)
  %53 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %54 = icmp sge i64 %50, %53
  br label %55

55:                                               ; preds = %49, %46
  %56 = phi i1 [ true, %46 ], [ %54, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br i1 %56, label %57, label %60

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @"_ZZN8graphlab11fileio_impl19cache_stream_source4seekElSt12_Ios_SeekdirENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59, %55
  %61 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %62 = getelementptr inbounds %"class.graphlab::fileio_impl::cache_stream_source", ptr %14, i32 0, i32 2
  store i64 %61, ptr %62, align 8, !tbaa !24
  br label %73

63:                                               ; preds = %3
  %64 = getelementptr inbounds %"class.graphlab::fileio_impl::cache_stream_source", ptr %14, i32 0, i32 4
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab11fileio_impl22general_fstream_sourceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %64) #6
  %66 = load i64, ptr %6, align 8, !tbaa !9
  %67 = load i32, ptr %7, align 4, !tbaa !11
  %68 = call { i64, i64 } @_ZN8graphlab11fileio_impl22general_fstream_source4seekElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(49) %65, i64 noundef %66, i32 noundef %67)
  %69 = getelementptr inbounds { i64, i64 }, ptr %4, i32 0, i32 0
  %70 = extractvalue { i64, i64 } %68, 0
  store i64 %70, ptr %69, align 8
  %71 = getelementptr inbounds { i64, i64 }, ptr %4, i32 0, i32 1
  %72 = extractvalue { i64, i64 } %68, 1
  store i64 %72, ptr %71, align 8
  br label %73

73:                                               ; preds = %63, %60
  %74 = load { i64, i64 }, ptr %4, align 8
  ret { i64, i64 } %74
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZNKSt4fposI11__mbstate_tEplEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

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

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

declare { i64, i64 } @_ZN8graphlab11fileio_impl22general_fstream_source4seekElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i32 noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSSt12_Ios_Seekdir", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN8graphlab11fileio_impl19cache_stream_sourceE", !6, i64 0, !10, i64 8, !10, i64 16, !15, i64 24, !18, i64 40}
!15 = !{!"_ZTSSt10shared_ptrIN8graphlab6fileio11cache_blockEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN8graphlab11fileio_impl22general_fstream_sourceEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN8graphlab11fileio_impl22general_fstream_sourceELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!20 = !{i64 0, i64 8, !9, i64 8, i64 4, !21, i64 12, i64 4, !23}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!14, !10, i64 16}
!25 = !{!14, !10, i64 8}


; 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::fpos" = type { i64, %struct.__mbstate_t }
%struct.__mbstate_t = type { i32, %union.anon.8 }
%union.anon.8 = type { i32 }
%class.anon = type { i8 }

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i64 } @_ZN8graphlab11fileio_impl19cache_stream_source4seekElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.std::fpos", align 8
  %5 = alloca %"class.std::fpos", align 8
  %6 = alloca %"class.std::fpos", align 8
  %7 = alloca %"class.std::fpos", align 8
  %8 = alloca %"class.std::fpos", align 8
  %9 = alloca %class.anon, align 1
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %36, label %11

11:                                               ; preds = %3
  call void @_ZNSt4fposI11__mbstate_tEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  switch i32 %2, label %24 [
    i32 0, label %12
    i32 1, label %13
    i32 2, label %19
  ]

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %24

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !21
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %15)
  %16 = call { i64, i64 } @_ZNKSt4fposI11__mbstate_tEplEl(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %1)
  %17 = extractvalue { i64, i64 } %16, 0
  %18 = extractvalue { i64, i64 } %16, 1
  store i64 %17, ptr %4, align 8, !tbaa !17
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %18, ptr %.sroa.4.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %24

19:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !22
  %22 = add i64 %1, -1
  %23 = add i64 %22, %21
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %23)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %24

24:                                               ; preds = %11, %13, %19, %12
  %25 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %26 = icmp slt i64 %25, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  br i1 %26, label %.critedge, label %27

27:                                               ; preds = %24
  %28 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !22
  call void @_ZNSt4fposI11__mbstate_tEC2El(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %30)
  %31 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %.not8 = icmp slt i64 %28, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br i1 %.not8, label %33, label %32

.critedge:                                        ; preds = %24
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %32

32:                                               ; preds = %27, %.critedge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @"_ZZN8graphlab11fileio_impl19cache_stream_source4seekElSt12_Ios_SeekdirENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  br label %33

33:                                               ; preds = %32, %27
  %34 = call noundef i64 @_ZNKSt4fposI11__mbstate_tEcvlEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %34, ptr %35, align 8, !tbaa !21
  %.fca.0.load.pre = load i64, ptr %4, align 8
  %.fca.1.gep.phi.trans.insert = getelementptr inbounds i8, ptr %4, i64 8
  %.fca.1.load.pre = load i64, ptr %.fca.1.gep.phi.trans.insert, align 8
  br label %42

36:                                               ; preds = %3
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  %38 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8graphlab11fileio_impl22general_fstream_sourceELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  %39 = tail call { i64, i64 } @_ZN8graphlab11fileio_impl22general_fstream_source4seekElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(49) %38, i64 noundef %1, i32 noundef %2)
  %40 = extractvalue { i64, i64 } %39, 0
  %41 = extractvalue { i64, i64 } %39, 1
  br label %42

42:                                               ; preds = %36, %33
  %.fca.1.load = phi i64 [ %41, %36 ], [ %.fca.1.load.pre, %33 ]
  %.fca.0.load = phi i64 [ %40, %36 ], [ %.fca.0.load.pre, %33 ]
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.fca.0.load, 0
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.fca.1.load, 1
  ret { i64, i64 } %.fca.1.insert
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZNKSt4fposI11__mbstate_tEplEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

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

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

declare { i64, i64 } @_ZN8graphlab11fileio_impl22general_fstream_source4seekElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN8graphlab11fileio_impl19cache_stream_sourceE", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !14, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSSt10shared_ptrIN8graphlab6fileio11cache_blockEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN8graphlab6fileio11cache_blockELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!14 = !{!"_ZTSSt10shared_ptrIN8graphlab11fileio_impl22general_fstream_sourceEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN8graphlab11fileio_impl22general_fstream_sourceELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !13, i64 8}
!16 = !{i64 0, i64 8, !17, i64 8, i64 4, !18, i64 12, i64 4, !20}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !8, i64 0}
!20 = !{!8, !8, i64 0}
!21 = !{!6, !10, i64 16}
!22 = !{!6, !10, i64 8}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass