; LLVM IR from mitdbg/deneva :: benchmarks/ycsb_query.ll (ZN9YCSBQuery16get_participantsEP8Workload)

; 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.BaseQuery = type { ptr, i64, %class.Array, %class.Array, %class.Array, %class.Array }
%class.Array = type { ptr, i64, i64 }
%class.YCSBQuery = type { %class.BaseQuery, %class.Array.0 }
%class.Array.0 = type { ptr, i64, i64 }
%class.ycsb_request = type <{ i32, [4 x i8], i64, i8, [7 x i8] }>

@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@g_node_cnt = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN9YCSBQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !9
  %10 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 5
  %11 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  br label %16

14:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 122, ptr noundef @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #6
  unreachable

15:                                               ; No predecessors!
  br label %16

16:                                               ; preds = %15, %13
  %17 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 4
  %18 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %16
  br label %23

21:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 123, ptr noundef @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #6
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %33, %23
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %27 = zext i32 %26 to i64
  %28 = icmp ult i64 %25, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %36

30:                                               ; preds = %24
  %31 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 5
  call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0)
  %32 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 4
  call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 0)
  br label %33

33:                                               ; preds = %30
  %34 = load i64, ptr %6, align 8, !tbaa !9
  %35 = add i64 %34, 1
  store i64 %35, ptr %6, align 8, !tbaa !9
  br label %24, !llvm.loop !13

36:                                               ; preds = %29
  %37 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 5
  %38 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  %39 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %40 = zext i32 %39 to i64
  %41 = icmp eq i64 %38, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %36
  br label %45

43:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 128, ptr noundef @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #6
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  %46 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 4
  %47 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
  %48 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %49 = zext i32 %48 to i64
  %50 = icmp eq i64 %47, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %45
  br label %54

52:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 129, ptr noundef @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #6
  unreachable

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %100, %54
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = getelementptr inbounds %class.YCSBQuery, ptr %9, i32 0, i32 1
  %58 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %59 = icmp ult i64 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %103

61:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.YCSBQuery, ptr %9, i32 0, i32 1
  %64 = load i64, ptr %7, align 8, !tbaa !9
  %65 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64)
  %66 = getelementptr inbounds %class.ycsb_request, ptr %65, i32 0, i32 2
  %67 = load i64, ptr %66, align 8, !tbaa !15
  %68 = call noundef i32 @_ZN12YCSBWorkload11key_to_partEm(ptr noundef nonnull align 8 dereferenceable(176) %62, i64 noundef %67)
  %69 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %70 = urem i32 %68, %69
  %71 = zext i32 %70 to i64
  store i64 %71, ptr %8, align 8, !tbaa !9
  %72 = getelementptr inbounds %class.YCSBQuery, ptr %9, i32 0, i32 1
  %73 = load i64, ptr %7, align 8, !tbaa !9
  %74 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %73)
  %75 = getelementptr inbounds %class.ycsb_request, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !18
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %89

78:                                               ; preds = %61
  %79 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 5
  %80 = load i64, ptr %8, align 8, !tbaa !9
  %81 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %80)
  %82 = icmp eq i64 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %78
  %84 = load i64, ptr %5, align 8, !tbaa !9
  %85 = add i64 %84, 1
  store i64 %85, ptr %5, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %83, %78
  %87 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 5
  %88 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %88, i64 noundef 1)
  br label %89

89:                                               ; preds = %86, %61
  %90 = getelementptr inbounds %class.YCSBQuery, ptr %9, i32 0, i32 1
  %91 = load i64, ptr %7, align 8, !tbaa !9
  %92 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91)
  %93 = getelementptr inbounds %class.ycsb_request, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !18
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %99

96:                                               ; preds = %89
  %97 = getelementptr inbounds %class.BaseQuery, ptr %9, i32 0, i32 4
  %98 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %98, i64 noundef 1)
  br label %99

99:                                               ; preds = %96, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %100

100:                                              ; preds = %99
  %101 = load i64, ptr %7, align 8, !tbaa !9
  %102 = add i64 %101, 1
  store i64 %102, ptr %7, align 8, !tbaa !9
  br label %55, !llvm.loop !19

103:                                              ; preds = %60
  %104 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret i64 %104
}

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

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

declare noundef i32 @_ZN12YCSBWorkload11key_to_partEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTS12ycsb_request", !17, i64 0, !10, i64 8, !7, i64 16}
!17 = !{!"_ZTS8access_t", !7, i64 0}
!18 = !{!16, !17, i64 0}
!19 = distinct !{!19, !14}


; 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 [73 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@g_node_cnt = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN9YCSBQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  %4 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %7, label %6

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

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %.preheader15, label %12

.preheader15:                                     ; preds = %7
  %11 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

12:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 123, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #4
  unreachable

._crit_edge:                                      ; preds = %.lr.ph, %.preheader15
  %13 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %14 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %15 = zext i32 %14 to i64
  %16 = icmp eq i64 %13, %15
  br i1 %16, label %22, label %21

.lr.ph:                                           ; preds = %.preheader15, %.lr.ph
  %.01416 = phi i64 [ %17, %.lr.ph ], [ 0, %.preheader15 ]
  tail call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
  tail call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0)
  %17 = add nuw nsw i64 %.01416, 1
  %18 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %19 = zext i32 %18 to i64
  %20 = icmp ult i64 %17, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !9

21:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 128, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #4
  unreachable

22:                                               ; preds = %._crit_edge
  %23 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %24 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = icmp eq i64 %23, %25
  br i1 %26, label %.preheader, label %29

.preheader:                                       ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 112
  %28 = tail call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %.not21 = icmp eq i64 %28, 0
  br i1 %.not21, label %._crit_edge20, label %.lr.ph19

29:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 129, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9YCSBQuery16get_participantsEP8Workload) #4
  unreachable

._crit_edge20:                                    ; preds = %49, %.preheader
  %.0.lcssa = phi i64 [ 0, %.preheader ], [ %.2, %49 ]
  ret i64 %.0.lcssa

.lr.ph19:                                         ; preds = %.preheader, %49
  %.018 = phi i64 [ %.2, %49 ], [ 0, %.preheader ]
  %.01317 = phi i64 [ %50, %49 ], [ 0, %.preheader ]
  %30 = tail call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.01317)
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = tail call noundef i32 @_ZN12YCSBWorkload11key_to_partEm(ptr noundef nonnull align 8 dereferenceable(176) %1, i64 noundef %32)
  %34 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %35 = urem i32 %33, %34
  %36 = zext i32 %35 to i64
  %37 = tail call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.01317)
  %38 = load i32, ptr %37, align 8, !tbaa !15
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %.lr.ph19
  %41 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %36)
  %42 = icmp eq i64 %41, 0
  %43 = zext i1 %42 to i64
  %spec.select = add i64 %.018, %43
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %36, i64 noundef 1)
  br label %44

44:                                               ; preds = %40, %.lr.ph19
  %.2 = phi i64 [ %spec.select, %40 ], [ %.018, %.lr.ph19 ]
  %45 = tail call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.01317)
  %46 = load i32, ptr %45, align 8, !tbaa !15
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %36, i64 noundef 1)
  br label %49

49:                                               ; preds = %48, %44
  %50 = add nuw i64 %.01317, 1
  %51 = tail call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %52 = icmp ult i64 %50, %51
  br i1 %52, label %.lr.ph19, label %._crit_edge20, !llvm.loop !16
}

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

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

declare noundef i32 @_ZN12YCSBWorkload11key_to_partEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) local_unnamed_addr #3

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

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

attributes #0 = { 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 #1 = { 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 #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 = { "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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTS12ycsb_request", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTS8access_t", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !13, i64 0}
!16 = distinct !{!16, !10}


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