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

; 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.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.VariableIOClientStream = type { %class.IOClient, i32, ptr, i32, ptr, i32, i32, i8, i8, i64, i64 }

@stderr = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZN8IOClient13IO_BLOCK_SIZEE = external constant i32, align 4
@.str.13 = external hidden unnamed_addr constant [63 x i8], align 1
@_ZN8IOClient9ReadBytesE = external global i64, align 8

; 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: inlinehint mustprogress uwtable
declare dso_local void @_Z20EnterCriticalSectionPN5boost21recursive_timed_mutexExPKc(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z20LeaveCriticalSectionPN5boost21recursive_timed_mutexE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22VariableIOClientStream10InitializeEPKciib(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %12 = zext i1 %4 to i8
  store i8 %12, ptr %10, align 1, !tbaa !11
  %13 = load ptr, ptr %6, align 8
  %14 = getelementptr inbounds %class.IOClient, ptr %13, i32 0, i32 1
  call void @_Z20EnterCriticalSectionPN5boost21recursive_timed_mutexExPKc(ptr noundef %14, i64 noundef 100, ptr noundef @.str.10)
  %15 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %21

17:                                               ; preds = %5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = call noalias ptr @fopen(ptr noundef %18, ptr noundef @.str.11)
  %20 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 4
  store ptr %19, ptr %20, align 8, !tbaa !15
  br label %25

21:                                               ; preds = %5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call noalias ptr @fopen(ptr noundef %22, ptr noundef @.str.12)
  %24 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 4
  store ptr %23, ptr %24, align 8, !tbaa !15
  br label %25

25:                                               ; preds = %21, %17
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 3
  store i32 %26, ptr %27, align 8, !tbaa !21
  %28 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 9
  store i64 0, ptr %28, align 8, !tbaa !22
  %29 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 10
  store i64 0, ptr %29, align 8, !tbaa !23
  %30 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %31 = trunc i8 %30 to i1
  %32 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 7
  %33 = zext i1 %31 to i8
  store i8 %33, ptr %32, align 8, !tbaa !24
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  store i32 %34, ptr %35, align 8, !tbaa !25
  br label %36

36:                                               ; preds = %41, %25
  %37 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %39 = load i32, ptr @_ZN8IOClient13IO_BLOCK_SIZEE, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %41, label %46

41:                                               ; preds = %36
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !25
  %45 = add nsw i32 %44, %42
  store i32 %45, ptr %43, align 8, !tbaa !25
  br label %36, !llvm.loop !26

46:                                               ; preds = %36
  %47 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !25
  %49 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !21
  %51 = mul nsw i32 %48, %50
  %52 = sext i32 %51 to i64
  %53 = call noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef %52)
  %54 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 2
  store ptr %53, ptr %54, align 8, !tbaa !28
  %55 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  %57 = icmp ne ptr %56, null
  br i1 %57, label %65, label %58

58:                                               ; preds = %46
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !25
  %62 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 3
  %63 = load i32, ptr %62, align 8, !tbaa !21
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.13, i32 noundef %61, i32 noundef %63) #7
  call void @exit(i32 noundef 0) #8
  unreachable

65:                                               ; preds = %46
  %66 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 8
  store i8 0, ptr %66, align 1, !tbaa !29
  %67 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 5
  store i32 0, ptr %67, align 8, !tbaa !30
  %68 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 6
  store i32 0, ptr %68, align 4, !tbaa !31
  %69 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 7
  %70 = load i8, ptr %69, align 8, !tbaa !24, !range !13, !noundef !14
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %99

72:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %73 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !28
  %75 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !25
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !15
  %80 = call i64 @fread(ptr noundef %74, i64 noundef 1, i64 noundef %77, ptr noundef %79)
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = load i64, ptr @_ZN8IOClient9ReadBytesE, align 8, !tbaa !32
  %85 = add nsw i64 %84, %83
  store i64 %85, ptr @_ZN8IOClient9ReadBytesE, align 8, !tbaa !32
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 10
  store i64 %87, ptr %88, align 8, !tbaa !23
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 1
  %91 = load i32, ptr %90, align 8, !tbaa !25
  %92 = icmp slt i32 %89, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %72
  %94 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 8
  store i8 1, ptr %94, align 1, !tbaa !29
  br label %95

95:                                               ; preds = %93, %72
  %96 = getelementptr inbounds %class.VariableIOClientStream, ptr %13, i32 0, i32 6
  %97 = load i32, ptr %96, align 4, !tbaa !31
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %96, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %99

99:                                               ; preds = %95, %65
  %100 = getelementptr inbounds %class.IOClient, ptr %13, i32 0, i32 1
  call void @_Z20LeaveCriticalSectionPN5boost21recursive_timed_mutexE(ptr noundef %100)
  ret void
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

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

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

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 = { 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 #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 = { "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 = { 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 #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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 152}
!16 = !{!"_ZTS22VariableIOClientStream", !17, i64 0, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !10, i64 164, !12, i64 168, !12, i64 169, !20, i64 176, !20, i64 184}
!17 = !{!"_ZTS8IOClient", !18, i64 8, !6, i64 120}
!18 = !{!"_ZTSN5boost21recursive_timed_mutexE", !7, i64 0, !7, i64 40, !12, i64 88, !19, i64 96, !10, i64 104}
!19 = !{!"long", !7, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = !{!16, !10, i64 144}
!22 = !{!16, !20, i64 176}
!23 = !{!16, !20, i64 184}
!24 = !{!16, !12, i64 168}
!25 = !{!16, !10, i64 128}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!16, !6, i64 136}
!29 = !{!16, !12, i64 169}
!30 = !{!16, !10, i64 160}
!31 = !{!16, !10, i64 164}
!32 = !{!20, !20, 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZN8IOClient13IO_BLOCK_SIZEE = external local_unnamed_addr constant i32, align 4
@.str.13 = external hidden unnamed_addr constant [63 x i8], align 1
@_ZN8IOClient9ReadBytesE = external local_unnamed_addr global i64, align 8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z20EnterCriticalSectionPN5boost21recursive_timed_mutexExPKc(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z20LeaveCriticalSectionPN5boost21recursive_timed_mutexE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22VariableIOClientStream10InitializeEPKciib(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #2 align 2 {
  %6 = zext i1 %4 to i8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_Z20EnterCriticalSectionPN5boost21recursive_timed_mutexExPKc(ptr noundef nonnull %7, i64 noundef 100, ptr noundef nonnull @.str.10)
  %.str.11..str.12 = select i1 %4, ptr @.str.11, ptr @.str.12
  %8 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull %.str.11..str.12)
  %9 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %8, ptr %9, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %3, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 176
  %12 = getelementptr inbounds i8, ptr %0, i64 184
  %13 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  store i8 %6, ptr %13, align 8, !tbaa !16
  %14 = load i32, ptr @_ZN8IOClient13IO_BLOCK_SIZEE, align 4, !tbaa !17
  %smax = tail call i32 @llvm.smax.i32(i32 %14, i32 %2)
  %15 = icmp sgt i32 %14, %2
  %umin = zext i1 %15 to i32
  %16 = add i32 %umin, %2
  %17 = sub i32 %smax, %16
  %umax = tail call i32 @llvm.umax.i32(i32 %2, i32 1)
  %18 = udiv i32 %17, %umax
  %19 = add i32 %18, %umin
  %20 = add i32 %19, 1
  %21 = getelementptr inbounds i8, ptr %0, i64 128
  %22 = mul i32 %20, %2
  store i32 %22, ptr %21, align 8, !tbaa !18
  %23 = mul nsw i32 %22, %3
  %24 = sext i32 %23 to i64
  %25 = tail call noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %25, ptr %26, align 8, !tbaa !19
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %27, label %32

27:                                               ; preds = %5
  %28 = load ptr, ptr @stderr, align 8, !tbaa !20
  %29 = load i32, ptr %21, align 8, !tbaa !18
  %30 = load i32, ptr %10, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.13, i32 noundef %29, i32 noundef %30) #7
  tail call void @exit(i32 noundef 0) #8
  unreachable

32:                                               ; preds = %5
  %33 = getelementptr inbounds i8, ptr %0, i64 169
  store i8 0, ptr %33, align 1, !tbaa !21
  %34 = getelementptr inbounds i8, ptr %0, i64 160
  store i32 0, ptr %34, align 8, !tbaa !22
  %35 = getelementptr inbounds i8, ptr %0, i64 164
  store i32 0, ptr %35, align 4, !tbaa !23
  %36 = load i8, ptr %13, align 8, !tbaa !16, !range !24, !noundef !25
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %38, label %53

38:                                               ; preds = %32
  %39 = load i32, ptr %21, align 8, !tbaa !18
  %40 = sext i32 %39 to i64
  %41 = load ptr, ptr %9, align 8, !tbaa !26
  %42 = tail call i64 @fread(ptr noundef nonnull %25, i64 noundef 1, i64 noundef %40, ptr noundef %41)
  %43 = trunc i64 %42 to i32
  %sext = shl i64 %42, 32
  %44 = ashr exact i64 %sext, 32
  %45 = load i64, ptr @_ZN8IOClient9ReadBytesE, align 8, !tbaa !27
  %46 = add nsw i64 %44, %45
  store i64 %46, ptr @_ZN8IOClient9ReadBytesE, align 8, !tbaa !27
  store i64 %44, ptr %12, align 8, !tbaa !28
  %47 = load i32, ptr %21, align 8, !tbaa !18
  %48 = icmp sgt i32 %47, %43
  br i1 %48, label %49, label %50

49:                                               ; preds = %38
  store i8 1, ptr %33, align 1, !tbaa !21
  br label %50

50:                                               ; preds = %49, %38
  %51 = load i32, ptr %35, align 4, !tbaa !23
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %35, align 4, !tbaa !23
  br label %53

53:                                               ; preds = %50, %32
  tail call void @_Z20LeaveCriticalSectionPN5boost21recursive_timed_mutexE(ptr noundef nonnull %7)
  ret void
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #5

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

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 = { 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 #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 = { 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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { cold 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, !13, i64 144}
!6 = !{!"_ZTS22VariableIOClientStream", !7, i64 0, !13, i64 128, !14, i64 136, !13, i64 144, !14, i64 152, !13, i64 160, !13, i64 164, !11, i64 168, !11, i64 169, !15, i64 176, !15, i64 184}
!7 = !{!"_ZTS8IOClient", !8, i64 8, !14, i64 120}
!8 = !{!"_ZTSN5boost21recursive_timed_mutexE", !9, i64 0, !9, i64 40, !11, i64 88, !12, i64 96, !13, i64 104}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"long long", !9, i64 0}
!16 = !{!6, !11, i64 168}
!17 = !{!13, !13, i64 0}
!18 = !{!6, !13, i64 128}
!19 = !{!6, !14, i64 136}
!20 = !{!14, !14, i64 0}
!21 = !{!6, !11, i64 169}
!22 = !{!6, !13, i64 160}
!23 = !{!6, !13, i64 164}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !14, i64 152}
!27 = !{!15, !15, i64 0}
!28 = !{!6, !15, i64 184}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass