; LLVM IR from mitdbg/deneva :: system/manager.ll (ZN7Manager6get_tsEm)

; 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.Stats = type { ptr, ptr, i64, i64, i64, i64 }
%class.Manager = type { %union.pthread_mutex_t, i64, [31 x %union.pthread_mutex_t], ptr, ptr, i64, i64 }
%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.Stats_thd = type { [64 x i8], ptr, ptr, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, double, i64, double, i64, i64, double, double, double, double, double, double, double, double, i64, double, double, double, double, double, double, double, double, i64, i64, double, i64, double, i64, double, double, double, i64, i64, i64, double, double, double, double, double, double, double, double, double, i64, ptr, ptr, double, i64, i64, double, double, double, i64, i64, i64, i64, i64, i64, i64, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, double, double, double, double, i64, i64, double, double, i64, i64, i64, double, double, i64, i64, double, double, double, double, i64, i64, double, double, double, i64, i64, double, double, double, double, double, i64, double, double, double, double, double, double, double, double, i64, i64, i64, double, i64, double, double, i64, i64, i64, i64, i64, double, i64, i64, double, i64, double, double, i64, i64, i64, i64, i64, double, double, double, %class.StatsArr, %class.StatsArr, %class.StatsArr, %class.StatsArr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, [64 x i8] }
%class.StatsArr = type { ptr, i64, i64, i32, %union.pthread_mutex_t }

@g_thread_cnt = external global i32, align 4
@g_node_cnt = external global i32, align 4
@g_ts_batch_alloc = external global i8, align 1
@g_ts_alloc = external global i32, align 4
@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@__PRETTY_FUNCTION__._ZN7Manager6get_tsEm = external hidden unnamed_addr constant [35 x i8], align 1
@g_ts_batch_num = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@g_node_id = external global i32, align 4
@simulation = external global ptr, align 8
@stats = external global %class.Stats, 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 i64 @_ZN7Manager6get_tsEm(ptr noundef nonnull align 8 dereferenceable(1320) %0, i64 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %7 = load ptr, ptr %3, align 8
  %8 = load i8, ptr @g_ts_batch_alloc, align 1, !tbaa !11, !range !13, !noundef !14
  %9 = trunc i8 %8 to i1
  br i1 %9, label %10, label %17

10:                                               ; preds = %2
  %11 = load i32, ptr @g_ts_alloc, align 4, !tbaa !15
  %12 = icmp eq i32 %11, 2
  br i1 %12, label %13, label %14

13:                                               ; preds = %10
  br label %16

14:                                               ; preds = %10
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 43, ptr noundef @__PRETTY_FUNCTION__._ZN7Manager6get_tsEm) #5
  unreachable

15:                                               ; No predecessors!
  br label %16

16:                                               ; preds = %15, %13
  br label %17

17:                                               ; preds = %16, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %18 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %18, ptr %6, align 8, !tbaa !9
  %19 = load i32, ptr @g_ts_alloc, align 4, !tbaa !15
  switch i32 %19, label %55 [
    i32 1, label %20
    i32 2, label %28
    i32 3, label %40
    i32 4, label %41
  ]

20:                                               ; preds = %17
  %21 = getelementptr inbounds %class.Manager, ptr %7, i32 0, i32 0
  %22 = call i32 @pthread_mutex_lock(ptr noundef %21) #6
  %23 = getelementptr inbounds %class.Manager, ptr %7, i32 0, i32 1
  %24 = load i64, ptr %23, align 8, !tbaa !17
  %25 = add i64 %24, 1
  store i64 %25, ptr %23, align 8, !tbaa !17
  store i64 %25, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds %class.Manager, ptr %7, i32 0, i32 0
  %27 = call i32 @pthread_mutex_unlock(ptr noundef %26) #6
  br label %56

28:                                               ; preds = %17
  %29 = load i8, ptr @g_ts_batch_alloc, align 1, !tbaa !11, !range !13, !noundef !14
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %36

31:                                               ; preds = %28
  %32 = getelementptr inbounds %class.Manager, ptr %7, i32 0, i32 1
  %33 = load i32, ptr @g_ts_batch_num, align 4, !tbaa !15
  %34 = zext i32 %33 to i64
  %35 = atomicrmw add ptr %32, i64 %34 seq_cst, align 8
  store i64 %35, ptr %5, align 8, !tbaa !9
  br label %39

36:                                               ; preds = %28
  %37 = getelementptr inbounds %class.Manager, ptr %7, i32 0, i32 1
  %38 = atomicrmw add ptr %37, i64 1 seq_cst, align 8
  store i64 %38, ptr %5, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %36, %31
  br label %56

40:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 59, ptr noundef @__PRETTY_FUNCTION__._ZN7Manager6get_tsEm) #5
  unreachable

41:                                               ; preds = %17
  %42 = call noundef i64 @_Z14get_wall_clockv()
  %43 = load i32, ptr @g_node_cnt, align 4, !tbaa !15
  %44 = load i32, ptr @g_thread_cnt, align 4, !tbaa !15
  %45 = add i32 %43, %44
  %46 = zext i32 %45 to i64
  %47 = mul i64 %42, %46
  %48 = load i32, ptr @g_node_id, align 4, !tbaa !15
  %49 = load i32, ptr @g_thread_cnt, align 4, !tbaa !15
  %50 = mul i32 %48, %49
  %51 = zext i32 %50 to i64
  %52 = load i64, ptr %4, align 8, !tbaa !9
  %53 = add i64 %51, %52
  %54 = add i64 %47, %53
  store i64 %54, ptr %5, align 8, !tbaa !9
  br label %56

55:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 65, ptr noundef @__PRETTY_FUNCTION__._ZN7Manager6get_tsEm) #5
  unreachable

56:                                               ; preds = %41, %39, %20
  %57 = load ptr, ptr @simulation, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %57)
  br i1 %58, label %59, label %71

59:                                               ; preds = %56
  %60 = call noundef i64 @_Z13get_sys_clockv()
  %61 = load i64, ptr %6, align 8, !tbaa !9
  %62 = sub i64 %60, %61
  %63 = uitofp i64 %62 to double
  %64 = load ptr, ptr @stats, align 8, !tbaa !19
  %65 = load i64, ptr %4, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %64, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Stats_thd, ptr %67, i32 0, i32 33
  %69 = load double, ptr %68, align 8, !tbaa !21
  %70 = fadd double %69, %63
  store double %70, ptr %68, align 8, !tbaa !21
  br label %71

71:                                               ; preds = %59, %56
  %72 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret i64 %72
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

declare noundef i64 @_Z13get_sys_clockv() #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #4

declare noundef i64 @_Z14get_wall_clockv() #3

declare noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96)) #3

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 = { 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 = { "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 = { 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 = { noreturn nounwind }
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 = !{!"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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !10, i64 40}
!18 = !{!"_ZTS7Manager", !7, i64 0, !10, i64 40, !7, i64 48, !6, i64 1288, !6, i64 1296, !10, i64 1304, !10, i64 1312}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS5Stats", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!21 = !{!22, !23, i64 320}
!22 = !{!"_ZTS9Stats_thd", !7, i64 0, !6, i64 64, !6, i64 72, !23, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !23, i64 184, !10, i64 192, !23, i64 200, !10, i64 208, !23, i64 216, !10, i64 224, !10, i64 232, !23, i64 240, !23, i64 248, !23, i64 256, !23, i64 264, !23, i64 272, !23, i64 280, !23, i64 288, !23, i64 296, !10, i64 304, !23, i64 312, !23, i64 320, !23, i64 328, !23, i64 336, !23, i64 344, !23, i64 352, !23, i64 360, !23, i64 368, !10, i64 376, !10, i64 384, !23, i64 392, !10, i64 400, !23, i64 408, !10, i64 416, !23, i64 424, !23, i64 432, !23, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !23, i64 472, !23, i64 480, !23, i64 488, !23, i64 496, !23, i64 504, !23, i64 512, !23, i64 520, !23, i64 528, !23, i64 536, !10, i64 544, !6, i64 552, !6, i64 560, !23, i64 568, !10, i64 576, !10, i64 584, !23, i64 592, !23, i64 600, !23, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !23, i64 672, !23, i64 680, !23, i64 688, !10, i64 696, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !10, i64 760, !23, i64 768, !23, i64 776, !23, i64 784, !23, i64 792, !23, i64 800, !10, i64 808, !10, i64 816, !23, i64 824, !23, i64 832, !10, i64 840, !10, i64 848, !10, i64 856, !23, i64 864, !23, i64 872, !10, i64 880, !10, i64 888, !23, i64 896, !23, i64 904, !23, i64 912, !23, i64 920, !10, i64 928, !10, i64 936, !23, i64 944, !23, i64 952, !23, i64 960, !10, i64 968, !10, i64 976, !23, i64 984, !23, i64 992, !23, i64 1000, !23, i64 1008, !23, i64 1016, !10, i64 1024, !23, i64 1032, !23, i64 1040, !23, i64 1048, !23, i64 1056, !23, i64 1064, !23, i64 1072, !23, i64 1080, !23, i64 1088, !10, i64 1096, !10, i64 1104, !10, i64 1112, !23, i64 1120, !10, i64 1128, !23, i64 1136, !23, i64 1144, !10, i64 1152, !10, i64 1160, !10, i64 1168, !10, i64 1176, !10, i64 1184, !23, i64 1192, !10, i64 1200, !10, i64 1208, !23, i64 1216, !10, i64 1224, !23, i64 1232, !23, i64 1240, !10, i64 1248, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !23, i64 1288, !23, i64 1296, !23, i64 1304, !24, i64 1312, !24, i64 1384, !24, i64 1456, !24, i64 1528, !23, i64 1600, !23, i64 1608, !23, i64 1616, !23, i64 1624, !23, i64 1632, !23, i64 1640, !23, i64 1648, !23, i64 1656, !23, i64 1664, !23, i64 1672, !23, i64 1680, !23, i64 1688, !23, i64 1696, !23, i64 1704, !23, i64 1712, !23, i64 1720, !23, i64 1728, !23, i64 1736, !23, i64 1744, !23, i64 1752, !23, i64 1760, !23, i64 1768, !23, i64 1776, !23, i64 1784, !23, i64 1792, !23, i64 1800, !23, i64 1808, !23, i64 1816, !23, i64 1824, !23, i64 1832, !23, i64 1840, !23, i64 1848, !23, i64 1856, !23, i64 1864, !23, i64 1872, !23, i64 1880, !6, i64 1888, !7, i64 1896}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS8StatsArr", !6, i64 0, !10, i64 8, !10, i64 16, !25, i64 24, !7, i64 32}
!25 = !{!"_ZTS12StatsArrType", !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.Stats = type { ptr, ptr, i64, i64, i64, i64 }

@g_thread_cnt = external local_unnamed_addr global i32, align 4
@g_node_cnt = external local_unnamed_addr global i32, align 4
@g_ts_batch_alloc = external local_unnamed_addr global i8, align 1
@g_ts_alloc = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@__PRETTY_FUNCTION__._ZN7Manager6get_tsEm = external hidden unnamed_addr constant [35 x i8], align 1
@g_ts_batch_num = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@g_node_id = external local_unnamed_addr global i32, align 4
@simulation = external local_unnamed_addr global ptr, align 8
@stats = external local_unnamed_addr global %class.Stats, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7Manager6get_tsEm(ptr noundef nonnull align 8 dereferenceable(1320) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = load i8, ptr @g_ts_batch_alloc, align 1, !tbaa !5, !range !9, !noundef !10
  %4 = trunc nuw i8 %3 to i1
  %5 = load i32, ptr @g_ts_alloc, align 4
  %6 = icmp ne i32 %5, 2
  %or.cond.not = select i1 %4, i1 %6, i1 false
  br i1 %or.cond.not, label %7, label %8

7:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 43, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7Manager6get_tsEm) #4
  unreachable

8:                                                ; preds = %2
  %9 = tail call noundef i64 @_Z13get_sys_clockv()
  %10 = load i32, ptr @g_ts_alloc, align 4, !tbaa !11
  switch i32 %10, label %40 [
    i32 1, label %11
    i32 2, label %17
    i32 3, label %27
    i32 4, label %28
  ]

11:                                               ; preds = %8
  %12 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %0) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %15 = add i64 %14, 1
  store i64 %15, ptr %13, align 8, !tbaa !13
  %16 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %0) #5
  br label %41

17:                                               ; preds = %8
  %18 = load i8, ptr @g_ts_batch_alloc, align 1, !tbaa !5, !range !9, !noundef !10
  %19 = trunc nuw i8 %18 to i1
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  br i1 %19, label %21, label %25

21:                                               ; preds = %17
  %22 = load i32, ptr @g_ts_batch_num, align 4, !tbaa !11
  %23 = zext i32 %22 to i64
  %24 = atomicrmw add ptr %20, i64 %23 seq_cst, align 8
  br label %41

25:                                               ; preds = %17
  %26 = atomicrmw add ptr %20, i64 1 seq_cst, align 8
  br label %41

27:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 59, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7Manager6get_tsEm) #4
  unreachable

28:                                               ; preds = %8
  %29 = tail call noundef i64 @_Z14get_wall_clockv()
  %30 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %31 = load i32, ptr @g_thread_cnt, align 4, !tbaa !11
  %32 = add i32 %31, %30
  %33 = zext i32 %32 to i64
  %34 = mul i64 %29, %33
  %35 = load i32, ptr @g_node_id, align 4, !tbaa !11
  %36 = mul i32 %35, %31
  %37 = zext i32 %36 to i64
  %38 = add i64 %37, %1
  %39 = add i64 %38, %34
  br label %41

40:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 65, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7Manager6get_tsEm) #4
  unreachable

41:                                               ; preds = %21, %25, %28, %11
  %.0 = phi i64 [ %39, %28 ], [ %24, %21 ], [ %26, %25 ], [ %15, %11 ]
  %42 = load ptr, ptr @simulation, align 8, !tbaa !17
  %43 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %42)
  br i1 %43, label %44, label %54

44:                                               ; preds = %41
  %45 = tail call noundef i64 @_Z13get_sys_clockv()
  %46 = sub i64 %45, %9
  %47 = uitofp i64 %46 to double
  %48 = load ptr, ptr @stats, align 8, !tbaa !18
  %49 = getelementptr inbounds ptr, ptr %48, i64 %1
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds i8, ptr %50, i64 320
  %52 = load double, ptr %51, align 8, !tbaa !20
  %53 = fadd double %52, %47
  store double %53, ptr %51, align 8, !tbaa !20
  br label %54

54:                                               ; preds = %44, %41
  ret i64 %.0
}

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

declare noundef i64 @_Z13get_sys_clockv() local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #3

declare noundef i64 @_Z14get_wall_clockv() local_unnamed_addr #2

declare noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

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 = { 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 = { "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 = { 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 #4 = { noreturn nounwind }
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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 40}
!14 = !{!"_ZTS7Manager", !7, i64 0, !15, i64 40, !7, i64 48, !16, i64 1288, !16, i64 1296, !15, i64 1304, !15, i64 1312}
!15 = !{!"long", !7, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!19, !16, i64 0}
!19 = !{!"_ZTS5Stats", !16, i64 0, !16, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!20 = !{!21, !22, i64 320}
!21 = !{!"_ZTS9Stats_thd", !7, i64 0, !16, i64 64, !16, i64 72, !22, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !22, i64 184, !15, i64 192, !22, i64 200, !15, i64 208, !22, i64 216, !15, i64 224, !15, i64 232, !22, i64 240, !22, i64 248, !22, i64 256, !22, i64 264, !22, i64 272, !22, i64 280, !22, i64 288, !22, i64 296, !15, i64 304, !22, i64 312, !22, i64 320, !22, i64 328, !22, i64 336, !22, i64 344, !22, i64 352, !22, i64 360, !22, i64 368, !15, i64 376, !15, i64 384, !22, i64 392, !15, i64 400, !22, i64 408, !15, i64 416, !22, i64 424, !22, i64 432, !22, i64 440, !15, i64 448, !15, i64 456, !15, i64 464, !22, i64 472, !22, i64 480, !22, i64 488, !22, i64 496, !22, i64 504, !22, i64 512, !22, i64 520, !22, i64 528, !22, i64 536, !15, i64 544, !16, i64 552, !16, i64 560, !22, i64 568, !15, i64 576, !15, i64 584, !22, i64 592, !22, i64 600, !22, i64 608, !15, i64 616, !15, i64 624, !15, i64 632, !15, i64 640, !15, i64 648, !15, i64 656, !15, i64 664, !22, i64 672, !22, i64 680, !22, i64 688, !15, i64 696, !15, i64 704, !15, i64 712, !15, i64 720, !15, i64 728, !15, i64 736, !15, i64 744, !15, i64 752, !15, i64 760, !22, i64 768, !22, i64 776, !22, i64 784, !22, i64 792, !22, i64 800, !15, i64 808, !15, i64 816, !22, i64 824, !22, i64 832, !15, i64 840, !15, i64 848, !15, i64 856, !22, i64 864, !22, i64 872, !15, i64 880, !15, i64 888, !22, i64 896, !22, i64 904, !22, i64 912, !22, i64 920, !15, i64 928, !15, i64 936, !22, i64 944, !22, i64 952, !22, i64 960, !15, i64 968, !15, i64 976, !22, i64 984, !22, i64 992, !22, i64 1000, !22, i64 1008, !22, i64 1016, !15, i64 1024, !22, i64 1032, !22, i64 1040, !22, i64 1048, !22, i64 1056, !22, i64 1064, !22, i64 1072, !22, i64 1080, !22, i64 1088, !15, i64 1096, !15, i64 1104, !15, i64 1112, !22, i64 1120, !15, i64 1128, !22, i64 1136, !22, i64 1144, !15, i64 1152, !15, i64 1160, !15, i64 1168, !15, i64 1176, !15, i64 1184, !22, i64 1192, !15, i64 1200, !15, i64 1208, !22, i64 1216, !15, i64 1224, !22, i64 1232, !22, i64 1240, !15, i64 1248, !15, i64 1256, !15, i64 1264, !15, i64 1272, !15, i64 1280, !22, i64 1288, !22, i64 1296, !22, i64 1304, !23, i64 1312, !23, i64 1384, !23, i64 1456, !23, i64 1528, !22, i64 1600, !22, i64 1608, !22, i64 1616, !22, i64 1624, !22, i64 1632, !22, i64 1640, !22, i64 1648, !22, i64 1656, !22, i64 1664, !22, i64 1672, !22, i64 1680, !22, i64 1688, !22, i64 1696, !22, i64 1704, !22, i64 1712, !22, i64 1720, !22, i64 1728, !22, i64 1736, !22, i64 1744, !22, i64 1752, !22, i64 1760, !22, i64 1768, !22, i64 1776, !22, i64 1784, !22, i64 1792, !22, i64 1800, !22, i64 1808, !22, i64 1816, !22, i64 1824, !22, i64 1832, !22, i64 1840, !22, i64 1848, !22, i64 1856, !22, i64 1864, !22, i64 1872, !22, i64 1880, !16, i64 1888, !7, i64 1896}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS8StatsArr", !16, i64 0, !15, i64 8, !15, i64 16, !24, i64 24, !7, i64 32}
!24 = !{!"_ZTS12StatsArrType", !7, i64 0}


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