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

; 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_num_wh = external global i32, align 4
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@g_node_cnt = external global i32, align 4
@g_node_id = external global i32, align 4

; 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 i32 @printf(ptr noundef, ...) #1

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

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

14:                                               ; preds = %78, %1
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = load i32, ptr @g_num_wh, align 4, !tbaa !9
  %17 = icmp ule i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %81

19:                                               ; preds = %14
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = call noundef i64 @_Z10wh_to_partm(i64 noundef %21)
  %23 = load i32, ptr @g_node_cnt, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = urem i64 %22, %24
  %26 = load i32, ptr @g_node_id, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = icmp ne i64 %25, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %19
  br label %78

30:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %31 = getelementptr inbounds %class.TPCCWorkload, ptr %12, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = call noundef i32 @_ZN7table_t11get_new_rowERP5row_tmRm(ptr noundef nonnull align 8 dereferenceable(68) %32, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  call void @_ZN5row_t15set_primary_keyEm(ptr noundef nonnull align 8 dereferenceable(64) %34, i64 noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i32, ptr %3, align 4, !tbaa !9
  call void @_ZN5row_t9set_valueEij(ptr noundef nonnull align 8 dereferenceable(64) %37, i32 noundef 0, i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 10, ptr %6) #4
  %39 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
  %40 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 6, i32 noundef 10, ptr noundef %39)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %41, i32 noundef 1, ptr noundef %42)
  call void @llvm.lifetime.start.p0(i64 20, ptr %7) #4
  %43 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
  %44 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 10, i32 noundef 20, ptr noundef %43)
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %45, i32 noundef 2, ptr noundef %46)
  %47 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
  %48 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 10, i32 noundef 20, ptr noundef %47)
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %49, i32 noundef 3, ptr noundef %50)
  %51 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
  %52 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 10, i32 noundef 20, ptr noundef %51)
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds [20 x i8], ptr %7, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %53, i32 noundef 4, ptr noundef %54)
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #4
  %55 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
  %56 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 2, i32 noundef 2, ptr noundef %55)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %57, i32 noundef 5, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 9, ptr %9) #4
  %59 = getelementptr inbounds [9 x i8], ptr %9, i64 0, i64 0
  %60 = call noundef i64 @_Z16MakeNumberStringiiPc(i32 noundef 9, i32 noundef 9, ptr noundef %59)
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds [9 x i8], ptr %9, i64 0, i64 0
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %61, i32 noundef 6, ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %63 = call noundef i64 @_Z5URandmm(i64 noundef 0, i64 noundef 200)
  %64 = uitofp i64 %63 to double
  %65 = fdiv double %64, 1.000000e+03
  store double %65, ptr %10, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store double 3.000000e+05, ptr %11, align 8, !tbaa !26
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load double, ptr %10, align 8, !tbaa !26
  call void @_ZN5row_t9set_valueEid(ptr noundef nonnull align 8 dereferenceable(64) %66, i32 noundef 7, double noundef %67)
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load double, ptr %11, align 8, !tbaa !26
  call void @_ZN5row_t9set_valueEid(ptr noundef nonnull align 8 dereferenceable(64) %68, i32 noundef 8, double noundef %69)
  %70 = getelementptr inbounds %class.TPCCWorkload, ptr %12, i32 0, i32 11
  %71 = load ptr, ptr %70, align 8, !tbaa !28
  %72 = load i32, ptr %3, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = call noundef i64 @_Z10wh_to_partm(i64 noundef %76)
  call void @_ZN8Workload12index_insertEP9IndexHashmP5row_tl(ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef %71, i64 noundef %73, ptr noundef %74, i64 noundef %77)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 9, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %78

78:                                               ; preds = %30, %29
  %79 = load i32, ptr %3, align 4, !tbaa !9
  %80 = add i32 %79, 1
  store i32 %80, ptr %3, align 4, !tbaa !9
  br label %14, !llvm.loop !29

81:                                               ; preds = %18
  ret void
}

declare noundef i64 @_Z10wh_to_partm(i64 noundef) #1

declare noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef, i32 noundef, ptr noundef) #1

declare noundef i64 @_Z16MakeNumberStringiiPc(i32 noundef, i32 noundef, ptr noundef) #1

declare void @_ZN5row_t9set_valueEid(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, double 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 = { 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, !6, i64 120}
!12 = !{!"_ZTS12TPCCWorkload", !13, 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, !22, i64 272, !10, i64 280, !6, i64 288}
!13 = !{!"_ZTS8Workload", !14, i64 8, !23, i64 56, !22, i64 104, !22, i64 112}
!14 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP7table_tSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P7table_tESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P7table_tESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !22, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP9IndexHashSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9IndexHashESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P9IndexHashESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !17, i64 0, !19, i64 8}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = !{!12, !6, i64 200}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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_num_wh = external local_unnamed_addr global i32, align 4
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@g_node_cnt = external local_unnamed_addr global i32, align 4
@g_node_id = external local_unnamed_addr global i32, align 4

