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

; 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.mem_alloc = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_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 }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.YCSBQuery = type { %class.BaseQuery, %class.Array.0 }
%class.BaseQuery = type { ptr, i64, %class.Array, %class.Array, %class.Array, %class.Array }
%class.Array = type { ptr, i64, i64 }
%class.Array.0 = type { ptr, i64, i64 }
%class.YCSBQueryGenerator = type { %class.QueryGenerator, ptr, double }
%class.QueryGenerator = type { ptr }
%class.ycsb_request = type <{ i32, [4 x i8], i64, i8, [7 x i8] }>

@mem_allocator = external global %class.mem_alloc, align 1
@g_synth_table_size = external global i64, align 8
@g_part_cnt = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@g_req_per_query = external global i32, align 4
@g_mpr = external global double, align 8
@g_part_per_txn = external global i32, align 4
@g_data_perc = external global double, align 8
@g_txn_read_perc = external global double, align 8
@g_tup_read_perc = external global double, align 8
@g_access_perc = external global double, align 8
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload = external hidden unnamed_addr constant [70 x i8], align 1
@g_strict_ppt = external global i8, align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@g_key_order = external global i8, align 1

declare noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) #0

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::set", align 8
  %10 = alloca %"class.std::set", align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %34 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %36 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 136)
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.YCSBQuery, ptr %37, i32 0, i32 1
  %39 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %40 = zext i32 %39 to i64
  call void @_ZN5ArrayIP12ycsb_requestE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #5
  call void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  call void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %41 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %44 unwind label %54

44:                                               ; preds = %3
  %45 = urem i64 %43, 10000
  %46 = uitofp i64 %45 to double
  %47 = fdiv double %46, 1.000000e+04
  store double %47, ptr %11, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %48 = load double, ptr %11, align 8, !tbaa !17
  %49 = load double, ptr @g_mpr, align 8, !tbaa !17
  %50 = fcmp olt double %48, %49
  br i1 %50, label %51, label %58

51:                                               ; preds = %44
  %52 = load i32, ptr @g_part_per_txn, align 4, !tbaa !11
  %53 = zext i32 %52 to i64
  store i64 %53, ptr %14, align 8, !tbaa !9
  br label %59

54:                                               ; preds = %3
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  br label %434

58:                                               ; preds = %44
  store i64 1, ptr %14, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %58, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %60 = load double, ptr @g_data_perc, align 8, !tbaa !17
  %61 = fptoui double %60 to i64
  store i64 %61, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %62 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %65 unwind label %74

65:                                               ; preds = %59
  %66 = urem i64 %64, 10000
  %67 = uitofp i64 %66 to double
  %68 = fdiv double %67, 1.000000e+04
  store double %68, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %318, %65
  %70 = load i32, ptr %18, align 4, !tbaa !11
  %71 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %72 = icmp ult i32 %70, %71
  br i1 %72, label %78, label %73

73:                                               ; preds = %69
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %326

74:                                               ; preds = %59
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %13, align 4
  br label %433

78:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %79 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %80)
          to label %82 unwind label %105

82:                                               ; preds = %78
  %83 = urem i64 %81, 10000
  %84 = uitofp i64 %83 to double
  %85 = fdiv double %84, 1.000000e+04
  store double %85, ptr %20, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %86 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %89 unwind label %109

89:                                               ; preds = %82
  %90 = urem i64 %88, 10000
  %91 = uitofp i64 %90 to double
  %92 = fdiv double %91, 1.000000e+04
  store double %92, ptr %21, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %93 = invoke noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 24)
          to label %94 unwind label %113

94:                                               ; preds = %89
  store ptr %93, ptr %23, align 8, !tbaa !5
  %95 = load double, ptr %16, align 8, !tbaa !17
  %96 = load double, ptr @g_txn_read_perc, align 8, !tbaa !17
  %97 = fcmp olt double %95, %96
  br i1 %97, label %102, label %98

98:                                               ; preds = %94
  %99 = load double, ptr %20, align 8, !tbaa !17
  %100 = load double, ptr @g_tup_read_perc, align 8, !tbaa !17
  %101 = fcmp olt double %99, %100
  br i1 %101, label %102, label %117

102:                                              ; preds = %98, %94
  %103 = load ptr, ptr %23, align 8, !tbaa !5
  %104 = getelementptr inbounds %class.ycsb_request, ptr %103, i32 0, i32 0
  store i32 0, ptr %104, align 8, !tbaa !18
  br label %120

105:                                              ; preds = %78
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  br label %325

109:                                              ; preds = %82
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %12, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %13, align 4
  br label %324

113:                                              ; preds = %89
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %12, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %13, align 4
  br label %323

117:                                              ; preds = %98
  %118 = load ptr, ptr %23, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.ycsb_request, ptr %118, i32 0, i32 0
  store i32 1, ptr %119, align 8, !tbaa !18
  br label %120

120:                                              ; preds = %117, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !11
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %191

123:                                              ; preds = %120
  %124 = load double, ptr %21, align 8, !tbaa !17
  %125 = load double, ptr @g_access_perc, align 8, !tbaa !17
  %126 = fcmp olt double %124, %125
  br i1 %126, label %127, label %146

127:                                              ; preds = %123
  %128 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %129)
          to label %131 unwind label %142

131:                                              ; preds = %127
  %132 = load i64, ptr %15, align 8, !tbaa !9
  %133 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %134 = zext i32 %133 to i64
  %135 = udiv i64 %132, %134
  %136 = urem i64 %130, %135
  %137 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %138 = zext i32 %137 to i64
  %139 = mul i64 %136, %138
  %140 = load i64, ptr %5, align 8, !tbaa !9
  %141 = add i64 %139, %140
  store i64 %141, ptr %24, align 8, !tbaa !9
  br label %176

142:                                              ; preds = %252, %240, %235, %204, %197, %127
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  br label %322

146:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %147 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8, !tbaa !13
  %149 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %148)
          to label %150 unwind label %172

150:                                              ; preds = %146
  store i64 %149, ptr %25, align 8, !tbaa !9
  %151 = load i64, ptr %25, align 8, !tbaa !9
  %152 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %153 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %154 = zext i32 %153 to i64
  %155 = udiv i64 %152, %154
  %156 = load i64, ptr %15, align 8, !tbaa !9
  %157 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %158 = zext i32 %157 to i64
  %159 = udiv i64 %156, %158
  %160 = sub i64 %155, %159
  %161 = urem i64 %151, %160
  %162 = load i64, ptr %15, align 8, !tbaa !9
  %163 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %164 = zext i32 %163 to i64
  %165 = udiv i64 %162, %164
  %166 = add i64 %161, %165
  %167 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %168 = zext i32 %167 to i64
  %169 = mul i64 %166, %168
  %170 = load i64, ptr %5, align 8, !tbaa !9
  %171 = add i64 %169, %170
  store i64 %171, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %176

172:                                              ; preds = %146
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %12, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %322

176:                                              ; preds = %150, %131
  %177 = load i64, ptr %24, align 8, !tbaa !9
  %178 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %179 = zext i32 %178 to i64
  %180 = urem i64 %177, %179
  store i64 %180, ptr %22, align 8, !tbaa !9
  %181 = load i64, ptr %24, align 8, !tbaa !9
  %182 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = urem i64 %181, %183
  %185 = load i64, ptr %5, align 8, !tbaa !9
  %186 = icmp eq i64 %184, %185
  br i1 %186, label %187, label %188

187:                                              ; preds = %176
  br label %190

188:                                              ; preds = %176
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 242, ptr noundef @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload) #6
  unreachable

189:                                              ; No predecessors!
  br label %190

190:                                              ; preds = %189, %187
  br label %252

191:                                              ; preds = %120
  br label %192

192:                                              ; preds = %249, %239, %191
  br label %193

193:                                              ; preds = %192
  %194 = load double, ptr %21, align 8, !tbaa !17
  %195 = load double, ptr @g_access_perc, align 8, !tbaa !17
  %196 = fcmp olt double %194, %195
  br i1 %196, label %197, label %204

197:                                              ; preds = %193
  %198 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %199)
          to label %201 unwind label %142

201:                                              ; preds = %197
  %202 = load i64, ptr %15, align 8, !tbaa !9
  %203 = urem i64 %200, %202
  store i64 %203, ptr %24, align 8, !tbaa !9
  br label %215

204:                                              ; preds = %193
  %205 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !13
  %207 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %206)
          to label %208 unwind label %142

208:                                              ; preds = %204
  %209 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %210 = load i64, ptr %15, align 8, !tbaa !9
  %211 = sub i64 %209, %210
  %212 = urem i64 %207, %211
  %213 = load i64, ptr %15, align 8, !tbaa !9
  %214 = add i64 %212, %213
  store i64 %214, ptr %24, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %208, %201
  %216 = load i64, ptr %24, align 8, !tbaa !9
  %217 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %218 = zext i32 %217 to i64
  %219 = urem i64 %216, %218
  store i64 %219, ptr %22, align 8, !tbaa !9
  %220 = load i8, ptr @g_strict_ppt, align 1, !tbaa !21, !range !23, !noundef !24
  %221 = trunc i8 %220 to i1
  br i1 %221, label %222, label %240

222:                                              ; preds = %215
  %223 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %224 = load i64, ptr %14, align 8, !tbaa !9
  %225 = icmp ult i64 %223, %224
  br i1 %225, label %226, label %240

226:                                              ; preds = %222
  %227 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %228 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %229 = load i32, ptr %17, align 4, !tbaa !11
  %230 = sub i32 %228, %229
  %231 = zext i32 %230 to i64
  %232 = add i64 %227, %231
  %233 = load i64, ptr %14, align 8, !tbaa !9
  %234 = icmp uge i64 %232, %233
  br i1 %234, label %235, label %240

235:                                              ; preds = %226
  %236 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %237 unwind label %142

237:                                              ; preds = %235
  %238 = icmp ugt i64 %236, 0
  br i1 %238, label %239, label %240

239:                                              ; preds = %237
  br label %192, !llvm.loop !25

240:                                              ; preds = %237, %226, %222, %215
  %241 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %242 unwind label %142

242:                                              ; preds = %240
  %243 = icmp ugt i64 %241, 0
  br i1 %243, label %244, label %245

244:                                              ; preds = %242
  br label %251

245:                                              ; preds = %242
  %246 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %247 = load i64, ptr %14, align 8, !tbaa !9
  %248 = icmp eq i64 %246, %247
  br i1 %248, label %249, label %250

249:                                              ; preds = %245
  br label %192, !llvm.loop !25

250:                                              ; preds = %245
  br label %251

251:                                              ; preds = %250, %244
  br label %252

252:                                              ; preds = %251, %190
  %253 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %254 unwind label %142

254:                                              ; preds = %252
  %255 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %256 = extractvalue { ptr, i8 } %253, 0
  store ptr %256, ptr %255, align 8
  %257 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %258 = extractvalue { ptr, i8 } %253, 1
  store i8 %258, ptr %257, align 8
  %259 = load i64, ptr %24, align 8, !tbaa !9
  %260 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %261 = icmp ult i64 %259, %260
  br i1 %261, label %262, label %263

262:                                              ; preds = %254
  br label %265

263:                                              ; preds = %254
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 263, ptr noundef @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload) #6
  unreachable

264:                                              ; No predecessors!
  br label %265

265:                                              ; preds = %264, %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %266 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %266, ptr %27, align 8, !tbaa !9
  %267 = load i64, ptr %27, align 8, !tbaa !9
  %268 = load ptr, ptr %23, align 8, !tbaa !5
  %269 = getelementptr inbounds %class.ycsb_request, ptr %268, i32 0, i32 2
  store i64 %267, ptr %269, align 8, !tbaa !27
  %270 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %35, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8, !tbaa !13
  %272 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %271)
          to label %273 unwind label %297

273:                                              ; preds = %265
  %274 = urem i64 %272, 256
  %275 = trunc i64 %274 to i8
  %276 = load ptr, ptr %23, align 8, !tbaa !5
  %277 = getelementptr inbounds %class.ycsb_request, ptr %276, i32 0, i32 3
  store i8 %275, ptr %277, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %278 = load ptr, ptr %23, align 8, !tbaa !5
  %279 = getelementptr inbounds %class.ycsb_request, ptr %278, i32 0, i32 2
  %280 = invoke ptr @_ZNSt3setImSt4lessImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %279)
          to label %281 unwind label %301

281:                                              ; preds = %273
  %282 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  store ptr %280, ptr %282, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %283 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %284 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %283, ptr %284, align 8
  %285 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br i1 %285, label %286, label %305

286:                                              ; preds = %281
  %287 = load ptr, ptr %23, align 8, !tbaa !5
  %288 = getelementptr inbounds %class.ycsb_request, ptr %287, i32 0, i32 2
  %289 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %288)
          to label %290 unwind label %297

290:                                              ; preds = %286
  %291 = getelementptr inbounds { ptr, i8 }, ptr %30, i32 0, i32 0
  %292 = extractvalue { ptr, i8 } %289, 0
  store ptr %292, ptr %291, align 8
  %293 = getelementptr inbounds { ptr, i8 }, ptr %30, i32 0, i32 1
  %294 = extractvalue { ptr, i8 } %289, 1
  store i8 %294, ptr %293, align 8
  %295 = load i64, ptr %8, align 8, !tbaa !9
  %296 = add i64 %295, 1
  store i64 %296, ptr %8, align 8, !tbaa !9
  br label %308

297:                                              ; preds = %308, %286, %265
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %12, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %13, align 4
  br label %321

301:                                              ; preds = %273
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %12, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %321

305:                                              ; preds = %281
  %306 = load i32, ptr %18, align 4, !tbaa !11
  %307 = add i32 %306, -1
  store i32 %307, ptr %18, align 4, !tbaa !11
  store i32 4, ptr %19, align 4
  br label %315

308:                                              ; preds = %290
  %309 = load i32, ptr %17, align 4, !tbaa !11
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %17, align 4, !tbaa !11
  %311 = load ptr, ptr %7, align 8, !tbaa !5
  %312 = getelementptr inbounds %class.YCSBQuery, ptr %311, i32 0, i32 1
  %313 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN5ArrayIP12ycsb_requestE3addES1_(ptr noundef nonnull align 8 dereferenceable(24) %312, ptr noundef %313)
          to label %314 unwind label %297

314:                                              ; preds = %308
  store i32 0, ptr %19, align 4
  br label %315

315:                                              ; preds = %314, %305
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %316 = load i32, ptr %19, align 4
  switch i32 %316, label %440 [
    i32 0, label %317
    i32 4, label %318
  ]

317:                                              ; preds = %315
  br label %318

318:                                              ; preds = %317, %315
  %319 = load i32, ptr %18, align 4, !tbaa !11
  %320 = add i32 %319, 1
  store i32 %320, ptr %18, align 4, !tbaa !11
  br label %69, !llvm.loop !29

321:                                              ; preds = %301, %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %322

322:                                              ; preds = %321, %172, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %323

323:                                              ; preds = %322, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %324

324:                                              ; preds = %323, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %325

325:                                              ; preds = %324, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %432

326:                                              ; preds = %73
  %327 = load ptr, ptr %7, align 8, !tbaa !5
  %328 = getelementptr inbounds %class.YCSBQuery, ptr %327, i32 0, i32 1
  %329 = invoke noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %328)
          to label %330 unwind label %336

330:                                              ; preds = %326
  %331 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %332 = zext i32 %331 to i64
  %333 = icmp eq i64 %329, %332
  br i1 %333, label %334, label %335

334:                                              ; preds = %330
  br label %341

335:                                              ; preds = %330
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 282, ptr noundef @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload) #6
  unreachable

336:                                              ; preds = %406, %326
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %12, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %13, align 4
  br label %432

340:                                              ; No predecessors!
  br label %341

341:                                              ; preds = %340, %334
  %342 = load i8, ptr @g_key_order, align 1, !tbaa !21, !range !23, !noundef !24
  %343 = trunc i8 %342 to i1
  br i1 %343, label %344, label %406

344:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %345

345:                                              ; preds = %401, %344
  %346 = load i64, ptr %31, align 8, !tbaa !9
  %347 = load ptr, ptr %7, align 8, !tbaa !5
  %348 = getelementptr inbounds %class.YCSBQuery, ptr %347, i32 0, i32 1
  %349 = invoke noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %348)
          to label %350 unwind label %353

350:                                              ; preds = %345
  %351 = icmp ult i64 %346, %349
  br i1 %351, label %357, label %352

352:                                              ; preds = %350
  store i32 7, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %405

353:                                              ; preds = %345
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %12, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %13, align 4
  br label %404

357:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = getelementptr inbounds %class.YCSBQuery, ptr %358, i32 0, i32 1
  %360 = invoke noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %359)
          to label %361 unwind label %368

361:                                              ; preds = %357
  %362 = sub i64 %360, 1
  store i64 %362, ptr %32, align 8, !tbaa !9
  br label %363

363:                                              ; preds = %397, %361
  %364 = load i64, ptr %32, align 8, !tbaa !9
  %365 = load i64, ptr %31, align 8, !tbaa !9
  %366 = icmp ugt i64 %364, %365
  br i1 %366, label %372, label %367

367:                                              ; preds = %363
  store i32 10, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %400

368:                                              ; preds = %389, %377, %372, %357
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %12, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %404

372:                                              ; preds = %363
  %373 = load ptr, ptr %7, align 8, !tbaa !5
  %374 = getelementptr inbounds %class.YCSBQuery, ptr %373, i32 0, i32 1
  %375 = load i64, ptr %32, align 8, !tbaa !9
  %376 = invoke noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %374, i64 noundef %375)
          to label %377 unwind label %368

377:                                              ; preds = %372
  %378 = getelementptr inbounds %class.ycsb_request, ptr %376, i32 0, i32 2
  %379 = load i64, ptr %378, align 8, !tbaa !27
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = getelementptr inbounds %class.YCSBQuery, ptr %380, i32 0, i32 1
  %382 = load i64, ptr %32, align 8, !tbaa !9
  %383 = sub i64 %382, 1
  %384 = invoke noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %381, i64 noundef %383)
          to label %385 unwind label %368

385:                                              ; preds = %377
  %386 = getelementptr inbounds %class.ycsb_request, ptr %384, i32 0, i32 2
  %387 = load i64, ptr %386, align 8, !tbaa !27
  %388 = icmp ult i64 %379, %387
  br i1 %388, label %389, label %396

389:                                              ; preds = %385
  %390 = load ptr, ptr %7, align 8, !tbaa !5
  %391 = getelementptr inbounds %class.YCSBQuery, ptr %390, i32 0, i32 1
  %392 = load i64, ptr %32, align 8, !tbaa !9
  %393 = load i64, ptr %32, align 8, !tbaa !9
  %394 = sub i64 %393, 1
  invoke void @_ZN5ArrayIP12ycsb_requestE4swapEmm(ptr noundef nonnull align 8 dereferenceable(24) %391, i64 noundef %392, i64 noundef %394)
          to label %395 unwind label %368

395:                                              ; preds = %389
  br label %396

396:                                              ; preds = %395, %385
  br label %397

397:                                              ; preds = %396
  %398 = load i64, ptr %32, align 8, !tbaa !9
  %399 = add i64 %398, -1
  store i64 %399, ptr %32, align 8, !tbaa !9
  br label %363, !llvm.loop !30

400:                                              ; preds = %367
  br label %401

401:                                              ; preds = %400
  %402 = load i64, ptr %31, align 8, !tbaa !9
  %403 = add i64 %402, 1
  store i64 %403, ptr %31, align 8, !tbaa !9
  br label %345, !llvm.loop !31

404:                                              ; preds = %368, %353
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %432

405:                                              ; preds = %352
  br label %406

406:                                              ; preds = %405, %341
  %407 = load ptr, ptr %7, align 8, !tbaa !5
  %408 = getelementptr inbounds %class.BaseQuery, ptr %407, i32 0, i32 2
  %409 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  invoke void @_ZN5ArrayImE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %408, i64 noundef %409)
          to label %410 unwind label %336

410:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %411 = call ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %412 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %33, i32 0, i32 0
  store ptr %411, ptr %412, align 8
  br label %413

413:                                              ; preds = %424, %410
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %414 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %415 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %34, i32 0, i32 0
  store ptr %414, ptr %415, align 8
  %416 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br i1 %416, label %418, label %417

417:                                              ; preds = %413
  store i32 13, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %430

418:                                              ; preds = %413
  %419 = load ptr, ptr %7, align 8, !tbaa !5
  %420 = getelementptr inbounds %class.BaseQuery, ptr %419, i32 0, i32 2
  %421 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorImEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  %422 = load i64, ptr %421, align 8, !tbaa !9
  invoke void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %420, i64 noundef %422)
          to label %423 unwind label %426

423:                                              ; preds = %418
  br label %424

424:                                              ; preds = %423
  %425 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorImEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  br label %413, !llvm.loop !32

426:                                              ; preds = %418
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %12, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %432

430:                                              ; preds = %417
  %431 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret ptr %431

432:                                              ; preds = %426, %404, %336, %325
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %433

433:                                              ; preds = %432, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %434

434:                                              ; preds = %433, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %435

435:                                              ; preds = %434
  %436 = load ptr, ptr %12, align 8
  %437 = load i32, ptr %13, align 4
  %438 = insertvalue { ptr, i32 } poison, ptr %436, 0
  %439 = insertvalue { ptr, i32 } %438, i32 %437, 1
  resume { ptr, i32 } %439

440:                                              ; preds = %315
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setImSt4lessImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS18YCSBQueryGenerator", !15, i64 0, !6, i64 8, !16, i64 16}
!15 = !{!"_ZTS14QueryGenerator"}
!16 = !{!"double", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTS12ycsb_request", !20, i64 0, !10, i64 8, !7, i64 16}
!20 = !{!"_ZTS8access_t", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!19, !10, i64 8}
!28 = !{!19, !7, i64 16}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}


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

%class.mem_alloc = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_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 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@mem_allocator = external global %class.mem_alloc, align 1
@g_synth_table_size = external local_unnamed_addr global i64, align 8
@g_part_cnt = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@g_req_per_query = external local_unnamed_addr global i32, align 4
@g_mpr = external local_unnamed_addr global double, align 8
@g_part_per_txn = external local_unnamed_addr global i32, align 4
@g_data_perc = external local_unnamed_addr global double, align 8
@g_txn_read_perc = external local_unnamed_addr global double, align 8
@g_tup_read_perc = external local_unnamed_addr global double, align 8
@g_access_perc = external local_unnamed_addr global double, align 8
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload = external hidden unnamed_addr constant [70 x i8], align 1
@g_strict_ppt = external local_unnamed_addr global i8, align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@g_key_order = external local_unnamed_addr global i8, align 1

declare noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, i64 noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"class.std::set", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = tail call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 136)
  %12 = getelementptr inbounds i8, ptr %11, i64 112
  %13 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %14 = zext i32 %13 to i64
  tail call void @_ZN5ArrayIP12ycsb_requestE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %14)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  call void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %18 unwind label %30

18:                                               ; preds = %3
  %19 = urem i64 %17, 10000
  %20 = uitofp nneg i64 %19 to double
  %21 = fdiv double %20, 1.000000e+04
  %22 = load double, ptr @g_mpr, align 8, !tbaa !14
  %23 = fcmp olt double %21, %22
  %24 = load i32, ptr @g_part_per_txn, align 4
  %25 = zext i32 %24 to i64
  %.074 = select i1 %23, i64 %25, i64 1
  %26 = load double, ptr @g_data_perc, align 8, !tbaa !14
  %27 = fptoui double %26 to i64
  %28 = load ptr, ptr %15, align 8, !tbaa !9
  %29 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %32 unwind label %41

30:                                               ; preds = %3
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %201

32:                                               ; preds = %18
  %33 = urem i64 %29, 10000
  %34 = uitofp nneg i64 %33 to double
  %35 = fdiv double %34, 1.000000e+04
  %36 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %.not114 = icmp eq i32 %36, 0
  br i1 %.not114, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %162, %32
  %37 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %38 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = icmp eq i64 %37, %39
  br i1 %40, label %170, label %167

41:                                               ; preds = %18
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %201

.lr.ph:                                           ; preds = %32, %162
  %.075100 = phi i32 [ %.176, %162 ], [ 0, %32 ]
  %.07799 = phi i32 [ %163, %162 ], [ 0, %32 ]
  %43 = load ptr, ptr %15, align 8, !tbaa !9
  %44 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %45 unwind label %62

45:                                               ; preds = %.lr.ph
  %46 = urem i64 %44, 10000
  %47 = uitofp nneg i64 %46 to double
  %48 = fdiv double %47, 1.000000e+04
  %49 = load ptr, ptr %15, align 8, !tbaa !9
  %50 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %51 unwind label %64

51:                                               ; preds = %45
  %52 = urem i64 %50, 10000
  %53 = uitofp nneg i64 %52 to double
  %54 = fdiv double %53, 1.000000e+04
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %55 = invoke noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 24)
          to label %56 unwind label %66

56:                                               ; preds = %51
  %57 = load double, ptr @g_txn_read_perc, align 8, !tbaa !14
  %58 = fcmp uge double %35, %57
  %59 = load double, ptr @g_tup_read_perc, align 8
  %60 = fcmp uge double %48, %59
  %or.cond.not = select i1 %58, i1 %60, i1 false
  %storemerge = zext i1 %or.cond.not to i32
  store i32 %storemerge, ptr %55, align 8, !tbaa !15
  %61 = icmp eq i32 %.075100, 0
  br i1 %61, label %68, label %.preheader96

62:                                               ; preds = %.lr.ph
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %201

64:                                               ; preds = %45
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %201

66:                                               ; preds = %51
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %166

68:                                               ; preds = %56
  %69 = load double, ptr @g_access_perc, align 8, !tbaa !14
  %70 = fcmp olt double %54, %69
  %71 = load ptr, ptr %15, align 8, !tbaa !9
  br i1 %70, label %72, label %80

72:                                               ; preds = %68
  %73 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %74 unwind label %.loopexit.split-lp

74:                                               ; preds = %72
  %75 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %76 = zext i32 %75 to i64
  %77 = udiv i64 %27, %76
  %78 = urem i64 %73, %77
  %79 = mul i64 %78, %76
  br label %94

.loopexit97:                                      ; preds = %101, %105, %127, %130
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %166

.loopexit.split-lp:                               ; preds = %72, %.loopexit98
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %166

80:                                               ; preds = %68
  %81 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %82 unwind label %92

82:                                               ; preds = %80
  %83 = load i64, ptr @g_synth_table_size, align 8, !tbaa !19
  %84 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = udiv i64 %83, %85
  %87 = udiv i64 %27, %85
  %88 = sub i64 %86, %87
  %89 = urem i64 %81, %88
  %90 = add i64 %89, %87
  %91 = mul i64 %90, %85
  br label %94

92:                                               ; preds = %80
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %166

94:                                               ; preds = %82, %74
  %.pre-phi = phi i64 [ %85, %82 ], [ %76, %74 ]
  %.pn = phi i64 [ %91, %82 ], [ %79, %74 ]
  %.079 = add i64 %.pn, %1
  %95 = urem i64 %.079, %.pre-phi
  store i64 %95, ptr %6, align 8, !tbaa !19
  %96 = icmp eq i64 %95, %1
  br i1 %96, label %.loopexit98, label %97

97:                                               ; preds = %94
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 242, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload) #6
  unreachable

.preheader96:                                     ; preds = %56, %.preheader96.backedge
  %98 = load double, ptr @g_access_perc, align 8, !tbaa !14
  %99 = fcmp olt double %54, %98
  %100 = load ptr, ptr %15, align 8, !tbaa !9
  br i1 %99, label %101, label %105

101:                                              ; preds = %.preheader96
  %102 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %100)
          to label %103 unwind label %.loopexit97

103:                                              ; preds = %101
  %104 = urem i64 %102, %27
  br label %112

105:                                              ; preds = %.preheader96
  %106 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %100)
          to label %107 unwind label %.loopexit97

107:                                              ; preds = %105
  %108 = load i64, ptr @g_synth_table_size, align 8, !tbaa !19
  %109 = sub i64 %108, %27
  %110 = urem i64 %106, %109
  %111 = add i64 %110, %27
  br label %112

112:                                              ; preds = %107, %103
  %.180 = phi i64 [ %104, %103 ], [ %111, %107 ]
  %113 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %114 = zext i32 %113 to i64
  %115 = urem i64 %.180, %114
  store i64 %115, ptr %6, align 8, !tbaa !19
  %116 = load i8, ptr @g_strict_ppt, align 1, !tbaa !20, !range !22, !noundef !23
  %117 = trunc nuw i8 %116 to i1
  br i1 %117, label %118, label %130

118:                                              ; preds = %112
  %119 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %120 = icmp ult i64 %119, %.074
  br i1 %120, label %121, label %130

121:                                              ; preds = %118
  %122 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %123 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %124 = sub i32 %123, %.075100
  %125 = zext i32 %124 to i64
  %126 = add i64 %122, %125
  %.not = icmp ult i64 %126, %.074
  br i1 %.not, label %130, label %127

127:                                              ; preds = %121
  %128 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %129 unwind label %.loopexit97

129:                                              ; preds = %127
  %.not82 = icmp eq i64 %128, 0
  br i1 %.not82, label %130, label %.preheader96.backedge

.preheader96.backedge:                            ; preds = %129, %133
  br label %.preheader96, !llvm.loop !24

130:                                              ; preds = %129, %121, %118, %112
  %131 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %132 unwind label %.loopexit97

132:                                              ; preds = %130
  %.not83 = icmp eq i64 %131, 0
  br i1 %.not83, label %133, label %.loopexit98

133:                                              ; preds = %132
  %134 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %135 = icmp eq i64 %134, %.074
  br i1 %135, label %.preheader96.backedge, label %.loopexit98

.loopexit98:                                      ; preds = %132, %133, %94
  %.281 = phi i64 [ %.079, %94 ], [ %.180, %133 ], [ %.180, %132 ]
  %136 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %137 unwind label %.loopexit.split-lp

137:                                              ; preds = %.loopexit98
  %138 = load i64, ptr @g_synth_table_size, align 8, !tbaa !19
  %139 = icmp ult i64 %.281, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 263, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload) #6
  unreachable

141:                                              ; preds = %137
  %142 = getelementptr inbounds i8, ptr %55, i64 8
  store i64 %.281, ptr %142, align 8, !tbaa !26
  %143 = load ptr, ptr %15, align 8, !tbaa !9
  %144 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %143)
          to label %145 unwind label %156

145:                                              ; preds = %141
  %146 = trunc i64 %144 to i8
  %147 = getelementptr inbounds i8, ptr %55, i64 16
  store i8 %146, ptr %147, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %148 = invoke ptr @_ZNSt3setImSt4lessImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %149 unwind label %158

149:                                              ; preds = %145
  store ptr %148, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %150 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %150, ptr %8, align 8
  %151 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br i1 %151, label %152, label %160

152:                                              ; preds = %149
  %153 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %154 unwind label %156

154:                                              ; preds = %152
  %155 = add nsw i32 %.075100, 1
  call void @_ZN5ArrayIP12ycsb_requestE3addES1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull %55)
  br label %162

156:                                              ; preds = %152, %141
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %166

158:                                              ; preds = %145
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %166

160:                                              ; preds = %149
  %161 = add i32 %.07799, -1
  br label %162

162:                                              ; preds = %154, %160
  %.178 = phi i32 [ %.07799, %154 ], [ %161, %160 ]
  %.176 = phi i32 [ %155, %154 ], [ %.075100, %160 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %163 = add i32 %.178, 1
  %164 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %165 = icmp ult i32 %163, %164
  br i1 %165, label %.lr.ph, label %._crit_edge, !llvm.loop !28

166:                                              ; preds = %.loopexit97, %.loopexit.split-lp, %92, %158, %156, %66
  %.pn84.pn.pn = phi { ptr, i32 } [ %67, %66 ], [ %93, %92 ], [ %157, %156 ], [ %159, %158 ], [ %lpad.loopexit, %.loopexit97 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %201

167:                                              ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 282, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator16gen_requests_hotEmP8Workload) #6
  unreachable

168:                                              ; preds = %.loopexit
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %201

170:                                              ; preds = %._crit_edge
  %171 = load i8, ptr @g_key_order, align 1, !tbaa !20, !range !22, !noundef !23
  %172 = trunc nuw i8 %171 to i1
  br i1 %172, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %170
  %173 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %.not115 = icmp eq i64 %173, 0
  br i1 %.not115, label %.loopexit, label %.lr.ph110

.lr.ph110:                                        ; preds = %.preheader, %._crit_edge108
  %.062109 = phi i64 [ %176, %._crit_edge108 ], [ 0, %.preheader ]
  %174 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %.0103 = add i64 %174, -1
  %175 = icmp ugt i64 %.0103, %.062109
  br i1 %175, label %.lr.ph107, label %._crit_edge108

._crit_edge108:                                   ; preds = %188, %.lr.ph110
  %176 = add nuw i64 %.062109, 1
  %177 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %178 = icmp ult i64 %176, %177
  br i1 %178, label %.lr.ph110, label %.loopexit, !llvm.loop !29

.lr.ph107:                                        ; preds = %.lr.ph110, %188
  %.0105 = phi i64 [ %.0, %188 ], [ %.0103, %.lr.ph110 ]
  %.0.in104 = phi i64 [ %.0105, %188 ], [ %174, %.lr.ph110 ]
  %179 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.0105)
  %180 = getelementptr inbounds i8, ptr %179, i64 8
  %181 = load i64, ptr %180, align 8, !tbaa !26
  %182 = add i64 %.0.in104, -2
  %183 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %182)
  %184 = getelementptr inbounds i8, ptr %183, i64 8
  %185 = load i64, ptr %184, align 8, !tbaa !26
  %186 = icmp ult i64 %181, %185
  br i1 %186, label %187, label %188

187:                                              ; preds = %.lr.ph107
  call void @_ZN5ArrayIP12ycsb_requestE4swapEmm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.0105, i64 noundef %182)
  br label %188

188:                                              ; preds = %.lr.ph107, %187
  %.0 = add i64 %.0105, -1
  %189 = icmp ugt i64 %.0, %.062109
  br i1 %189, label %.lr.ph107, label %._crit_edge108, !llvm.loop !30

.loopexit:                                        ; preds = %._crit_edge108, %.preheader, %170
  %190 = getelementptr inbounds i8, ptr %11, i64 16
  %191 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  invoke void @_ZN5ArrayImE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %191)
          to label %192 unwind label %168

192:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %193 = call ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %193, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %194 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %194, ptr %10, align 8
  %195 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %195, label %.lr.ph112, label %._crit_edge113

._crit_edge113:                                   ; preds = %.lr.ph112, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret ptr %11

.lr.ph112:                                        ; preds = %192, %.lr.ph112
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorImEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %197 = load i64, ptr %196, align 8, !tbaa !19
  call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %197)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorImEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %199 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %199, ptr %10, align 8
  %200 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %200, label %.lr.ph112, label %._crit_edge113, !llvm.loop !31

201:                                              ; preds = %41, %62, %166, %64, %168, %30
  %.pn84.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %31, %30 ], [ %42, %41 ], [ %169, %168 ], [ %63, %62 ], [ %.pn84.pn.pn, %166 ], [ %65, %64 ]
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn84.pn.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setImSt4lessImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTS18YCSBQueryGenerator", !11, i64 0, !12, i64 8, !13, i64 16}
!11 = !{!"_ZTS14QueryGenerator"}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS12ycsb_request", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTS8access_t", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!16, !18, i64 8}
!27 = !{!16, !7, i64 16}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}


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