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

; 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::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%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_zipf_theta = external global double, align 8
@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_part_per_txn = external global i32, align 4
@g_txn_read_perc = external global double, align 8
@g_tup_read_perc = external global double, align 8
@g_strict_ppt = external global i8, align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@g_key_order = external global i8, align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload = external hidden unnamed_addr constant [71 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x 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 uwtable
define dso_local noundef ptr @_ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr noundef %2) #3 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 i64, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = 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
  %31 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %32 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 136)
  store ptr %32, ptr %7, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN9YCSBQueryC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %33)
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.YCSBQuery, ptr %34, i32 0, i32 1
  %36 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %37 = zext i32 %36 to i64
  call void @_ZN5ArrayIP12ycsb_requestE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37)
  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
  %38 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %39 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %40 = zext i32 %39 to i64
  %41 = udiv i64 %38, %40
  store i64 %41, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %42 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %31, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %45 unwind label %54

45:                                               ; preds = %3
  %46 = urem i64 %44, 10000
  %47 = uitofp i64 %46 to double
  %48 = fdiv double %47, 1.000000e+04
  store double %48, ptr %12, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %232, %45
  %50 = load i32, ptr %16, align 4, !tbaa !11
  %51 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %52 = icmp ult i32 %50, %51
  br i1 %52, label %58, label %53

53:                                               ; preds = %49
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %240

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

58:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %59 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %31, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %62 unwind label %70

62:                                               ; preds = %58
  %63 = urem i64 %61, 10000
  %64 = uitofp i64 %63 to double
  %65 = fdiv double %64, 1.000000e+04
  store double %65, ptr %18, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %66 = load i32, ptr %15, align 4, !tbaa !11
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %74

68:                                               ; preds = %62
  %69 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %69, ptr %19, align 8, !tbaa !9
  br label %125

70:                                               ; preds = %58
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  br label %239

74:                                               ; preds = %62
  %75 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %31, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %78 unwind label %119

78:                                               ; preds = %74
  %79 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %80 = zext i32 %79 to i64
  %81 = urem i64 %77, %80
  store i64 %81, ptr %19, align 8, !tbaa !9
  %82 = load i8, ptr @g_strict_ppt, align 1, !tbaa !18, !range !20, !noundef !21
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %124

84:                                               ; preds = %78
  %85 = load i32, ptr @g_part_per_txn, align 4, !tbaa !11
  %86 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %87 = icmp ule i32 %85, %86
  br i1 %87, label %88, label %124

88:                                               ; preds = %84
  br label %89

89:                                               ; preds = %115, %88
  %90 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %91 = load i32, ptr @g_part_per_txn, align 4, !tbaa !11
  %92 = zext i32 %91 to i64
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %89
  %95 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %96 unwind label %119

96:                                               ; preds = %94
  %97 = icmp ugt i64 %95, 0
  br i1 %97, label %109, label %98

98:                                               ; preds = %96, %89
  %99 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %100 = load i32, ptr @g_part_per_txn, align 4, !tbaa !11
  %101 = zext i32 %100 to i64
  %102 = icmp eq i64 %99, %101
  br i1 %102, label %103, label %107

103:                                              ; preds = %98
  %104 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %105 unwind label %119

105:                                              ; preds = %103
  %106 = icmp eq i64 %104, 0
  br label %107

107:                                              ; preds = %105, %98
  %108 = phi i1 [ false, %98 ], [ %106, %105 ]
  br label %109

109:                                              ; preds = %107, %96
  %110 = phi i1 [ true, %96 ], [ %108, %107 ]
  br i1 %110, label %111, label %123

111:                                              ; preds = %109
  %112 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %31, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !13
  %114 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %115 unwind label %119

115:                                              ; preds = %111
  %116 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %117 = zext i32 %116 to i64
  %118 = urem i64 %114, %117
  store i64 %118, ptr %19, align 8, !tbaa !9
  br label %89, !llvm.loop !22

119:                                              ; preds = %111, %103, %94, %74
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %13, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %14, align 4
  br label %238

123:                                              ; preds = %109
  br label %124

124:                                              ; preds = %123, %84, %78
  br label %125

125:                                              ; preds = %124, %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %126 = invoke noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 24)
          to label %127 unwind label %138

127:                                              ; preds = %125
  store ptr %126, ptr %20, align 8, !tbaa !5
  %128 = load double, ptr %12, align 8, !tbaa !17
  %129 = load double, ptr @g_txn_read_perc, align 8, !tbaa !17
  %130 = fcmp olt double %128, %129
  br i1 %130, label %135, label %131

131:                                              ; preds = %127
  %132 = load double, ptr %18, align 8, !tbaa !17
  %133 = load double, ptr @g_tup_read_perc, align 8, !tbaa !17
  %134 = fcmp olt double %132, %133
  br i1 %134, label %135, label %142

135:                                              ; preds = %131, %127
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.ycsb_request, ptr %136, i32 0, i32 0
  store i32 0, ptr %137, align 8, !tbaa !24
  br label %145

138:                                              ; preds = %125
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %13, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %14, align 4
  br label %237

142:                                              ; preds = %131
  %143 = load ptr, ptr %20, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.ycsb_request, ptr %143, i32 0, i32 0
  store i32 1, ptr %144, align 8, !tbaa !24
  br label %145

145:                                              ; preds = %142, %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %146 = load i64, ptr %11, align 8, !tbaa !9
  %147 = sub i64 %146, 1
  %148 = load double, ptr @g_zipf_theta, align 8, !tbaa !17
  %149 = invoke noundef i64 @_ZN18YCSBQueryGenerator4zipfEmd(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %147, double noundef %148)
          to label %150 unwind label %156

150:                                              ; preds = %145
  store i64 %149, ptr %21, align 8, !tbaa !9
  %151 = load i64, ptr %21, align 8, !tbaa !9
  %152 = load i64, ptr %11, align 8, !tbaa !9
  %153 = icmp ult i64 %151, %152
  br i1 %153, label %154, label %155

154:                                              ; preds = %150
  br label %161

155:                                              ; preds = %150
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 336, ptr noundef @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload) #6
  unreachable

156:                                              ; preds = %145
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %13, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %14, align 4
  br label %236

160:                                              ; No predecessors!
  br label %161

161:                                              ; preds = %160, %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %162 = load i64, ptr %21, align 8, !tbaa !9
  %163 = load i32, ptr @g_part_cnt, align 4, !tbaa !11
  %164 = zext i32 %163 to i64
  %165 = mul i64 %162, %164
  %166 = load i64, ptr %19, align 8, !tbaa !9
  %167 = add i64 %165, %166
  store i64 %167, ptr %22, align 8, !tbaa !9
  %168 = load i64, ptr %22, align 8, !tbaa !9
  %169 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %170 = icmp ult i64 %168, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %161
  br label %174

172:                                              ; preds = %161
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 338, ptr noundef @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload) #6
  unreachable

173:                                              ; No predecessors!
  br label %174

174:                                              ; preds = %173, %171
  %175 = load i64, ptr %22, align 8, !tbaa !9
  %176 = load ptr, ptr %20, align 8, !tbaa !5
  %177 = getelementptr inbounds %class.ycsb_request, ptr %176, i32 0, i32 2
  store i64 %175, ptr %177, align 8, !tbaa !27
  %178 = getelementptr inbounds %class.YCSBQueryGenerator, ptr %31, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !13
  %180 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %179)
          to label %181 unwind label %205

181:                                              ; preds = %174
  %182 = urem i64 %180, 256
  %183 = trunc i64 %182 to i8
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = getelementptr inbounds %class.ycsb_request, ptr %184, i32 0, i32 3
  store i8 %183, ptr %185, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = getelementptr inbounds %class.ycsb_request, ptr %186, i32 0, i32 2
  %188 = invoke ptr @_ZNSt3setImSt4lessImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %187)
          to label %189 unwind label %209

189:                                              ; preds = %181
  %190 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %23, i32 0, i32 0
  store ptr %188, ptr %190, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %191 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %192 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %24, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  %193 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br i1 %193, label %194, label %213

194:                                              ; preds = %189
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = getelementptr inbounds %class.ycsb_request, ptr %195, i32 0, i32 2
  %197 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %196)
          to label %198 unwind label %205

198:                                              ; preds = %194
  %199 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %200 = extractvalue { ptr, i8 } %197, 0
  store ptr %200, ptr %199, align 8
  %201 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %202 = extractvalue { ptr, i8 } %197, 1
  store i8 %202, ptr %201, align 8
  %203 = load i64, ptr %8, align 8, !tbaa !9
  %204 = add i64 %203, 1
  store i64 %204, ptr %8, align 8, !tbaa !9
  br label %216

205:                                              ; preds = %218, %216, %194, %174
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %13, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %14, align 4
  br label %235

209:                                              ; preds = %181
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %13, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %235

213:                                              ; preds = %189
  %214 = load i32, ptr %16, align 4, !tbaa !11
  %215 = add i32 %214, -1
  store i32 %215, ptr %16, align 4, !tbaa !11
  store i32 4, ptr %17, align 4
  br label %229

216:                                              ; preds = %198
  %217 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %218 unwind label %205

218:                                              ; preds = %216
  %219 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %220 = extractvalue { ptr, i8 } %217, 0
  store ptr %220, ptr %219, align 8
  %221 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %222 = extractvalue { ptr, i8 } %217, 1
  store i8 %222, ptr %221, align 8
  %223 = load i32, ptr %15, align 4, !tbaa !11
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %15, align 4, !tbaa !11
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = getelementptr inbounds %class.YCSBQuery, ptr %225, i32 0, i32 1
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZN5ArrayIP12ycsb_requestE3addES1_(ptr noundef nonnull align 8 dereferenceable(24) %226, ptr noundef %227)
          to label %228 unwind label %205

228:                                              ; preds = %218
  store i32 0, ptr %17, align 4
  br label %229

229:                                              ; preds = %228, %213
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %230 = load i32, ptr %17, align 4
  switch i32 %230, label %353 [
    i32 0, label %231
    i32 4, label %232
  ]

231:                                              ; preds = %229
  br label %232

232:                                              ; preds = %231, %229
  %233 = load i32, ptr %16, align 4, !tbaa !11
  %234 = add i32 %233, 1
  store i32 %234, ptr %16, align 4, !tbaa !11
  br label %49, !llvm.loop !29

235:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %236

236:                                              ; preds = %235, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %237

237:                                              ; preds = %236, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %238

238:                                              ; preds = %237, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %239

239:                                              ; preds = %238, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %346

240:                                              ; preds = %53
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = getelementptr inbounds %class.YCSBQuery, ptr %241, i32 0, i32 1
  %243 = invoke noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %242)
          to label %244 unwind label %250

244:                                              ; preds = %240
  %245 = load i32, ptr @g_req_per_query, align 4, !tbaa !11
  %246 = zext i32 %245 to i64
  %247 = icmp eq i64 %243, %246
  br i1 %247, label %248, label %249

248:                                              ; preds = %244
  br label %255

249:                                              ; preds = %244
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 356, ptr noundef @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload) #6
  unreachable

250:                                              ; preds = %320, %240
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %13, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %14, align 4
  br label %346

254:                                              ; No predecessors!
  br label %255

255:                                              ; preds = %254, %248
  %256 = load i8, ptr @g_key_order, align 1, !tbaa !18, !range !20, !noundef !21
  %257 = trunc i8 %256 to i1
  br i1 %257, label %258, label %320

258:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %259

259:                                              ; preds = %315, %258
  %260 = load i64, ptr %27, align 8, !tbaa !9
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = getelementptr inbounds %class.YCSBQuery, ptr %261, i32 0, i32 1
  %263 = invoke noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %262)
          to label %264 unwind label %267

264:                                              ; preds = %259
  %265 = icmp ult i64 %260, %263
  br i1 %265, label %271, label %266

266:                                              ; preds = %264
  store i32 7, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %319

267:                                              ; preds = %259
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %13, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %14, align 4
  br label %318

271:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %class.YCSBQuery, ptr %272, i32 0, i32 1
  %274 = invoke noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %273)
          to label %275 unwind label %282

275:                                              ; preds = %271
  %276 = sub i64 %274, 1
  store i64 %276, ptr %28, align 8, !tbaa !9
  br label %277

277:                                              ; preds = %311, %275
  %278 = load i64, ptr %28, align 8, !tbaa !9
  %279 = load i64, ptr %27, align 8, !tbaa !9
  %280 = icmp ugt i64 %278, %279
  br i1 %280, label %286, label %281

281:                                              ; preds = %277
  store i32 10, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %314

282:                                              ; preds = %303, %291, %286, %271
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %13, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %318

286:                                              ; preds = %277
  %287 = load ptr, ptr %7, align 8, !tbaa !5
  %288 = getelementptr inbounds %class.YCSBQuery, ptr %287, i32 0, i32 1
  %289 = load i64, ptr %28, align 8, !tbaa !9
  %290 = invoke noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %289)
          to label %291 unwind label %282

291:                                              ; preds = %286
  %292 = getelementptr inbounds %class.ycsb_request, ptr %290, i32 0, i32 2
  %293 = load i64, ptr %292, align 8, !tbaa !27
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = getelementptr inbounds %class.YCSBQuery, ptr %294, i32 0, i32 1
  %296 = load i64, ptr %28, align 8, !tbaa !9
  %297 = sub i64 %296, 1
  %298 = invoke noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %295, i64 noundef %297)
          to label %299 unwind label %282

299:                                              ; preds = %291
  %300 = getelementptr inbounds %class.ycsb_request, ptr %298, i32 0, i32 2
  %301 = load i64, ptr %300, align 8, !tbaa !27
  %302 = icmp ult i64 %293, %301
  br i1 %302, label %303, label %310

303:                                              ; preds = %299
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = getelementptr inbounds %class.YCSBQuery, ptr %304, i32 0, i32 1
  %306 = load i64, ptr %28, align 8, !tbaa !9
  %307 = load i64, ptr %28, align 8, !tbaa !9
  %308 = sub i64 %307, 1
  invoke void @_ZN5ArrayIP12ycsb_requestE4swapEmm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %306, i64 noundef %308)
          to label %309 unwind label %282

309:                                              ; preds = %303
  br label %310

310:                                              ; preds = %309, %299
  br label %311

311:                                              ; preds = %310
  %312 = load i64, ptr %28, align 8, !tbaa !9
  %313 = add i64 %312, -1
  store i64 %313, ptr %28, align 8, !tbaa !9
  br label %277, !llvm.loop !30

314:                                              ; preds = %281
  br label %315

315:                                              ; preds = %314
  %316 = load i64, ptr %27, align 8, !tbaa !9
  %317 = add i64 %316, 1
  store i64 %317, ptr %27, align 8, !tbaa !9
  br label %259, !llvm.loop !31

318:                                              ; preds = %282, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %346

319:                                              ; preds = %266
  br label %320

320:                                              ; preds = %319, %255
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = getelementptr inbounds %class.BaseQuery, ptr %321, i32 0, i32 2
  %323 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  invoke void @_ZN5ArrayImE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %322, i64 noundef %323)
          to label %324 unwind label %250

324:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %325 = call ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %326 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %325, ptr %326, align 8
  br label %327

327:                                              ; preds = %338, %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %328 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  %329 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %30, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  %330 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorImES2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br i1 %330, label %332, label %331

331:                                              ; preds = %327
  store i32 13, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %344

332:                                              ; preds = %327
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = getelementptr inbounds %class.BaseQuery, ptr %333, i32 0, i32 2
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorImEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  %336 = load i64, ptr %335, align 8, !tbaa !9
  invoke void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %334, i64 noundef %336)
          to label %337 unwind label %340

337:                                              ; preds = %332
  br label %338

338:                                              ; preds = %337
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorImEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br label %327, !llvm.loop !32

340:                                              ; preds = %332
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %13, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %346

344:                                              ; preds = %331
  %345 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #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 %345

346:                                              ; preds = %340, %318, %250, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %347

347:                                              ; preds = %346, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #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
  br label %348

348:                                              ; preds = %347
  %349 = load ptr, ptr %13, align 8
  %350 = load i32, ptr %14, align 4
  %351 = insertvalue { ptr, i32 } poison, ptr %349, 0
  %352 = insertvalue { ptr, i32 } %351, i32 %350, 1
  resume { ptr, i32 } %352

353:                                              ; preds = %229
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 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)) #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 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)) #3 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)) #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 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)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9YCSBQueryC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) 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 = { 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 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 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 #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, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !26, i64 0}
!25 = !{!"_ZTS12ycsb_request", !26, i64 0, !10, i64 8, !7, i64 16}
!26 = !{!"_ZTS8access_t", !7, i64 0}
!27 = !{!25, !10, i64 8}
!28 = !{!25, !7, i64 16}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}


; 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_zipf_theta = external local_unnamed_addr global double, align 8
@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_part_per_txn = external local_unnamed_addr global i32, align 4
@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_strict_ppt = external local_unnamed_addr global 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
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload = external hidden unnamed_addr constant [71 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x 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 uwtable
define dso_local noundef ptr @_ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #3 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)
  tail call void @_ZN9YCSBQueryC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %11)
  %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 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %16 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = udiv i64 %15, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %22 unwind label %32

22:                                               ; preds = %3
  %23 = urem i64 %21, 10000
  %24 = uitofp nneg i64 %23 to double
  %25 = fdiv double %24, 1.000000e+04
  %26 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %.not95 = icmp eq i32 %26, 0
  br i1 %.not95, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %27 = add i64 %18, -1
  br label %34

._crit_edge:                                      ; preds = %124, %22
  %28 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %29 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = icmp eq i64 %28, %30
  br i1 %31, label %132, label %129

32:                                               ; preds = %3
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %163

34:                                               ; preds = %.lr.ph, %124
  %.06082 = phi i32 [ 0, %.lr.ph ], [ %.161, %124 ]
  %.06281 = phi i32 [ 0, %.lr.ph ], [ %125, %124 ]
  %35 = load ptr, ptr %19, align 8, !tbaa !11
  %36 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %37 unwind label %43

37:                                               ; preds = %34
  %38 = urem i64 %36, 10000
  %39 = uitofp nneg i64 %38 to double
  %40 = fdiv double %39, 1.000000e+04
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %41 = icmp eq i32 %.06082, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %37
  store i64 %1, ptr %6, align 8, !tbaa !9
  br label %.critedge2

43:                                               ; preds = %34
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %163

45:                                               ; preds = %37
  %46 = load ptr, ptr %19, align 8, !tbaa !11
  %47 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %48 unwind label %.loopexit.split-lp

48:                                               ; preds = %45
  %49 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %50 = zext i32 %49 to i64
  %51 = urem i64 %47, %50
  store i64 %51, ptr %6, align 8, !tbaa !9
  %52 = load i8, ptr @g_strict_ppt, align 1, !tbaa !16, !range !18, !noundef !19
  %53 = trunc nuw i8 %52 to i1
  %54 = load i32, ptr @g_part_per_txn, align 4
  %.not = icmp ule i32 %54, %49
  %or.cond76.not = select i1 %53, i1 %.not, i1 false
  br i1 %or.cond76.not, label %.preheader79, label %.critedge2

.preheader79:                                     ; preds = %48, %73
  %55 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %56 = load i32, ptr @g_part_per_txn, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %.preheader79
  %60 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %61 unwind label %.loopexit80

61:                                               ; preds = %59
  %.not66 = icmp eq i64 %60, 0
  br i1 %.not66, label %62, label %.critedge

62:                                               ; preds = %61, %.preheader79
  %63 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %64 = load i32, ptr @g_part_per_txn, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = icmp eq i64 %63, %65
  br i1 %66, label %67, label %.critedge2

67:                                               ; preds = %62
  %68 = invoke noundef i64 @_ZNKSt3setImSt4lessImESaImEE5countERKm(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %69 unwind label %.loopexit80

69:                                               ; preds = %67
  %70 = icmp eq i64 %68, 0
  br i1 %70, label %.critedge, label %.critedge2

.critedge:                                        ; preds = %61, %69
  %71 = load ptr, ptr %19, align 8, !tbaa !11
  %72 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %73 unwind label %.loopexit80

73:                                               ; preds = %.critedge
  %74 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = urem i64 %72, %75
  store i64 %76, ptr %6, align 8, !tbaa !9
  br label %.preheader79, !llvm.loop !20

.loopexit80:                                      ; preds = %59, %67, %.critedge
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %128

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

.critedge2:                                       ; preds = %62, %69, %48, %42
  %77 = invoke noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 24)
          to label %78 unwind label %85

78:                                               ; preds = %.critedge2
  %79 = load double, ptr @g_txn_read_perc, align 8, !tbaa !22
  %80 = fcmp uge double %25, %79
  %81 = load double, ptr @g_tup_read_perc, align 8
  %82 = fcmp uge double %40, %81
  %or.cond.not = select i1 %80, i1 %82, i1 false
  %storemerge = zext i1 %or.cond.not to i32
  store i32 %storemerge, ptr %77, align 8, !tbaa !23
  %83 = load double, ptr @g_zipf_theta, align 8, !tbaa !22
  %84 = invoke noundef i64 @_ZN18YCSBQueryGenerator4zipfEmd(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %27, double noundef %83)
          to label %87 unwind label %90

85:                                               ; preds = %.critedge2
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %128

87:                                               ; preds = %78
  %88 = icmp ult i64 %84, %18
  br i1 %88, label %92, label %89

89:                                               ; preds = %87
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 336, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload) #6
  unreachable

90:                                               ; preds = %78
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %128

92:                                               ; preds = %87
  %93 = load i32, ptr @g_part_cnt, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = mul i64 %84, %94
  %96 = load i64, ptr %6, align 8, !tbaa !9
  %97 = add i64 %95, %96
  %98 = load i64, ptr @g_synth_table_size, align 8, !tbaa !9
  %99 = icmp ult i64 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %92
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 338, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18YCSBQueryGenerator17gen_requests_zipfEmP8Workload) #6
  unreachable

101:                                              ; preds = %92
  %102 = getelementptr inbounds i8, ptr %77, i64 8
  store i64 %97, ptr %102, align 8, !tbaa !26
  %103 = load ptr, ptr %19, align 8, !tbaa !11
  %104 = invoke noundef i64 @_ZN6myrand4nextEv(ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %105 unwind label %116

105:                                              ; preds = %101
  %106 = trunc i64 %104 to i8
  %107 = getelementptr inbounds i8, ptr %77, i64 16
  store i8 %106, ptr %107, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %108 = invoke ptr @_ZNSt3setImSt4lessImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %109 unwind label %118

109:                                              ; preds = %105
  store ptr %108, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %110 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %110, ptr %8, align 8
  %111 = 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 %111, label %112, label %120

112:                                              ; preds = %109
  %113 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %114 unwind label %116

114:                                              ; preds = %112
  %115 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %122 unwind label %116

116:                                              ; preds = %114, %112, %101
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %128

118:                                              ; preds = %105
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %128

120:                                              ; preds = %109
  %121 = add i32 %.06281, -1
  br label %124

122:                                              ; preds = %114
  %123 = add nsw i32 %.06082, 1
  call void @_ZN5ArrayIP12ycsb_requestE3addES1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull %77)
  br label %124

124:                                              ; preds = %122, %120
  %.163 = phi i32 [ %.06281, %122 ], [ %121, %120 ]
  %.161 = phi i32 [ %123, %122 ], [ %.06082, %120 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %125 = add i32 %.163, 1
  %126 = load i32, ptr @g_req_per_query, align 4, !tbaa !5
  %127 = icmp ult i32 %125, %126
  br i1 %127, label %34, label %._crit_edge, !llvm.loop !28

128:                                              ; preds = %.loopexit80, %.loopexit.split-lp, %85, %116, %118, %90
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %86, %85 ], [ %91, %90 ], [ %117, %116 ], [ %119, %118 ], [ %lpad.loopexit, %.loopexit80 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %163

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

130:                                              ; preds = %.loopexit
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %163

132:                                              ; preds = %._crit_edge
  %133 = load i8, ptr @g_key_order, align 1, !tbaa !16, !range !18, !noundef !19
  %134 = trunc nuw i8 %133 to i1
  br i1 %134, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %132
  %135 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %.not96 = icmp eq i64 %135, 0
  br i1 %.not96, label %.loopexit, label %.lr.ph91

.lr.ph91:                                         ; preds = %.preheader, %._crit_edge89
  %.04990 = phi i64 [ %138, %._crit_edge89 ], [ 0, %.preheader ]
  %136 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %.084 = add i64 %136, -1
  %137 = icmp ugt i64 %.084, %.04990
  br i1 %137, label %.lr.ph88, label %._crit_edge89

._crit_edge89:                                    ; preds = %150, %.lr.ph91
  %138 = add nuw i64 %.04990, 1
  %139 = call noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %140 = icmp ult i64 %138, %139
  br i1 %140, label %.lr.ph91, label %.loopexit, !llvm.loop !29

.lr.ph88:                                         ; preds = %.lr.ph91, %150
  %.086 = phi i64 [ %.0, %150 ], [ %.084, %.lr.ph91 ]
  %.0.in85 = phi i64 [ %.086, %150 ], [ %136, %.lr.ph91 ]
  %141 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.086)
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %143 = load i64, ptr %142, align 8, !tbaa !26
  %144 = add i64 %.0.in85, -2
  %145 = call noundef ptr @_ZN5ArrayIP12ycsb_requestEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %144)
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  %147 = load i64, ptr %146, align 8, !tbaa !26
  %148 = icmp ult i64 %143, %147
  br i1 %148, label %149, label %150

149:                                              ; preds = %.lr.ph88
  call void @_ZN5ArrayIP12ycsb_requestE4swapEmm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.086, i64 noundef %144)
  br label %150

150:                                              ; preds = %.lr.ph88, %149
  %.0 = add i64 %.086, -1
  %151 = icmp ugt i64 %.0, %.04990
  br i1 %151, label %.lr.ph88, label %._crit_edge89, !llvm.loop !30

.loopexit:                                        ; preds = %._crit_edge89, %.preheader, %132
  %152 = getelementptr inbounds i8, ptr %11, i64 16
  %153 = call noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  invoke void @_ZN5ArrayImE4initEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %153)
          to label %154 unwind label %130

154:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %155 = call ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %155, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %156 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %156, ptr %10, align 8
  %157 = 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 %157, label %.lr.ph93, label %._crit_edge94

._crit_edge94:                                    ; preds = %.lr.ph93, %154
  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.ph93:                                         ; preds = %154, %.lr.ph93
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorImEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %159 = load i64, ptr %158, align 8, !tbaa !9
  call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %159)
  %160 = 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
  %161 = call ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %161, ptr %10, align 8
  %162 = 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 %162, label %.lr.ph93, label %._crit_edge94, !llvm.loop !31

163:                                              ; preds = %130, %128, %43, %32
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %131, %130 ], [ %.pn.pn.pn.pn, %128 ], [ %44, %43 ]
  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 } %.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5ArrayIP12ycsb_requestE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ArrayIP12ycsb_requestE4initEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 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 #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setImSt4lessImESaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 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 #3 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 #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setImSt4lessImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 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 #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setImSt4lessImESaImEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 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 #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9YCSBQueryC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) 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 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 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 #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTS18YCSBQueryGenerator", !13, i64 0, !14, i64 8, !15, i64 16}
!13 = !{!"_ZTS14QueryGenerator"}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS12ycsb_request", !25, i64 0, !10, i64 8, !7, i64 16}
!25 = !{!"_ZTS8access_t", !7, i64 0}
!26 = !{!24, !10, i64 8}
!27 = !{!24, !7, i64 16}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}


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