; LLVM IR from turi-code/SFrame :: oss_src/graphlab/util (safe_circular_char_buffer)

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

%class.anon.0 = type { ptr }
%class.anon.1 = type { ptr }
%"class.graphlab::safe_circular_char_buffer" = type <{ ptr, i64, i64, i64, %"class.graphlab::mutex", %"class.graphlab::conditional", i8, i8, [6 x i8] }>
%"class.graphlab::mutex" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.graphlab::conditional" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }

; 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(none)
declare i64 @llvm.expect.i64(i64, i64) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN8graphlab25safe_circular_char_buffer12write_unsafeEPKcl(ptr noundef nonnull align 8 dereferenceable(122) %0, ptr noundef %1, i64 noundef %2) #3 align 2 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.anon.0, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.anon.1, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8
  %18 = load i64, ptr %7, align 8, !tbaa !9
  %19 = call noundef i64 @_ZNK8graphlab25safe_circular_char_buffer4sizeEv(ptr noundef nonnull align 8 dereferenceable(122) %17)
  %20 = add nsw i64 %18, %19
  %21 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp sge i64 %20, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %3
  store i64 0, ptr %4, align 8
  br label %98

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %26 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  %29 = load i64, ptr %28, align 8, !tbaa !16
  %30 = sub nsw i64 %27, %29
  store i64 %30, ptr %9, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %32 = load i64, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  store i64 %32, ptr %8, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  %36 = load i64, ptr %35, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %34, i64 %36
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %8, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %37, ptr align 1 %38, i64 %39, i1 false)
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  %42 = load i64, ptr %41, align 8, !tbaa !16
  %43 = add nsw i64 %42, %40
  store i64 %43, ptr %41, align 8, !tbaa !16
  %44 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  %45 = load i64, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = icmp eq i64 %45, %47
  br i1 %48, label %49, label %51

49:                                               ; preds = %25
  %50 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  store i64 0, ptr %50, align 8, !tbaa !16
  br label %51

51:                                               ; preds = %49, %25
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %55, label %96

55:                                               ; preds = %51
  br label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %57 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  %58 = load i64, ptr %57, align 8, !tbaa !16
  store i64 %58, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !18
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = icmp eq i64 %59, 0
  %61 = xor i1 %60, true
  %62 = zext i1 %61 to i64
  %63 = call i64 @llvm.expect.i64(i64 %62, i64 0)
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %66 = getelementptr inbounds %class.anon.0, ptr %12, i32 0, i32 0
  store ptr %10, ptr %66, align 8, !tbaa !5
  call void @"_ZZN8graphlab25safe_circular_char_buffer12write_unsafeEPKclENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %67

67:                                               ; preds = %65, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %70 = load i64, ptr %7, align 8, !tbaa !9
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = sub nsw i64 %70, %71
  store i64 %72, ptr %13, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %74 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %74, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !18
  %75 = load i64, ptr %14, align 8, !tbaa !9
  %76 = icmp sgt i64 %75, 0
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i64
  %79 = call i64 @llvm.expect.i64(i64 %78, i64 0)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %82 = getelementptr inbounds %class.anon.1, ptr %16, i32 0, i32 0
  store ptr %14, ptr %82, align 8, !tbaa !5
  call void @"_ZZN8graphlab25safe_circular_char_buffer12write_unsafeEPKclENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %83

83:                                               ; preds = %81, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load i64, ptr %8, align 8, !tbaa !9
  %90 = getelementptr inbounds i8, ptr %88, i64 %89
  %91 = load i64, ptr %13, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %87, ptr align 1 %90, i64 %91, i1 false)
  %92 = load i64, ptr %13, align 8, !tbaa !9
  %93 = getelementptr inbounds %"class.graphlab::safe_circular_char_buffer", ptr %17, i32 0, i32 3
  %94 = load i64, ptr %93, align 8, !tbaa !16
  %95 = add nsw i64 %94, %92
  store i64 %95, ptr %93, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %96

96:                                               ; preds = %85, %51
  %97 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %97, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %98

98:                                               ; preds = %96, %24
  %99 = load i64, ptr %4, align 8
  ret i64 %99
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; 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) #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN8graphlab25safe_circular_char_bufferE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 72, !15, i64 120, !15, i64 121}
!13 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!14 = !{!"_ZTSN8graphlab11conditionalE", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !6, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}


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

%class.anon.0 = type { ptr }
%class.anon.1 = type { ptr }

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK8graphlab25safe_circular_char_buffer4sizeEv(ptr noundef nonnull align 8 dereferenceable(122)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN8graphlab25safe_circular_char_buffer12write_unsafeEPKcl(ptr noundef nonnull align 8 dereferenceable(122) %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %class.anon.0, align 8
  %8 = alloca i64, align 8
  %9 = alloca %class.anon.1, align 8
  store i64 %2, ptr %4, align 8, !tbaa !5
  %10 = tail call noundef i64 @_ZNK8graphlab25safe_circular_char_buffer4sizeEv(ptr noundef nonnull align 8 dereferenceable(122) %0)
  %11 = add nsw i64 %10, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %.not = icmp slt i64 %11, %13
  br i1 %.not, label %14, label %41

14:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !15
  %17 = sub nsw i64 %13, %16
  store i64 %17, ptr %5, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %19 = load i64, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %20 = load ptr, ptr %0, align 8, !tbaa !16
  %21 = load i64, ptr %15, align 8, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %20, i64 %21
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %22, ptr align 1 %1, i64 %19, i1 false)
  %23 = load i64, ptr %15, align 8, !tbaa !15
  %24 = add nsw i64 %23, %19
  %25 = load i64, ptr %12, align 8, !tbaa !9
  %26 = icmp eq i64 %24, %25
  %spec.store.select = select i1 %26, i64 0, i64 %24
  store i64 %spec.store.select, ptr %15, align 8
  %27 = load i64, ptr %4, align 8, !tbaa !5
  %28 = icmp slt i64 %19, %27
  br i1 %28, label %29, label %41

29:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i64 %spec.store.select, ptr %6, align 8, !tbaa !5
  %.not12 = icmp eq i64 %spec.store.select, 0
  br i1 %.not12, label %31, label %30, !prof !17

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store ptr %6, ptr %7, align 8, !tbaa !18
  call void @"_ZZN8graphlab25safe_circular_char_buffer12write_unsafeEPKclENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %.pre = load i64, ptr %4, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %30, %29
  %32 = phi i64 [ %.pre, %30 ], [ %27, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %33 = sub nsw i64 %32, %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i64 %33, ptr %8, align 8, !tbaa !5
  %34 = icmp slt i64 %33, 1
  br i1 %34, label %35, label %36, !prof !19

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  store ptr %8, ptr %9, align 8, !tbaa !18
  call void @"_ZZN8graphlab25safe_circular_char_buffer12write_unsafeEPKclENK3$_1clEv"(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %36

36:                                               ; preds = %35, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %37 = load ptr, ptr %0, align 8, !tbaa !16
  %38 = getelementptr inbounds i8, ptr %1, i64 %19
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %37, ptr align 1 %38, i64 %33, i1 false)
  %39 = load i64, ptr %15, align 8, !tbaa !15
  %40 = add nsw i64 %39, %33
  store i64 %40, ptr %15, align 8, !tbaa !15
  %.pre13 = load i64, ptr %4, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %14, %36, %3
  %.0 = phi i64 [ 0, %3 ], [ %.pre13, %36 ], [ %27, %14 ]
  ret i64 %.0
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; 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) #4

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN8graphlab25safe_circular_char_bufferE", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !13, i64 72, !14, i64 120, !14, i64 121}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!13 = !{!"_ZTSN8graphlab11conditionalE", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !6, i64 24}
!16 = !{!10, !11, i64 0}
!17 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!18 = !{!11, !11, i64 0}
!19 = !{!"branch_weights", !"expected", i32 1, i32 2000}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass