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

; 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" }
%struct.thr_args = type { ptr, i32, i32 }

@g_num_wh = external global i32, align 4
@stdout = external global ptr, align 8
@g_init_parallelism = external global i32, align 4
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [33 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

declare i32 @printf(ptr noundef, ...) #3

declare i32 @fflush(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12TPCCWorkload10init_tableEv(ptr noundef nonnull align 8 dereferenceable(296) %0) unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  %16 = load i32, ptr @g_num_wh, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds %class.TPCCWorkload, ptr %15, i32 0, i32 20
  store i64 %17, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %19 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %20 = sub i32 %19, 1
  %21 = zext i32 %20 to i64
  %22 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %21, i64 8)
  %23 = extractvalue { i64, i1 } %22, 1
  %24 = extractvalue { i64, i1 } %22, 0
  %25 = select i1 %23, i64 -1, i64 %24
  %26 = call noalias noundef nonnull ptr @_Znam(i64 noundef %25) #8
  store ptr %26, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %27 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %28, i64 16)
  %30 = extractvalue { i64, i1 } %29, 1
  %31 = extractvalue { i64, i1 } %29, 0
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #8
  store ptr %33, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %51, %1
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %37 = icmp ult i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %54

39:                                               ; preds = %34
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds %struct.thr_args, ptr %40, i64 %42
  %44 = getelementptr inbounds %struct.thr_args, ptr %43, i32 0, i32 0
  store ptr %15, ptr %44, align 8, !tbaa !26
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds %struct.thr_args, ptr %46, i64 %48
  %50 = getelementptr inbounds %struct.thr_args, ptr %49, i32 0, i32 1
  store i32 %45, ptr %50, align 8, !tbaa !28
  br label %51

51:                                               ; preds = %39
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = add i32 %52, 1
  store i32 %53, ptr %5, align 4, !tbaa !9
  br label %34, !llvm.loop !29

54:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %71, %54
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %58 = sub i32 %57, 1
  %59 = icmp ult i32 %56, %58
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %55
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds i64, ptr %62, i64 %64
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds %struct.thr_args, ptr %66, i64 %68
  %70 = call i32 @pthread_create(ptr noundef %65, ptr noundef null, ptr noundef @_ZN12TPCCWorkload15threadInitStockEPv, ptr noundef %69) #7
  br label %71

71:                                               ; preds = %61
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = add i32 %72, 1
  store i32 %73, ptr %6, align 4, !tbaa !9
  br label %55, !llvm.loop !31

74:                                               ; preds = %60
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %77 = sub i32 %76, 1
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds %struct.thr_args, ptr %75, i64 %78
  %80 = call noundef ptr @_ZN12TPCCWorkload15threadInitStockEPv(ptr noundef %79)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %100, %74
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %84 = sub i32 %83, 1
  %85 = icmp ult i32 %82, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %103

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds i64, ptr %88, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !32
  %93 = call i32 @pthread_join(i64 noundef %92, ptr noundef null)
  store i32 %93, ptr %8, align 4, !tbaa !9
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %99

96:                                               ; preds = %87
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %97)
  call void @exit(i32 noundef -1) #9
  unreachable

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

100:                                              ; preds = %99
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = add i32 %101, 1
  store i32 %102, ptr %7, align 4, !tbaa !9
  br label %81, !llvm.loop !33

103:                                              ; preds = %86
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  %105 = load ptr, ptr @stdout, align 8, !tbaa !5
  %106 = call i32 @fflush(ptr noundef %105)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %123, %103
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %110 = sub i32 %109, 1
  %111 = icmp ult i32 %108, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %126

113:                                              ; preds = %107
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds i64, ptr %114, i64 %116
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds %struct.thr_args, ptr %118, i64 %120
  %122 = call i32 @pthread_create(ptr noundef %117, ptr noundef null, ptr noundef @_ZN12TPCCWorkload14threadInitItemEPv, ptr noundef %121) #7
  br label %123

123:                                              ; preds = %113
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = add i32 %124, 1
  store i32 %125, ptr %9, align 4, !tbaa !9
  br label %107, !llvm.loop !34

126:                                              ; preds = %112
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %129 = sub i32 %128, 1
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds %struct.thr_args, ptr %127, i64 %130
  %132 = call noundef ptr @_ZN12TPCCWorkload14threadInitItemEPv(ptr noundef %131)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %152, %126
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %136 = sub i32 %135, 1
  %137 = icmp ult i32 %134, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %155

139:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds i64, ptr %140, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !32
  %145 = call i32 @pthread_join(i64 noundef %144, ptr noundef null)
  store i32 %145, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %151

148:                                              ; preds = %139
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %149)
  call void @exit(i32 noundef -1) #9
  unreachable

151:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = add i32 %153, 1
  store i32 %154, ptr %10, align 4, !tbaa !9
  br label %133, !llvm.loop !35

155:                                              ; preds = %138
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %157 = load ptr, ptr @stdout, align 8, !tbaa !5
  %158 = call i32 @fflush(ptr noundef %157)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %175, %155
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %162 = sub i32 %161, 1
  %163 = icmp ult i32 %160, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %178

165:                                              ; preds = %159
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds i64, ptr %166, i64 %168
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds %struct.thr_args, ptr %170, i64 %172
  %174 = call i32 @pthread_create(ptr noundef %169, ptr noundef null, ptr noundef @_ZN12TPCCWorkload14threadInitCustEPv, ptr noundef %173) #7
  br label %175

175:                                              ; preds = %165
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = add i32 %176, 1
  store i32 %177, ptr %12, align 4, !tbaa !9
  br label %159, !llvm.loop !36

178:                                              ; preds = %164
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %181 = sub i32 %180, 1
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds %struct.thr_args, ptr %179, i64 %182
  %184 = call noundef ptr @_ZN12TPCCWorkload14threadInitCustEPv(ptr noundef %183)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %204, %178
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr @g_init_parallelism, align 4, !tbaa !9
  %188 = sub i32 %187, 1
  %189 = icmp ult i32 %186, %188
  br i1 %189, label %191, label %190

190:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %207

191:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds i64, ptr %192, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !32
  %197 = call i32 @pthread_join(i64 noundef %196, ptr noundef null)
  store i32 %197, ptr %14, align 4, !tbaa !9
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %203

200:                                              ; preds = %191
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %201)
  call void @exit(i32 noundef -1) #9
  unreachable

203:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = add i32 %205, 1
  store i32 %206, ptr %13, align 4, !tbaa !9
  br label %185, !llvm.loop !37

207:                                              ; preds = %190
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %209 = load ptr, ptr @stdout, align 8, !tbaa !5
  %210 = call i32 @fflush(ptr noundef %209)
  %211 = call noundef ptr @_ZN12TPCCWorkload12threadInitWhEPv(ptr noundef %15)
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %213 = load ptr, ptr @stdout, align 8, !tbaa !5
  %214 = call i32 @fflush(ptr noundef %213)
  %215 = call noundef ptr @_ZN12TPCCWorkload14threadInitDistEPv(ptr noundef %15)
  %216 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %217 = load ptr, ptr @stdout, align 8, !tbaa !5
  %218 = call i32 @fflush(ptr noundef %217)
  %219 = call noundef ptr @_ZN12TPCCWorkload14threadInitHistEPv(ptr noundef %15)
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  %221 = load ptr, ptr @stdout, align 8, !tbaa !5
  %222 = call i32 @fflush(ptr noundef %221)
  %223 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload15threadInitStockEPv(ptr noundef) #4 align 2

declare i32 @pthread_join(i64 noundef, ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitItemEPv(ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitCustEPv(ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload12threadInitWhEPv(ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitDistEPv(ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitHistEPv(ptr noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(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 = { 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 "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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !22, i64 272}
!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, !6, i64 0}
!27 = !{!"_ZTS8thr_args", !6, i64 0, !10, i64 8, !10, i64 12}
!28 = !{!27, !10, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!22, !22, i64 0}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}
!35 = distinct !{!35, !30}
!36 = distinct !{!36, !30}
!37 = distinct !{!37, !30}


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

%struct.thr_args = type { ptr, i32, i32 }

@g_num_wh = external local_unnamed_addr global i32, align 4
@stdout = external local_unnamed_addr global ptr, align 8
@g_init_parallelism = external local_unnamed_addr global i32, align 4
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12TPCCWorkload10init_tableEv(ptr noundef nonnull align 8 dereferenceable(296) %0) unnamed_addr #2 align 2 {
  %2 = load i32, ptr @g_num_wh, align 4, !tbaa !5
  %3 = zext i32 %2 to i64
  %4 = getelementptr inbounds i8, ptr %0, i64 272
  store i64 %3, ptr %4, align 8, !tbaa !9
  %5 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %6 = add i32 %5, -1
  %7 = zext i32 %6 to i64
  %8 = shl nuw nsw i64 %7, 3
  %9 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #6
  %10 = zext i32 %5 to i64
  %11 = shl nuw nsw i64 %10, 4
  %12 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #6
  %.not90 = icmp eq i32 %5, 0
  br i1 %.not90, label %.lr.ph67.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %1
  %xtraiter = and i64 %10, 3
  %13 = icmp ult i32 %5, 4
  br i1 %13, label %.preheader.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %10, 4294967292
  br label %.lr.ph

.preheader.unr-lcssa:                             ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader.unr-lcssa ]
  %14 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv.epil
  store ptr %0, ptr %14, align 8, !tbaa !25
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = trunc nuw i64 %indvars.iv.epil to i32
  store i32 %16, ptr %15, align 8, !tbaa !27
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.lr.ph.epil, !llvm.loop !28

.preheader:                                       ; preds = %.lr.ph.epil, %.preheader.unr-lcssa
  %.not91 = icmp eq i32 %6, 0
  br i1 %.not91, label %._crit_edge, label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %1, %.preheader
  br label %.lr.ph67

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %17 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv
  store ptr %0, ptr %17, align 8, !tbaa !25
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = trunc nuw i64 %indvars.iv to i32
  store i32 %19, ptr %18, align 8, !tbaa !27
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %20 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv.next
  store ptr %0, ptr %20, align 8, !tbaa !25
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = trunc nuw i64 %indvars.iv.next to i32
  store i32 %22, ptr %21, align 8, !tbaa !27
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %23 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv.next.1
  store ptr %0, ptr %23, align 8, !tbaa !25
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = trunc nuw i64 %indvars.iv.next.1 to i32
  store i32 %25, ptr %24, align 8, !tbaa !27
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %26 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv.next.2
  store ptr %0, ptr %26, align 8, !tbaa !25
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = trunc nuw i64 %indvars.iv.next.2 to i32
  store i32 %28, ptr %27, align 8, !tbaa !27
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !30

._crit_edge.loopexit:                             ; preds = %.lr.ph67
  %29 = zext i32 %37 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader, %._crit_edge.loopexit
  %.lcssa64 = phi i64 [ %29, %._crit_edge.loopexit ], [ 0, %.preheader ]
  %30 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %.lcssa64
  %31 = tail call noundef ptr @_ZN12TPCCWorkload15threadInitStockEPv(ptr noundef nonnull %30)
  %32 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %.not92 = icmp eq i32 %32, 1
  br i1 %.not92, label %._crit_edge71, label %.lr.ph70

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph67 ], [ 0, %.lr.ph67.preheader ]
  %33 = getelementptr inbounds i64, ptr %9, i64 %indvars.iv106
  %34 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv106
  %35 = tail call i32 @pthread_create(ptr noundef nonnull %33, ptr noundef null, ptr noundef nonnull @_ZN12TPCCWorkload15threadInitStockEPv, ptr noundef nonnull %34) #7
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %36 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %37 = add i32 %36, -1
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %indvars.iv.next107, %38
  br i1 %39, label %.lr.ph67, label %._crit_edge.loopexit, !llvm.loop !32

40:                                               ; preds = %.lr.ph70
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %41 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %42 = add i32 %41, -1
  %43 = zext i32 %42 to i64
  %44 = icmp ult i64 %indvars.iv.next110, %43
  br i1 %44, label %.lr.ph70, label %._crit_edge71, !llvm.loop !33

._crit_edge71:                                    ; preds = %40, %._crit_edge
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  %46 = load ptr, ptr @stdout, align 8, !tbaa !34
  %47 = tail call i32 @fflush(ptr noundef %46)
  %48 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %.not93 = icmp eq i32 %48, 1
  br i1 %.not93, label %._crit_edge75, label %.lr.ph74

.lr.ph70:                                         ; preds = %._crit_edge, %40
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %40 ], [ 0, %._crit_edge ]
  %49 = getelementptr inbounds i64, ptr %9, i64 %indvars.iv109
  %50 = load i64, ptr %49, align 8, !tbaa !35
  %51 = tail call i32 @pthread_join(i64 noundef %50, ptr noundef null)
  %.not59 = icmp eq i32 %51, 0
  br i1 %.not59, label %40, label %52

52:                                               ; preds = %.lr.ph70
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %51)
  tail call void @exit(i32 noundef -1) #8
  unreachable

._crit_edge75.loopexit:                           ; preds = %.lr.ph74
  %54 = zext i32 %62 to i64
  br label %._crit_edge75

._crit_edge75:                                    ; preds = %._crit_edge71, %._crit_edge75.loopexit
  %.lcssa62 = phi i64 [ %54, %._crit_edge75.loopexit ], [ 0, %._crit_edge71 ]
  %55 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %.lcssa62
  %56 = tail call noundef ptr @_ZN12TPCCWorkload14threadInitItemEPv(ptr noundef nonnull %55)
  %57 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %.not94 = icmp eq i32 %57, 1
  br i1 %.not94, label %._crit_edge80, label %.lr.ph79

.lr.ph74:                                         ; preds = %._crit_edge71, %.lr.ph74
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %.lr.ph74 ], [ 0, %._crit_edge71 ]
  %58 = getelementptr inbounds i64, ptr %9, i64 %indvars.iv112
  %59 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv112
  %60 = tail call i32 @pthread_create(ptr noundef nonnull %58, ptr noundef null, ptr noundef nonnull @_ZN12TPCCWorkload14threadInitItemEPv, ptr noundef nonnull %59) #7
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %61 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %62 = add i32 %61, -1
  %63 = zext i32 %62 to i64
  %64 = icmp ult i64 %indvars.iv.next113, %63
  br i1 %64, label %.lr.ph74, label %._crit_edge75.loopexit, !llvm.loop !36

65:                                               ; preds = %.lr.ph79
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %66 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %67 = add i32 %66, -1
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %indvars.iv.next116, %68
  br i1 %69, label %.lr.ph79, label %._crit_edge80, !llvm.loop !37

._crit_edge80:                                    ; preds = %65, %._crit_edge75
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %71 = load ptr, ptr @stdout, align 8, !tbaa !34
  %72 = tail call i32 @fflush(ptr noundef %71)
  %73 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %.not95 = icmp eq i32 %73, 1
  br i1 %.not95, label %._crit_edge84, label %.lr.ph83

.lr.ph79:                                         ; preds = %._crit_edge75, %65
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %65 ], [ 0, %._crit_edge75 ]
  %74 = getelementptr inbounds i64, ptr %9, i64 %indvars.iv115
  %75 = load i64, ptr %74, align 8, !tbaa !35
  %76 = tail call i32 @pthread_join(i64 noundef %75, ptr noundef null)
  %.not58 = icmp eq i32 %76, 0
  br i1 %.not58, label %65, label %77

