; LLVM IR from mkazhdan/DMG :: Util/GridStream.ll (ZN24CompressedFileBackedGrid10_writeNextEv)

; 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.CompressedFileBackedGrid = type <{ %class.StreamingGrid, i32, [4 x i8], i64, i64, ptr, ptr, ptr, i32, i32, i32, i32, i8, [7 x i8] }>
%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 }

@stderr = external global ptr, align 8
@.str.23 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [53 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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z15WriteFileHandleP11_FileHandlePhx(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24CompressedFileBackedGrid10_writeNextEv(ptr noundef nonnull align 8 dereferenceable(193) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 10
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr %8, align 8, !tbaa !9
  %11 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 10
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 11
  %14 = load i32, ptr %13, align 4, !tbaa !18
  %15 = sub nsw i32 %12, %14
  %16 = icmp sge i32 %15, 0
  br i1 %16, label %17, label %93

17:                                               ; preds = %1
  %18 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 10
  %19 = load i32, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 11
  %21 = load i32, ptr %20, align 4, !tbaa !18
  %22 = sub nsw i32 %19, %21
  %23 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 8
  %24 = load i32, ptr %23, align 8, !tbaa !19
  %25 = icmp slt i32 %22, %24
  br i1 %25, label %26, label %93

26:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %27 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 1
  %28 = load i32, ptr %27, align 8, !tbaa !20
  %29 = sext i32 %28 to i64
  store i64 %29, ptr %3, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %30 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 9
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %32 = sext i32 %31 to i64
  store i64 %32, ptr %4, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %33 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 7
  %34 = load ptr, ptr %33, align 8, !tbaa !23
  %35 = call noundef ptr @_Z10GetAddressIhEPT_S1_(ptr noundef %34)
  store ptr %35, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %36 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 6
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %38 = ptrtoint ptr %37 to i64
  %39 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 9
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 10
  %42 = load i32, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 11
  %44 = load i32, ptr %43, align 4, !tbaa !18
  %45 = add nsw i32 %42, %44
  %46 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 11
  %47 = load i32, ptr %46, align 4, !tbaa !18
  %48 = srem i32 %45, %47
  %49 = mul nsw i32 %40, %48
  %50 = sext i32 %49 to i64
  %51 = add nsw i64 %38, %50
  %52 = inttoptr i64 %51 to ptr
  store ptr %52, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load i64, ptr %4, align 8, !tbaa !21
  %56 = call i32 @compress(ptr noundef %53, ptr noundef %3, ptr noundef %54, i64 noundef %55)
  switch i32 %56, label %63 [
    i32 0, label %66
    i32 -4, label %57
    i32 -5, label %60
  ]

57:                                               ; preds = %26
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.23) #7
  call void @exit(i32 noundef 0) #8
  unreachable

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

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

66:                                               ; preds = %26
  %67 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 5
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  %69 = call noundef ptr @_Z10GetPointerImEPT_RS0_(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %70 = call noundef i64 @_Z15WriteFileHandleP11_FileHandlePhx(ptr noundef %68, ptr noundef %69, i64 noundef 8)
  %71 = icmp ne i64 %70, 1
  br i1 %71, label %72, label %75

72:                                               ; preds = %66
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.26) #7
  call void @exit(i32 noundef 0) #8
  unreachable

75:                                               ; preds = %66
  %76 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 7
  %79 = load ptr, ptr %78, align 8, !tbaa !23
  %80 = load i64, ptr %3, align 8, !tbaa !21
  %81 = call noundef i64 @_Z15WriteFileHandleP11_FileHandlePhx(ptr noundef %77, ptr noundef %79, i64 noundef %80)
  %82 = load i64, ptr %3, align 8, !tbaa !21
  %83 = icmp ne i64 %81, %82
  br i1 %83, label %84, label %87

84:                                               ; preds = %75
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.26) #7
  call void @exit(i32 noundef 0) #8
  unreachable

87:                                               ; preds = %75
  %88 = load i64, ptr %3, align 8, !tbaa !21
  %89 = add i64 8, %88
  %90 = getelementptr inbounds %class.CompressedFileBackedGrid, ptr %7, i32 0, i32 4
  %91 = load i64, ptr %90, align 8, !tbaa !26
  %92 = add i64 %91, %89
  store i64 %92, ptr %90, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %93

93:                                               ; preds = %87, %17, %1
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetAddressIhEPT_S1_(ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetPointerImEPT_RS0_(ptr noundef nonnull align 8 dereferenceable(8)) #5

declare i32 @compress(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #6

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 = { 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 = { 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 = { 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 = { "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, !16, i64 184}
!10 = !{!"_ZTS24CompressedFileBackedGrid", !11, i64 0, !16, i64 128, !17, i64 136, !17, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !14, i64 192}
!11 = !{!"_ZTS13StreamingGrid", !12, i64 0}
!12 = !{!"_ZTS8IOClient", !13, i64 8, !6, i64 120}
!13 = !{!"_ZTSN5boost21recursive_timed_mutexE", !7, i64 0, !7, i64 40, !14, i64 88, !15, i64 96, !16, i64 104}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!10, !16, i64 188}
!19 = !{!10, !16, i64 176}
!20 = !{!10, !16, i64 128}
!21 = !{!15, !15, i64 0}
!22 = !{!10, !16, i64 180}
!23 = !{!10, !6, i64 168}
!24 = !{!10, !6, i64 160}
!25 = !{!10, !6, i64 152}
!26 = !{!10, !17, i64 144}


; 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
@.str.23 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [53 x i8], align 1

; 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24CompressedFileBackedGrid10_writeNextEv(ptr nocapture noundef nonnull align 8 dereferenceable(193) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca i64, align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 184
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add nsw i32 %4, 1
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 188
  %7 = load i32, ptr %6, align 4, !tbaa !17
  %8 = sub nsw i32 %5, %7
  %9 = icmp sgt i32 %8, -1
  %10 = getelementptr inbounds i8, ptr %0, i64 176
  %11 = load i32, ptr %10, align 8
  %12 = icmp slt i32 %8, %11
  %or.cond = select i1 %9, i1 %12, i1 false
  br i1 %or.cond, label %13, label %67

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %14 = getelementptr inbounds i8, ptr %0, i64 128
  %15 = load i32, ptr %14, align 8, !tbaa !18
  %16 = sext i32 %15 to i64
  store i64 %16, ptr %2, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 180
  %18 = load i32, ptr %17, align 4, !tbaa !20
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %0, i64 168
  %21 = load ptr, ptr %20, align 8, !tbaa !21
  %22 = tail call noundef ptr @_Z10GetAddressIhEPT_S1_(ptr noundef %21)
  %23 = getelementptr inbounds i8, ptr %0, i64 160
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %25 = ptrtoint ptr %24 to i64
  %26 = load i32, ptr %17, align 4, !tbaa !20
  %27 = load i32, ptr %3, align 8, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !17
  %29 = add nsw i32 %28, %27
  %30 = srem i32 %29, %28
  %31 = mul nsw i32 %30, %26
  %32 = sext i32 %31 to i64
  %33 = add nsw i64 %32, %25
  %34 = inttoptr i64 %33 to ptr
  %35 = call i32 @compress(ptr noundef %22, ptr noundef nonnull %2, ptr noundef %34, i64 noundef %19)
  switch i32 %35, label %42 [
    i32 0, label %45
    i32 -4, label %36
    i32 -5, label %39
  ]

36:                                               ; preds = %13
  %37 = load ptr, ptr @stderr, align 8, !tbaa !23
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.23) #8
  call void @exit(i32 noundef 0) #9
  unreachable

39:                                               ; preds = %13
  %40 = load ptr, ptr @stderr, align 8, !tbaa !23
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.24) #8
  call void @exit(i32 noundef 0) #9
  unreachable

42:                                               ; preds = %13
  %43 = load ptr, ptr @stderr, align 8, !tbaa !23
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.25) #8
  call void @exit(i32 noundef 0) #9
  unreachable

45:                                               ; preds = %13
  %46 = getelementptr inbounds i8, ptr %0, i64 152
  %47 = load ptr, ptr %46, align 8, !tbaa !24
  %48 = call noundef ptr @_Z10GetPointerImEPT_RS0_(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %49 = call noundef i64 @_Z15WriteFileHandleP11_FileHandlePhx(ptr noundef %47, ptr noundef %48, i64 noundef 8)
  %.not = icmp eq i64 %49, 1
  br i1 %.not, label %53, label %50

50:                                               ; preds = %45
  %51 = load ptr, ptr @stderr, align 8, !tbaa !23
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.26) #8
  call void @exit(i32 noundef 0) #9
  unreachable

53:                                               ; preds = %45
  %54 = load ptr, ptr %46, align 8, !tbaa !24
  %55 = load ptr, ptr %20, align 8, !tbaa !21
  %56 = load i64, ptr %2, align 8, !tbaa !19
  %57 = call noundef i64 @_Z15WriteFileHandleP11_FileHandlePhx(ptr noundef %54, ptr noundef %55, i64 noundef %56)
  %58 = load i64, ptr %2, align 8, !tbaa !19
  %.not4 = icmp eq i64 %57, %58
  br i1 %.not4, label %62, label %59

59:                                               ; preds = %53
  %60 = load ptr, ptr @stderr, align 8, !tbaa !23
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.26) #8
  call void @exit(i32 noundef 0) #9
  unreachable

62:                                               ; preds = %53
  %63 = add i64 %57, 8
  %64 = getelementptr inbounds i8, ptr %0, i64 144
  %65 = load i64, ptr %64, align 8, !tbaa !25
  %66 = add i64 %63, %65
  store i64 %66, ptr %64, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %67

67:                                               ; preds = %62, %1
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetAddressIhEPT_S1_(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetPointerImEPT_RS0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare i32 @compress(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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 = { 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 = { "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 = { cold nounwind }
attributes #9 = { 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, !14, i64 184}
!6 = !{!"_ZTS24CompressedFileBackedGrid", !7, i64 0, !14, i64 128, !16, i64 136, !16, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !14, i64 176, !14, i64 180, !14, i64 184, !14, i64 188, !12, i64 192}
!7 = !{!"_ZTS13StreamingGrid", !8, i64 0}
!8 = !{!"_ZTS8IOClient", !9, i64 8, !15, i64 120}
!9 = !{!"_ZTSN5boost21recursive_timed_mutexE", !10, i64 0, !10, i64 40, !12, i64 88, !13, i64 96, !14, i64 104}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"bool", !10, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"long long", !10, i64 0}
!17 = !{!6, !14, i64 188}
!18 = !{!6, !14, i64 128}
!19 = !{!13, !13, i64 0}
!20 = !{!6, !14, i64 180}
!21 = !{!6, !15, i64 168}
!22 = !{!6, !15, i64 160}
!23 = !{!15, !15, i64 0}
!24 = !{!6, !15, i64 152}
!25 = !{!6, !16, i64 144}


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