; LLVM IR from AngelPn/DBMS-Simulator :: src (HT)

; 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.HT_info = type { i32, i32, i8, ptr, i32, i64, i32 }
%struct.record = type { i32, [15 x i8], [25 x i8], [50 x i8] }

@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

declare void @BF_PrintError(ptr noundef) #0

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

declare i32 @BF_ReadBlock(i32 noundef, i32 noundef, 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) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @hash(i64 noundef, ptr noundef) #3

declare ptr @get_key(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %struct.record, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %struct.record, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 6
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = call i32 @BF_ReadBlock(i32 noundef %34, i32 noundef %36, ptr noundef %5)
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %2
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %282

40:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 512
  %43 = getelementptr inbounds i8, ptr %42, i64 -4
  %44 = load i32, ptr %43, align 4, !tbaa !14
  store i32 %44, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %171

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %48 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 5
  %49 = load i64, ptr %48, align 8, !tbaa !15
  %50 = mul i64 %49, 4
  %51 = udiv i64 %50, 508
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %53 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 5
  %54 = load i64, ptr %53, align 8, !tbaa !15
  %55 = mul i64 %54, 4
  %56 = urem i64 %55, 508
  %57 = trunc i64 %56 to i32
  store i32 %57, ptr %10, align 4, !tbaa !14
  %58 = load i32, ptr %10, align 4, !tbaa !14
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %47
  %61 = load i32, ptr %9, align 4, !tbaa !14
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %9, align 4, !tbaa !14
  br label %63

63:                                               ; preds = %60, %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !14
  br label %64

64:                                               ; preds = %163, %63
  %65 = load i32, ptr %12, align 4, !tbaa !14
  %66 = load i32, ptr %9, align 4, !tbaa !14
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 2, ptr %6, align 4
  br label %166

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %70 = load i32, ptr %12, align 4, !tbaa !14
  %71 = load i32, ptr %9, align 4, !tbaa !14
  %72 = icmp eq i32 %70, %71
  br i1 %72, label %73, label %81

73:                                               ; preds = %69
  %74 = load i32, ptr %10, align 4, !tbaa !14
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %73
  %77 = load i32, ptr %10, align 4, !tbaa !14
  %78 = sext i32 %77 to i64
  %79 = udiv i64 %78, 4
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %13, align 4, !tbaa !14
  br label %82

81:                                               ; preds = %73, %69
  store i32 127, ptr %13, align 4, !tbaa !14
  br label %82

82:                                               ; preds = %81, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !14
  br label %83

83:                                               ; preds = %143, %82
  %84 = load i32, ptr %16, align 4, !tbaa !14
  %85 = load i32, ptr %13, align 4, !tbaa !14
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 5, ptr %6, align 4
  br label %146

88:                                               ; preds = %83
  %89 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load i32, ptr %7, align 4, !tbaa !14
  %92 = call i32 @BF_ReadBlock(i32 noundef %90, i32 noundef %91, ptr noundef %8)
  %93 = icmp slt i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %88
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %146

95:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !14
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %16, align 4, !tbaa !14
  %98 = sext i32 %97 to i64
  %99 = mul i64 %98, 4
  %100 = getelementptr inbounds i8, ptr %96, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !14
  store i32 %101, ptr %14, align 4, !tbaa !14
  br label %102

102:                                              ; preds = %134, %95
  %103 = load i32, ptr %14, align 4, !tbaa !14
  %104 = icmp ne i32 %103, -1
  br i1 %104, label %105, label %139

105:                                              ; preds = %102
  %106 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = load i32, ptr %14, align 4, !tbaa !14
  %109 = call i32 @BF_ReadBlock(i32 noundef %107, i32 noundef %108, ptr noundef %15)
  %110 = icmp slt i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %105
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %140

112:                                              ; preds = %105
  %113 = load i32, ptr %11, align 4, !tbaa !14
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %11, align 4, !tbaa !14
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 512
  %117 = getelementptr inbounds i8, ptr %116, i64 -4
  %118 = load i32, ptr %117, align 4, !tbaa !14
  store i32 %118, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !14
  br label %119

119:                                              ; preds = %131, %112
  %120 = load i32, ptr %18, align 4, !tbaa !14
  %121 = load i32, ptr %17, align 4, !tbaa !14
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %134

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load i32, ptr %18, align 4, !tbaa !14
  %127 = sext i32 %126 to i64
  %128 = mul i64 %127, 96
  %129 = getelementptr inbounds i8, ptr %125, i64 %128
  store ptr %129, ptr %19, align 8, !tbaa !5
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 4 %130, i64 96, i1 false), !tbaa.struct !16
  call void @print_record(ptr noundef byval(%struct.record) align 8 %20)
  call void @llvm.lifetime.end.p0(i64 96, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %131

131:                                              ; preds = %124
  %132 = load i32, ptr %18, align 4, !tbaa !14
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %18, align 4, !tbaa !14
  br label %119, !llvm.loop !18

134:                                              ; preds = %123
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 512
  %137 = getelementptr inbounds i8, ptr %136, i64 -8
  %138 = load i32, ptr %137, align 4, !tbaa !14
  store i32 %138, ptr %14, align 4, !tbaa !14
  br label %102, !llvm.loop !20

139:                                              ; preds = %102
  store i32 0, ptr %6, align 4
  br label %140

140:                                              ; preds = %139, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %141 = load i32, ptr %6, align 4
  switch i32 %141, label %146 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %16, align 4, !tbaa !14
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %16, align 4, !tbaa !14
  br label %83, !llvm.loop !21

146:                                              ; preds = %140, %94, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %147 = load i32, ptr %6, align 4
  switch i32 %147, label %160 [
    i32 5, label %148
  ]

148:                                              ; preds = %146
  %149 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !14
  %152 = call i32 @BF_ReadBlock(i32 noundef %150, i32 noundef %151, ptr noundef %8)
  %153 = icmp slt i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %148
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %160

155:                                              ; preds = %148
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i64 512
  %158 = getelementptr inbounds i8, ptr %157, i64 -4
  %159 = load i32, ptr %158, align 4, !tbaa !14
  store i32 %159, ptr %7, align 4, !tbaa !14
  store i32 0, ptr %6, align 4
  br label %160

160:                                              ; preds = %155, %154, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %161 = load i32, ptr %6, align 4
  switch i32 %161, label %166 [
    i32 0, label %162
  ]

162:                                              ; preds = %160
  br label %163

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

166:                                              ; preds = %160, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %167 = load i32, ptr %6, align 4
  switch i32 %167, label %170 [
    i32 2, label %168
  ]

168:                                              ; preds = %166
  %169 = load i32, ptr %11, align 4, !tbaa !14
  store i32 %169, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %170

170:                                              ; preds = %168, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %281

171:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %172 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 5
  %173 = load i64, ptr %172, align 8, !tbaa !15
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = call i32 @hash(i64 noundef %173, ptr noundef %174)
  store i32 %175, ptr %21, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 127, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 -1, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !14
  br label %176

176:                                              ; preds = %211, %171
  %177 = load i32, ptr %7, align 4, !tbaa !14
  %178 = icmp ne i32 %177, -1
  br i1 %178, label %179, label %216

179:                                              ; preds = %176
  %180 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 1
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = load i32, ptr %7, align 4, !tbaa !14
  %183 = call i32 @BF_ReadBlock(i32 noundef %181, i32 noundef %182, ptr noundef %8)
  %184 = icmp slt i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %179
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %280

186:                                              ; preds = %179
  store i32 0, ptr %24, align 4, !tbaa !14
  br label %187

187:                                              ; preds = %199, %186
  %188 = load i32, ptr %24, align 4, !tbaa !14
  %189 = load i32, ptr %22, align 4, !tbaa !14
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %191, label %202

191:                                              ; preds = %187
  %192 = load i32, ptr %23, align 4, !tbaa !14
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %23, align 4, !tbaa !14
  %194 = load i32, ptr %21, align 4, !tbaa !14
  %195 = load i32, ptr %23, align 4, !tbaa !14
  %196 = icmp eq i32 %194, %195
  br i1 %196, label %197, label %198

197:                                              ; preds = %191
  br label %202

198:                                              ; preds = %191
  br label %199

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

202:                                              ; preds = %197, %187
  %203 = load i32, ptr %21, align 4, !tbaa !14
  %204 = load i32, ptr %23, align 4, !tbaa !14
  %205 = icmp eq i32 %203, %204
  br i1 %205, label %206, label %211

206:                                              ; preds = %202
  %207 = load i32, ptr %24, align 4, !tbaa !14
  %208 = sext i32 %207 to i64
  %209 = mul i64 %208, 4
  %210 = trunc i64 %209 to i32
  store i32 %210, ptr %21, align 4, !tbaa !14
  br label %216

211:                                              ; preds = %202
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i64 512
  %214 = getelementptr inbounds i8, ptr %213, i64 -4
  %215 = load i32, ptr %214, align 4, !tbaa !14
  store i32 %215, ptr %7, align 4, !tbaa !14
  br label %176, !llvm.loop !24

216:                                              ; preds = %206, %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i32, ptr %21, align 4, !tbaa !14
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !14
  store i32 %221, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  store ptr null, ptr %28, align 8, !tbaa !5
  br label %222

222:                                              ; preds = %273, %216
  %223 = load i32, ptr %26, align 4, !tbaa !14
  %224 = icmp ne i32 %223, -1
  br i1 %224, label %225, label %278

225:                                              ; preds = %222
  %226 = load i32, ptr %25, align 4, !tbaa !14
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %25, align 4, !tbaa !14
  %228 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 1
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = load i32, ptr %26, align 4, !tbaa !14
  %231 = call i32 @BF_ReadBlock(i32 noundef %229, i32 noundef %230, ptr noundef %28)
  %232 = icmp slt i32 %231, 0
  br i1 %232, label %233, label %234

233:                                              ; preds = %225
  call void @BF_PrintError(ptr noundef @.str.3)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %279

234:                                              ; preds = %225
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = getelementptr inbounds i8, ptr %235, i64 512
  %237 = getelementptr inbounds i8, ptr %236, i64 -4
  %238 = load i32, ptr %237, align 4, !tbaa !14
  store i32 %238, ptr %27, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !14
  br label %239

239:                                              ; preds = %268, %234
  %240 = load i32, ptr %29, align 4, !tbaa !14
  %241 = load i32, ptr %27, align 4, !tbaa !14
  %242 = icmp slt i32 %240, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %239
  store i32 20, ptr %6, align 4
  br label %271

244:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %245 = load ptr, ptr %28, align 8, !tbaa !5
  %246 = load i32, ptr %29, align 4, !tbaa !14
  %247 = sext i32 %246 to i64
  %248 = mul i64 %247, 96
  %249 = getelementptr inbounds i8, ptr %245, i64 %248
  store ptr %249, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %250 = load ptr, ptr %30, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 3
  %252 = load ptr, ptr %251, align 8, !tbaa !25
  %253 = call ptr @get_key(ptr noundef %250, ptr noundef %252)
  store ptr %253, ptr %31, align 8, !tbaa !5
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = load ptr, ptr %31, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.HT_info, ptr %0, i32 0, i32 4
  %257 = load i32, ptr %256, align 8, !tbaa !26
  %258 = sext i32 %257 to i64
  %259 = call i32 @memcmp(ptr noundef %254, ptr noundef %255, i64 noundef %258) #6
  %260 = icmp eq i32 %259, 0
  br i1 %260, label %261, label %264

261:                                              ; preds = %244
  %262 = load ptr, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %32) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 4 %262, i64 96, i1 false), !tbaa.struct !16
  call void @print_record(ptr noundef byval(%struct.record) align 8 %32)
  call void @llvm.lifetime.end.p0(i64 96, ptr %32) #5
  %263 = load i32, ptr %25, align 4, !tbaa !14
  store i32 %263, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %265

264:                                              ; preds = %244
  store i32 0, ptr %6, align 4
  br label %265

265:                                              ; preds = %264, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  %266 = load i32, ptr %6, align 4
  switch i32 %266, label %271 [
    i32 0, label %267
  ]

267:                                              ; preds = %265
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %29, align 4, !tbaa !14
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %29, align 4, !tbaa !14
  br label %239, !llvm.loop !27

271:                                              ; preds = %265, %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  %272 = load i32, ptr %6, align 4
  switch i32 %272, label %279 [
    i32 20, label %273
  ]

273:                                              ; preds = %271
  %274 = load ptr, ptr %28, align 8, !tbaa !5
  %275 = getelementptr inbounds i8, ptr %274, i64 512
  %276 = getelementptr inbounds i8, ptr %275, i64 -8
  %277 = load i32, ptr %276, align 4, !tbaa !14
  store i32 %277, ptr %26, align 4, !tbaa !14
  br label %222, !llvm.loop !28

278:                                              ; preds = %222
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %6, align 4
  br label %279

279:                                              ; preds = %278, %271, %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %280

280:                                              ; preds = %279, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %281

281:                                              ; preds = %280, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %282

282:                                              ; preds = %281, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %283 = load i32, ptr %3, align 4
  ret i32 %283
}

declare void @print_record(ptr noundef byval(%struct.record) align 8) #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

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

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


; 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.HT_info = type { i32, i32, i8, ptr, i32, i64, i32 }
%struct.record = type { i32, [15 x i8], [25 x i8], [50 x i8] }

@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

declare void @BF_PrintError(ptr noundef) local_unnamed_addr #0

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

declare i32 @BF_ReadBlock(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @hash(i64 noundef, ptr noundef) local_unnamed_addr #3

declare ptr @get_key(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @HT_GetAllEntries(ptr nocapture noundef readonly byval(%struct.HT_info) align 8 %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.record, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.record, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %13 = call i32 @BF_ReadBlock(i32 noundef %10, i32 noundef %12, ptr noundef nonnull %3) #5
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  call void @BF_PrintError(ptr noundef nonnull @.str.3) #5
  br label %112

16:                                               ; preds = %2
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 508
  %19 = load i32, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  %20 = icmp eq ptr %1, null
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %22 = load i64, ptr %21, align 8, !tbaa !15
  br i1 %20, label %23, label %60

23:                                               ; preds = %16
  %24 = shl i64 %22, 2
  %25 = udiv i64 %24, 508
  %26 = trunc i64 %25 to i32
  %27 = urem i64 %24, 508
  %28 = icmp ne i64 %27, 0
  %29 = zext i1 %28 to i32
  %spec.select = add i32 %29, %26
  %.not97153 = icmp slt i32 %spec.select, 1
  br i1 %.not97153, label %.loopexit, label %.lr.ph158

.lr.ph158:                                        ; preds = %23
  %30 = lshr exact i64 %27, 2
  %31 = trunc nuw nsw i64 %30 to i32
  br label %32

32:                                               ; preds = %.lr.ph158, %55
  %.075156 = phi i32 [ %19, %.lr.ph158 ], [ %58, %55 ]
  %.084155 = phi i32 [ 1, %.lr.ph158 ], [ %59, %55 ]
  %.085154 = phi i32 [ 0, %.lr.ph158 ], [ %.186.lcssa, %55 ]
  %33 = icmp eq i32 %.084155, %spec.select
  %or.cond = and i1 %28, %33
  %.083 = select i1 %or.cond, i32 %31, i32 127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  %.not99147.not = icmp eq i32 %.083, 0
  br i1 %.not99147.not, label %.thread103, label %.lr.ph151.preheader

.lr.ph151.preheader:                              ; preds = %32
  %wide.trip.count178 = zext nneg i32 %.083 to i64
  br label %.lr.ph151

.lr.ph151:                                        ; preds = %.lr.ph151.preheader, %.critedge
  %indvars.iv175 = phi i64 [ 0, %.lr.ph151.preheader ], [ %indvars.iv.next176, %.critedge ]
  %.186148 = phi i32 [ %.085154, %.lr.ph151.preheader ], [ %.287.lcssa, %.critedge ]
  %34 = call i32 @BF_ReadBlock(i32 noundef %10, i32 noundef %.075156, ptr noundef nonnull %4) #5
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %.thread106, label %36

36:                                               ; preds = %.lr.ph151
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = shl nuw nsw i64 %indvars.iv175, 2
  %39 = getelementptr inbounds i8, ptr %37, i64 %38
  %.082141 = load i32, ptr %39, align 4, !tbaa !14
  %.not98142 = icmp eq i32 %.082141, -1
  br i1 %.not98142, label %.critedge, label %.lr.ph146

.lr.ph146:                                        ; preds = %36, %._crit_edge140
  %.082144 = phi i32 [ %.082, %._crit_edge140 ], [ %.082141, %36 ]
  %.287143 = phi i32 [ %43, %._crit_edge140 ], [ %.186148, %36 ]
  %40 = call i32 @BF_ReadBlock(i32 noundef %10, i32 noundef %.082144, ptr noundef nonnull %5) #5
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %.thread106, label %42

42:                                               ; preds = %.lr.ph146
  %43 = add nsw i32 %.287143, 1
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 508
  %46 = load i32, ptr %45, align 4, !tbaa !14
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph139.preheader, label %._crit_edge140

.lr.ph139.preheader:                              ; preds = %42
  %wide.trip.count173 = zext nneg i32 %46 to i64
  br label %.lr.ph139

._crit_edge140.loopexit:                          ; preds = %.lr.ph139
  %.pre181 = load ptr, ptr %5, align 8, !tbaa !5
  br label %._crit_edge140

._crit_edge140:                                   ; preds = %._crit_edge140.loopexit, %42
  %48 = phi ptr [ %.pre181, %._crit_edge140.loopexit ], [ %44, %42 ]
  %49 = getelementptr inbounds i8, ptr %48, i64 504
  %.082 = load i32, ptr %49, align 4, !tbaa !14
  %.not98 = icmp eq i32 %.082, -1
  br i1 %.not98, label %.critedge, label %.lr.ph146, !llvm.loop !16

.lr.ph139:                                        ; preds = %.lr.ph139.preheader, %.lr.ph139
  %indvars.iv170 = phi i64 [ 0, %.lr.ph139.preheader ], [ %indvars.iv.next171, %.lr.ph139 ]
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = mul nuw nsw i64 %indvars.iv170, 96
  %52 = getelementptr inbounds i8, ptr %50, i64 %51
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %6, ptr noundef nonnull align 4 dereferenceable(96) %52, i64 96, i1 false), !tbaa.struct !18
  call void @print_record(ptr noundef nonnull byval(%struct.record) align 8 %6) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #5
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond174.not = icmp eq i64 %indvars.iv.next171, %wide.trip.count173
  br i1 %exitcond174.not, label %._crit_edge140.loopexit, label %.lr.ph139, !llvm.loop !20

.critedge:                                        ; preds = %._crit_edge140, %36
  %.287.lcssa = phi i32 [ %.186148, %36 ], [ %43, %._crit_edge140 ]
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %wide.trip.count178
  br i1 %exitcond179.not, label %.thread103, label %.lr.ph151, !llvm.loop !21

.thread103:                                       ; preds = %.critedge, %32
  %.186.lcssa = phi i32 [ %.085154, %32 ], [ %.287.lcssa, %.critedge ]
  %53 = call i32 @BF_ReadBlock(i32 noundef %10, i32 noundef %.075156, ptr noundef nonnull %4) #5
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %.thread106, label %55

.thread106:                                       ; preds = %.thread103, %.lr.ph151, %.lr.ph146
  call void @BF_PrintError(ptr noundef nonnull @.str.3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %.loopexit

55:                                               ; preds = %.thread103
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 508
  %58 = load i32, ptr %57, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %59 = add nuw i32 %.084155, 1
  %exitcond180.not = icmp eq i32 %.084155, %spec.select
  br i1 %exitcond180.not, label %.loopexit, label %32, !llvm.loop !22

60:                                               ; preds = %16
  %61 = call i32 @hash(i64 noundef %22, ptr noundef nonnull %1)
  %.not126 = icmp eq i32 %19, -1
  br i1 %.not126, label %.loopexit115, label %.lr.ph

.lr.ph:                                           ; preds = %60, %82
  %.072128 = phi i32 [ %69, %82 ], [ -1, %60 ]
  %.277127 = phi i32 [ %85, %82 ], [ %19, %60 ]
  %62 = call i32 @BF_ReadBlock(i32 noundef %10, i32 noundef %.277127, ptr noundef nonnull %4) #5
  %63 = icmp slt i32 %62, 0
  br i1 %63, label %64, label %.preheader

64:                                               ; preds = %.lr.ph
  call void @BF_PrintError(ptr noundef nonnull @.str.3) #5
  br label %.loopexit

.preheader:                                       ; preds = %.lr.ph, %74
  %.071125 = phi i32 [ %75, %74 ], [ 0, %.lr.ph ]
  %.173124 = phi i32 [ %72, %74 ], [ %.072128, %.lr.ph ]
  %65 = add nsw i32 %.173124, 1
  %66 = icmp eq i32 %61, %65
  br i1 %66, label %.thread182.loopexit, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader
  %67 = add nsw i32 %.173124, 2
  %68 = icmp eq i32 %61, %67
  br i1 %68, label %.thread182.loopexit.split.loop.exit228, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %69 = add nsw i32 %.173124, 3
  %70 = icmp eq i32 %61, %69
  br i1 %70, label %.thread182.loopexit.split.loop.exit226, label %71

71:                                               ; preds = %.preheader.2
  %exitcond.not.2 = icmp eq i32 %.071125, 124
  br i1 %exitcond.not.2, label %76, label %.preheader.3, !llvm.loop !23

.preheader.3:                                     ; preds = %71
  %72 = add nsw i32 %.173124, 4
  %73 = icmp eq i32 %61, %72
  br i1 %73, label %.thread182.loopexit.split.loop.exit, label %74

74:                                               ; preds = %.preheader.3
  %75 = add nuw nsw i32 %.071125, 4
  br label %.preheader

76:                                               ; preds = %71
  %77 = icmp eq i32 %61, %69
  br i1 %77, label %.loopexit115, label %82

.thread182.loopexit.split.loop.exit:              ; preds = %.preheader.3
  %78 = or disjoint i32 %.071125, 3
  br label %.thread182.loopexit

.thread182.loopexit.split.loop.exit226:           ; preds = %.preheader.2
  %79 = or disjoint i32 %.071125, 2
  br label %.thread182.loopexit

.thread182.loopexit.split.loop.exit228:           ; preds = %.preheader.1
  %80 = or disjoint i32 %.071125, 1
  br label %.thread182.loopexit

.thread182.loopexit:                              ; preds = %.preheader, %.thread182.loopexit.split.loop.exit228, %.thread182.loopexit.split.loop.exit226, %.thread182.loopexit.split.loop.exit
  %.071125.lcssa = phi i32 [ %78, %.thread182.loopexit.split.loop.exit ], [ %79, %.thread182.loopexit.split.loop.exit226 ], [ %80, %.thread182.loopexit.split.loop.exit228 ], [ %.071125, %.preheader ]
  %81 = shl i32 %.071125.lcssa, 2
  br label %.loopexit115

82:                                               ; preds = %76
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 508
  %85 = load i32, ptr %84, align 4, !tbaa !14
  %.not = icmp eq i32 %85, -1
  br i1 %.not, label %.loopexit115, label %.lr.ph, !llvm.loop !24

.loopexit115:                                     ; preds = %82, %76, %.thread182.loopexit, %60
  %.078 = phi i32 [ %61, %60 ], [ %81, %.thread182.loopexit ], [ %61, %82 ], [ 508, %76 ]
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = sext i32 %.078 to i64
  %88 = getelementptr inbounds i8, ptr %86, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  %.not94132 = icmp eq i32 %89, -1
  br i1 %.not94132, label %.loopexit114, label %.lr.ph136

.lr.ph136:                                        ; preds = %.loopexit115
  %90 = getelementptr inbounds i8, ptr %0, i64 16
  %91 = load ptr, ptr %90, align 8
  %92 = getelementptr inbounds i8, ptr %0, i64 24
  %93 = load i32, ptr %92, align 8
  %94 = sext i32 %93 to i64
  br label %95

95:                                               ; preds = %.lr.ph136, %._crit_edge
  %.069134 = phi i32 [ %89, %.lr.ph136 ], [ %111, %._crit_edge ]
  %.070133 = phi i32 [ 0, %.lr.ph136 ], [ %96, %._crit_edge ]
  %96 = add nuw nsw i32 %.070133, 1
  %97 = call i32 @BF_ReadBlock(i32 noundef %10, i32 noundef %.069134, ptr noundef nonnull %7) #5
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %95
  call void @BF_PrintError(ptr noundef nonnull @.str.3) #5
  br label %.loopexit114

100:                                              ; preds = %95
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 508
  %103 = load i32, ptr %102, align 4, !tbaa !14
  %.not96129 = icmp sgt i32 %103, 0
  br i1 %.not96129, label %.lr.ph131.preheader, label %._crit_edge

.lr.ph131.preheader:                              ; preds = %100
  %wide.trip.count = zext nneg i32 %103 to i64
  br label %.lr.ph131

104:                                              ; preds = %.lr.ph131
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond169.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond169.not, label %._crit_edge.loopexit, label %.lr.ph131, !llvm.loop !25

.lr.ph131:                                        ; preds = %.lr.ph131.preheader, %104
  %indvars.iv = phi i64 [ 0, %.lr.ph131.preheader ], [ %indvars.iv.next, %104 ]
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = mul nuw nsw i64 %indvars.iv, 96
  %107 = getelementptr inbounds i8, ptr %105, i64 %106
  %108 = call ptr @get_key(ptr noundef %107, ptr noundef %91) #5
  %bcmp = call i32 @bcmp(ptr nonnull %1, ptr %108, i64 %94)
  %.not95 = icmp eq i32 %bcmp, 0
  br i1 %.not95, label %.thread112, label %104

.thread112:                                       ; preds = %.lr.ph131
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef nonnull align 4 dereferenceable(96) %107, i64 96, i1 false), !tbaa.struct !18
  call void @print_record(ptr noundef nonnull byval(%struct.record) align 8 %8) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %8) #5
  br label %.loopexit114

._crit_edge.loopexit:                             ; preds = %104
  %.pre = load ptr, ptr %7, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %100
  %109 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %101, %100 ]
  %110 = getelementptr inbounds i8, ptr %109, i64 504
  %111 = load i32, ptr %110, align 4, !tbaa !14
  %.not94 = icmp eq i32 %111, -1
  br i1 %.not94, label %.loopexit114, label %95, !llvm.loop !26

.loopexit114:                                     ; preds = %._crit_edge, %.loopexit115, %.thread112, %99
  %.11 = phi i32 [ -1, %99 ], [ %96, %.thread112 ], [ -1, %.loopexit115 ], [ -1, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %.loopexit

.loopexit:                                        ; preds = %55, %23, %.thread106, %64, %.loopexit114
  %.13 = phi i32 [ -1, %64 ], [ %.11, %.loopexit114 ], [ -1, %.thread106 ], [ 0, %23 ], [ %.186.lcssa, %55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %112

112:                                              ; preds = %.loopexit, %15
  %.14 = phi i32 [ -1, %15 ], [ %.13, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.14
}

declare void @print_record(ptr noundef byval(%struct.record) align 8) local_unnamed_addr #0

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #4

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


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