; LLVM IR from qc-tum/chemtensor :: test/util (test_hash_table)

; 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_struct = type { i32, ptr }
%struct.hash_table = type { ptr, ptr, i64, ptr, i64, i64 }
%struct.hash_table_iterator = type { ptr, i64, ptr }

@__const.test_hash_table.keys = external hidden unnamed_addr constant [9 x %struct.key_struct], align 16
@__const.test_hash_table.static_vals = external hidden unnamed_addr constant [9 x i16], align 16
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @test_hash_table() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca %struct.hash_table, align 8
  %3 = alloca [9 x %struct.key_struct], align 16
  %4 = alloca [9 x i16], align 16
  %5 = alloca [9 x ptr], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [6 x i8], align 1
  %11 = alloca i32, align 4
  %12 = alloca %struct.hash_table_iterator, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #6
  call void @create_hash_table(ptr noundef @key_equal, ptr noundef @hash_func, i64 noundef 16, i64 noundef 5, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 144, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_hash_table.keys, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 18, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_hash_table.static_vals, i64 18, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %34, %0
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 9
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %37

21:                                               ; preds = %17
  %22 = call ptr @ct_malloc(i64 noundef 2)
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [9 x ptr], ptr %5, i64 0, i64 %24
  store ptr %22, ptr %25, align 8, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [9 x i16], ptr %4, i64 0, i64 %27
  %29 = load i16, ptr %28, align 2, !tbaa !11
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [9 x ptr], ptr %5, i64 0, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  store i16 %29, ptr %33, align 2, !tbaa !11
  br label %34

34:                                               ; preds = %21
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %6, align 4, !tbaa !5
  br label %17, !llvm.loop !13

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

38:                                               ; preds = %54, %37
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 6
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 5, ptr %8, align 4
  br label %57

42:                                               ; preds = %38
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [9 x ptr], ptr %5, i64 0, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call ptr @hash_table_insert(ptr noundef %2, ptr noundef %45, ptr noundef %49)
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %42
  store ptr @.str.9, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %57

53:                                               ; preds = %42
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %7, align 4, !tbaa !5
  br label %38, !llvm.loop !15

57:                                               ; preds = %52, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %58 = load i32, ptr %8, align 4
  switch i32 %58, label %231 [
    i32 5, label %59
  ]

59:                                               ; preds = %57
  %60 = getelementptr inbounds %struct.hash_table, ptr %2, i32 0, i32 5
  %61 = load i64, ptr %60, align 8, !tbaa !16
  %62 = icmp ne i64 %61, 6
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  store ptr @.str.10, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %231

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %65 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 1
  %66 = call ptr @hash_table_get(ptr noundef %2, ptr noundef %65)
  store ptr %66, ptr %9, align 8, !tbaa !9
  %67 = load ptr, ptr %9, align 8, !tbaa !9
  %68 = load i16, ptr %67, align 2, !tbaa !11
  %69 = sext i16 %68 to i32
  %70 = getelementptr inbounds [9 x i16], ptr %4, i64 0, i64 1
  %71 = load i16, ptr %70, align 2, !tbaa !11
  %72 = sext i16 %71 to i32
  %73 = icmp ne i32 %69, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %64
  store ptr @.str.11, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %230

75:                                               ; preds = %64
  %76 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 8
  %77 = call ptr @hash_table_get(ptr noundef %2, ptr noundef %76)
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store ptr @.str.12, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %230

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 6, ptr %10) #6
  call void @llvm.memset.p0.i64(ptr align 1 %10, i8 0, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @init_hash_table_iterator(ptr noundef %2, ptr noundef %12)
  br label %81

81:                                               ; preds = %124, %80
  %82 = call zeroext i1 @hash_table_iterator_is_valid(ptr noundef %12)
  br i1 %82, label %83, label %126

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %116, %83
  %85 = load i32, ptr %13, align 4, !tbaa !5
  %86 = icmp slt i32 %85, 6
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 11, ptr %8, align 4
  br label %119

88:                                               ; preds = %84
  %89 = load i32, ptr %13, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 %90
  %92 = call ptr @hash_table_iterator_get_key(ptr noundef %12)
  %93 = call zeroext i1 @key_equal(ptr noundef %91, ptr noundef %92)
  br i1 %93, label %94, label %115

94:                                               ; preds = %88
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [9 x i16], ptr %4, i64 0, i64 %96
  %98 = load i16, ptr %97, align 2, !tbaa !11
  %99 = sext i16 %98 to i32
  %100 = call ptr @hash_table_iterator_get_value(ptr noundef %12)
  %101 = load i16, ptr %100, align 2, !tbaa !11
  %102 = sext i16 %101 to i32
  %103 = icmp eq i32 %99, %102
  br i1 %103, label %104, label %115

104:                                              ; preds = %94
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !19, !range !21, !noundef !22
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %111

110:                                              ; preds = %104
  store ptr @.str.13, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %119

111:                                              ; preds = %104
  %112 = load i32, ptr %13, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 %113
  store i8 1, ptr %114, align 1, !tbaa !19
  br label %115

115:                                              ; preds = %111, %94, %88
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %13, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %13, align 4, !tbaa !5
  br label %84, !llvm.loop !23

119:                                              ; preds = %110, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %120 = load i32, ptr %8, align 4
  switch i32 %120, label %229 [
    i32 11, label %121
  ]

121:                                              ; preds = %119
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %11, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %121
  %125 = call zeroext i1 @hash_table_iterator_next(ptr noundef %12)
  br label %81, !llvm.loop !24

126:                                              ; preds = %81
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.hash_table, ptr %2, i32 0, i32 5
  %130 = load i64, ptr %129, align 8, !tbaa !16
  %131 = icmp ne i64 %128, %130
  br i1 %131, label %132, label %133

132:                                              ; preds = %126
  store ptr @.str.14, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %229

133:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %146, %133
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = icmp slt i32 %135, 6
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  store i32 14, ptr %8, align 4
  br label %149

138:                                              ; preds = %134
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !19, !range !21, !noundef !22
  %143 = trunc i8 %142 to i1
  br i1 %143, label %145, label %144

144:                                              ; preds = %138
  store ptr @.str.15, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %149

145:                                              ; preds = %138
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %14, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %14, align 4, !tbaa !5
  br label %134, !llvm.loop !25

149:                                              ; preds = %144, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %150 = load i32, ptr %8, align 4
  switch i32 %150, label %229 [
    i32 14, label %151
  ]

151:                                              ; preds = %149
  %152 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 1
  %153 = call ptr @hash_table_remove(ptr noundef %2, ptr noundef %152)
  store ptr %153, ptr %9, align 8, !tbaa !9
  %154 = load ptr, ptr %9, align 8, !tbaa !9
  %155 = load i16, ptr %154, align 2, !tbaa !11
  %156 = sext i16 %155 to i32
  %157 = getelementptr inbounds [9 x i16], ptr %4, i64 0, i64 1
  %158 = load i16, ptr %157, align 2, !tbaa !11
  %159 = sext i16 %158 to i32
  %160 = icmp ne i32 %156, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %151
  store ptr @.str.16, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %229

162:                                              ; preds = %151
  %163 = load ptr, ptr %9, align 8, !tbaa !9
  call void @ct_free(ptr noundef %163)
  %164 = getelementptr inbounds %struct.hash_table, ptr %2, i32 0, i32 5
  %165 = load i64, ptr %164, align 8, !tbaa !16
  %166 = icmp ne i64 %165, 5
  br i1 %166, label %167, label %168

167:                                              ; preds = %162
  store ptr @.str.10, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %229

168:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %169 = call ptr @ct_malloc(i64 noundef 2)
  store ptr %169, ptr %15, align 8, !tbaa !9
  %170 = load ptr, ptr %15, align 8, !tbaa !9
  store i16 -6, ptr %170, align 2, !tbaa !11
  %171 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 2
  %172 = load ptr, ptr %15, align 8, !tbaa !9
  %173 = call ptr @hash_table_insert(ptr noundef %2, ptr noundef %171, ptr noundef %172)
  store ptr %173, ptr %9, align 8, !tbaa !9
  %174 = load ptr, ptr %9, align 8, !tbaa !9
  %175 = load i16, ptr %174, align 2, !tbaa !11
  %176 = sext i16 %175 to i32
  %177 = getelementptr inbounds [9 x i16], ptr %4, i64 0, i64 2
  %178 = load i16, ptr %177, align 4, !tbaa !11
  %179 = sext i16 %178 to i32
  %180 = icmp ne i32 %176, %179
  br i1 %180, label %181, label %182

181:                                              ; preds = %168
  store ptr @.str.17, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %228

182:                                              ; preds = %168
  %183 = load ptr, ptr %9, align 8, !tbaa !9
  call void @ct_free(ptr noundef %183)
  %184 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 2
  %185 = call ptr @hash_table_get(ptr noundef %2, ptr noundef %184)
  store ptr %185, ptr %9, align 8, !tbaa !9
  %186 = load ptr, ptr %9, align 8, !tbaa !9
  %187 = load i16, ptr %186, align 2, !tbaa !11
  %188 = sext i16 %187 to i32
  %189 = load ptr, ptr %15, align 8, !tbaa !9
  %190 = load i16, ptr %189, align 2, !tbaa !11
  %191 = sext i16 %190 to i32
  %192 = icmp ne i32 %188, %191
  br i1 %192, label %193, label %194

193:                                              ; preds = %182
  store ptr @.str.11, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %228

194:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 6, ptr %16, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %211, %194
  %196 = load i32, ptr %16, align 4, !tbaa !5
  %197 = icmp slt i32 %196, 9
  br i1 %197, label %199, label %198

198:                                              ; preds = %195
  store i32 17, ptr %8, align 4
  br label %214

199:                                              ; preds = %195
  %200 = load i32, ptr %16, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 %201
  %203 = load i32, ptr %16, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [9 x ptr], ptr %5, i64 0, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !9
  %207 = call ptr @hash_table_insert(ptr noundef %2, ptr noundef %202, ptr noundef %206)
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %210

209:                                              ; preds = %199
  store ptr @.str.9, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %214

210:                                              ; preds = %199
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %16, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %16, align 4, !tbaa !5
  br label %195, !llvm.loop !26

214:                                              ; preds = %209, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %215 = load i32, ptr %8, align 4
  switch i32 %215, label %228 [
    i32 17, label %216
  ]

216:                                              ; preds = %214
  %217 = getelementptr inbounds [9 x %struct.key_struct], ptr %3, i64 0, i64 7
  %218 = call ptr @hash_table_get(ptr noundef %2, ptr noundef %217)
  store ptr %218, ptr %9, align 8, !tbaa !9
  %219 = load ptr, ptr %9, align 8, !tbaa !9
  %220 = load i16, ptr %219, align 2, !tbaa !11
  %221 = sext i16 %220 to i32
  %222 = getelementptr inbounds [9 x i16], ptr %4, i64 0, i64 7
  %223 = load i16, ptr %222, align 2, !tbaa !11
  %224 = sext i16 %223 to i32
  %225 = icmp ne i32 %221, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %216
  store ptr @.str.11, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %228

227:                                              ; preds = %216
  call void @delete_hash_table(ptr noundef %2, ptr noundef @ct_free)
  store ptr null, ptr %1, align 8
  store i32 1, ptr %8, align 4
  br label %228

228:                                              ; preds = %227, %226, %214, %193, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %229

229:                                              ; preds = %228, %167, %161, %149, %132, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 6, ptr %10) #6
  br label %230

230:                                              ; preds = %229, %79, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %231

231:                                              ; preds = %230, %63, %57
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 18, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  %232 = load ptr, ptr %1, align 8
  ret ptr %232
}

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @key_equal(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i64 @hash_func(ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ct_malloc(i64 noundef) #4

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

declare zeroext i1 @hash_table_iterator_is_valid(ptr noundef) #2

declare ptr @hash_table_iterator_get_key(ptr noundef) #2

declare ptr @hash_table_iterator_get_value(ptr noundef) #2

declare zeroext i1 @hash_table_iterator_next(ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @ct_free(ptr noundef) #4

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !18, i64 40}
!17 = !{!"hash_table", !10, i64 0, !10, i64 8, !18, i64 16, !10, i64 24, !18, i64 32, !18, i64 40}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.key_struct = type { i32, ptr }
%struct.hash_table = type { ptr, ptr, i64, ptr, i64, i64 }
%struct.hash_table_iterator = type { ptr, i64, ptr }

@__const.test_hash_table.keys = external hidden unnamed_addr constant [9 x %struct.key_struct], align 16
@__const.test_hash_table.static_vals = external hidden unnamed_addr constant [9 x i16], align 16
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @test_hash_table() local_unnamed_addr #0 {
.preheader72.preheader:
  %0 = alloca %struct.hash_table, align 8
  %1 = alloca [9 x %struct.key_struct], align 16
  %2 = alloca %struct.hash_table_iterator, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %0) #5
  call void @create_hash_table(ptr noundef nonnull @key_equal, ptr noundef nonnull @hash_func, i64 noundef 16, i64 noundef 5, ptr noundef nonnull %0) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(144) %1, ptr noundef nonnull align 16 dereferenceable(144) @__const.test_hash_table.keys, i64 144, i1 false)
  %3 = call ptr @ct_malloc(i64 noundef 2)
  %4 = load i16, ptr @__const.test_hash_table.static_vals, align 16, !tbaa !5
  store i16 %4, ptr %3, align 2, !tbaa !5
  %5 = call ptr @ct_malloc(i64 noundef 2)
  %6 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 2), align 2, !tbaa !5
  store i16 %6, ptr %5, align 2, !tbaa !5
  %7 = call ptr @ct_malloc(i64 noundef 2)
  %8 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 4), align 4, !tbaa !5
  store i16 %8, ptr %7, align 2, !tbaa !5
  %9 = call ptr @ct_malloc(i64 noundef 2)
  %10 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 6), align 2, !tbaa !5
  store i16 %10, ptr %9, align 2, !tbaa !5
  %11 = call ptr @ct_malloc(i64 noundef 2)
  %12 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 8), align 8, !tbaa !5
  store i16 %12, ptr %11, align 2, !tbaa !5
  %13 = call ptr @ct_malloc(i64 noundef 2)
  %14 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 10), align 2, !tbaa !5
  store i16 %14, ptr %13, align 2, !tbaa !5
  %15 = call ptr @ct_malloc(i64 noundef 2)
  %16 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 12), align 4, !tbaa !5
  store i16 %16, ptr %15, align 2, !tbaa !5
  %17 = call ptr @ct_malloc(i64 noundef 2)
  %18 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 14), align 2, !tbaa !5
  store i16 %18, ptr %17, align 2, !tbaa !5
  %19 = call ptr @ct_malloc(i64 noundef 2)
  %20 = load i16, ptr getelementptr inbounds (i8, ptr @__const.test_hash_table.static_vals, i64 16), align 16, !tbaa !5
  store i16 %20, ptr %19, align 2, !tbaa !5
  %21 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %3) #5
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %.preheader72.1, label %.loopexit73

.preheader72.1:                                   ; preds = %.preheader72.preheader
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %23 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %22, ptr noundef nonnull %5) #5
  %.not.1 = icmp eq ptr %23, null
  br i1 %.not.1, label %.preheader72.2, label %.loopexit73

.preheader72.2:                                   ; preds = %.preheader72.1
  %24 = getelementptr inbounds i8, ptr %1, i64 32
  %25 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %24, ptr noundef nonnull %7) #5
  %.not.2 = icmp eq ptr %25, null
  br i1 %.not.2, label %.preheader72.3, label %.loopexit73

.preheader72.3:                                   ; preds = %.preheader72.2
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  %27 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %26, ptr noundef nonnull %9) #5
  %.not.3 = icmp eq ptr %27, null
  br i1 %.not.3, label %.preheader72.4, label %.loopexit73

.preheader72.4:                                   ; preds = %.preheader72.3
  %28 = getelementptr inbounds i8, ptr %1, i64 64
  %29 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %28, ptr noundef nonnull %11) #5
  %.not.4 = icmp eq ptr %29, null
  br i1 %.not.4, label %.preheader72.5, label %.loopexit73

.preheader72.5:                                   ; preds = %.preheader72.4
  %30 = getelementptr inbounds i8, ptr %1, i64 80
  %31 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %30, ptr noundef nonnull %13) #5
  %.not.5 = icmp eq ptr %31, null
  br i1 %.not.5, label %.critedge, label %.loopexit73

.critedge:                                        ; preds = %.preheader72.5
  %32 = getelementptr inbounds i8, ptr %0, i64 40
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %.not51 = icmp eq i64 %33, 6
  br i1 %.not51, label %34, label %.loopexit73

34:                                               ; preds = %.critedge
  %35 = call ptr @hash_table_get(ptr noundef nonnull %0, ptr noundef nonnull %22) #5
  %36 = load i16, ptr %35, align 2, !tbaa !5
  %.not52 = icmp eq i16 %36, %6
  br i1 %.not52, label %37, label %.loopexit73

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %1, i64 128
  %39 = call ptr @hash_table_get(ptr noundef nonnull %0, ptr noundef nonnull %38) #5
  %.not53 = icmp eq ptr %39, null
  br i1 %.not53, label %40, label %.loopexit73

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @init_hash_table_iterator(ptr noundef nonnull %0, ptr noundef nonnull %2) #5
  %41 = call zeroext i1 @hash_table_iterator_is_valid(ptr noundef nonnull %2) #5
  br i1 %41, label %.preheader70, label %._crit_edge.thread

.preheader70:                                     ; preds = %40, %95
  %.sroa.0.0 = phi i8 [ %.sroa.0.1, %95 ], [ 0, %40 ]
  %.sroa.6.0 = phi i8 [ %.sroa.6.1, %95 ], [ 0, %40 ]
  %.sroa.9.0 = phi i8 [ %.sroa.9.1, %95 ], [ 0, %40 ]
  %.sroa.12.0 = phi i8 [ %.sroa.12.1, %95 ], [ 0, %40 ]
  %.sroa.15.0 = phi i8 [ %.sroa.15.1, %95 ], [ 0, %40 ]
  %.sroa.18.0 = phi i8 [ %.sroa.18.1, %95 ], [ 0, %40 ]
  %.04478 = phi i32 [ %96, %95 ], [ 0, %40 ]
  %42 = call ptr @hash_table_iterator_get_key(ptr noundef nonnull %2) #5
  %43 = call zeroext i1 @key_equal(ptr noundef nonnull %1, ptr noundef %42)
  br i1 %43, label %44, label %50

44:                                               ; preds = %.preheader70
  %45 = call ptr @hash_table_iterator_get_value(ptr noundef nonnull %2) #5
  %46 = load i16, ptr %45, align 2, !tbaa !5
  %47 = icmp eq i16 %4, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %44
  %49 = trunc nuw i8 %.sroa.0.0 to i1
  br i1 %49, label %.loopexit, label %50

50:                                               ; preds = %48, %.preheader70, %44
  %.sroa.0.1 = phi i8 [ %.sroa.0.0, %44 ], [ %.sroa.0.0, %.preheader70 ], [ 1, %48 ]
  %51 = call ptr @hash_table_iterator_get_key(ptr noundef nonnull %2) #5
  %52 = call zeroext i1 @key_equal(ptr noundef nonnull %22, ptr noundef %51)
  br i1 %52, label %53, label %59

53:                                               ; preds = %50
  %54 = call ptr @hash_table_iterator_get_value(ptr noundef nonnull %2) #5
  %55 = load i16, ptr %54, align 2, !tbaa !5
  %56 = icmp eq i16 %6, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  %58 = trunc nuw i8 %.sroa.6.0 to i1
  br i1 %58, label %.loopexit, label %59

59:                                               ; preds = %57, %53, %50
  %.sroa.6.1 = phi i8 [ %.sroa.6.0, %53 ], [ %.sroa.6.0, %50 ], [ 1, %57 ]
  %60 = call ptr @hash_table_iterator_get_key(ptr noundef nonnull %2) #5
  %61 = call zeroext i1 @key_equal(ptr noundef nonnull %24, ptr noundef %60)
  br i1 %61, label %62, label %68

62:                                               ; preds = %59
  %63 = call ptr @hash_table_iterator_get_value(ptr noundef nonnull %2) #5
  %64 = load i16, ptr %63, align 2, !tbaa !5
  %65 = icmp eq i16 %8, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %62
  %67 = trunc nuw i8 %.sroa.9.0 to i1
  br i1 %67, label %.loopexit, label %68

68:                                               ; preds = %66, %62, %59
  %.sroa.9.1 = phi i8 [ %.sroa.9.0, %62 ], [ %.sroa.9.0, %59 ], [ 1, %66 ]
  %69 = call ptr @hash_table_iterator_get_key(ptr noundef nonnull %2) #5
  %70 = call zeroext i1 @key_equal(ptr noundef nonnull %26, ptr noundef %69)
  br i1 %70, label %71, label %77

71:                                               ; preds = %68
  %72 = call ptr @hash_table_iterator_get_value(ptr noundef nonnull %2) #5
  %73 = load i16, ptr %72, align 2, !tbaa !5
  %74 = icmp eq i16 %10, %73
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = trunc nuw i8 %.sroa.12.0 to i1
  br i1 %76, label %.loopexit, label %77

