; LLVM IR from mkazhdan/DMG :: Util/MultiStreamIO.ll (ZN19MultiStreamIOClientC2EiiiPKcb)

; 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.MultiStreamIOClient = type { %class.StreamingGrid, ptr, %class.FixedIOClientStream }
%class.StreamingGrid = type { %class.IOClient }
%class.IOClient = type { ptr, %"class.boost::recursive_timed_mutex", ptr }
%"class.boost::recursive_timed_mutex" = type <{ %union.pthread_mutex_t, %union.pthread_cond_t, i8, [7 x i8], i64, i32, [4 x i8] }>
%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 }
%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 }
%class.FixedIOClientStream = type { %class.IOClient, i32, ptr, ptr, i32, i32, i32, i32, ptr, i8, i32, i32, i32 }

@stderr = external global ptr, align 8
@_ZN8IOClient16BYTES_PER_SECTORE = external constant i32, align 4
@_ZTV19MultiStreamIOClient = external dso_local unnamed_addr constant { [12 x ptr] }, align 8
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [37 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13StreamingGridC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z18SetEndOfFileHandleP11_FileHandle(ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19MultiStreamIOClientC2EiiiPKcb(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i1 noundef zeroext %5) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %16 = zext i1 %5 to i8
  store i8 %16, ptr %12, align 1, !tbaa !11
  %17 = load ptr, ptr %7, align 8
  call void @_ZN13StreamingGridC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17)
  store ptr getelementptr inbounds inrange(-16, 80) ({ [12 x ptr] }, ptr @_ZTV19MultiStreamIOClient, i32 0, i32 0, i32 2), ptr %17, align 8, !tbaa !13
  %18 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 2
  invoke void @_ZN19FixedIOClientStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(192) %18)
          to label %19 unwind label %32

19:                                               ; preds = %6
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  %21 = load i8, ptr %12, align 1, !tbaa !11, !range !15, !noundef !16
  %22 = trunc i8 %21 to i1
  %23 = invoke noundef ptr @_Z16CreateFileHandlePKcS0_b(ptr noundef null, ptr noundef %20, i1 noundef zeroext %22)
          to label %24 unwind label %36

24:                                               ; preds = %19
  %25 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 1
  store ptr %23, ptr %25, align 8, !tbaa !17
  %26 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = icmp ne ptr %27, null
  br i1 %28, label %40, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.26) #7
  call void @exit(i32 noundef 0) #8
  unreachable

32:                                               ; preds = %6
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %13, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %14, align 4
  br label %87

36:                                               ; preds = %19
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %13, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %14, align 4
  br label %86

40:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = mul nsw i64 %42, %44
  store i64 %45, ptr %15, align 8, !tbaa !24
  %46 = load i64, ptr %15, align 8, !tbaa !24
  %47 = load i32, ptr @_ZN8IOClient16BYTES_PER_SECTORE, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = add nsw i64 %46, %48
  %50 = sub nsw i64 %49, 1
  %51 = load i32, ptr @_ZN8IOClient16BYTES_PER_SECTORE, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = sdiv i64 %50, %52
  %54 = load i32, ptr @_ZN8IOClient16BYTES_PER_SECTORE, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = mul nsw i64 %53, %55
  store i64 %56, ptr %15, align 8, !tbaa !24
  %57 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load i64, ptr %15, align 8, !tbaa !24
  %60 = invoke noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef %58, i64 noundef %59)
          to label %61 unwind label %65

61:                                               ; preds = %40
  br i1 %60, label %69, label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.27) #7
  call void @exit(i32 noundef 0) #8
  unreachable

65:                                               ; preds = %77, %69, %40
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %13, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %86

69:                                               ; preds = %61
  %70 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = invoke noundef zeroext i1 @_Z18SetEndOfFileHandleP11_FileHandle(ptr noundef %71)
          to label %73 unwind label %65

73:                                               ; preds = %69
  br i1 %72, label %77, label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.28) #7
  br label %77

77:                                               ; preds = %74, %73
  %78 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 2
  %79 = getelementptr inbounds %class.MultiStreamIOClient, ptr %17, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN19FixedIOClientStream4InitEP11_FileHandleiii(ptr noundef nonnull align 8 dereferenceable(192) %78, ptr noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef %83)
          to label %84 unwind label %65

84:                                               ; preds = %77
  %85 = getelementptr inbounds %class.IOClient, ptr %17, i32 0, i32 2
  store ptr null, ptr %85, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  ret void

86:                                               ; preds = %65, %36
  call void @_ZN19FixedIOClientStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %18) #7
  br label %87

87:                                               ; preds = %86, %32
  call void @_ZN13StreamingGridD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17) #7
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %13, align 8
  %90 = load i32, ptr %14, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z16CreateFileHandlePKcS0_b(ptr noundef, ptr noundef, i1 noundef zeroext) #4

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

declare void @_ZN19FixedIOClientStreamC1Ev(ptr)

declare void @_ZN19FixedIOClientStreamD1Ev(ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 128}
!18 = !{!"_ZTS19MultiStreamIOClient", !19, i64 0, !6, i64 128, !23, i64 136}
!19 = !{!"_ZTS13StreamingGrid", !20, i64 0}
!20 = !{!"_ZTS8IOClient", !21, i64 8, !6, i64 120}
!21 = !{!"_ZTSN5boost21recursive_timed_mutexE", !7, i64 0, !7, i64 40, !12, i64 88, !22, i64 96, !10, i64 104}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTS19FixedIOClientStream", !20, i64 0, !10, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !6, i64 168, !12, i64 176, !10, i64 180, !10, i64 184, !10, i64 188}
!24 = !{!25, !25, i64 0}
!25 = !{!"long long", !7, i64 0}
!26 = !{!20, !6, i64 120}


; 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"

@stderr = external local_unnamed_addr global ptr, align 8
@_ZN8IOClient16BYTES_PER_SECTORE = external local_unnamed_addr constant i32, align 4
@_ZTV19MultiStreamIOClient = external dso_local unnamed_addr constant { [12 x ptr] }, align 8
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [37 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13StreamingGridC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z18SetEndOfFileHandleP11_FileHandle(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19MultiStreamIOClientC2EiiiPKcb(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i1 noundef zeroext %5) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN13StreamingGridC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr getelementptr inbounds inrange(-16, 80) (i8, ptr @_ZTV19MultiStreamIOClient, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  invoke void @_ZN19FixedIOClientStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(192) %7)
          to label %8 unwind label %15

8:                                                ; preds = %6
  %9 = invoke noundef ptr @_Z16CreateFileHandlePKcS0_b(ptr noundef null, ptr noundef %4, i1 noundef zeroext %5)
          to label %10 unwind label %17

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %9, ptr %11, align 8, !tbaa !8
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %12, label %19

12:                                               ; preds = %10
  %13 = load ptr, ptr @stderr, align 8, !tbaa !19
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.26) #6
  tail call void @exit(i32 noundef 0) #7
  unreachable

15:                                               ; preds = %6
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %47

17:                                               ; preds = %8
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %46

19:                                               ; preds = %10
  %20 = sext i32 %2 to i64
  %21 = sext i32 %1 to i64
  %22 = mul nsw i64 %20, %21
  %23 = load i32, ptr @_ZN8IOClient16BYTES_PER_SECTORE, align 4, !tbaa !20
  %24 = sext i32 %23 to i64
  %25 = add nsw i64 %22, %24
  %.fr14 = freeze i64 %25
  %26 = add i64 %.fr14, -1
  %27 = srem i64 %26, %24
  %28 = sub nsw i64 %26, %27
  %29 = invoke noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef nonnull %9, i64 noundef %28)
          to label %30 unwind label %34

30:                                               ; preds = %19
  br i1 %29, label %36, label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr @stderr, align 8, !tbaa !19
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.27) #6
  tail call void @exit(i32 noundef 0) #7
  unreachable

34:                                               ; preds = %42, %19
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %46

36:                                               ; preds = %30
  %37 = load ptr, ptr %11, align 8, !tbaa !8
  %38 = tail call noundef zeroext i1 @_Z18SetEndOfFileHandleP11_FileHandle(ptr noundef %37)
  br i1 %38, label %42, label %39

39:                                               ; preds = %36
  %40 = load ptr, ptr @stderr, align 8, !tbaa !19
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.28) #6
  br label %42

42:                                               ; preds = %39, %36
  %43 = load ptr, ptr %11, align 8, !tbaa !8
  invoke void @_ZN19FixedIOClientStream4InitEP11_FileHandleiii(ptr noundef nonnull align 8 dereferenceable(192) %7, ptr noundef %43, i32 noundef %1, i32 noundef %2, i32 noundef %3)
          to label %44 unwind label %34

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr null, ptr %45, align 8, !tbaa !21
  ret void

46:                                               ; preds = %34, %17
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %18, %17 ]
  tail call void @_ZN19FixedIOClientStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %7) #8
  br label %47

47:                                               ; preds = %46, %15
  %.pn.pn = phi { ptr, i32 } [ %.pn, %46 ], [ %16, %15 ]
  tail call void @_ZN13StreamingGridD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) #8
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z16CreateFileHandlePKcS0_b(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

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

declare void @_ZN19FixedIOClientStreamC1Ev(ptr) local_unnamed_addr

declare void @_ZN19FixedIOClientStreamD1Ev(ptr) local_unnamed_addr

attributes #0 = { nofree nounwind "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 = { noreturn nounwind "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 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 = { 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 #6 = { cold nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !17, i64 128}
!9 = !{!"_ZTS19MultiStreamIOClient", !10, i64 0, !17, i64 128, !18, i64 136}
!10 = !{!"_ZTS13StreamingGrid", !11, i64 0}
!11 = !{!"_ZTS8IOClient", !12, i64 8, !17, i64 120}
!12 = !{!"_ZTSN5boost21recursive_timed_mutexE", !13, i64 0, !13, i64 40, !14, i64 88, !15, i64 96, !16, i64 104}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"bool", !13, i64 0}
!15 = !{!"long", !13, i64 0}
!16 = !{!"int", !13, i64 0}
!17 = !{!"any pointer", !13, i64 0}
!18 = !{!"_ZTS19FixedIOClientStream", !11, i64 0, !16, i64 128, !17, i64 136, !17, i64 144, !16, i64 152, !16, i64 156, !16, i64 160, !16, i64 164, !17, i64 168, !14, i64 176, !16, i64 180, !16, i64 184, !16, i64 188}
!19 = !{!17, !17, i64 0}
!20 = !{!16, !16, i64 0}
!21 = !{!11, !17, i64 120}


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