; LLVM IR from mitdbg/deneva :: benchmarks/tpcc_wl.ll (ZN12TPCCWorkload14init_tab_stockEim)

; 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.TPCCWorkload = type { %class.Workload, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, ptr }
%class.Workload = type { ptr, %"class.std::map", %"class.std::map.0", i64, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, table_t *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, table_t *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, table_t *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, table_t *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, IndexHash *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, IndexHash *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, IndexHash *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, IndexHash *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@g_init_parallelism = external global i32, align 4
@g_max_items = external global i32, align 4
@__const._ZN12TPCCWorkload14init_tab_stockEim.row_name = external hidden unnamed_addr constant [10 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

declare noundef i32 @_ZN7table_t11get_new_rowERP5row_tmRm(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #1

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

declare void @_ZN5row_t9set_valueEij(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #1

declare void @_ZN5row_t9set_valueEim(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i64 noundef) #1

declare noundef i64 @_Z5URandmm(i64 noundef, i64 noundef) #1

declare void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) #1

declare void @_ZN8Workload12index_insertEP9IndexHashmP5row_tl(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1

declare noundef i64 @_Z10wh_to_partm(i64 noundef) #1

declare void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TPCCWorkload14init_tab_stockEim(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %1, i64 noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca [25 x i8], align 16
  %12 = alloca [10 x i8], align 1
  %13 = alloca i32, align 4
  %14 = alloca [50 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !11
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %75, %3
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = load i32, ptr @g_max_items, align 4, !tbaa !9
  %21 = icmp ule i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %79

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %24 = getelementptr inbounds %class.TPCCWorkload, ptr %15, i32 0, i32 9
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = call noundef i32 @_ZN7table_t11get_new_rowERP5row_tmRm(ptr noundef nonnull align 8 dereferenceable(68) %25, ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  call void @_ZN5row_t15set_primary_keyEm(ptr noundef nonnull align 8 dereferenceable(64) %27, i64 noundef %29)
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN5row_t9set_valueEij(ptr noundef nonnull align 8 dereferenceable(64) %30, i32 noundef 0, i32 noundef %31)
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load i64, ptr %6, align 8, !tbaa !11
  call void @_ZN5row_t9set_valueEim(ptr noundef nonnull align 8 dereferenceable(64) %32, i32 noundef 1, i64 noundef %33)
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call noundef i64 @_Z5URandmm(i64 noundef 10, i64 noundef 100)
  call void @_ZN5row_t9set_valueEim(ptr noundef nonnull align 8 dereferenceable(64) %34, i32 noundef 2, i64 noundef %35)
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64) %36, i32 noundef 15, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 25, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 10, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const._ZN12TPCCWorkload14init_tab_stockEim.row_name, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %58, %23
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = icmp sle i32 %38, 10
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %61

41:                                               ; preds = %37
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = icmp slt i32 %42, 10
  br i1 %43, label %44, label %50

44:                                               ; preds = %41
  %45 = getelementptr inbounds [10 x i8], ptr %12, i64 0, i64 7
  store i8 48, ptr %45, align 1, !tbaa !27
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = add nsw i32 %46, 48
  %48 = trunc i32 %47 to i8
  %49 = getelementptr inbounds [10 x i8], ptr %12, i64 0, i64 8
  store i8 %48, ptr %49, align 1, !tbaa !27
  br label %53

50:                                               ; preds = %41
  %51 = getelementptr inbounds [10 x i8], ptr %12, i64 0, i64 7
  store i8 49, ptr %51, align 1, !tbaa !27
  %52 = getelementptr inbounds [10 x i8], ptr %12, i64 0, i64 8
  store i8 48, ptr %52, align 1, !tbaa !27
  br label %53

53:                                               ; preds = %50, %44
  %54 = getelementptr inbounds [10 x i8], ptr %12, i64 0, i64 9
  store i8 0, ptr %54, align 1, !tbaa !27
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds [10 x i8], ptr %12, i64 0, i64 0
  %57 = getelementptr inbounds [25 x i8], ptr %11, i64 0, i64 0
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %55, ptr noundef %56, ptr noundef %57)
  br label %58

58:                                               ; preds = %53
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %13, align 4, !tbaa !9
  br label %37, !llvm.loop !28

61:                                               ; preds = %40
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64) %62, i32 noundef 13, i32 noundef 0)
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64) %63, i32 noundef 14, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 50, ptr %14) #5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds [50 x i8], ptr %14, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %64, i32 noundef 16, ptr noundef %65)
  %66 = getelementptr inbounds %class.TPCCWorkload, ptr %15, i32 0, i32 15
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = load i64, ptr %6, align 8, !tbaa !11
  %71 = call noundef i64 @_Z8stockKeymm(i64 noundef %69, i64 noundef %70)
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load i64, ptr %6, align 8, !tbaa !11
  %74 = call noundef i64 @_Z10wh_to_partm(i64 noundef %73)
  call void @_ZN8Workload12index_insertEP9IndexHashmP5row_tl(ptr noundef nonnull align 8 dereferenceable(120) %15, ptr noundef %67, i64 noundef %71, ptr noundef %72, i64 noundef %74)
  call void @llvm.lifetime.end.p0(i64 50, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 10, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 25, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %75

75:                                               ; preds = %61
  %76 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = add i32 %77, %76
  store i32 %78, ptr %7, align 4, !tbaa !9
  br label %18, !llvm.loop !31

79:                                               ; preds = %22
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) #1

declare noundef i64 @_Z8stockKeymm(i64 noundef, i64 noundef) #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 184}
!14 = !{!"_ZTS12TPCCWorkload", !15, i64 0, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !12, i64 272, !10, i64 280, !6, i64 288}
!15 = !{!"_ZTS8Workload", !16, i64 8, !24, i64 56, !12, i64 104, !12, i64 112}
!16 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP7table_tSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P7table_tESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P7table_tESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !12, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9IndexHashSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9IndexHashESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9IndexHashESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !19, i64 0, !21, i64 8}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !6, i64 232}
!31 = distinct !{!31, !29}


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