77:                                               ; preds = %75, %71, %68
  %.sroa.12.1 = phi i8 [ %.sroa.12.0, %71 ], [ %.sroa.12.0, %68 ], [ 1, %75 ]
  %78 = call ptr @hash_table_iterator_get_key(ptr noundef nonnull %2) #5
  %79 = call zeroext i1 @key_equal(ptr noundef nonnull %28, ptr noundef %78)
  br i1 %79, label %80, label %86

80:                                               ; preds = %77
  %81 = call ptr @hash_table_iterator_get_value(ptr noundef nonnull %2) #5
  %82 = load i16, ptr %81, align 2, !tbaa !5
  %83 = icmp eq i16 %12, %82
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = trunc nuw i8 %.sroa.15.0 to i1
  br i1 %85, label %.loopexit, label %86

86:                                               ; preds = %84, %80, %77
  %.sroa.15.1 = phi i8 [ %.sroa.15.0, %80 ], [ %.sroa.15.0, %77 ], [ 1, %84 ]
  %87 = call ptr @hash_table_iterator_get_key(ptr noundef nonnull %2) #5
  %88 = call zeroext i1 @key_equal(ptr noundef nonnull %30, ptr noundef %87)
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  %90 = call ptr @hash_table_iterator_get_value(ptr noundef nonnull %2) #5
  %91 = load i16, ptr %90, align 2, !tbaa !5
  %92 = icmp eq i16 %14, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = trunc nuw i8 %.sroa.18.0 to i1
  br i1 %94, label %.loopexit, label %95

95:                                               ; preds = %93, %89, %86
  %.sroa.18.1 = phi i8 [ %.sroa.18.0, %89 ], [ %.sroa.18.0, %86 ], [ 1, %93 ]
  %96 = add nuw nsw i32 %.04478, 1
  %97 = call zeroext i1 @hash_table_iterator_next(ptr noundef nonnull %2) #5
  %98 = call zeroext i1 @hash_table_iterator_is_valid(ptr noundef nonnull %2) #5
  br i1 %98, label %.preheader70, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %95
  %99 = zext nneg i32 %96 to i64
  %100 = trunc nuw i8 %.sroa.0.1 to i1
  %101 = trunc nuw i8 %.sroa.6.1 to i1
  %102 = trunc nuw i8 %.sroa.9.1 to i1
  %103 = trunc nuw i8 %.sroa.12.1 to i1
  %104 = trunc nuw i8 %.sroa.15.1 to i1
  %105 = trunc nuw i8 %.sroa.18.1 to i1
  %106 = load i64, ptr %32, align 8, !tbaa !9
  %.not54 = icmp ne i64 %106, %99
  %.not123 = xor i1 %100, true
  %brmerge = select i1 %.not54, i1 true, i1 %.not123
  %.not124 = xor i1 %101, true
  %brmerge125 = select i1 %brmerge, i1 true, i1 %.not124
  %.not126 = xor i1 %102, true
  %brmerge127 = select i1 %brmerge125, i1 true, i1 %.not126
  %.not128 = xor i1 %103, true
  %brmerge129 = select i1 %brmerge127, i1 true, i1 %.not128
  %.not130 = xor i1 %104, true
  %brmerge131 = select i1 %brmerge129, i1 true, i1 %.not130
  %.not132 = xor i1 %105, true
  %brmerge133 = select i1 %brmerge131, i1 true, i1 %.not132
  %.str.14.mux.mux.mux.mux.mux.mux = select i1 %.not54, ptr @.str.14, ptr @.str.15
  br i1 %brmerge133, label %.loopexit, label %108

._crit_edge.thread:                               ; preds = %40
  %107 = load i64, ptr %32, align 8, !tbaa !9
  %.not54110 = icmp eq i64 %107, 0
  %spec.select = select i1 %.not54110, ptr @.str.15, ptr @.str.14
  br label %.loopexit

108:                                              ; preds = %._crit_edge
  %109 = call ptr @hash_table_remove(ptr noundef nonnull %0, ptr noundef nonnull %22) #5
  %110 = load i16, ptr %109, align 2, !tbaa !5
  %.not55 = icmp eq i16 %110, %6
  br i1 %.not55, label %111, label %.loopexit

111:                                              ; preds = %108
  call void @ct_free(ptr noundef nonnull %109)
  %112 = load i64, ptr %32, align 8, !tbaa !9
  %.not56 = icmp eq i64 %112, 5
  br i1 %.not56, label %113, label %.loopexit

113:                                              ; preds = %111
  %114 = call ptr @ct_malloc(i64 noundef 2)
  store i16 -6, ptr %114, align 2, !tbaa !5
  %115 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %24, ptr noundef nonnull %114) #5
  %116 = load i16, ptr %115, align 2, !tbaa !5
  %.not57 = icmp eq i16 %116, %8
  br i1 %.not57, label %117, label %.loopexit

117:                                              ; preds = %113
  call void @ct_free(ptr noundef nonnull %115)
  %118 = call ptr @hash_table_get(ptr noundef nonnull %0, ptr noundef nonnull %24) #5
  %119 = load i16, ptr %118, align 2, !tbaa !5
  %120 = load i16, ptr %114, align 2, !tbaa !5
  %.not58 = icmp eq i16 %119, %120
  br i1 %.not58, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %117
  %121 = getelementptr inbounds i8, ptr %1, i64 96
  %122 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %121, ptr noundef nonnull %15) #5
  %.not59 = icmp eq ptr %122, null
  br i1 %.not59, label %.preheader.1, label %.loopexit

.preheader.1:                                     ; preds = %.preheader.preheader
  %123 = getelementptr inbounds i8, ptr %1, i64 112
  %124 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %123, ptr noundef nonnull %17) #5
  %.not59.1 = icmp eq ptr %124, null
  br i1 %.not59.1, label %.preheader.2, label %.loopexit

.preheader.2:                                     ; preds = %.preheader.1
  %125 = call ptr @hash_table_insert(ptr noundef nonnull %0, ptr noundef nonnull %38, ptr noundef nonnull %19) #5
  %.not59.2 = icmp eq ptr %125, null
  br i1 %.not59.2, label %126, label %.loopexit

126:                                              ; preds = %.preheader.2
  %127 = call ptr @hash_table_get(ptr noundef nonnull %0, ptr noundef nonnull %123) #5
  %128 = load i16, ptr %127, align 2, !tbaa !5
  %.not60 = icmp eq i16 %128, %18
  br i1 %.not60, label %129, label %.loopexit

129:                                              ; preds = %126
  call void @delete_hash_table(ptr noundef nonnull %0, ptr noundef nonnull @ct_free) #5
  br label %.loopexit

.loopexit:                                        ; preds = %48, %57, %66, %75, %84, %93, %._crit_edge.thread, %._crit_edge, %.preheader.preheader, %.preheader.1, %.preheader.2, %129, %113, %117, %126, %111, %108
  %.6 = phi ptr [ %.str.14.mux.mux.mux.mux.mux.mux, %._crit_edge ], [ @.str.16, %108 ], [ @.str.10, %111 ], [ null, %129 ], [ @.str.17, %113 ], [ @.str.11, %117 ], [ @.str.11, %126 ], [ @.str.9, %.preheader.2 ], [ @.str.9, %.preheader.1 ], [ @.str.9, %.preheader.preheader ], [ %spec.select, %._crit_edge.thread ], [ @.str.13, %93 ], [ @.str.13, %84 ], [ @.str.13, %75 ], [ @.str.13, %66 ], [ @.str.13, %57 ], [ @.str.13, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %.loopexit73

.loopexit73:                                      ; preds = %.preheader72.preheader, %.preheader72.1, %.preheader72.2, %.preheader72.3, %.preheader72.4, %.preheader72.5, %.loopexit, %34, %37, %.critedge
  %.8 = phi ptr [ @.str.10, %.critedge ], [ %.6, %.loopexit ], [ @.str.11, %34 ], [ @.str.12, %37 ], [ @.str.9, %.preheader72.5 ], [ @.str.9, %.preheader72.4 ], [ @.str.9, %.preheader72.3 ], [ @.str.9, %.preheader72.2 ], [ @.str.9, %.preheader72.1 ], [ @.str.9, %.preheader72.preheader ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %0) #5
  ret ptr %.8
}

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @key_equal(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i64 @hash_func(ptr noundef) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ct_malloc(i64 noundef) local_unnamed_addr #4

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

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

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

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

declare zeroext i1 @hash_table_iterator_is_valid(ptr noundef) local_unnamed_addr #2

declare ptr @hash_table_iterator_get_key(ptr noundef) local_unnamed_addr #2

declare ptr @hash_table_iterator_get_value(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @hash_table_iterator_next(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @ct_free(ptr noundef) #4

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"hash_table", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !12, i64 32, !12, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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