77:                                               ; preds = %.lr.ph79
  %78 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %76)
  tail call void @exit(i32 noundef -1) #8
  unreachable

._crit_edge84.loopexit:                           ; preds = %.lr.ph83
  %79 = zext i32 %87 to i64
  br label %._crit_edge84

._crit_edge84:                                    ; preds = %._crit_edge80, %._crit_edge84.loopexit
  %.lcssa60 = phi i64 [ %79, %._crit_edge84.loopexit ], [ 0, %._crit_edge80 ]
  %80 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %.lcssa60
  %81 = tail call noundef ptr @_ZN12TPCCWorkload14threadInitCustEPv(ptr noundef nonnull %80)
  %82 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %.not96 = icmp eq i32 %82, 1
  br i1 %.not96, label %._crit_edge89, label %.lr.ph88

.lr.ph83:                                         ; preds = %._crit_edge80, %.lr.ph83
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %.lr.ph83 ], [ 0, %._crit_edge80 ]
  %83 = getelementptr inbounds i64, ptr %9, i64 %indvars.iv118
  %84 = getelementptr inbounds %struct.thr_args, ptr %12, i64 %indvars.iv118
  %85 = tail call i32 @pthread_create(ptr noundef nonnull %83, ptr noundef null, ptr noundef nonnull @_ZN12TPCCWorkload14threadInitCustEPv, ptr noundef nonnull %84) #7
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %86 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %87 = add i32 %86, -1
  %88 = zext i32 %87 to i64
  %89 = icmp ult i64 %indvars.iv.next119, %88
  br i1 %89, label %.lr.ph83, label %._crit_edge84.loopexit, !llvm.loop !38

90:                                               ; preds = %.lr.ph88
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %91 = load i32, ptr @g_init_parallelism, align 4, !tbaa !5
  %92 = add i32 %91, -1
  %93 = zext i32 %92 to i64
  %94 = icmp ult i64 %indvars.iv.next122, %93
  br i1 %94, label %.lr.ph88, label %._crit_edge89, !llvm.loop !39

._crit_edge89:                                    ; preds = %90, %._crit_edge84
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %96 = load ptr, ptr @stdout, align 8, !tbaa !34
  %97 = tail call i32 @fflush(ptr noundef %96)
  %98 = tail call noundef ptr @_ZN12TPCCWorkload12threadInitWhEPv(ptr noundef nonnull %0)
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %100 = load ptr, ptr @stdout, align 8, !tbaa !34
  %101 = tail call i32 @fflush(ptr noundef %100)
  %102 = tail call noundef ptr @_ZN12TPCCWorkload14threadInitDistEPv(ptr noundef nonnull %0)
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %104 = load ptr, ptr @stdout, align 8, !tbaa !34
  %105 = tail call i32 @fflush(ptr noundef %104)
  %106 = tail call noundef ptr @_ZN12TPCCWorkload14threadInitHistEPv(ptr noundef nonnull %0)
  %107 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %108 = load ptr, ptr @stdout, align 8, !tbaa !34
  %109 = tail call i32 @fflush(ptr noundef %108)
  %110 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  ret i32 0

.lr.ph88:                                         ; preds = %._crit_edge84, %90
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %90 ], [ 0, %._crit_edge84 ]
  %111 = getelementptr inbounds i64, ptr %9, i64 %indvars.iv121
  %112 = load i64, ptr %111, align 8, !tbaa !35
  %113 = tail call i32 @pthread_join(i64 noundef %112, ptr noundef null)
  %.not = icmp eq i32 %113, 0
  br i1 %.not, label %90, label %114

114:                                              ; preds = %.lr.ph88
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %113)
  tail call void @exit(i32 noundef -1) #8
  unreachable
}

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload15threadInitStockEPv(ptr noundef) #2 align 2

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitItemEPv(ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitCustEPv(ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload12threadInitWhEPv(ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitDistEPv(ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN12TPCCWorkload14threadInitHistEPv(ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { nobuiltin allocsize(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 = { 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 = { 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 = { 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 #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 = { 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!10, !21, i64 272}
!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 = !{!26, !20, i64 0}
!26 = !{!"_ZTS8thr_args", !20, i64 0, !6, i64 8, !6, i64 12}
!27 = !{!26, !6, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = !{!20, !20, i64 0}
!35 = !{!21, !21, i64 0}
!36 = distinct !{!36, !31}
!37 = distinct !{!37, !31}
!38 = distinct !{!38, !31}
!39 = distinct !{!39, !31}


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