@g_init_parallelism = external local_unnamed_addr global i32, align 4
@g_max_items = external local_unnamed_addr global i32, align 4
@__const._ZN12TPCCWorkload14init_tab_stockEim.row_name = external hidden unnamed_addr constant [10 x i8], align 1

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

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

declare noundef i32 @_ZN7table_t11get_new_rowERP5row_tmRm(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

declare void @_ZN5row_t9set_valueEij(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN5row_t9set_valueEim(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i64 noundef) local_unnamed_addr #1

declare noundef i64 @_Z5URandmm(i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN8Workload12index_insertEP9IndexHashmP5row_tl(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare noundef i64 @_Z10wh_to_partm(i64 noundef) local_unnamed_addr #1

declare void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TPCCWorkload14init_tab_stockEim(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca [25 x i8], align 16
  %7 = alloca [10 x i8], align 1
  %8 = alloca [50 x i8], align 16
  %9 = add nsw i32 %1, 1
  %10 = load i32, ptr @g_max_items, align 4, !tbaa !5
  %.not16 = icmp ugt i32 %9, %10
  br i1 %.not16, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 184
  %12 = getelementptr inbounds i8, ptr %7, i64 9
  %13 = getelementptr inbounds i8, ptr %7, i64 7
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  %15 = getelementptr inbounds i8, ptr %0, i64 232
  br label %16

._crit_edge:                                      ; preds = %16, %3
  ret void

16:                                               ; preds = %.lr.ph, %16
  %.01317 = phi i32 [ %9, %.lr.ph ], [ %44, %16 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %17 = load ptr, ptr %11, align 8, !tbaa !9
  %18 = call noundef i32 @_ZN7table_t11get_new_rowERP5row_tmRm(ptr noundef nonnull align 8 dereferenceable(68) %17, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %19 = load ptr, ptr %4, align 8, !tbaa !25
  %20 = zext i32 %.01317 to i64
  call void @_ZN5row_t15set_primary_keyEm(ptr noundef nonnull align 8 dereferenceable(64) %19, i64 noundef %20)
  %21 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEij(ptr noundef nonnull align 8 dereferenceable(64) %21, i32 noundef 0, i32 noundef %.01317)
  %22 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEim(ptr noundef nonnull align 8 dereferenceable(64) %22, i32 noundef 1, i64 noundef %2)
  %23 = load ptr, ptr %4, align 8, !tbaa !25
  %24 = call noundef i64 @_Z5URandmm(i64 noundef 10, i64 noundef 100)
  call void @_ZN5row_t9set_valueEim(ptr noundef nonnull align 8 dereferenceable(64) %23, i32 noundef 2, i64 noundef %24)
  %25 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64) %25, i32 noundef 15, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 25, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %7, ptr noundef nonnull align 1 dereferenceable(10) @__const._ZN12TPCCWorkload14init_tab_stockEim.row_name, i64 7, i1 false)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 49, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %26 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %26, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 50, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %27 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %27, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 51, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %28 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %28, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 52, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %29 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %29, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 53, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %30 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %30, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 54, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %31 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %31, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 55, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %32 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %32, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 56, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %33 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %33, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 48, ptr %13, align 1, !tbaa !26
  store i8 57, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %34 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %34, ptr noundef nonnull %7, ptr noundef nonnull %6)
  store i8 49, ptr %13, align 1, !tbaa !26
  store i8 48, ptr %14, align 1, !tbaa !26
  store i8 0, ptr %12, align 1, !tbaa !26
  %35 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64) %35, ptr noundef nonnull %7, ptr noundef nonnull %6)
  %36 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64) %36, i32 noundef 13, i32 noundef 0)
  %37 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEii(ptr noundef nonnull align 8 dereferenceable(64) %37, i32 noundef 14, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %8) #5
  %38 = load ptr, ptr %4, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %38, i32 noundef 16, ptr noundef nonnull %8)
  %39 = load ptr, ptr %15, align 8, !tbaa !27
  %40 = call noundef i64 @_Z8stockKeymm(i64 noundef %20, i64 noundef %2)
  %41 = load ptr, ptr %4, align 8, !tbaa !25
  %42 = call noundef i64 @_Z10wh_to_partm(i64 noundef %2)
  call void @_ZN8Workload12index_insertEP9IndexHashmP5row_tl(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %39, i64 noundef %40, ptr noundef %41, i64 noundef %42)
  call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 25, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %43 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %44 = add i32 %43, %.01317
  %45 = load i32, ptr @g_max_items, align 4, !tbaa !5
  %.not = icmp ugt i32 %44, %45
  br i1 %.not, label %._crit_edge, label %16, !llvm.loop !28
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_ZN5row_t9set_valueEPKcPv(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_Z8stockKeymm(i64 noundef, i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !20, i64 184}
!10 = !{!"_ZTS12TPCCWorkload", !11, i64 0, !20, i64 120, !20, i64 128, !20, i64 136, !20, i64 144, !20, i64 152, !20, i64 160, !20, i64 168, !20, i64 176, !20, i64 184, !20, i64 192, !20, i64 200, !20, i64 208, !20, i64 216, !20, i64 224, !20, i64 232, !20, i64 240, !20, i64 248, !20, i64 256, !20, i64 264, !21, i64 272, !6, i64 280, !20, i64 288}
!11 = !{!"_ZTS8Workload", !12, i64 8, !22, i64 56, !21, i64 104, !21, i64 112}
!12 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP7table_tSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P7table_tESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P7table_tESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !21, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9IndexHashSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !23, i64 0}
!23 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9IndexHashESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !24, i64 0}
!24 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9IndexHashESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !15, i64 0, !17, i64 8}
!25 = !{!20, !20, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!10, !20, i64 232}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass