; LLVM IR from mitdbg/deneva :: benchmarks/ycsb_txn.ll (ZN14YCSBTxnManager14run_calvin_txnEv)

; 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.TxnManager = type { ptr, ptr, ptr, i8, ptr, i32, i8, i32, i32, i8, i64, i64, i64, i64, ptr, ptr, ptr, i64, i8, i8, ptr, ptr, i64, i64, i64, %class.TxnStats, i32, i32, i32, i8, i32, %class.Array, i32, ptr, ptr, i32, %union.sem_t }
%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.Array = type { ptr, i64, i64 }
%union.sem_t = type { i64, [24 x i8] }
%class.YCSBTxnManager = type { %class.TxnManager, ptr, ptr, i32, i64 }
%class.BaseQuery = type { ptr, i64, %class.Array.6, %class.Array.6, %class.Array.6, %class.Array.6 }
%class.Array.6 = type { ptr, i64, i64 }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@g_node_id = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN14YCSBTxnManager14run_calvin_txnEv = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare noundef i64 @_Z13get_sys_clockv() #1

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

; 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 @_ZN14YCSBTxnManager14run_calvin_txnEv(ptr noundef nonnull align 8 dereferenceable(576) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %8 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %8, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %9 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 21
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  store ptr %10, ptr %5, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %66, %1
  %12 = call noundef zeroext i1 @_ZN10TxnManager22calvin_exec_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544) %7)
  br i1 %12, label %16, label %13

13:                                               ; preds = %11
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = icmp eq i32 %14, 0
  br label %16

16:                                               ; preds = %13, %11
  %17 = phi i1 [ false, %11 ], [ %15, %13 ]
  br i1 %17, label %18, label %67

18:                                               ; preds = %16
  %19 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  %20 = load i32, ptr %19, align 8, !tbaa !22
  switch i32 %20, label %65 [
    i32 0, label %21
    i32 1, label %30
    i32 2, label %33
    i32 3, label %60
    i32 4, label %62
  ]

21:                                               ; preds = %18
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.YCSBTxnManager, ptr %7, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  %25 = call noundef i64 @_ZN9YCSBQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(136) %22, ptr noundef %24)
  %26 = trunc i64 %25 to i32
  %27 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 28
  store i32 %26, ptr %27, align 8, !tbaa !26
  %28 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 28
  store i32 0, ptr %28, align 8, !tbaa !26
  %29 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  store i32 1, ptr %29, align 8, !tbaa !22
  br label %66

30:                                               ; preds = %18
  %31 = call noundef i32 @_ZN14YCSBTxnManager8run_ycsbEv(ptr noundef nonnull align 8 dereferenceable(576) %7)
  store i32 %31, ptr %3, align 4, !tbaa !9
  %32 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  store i32 2, ptr %32, align 8, !tbaa !22
  br label %66

33:                                               ; preds = %18
  %34 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 21
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds %class.BaseQuery, ptr %35, i32 0, i32 5
  %37 = load i32, ptr @g_node_id, align 4, !tbaa !27
  %38 = zext i32 %37 to i64
  %39 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38)
  %40 = icmp eq i64 %39, 1
  br i1 %40, label %41, label %43

41:                                               ; preds = %33
  %42 = call noundef i32 @_ZN10TxnManager17send_remote_readsEv(ptr noundef nonnull align 8 dereferenceable(544) %7)
  store i32 %42, ptr %3, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %41, %33
  %44 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 21
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = getelementptr inbounds %class.BaseQuery, ptr %45, i32 0, i32 4
  %47 = load i32, ptr @g_node_id, align 4, !tbaa !27
  %48 = zext i32 %47 to i64
  %49 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48)
  %50 = icmp eq i64 %49, 1
  br i1 %50, label %51, label %57

51:                                               ; preds = %43
  %52 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  store i32 3, ptr %52, align 8, !tbaa !22
  %53 = call noundef zeroext i1 @_ZN10TxnManager25calvin_collect_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544) %7)
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %56

55:                                               ; preds = %51
  store i32 3, ptr %3, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %55, %54
  br label %59

57:                                               ; preds = %43
  store i32 0, ptr %3, align 4, !tbaa !9
  %58 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  store i32 5, ptr %58, align 8, !tbaa !22
  br label %59

59:                                               ; preds = %57, %56
  br label %66

60:                                               ; preds = %18
  %61 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  store i32 4, ptr %61, align 8, !tbaa !22
  br label %66

62:                                               ; preds = %18
  %63 = call noundef i32 @_ZN14YCSBTxnManager8run_ycsbEv(ptr noundef nonnull align 8 dereferenceable(576) %7)
  store i32 %63, ptr %3, align 4, !tbaa !9
  %64 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 30
  store i32 5, ptr %64, align 8, !tbaa !22
  br label %66

65:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 317, ptr noundef @__PRETTY_FUNCTION__._ZN14YCSBTxnManager14run_calvin_txnEv) #6
  unreachable

66:                                               ; preds = %62, %60, %59, %30, %21
  br label %11, !llvm.loop !28

67:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %68 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %68, ptr %6, align 8, !tbaa !11
  %69 = load i64, ptr %6, align 8, !tbaa !11
  %70 = load i64, ptr %4, align 8, !tbaa !11
  %71 = sub i64 %69, %70
  %72 = uitofp i64 %71 to double
  %73 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 25
  %74 = getelementptr inbounds %class.TxnStats, ptr %73, i32 0, i32 6
  %75 = load double, ptr %74, align 8, !tbaa !30
  %76 = fadd double %75, %72
  store double %76, ptr %74, align 8, !tbaa !30
  %77 = load i64, ptr %6, align 8, !tbaa !11
  %78 = load i64, ptr %4, align 8, !tbaa !11
  %79 = sub i64 %77, %78
  %80 = uitofp i64 %79 to double
  %81 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 25
  %82 = getelementptr inbounds %class.TxnStats, ptr %81, i32 0, i32 28
  %83 = load double, ptr %82, align 8, !tbaa !31
  %84 = fadd double %83, %80
  store double %84, ptr %82, align 8, !tbaa !31
  %85 = call noundef i64 @_Z13get_sys_clockv()
  %86 = getelementptr inbounds %class.TxnManager, ptr %7, i32 0, i32 25
  %87 = getelementptr inbounds %class.TxnStats, ptr %86, i32 0, i32 2
  store i64 %85, ptr %87, align 8, !tbaa !32
  %88 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 %88
}

declare noundef zeroext i1 @_ZN10TxnManager22calvin_exec_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544)) #1

declare noundef i64 @_ZN9YCSBQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14YCSBTxnManager8run_ycsbEv(ptr noundef nonnull align 8 dereferenceable(576)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

declare noundef i32 @_ZN10TxnManager17send_remote_readsEv(ptr noundef nonnull align 8 dereferenceable(544)) #1

declare noundef zeroext i1 @_ZN10TxnManager25calvin_collect_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"_ZTS2RC", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 144}
!14 = !{!"_ZTS10TxnManager", !6, i64 8, !6, i64 16, !15, i64 24, !6, i64 32, !16, i64 40, !15, i64 44, !16, i64 48, !16, i64 52, !15, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !15, i64 128, !15, i64 129, !6, i64 136, !6, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !17, i64 176, !16, i64 432, !16, i64 436, !16, i64 440, !15, i64 444, !19, i64 448, !20, i64 456, !16, i64 480, !6, i64 488, !6, i64 496, !21, i64 504, !7, i64 512}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS8TxnStats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112, !18, i64 120, !18, i64 128, !18, i64 136, !18, i64 144, !18, i64 152, !18, i64 160, !18, i64 168, !12, i64 176, !12, i64 184, !18, i64 192, !18, i64 200, !18, i64 208, !18, i64 216, !18, i64 224, !18, i64 232, !18, i64 240, !18, i64 248}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTS12CALVIN_PHASE", !7, i64 0}
!20 = !{!"_ZTS5ArrayIP5row_tE", !6, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTS8access_t", !7, i64 0}
!22 = !{!14, !19, i64 448}
!23 = !{!24, !6, i64 552}
!24 = !{!"_ZTS14YCSBTxnManager", !14, i64 0, !6, i64 544, !6, i64 552, !25, i64 560, !12, i64 568}
!25 = !{!"_ZTS14YCSBRemTxnType", !7, i64 0}
!26 = !{!14, !16, i64 440}
!27 = !{!16, !16, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !18, i64 224}
!31 = !{!14, !18, i64 400}
!32 = !{!14, !12, i64 192}


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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@g_node_id = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN14YCSBTxnManager14run_calvin_txnEv = external hidden unnamed_addr constant [44 x i8], align 1

declare noundef i64 @_Z13get_sys_clockv() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14YCSBTxnManager14run_calvin_txnEv(ptr noundef nonnull align 8 dereferenceable(576) %0) unnamed_addr #2 align 2 {
  %2 = tail call noundef i64 @_Z13get_sys_clockv()
  %3 = getelementptr inbounds i8, ptr %0, i64 144
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = tail call noundef zeroext i1 @_ZN10TxnManager22calvin_exec_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544) %0)
  br i1 %5, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 448
  %7 = getelementptr inbounds i8, ptr %0, i64 552
  %8 = getelementptr inbounds i8, ptr %0, i64 440
  br label %9

9:                                                ; preds = %.lr.ph, %39
  %10 = load i32, ptr %6, align 8, !tbaa !18
  switch i32 %10, label %38 [
    i32 0, label %11
    i32 1, label %14
    i32 2, label %16
    i32 3, label %35
    i32 4, label %36
  ]

11:                                               ; preds = %9
  %12 = load ptr, ptr %7, align 8, !tbaa !19
  %13 = tail call noundef i64 @_ZN9YCSBQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(136) %4, ptr noundef %12)
  store i32 0, ptr %8, align 8, !tbaa !22
  store i32 1, ptr %6, align 8, !tbaa !18
  br label %39

14:                                               ; preds = %9
  %15 = tail call noundef i32 @_ZN14YCSBTxnManager8run_ycsbEv(ptr noundef nonnull align 8 dereferenceable(576) %0)
  store i32 2, ptr %6, align 8, !tbaa !18
  br label %39

16:                                               ; preds = %9
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 88
  %19 = load i32, ptr @g_node_id, align 4, !tbaa !23
  %20 = zext i32 %19 to i64
  %21 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %20)
  %22 = icmp eq i64 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %16
  %24 = tail call noundef i32 @_ZN10TxnManager17send_remote_readsEv(ptr noundef nonnull align 8 dereferenceable(544) %0)
  br label %25

25:                                               ; preds = %23, %16
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 64
  %28 = load i32, ptr @g_node_id, align 4, !tbaa !23
  %29 = zext i32 %28 to i64
  %30 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29)
  %31 = icmp eq i64 %30, 1
  br i1 %31, label %32, label %34

32:                                               ; preds = %25
  store i32 3, ptr %6, align 8, !tbaa !18
  %33 = tail call noundef zeroext i1 @_ZN10TxnManager25calvin_collect_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544) %0)
  %. = select i1 %33, i32 0, i32 3
  br label %39

34:                                               ; preds = %25
  store i32 5, ptr %6, align 8, !tbaa !18
  br label %39

35:                                               ; preds = %9
  store i32 4, ptr %6, align 8, !tbaa !18
  br label %39

36:                                               ; preds = %9
  %37 = tail call noundef i32 @_ZN14YCSBTxnManager8run_ycsbEv(ptr noundef nonnull align 8 dereferenceable(576) %0)
  store i32 5, ptr %6, align 8, !tbaa !18
  br label %39

38:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 317, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14YCSBTxnManager14run_calvin_txnEv) #4
  unreachable

39:                                               ; preds = %32, %34, %36, %35, %14, %11
  %.1 = phi i32 [ %37, %36 ], [ 0, %35 ], [ 0, %34 ], [ %15, %14 ], [ 0, %11 ], [ %., %32 ]
  %40 = tail call noundef zeroext i1 @_ZN10TxnManager22calvin_exec_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544) %0)
  %41 = icmp ne i32 %.1, 0
  %.not7 = or i1 %40, %41
  br i1 %.not7, label %._crit_edge, label %9, !llvm.loop !24

._crit_edge:                                      ; preds = %39, %1
  %.0.lcssa = phi i32 [ 0, %1 ], [ %.1, %39 ]
  %42 = tail call noundef i64 @_Z13get_sys_clockv()
  %43 = sub i64 %42, %2
  %44 = uitofp i64 %43 to double
  %45 = getelementptr inbounds i8, ptr %0, i64 224
  %46 = load double, ptr %45, align 8, !tbaa !26
  %47 = fadd double %46, %44
  store double %47, ptr %45, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %0, i64 400
  %49 = load double, ptr %48, align 8, !tbaa !27
  %50 = fadd double %49, %44
  store double %50, ptr %48, align 8, !tbaa !27
  %51 = tail call noundef i64 @_Z13get_sys_clockv()
  %52 = getelementptr inbounds i8, ptr %0, i64 192
  store i64 %51, ptr %52, align 8, !tbaa !28
  ret i32 %.0.lcssa
}

declare noundef zeroext i1 @_ZN10TxnManager22calvin_exec_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544)) local_unnamed_addr #0

declare noundef i64 @_ZN9YCSBQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14YCSBTxnManager8run_ycsbEv(ptr noundef nonnull align 8 dereferenceable(576)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN10TxnManager17send_remote_readsEv(ptr noundef nonnull align 8 dereferenceable(544)) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN10TxnManager25calvin_collect_phase_doneEv(ptr noundef nonnull align 8 dereferenceable(544)) local_unnamed_addr #0

attributes #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 = { 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 }

!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, !7, i64 144}
!6 = !{!"_ZTS10TxnManager", !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !11, i64 40, !10, i64 44, !11, i64 48, !11, i64 52, !10, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !12, i64 120, !10, i64 128, !10, i64 129, !7, i64 136, !7, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !13, i64 176, !11, i64 432, !11, i64 436, !11, i64 440, !10, i64 444, !15, i64 448, !16, i64 456, !11, i64 480, !7, i64 488, !7, i64 496, !17, i64 504, !8, i64 512}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTS8TxnStats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !12, i64 176, !12, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248}
!14 = !{!"double", !8, i64 0}
!15 = !{!"_ZTS12CALVIN_PHASE", !8, i64 0}
!16 = !{!"_ZTS5ArrayIP5row_tE", !7, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!"_ZTS8access_t", !8, i64 0}
!18 = !{!6, !15, i64 448}
!19 = !{!20, !7, i64 552}
!20 = !{!"_ZTS14YCSBTxnManager", !6, i64 0, !7, i64 544, !7, i64 552, !21, i64 560, !12, i64 568}
!21 = !{!"_ZTS14YCSBRemTxnType", !8, i64 0}
!22 = !{!6, !11, i64 440}
!23 = !{!11, !11, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !14, i64 224}
!27 = !{!6, !14, i64 400}
!28 = !{!6, !12, i64 192}


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