; 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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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 #2

; 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 #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12TPCCWorkload11init_tab_whEv(ptr noundef nonnull align 8 dereferenceable(296) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca [10 x i8], align 1
  %5 = alloca [20 x i8], align 16
  %6 = alloca [2 x i8], align 1
  %7 = alloca [9 x i8], align 1
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  %9 = load i32, ptr @g_num_wh, align 4, !tbaa !5
  %.not10 = icmp eq i32 %9, 0
  br i1 %.not10, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = getelementptr inbounds i8, ptr %0, i64 200
  br label %12

._crit_edge:                                      ; preds = %45, %1
  ret void

12:                                               ; preds = %.lr.ph, %45
  %.011 = phi i32 [ 1, %.lr.ph ], [ %46, %45 ]
  %13 = zext i32 %.011 to i64
  %14 = call noundef i64 @_Z10wh_to_partm(i64 noundef %13)
  %15 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %16 = zext i32 %15 to i64
  %17 = urem i64 %14, %16
  %18 = load i32, ptr @g_node_id, align 4, !tbaa !5
  %19 = zext i32 %18 to i64
  %.not9 = icmp eq i64 %17, %19
  br i1 %.not9, label %20, label %45

20:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %21 = load ptr, ptr %10, align 8, !tbaa !9
  %22 = call noundef i32 @_ZN7table_t11get_new_rowERP5row_tmRm(ptr noundef nonnull align 8 dereferenceable(68) %21, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %23 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t15set_primary_keyEm(ptr noundef nonnull align 8 dereferenceable(64) %23, i64 noundef %13)
  %24 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEij(ptr noundef nonnull align 8 dereferenceable(64) %24, i32 noundef 0, i32 noundef %.011)
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %4) #5
  %25 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 6, i32 noundef 10, ptr noundef nonnull %4)
  %26 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %26, i32 noundef 1, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #5
  %27 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 10, i32 noundef 20, ptr noundef nonnull %5)
  %28 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %28, i32 noundef 2, ptr noundef nonnull %5)
  %29 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 10, i32 noundef 20, ptr noundef nonnull %5)
  %30 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %30, i32 noundef 3, ptr noundef nonnull %5)
  %31 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 10, i32 noundef 20, ptr noundef nonnull %5)
  %32 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %32, i32 noundef 4, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #5
  %33 = call noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef 2, i32 noundef 2, ptr noundef nonnull %6)
  %34 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %34, i32 noundef 5, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 9, ptr nonnull %7) #5
  %35 = call noundef i64 @_Z16MakeNumberStringiiPc(i32 noundef 9, i32 noundef 9, ptr noundef nonnull %7)
  %36 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEiPv(ptr noundef nonnull align 8 dereferenceable(64) %36, i32 noundef 6, ptr noundef nonnull %7)
  %37 = call noundef i64 @_Z5URandmm(i64 noundef 0, i64 noundef 200)
  %38 = uitofp i64 %37 to double
  %39 = fdiv double %38, 1.000000e+03
  %40 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEid(ptr noundef nonnull align 8 dereferenceable(64) %40, i32 noundef 7, double noundef %39)
  %41 = load ptr, ptr %2, align 8, !tbaa !25
  call void @_ZN5row_t9set_valueEid(ptr noundef nonnull align 8 dereferenceable(64) %41, i32 noundef 8, double noundef 3.000000e+05)
  %42 = load ptr, ptr %11, align 8, !tbaa !26
  %43 = load ptr, ptr %2, align 8, !tbaa !25
  %44 = call noundef i64 @_Z10wh_to_partm(i64 noundef %13)
  call void @_ZN8Workload12index_insertEP9IndexHashmP5row_tl(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %42, i64 noundef %13, ptr noundef %43, i64 noundef %44)
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %45

45:                                               ; preds = %12, %20
  %46 = add i32 %.011, 1
  %47 = load i32, ptr @g_num_wh, align 4, !tbaa !5
  %.not = icmp ugt i32 %46, %47
  br i1 %.not, label %._crit_edge, label %12, !llvm.loop !27
}

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

declare noundef i64 @_Z15MakeAlphaStringiiPc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_Z16MakeNumberStringiiPc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN5row_t9set_valueEid(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, double noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree 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 = { 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 = { 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 #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 120}
!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 = !{!10, !20, i64 200}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass