; LLVM IR from mwarning/KadNode :: src (dht)

; 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.timeval = type { i64, i64 }
%struct.storage = type { [20 x i8], i32, i32, ptr, ptr }
%struct.peer = type { i64, [16 x i8], i16, i16 }
%struct.search = type { i16, i32, i64, [20 x i8], i16, i32, [14 x %struct.search_node], i32, ptr }
%struct.search_node = type { [20 x i8], %struct.sockaddr_storage, i32, i64, i64, i32, [40 x i8], i32, i32, i32 }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%struct.bucket = type { i32, [20 x i8], i32, i32, i64, ptr, %struct.sockaddr_storage, i32, ptr }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@searches = external hidden global ptr, align 8
@now = external hidden global %struct.timeval, align 8
@search_id = external hidden global i16, align 2
@myid = external hidden global [20 x i8], align 16
@search_time = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @dht_search(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i16, align 2
  %17 = alloca [18 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = call ptr @find_bucket(ptr noundef %23, i32 noundef %24)
  store ptr %25, ptr %14, align 8, !tbaa !5
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %30

28:                                               ; preds = %5
  %29 = call ptr @__errno_location() #6
  store i32 97, ptr %29, align 4, !tbaa !9
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %274

30:                                               ; preds = %5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %118

33:                                               ; preds = %30
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call ptr @find_storage(ptr noundef %34)
  store ptr %35, ptr %13, align 8, !tbaa !5
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %117

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 18, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.storage, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !11
  call void (ptr, ...) @debugf(ptr noundef @.str, i32 noundef %41)
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %113, %38
  %43 = load i32, ptr %18, align 4, !tbaa !9
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.storage, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !11
  %47 = icmp slt i32 %43, %46
  br i1 %47, label %48, label %116

48:                                               ; preds = %42
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.storage, ptr %49, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = load i32, ptr %18, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.peer, ptr %51, i64 %53
  %55 = getelementptr inbounds %struct.peer, ptr %54, i32 0, i32 3
  %56 = load i16, ptr %55, align 2, !tbaa !14
  %57 = call zeroext i16 @__bswap_16(i16 noundef zeroext %56)
  store i16 %57, ptr %16, align 2, !tbaa !18
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.storage, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct.peer, ptr %60, i64 %62
  %64 = getelementptr inbounds %struct.peer, ptr %63, i32 0, i32 2
  %65 = load i16, ptr %64, align 8, !tbaa !19
  %66 = zext i16 %65 to i32
  %67 = icmp eq i32 %66, 4
  br i1 %67, label %68, label %84

68:                                               ; preds = %48
  %69 = getelementptr inbounds [18 x i8], ptr %17, i64 0, i64 0
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.storage, ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct.peer, ptr %72, i64 %74
  %76 = getelementptr inbounds %struct.peer, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds [16 x i8], ptr %76, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %69, ptr align 8 %77, i64 4, i1 false)
  %78 = getelementptr inbounds [18 x i8], ptr %17, i64 0, i64 0
  %79 = getelementptr inbounds i8, ptr %78, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %79, ptr align 2 %16, i64 2, i1 false)
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds [18 x i8], ptr %17, i64 0, i64 0
  call void %80(ptr noundef %81, i32 noundef 1, ptr noundef %82, ptr noundef %83, i64 noundef 6)
  br label %112

84:                                               ; preds = %48
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.storage, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct.peer, ptr %87, i64 %89
  %91 = getelementptr inbounds %struct.peer, ptr %90, i32 0, i32 2
  %92 = load i16, ptr %91, align 8, !tbaa !19
  %93 = zext i16 %92 to i32
  %94 = icmp eq i32 %93, 16
  br i1 %94, label %95, label %111

95:                                               ; preds = %84
  %96 = getelementptr inbounds [18 x i8], ptr %17, i64 0, i64 0
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.storage, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.peer, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.peer, ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds [16 x i8], ptr %103, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %96, ptr align 8 %104, i64 16, i1 false)
  %105 = getelementptr inbounds [18 x i8], ptr %17, i64 0, i64 0
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %106, ptr align 2 %16, i64 2, i1 false)
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds [18 x i8], ptr %17, i64 0, i64 0
  call void %107(ptr noundef %108, i32 noundef 2, ptr noundef %109, ptr noundef %110, i64 noundef 18)
  br label %111

111:                                              ; preds = %95, %84
  br label %112

112:                                              ; preds = %111, %68
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %18, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %18, align 4, !tbaa !9
  br label %42, !llvm.loop !20

116:                                              ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 18, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #5
  br label %117

117:                                              ; preds = %116, %33
  br label %118

118:                                              ; preds = %117, %30
  %119 = load ptr, ptr @searches, align 8, !tbaa !5
  store ptr %119, ptr %12, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %137, %118
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %141

123:                                              ; preds = %120
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.search, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !22
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = icmp eq i32 %126, %127
  br i1 %128, label %129, label %137

129:                                              ; preds = %123
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.search, ptr %130, i32 0, i32 3
  %132 = getelementptr inbounds [20 x i8], ptr %131, i64 0, i64 0
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = call i32 @id_cmp(ptr noundef %132, ptr noundef %133)
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %129
  br label %141

137:                                              ; preds = %129, %123
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.search, ptr %138, i32 0, i32 8
  %140 = load ptr, ptr %139, align 8, !tbaa !24
  store ptr %140, ptr %12, align 8, !tbaa !5
  br label %120, !llvm.loop !25

141:                                              ; preds = %136, %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %150

144:                                              ; preds = %141
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.search, ptr %145, i32 0, i32 5
  %147 = load i32, ptr %146, align 8, !tbaa !26
  %148 = icmp ne i32 %147, 0
  %149 = xor i1 %148, true
  br label %150

150:                                              ; preds = %144, %141
  %151 = phi i1 [ false, %141 ], [ %149, %144 ]
  %152 = zext i1 %151 to i32
  store i32 %152, ptr %19, align 4, !tbaa !9
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %201

155:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.search, ptr %156, i32 0, i32 5
  store i32 0, ptr %157, align 8, !tbaa !26
  br label %158

158:                                              ; preds = %194, %155
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %197, %158
  %160 = load i32, ptr %20, align 4, !tbaa !9
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.search, ptr %161, i32 0, i32 7
  %163 = load i32, ptr %162, align 8, !tbaa !27
  %164 = icmp slt i32 %160, %163
  br i1 %164, label %165, label %200

165:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.search, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %20, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [14 x %struct.search_node], ptr %167, i64 0, i64 %169
  store ptr %170, ptr %21, align 8, !tbaa !5
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.search_node, ptr %171, i32 0, i32 5
  %173 = load i32, ptr %172, align 8, !tbaa !28
  %174 = icmp sge i32 %173, 3
  br i1 %174, label %182, label %175

175:                                              ; preds = %165
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.search_node, ptr %176, i32 0, i32 4
  %178 = load i64, ptr %177, align 8, !tbaa !31
  %179 = load i64, ptr @now, align 8, !tbaa !32
  %180 = sub nsw i64 %179, 7200
  %181 = icmp slt i64 %178, %180
  br i1 %181, label %182, label %185

182:                                              ; preds = %175, %165
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  call void @flush_search_node(ptr noundef %183, ptr noundef %184)
  store i32 7, ptr %15, align 4
  br label %194

185:                                              ; preds = %175
  %186 = load ptr, ptr %21, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.search_node, ptr %186, i32 0, i32 5
  store i32 0, ptr %187, align 8, !tbaa !28
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.search_node, ptr %188, i32 0, i32 7
  store i32 0, ptr %189, align 4, !tbaa !34
  %190 = load ptr, ptr %21, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.search_node, ptr %190, i32 0, i32 8
  store i32 0, ptr %191, align 8, !tbaa !35
  %192 = load ptr, ptr %21, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.search_node, ptr %192, i32 0, i32 9
  store i32 0, ptr %193, align 4, !tbaa !36
  store i32 0, ptr %15, align 4
  br label %194

194:                                              ; preds = %185, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %195 = load i32, ptr %15, align 4
  switch i32 %195, label %276 [
    i32 0, label %196
    i32 7, label %158
  ]

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %20, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %20, align 4, !tbaa !9
  br label %159, !llvm.loop !37

200:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %225

201:                                              ; preds = %150
  %202 = call ptr @new_search()
  store ptr %202, ptr %12, align 8, !tbaa !5
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = icmp eq ptr %203, null
  br i1 %204, label %205, label %207

205:                                              ; preds = %201
  %206 = call ptr @__errno_location() #6
  store i32 28, ptr %206, align 4, !tbaa !9
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %273

207:                                              ; preds = %201
  %208 = load i32, ptr %9, align 4, !tbaa !9
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.search, ptr %209, i32 0, i32 1
  store i32 %208, ptr %210, align 4, !tbaa !22
  %211 = load i16, ptr @search_id, align 2, !tbaa !18
  %212 = add i16 %211, 1
  store i16 %212, ptr @search_id, align 2, !tbaa !18
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.search, ptr %213, i32 0, i32 0
  store i16 %211, ptr %214, align 8, !tbaa !38
  %215 = load ptr, ptr %12, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.search, ptr %215, i32 0, i32 2
  store i64 0, ptr %216, align 8, !tbaa !39
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.search, ptr %217, i32 0, i32 3
  %219 = getelementptr inbounds [20 x i8], ptr %218, i64 0, i64 0
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %219, ptr align 1 %220, i64 20, i1 false)
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.search, ptr %221, i32 0, i32 5
  store i32 0, ptr %222, align 8, !tbaa !26
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.search, ptr %223, i32 0, i32 7
  store i32 0, ptr %224, align 8, !tbaa !27
  br label %225

225:                                              ; preds = %207, %200
  %226 = load i32, ptr %8, align 4, !tbaa !9
  %227 = trunc i32 %226 to i16
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.search, ptr %228, i32 0, i32 4
  store i16 %227, ptr %229, align 4, !tbaa !40
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  call void @insert_search_bucket(ptr noundef %230, ptr noundef %231)
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.search, ptr %232, i32 0, i32 7
  %234 = load i32, ptr %233, align 8, !tbaa !27
  %235 = icmp slt i32 %234, 14
  br i1 %235, label %236, label %255

236:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %237 = load ptr, ptr %14, align 8, !tbaa !5
  %238 = call ptr @previous_bucket(ptr noundef %237)
  store ptr %238, ptr %22, align 8, !tbaa !5
  %239 = load ptr, ptr %14, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.bucket, ptr %239, i32 0, i32 8
  %241 = load ptr, ptr %240, align 8, !tbaa !41
  %242 = icmp ne ptr %241, null
  br i1 %242, label %243, label %248

243:                                              ; preds = %236
  %244 = load ptr, ptr %14, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.bucket, ptr %244, i32 0, i32 8
  %246 = load ptr, ptr %245, align 8, !tbaa !41
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  call void @insert_search_bucket(ptr noundef %246, ptr noundef %247)
  br label %248

248:                                              ; preds = %243, %236
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = icmp ne ptr %249, null
  br i1 %250, label %251, label %254

251:                                              ; preds = %248
  %252 = load ptr, ptr %22, align 8, !tbaa !5
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  call void @insert_search_bucket(ptr noundef %252, ptr noundef %253)
  br label %254

254:                                              ; preds = %251, %248
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %255

255:                                              ; preds = %254, %225
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.search, ptr %256, i32 0, i32 7
  %258 = load i32, ptr %257, align 8, !tbaa !27
  %259 = icmp slt i32 %258, 14
  br i1 %259, label %260, label %264

260:                                              ; preds = %255
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = call ptr @find_bucket(ptr noundef @myid, i32 noundef %261)
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  call void @insert_search_bucket(ptr noundef %262, ptr noundef %263)
  br label %264

264:                                              ; preds = %260, %255
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = load ptr, ptr %11, align 8, !tbaa !5
  call void @search_step(ptr noundef %265, ptr noundef %266, ptr noundef %267)
  %268 = load i64, ptr @now, align 8, !tbaa !32
  store i64 %268, ptr @search_time, align 8, !tbaa !43
  %269 = load i32, ptr %19, align 4, !tbaa !9
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %264
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %273

272:                                              ; preds = %264
  store i32 1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %273

273:                                              ; preds = %272, %271, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %274

274:                                              ; preds = %273, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %275 = load i32, ptr %6, align 4
  ret i32 %275

276:                                              ; preds = %194
  unreachable
}

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

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

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

; Function Attrs: nounwind uwtable
declare hidden void @debugf(ptr noundef, ...) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) #3

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

; 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 hidden i32 @id_cmp(ptr noalias noundef, ptr noalias noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @flush_search_node(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @new_search() #0

; Function Attrs: nounwind uwtable
declare hidden void @insert_search_bucket(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden void @search_step(ptr noundef, ptr noundef, ptr noundef) #0

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 = { nounwind willreturn memory(none) "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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 20}
!12 = !{!"storage", !7, i64 0, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!12, !6, i64 32}
!14 = !{!15, !17, i64 26}
!15 = !{!"peer", !16, i64 0, !7, i64 8, !17, i64 24, !17, i64 26}
!16 = !{!"long", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!15, !17, i64 24}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !10, i64 4}
!23 = !{!"search", !17, i64 0, !10, i64 4, !16, i64 8, !7, i64 16, !17, i64 36, !10, i64 40, !7, i64 48, !10, i64 3296, !6, i64 3304}
!24 = !{!23, !6, i64 3304}
!25 = distinct !{!25, !21}
!26 = !{!23, !10, i64 40}
!27 = !{!23, !10, i64 3296}
!28 = !{!29, !10, i64 176}
!29 = !{!"search_node", !7, i64 0, !30, i64 24, !10, i64 152, !16, i64 160, !16, i64 168, !10, i64 176, !7, i64 180, !10, i64 220, !10, i64 224, !10, i64 228}
!30 = !{!"sockaddr_storage", !17, i64 0, !7, i64 2, !16, i64 120}
!31 = !{!29, !16, i64 168}
!32 = !{!33, !16, i64 0}
!33 = !{!"timeval", !16, i64 0, !16, i64 8}
!34 = !{!29, !10, i64 220}
!35 = !{!29, !10, i64 224}
!36 = !{!29, !10, i64 228}
!37 = distinct !{!37, !21}
!38 = !{!23, !17, i64 0}
!39 = !{!23, !16, i64 8}
!40 = !{!23, !17, i64 36}
!41 = !{!42, !6, i64 184}
!42 = !{!"bucket", !10, i64 0, !7, i64 4, !10, i64 24, !10, i64 28, !16, i64 32, !6, i64 40, !30, i64 48, !10, i64 176, !6, i64 184}
!43 = !{!16, !16, i64 0}


; 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.timeval = type { i64, i64 }
%struct.peer = type { i64, [16 x i8], i16, i16 }
%struct.search_node = type { [20 x i8], %struct.sockaddr_storage, i32, i64, i64, i32, [40 x i8], i32, i32, i32 }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@searches = external hidden local_unnamed_addr global ptr, align 8
@now = external hidden local_unnamed_addr global %struct.timeval, align 8
@search_id = external hidden local_unnamed_addr global i16, align 2
@myid = external hidden global [20 x i8], align 16
@search_time = external hidden local_unnamed_addr global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @dht_search(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca [18 x i8], align 16
  %7 = tail call ptr @find_bucket(ptr noundef %0, i32 noundef %2)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %11

9:                                                ; preds = %5
  %10 = tail call ptr @__errno_location() #5
  store i32 97, ptr %10, align 4, !tbaa !5
  br label %106

11:                                               ; preds = %5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %40, label %12

12:                                               ; preds = %11
  %13 = tail call ptr @find_storage(ptr noundef %0)
  %.not91 = icmp eq ptr %13, null
  br i1 %.not91, label %40, label %14

14:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 18, ptr nonnull %6) #6
  %15 = getelementptr inbounds i8, ptr %13, i64 20
  %16 = load i32, ptr %15, align 4, !tbaa !9
  tail call void (ptr, ...) @debugf(ptr noundef nonnull @.str, i32 noundef %16)
  %17 = load i32, ptr %15, align 4, !tbaa !9
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %14
  %19 = getelementptr inbounds i8, ptr %13, i64 32
  %20 = getelementptr inbounds i8, ptr %6, i64 16
  %21 = getelementptr inbounds i8, ptr %6, i64 4
  br label %22

22:                                               ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %36 ]
  %23 = load ptr, ptr %19, align 8, !tbaa !12
  %24 = getelementptr inbounds %struct.peer, ptr %23, i64 %indvars.iv, i32 3
  %25 = load i16, ptr %24, align 2, !tbaa !13
  %26 = call zeroext i16 @__bswap_16(i16 noundef zeroext %25)
  %27 = load ptr, ptr %19, align 8, !tbaa !12
  %28 = getelementptr inbounds %struct.peer, ptr %27, i64 %indvars.iv
  %29 = getelementptr inbounds i8, ptr %28, i64 24
  %30 = load i16, ptr %29, align 8, !tbaa !17
  switch i16 %30, label %36 [
    i16 4, label %31
    i16 16, label %34
  ]

31:                                               ; preds = %22
  %32 = getelementptr inbounds i8, ptr %28, i64 8
  %33 = load i32, ptr %32, align 8
  store i32 %33, ptr %6, align 16
  store i16 %26, ptr %21, align 4
  call void %3(ptr noundef %4, i32 noundef 1, ptr noundef %0, ptr noundef nonnull %6, i64 noundef 6) #6
  br label %36

34:                                               ; preds = %22
  %35 = getelementptr inbounds i8, ptr %28, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %35, i64 16, i1 false)
  store i16 %26, ptr %20, align 16
  call void %3(ptr noundef %4, i32 noundef 2, ptr noundef %0, ptr noundef nonnull %6, i64 noundef 18) #6
  br label %36

36:                                               ; preds = %22, %31, %34
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %15, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %22, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %36, %14
  call void @llvm.lifetime.end.p0(i64 18, ptr nonnull %6) #6
  br label %40

40:                                               ; preds = %12, %._crit_edge, %11
  %.079101 = load ptr, ptr @searches, align 8, !tbaa !20
  %.not92102 = icmp eq ptr %.079101, null
  br i1 %.not92102, label %._crit_edge106, label %.lr.ph105

.lr.ph105:                                        ; preds = %40, %48
  %.079103 = phi ptr [ %.079, %48 ], [ %.079101, %40 ]
  %41 = getelementptr inbounds i8, ptr %.079103, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !21
  %43 = icmp eq i32 %42, %2
  br i1 %43, label %44, label %48

44:                                               ; preds = %.lr.ph105
  %45 = getelementptr inbounds i8, ptr %.079103, i64 16
  %46 = call i32 @id_cmp(ptr noundef nonnull %45, ptr noundef %0)
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %50, label %48

48:                                               ; preds = %44, %.lr.ph105
  %49 = getelementptr inbounds i8, ptr %.079103, i64 3304
  %.079 = load ptr, ptr %49, align 8, !tbaa !20
  %.not92 = icmp eq ptr %.079, null
  br i1 %.not92, label %._crit_edge106, label %.lr.ph105, !llvm.loop !23

50:                                               ; preds = %44
  %51 = getelementptr inbounds i8, ptr %.079103, i64 40
  %52 = load i32, ptr %51, align 8, !tbaa !24
  %.not93 = icmp eq i32 %52, 0
  store i32 0, ptr %51, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %.079103, i64 3296
  %54 = load i32, ptr %53, align 8, !tbaa !25
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.lr.ph109.lr.ph, label %.loopexit

.lr.ph109.lr.ph:                                  ; preds = %50
  %56 = getelementptr inbounds i8, ptr %.079103, i64 48
  br label %.lr.ph109

.lr.ph109:                                        ; preds = %.lr.ph109.lr.ph, %69
  %57 = phi i32 [ %54, %.lr.ph109.lr.ph ], [ %70, %69 ]
  %58 = load i64, ptr @now, align 8
  %59 = add nsw i64 %58, -7200
  %wide.trip.count = zext nneg i32 %57 to i64
  br label %60

60:                                               ; preds = %.lr.ph109, %72
  %indvars.iv115 = phi i64 [ 0, %.lr.ph109 ], [ %indvars.iv.next116, %72 ]
  %61 = getelementptr inbounds [14 x %struct.search_node], ptr %56, i64 0, i64 %indvars.iv115
  %62 = getelementptr inbounds i8, ptr %61, i64 176
  %63 = load i32, ptr %62, align 8, !tbaa !26
  %64 = icmp sgt i32 %63, 2
  br i1 %64, label %69, label %65

65:                                               ; preds = %60
  %66 = getelementptr inbounds i8, ptr %61, i64 168
  %67 = load i64, ptr %66, align 8, !tbaa !29
  %68 = icmp slt i64 %67, %59
  br i1 %68, label %69, label %72

69:                                               ; preds = %60, %65
  call void @flush_search_node(ptr noundef nonnull %61, ptr noundef nonnull %.079103)
  %70 = load i32, ptr %53, align 8, !tbaa !25
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph109, label %.loopexit

72:                                               ; preds = %65
  store i32 0, ptr %62, align 8, !tbaa !26
  %73 = getelementptr inbounds i8, ptr %61, i64 220
  store i32 0, ptr %73, align 4, !tbaa !30
  %74 = getelementptr inbounds i8, ptr %61, i64 224
  store i32 0, ptr %74, align 8, !tbaa !31
  %75 = getelementptr inbounds i8, ptr %61, i64 228
  store i32 0, ptr %75, align 4, !tbaa !32
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next116, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %60, !llvm.loop !33

._crit_edge106:                                   ; preds = %48, %40
  %76 = call ptr @new_search()
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %80

78:                                               ; preds = %._crit_edge106
  %79 = tail call ptr @__errno_location() #5
  store i32 28, ptr %79, align 4, !tbaa !5
  br label %106

80:                                               ; preds = %._crit_edge106
  %81 = getelementptr inbounds i8, ptr %76, i64 4
  store i32 %2, ptr %81, align 4, !tbaa !21
  %82 = load i16, ptr @search_id, align 2, !tbaa !34
  %83 = add i16 %82, 1
  store i16 %83, ptr @search_id, align 2, !tbaa !34
  store i16 %82, ptr %76, align 8, !tbaa !35
  %84 = getelementptr inbounds i8, ptr %76, i64 8
  store i64 0, ptr %84, align 8, !tbaa !36
  %85 = getelementptr inbounds i8, ptr %76, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %85, ptr noundef nonnull align 1 dereferenceable(20) %0, i64 20, i1 false)
  %86 = getelementptr inbounds i8, ptr %76, i64 40
  store i32 0, ptr %86, align 8, !tbaa !24
  %87 = getelementptr inbounds i8, ptr %76, i64 3296
  store i32 0, ptr %87, align 8, !tbaa !25
  br label %.loopexit

.loopexit:                                        ; preds = %69, %72, %50, %80
  %88 = phi i1 [ false, %80 ], [ %.not93, %50 ], [ %.not93, %72 ], [ %.not93, %69 ]
  %.180 = phi ptr [ %76, %80 ], [ %.079103, %50 ], [ %.079103, %72 ], [ %.079103, %69 ]
  %89 = trunc i32 %1 to i16
  %90 = getelementptr inbounds i8, ptr %.180, i64 36
  store i16 %89, ptr %90, align 4, !tbaa !37
  call void @insert_search_bucket(ptr noundef nonnull %7, ptr noundef nonnull %.180)
  %91 = getelementptr inbounds i8, ptr %.180, i64 3296
  %92 = load i32, ptr %91, align 8, !tbaa !25
  %93 = icmp slt i32 %92, 14
  br i1 %93, label %94, label %.thread98

94:                                               ; preds = %.loopexit
  %95 = call ptr @previous_bucket(ptr noundef nonnull %7)
  %96 = getelementptr inbounds i8, ptr %7, i64 184
  %97 = load ptr, ptr %96, align 8, !tbaa !38
  %.not94 = icmp eq ptr %97, null
  br i1 %.not94, label %99, label %98

98:                                               ; preds = %94
  call void @insert_search_bucket(ptr noundef nonnull %97, ptr noundef nonnull %.180)
  br label %99

99:                                               ; preds = %98, %94
  %.not95 = icmp eq ptr %95, null
  br i1 %.not95, label %101, label %100

100:                                              ; preds = %99
  call void @insert_search_bucket(ptr noundef nonnull %95, ptr noundef nonnull %.180)
  br label %101

101:                                              ; preds = %99, %100
  %.pr = load i32, ptr %91, align 8, !tbaa !25
  %102 = icmp slt i32 %.pr, 14
  br i1 %102, label %103, label %.thread98

103:                                              ; preds = %101
  %104 = call ptr @find_bucket(ptr noundef nonnull @myid, i32 noundef %2)
  call void @insert_search_bucket(ptr noundef %104, ptr noundef nonnull %.180)
  br label %.thread98

.thread98:                                        ; preds = %.loopexit, %103, %101
  call void @search_step(ptr noundef nonnull %.180, ptr noundef %3, ptr noundef %4)
  %105 = load i64, ptr @now, align 8, !tbaa !40
  store i64 %105, ptr @search_time, align 8, !tbaa !42
  %not. = xor i1 %88, true
  %. = zext i1 %not. to i32
  br label %106

106:                                              ; preds = %78, %.thread98, %9
  %.1 = phi i32 [ -1, %9 ], [ -1, %78 ], [ %., %.thread98 ]
  ret i32 %.1
}

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

; Function Attrs: nounwind uwtable
declare hidden ptr @find_bucket(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @find_storage(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @debugf(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) local_unnamed_addr #3

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

; 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 hidden i32 @id_cmp(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @flush_search_node(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @new_search() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @insert_search_bucket(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @previous_bucket(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @search_step(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(none) }
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, !6, i64 20}
!10 = !{!"storage", !7, i64 0, !6, i64 20, !6, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 32}
!13 = !{!14, !16, i64 26}
!14 = !{!"peer", !15, i64 0, !7, i64 8, !16, i64 24, !16, i64 26}
!15 = !{!"long", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!14, !16, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !6, i64 4}
!22 = !{!"search", !16, i64 0, !6, i64 4, !15, i64 8, !7, i64 16, !16, i64 36, !6, i64 40, !7, i64 48, !6, i64 3296, !11, i64 3304}
!23 = distinct !{!23, !19}
!24 = !{!22, !6, i64 40}
!25 = !{!22, !6, i64 3296}
!26 = !{!27, !6, i64 176}
!27 = !{!"search_node", !7, i64 0, !28, i64 24, !6, i64 152, !15, i64 160, !15, i64 168, !6, i64 176, !7, i64 180, !6, i64 220, !6, i64 224, !6, i64 228}
!28 = !{!"sockaddr_storage", !16, i64 0, !7, i64 2, !15, i64 120}
!29 = !{!27, !15, i64 168}
!30 = !{!27, !6, i64 220}
!31 = !{!27, !6, i64 224}
!32 = !{!27, !6, i64 228}
!33 = distinct !{!33, !19}
!34 = !{!16, !16, i64 0}
!35 = !{!22, !16, i64 0}
!36 = !{!22, !15, i64 8}
!37 = !{!22, !16, i64 36}
!38 = !{!39, !11, i64 184}
!39 = !{!"bucket", !6, i64 0, !7, i64 4, !6, i64 24, !6, i64 28, !15, i64 32, !11, i64 40, !28, i64 48, !6, i64 176, !11, i64 184}
!40 = !{!41, !15, i64 0}
!41 = !{!"timeval", !15, i64 0, !15, i64 8}
!42 = !{!15, !15, i64 0}


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