; LLVM IR from davidar/c-hashtable :: tester (main)

; 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.key = type { i32, i32, i16, i16 }
%struct.value = type { ptr }

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare dso_local ptr @hashtable_iterator_key(ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare dso_local ptr @hashtable_iterator_value(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @insert_some(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @search_some(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @remove_some(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @search_itr_some(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %14 = call ptr @create_hashtable(i32 noundef 16, ptr noundef @hashfromkey, ptr noundef @equalkeys)
  store ptr %14, ptr %10, align 8, !tbaa !9
  %15 = load ptr, ptr %10, align 8, !tbaa !9
  %16 = icmp eq ptr null, %15
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  call void @exit(i32 noundef -1) #8
  unreachable

18:                                               ; preds = %2
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %60, %18
  %20 = load i32, ptr %12, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 4000
  br i1 %21, label %22, label %63

22:                                               ; preds = %19
  %23 = call noalias ptr @malloc(i64 noundef 12) #9
  store ptr %23, ptr %6, align 8, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !9
  %25 = icmp eq ptr null, %24
  br i1 %25, label %26, label %28

26:                                               ; preds = %22
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

28:                                               ; preds = %22
  %29 = load i32, ptr %12, align 4, !tbaa !5
  %30 = add i32 -808653248, %29
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.key, ptr %31, i32 0, i32 0
  store i32 %30, ptr %32, align 4, !tbaa !11
  %33 = load i32, ptr %12, align 4, !tbaa !5
  %34 = mul nsw i32 5, %33
  %35 = sub i32 -821236121, %34
  %36 = load ptr, ptr %6, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.key, ptr %36, i32 0, i32 1
  store i32 %35, ptr %37, align 4, !tbaa !14
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = mul nsw i32 7, %38
  %40 = add nsw i32 22, %39
  %41 = trunc i32 %40 to i16
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.key, ptr %42, i32 0, i32 2
  store i16 %41, ptr %43, align 4, !tbaa !15
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = mul nsw i32 3, %44
  %46 = sub nsw i32 5522, %45
  %47 = trunc i32 %46 to i16
  %48 = load ptr, ptr %6, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.key, ptr %48, i32 0, i32 3
  store i16 %47, ptr %49, align 2, !tbaa !16
  %50 = call noalias ptr @malloc(i64 noundef 8) #9
  store ptr %50, ptr %8, align 8, !tbaa !9
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.value, ptr %51, i32 0, i32 0
  store ptr @.str.1, ptr %52, align 8, !tbaa !17
  %53 = load ptr, ptr %10, align 8, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !9
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  %56 = call i32 @insert_some(ptr noundef %53, ptr noundef %54, ptr noundef %55)
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %59, label %58

58:                                               ; preds = %28
  call void @exit(i32 noundef -1) #8
  unreachable

59:                                               ; preds = %28
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %12, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %12, align 4, !tbaa !5
  br label %19, !llvm.loop !19

63:                                               ; preds = %19
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  %65 = call i32 @hashtable_count(ptr noundef %64)
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %65)
  %67 = call noalias ptr @malloc(i64 noundef 12) #9
  store ptr %67, ptr %6, align 8, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !9
  %69 = icmp eq ptr null, %68
  br i1 %69, label %70, label %72

70:                                               ; preds = %63
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

72:                                               ; preds = %63
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %105, %72
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 4000
  br i1 %75, label %76, label %108

76:                                               ; preds = %73
  %77 = load i32, ptr %12, align 4, !tbaa !5
  %78 = add i32 -808653248, %77
  %79 = load ptr, ptr %6, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.key, ptr %79, i32 0, i32 0
  store i32 %78, ptr %80, align 4, !tbaa !11
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = mul nsw i32 5, %81
  %83 = sub i32 -821236121, %82
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.key, ptr %84, i32 0, i32 1
  store i32 %83, ptr %85, align 4, !tbaa !14
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = mul nsw i32 7, %86
  %88 = add nsw i32 22, %87
  %89 = trunc i32 %88 to i16
  %90 = load ptr, ptr %6, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.key, ptr %90, i32 0, i32 2
  store i16 %89, ptr %91, align 4, !tbaa !15
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = mul nsw i32 3, %92
  %94 = sub nsw i32 5522, %93
  %95 = trunc i32 %94 to i16
  %96 = load ptr, ptr %6, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.key, ptr %96, i32 0, i32 3
  store i16 %95, ptr %97, align 2, !tbaa !16
  %98 = load ptr, ptr %10, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  %100 = call ptr @search_some(ptr noundef %98, ptr noundef %99)
  store ptr %100, ptr %9, align 8, !tbaa !9
  %101 = icmp eq ptr null, %100
  br i1 %101, label %102, label %104

102:                                              ; preds = %76
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %104

104:                                              ; preds = %102, %76
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %12, align 4, !tbaa !5
  br label %73, !llvm.loop !21

108:                                              ; preds = %73
  %109 = load ptr, ptr %10, align 8, !tbaa !9
  %110 = call ptr @hashtable_iterator(ptr noundef %109)
  store ptr %110, ptr %11, align 8, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !5
  %111 = load ptr, ptr %10, align 8, !tbaa !9
  %112 = call i32 @hashtable_count(ptr noundef %111)
  %113 = icmp ugt i32 %112, 0
  br i1 %113, label %114, label %127

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %122, %114
  %116 = load ptr, ptr %11, align 8, !tbaa !9
  %117 = call ptr @hashtable_iterator_key(ptr noundef %116)
  store ptr %117, ptr %7, align 8, !tbaa !9
  %118 = load ptr, ptr %11, align 8, !tbaa !9
  %119 = call ptr @hashtable_iterator_value(ptr noundef %118)
  store ptr %119, ptr %8, align 8, !tbaa !9
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %12, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %115
  %123 = load ptr, ptr %11, align 8, !tbaa !9
  %124 = call i32 @hashtable_iterator_advance(ptr noundef %123)
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %115, label %126, !llvm.loop !22

126:                                              ; preds = %122
  br label %127

127:                                              ; preds = %126, %108
  %128 = load i32, ptr %12, align 4, !tbaa !5
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %128)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %163, %127
  %131 = load i32, ptr %12, align 4, !tbaa !5
  %132 = icmp slt i32 %131, 4000
  br i1 %132, label %133, label %166

133:                                              ; preds = %130
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = add i32 -808653248, %134
  %136 = load ptr, ptr %6, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.key, ptr %136, i32 0, i32 0
  store i32 %135, ptr %137, align 4, !tbaa !11
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = mul nsw i32 5, %138
  %140 = sub i32 -821236121, %139
  %141 = load ptr, ptr %6, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.key, ptr %141, i32 0, i32 1
  store i32 %140, ptr %142, align 4, !tbaa !14
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = mul nsw i32 7, %143
  %145 = add nsw i32 22, %144
  %146 = trunc i32 %145 to i16
  %147 = load ptr, ptr %6, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.key, ptr %147, i32 0, i32 2
  store i16 %146, ptr %148, align 4, !tbaa !15
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = mul nsw i32 3, %149
  %151 = sub nsw i32 5522, %150
  %152 = trunc i32 %151 to i16
  %153 = load ptr, ptr %6, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.key, ptr %153, i32 0, i32 3
  store i16 %152, ptr %154, align 2, !tbaa !16
  %155 = load ptr, ptr %11, align 8, !tbaa !9
  %156 = load ptr, ptr %10, align 8, !tbaa !9
  %157 = load ptr, ptr %6, align 8, !tbaa !9
  %158 = call i32 @search_itr_some(ptr noundef %155, ptr noundef %156, ptr noundef %157)
  %159 = icmp eq i32 0, %158
  br i1 %159, label %160, label %162

160:                                              ; preds = %133
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %162

162:                                              ; preds = %160, %133
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %12, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %12, align 4, !tbaa !5
  br label %130, !llvm.loop !23

166:                                              ; preds = %130
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %199, %166
  %168 = load i32, ptr %12, align 4, !tbaa !5
  %169 = icmp slt i32 %168, 4000
  br i1 %169, label %170, label %202

170:                                              ; preds = %167
  %171 = load i32, ptr %12, align 4, !tbaa !5
  %172 = add i32 -808653248, %171
  %173 = load ptr, ptr %6, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.key, ptr %173, i32 0, i32 0
  store i32 %172, ptr %174, align 4, !tbaa !11
  %175 = load i32, ptr %12, align 4, !tbaa !5
  %176 = mul nsw i32 5, %175
  %177 = sub i32 -821236121, %176
  %178 = load ptr, ptr %6, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.key, ptr %178, i32 0, i32 1
  store i32 %177, ptr %179, align 4, !tbaa !14
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = mul nsw i32 7, %180
  %182 = add nsw i32 22, %181
  %183 = trunc i32 %182 to i16
  %184 = load ptr, ptr %6, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.key, ptr %184, i32 0, i32 2
  store i16 %183, ptr %185, align 4, !tbaa !15
  %186 = load i32, ptr %12, align 4, !tbaa !5
  %187 = mul nsw i32 3, %186
  %188 = sub nsw i32 5522, %187
  %189 = trunc i32 %188 to i16
  %190 = load ptr, ptr %6, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.key, ptr %190, i32 0, i32 3
  store i16 %189, ptr %191, align 2, !tbaa !16
  %192 = load ptr, ptr %10, align 8, !tbaa !9
  %193 = load ptr, ptr %6, align 8, !tbaa !9
  %194 = call ptr @remove_some(ptr noundef %192, ptr noundef %193)
  store ptr %194, ptr %9, align 8, !tbaa !9
  %195 = icmp eq ptr null, %194
  br i1 %195, label %196, label %198

196:                                              ; preds = %170
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %198

198:                                              ; preds = %196, %170
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %12, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %12, align 4, !tbaa !5
  br label %167, !llvm.loop !24

202:                                              ; preds = %167
  %203 = load ptr, ptr %10, align 8, !tbaa !9
  %204 = call i32 @hashtable_count(ptr noundef %203)
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %204)
  %206 = load ptr, ptr %10, align 8, !tbaa !9
  call void @hashtable_destroy(ptr noundef %206, i32 noundef 1)
  store ptr null, ptr %10, align 8, !tbaa !9
  %207 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %207) #7
  %208 = call ptr @create_hashtable(i32 noundef 160, ptr noundef @hashfromkey, ptr noundef @equalkeys)
  store ptr %208, ptr %10, align 8, !tbaa !9
  %209 = load ptr, ptr %10, align 8, !tbaa !9
  %210 = icmp eq ptr null, %209
  br i1 %210, label %211, label %213

211:                                              ; preds = %202
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

213:                                              ; preds = %202
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %251, %213
  %215 = load i32, ptr %12, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 4000
  br i1 %216, label %217, label %254

217:                                              ; preds = %214
  %218 = call noalias ptr @malloc(i64 noundef 12) #9
  store ptr %218, ptr %6, align 8, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !5
  %220 = add i32 -808653248, %219
  %221 = load ptr, ptr %6, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.key, ptr %221, i32 0, i32 0
  store i32 %220, ptr %222, align 4, !tbaa !11
  %223 = load i32, ptr %12, align 4, !tbaa !5
  %224 = mul nsw i32 5, %223
  %225 = sub i32 -821236121, %224
  %226 = load ptr, ptr %6, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct.key, ptr %226, i32 0, i32 1
  store i32 %225, ptr %227, align 4, !tbaa !14
  %228 = load i32, ptr %12, align 4, !tbaa !5
  %229 = mul nsw i32 7, %228
  %230 = add nsw i32 22, %229
  %231 = trunc i32 %230 to i16
  %232 = load ptr, ptr %6, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.key, ptr %232, i32 0, i32 2
  store i16 %231, ptr %233, align 4, !tbaa !15
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = mul nsw i32 3, %234
  %236 = sub nsw i32 5522, %235
  %237 = trunc i32 %236 to i16
  %238 = load ptr, ptr %6, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.key, ptr %238, i32 0, i32 3
  store i16 %237, ptr %239, align 2, !tbaa !16
  %240 = call noalias ptr @malloc(i64 noundef 8) #9
  store ptr %240, ptr %8, align 8, !tbaa !9
  %241 = load ptr, ptr %8, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.value, ptr %241, i32 0, i32 0
  store ptr @.str.1, ptr %242, align 8, !tbaa !17
  %243 = load ptr, ptr %10, align 8, !tbaa !9
  %244 = load ptr, ptr %6, align 8, !tbaa !9
  %245 = load ptr, ptr %8, align 8, !tbaa !9
  %246 = call i32 @insert_some(ptr noundef %243, ptr noundef %244, ptr noundef %245)
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %250, label %248

248:                                              ; preds = %217
  %249 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

250:                                              ; preds = %217
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %12, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %12, align 4, !tbaa !5
  br label %214, !llvm.loop !25

254:                                              ; preds = %214
  %255 = load ptr, ptr %10, align 8, !tbaa !9
  %256 = call i32 @hashtable_count(ptr noundef %255)
  %257 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %256)
  %258 = call noalias ptr @malloc(i64 noundef 12) #9
  store ptr %258, ptr %6, align 8, !tbaa !9
  %259 = load ptr, ptr %6, align 8, !tbaa !9
  %260 = icmp eq ptr null, %259
  br i1 %260, label %261, label %263

261:                                              ; preds = %254
  %262 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

263:                                              ; preds = %254
  store i32 3999, ptr %12, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %304, %263
  %265 = load i32, ptr %12, align 4, !tbaa !5
  %266 = icmp sge i32 %265, 0
  br i1 %266, label %267, label %307

267:                                              ; preds = %264
  %268 = load i32, ptr %12, align 4, !tbaa !5
  %269 = add i32 -808653248, %268
  %270 = load ptr, ptr %6, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.key, ptr %270, i32 0, i32 0
  store i32 %269, ptr %271, align 4, !tbaa !11
  %272 = load i32, ptr %12, align 4, !tbaa !5
  %273 = mul nsw i32 5, %272
  %274 = sub i32 -821236121, %273
  %275 = load ptr, ptr %6, align 8, !tbaa !9
  %276 = getelementptr inbounds %struct.key, ptr %275, i32 0, i32 1
  store i32 %274, ptr %276, align 4, !tbaa !14
  %277 = load i32, ptr %12, align 4, !tbaa !5
  %278 = mul nsw i32 7, %277
  %279 = add nsw i32 22, %278
  %280 = trunc i32 %279 to i16
  %281 = load ptr, ptr %6, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.key, ptr %281, i32 0, i32 2
  store i16 %280, ptr %282, align 4, !tbaa !15
  %283 = load i32, ptr %12, align 4, !tbaa !5
  %284 = mul nsw i32 3, %283
  %285 = sub nsw i32 5522, %284
  %286 = trunc i32 %285 to i16
  %287 = load ptr, ptr %6, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.key, ptr %287, i32 0, i32 3
  store i16 %286, ptr %288, align 2, !tbaa !16
  %289 = load ptr, ptr %11, align 8, !tbaa !9
  %290 = load ptr, ptr %10, align 8, !tbaa !9
  %291 = load ptr, ptr %6, align 8, !tbaa !9
  %292 = call i32 @search_itr_some(ptr noundef %289, ptr noundef %290, ptr noundef %291)
  %293 = icmp eq i32 0, %292
  br i1 %293, label %294, label %297

294:                                              ; preds = %267
  %295 = load i32, ptr %12, align 4, !tbaa !5
  %296 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %295)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

297:                                              ; preds = %267
  %298 = load ptr, ptr %11, align 8, !tbaa !9
  %299 = call i32 @hashtable_iterator_remove(ptr noundef %298)
  %300 = icmp eq i32 0, %299
  br i1 %300, label %301, label %303

301:                                              ; preds = %297
  %302 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

303:                                              ; preds = %297
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %12, align 4, !tbaa !5
  %306 = sub nsw i32 %305, 7
  store i32 %306, ptr %12, align 4, !tbaa !5
  br label %264, !llvm.loop !26

307:                                              ; preds = %264
  %308 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %308) #7
  %309 = load ptr, ptr %10, align 8, !tbaa !9
  %310 = call ptr @hashtable_iterator(ptr noundef %309)
  store ptr %310, ptr %11, align 8, !tbaa !9
  br label %311

311:                                              ; preds = %315, %307
  %312 = load ptr, ptr %11, align 8, !tbaa !9
  %313 = call i32 @hashtable_iterator_remove(ptr noundef %312)
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %316

315:                                              ; preds = %311
  br label %311, !llvm.loop !27

316:                                              ; preds = %311
  %317 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %317) #7
  %318 = load ptr, ptr %10, align 8, !tbaa !9
  %319 = call i32 @hashtable_count(ptr noundef %318)
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %319)
  %321 = load ptr, ptr %10, align 8, !tbaa !9
  call void @hashtable_destroy(ptr noundef %321, i32 noundef 1)
  %322 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %322) #7
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %323

323:                                              ; preds = %316, %301, %294, %261, %248, %211, %70, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %324 = load i32, ptr %3, align 4
  ret i32 %324
}

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

declare ptr @create_hashtable(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @hashfromkey(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @equalkeys(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

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

declare i32 @hashtable_count(ptr noundef) #3

declare ptr @hashtable_iterator(ptr noundef) #3

declare i32 @hashtable_iterator_advance(ptr noundef) #3

declare void @hashtable_destroy(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

declare i32 @hashtable_iterator_remove(ptr noundef) #3

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

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

!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 0}
!12 = !{!"key", !6, i64 0, !6, i64 4, !13, i64 8, !13, i64 10}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !13, i64 8}
!16 = !{!12, !13, i64 10}
!17 = !{!18, !10, i64 0}
!18 = !{!"value", !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


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

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare dso_local ptr @hashtable_iterator_key(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare dso_local ptr @hashtable_iterator_value(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @insert_some(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @search_some(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @remove_some(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @search_itr_some(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
  %3 = tail call ptr @create_hashtable(i32 noundef 16, ptr noundef nonnull @hashfromkey, ptr noundef nonnull @equalkeys) #7
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %.preheader129

5:                                                ; preds = %2
  tail call void @exit(i32 noundef -1) #8
  unreachable

6:                                                ; preds = %12
  %7 = add nuw nsw i32 %.0132, 1
  %exitcond.not = icmp eq i32 %7, 4000
  br i1 %exitcond.not, label %25, label %.preheader129, !llvm.loop !5

.preheader129:                                    ; preds = %2, %6
  %.0132 = phi i32 [ %7, %6 ], [ 0, %2 ]
  %8 = tail call noalias dereferenceable_or_null(12) ptr @malloc(i64 noundef 12) #9
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %12

10:                                               ; preds = %.preheader129
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %142

12:                                               ; preds = %.preheader129
  %13 = add nuw nsw i32 %.0132, -808653248
  store i32 %13, ptr %8, align 4, !tbaa !7
  %.neg122 = mul nsw i32 %.0132, -5
  %14 = add nsw i32 %.neg122, -821236121
  %15 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %14, ptr %15, align 4, !tbaa !13
  %16 = trunc nuw nsw i32 %.0132 to i16
  %17 = getelementptr inbounds i8, ptr %8, i64 8
  %18 = insertelement <2 x i16> poison, i16 %16, i64 0
  %19 = shufflevector <2 x i16> %18, <2 x i16> poison, <2 x i32> zeroinitializer
  %20 = mul nsw <2 x i16> %19, <i16 7, i16 -3>
  %21 = add nsw <2 x i16> %20, <i16 22, i16 5522>
  store <2 x i16> %21, ptr %17, align 4, !tbaa !14
  %22 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  store ptr @.str.1, ptr %22, align 8, !tbaa !15
  %23 = tail call i32 @insert_some(ptr noundef nonnull %3, ptr noundef nonnull %8, ptr noundef nonnull %22)
  %.not124 = icmp eq i32 %23, 0
  br i1 %.not124, label %24, label %6

24:                                               ; preds = %12
  tail call void @exit(i32 noundef -1) #8
  unreachable

25:                                               ; preds = %6
  %26 = tail call i32 @hashtable_count(ptr noundef nonnull %3) #7
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %26)
  %28 = tail call noalias dereferenceable_or_null(12) ptr @malloc(i64 noundef 12) #9
  %29 = icmp eq ptr %28, null
  br i1 %29, label %32, label %.preheader128

.preheader128:                                    ; preds = %25
  %30 = getelementptr inbounds i8, ptr %28, i64 4
  %31 = getelementptr inbounds i8, ptr %28, i64 8
  br label %34

32:                                               ; preds = %25
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %142

34:                                               ; preds = %.preheader128, %46
  %.1133 = phi i32 [ 0, %.preheader128 ], [ %47, %46 ]
  %35 = add nuw nsw i32 %.1133, -808653248
  store i32 %35, ptr %28, align 4, !tbaa !7
  %.neg120 = mul nsw i32 %.1133, -5
  %36 = add nsw i32 %.neg120, -821236121
  store i32 %36, ptr %30, align 4, !tbaa !13
  %37 = trunc nuw i32 %.1133 to i16
  %38 = insertelement <2 x i16> poison, i16 %37, i64 0
  %39 = shufflevector <2 x i16> %38, <2 x i16> poison, <2 x i32> zeroinitializer
  %40 = mul nsw <2 x i16> %39, <i16 7, i16 -3>
  %41 = add nsw <2 x i16> %40, <i16 22, i16 5522>
  store <2 x i16> %41, ptr %31, align 4, !tbaa !14
  %42 = tail call ptr @search_some(ptr noundef nonnull %3, ptr noundef nonnull %28)
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %34
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %46

46:                                               ; preds = %34, %44
  %47 = add nuw nsw i32 %.1133, 1
  %exitcond140.not = icmp eq i32 %47, 4000
  br i1 %exitcond140.not, label %48, label %34, !llvm.loop !18

48:                                               ; preds = %46
  %49 = tail call ptr @hashtable_iterator(ptr noundef nonnull %3) #7
  %50 = tail call i32 @hashtable_count(ptr noundef nonnull %3) #7
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %.loopexit, label %.preheader127

.preheader127:                                    ; preds = %48, %.preheader127
  %.2 = phi i32 [ %53, %.preheader127 ], [ 0, %48 ]
  %51 = tail call ptr @hashtable_iterator_key(ptr noundef %49)
  %52 = tail call ptr @hashtable_iterator_value(ptr noundef %49)
  %53 = add nuw nsw i32 %.2, 1
  %54 = tail call i32 @hashtable_iterator_advance(ptr noundef %49) #7
  %.not110 = icmp eq i32 %54, 0
  br i1 %.not110, label %.loopexit, label %.preheader127, !llvm.loop !19

.loopexit:                                        ; preds = %.preheader127, %48
  %.3 = phi i32 [ 0, %48 ], [ %53, %.preheader127 ]
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.3)
  br label %56

56:                                               ; preds = %.loopexit, %68
  %.4134 = phi i32 [ 0, %.loopexit ], [ %69, %68 ]
  %57 = add nuw nsw i32 %.4134, -808653248
  store i32 %57, ptr %28, align 4, !tbaa !7
  %.neg118 = mul nsw i32 %.4134, -5
  %58 = add nsw i32 %.neg118, -821236121
  store i32 %58, ptr %30, align 4, !tbaa !13
  %59 = trunc nuw i32 %.4134 to i16
  %60 = insertelement <2 x i16> poison, i16 %59, i64 0
  %61 = shufflevector <2 x i16> %60, <2 x i16> poison, <2 x i32> zeroinitializer
  %62 = mul nsw <2 x i16> %61, <i16 7, i16 -3>
  %63 = add nsw <2 x i16> %62, <i16 22, i16 5522>
  store <2 x i16> %63, ptr %31, align 4, !tbaa !14
  %64 = tail call i32 @search_itr_some(ptr noundef %49, ptr noundef nonnull %3, ptr noundef nonnull %28)
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %56
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %68

68:                                               ; preds = %56, %66
  %69 = add nuw nsw i32 %.4134, 1
  %exitcond141.not = icmp eq i32 %69, 4000
  br i1 %exitcond141.not, label %.preheader126, label %56, !llvm.loop !20

.preheader126:                                    ; preds = %68, %81
  %.5135 = phi i32 [ %82, %81 ], [ 0, %68 ]
  %70 = add nuw nsw i32 %.5135, -808653248
  store i32 %70, ptr %28, align 4, !tbaa !7
  %.neg116 = mul nsw i32 %.5135, -5
  %71 = add nsw i32 %.neg116, -821236121
  store i32 %71, ptr %30, align 4, !tbaa !13
  %72 = trunc nuw i32 %.5135 to i16
  %73 = insertelement <2 x i16> poison, i16 %72, i64 0
  %74 = shufflevector <2 x i16> %73, <2 x i16> poison, <2 x i32> zeroinitializer
  %75 = mul nsw <2 x i16> %74, <i16 7, i16 -3>
  %76 = add nsw <2 x i16> %75, <i16 22, i16 5522>
  store <2 x i16> %76, ptr %31, align 4, !tbaa !14
  %77 = tail call ptr @remove_some(ptr noundef nonnull %3, ptr noundef nonnull %28)
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %81

79:                                               ; preds = %.preheader126
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %81

81:                                               ; preds = %.preheader126, %79
  %82 = add nuw nsw i32 %.5135, 1
  %exitcond142.not = icmp eq i32 %82, 4000
  br i1 %exitcond142.not, label %83, label %.preheader126, !llvm.loop !21

83:                                               ; preds = %81
  %84 = tail call i32 @hashtable_count(ptr noundef nonnull %3) #7
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %84)
  tail call void @hashtable_destroy(ptr noundef nonnull %3, i32 noundef 1) #7
  tail call void @free(ptr noundef nonnull %28) #7
  %86 = tail call ptr @create_hashtable(i32 noundef 160, ptr noundef nonnull @hashfromkey, ptr noundef nonnull @equalkeys) #7
  %87 = icmp eq ptr %86, null
  br i1 %87, label %88, label %.preheader125

88:                                               ; preds = %83
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %142

90:                                               ; preds = %.preheader125
  %91 = add nuw nsw i32 %.6136, 1
  %exitcond143.not = icmp eq i32 %91, 4000
  br i1 %exitcond143.not, label %106, label %.preheader125, !llvm.loop !22

.preheader125:                                    ; preds = %83, %90
  %.6136 = phi i32 [ %91, %90 ], [ 0, %83 ]
  %92 = tail call noalias dereferenceable_or_null(12) ptr @malloc(i64 noundef 12) #9
  %93 = add nuw nsw i32 %.6136, -808653248
  store i32 %93, ptr %92, align 4, !tbaa !7
  %.neg113 = mul nsw i32 %.6136, -5
  %94 = add nsw i32 %.neg113, -821236121
  %95 = getelementptr inbounds i8, ptr %92, i64 4
  store i32 %94, ptr %95, align 4, !tbaa !13
  %96 = trunc nuw nsw i32 %.6136 to i16
  %97 = getelementptr inbounds i8, ptr %92, i64 8
  %98 = insertelement <2 x i16> poison, i16 %96, i64 0
  %99 = shufflevector <2 x i16> %98, <2 x i16> poison, <2 x i32> zeroinitializer
  %100 = mul nsw <2 x i16> %99, <i16 7, i16 -3>
  %101 = add nsw <2 x i16> %100, <i16 22, i16 5522>
  store <2 x i16> %101, ptr %97, align 4, !tbaa !14
  %102 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  store ptr @.str.1, ptr %102, align 8, !tbaa !15
  %103 = tail call i32 @insert_some(ptr noundef nonnull %86, ptr noundef nonnull %92, ptr noundef nonnull %102)
  %.not115 = icmp eq i32 %103, 0
  br i1 %.not115, label %104, label %90

104:                                              ; preds = %.preheader125
  %105 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %142

106:                                              ; preds = %90
  %107 = tail call i32 @hashtable_count(ptr noundef nonnull %86) #7
  %108 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %107)
  %109 = tail call noalias dereferenceable_or_null(12) ptr @malloc(i64 noundef 12) #9
  %110 = icmp eq ptr %109, null
  br i1 %110, label %113, label %.preheader

.preheader:                                       ; preds = %106
  %111 = getelementptr inbounds i8, ptr %109, i64 4
  %112 = getelementptr inbounds i8, ptr %109, i64 8
  br label %115

113:                                              ; preds = %106
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %142

115:                                              ; preds = %.preheader, %132
  %.7137 = phi i32 [ 3999, %.preheader ], [ %133, %132 ]
  %116 = add nuw nsw i32 %.7137, -808653248
  store i32 %116, ptr %109, align 4, !tbaa !7
  %.neg = mul nsw i32 %.7137, -5
  %117 = add nsw i32 %.neg, -821236121
  store i32 %117, ptr %111, align 4, !tbaa !13
  %118 = trunc i32 %.7137 to i16
  %119 = insertelement <2 x i16> poison, i16 %118, i64 0
  %120 = shufflevector <2 x i16> %119, <2 x i16> poison, <2 x i32> zeroinitializer
  %121 = mul <2 x i16> %120, <i16 7, i16 -3>
  %122 = add <2 x i16> %121, <i16 22, i16 5522>
  store <2 x i16> %122, ptr %112, align 4, !tbaa !14
  %123 = tail call i32 @search_itr_some(ptr noundef %49, ptr noundef nonnull %86, ptr noundef nonnull %109)
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %127

125:                                              ; preds = %115
  %126 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.7137)
  br label %142

127:                                              ; preds = %115
  %128 = tail call i32 @hashtable_iterator_remove(ptr noundef %49) #7
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %142

132:                                              ; preds = %127
  %133 = add nsw i32 %.7137, -7
  %134 = icmp ugt i32 %.7137, 6
  br i1 %134, label %115, label %135, !llvm.loop !23

135:                                              ; preds = %132
  tail call void @free(ptr noundef %49) #7
  %136 = tail call ptr @hashtable_iterator(ptr noundef nonnull %86) #7
  br label %137

137:                                              ; preds = %137, %135
  %138 = tail call i32 @hashtable_iterator_remove(ptr noundef %136) #7
  %.not111 = icmp eq i32 %138, 0
  br i1 %.not111, label %139, label %137, !llvm.loop !24

139:                                              ; preds = %137
  tail call void @free(ptr noundef %136) #7
  %140 = tail call i32 @hashtable_count(ptr noundef nonnull %86) #7
  %141 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %140)
  tail call void @hashtable_destroy(ptr noundef nonnull %86, i32 noundef 1) #7
  tail call void @free(ptr noundef %109) #7
  br label %142

142:                                              ; preds = %139, %130, %125, %113, %104, %88, %32, %10
  %.0104 = phi i32 [ 1, %10 ], [ 1, %32 ], [ 1, %88 ], [ 1, %104 ], [ 1, %113 ], [ 1, %125 ], [ 1, %130 ], [ 0, %139 ]
  ret i32 %.0104
}

declare ptr @create_hashtable(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @hashfromkey(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @equalkeys(ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

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

declare i32 @hashtable_count(ptr noundef) local_unnamed_addr #2

declare ptr @hashtable_iterator(ptr noundef) local_unnamed_addr #2

declare i32 @hashtable_iterator_advance(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

declare i32 @hashtable_iterator_remove(ptr noundef) local_unnamed_addr #2

attributes #0 = { inlinehint 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 = { 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 #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 = { 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 #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #5 = { 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 #6 = { mustprogress nounwind willreturn allockind("free") 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0) }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"key", !9, i64 0, !9, i64 4, !12, i64 8, !12, i64 10}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"short", !10, i64 0}
!13 = !{!8, !9, i64 4}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"value", !17, i64 0}
!17 = !{!"any pointer", !10, i64 0}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}


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