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

; 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.VariableIOClientStream = type { %class.IOClient, i32, ptr, i32, ptr, i32, i32, i8, i8, i64, i64 }
%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.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZN8IOClient10WriteBytesE = 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: mustprogress uwtable
define dso_local noundef i32 @_ZN22VariableIOClientStream5closeEv(ptr noundef nonnull align 8 dereferenceable(192) %0) #1 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 4
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = icmp ne ptr %9, null
  br i1 %10, label %14, label %11

11:                                               ; preds = %1
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.8) #5
  store i32 0, ptr %2, align 4
  br label %104

14:                                               ; preds = %1
  %15 = getelementptr inbounds %class.IOClient, ptr %7, i32 0, i32 1
  call void @_Z20EnterCriticalSectionPN5boost21recursive_timed_mutexExPKc(ptr noundef %15, i64 noundef 100, ptr noundef @.str.9)
  %16 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 8
  store i8 1, ptr %16, align 1, !tbaa !17
  %17 = getelementptr inbounds %class.IOClient, ptr %7, i32 0, i32 1
  call void @_Z20LeaveCriticalSectionPN5boost21recursive_timed_mutexE(ptr noundef %17)
  br label %18

18:                                               ; preds = %22, %14
  %19 = getelementptr inbounds %class.IOClient, ptr %7, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !18
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %18
  call void @_Z15SleepThisThreadi(i32 noundef 1)
  br label %18, !llvm.loop !19

23:                                               ; preds = %18
  %24 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 7
  %25 = load i8, ptr %24, align 8, !tbaa !21, !range !22, !noundef !23
  %26 = trunc i8 %25 to i1
  br i1 %26, label %98, label %27

27:                                               ; preds = %23
  br label %28

28:                                               ; preds = %34, %27
  %29 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 6
  %30 = load i32, ptr %29, align 4, !tbaa !24
  %31 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 5
  %32 = load i32, ptr %31, align 8, !tbaa !25
  %33 = icmp slt i32 %30, %32
  br i1 %33, label %34, label %63

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %35 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  %37 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 6
  %38 = load i32, ptr %37, align 4, !tbaa !24
  %39 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 3
  %40 = load i32, ptr %39, align 8, !tbaa !27
  %41 = srem i32 %38, %40
  %42 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !28
  %44 = mul nsw i32 %41, %43
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %36, i64 %45
  %47 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !28
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = call i64 @fwrite(ptr noundef %46, i64 noundef 1, i64 noundef %49, ptr noundef %51)
  store i64 %52, ptr %4, align 8, !tbaa !29
  %53 = load i64, ptr %4, align 8, !tbaa !29
  %54 = load i64, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %55 = add i64 %54, %53
  store i64 %55, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %56 = load i64, ptr %4, align 8, !tbaa !29
  %57 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 10
  %58 = load i64, ptr %57, align 8, !tbaa !31
  %59 = add i64 %58, %56
  store i64 %59, ptr %57, align 8, !tbaa !31
  %60 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 6
  %61 = load i32, ptr %60, align 4, !tbaa !24
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %28, !llvm.loop !32

63:                                               ; preds = %28
  %64 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 10
  %65 = load i64, ptr %64, align 8, !tbaa !31
  %66 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 9
  %67 = load i64, ptr %66, align 8, !tbaa !33
  %68 = icmp slt i64 %65, %67
  br i1 %68, label %69, label %97

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %70 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  %72 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 5
  %73 = load i32, ptr %72, align 8, !tbaa !25
  %74 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 3
  %75 = load i32, ptr %74, align 8, !tbaa !27
  %76 = srem i32 %73, %75
  %77 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !28
  %79 = mul nsw i32 %76, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i8, ptr %71, i64 %80
  %82 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 9
  %83 = load i64, ptr %82, align 8, !tbaa !33
  %84 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 10
  %85 = load i64, ptr %84, align 8, !tbaa !31
  %86 = sub nsw i64 %83, %85
  %87 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = call i64 @fwrite(ptr noundef %81, i64 noundef 1, i64 noundef %86, ptr noundef %88)
  store i64 %89, ptr %5, align 8, !tbaa !29
  %90 = load i64, ptr %5, align 8, !tbaa !29
  %91 = load i64, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %92 = add i64 %91, %90
  store i64 %92, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %93 = load i64, ptr %5, align 8, !tbaa !29
  %94 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 10
  %95 = load i64, ptr %94, align 8, !tbaa !31
  %96 = add i64 %95, %93
  store i64 %96, ptr %94, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %97

97:                                               ; preds = %69, %63
  br label %98

98:                                               ; preds = %97, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %99 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = call i32 @fclose(ptr noundef %100)
  store i32 %101, ptr %6, align 4, !tbaa !34
  %102 = getelementptr inbounds %class.VariableIOClientStream, ptr %7, i32 0, i32 4
  store ptr null, ptr %102, align 8, !tbaa !9
  %103 = load i32, ptr %6, align 4, !tbaa !34
  store i32 %103, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %104

104:                                              ; preds = %98, %11
  %105 = load i32, ptr %2, align 4
  ret i32 %105
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15SleepThisThreadi(i32 noundef) #3

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

declare i32 @fclose(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { "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 = { 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, !6, i64 152}
!10 = !{!"_ZTS22VariableIOClientStream", !11, i64 0, !15, i64 128, !6, i64 136, !15, i64 144, !6, i64 152, !15, i64 160, !15, i64 164, !13, i64 168, !13, i64 169, !16, i64 176, !16, i64 184}
!11 = !{!"_ZTS8IOClient", !12, i64 8, !6, i64 120}
!12 = !{!"_ZTSN5boost21recursive_timed_mutexE", !7, i64 0, !7, i64 40, !13, i64 88, !14, i64 96, !15, i64 104}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!10, !13, i64 169}
!18 = !{!11, !6, i64 120}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !13, i64 168}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!10, !15, i64 164}
!25 = !{!10, !15, i64 160}
!26 = !{!10, !6, i64 136}
!27 = !{!10, !15, i64 144}
!28 = !{!10, !15, i64 128}
!29 = !{!14, !14, i64 0}
!30 = !{!16, !16, i64 0}
!31 = !{!10, !16, i64 184}
!32 = distinct !{!32, !20}
!33 = !{!10, !16, i64 176}
!34 = !{!15, !15, 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.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZN8IOClient10WriteBytesE = external local_unnamed_addr global i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN22VariableIOClientStream5closeEv(ptr noundef nonnull align 8 dereferenceable(192) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 152
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %7

4:                                                ; preds = %1
  %5 = load ptr, ptr @stderr, align 8, !tbaa !16
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.8) #3
  br label %71

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_Z20EnterCriticalSectionPN5boost21recursive_timed_mutexExPKc(ptr noundef nonnull %8, i64 noundef 100, ptr noundef nonnull @.str.9)
  %9 = getelementptr inbounds i8, ptr %0, i64 169
  store i8 1, ptr %9, align 1, !tbaa !17
  tail call void @_Z20LeaveCriticalSectionPN5boost21recursive_timed_mutexE(ptr noundef nonnull %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = load ptr, ptr %10, align 8, !tbaa !18
  %.not1011 = icmp eq ptr %11, null
  br i1 %.not1011, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7, %.lr.ph
  tail call void @_Z15SleepThisThreadi(i32 noundef 1)
  %12 = load ptr, ptr %10, align 8, !tbaa !18
  %.not10 = icmp eq ptr %12, null
  br i1 %.not10, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %7
  %13 = getelementptr inbounds i8, ptr %0, i64 168
  %14 = load i8, ptr %13, align 8, !tbaa !21, !range !22, !noundef !23
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %68, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %16 = getelementptr inbounds i8, ptr %0, i64 164
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  %18 = load i32, ptr %16, align 4, !tbaa !24
  %19 = load i32, ptr %17, align 8, !tbaa !25
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %.lr.ph12, label %.preheader.._crit_edge13_crit_edge

.preheader.._crit_edge13_crit_edge:               ; preds = %.preheader
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 184
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !26
  br label %._crit_edge13

.lr.ph12:                                         ; preds = %.preheader
  %21 = getelementptr inbounds i8, ptr %0, i64 136
  %22 = getelementptr inbounds i8, ptr %0, i64 144
  %23 = getelementptr inbounds i8, ptr %0, i64 128
  %24 = getelementptr inbounds i8, ptr %0, i64 184
  br label %25

25:                                               ; preds = %.lr.ph12, %25
  %26 = phi i32 [ %18, %.lr.ph12 ], [ %42, %25 ]
  %27 = load ptr, ptr %21, align 8, !tbaa !27
  %28 = load i32, ptr %22, align 8, !tbaa !28
  %29 = srem i32 %26, %28
  %30 = load i32, ptr %23, align 8, !tbaa !29
  %31 = mul nsw i32 %30, %29
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i8, ptr %27, i64 %32
  %34 = sext i32 %30 to i64
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = tail call i64 @fwrite(ptr noundef %33, i64 noundef 1, i64 noundef %34, ptr noundef %35)
  %37 = load i64, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %38 = add i64 %37, %36
  store i64 %38, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %39 = load i64, ptr %24, align 8, !tbaa !26
  %40 = add i64 %39, %36
  store i64 %40, ptr %24, align 8, !tbaa !26
  %41 = load i32, ptr %16, align 4, !tbaa !24
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %16, align 4, !tbaa !24
  %43 = load i32, ptr %17, align 8, !tbaa !25
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %25, label %._crit_edge13, !llvm.loop !31

._crit_edge13:                                    ; preds = %25, %.preheader.._crit_edge13_crit_edge
  %45 = phi i64 [ %.pre, %.preheader.._crit_edge13_crit_edge ], [ %40, %25 ]
  %.lcssa = phi i32 [ %19, %.preheader.._crit_edge13_crit_edge ], [ %43, %25 ]
  %46 = getelementptr inbounds i8, ptr %0, i64 176
  %47 = load i64, ptr %46, align 8, !tbaa !32
  %48 = icmp slt i64 %45, %47
  br i1 %48, label %49, label %68

49:                                               ; preds = %._crit_edge13
  %50 = getelementptr inbounds i8, ptr %0, i64 184
  %51 = getelementptr inbounds i8, ptr %0, i64 136
  %52 = load ptr, ptr %51, align 8, !tbaa !27
  %53 = getelementptr inbounds i8, ptr %0, i64 144
  %54 = load i32, ptr %53, align 8, !tbaa !28
  %55 = srem i32 %.lcssa, %54
  %56 = getelementptr inbounds i8, ptr %0, i64 128
  %57 = load i32, ptr %56, align 8, !tbaa !29
  %58 = mul nsw i32 %57, %55
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %52, i64 %59
  %61 = sub nsw i64 %47, %45
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = tail call i64 @fwrite(ptr noundef %60, i64 noundef 1, i64 noundef %61, ptr noundef %62)
  %64 = load i64, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %65 = add i64 %64, %63
  store i64 %65, ptr @_ZN8IOClient10WriteBytesE, align 8, !tbaa !30
  %66 = load i64, ptr %50, align 8, !tbaa !26
  %67 = add i64 %66, %63
  store i64 %67, ptr %50, align 8, !tbaa !26
  br label %68

68:                                               ; preds = %._crit_edge13, %49, %._crit_edge
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = tail call i32 @fclose(ptr noundef %69)
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %68, %4
  %.0 = phi i32 [ %70, %68 ], [ 0, %4 ]
  ret i32 %.0
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15SleepThisThreadi(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { 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 = { cold 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 152}
!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 = !{!14, !14, i64 0}
!17 = !{!6, !11, i64 169}
!18 = !{!7, !14, i64 120}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !11, i64 168}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !13, i64 164}
!25 = !{!6, !13, i64 160}
!26 = !{!6, !15, i64 184}
!27 = !{!6, !14, i64 136}
!28 = !{!6, !13, i64 144}
!29 = !{!6, !13, i64 128}
!30 = !{!15, !15, i64 0}
!31 = distinct !{!31, !20}
!32 = !{!6, !15, i64 176}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass