; LLVM IR from mitdbg/deneva :: system/txn.ll (ZN8TxnStats11abort_statsEm)

; 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.TxnStats = type { i64, i64, i64, i64, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, i64, double, double, double, double, double, double, double, double }
%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 }
%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 }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__._ZN8TxnStats11abort_statsEm = external hidden unnamed_addr constant [37 x i8], align 1
@simulation = external global ptr, align 8
@stats = external global %class.Stats, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8TxnStats11abort_statsEm(ptr noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %5 = load ptr, ptr %3, align 8
  %6 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 6
  %7 = load double, ptr %6, align 8, !tbaa !11
  %8 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 5
  %9 = load double, ptr %8, align 8, !tbaa !14
  %10 = fadd double %9, %7
  store double %10, ptr %8, align 8, !tbaa !14
  %11 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 8
  %12 = load double, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 7
  %14 = load double, ptr %13, align 8, !tbaa !16
  %15 = fadd double %14, %12
  store double %15, ptr %13, align 8, !tbaa !16
  %16 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 10
  %17 = load double, ptr %16, align 8, !tbaa !17
  %18 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 9
  %19 = load double, ptr %18, align 8, !tbaa !18
  %20 = fadd double %19, %17
  store double %20, ptr %18, align 8, !tbaa !18
  %21 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 12
  %22 = load double, ptr %21, align 8, !tbaa !19
  %23 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 11
  %24 = load double, ptr %23, align 8, !tbaa !20
  %25 = fadd double %24, %22
  store double %25, ptr %23, align 8, !tbaa !20
  %26 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 17
  %27 = load double, ptr %26, align 8, !tbaa !21
  %28 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 16
  %29 = load double, ptr %28, align 8, !tbaa !22
  %30 = fadd double %29, %27
  store double %30, ptr %28, align 8, !tbaa !22
  %31 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 15
  %32 = load double, ptr %31, align 8, !tbaa !23
  %33 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 14
  %34 = load double, ptr %33, align 8, !tbaa !24
  %35 = fadd double %34, %32
  store double %35, ptr %33, align 8, !tbaa !24
  %36 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 19
  %37 = load double, ptr %36, align 8, !tbaa !25
  %38 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 18
  %39 = load double, ptr %38, align 8, !tbaa !26
  %40 = fadd double %39, %37
  store double %40, ptr %38, align 8, !tbaa !26
  %41 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 21
  %42 = load double, ptr %41, align 8, !tbaa !27
  %43 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 20
  %44 = load double, ptr %43, align 8, !tbaa !28
  %45 = fadd double %44, %42
  store double %45, ptr %43, align 8, !tbaa !28
  %46 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 23
  %47 = load i64, ptr %46, align 8, !tbaa !29
  %48 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 22
  %49 = load i64, ptr %48, align 8, !tbaa !30
  %50 = add i64 %49, %47
  store i64 %50, ptr %48, align 8, !tbaa !30
  %51 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 5
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 6
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = fcmp oge double %52, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %2
  br label %59

57:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 116, ptr noundef @__PRETTY_FUNCTION__._ZN8TxnStats11abort_statsEm) #3
  unreachable

58:                                               ; No predecessors!
  br label %59

59:                                               ; preds = %58, %56
  %60 = load ptr, ptr @simulation, align 8, !tbaa !5
  %61 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %60)
  br i1 %61, label %62, label %72

62:                                               ; preds = %59
  %63 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 16
  %64 = load double, ptr %63, align 8, !tbaa !22
  %65 = load ptr, ptr @stats, align 8, !tbaa !31
  %66 = load i64, ptr %4, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %65, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.Stats_thd, ptr %68, i32 0, i32 192
  %70 = load double, ptr %69, align 8, !tbaa !33
  %71 = fadd double %70, %64
  store double %71, ptr %69, align 8, !tbaa !33
  br label %72

72:                                               ; preds = %62, %59
  %73 = load ptr, ptr @simulation, align 8, !tbaa !5
  %74 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %73)
  br i1 %74, label %75, label %85

75:                                               ; preds = %72
  %76 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 14
  %77 = load double, ptr %76, align 8, !tbaa !24
  %78 = load ptr, ptr @stats, align 8, !tbaa !31
  %79 = load i64, ptr %4, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %78, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.Stats_thd, ptr %81, i32 0, i32 193
  %83 = load double, ptr %82, align 8, !tbaa !37
  %84 = fadd double %83, %77
  store double %84, ptr %82, align 8, !tbaa !37
  br label %85

85:                                               ; preds = %75, %72
  %86 = load ptr, ptr @simulation, align 8, !tbaa !5
  %87 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %86)
  br i1 %87, label %88, label %98

88:                                               ; preds = %85
  %89 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 18
  %90 = load double, ptr %89, align 8, !tbaa !26
  %91 = load ptr, ptr @stats, align 8, !tbaa !31
  %92 = load i64, ptr %4, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %91, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.Stats_thd, ptr %94, i32 0, i32 194
  %96 = load double, ptr %95, align 8, !tbaa !38
  %97 = fadd double %96, %90
  store double %97, ptr %95, align 8, !tbaa !38
  br label %98

98:                                               ; preds = %88, %85
  %99 = load ptr, ptr @simulation, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %99)
  br i1 %100, label %101, label %111

101:                                              ; preds = %98
  %102 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 20
  %103 = load double, ptr %102, align 8, !tbaa !28
  %104 = load ptr, ptr @stats, align 8, !tbaa !31
  %105 = load i64, ptr %4, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.Stats_thd, ptr %107, i32 0, i32 195
  %109 = load double, ptr %108, align 8, !tbaa !39
  %110 = fadd double %109, %103
  store double %110, ptr %108, align 8, !tbaa !39
  br label %111

111:                                              ; preds = %101, %98
  %112 = load ptr, ptr @simulation, align 8, !tbaa !5
  %113 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %112)
  br i1 %113, label %114, label %124

114:                                              ; preds = %111
  %115 = getelementptr inbounds %class.TxnStats, ptr %5, i32 0, i32 5
  %116 = load double, ptr %115, align 8, !tbaa !14
  %117 = load ptr, ptr @stats, align 8, !tbaa !31
  %118 = load i64, ptr %4, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %117, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.Stats_thd, ptr %120, i32 0, i32 196
  %122 = load double, ptr %121, align 8, !tbaa !40
  %123 = fadd double %122, %116
  store double %123, ptr %121, align 8, !tbaa !40
  br label %124

124:                                              ; preds = %114, %111
  ret void
}

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

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


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

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__._ZN8TxnStats11abort_statsEm = external hidden unnamed_addr constant [37 x i8], align 1
@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 void @_ZN8TxnStats11abort_statsEm(ptr nocapture noundef nonnull align 8 dereferenceable(256) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 48
  %4 = load double, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load double, ptr %5, align 8, !tbaa !11
  %7 = fadd double %4, %6
  store double %7, ptr %5, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = load double, ptr %8, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load double, ptr %10, align 8, !tbaa !13
  %12 = fadd double %9, %11
  store double %12, ptr %10, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = load double, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  %16 = load double, ptr %15, align 8, !tbaa !15
  %17 = fadd double %14, %16
  store double %17, ptr %15, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  %19 = load double, ptr %18, align 8, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  %21 = load double, ptr %20, align 8, !tbaa !17
  %22 = fadd double %19, %21
  store double %22, ptr %20, align 8, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %0, i64 136
  %24 = load double, ptr %23, align 8, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %0, i64 128
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = fadd double %24, %26
  store double %27, ptr %25, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %0, i64 120
  %29 = load double, ptr %28, align 8, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %0, i64 112
  %31 = load double, ptr %30, align 8, !tbaa !21
  %32 = fadd double %29, %31
  store double %32, ptr %30, align 8, !tbaa !21
  %33 = getelementptr inbounds i8, ptr %0, i64 152
  %34 = load double, ptr %33, align 8, !tbaa !22
  %35 = getelementptr inbounds i8, ptr %0, i64 144
  %36 = load double, ptr %35, align 8, !tbaa !23
  %37 = fadd double %34, %36
  store double %37, ptr %35, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %0, i64 168
  %39 = load double, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %0, i64 160
  %41 = load double, ptr %40, align 8, !tbaa !25
  %42 = fadd double %39, %41
  store double %42, ptr %40, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %0, i64 184
  %44 = load i64, ptr %43, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %0, i64 176
  %46 = load i64, ptr %45, align 8, !tbaa !27
  %47 = add i64 %46, %44
  store i64 %47, ptr %45, align 8, !tbaa !27
  %48 = fcmp ult double %7, %4
  br i1 %48, label %49, label %50

49:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 116, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8TxnStats11abort_statsEm) #3
  unreachable

50:                                               ; preds = %2
  %51 = load ptr, ptr @simulation, align 8, !tbaa !28
  %52 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %51)
  br i1 %52, label %53, label %61

53:                                               ; preds = %50
  %54 = load double, ptr %25, align 8, !tbaa !19
  %55 = load ptr, ptr @stats, align 8, !tbaa !30
  %56 = getelementptr inbounds ptr, ptr %55, i64 %1
  %57 = load ptr, ptr %56, align 8, !tbaa !28
  %58 = getelementptr inbounds i8, ptr %57, i64 1848
  %59 = load double, ptr %58, align 8, !tbaa !32
  %60 = fadd double %54, %59
  store double %60, ptr %58, align 8, !tbaa !32
  br label %61

61:                                               ; preds = %53, %50
  %62 = load ptr, ptr @simulation, align 8, !tbaa !28
  %63 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %62)
  br i1 %63, label %64, label %72

64:                                               ; preds = %61
  %65 = load double, ptr %30, align 8, !tbaa !21
  %66 = load ptr, ptr @stats, align 8, !tbaa !30
  %67 = getelementptr inbounds ptr, ptr %66, i64 %1
  %68 = load ptr, ptr %67, align 8, !tbaa !28
  %69 = getelementptr inbounds i8, ptr %68, i64 1856
  %70 = load double, ptr %69, align 8, !tbaa !36
  %71 = fadd double %65, %70
  store double %71, ptr %69, align 8, !tbaa !36
  br label %72

72:                                               ; preds = %64, %61
  %73 = load ptr, ptr @simulation, align 8, !tbaa !28
  %74 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %73)
  br i1 %74, label %75, label %83

75:                                               ; preds = %72
  %76 = load double, ptr %35, align 8, !tbaa !23
  %77 = load ptr, ptr @stats, align 8, !tbaa !30
  %78 = getelementptr inbounds ptr, ptr %77, i64 %1
  %79 = load ptr, ptr %78, align 8, !tbaa !28
  %80 = getelementptr inbounds i8, ptr %79, i64 1864
  %81 = load double, ptr %80, align 8, !tbaa !37
  %82 = fadd double %76, %81
  store double %82, ptr %80, align 8, !tbaa !37
  br label %83

83:                                               ; preds = %75, %72
  %84 = load ptr, ptr @simulation, align 8, !tbaa !28
  %85 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %84)
  br i1 %85, label %86, label %94

86:                                               ; preds = %83
  %87 = load double, ptr %40, align 8, !tbaa !25
  %88 = load ptr, ptr @stats, align 8, !tbaa !30
  %89 = getelementptr inbounds ptr, ptr %88, i64 %1
  %90 = load ptr, ptr %89, align 8, !tbaa !28
  %91 = getelementptr inbounds i8, ptr %90, i64 1872
  %92 = load double, ptr %91, align 8, !tbaa !38
  %93 = fadd double %87, %92
  store double %93, ptr %91, align 8, !tbaa !38
  br label %94

94:                                               ; preds = %86, %83
  %95 = load ptr, ptr @simulation, align 8, !tbaa !28
  %96 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %95)
  br i1 %96, label %97, label %105

97:                                               ; preds = %94
  %98 = load double, ptr %5, align 8, !tbaa !11
  %99 = load ptr, ptr @stats, align 8, !tbaa !30
  %100 = getelementptr inbounds ptr, ptr %99, i64 %1
  %101 = load ptr, ptr %100, align 8, !tbaa !28
  %102 = getelementptr inbounds i8, ptr %101, i64 1880
  %103 = load double, ptr %102, align 8, !tbaa !39
  %104 = fadd double %98, %103
  store double %104, ptr %102, align 8, !tbaa !39
  br label %105

105:                                              ; preds = %97, %94
  ret void
}

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

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


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