; LLVM IR from recp/ds :: test/src (test_htable)

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

%struct.test_status_t = type { ptr, i32 }
%struct.HTable = type { ptr, ptr, ptr, ptr, i64, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@inserted_items = external hidden global [2000 x ptr], align 16
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_htable() #0 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [256 x i8], align 16
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %11 = call i32 @ds_prime_num(i32 noundef 3)
  store i32 %11, ptr %9, align 4, !tbaa !5
  %12 = load i32, ptr %9, align 4, !tbaa !5
  %13 = call ptr @hash_new_str(i32 noundef %12)
  store ptr %13, ptr %3, align 8, !tbaa !9
  br label %14

14:                                               ; preds = %0
  %15 = load ptr, ptr %3, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.HTable, ptr %15, i32 0, i32 5
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = icmp ugt i32 %17, 3
  br i1 %18, label %24, label %19

19:                                               ; preds = %14
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 25, ptr noundef @.str.2) #4
  %22 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %22, align 8, !tbaa !14
  %23 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %23, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

24:                                               ; preds = %14
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  store i32 1000, ptr %6, align 4, !tbaa !5
  %27 = call i64 @time(ptr noundef null) #4
  %28 = trunc i64 %27 to i32
  call void @srand(i32 noundef %28) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %75, %26
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = icmp ult i32 %30, 2
  br i1 %31, label %32, label %78

32:                                               ; preds = %29
  %33 = call i32 @rand() #4
  %34 = sext i32 %33 to i64
  %35 = urem i64 %34, 31
  %36 = trunc i64 %35 to i32
  store i32 %36, ptr %8, align 4, !tbaa !5
  %37 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  call void @rand_str(ptr noundef %37, i64 noundef %39)
  %40 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  %41 = call noalias ptr @strdup(ptr noundef %40) #4
  store ptr %41, ptr %5, align 8, !tbaa !9
  %42 = load ptr, ptr %3, align 8, !tbaa !9
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %42, ptr noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %3, align 8, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = call ptr @hash_get(ptr noundef %45, ptr noundef %46)
  store ptr %47, ptr %4, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %32
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  %50 = icmp ne ptr %49, null
  br i1 %50, label %56, label %51

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 42, ptr noundef @.str.3) #4
  %54 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %54, align 8, !tbaa !14
  %55 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %55, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

56:                                               ; preds = %48
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  %62 = icmp eq ptr %60, %61
  br i1 %62, label %68, label %63

63:                                               ; preds = %59
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 45, ptr noundef @.str.4) #4
  %66 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %66, align 8, !tbaa !14
  %67 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %67, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

68:                                               ; preds = %59
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds [2000 x ptr], ptr @inserted_items, i64 0, i64 %73
  store ptr %71, ptr %74, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %70
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add i32 %76, 1
  store i32 %77, ptr %7, align 4, !tbaa !5
  br label %29, !llvm.loop !17

78:                                               ; preds = %29
  %79 = load ptr, ptr %3, align 8, !tbaa !9
  call void @hash_resize(ptr noundef %79, i32 noundef 9)
  br label %80

80:                                               ; preds = %78
  %81 = load ptr, ptr %3, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.HTable, ptr %81, i32 0, i32 4
  %83 = load i64, ptr %82, align 8, !tbaa !19
  %84 = icmp eq i64 %83, 2
  br i1 %84, label %90, label %85

85:                                               ; preds = %80
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 51, ptr noundef @.str.5) #4
  %88 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %88, align 8, !tbaa !14
  %89 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %89, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

90:                                               ; preds = %80
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %193, %92
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = icmp ult i32 %94, %95
  br i1 %96, label %97, label %196

97:                                               ; preds = %93
  %98 = call i32 @rand() #4
  %99 = sext i32 %98 to i64
  %100 = urem i64 %99, 31
  %101 = trunc i64 %100 to i32
  store i32 %101, ptr %8, align 4, !tbaa !5
  %102 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  call void @rand_str(ptr noundef %102, i64 noundef %104)
  %105 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  %106 = call noalias ptr @strdup(ptr noundef %105) #4
  store ptr %106, ptr %5, align 8, !tbaa !9
  %107 = load ptr, ptr %3, align 8, !tbaa !9
  %108 = load ptr, ptr %5, align 8, !tbaa !9
  %109 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %107, ptr noundef %108, ptr noundef %109)
  %110 = load ptr, ptr %3, align 8, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !9
  %112 = call ptr @hash_get(ptr noundef %110, ptr noundef %111)
  store ptr %112, ptr %4, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %97
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = icmp ne ptr %114, null
  br i1 %115, label %121, label %116

116:                                              ; preds = %113
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 64, ptr noundef @.str.3) #4
  %119 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %119, align 8, !tbaa !14
  %120 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %120, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

121:                                              ; preds = %113
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = load ptr, ptr %5, align 8, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  %127 = icmp eq ptr %125, %126
  br i1 %127, label %133, label %128

128:                                              ; preds = %124
  %129 = load ptr, ptr @stderr, align 8, !tbaa !9
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 67, ptr noundef @.str.4) #4
  %131 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %131, align 8, !tbaa !14
  %132 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %132, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

133:                                              ; preds = %124
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds [2000 x ptr], ptr @inserted_items, i64 0, i64 %138
  store ptr %136, ptr %139, align 8, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %148, label %142

142:                                              ; preds = %135
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = icmp eq i32 %143, 10
  br i1 %144, label %148, label %145

145:                                              ; preds = %142
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = icmp eq i32 %146, 50
  br i1 %147, label %148, label %192

148:                                              ; preds = %145, %142, %135
  %149 = load ptr, ptr %3, align 8, !tbaa !9
  %150 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_unset(ptr noundef %149, ptr noundef %150)
  %151 = load ptr, ptr %3, align 8, !tbaa !9
  %152 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_unset(ptr noundef %151, ptr noundef %152)
  %153 = load ptr, ptr %3, align 8, !tbaa !9
  %154 = load ptr, ptr %5, align 8, !tbaa !9
  %155 = call ptr @hash_get(ptr noundef %153, ptr noundef %154)
  store ptr %155, ptr %4, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %148
  %157 = load ptr, ptr %4, align 8, !tbaa !9
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %164

159:                                              ; preds = %156
  %160 = load ptr, ptr @stderr, align 8, !tbaa !9
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 77, ptr noundef @.str.6) #4
  %162 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %162, align 8, !tbaa !14
  %163 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %163, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

164:                                              ; preds = %156
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %3, align 8, !tbaa !9
  %168 = load ptr, ptr %5, align 8, !tbaa !9
  %169 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %167, ptr noundef %168, ptr noundef %169)
  %170 = load ptr, ptr %3, align 8, !tbaa !9
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %170, ptr noundef %171, ptr noundef %172)
  %173 = load ptr, ptr %3, align 8, !tbaa !9
  %174 = load ptr, ptr %5, align 8, !tbaa !9
  %175 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %173, ptr noundef %174, ptr noundef %175)
  %176 = load ptr, ptr %3, align 8, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %176, ptr noundef %177, ptr noundef null)
  %178 = load ptr, ptr %3, align 8, !tbaa !9
  %179 = load ptr, ptr %5, align 8, !tbaa !9
  %180 = call ptr @hash_get(ptr noundef %178, ptr noundef %179)
  store ptr %180, ptr %4, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %166
  %182 = load ptr, ptr %4, align 8, !tbaa !9
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %189

184:                                              ; preds = %181
  %185 = load ptr, ptr @stderr, align 8, !tbaa !9
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 88, ptr noundef @.str.6) #4
  %187 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %187, align 8, !tbaa !14
  %188 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %188, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

189:                                              ; preds = %181
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191, %145
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %7, align 4, !tbaa !5
  %195 = add i32 %194, 1
  store i32 %195, ptr %7, align 4, !tbaa !5
  br label %93, !llvm.loop !20

196:                                              ; preds = %93
  %197 = load ptr, ptr %3, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.HTable, ptr %197, i32 0, i32 4
  %199 = load i64, ptr %198, align 8, !tbaa !19
  %200 = trunc i64 %199 to i32
  store i32 %200, ptr %6, align 4, !tbaa !5
  %201 = load ptr, ptr %3, align 8, !tbaa !9
  call void @hash_resize(ptr noundef %201, i32 noundef 100)
  br label %202

202:                                              ; preds = %196
  %203 = load ptr, ptr %3, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.HTable, ptr %203, i32 0, i32 4
  %205 = load i64, ptr %204, align 8, !tbaa !19
  %206 = load i32, ptr %6, align 4, !tbaa !5
  %207 = zext i32 %206 to i64
  %208 = icmp eq i64 %205, %207
  br i1 %208, label %214, label %209

209:                                              ; preds = %202
  %210 = load ptr, ptr @stderr, align 8, !tbaa !9
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 98, ptr noundef @.str.7) #4
  %212 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %212, align 8, !tbaa !14
  %213 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %213, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

214:                                              ; preds = %202
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %3, align 8, !tbaa !9
  call void @hash_resize(ptr noundef %217, i32 noundef 15)
  br label %218

218:                                              ; preds = %216
  %219 = load ptr, ptr %3, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct.HTable, ptr %219, i32 0, i32 4
  %221 = load i64, ptr %220, align 8, !tbaa !19
  %222 = load i32, ptr %6, align 4, !tbaa !5
  %223 = zext i32 %222 to i64
  %224 = icmp eq i64 %221, %223
  br i1 %224, label %230, label %225

225:                                              ; preds = %218
  %226 = load ptr, ptr @stderr, align 8, !tbaa !9
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 102, ptr noundef @.str.7) #4
  %228 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %228, align 8, !tbaa !14
  %229 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %229, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

230:                                              ; preds = %218
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %302, %232
  %234 = load i32, ptr %7, align 4, !tbaa !5
  %235 = icmp ult i32 %234, 10
  br i1 %235, label %236, label %305

236:                                              ; preds = %233
  %237 = call i32 @rand() #4
  %238 = sext i32 %237 to i64
  %239 = urem i64 %238, 31
  %240 = trunc i64 %239 to i32
  store i32 %240, ptr %8, align 4, !tbaa !5
  %241 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  %242 = load i32, ptr %8, align 4, !tbaa !5
  %243 = zext i32 %242 to i64
  call void @rand_str(ptr noundef %241, i64 noundef %243)
  %244 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  %245 = call noalias ptr @strdup(ptr noundef %244) #4
  store ptr %245, ptr %5, align 8, !tbaa !9
  %246 = load ptr, ptr %3, align 8, !tbaa !9
  %247 = load ptr, ptr %5, align 8, !tbaa !9
  %248 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_set(ptr noundef %246, ptr noundef %247, ptr noundef %248)
  %249 = load ptr, ptr %3, align 8, !tbaa !9
  %250 = load ptr, ptr %5, align 8, !tbaa !9
  %251 = call ptr @hash_get(ptr noundef %249, ptr noundef %250)
  store ptr %251, ptr %4, align 8, !tbaa !9
  br label %252

252:                                              ; preds = %236
  %253 = load ptr, ptr %4, align 8, !tbaa !9
  %254 = icmp ne ptr %253, null
  br i1 %254, label %260, label %255

255:                                              ; preds = %252
  %256 = load ptr, ptr @stderr, align 8, !tbaa !9
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 115, ptr noundef @.str.3) #4
  %258 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %258, align 8, !tbaa !14
  %259 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %259, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

260:                                              ; preds = %252
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  %264 = load ptr, ptr %5, align 8, !tbaa !9
  %265 = load ptr, ptr %4, align 8, !tbaa !9
  %266 = icmp eq ptr %264, %265
  br i1 %266, label %272, label %267

267:                                              ; preds = %263
  %268 = load ptr, ptr @stderr, align 8, !tbaa !9
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 118, ptr noundef @.str.4) #4
  %270 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %270, align 8, !tbaa !14
  %271 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %271, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

272:                                              ; preds = %263
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  %275 = load ptr, ptr %5, align 8, !tbaa !9
  %276 = load i32, ptr %7, align 4, !tbaa !5
  %277 = zext i32 %276 to i64
  %278 = getelementptr inbounds [2000 x ptr], ptr @inserted_items, i64 0, i64 %277
  store ptr %275, ptr %278, align 8, !tbaa !9
  %279 = load i32, ptr %7, align 4, !tbaa !5
  %280 = icmp eq i32 %279, 10
  br i1 %280, label %284, label %281

281:                                              ; preds = %274
  %282 = load i32, ptr %7, align 4, !tbaa !5
  %283 = icmp eq i32 %282, 50
  br i1 %283, label %284, label %301

284:                                              ; preds = %281, %274
  %285 = load ptr, ptr %3, align 8, !tbaa !9
  %286 = load ptr, ptr %5, align 8, !tbaa !9
  call void @hash_unset(ptr noundef %285, ptr noundef %286)
  %287 = load ptr, ptr %3, align 8, !tbaa !9
  %288 = load ptr, ptr %5, align 8, !tbaa !9
  %289 = call ptr @hash_get(ptr noundef %287, ptr noundef %288)
  store ptr %289, ptr %4, align 8, !tbaa !9
  br label %290

290:                                              ; preds = %284
  %291 = load ptr, ptr %4, align 8, !tbaa !9
  %292 = icmp ne ptr %291, null
  br i1 %292, label %293, label %298

293:                                              ; preds = %290
  %294 = load ptr, ptr @stderr, align 8, !tbaa !9
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 124, ptr noundef @.str.6) #4
  %296 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %296, align 8, !tbaa !14
  %297 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %297, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

298:                                              ; preds = %290
  br label %299

299:                                              ; preds = %298
  br label %300

300:                                              ; preds = %299
  br label %301

301:                                              ; preds = %300, %281
  br label %302

302:                                              ; preds = %301
  %303 = load i32, ptr %7, align 4, !tbaa !5
  %304 = add i32 %303, 1
  store i32 %304, ptr %7, align 4, !tbaa !5
  br label %233, !llvm.loop !21

305:                                              ; preds = %233
  %306 = load ptr, ptr %3, align 8, !tbaa !9
  %307 = getelementptr inbounds %struct.HTable, ptr %306, i32 0, i32 4
  %308 = load i64, ptr %307, align 8, !tbaa !19
  %309 = trunc i64 %308 to i32
  store i32 %309, ptr %6, align 4, !tbaa !5
  %310 = load ptr, ptr %3, align 8, !tbaa !9
  %311 = getelementptr inbounds %struct.HTable, ptr %310, i32 0, i32 2
  store ptr @ds_hashfn_sdbm, ptr %311, align 8, !tbaa !22
  %312 = load ptr, ptr %3, align 8, !tbaa !9
  call void @hash_resize(ptr noundef %312, i32 noundef 50)
  br label %313

313:                                              ; preds = %305
  %314 = load ptr, ptr %3, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.HTable, ptr %314, i32 0, i32 4
  %316 = load i64, ptr %315, align 8, !tbaa !19
  %317 = load i32, ptr %6, align 4, !tbaa !5
  %318 = zext i32 %317 to i64
  %319 = icmp eq i64 %316, %318
  br i1 %319, label %325, label %320

320:                                              ; preds = %313
  %321 = load ptr, ptr @stderr, align 8, !tbaa !9
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 134, ptr noundef @.str.7) #4
  %323 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %323, align 8, !tbaa !14
  %324 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %324, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

325:                                              ; preds = %313
  br label %326

326:                                              ; preds = %325
  br label %327

327:                                              ; preds = %326
  %328 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %328, align 8, !tbaa !14
  %329 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %329, align 8, !tbaa !16
  store i32 1, ptr %10, align 4
  br label %330

330:                                              ; preds = %327, %320, %293, %267, %255, %225, %209, %184, %159, %128, %116, %85, %63, %51, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %2) #4
  %331 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %331
}

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

declare i32 @ds_prime_num(i32 noundef) #2

declare ptr @hash_new_str(i32 noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

declare void @rand_str(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #3

declare void @hash_set(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @hash_get(ptr noundef, ptr noundef) #2

declare void @hash_resize(ptr noundef, i32 noundef) #2

declare void @hash_unset(ptr noundef, ptr noundef) #2

declare i32 @ds_hashfn_sdbm(ptr noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"HTable", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !6, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 0}
!15 = !{!"test_status_t", !10, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !13, i64 32}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{!12, !10, i64 16}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@inserted_items = external hidden local_unnamed_addr global [2000 x ptr], align 16
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_htable() local_unnamed_addr #0 {
  %1 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %1) #6
  %2 = tail call i32 @ds_prime_num(i32 noundef 3) #6
  %3 = tail call ptr @hash_new_str(i32 noundef %2) #6
  %4 = getelementptr inbounds i8, ptr %3, i64 40
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = icmp ugt i32 %5, 3
  br i1 %6, label %10, label %7

7:                                                ; preds = %0
  %8 = load ptr, ptr @stderr, align 8, !tbaa !12
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 25, ptr noundef nonnull @.str.2) #7
  br label %167

10:                                               ; preds = %0
  %11 = tail call i64 @time(ptr noundef null) #6
  %12 = trunc i64 %11 to i32
  tail call void @srand(i32 noundef %12) #6
  %13 = tail call i32 @rand() #6
  %14 = sext i32 %13 to i64
  %15 = urem i64 %14, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %15) #6
  %16 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %16, ptr noundef %16) #6
  %17 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %16) #6
  %.not101 = icmp eq ptr %17, null
  br i1 %.not101, label %18, label %21

18:                                               ; preds = %26, %10
  %19 = load ptr, ptr @stderr, align 8, !tbaa !12
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 42, ptr noundef nonnull @.str.3) #7
  br label %167

21:                                               ; preds = %10
  %22 = icmp eq ptr %16, %17
  br i1 %22, label %26, label %23

23:                                               ; preds = %32, %21
  %24 = load ptr, ptr @stderr, align 8, !tbaa !12
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 45, ptr noundef nonnull @.str.4) #7
  br label %167

26:                                               ; preds = %21
  store ptr %16, ptr @inserted_items, align 16, !tbaa !12
  %27 = call i32 @rand() #6
  %28 = sext i32 %27 to i64
  %29 = urem i64 %28, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %29) #6
  %30 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %30, ptr noundef %30) #6
  %31 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %30) #6
  %.not101.1 = icmp eq ptr %31, null
  br i1 %.not101.1, label %18, label %32

32:                                               ; preds = %26
  %33 = icmp eq ptr %30, %31
  br i1 %33, label %34, label %23

34:                                               ; preds = %32
  store ptr %30, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 8), align 8, !tbaa !12
  call void @hash_resize(ptr noundef nonnull %3, i32 noundef 9) #6
  %35 = getelementptr inbounds i8, ptr %3, i64 32
  %36 = load i64, ptr %35, align 8, !tbaa !13
  %37 = icmp eq i64 %36, 2
  br i1 %37, label %.preheader102, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !12
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 51, ptr noundef nonnull @.str.5) #7
  br label %167

.preheader102:                                    ; preds = %34, %67
  %indvars.iv = phi i64 [ %indvars.iv.next, %67 ], [ 0, %34 ]
  %41 = call i32 @rand() #6
  %42 = sext i32 %41 to i64
  %43 = urem i64 %42, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %43) #6
  %44 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef %3, ptr noundef %44, ptr noundef %44) #6
  %45 = call ptr @hash_get(ptr noundef %3, ptr noundef %44) #6
  %.not98 = icmp eq ptr %45, null
  br i1 %.not98, label %46, label %49

46:                                               ; preds = %.preheader102
  %47 = load ptr, ptr @stderr, align 8, !tbaa !12
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 64, ptr noundef nonnull @.str.3) #7
  br label %167

49:                                               ; preds = %.preheader102
  %50 = icmp eq ptr %44, %45
  br i1 %50, label %54, label %51

51:                                               ; preds = %49
  %52 = load ptr, ptr @stderr, align 8, !tbaa !12
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 67, ptr noundef nonnull @.str.4) #7
  br label %167

54:                                               ; preds = %49
  %55 = getelementptr inbounds [2000 x ptr], ptr @inserted_items, i64 0, i64 %indvars.iv
  store ptr %44, ptr %55, align 8, !tbaa !12
  %56 = trunc nuw nsw i64 %indvars.iv to i32
  switch i32 %56, label %67 [
    i32 50, label %57
    i32 10, label %57
    i32 0, label %57
  ]

57:                                               ; preds = %54, %54, %54
  call void @hash_unset(ptr noundef %3, ptr noundef %44) #6
  call void @hash_unset(ptr noundef %3, ptr noundef %44) #6
  %58 = call ptr @hash_get(ptr noundef %3, ptr noundef %44) #6
  %.not99 = icmp eq ptr %58, null
  br i1 %.not99, label %62, label %59

59:                                               ; preds = %57
  %60 = load ptr, ptr @stderr, align 8, !tbaa !12
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 77, ptr noundef nonnull @.str.6) #7
  br label %167

62:                                               ; preds = %57
  call void @hash_set(ptr noundef %3, ptr noundef %44, ptr noundef %44) #6
  call void @hash_set(ptr noundef %3, ptr noundef %44, ptr noundef %44) #6
  call void @hash_set(ptr noundef %3, ptr noundef %44, ptr noundef %44) #6
  call void @hash_set(ptr noundef %3, ptr noundef %44, ptr noundef null) #6
  %63 = call ptr @hash_get(ptr noundef %3, ptr noundef %44) #6
  %.not100 = icmp eq ptr %63, null
  br i1 %.not100, label %67, label %64

64:                                               ; preds = %62
  %65 = load ptr, ptr @stderr, align 8, !tbaa !12
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 88, ptr noundef nonnull @.str.6) #7
  br label %167

67:                                               ; preds = %54, %62
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000
  br i1 %exitcond.not, label %68, label %.preheader102, !llvm.loop !14

68:                                               ; preds = %67
  %69 = load i64, ptr %35, align 8, !tbaa !13
  call void @hash_resize(ptr noundef %3, i32 noundef 100) #6
  %70 = load i64, ptr %35, align 8, !tbaa !13
  %71 = and i64 %69, 4294967295
  %72 = icmp eq i64 %70, %71
  br i1 %72, label %76, label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr @stderr, align 8, !tbaa !12
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 98, ptr noundef nonnull @.str.7) #7
  br label %167

76:                                               ; preds = %68
  call void @hash_resize(ptr noundef nonnull %3, i32 noundef 15) #6
  %77 = load i64, ptr %35, align 8, !tbaa !13
  %78 = icmp eq i64 %77, %70
  br i1 %78, label %.preheader.preheader, label %84

.preheader.preheader:                             ; preds = %76
  %79 = call i32 @rand() #6
  %80 = sext i32 %79 to i64
  %81 = urem i64 %80, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %81) #6
  %82 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %82, ptr noundef %82) #6
  %83 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %82) #6
  %.not = icmp eq ptr %83, null
  br i1 %.not, label %87, label %90

84:                                               ; preds = %76
  %85 = load ptr, ptr @stderr, align 8, !tbaa !12
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 102, ptr noundef nonnull @.str.7) #7
  br label %167

87:                                               ; preds = %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %88 = load ptr, ptr @stderr, align 8, !tbaa !12
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 115, ptr noundef nonnull @.str.3) #7
  br label %167

90:                                               ; preds = %.preheader.preheader
  %91 = icmp eq ptr %82, %83
  br i1 %91, label %.preheader.1, label %92

92:                                               ; preds = %156, %149, %142, %135, %128, %121, %114, %107, %100, %90
  %93 = load ptr, ptr @stderr, align 8, !tbaa !12
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 118, ptr noundef nonnull @.str.4) #7
  br label %167

.preheader.1:                                     ; preds = %90
  store ptr %82, ptr @inserted_items, align 16, !tbaa !12
  %95 = call i32 @rand() #6
  %96 = sext i32 %95 to i64
  %97 = urem i64 %96, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %97) #6
  %98 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %98, ptr noundef %98) #6
  %99 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %98) #6
  %.not.1 = icmp eq ptr %99, null
  br i1 %.not.1, label %87, label %100

100:                                              ; preds = %.preheader.1
  %101 = icmp eq ptr %98, %99
  br i1 %101, label %.preheader.2, label %92

.preheader.2:                                     ; preds = %100
  store ptr %98, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 8), align 8, !tbaa !12
  %102 = call i32 @rand() #6
  %103 = sext i32 %102 to i64
  %104 = urem i64 %103, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %104) #6
  %105 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %105, ptr noundef %105) #6
  %106 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %105) #6
  %.not.2 = icmp eq ptr %106, null
  br i1 %.not.2, label %87, label %107

107:                                              ; preds = %.preheader.2
  %108 = icmp eq ptr %105, %106
  br i1 %108, label %.preheader.3, label %92

.preheader.3:                                     ; preds = %107
  store ptr %105, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 16), align 16, !tbaa !12
  %109 = call i32 @rand() #6
  %110 = sext i32 %109 to i64
  %111 = urem i64 %110, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %111) #6
  %112 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %112, ptr noundef %112) #6
  %113 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %112) #6
  %.not.3 = icmp eq ptr %113, null
  br i1 %.not.3, label %87, label %114

114:                                              ; preds = %.preheader.3
  %115 = icmp eq ptr %112, %113
  br i1 %115, label %.preheader.4, label %92

.preheader.4:                                     ; preds = %114
  store ptr %112, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 24), align 8, !tbaa !12
  %116 = call i32 @rand() #6
  %117 = sext i32 %116 to i64
  %118 = urem i64 %117, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %118) #6
  %119 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %119, ptr noundef %119) #6
  %120 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %119) #6
  %.not.4 = icmp eq ptr %120, null
  br i1 %.not.4, label %87, label %121

121:                                              ; preds = %.preheader.4
  %122 = icmp eq ptr %119, %120
  br i1 %122, label %.preheader.5, label %92

.preheader.5:                                     ; preds = %121
  store ptr %119, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 32), align 16, !tbaa !12
  %123 = call i32 @rand() #6
  %124 = sext i32 %123 to i64
  %125 = urem i64 %124, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %125) #6
  %126 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %126, ptr noundef %126) #6
  %127 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %126) #6
  %.not.5 = icmp eq ptr %127, null
  br i1 %.not.5, label %87, label %128

128:                                              ; preds = %.preheader.5
  %129 = icmp eq ptr %126, %127
  br i1 %129, label %.preheader.6, label %92

.preheader.6:                                     ; preds = %128
  store ptr %126, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 40), align 8, !tbaa !12
  %130 = call i32 @rand() #6
  %131 = sext i32 %130 to i64
  %132 = urem i64 %131, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %132) #6
  %133 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %133, ptr noundef %133) #6
  %134 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %133) #6
  %.not.6 = icmp eq ptr %134, null
  br i1 %.not.6, label %87, label %135

135:                                              ; preds = %.preheader.6
  %136 = icmp eq ptr %133, %134
  br i1 %136, label %.preheader.7, label %92

.preheader.7:                                     ; preds = %135
  store ptr %133, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 48), align 16, !tbaa !12
  %137 = call i32 @rand() #6
  %138 = sext i32 %137 to i64
  %139 = urem i64 %138, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %139) #6
  %140 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %140, ptr noundef %140) #6
  %141 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %140) #6
  %.not.7 = icmp eq ptr %141, null
  br i1 %.not.7, label %87, label %142

142:                                              ; preds = %.preheader.7
  %143 = icmp eq ptr %140, %141
  br i1 %143, label %.preheader.8, label %92

.preheader.8:                                     ; preds = %142
  store ptr %140, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 56), align 8, !tbaa !12
  %144 = call i32 @rand() #6
  %145 = sext i32 %144 to i64
  %146 = urem i64 %145, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %146) #6
  %147 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %147, ptr noundef %147) #6
  %148 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %147) #6
  %.not.8 = icmp eq ptr %148, null
  br i1 %.not.8, label %87, label %149

149:                                              ; preds = %.preheader.8
  %150 = icmp eq ptr %147, %148
  br i1 %150, label %.preheader.9, label %92

.preheader.9:                                     ; preds = %149
  store ptr %147, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 64), align 16, !tbaa !12
  %151 = call i32 @rand() #6
  %152 = sext i32 %151 to i64
  %153 = urem i64 %152, 31
  call void @rand_str(ptr noundef nonnull %1, i64 noundef %153) #6
  %154 = call noalias ptr @strdup(ptr noundef nonnull %1) #6
  call void @hash_set(ptr noundef nonnull %3, ptr noundef %154, ptr noundef %154) #6
  %155 = call ptr @hash_get(ptr noundef nonnull %3, ptr noundef %154) #6
  %.not.9 = icmp eq ptr %155, null
  br i1 %.not.9, label %87, label %156

156:                                              ; preds = %.preheader.9
  %157 = icmp eq ptr %154, %155
  br i1 %157, label %158, label %92

158:                                              ; preds = %156
  store ptr %154, ptr getelementptr inbounds (i8, ptr @inserted_items, i64 72), align 8, !tbaa !12
  %159 = load i64, ptr %35, align 8, !tbaa !13
  %160 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr @ds_hashfn_sdbm, ptr %160, align 8, !tbaa !16
  call void @hash_resize(ptr noundef nonnull %3, i32 noundef 50) #6
  %161 = load i64, ptr %35, align 8, !tbaa !13
  %162 = and i64 %159, 4294967295
  %163 = icmp eq i64 %161, %162
  br i1 %163, label %167, label %164

164:                                              ; preds = %158
  %165 = load ptr, ptr @stderr, align 8, !tbaa !12
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 134, ptr noundef nonnull @.str.7) #7
  br label %167

167:                                              ; preds = %158, %164, %92, %87, %84, %73, %64, %59, %51, %46, %38, %23, %18, %7
  %.sroa.16.0 = phi i32 [ 0, %23 ], [ 0, %18 ], [ 0, %59 ], [ 0, %64 ], [ 0, %51 ], [ 0, %46 ], [ 0, %92 ], [ 0, %87 ], [ 0, %164 ], [ 0, %84 ], [ 0, %73 ], [ 0, %38 ], [ 0, %7 ], [ 1, %158 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #6
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.16.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

declare i32 @ds_prime_num(i32 noundef) local_unnamed_addr #2

declare ptr @hash_new_str(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

declare void @rand_str(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #5

declare void @hash_set(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @hash_get(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @hash_resize(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @hash_unset(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ds_hashfn_sdbm(ptr noundef) #2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { cold 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, !11, i64 40}
!6 = !{!"HTable", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 32}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !7, i64 16}


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