; LLVM IR from wkoszek/kmnsim :: src (all)

; 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.hub = type { i64, ptr, [8 x ptr], i32, i32, %struct.anon.1 }
%struct.anon.1 = type { ptr, ptr }
%struct.iface = type { i64, ptr, ptr, %struct.pktq, %struct.pktq, i32, ptr, [4 x i32], [4 x i32], [6 x i32], %struct.anon }
%struct.pktq = type { ptr, ptr }
%struct.anon = type { ptr, ptr }
%struct.pkt = type { i64, ptr, i32, i32, ptr, ptr, %struct.anon.2 }
%struct.anon.2 = type { ptr, ptr }
%struct.pkt_icmp = type { %struct.eth_hdr, %struct.ip_hdr, %struct.icmp_hdr }
%struct.eth_hdr = type { [6 x i32], [6 x i32] }
%struct.ip_hdr = type { [4 x i32], [4 x i32] }
%struct.icmp_hdr = type { i32 }

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__.hub_rx_process = external hidden unnamed_addr constant [33 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [75 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #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 @nid_id_get(ptr noundef) #0

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

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

14:                                               ; preds = %35, %1
  %15 = load i32, ptr %9, align 4, !tbaa !9
  %16 = icmp slt i32 %15, 8
  br i1 %16, label %17, label %38

17:                                               ; preds = %14
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.hub, ptr %18, i32 0, i32 2
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [8 x ptr], ptr %19, i64 0, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.iface, ptr %23, i32 0, i32 3
  %25 = call i32 @pktq_empty(ptr noundef %24)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %34, label %27

27:                                               ; preds = %17
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.hub, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [8 x ptr], ptr %29, i64 0, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %33, ptr %6, align 8, !tbaa !5
  br label %38

34:                                               ; preds = %17
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %9, align 4, !tbaa !9
  br label %14, !llvm.loop !11

38:                                               ; preds = %27, %14
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %223

42:                                               ; preds = %38
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.iface, ptr %43, i32 0, i32 3
  %45 = call ptr @pktq_dequeue(ptr noundef %44)
  store ptr %45, ptr %4, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %42
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  br label %51

50:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 351, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

51:                                               ; preds = %49
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.pkt, ptr %52, i32 0, i32 0
  %54 = load i64, ptr %53, align 8, !tbaa !13
  %55 = icmp eq i64 %54, 2864434397
  br i1 %55, label %56, label %57

56:                                               ; preds = %51
  br label %58

57:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 351, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

58:                                               ; preds = %56
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.pkt, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  store ptr %63, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %130, %60
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = icmp slt i32 %65, 8
  br i1 %66, label %67, label %133

67:                                               ; preds = %64
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.hub, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [8 x ptr], ptr %69, i64 0, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = icmp eq ptr %73, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  br label %130

77:                                               ; preds = %67
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.hub, ptr %78, i32 0, i32 2
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [8 x ptr], ptr %79, i64 0, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  store ptr %83, ptr %8, align 8, !tbaa !5
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = call i32 @iface_flag_has(ptr noundef %84, i32 noundef 8)
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %88, label %87

87:                                               ; preds = %77
  br label %130

88:                                               ; preds = %77
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.hub, ptr %89, i32 0, i32 4
  %91 = load i32, ptr %90, align 4, !tbaa !18
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %100

93:                                               ; preds = %88
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [8 x ptr], ptr %11, i64 0, i64 %96
  store ptr %94, ptr %97, align 8, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %12, align 4, !tbaa !9
  br label %129

100:                                              ; preds = %88
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.hub, ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 4, !tbaa !18
  %104 = icmp eq i32 %103, 1
  br i1 %104, label %105, label %128

105:                                              ; preds = %100
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.pkt_icmp, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds %struct.eth_hdr, ptr %107, i32 0, i32 1
  %109 = getelementptr inbounds [6 x i32], ptr %108, i64 0, i64 0
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.iface, ptr %110, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = getelementptr inbounds %struct.iface, ptr %112, i32 0, i32 9
  %114 = getelementptr inbounds [6 x i32], ptr %113, i64 0, i64 0
  %115 = call i32 @memcmp(ptr noundef %109, ptr noundef %114, i64 noundef 24) #6
  %116 = icmp eq i32 %115, 0
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %10, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %127

120:                                              ; preds = %105
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [8 x ptr], ptr %11, i64 0, i64 %123
  store ptr %121, ptr %124, align 8, !tbaa !5
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %12, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %120, %105
  br label %128

128:                                              ; preds = %127, %100
  br label %129

129:                                              ; preds = %128, %93
  br label %130

130:                                              ; preds = %129, %87, %76
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %9, align 4, !tbaa !9
  br label %64, !llvm.loop !23

133:                                              ; preds = %64
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.hub, ptr %134, i32 0, i32 4
  %136 = load i32, ptr %135, align 4, !tbaa !18
  %137 = icmp eq i32 %136, 1
  br i1 %137, label %138, label %144

138:                                              ; preds = %133
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = icmp sle i32 %139, 1
  br i1 %140, label %141, label %142

141:                                              ; preds = %138
  br label %143

142:                                              ; preds = %138
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.2, i32 noundef 407, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143, %133
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = icmp sle i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %223

148:                                              ; preds = %144
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %219, %148
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %153, label %222

153:                                              ; preds = %149
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [8 x ptr], ptr %11, i64 0, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  store ptr %157, ptr %8, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %153
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %162

161:                                              ; preds = %158
  br label %163

162:                                              ; preds = %158
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.2, i32 noundef 426, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

163:                                              ; preds = %161
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.iface, ptr %164, i32 0, i32 0
  %166 = load i64, ptr %165, align 8, !tbaa !24
  %167 = icmp eq i64 %166, 1991415775
  br i1 %167, label %168, label %169

168:                                              ; preds = %163
  br label %170

169:                                              ; preds = %163
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.2, i32 noundef 426, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

170:                                              ; preds = %168
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %177

176:                                              ; preds = %173
  br label %178

177:                                              ; preds = %173
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 428, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

178:                                              ; preds = %176
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.pkt, ptr %179, i32 0, i32 0
  %181 = load i64, ptr %180, align 8, !tbaa !13
  %182 = icmp eq i64 %181, 2864434397
  br i1 %182, label %183, label %184

183:                                              ; preds = %178
  br label %185

184:                                              ; preds = %178
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 428, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = call ptr @pkt_dup(ptr noundef %188)
  store ptr %189, ptr %5, align 8, !tbaa !5
  br label %190

190:                                              ; preds = %187
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = icmp ne ptr %191, null
  br i1 %192, label %193, label %194

193:                                              ; preds = %190
  br label %195

194:                                              ; preds = %190
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.2, i32 noundef 430, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

195:                                              ; preds = %193
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.pkt, ptr %196, i32 0, i32 0
  %198 = load i64, ptr %197, align 8, !tbaa !13
  %199 = icmp eq i64 %198, 2864434397
  br i1 %199, label %200, label %201

200:                                              ; preds = %195
  br label %202

201:                                              ; preds = %195
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.2, i32 noundef 430, ptr noundef @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.iface, ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  call void @pktq_enqueue(ptr noundef %206, ptr noundef %207)
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.iface, ptr %208, i32 0, i32 1
  %210 = load ptr, ptr %209, align 8, !tbaa !25
  %211 = call i32 @nid_id_get(ptr noundef %210)
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.pkt, ptr %212, i32 0, i32 3
  %214 = load i32, ptr %213, align 4, !tbaa !26
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.iface, ptr %215, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !25
  %218 = call i32 @nid_id_get(ptr noundef %217)
  call void (ptr, ...) @msg_log(ptr noundef @.str.24, i32 noundef %211, i32 noundef %214, i32 noundef %218)
  br label %219

219:                                              ; preds = %204
  %220 = load i32, ptr %9, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %9, align 4, !tbaa !9
  br label %149, !llvm.loop !27

222:                                              ; preds = %149
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %223

223:                                              ; preds = %222, %147, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %224 = load i32, ptr %2, align 4
  ret i32 %224
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @pktq_empty(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @pkt_dup(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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"pkt", !15, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !16, i64 40}
!15 = !{!"long", !7, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 8}
!17 = !{!14, !6, i64 8}
!18 = !{!19, !10, i64 84}
!19 = !{!"hub", !15, i64 0, !6, i64 8, !7, i64 16, !10, i64 80, !10, i64 84, !16, i64 88}
!20 = !{!21, !6, i64 64}
!21 = !{!"iface", !15, i64 0, !6, i64 8, !6, i64 16, !22, i64 24, !22, i64 40, !10, i64 56, !6, i64 64, !7, i64 72, !7, i64 88, !7, i64 104, !16, i64 128}
!22 = !{!"pktq", !6, i64 0, !6, i64 8}
!23 = distinct !{!23, !12}
!24 = !{!21, !15, i64 0}
!25 = !{!21, !6, i64 8}
!26 = !{!14, !10, i64 20}
!27 = distinct !{!27, !12}


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

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__.hub_rx_process = external hidden unnamed_addr constant [33 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [75 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @msg_log(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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 @nid_id_get(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @hub_rx_process(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca [8 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #4
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 24
  %6 = tail call i32 @pktq_empty(ptr noundef nonnull %5)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %42, label %7

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = tail call i32 @pktq_empty(ptr noundef nonnull %10)
  %.not.1 = icmp eq i32 %11, 0
  br i1 %.not.1, label %42, label %12

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 24
  %16 = tail call i32 @pktq_empty(ptr noundef nonnull %15)
  %.not.2 = icmp eq i32 %16, 0
  br i1 %.not.2, label %42, label %17

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = tail call i32 @pktq_empty(ptr noundef nonnull %20)
  %.not.3 = icmp eq i32 %21, 0
  br i1 %.not.3, label %42, label %22

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  %26 = tail call i32 @pktq_empty(ptr noundef nonnull %25)
  %.not.4 = icmp eq i32 %26, 0
  br i1 %.not.4, label %42, label %27

27:                                               ; preds = %22
  %28 = getelementptr inbounds i8, ptr %0, i64 56
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = tail call i32 @pktq_empty(ptr noundef nonnull %30)
  %.not.5 = icmp eq i32 %31, 0
  br i1 %.not.5, label %42, label %32

32:                                               ; preds = %27
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 24
  %36 = tail call i32 @pktq_empty(ptr noundef nonnull %35)
  %.not.6 = icmp eq i32 %36, 0
  br i1 %.not.6, label %42, label %37

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %0, i64 72
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = tail call i32 @pktq_empty(ptr noundef nonnull %40)
  %.not.7 = icmp eq i32 %41, 0
  br i1 %.not.7, label %42, label %.thread

42:                                               ; preds = %37, %32, %27, %22, %17, %12, %7, %1
  %.lcssa = phi i64 [ 0, %1 ], [ 1, %7 ], [ 2, %12 ], [ 3, %17 ], [ 4, %22 ], [ 5, %27 ], [ 6, %32 ], [ 7, %37 ]
  %43 = getelementptr inbounds [8 x ptr], ptr %3, i64 0, i64 %.lcssa
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %.thread, label %46

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %44, i64 24
  %48 = tail call ptr @pktq_dequeue(ptr noundef nonnull %47)
  %.not59 = icmp eq ptr %48, null
  br i1 %.not59, label %49, label %50

49:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 351, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

50:                                               ; preds = %46
  %51 = load i64, ptr %48, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 2864434397
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 351, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %48, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !14
  %57 = getelementptr inbounds i8, ptr %0, i64 84
  %58 = getelementptr inbounds i8, ptr %56, i64 24
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = icmp eq ptr %59, %44
  br i1 %60, label %72, label %61

61:                                               ; preds = %54
  %62 = tail call i32 @iface_flag_has(ptr noundef %59, i32 noundef 8)
  %.not62 = icmp eq i32 %62, 0
  br i1 %.not62, label %72, label %63

63:                                               ; preds = %61
  %64 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %64, label %72 [
    i32 0, label %65
    i32 1, label %66
  ]

65:                                               ; preds = %63
  store ptr %59, ptr %2, align 16, !tbaa !5
  br label %72

66:                                               ; preds = %63
  %67 = getelementptr inbounds i8, ptr %59, i64 64
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = getelementptr inbounds i8, ptr %68, i64 104
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %69, i64 24)
  %70 = icmp eq i32 %bcmp, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  store ptr %59, ptr %2, align 16, !tbaa !5
  br label %72

72:                                               ; preds = %63, %65, %66, %71, %61, %54
  %.1 = phi i32 [ 0, %54 ], [ 1, %65 ], [ 1, %71 ], [ 0, %66 ], [ 0, %61 ], [ 0, %63 ]
  %73 = getelementptr inbounds i8, ptr %0, i64 24
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = icmp eq ptr %74, %44
  br i1 %75, label %88, label %76

76:                                               ; preds = %72
  %77 = tail call i32 @iface_flag_has(ptr noundef %74, i32 noundef 8)
  %.not62.1 = icmp eq i32 %77, 0
  br i1 %.not62.1, label %88, label %78

78:                                               ; preds = %76
  %79 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %79, label %88 [
    i32 0, label %.sink.split
    i32 1, label %80
  ]

80:                                               ; preds = %78
  %81 = getelementptr inbounds i8, ptr %74, i64 64
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds i8, ptr %82, i64 104
  %bcmp.1 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %83, i64 24)
  %84 = icmp eq i32 %bcmp.1, 0
  br i1 %84, label %.sink.split, label %88

.sink.split:                                      ; preds = %78, %80
  %85 = zext nneg i32 %.1 to i64
  %86 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %85
  store ptr %74, ptr %86, align 8, !tbaa !5
  %87 = add nuw nsw i32 %.1, 1
  br label %88

88:                                               ; preds = %.sink.split, %80, %78, %76, %72
  %.1.1 = phi i32 [ %.1, %72 ], [ %.1, %80 ], [ %.1, %76 ], [ %.1, %78 ], [ %87, %.sink.split ]
  %89 = getelementptr inbounds i8, ptr %0, i64 32
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = icmp eq ptr %90, %44
  br i1 %91, label %104, label %92

92:                                               ; preds = %88
  %93 = tail call i32 @iface_flag_has(ptr noundef %90, i32 noundef 8)
  %.not62.2 = icmp eq i32 %93, 0
  br i1 %.not62.2, label %104, label %94

94:                                               ; preds = %92
  %95 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %95, label %104 [
    i32 0, label %.sink.split84
    i32 1, label %96
  ]

96:                                               ; preds = %94
  %97 = getelementptr inbounds i8, ptr %90, i64 64
  %98 = load ptr, ptr %97, align 8, !tbaa !17
  %99 = getelementptr inbounds i8, ptr %98, i64 104
  %bcmp.2 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %99, i64 24)
  %100 = icmp eq i32 %bcmp.2, 0
  br i1 %100, label %.sink.split84, label %104

.sink.split84:                                    ; preds = %94, %96
  %101 = zext nneg i32 %.1.1 to i64
  %102 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %101
  store ptr %90, ptr %102, align 8, !tbaa !5
  %103 = add nuw nsw i32 %.1.1, 1
  br label %104

104:                                              ; preds = %.sink.split84, %96, %94, %92, %88
  %.1.2 = phi i32 [ %.1.1, %88 ], [ %.1.1, %96 ], [ %.1.1, %92 ], [ %.1.1, %94 ], [ %103, %.sink.split84 ]
  %105 = getelementptr inbounds i8, ptr %0, i64 40
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = icmp eq ptr %106, %44
  br i1 %107, label %120, label %108

108:                                              ; preds = %104
  %109 = tail call i32 @iface_flag_has(ptr noundef %106, i32 noundef 8)
  %.not62.3 = icmp eq i32 %109, 0
  br i1 %.not62.3, label %120, label %110

110:                                              ; preds = %108
  %111 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %111, label %120 [
    i32 0, label %.sink.split86
    i32 1, label %112
  ]

112:                                              ; preds = %110
  %113 = getelementptr inbounds i8, ptr %106, i64 64
  %114 = load ptr, ptr %113, align 8, !tbaa !17
  %115 = getelementptr inbounds i8, ptr %114, i64 104
  %bcmp.3 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %115, i64 24)
  %116 = icmp eq i32 %bcmp.3, 0
  br i1 %116, label %.sink.split86, label %120

.sink.split86:                                    ; preds = %110, %112
  %117 = zext nneg i32 %.1.2 to i64
  %118 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %117
  store ptr %106, ptr %118, align 8, !tbaa !5
  %119 = add nuw nsw i32 %.1.2, 1
  br label %120

120:                                              ; preds = %.sink.split86, %112, %110, %108, %104
  %.1.3 = phi i32 [ %.1.2, %104 ], [ %.1.2, %112 ], [ %.1.2, %108 ], [ %.1.2, %110 ], [ %119, %.sink.split86 ]
  %121 = getelementptr inbounds i8, ptr %0, i64 48
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = icmp eq ptr %122, %44
  br i1 %123, label %136, label %124

124:                                              ; preds = %120
  %125 = tail call i32 @iface_flag_has(ptr noundef %122, i32 noundef 8)
  %.not62.4 = icmp eq i32 %125, 0
  br i1 %.not62.4, label %136, label %126

126:                                              ; preds = %124
  %127 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %127, label %136 [
    i32 0, label %.sink.split88
    i32 1, label %128
  ]

128:                                              ; preds = %126
  %129 = getelementptr inbounds i8, ptr %122, i64 64
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = getelementptr inbounds i8, ptr %130, i64 104
  %bcmp.4 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %131, i64 24)
  %132 = icmp eq i32 %bcmp.4, 0
  br i1 %132, label %.sink.split88, label %136

.sink.split88:                                    ; preds = %126, %128
  %133 = zext nneg i32 %.1.3 to i64
  %134 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %133
  store ptr %122, ptr %134, align 8, !tbaa !5
  %135 = add nuw nsw i32 %.1.3, 1
  br label %136

136:                                              ; preds = %.sink.split88, %128, %126, %124, %120
  %.1.4 = phi i32 [ %.1.3, %120 ], [ %.1.3, %128 ], [ %.1.3, %124 ], [ %.1.3, %126 ], [ %135, %.sink.split88 ]
  %137 = getelementptr inbounds i8, ptr %0, i64 56
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = icmp eq ptr %138, %44
  br i1 %139, label %152, label %140

140:                                              ; preds = %136
  %141 = tail call i32 @iface_flag_has(ptr noundef %138, i32 noundef 8)
  %.not62.5 = icmp eq i32 %141, 0
  br i1 %.not62.5, label %152, label %142

142:                                              ; preds = %140
  %143 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %143, label %152 [
    i32 0, label %.sink.split90
    i32 1, label %144
  ]

144:                                              ; preds = %142
  %145 = getelementptr inbounds i8, ptr %138, i64 64
  %146 = load ptr, ptr %145, align 8, !tbaa !17
  %147 = getelementptr inbounds i8, ptr %146, i64 104
  %bcmp.5 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %147, i64 24)
  %148 = icmp eq i32 %bcmp.5, 0
  br i1 %148, label %.sink.split90, label %152

.sink.split90:                                    ; preds = %142, %144
  %149 = zext nneg i32 %.1.4 to i64
  %150 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %149
  store ptr %138, ptr %150, align 8, !tbaa !5
  %151 = add nuw nsw i32 %.1.4, 1
  br label %152

152:                                              ; preds = %.sink.split90, %144, %142, %140, %136
  %.1.5 = phi i32 [ %.1.4, %136 ], [ %.1.4, %144 ], [ %.1.4, %140 ], [ %.1.4, %142 ], [ %151, %.sink.split90 ]
  %153 = getelementptr inbounds i8, ptr %0, i64 64
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = icmp eq ptr %154, %44
  br i1 %155, label %168, label %156

156:                                              ; preds = %152
  %157 = tail call i32 @iface_flag_has(ptr noundef %154, i32 noundef 8)
  %.not62.6 = icmp eq i32 %157, 0
  br i1 %.not62.6, label %168, label %158

158:                                              ; preds = %156
  %159 = load i32, ptr %57, align 4, !tbaa !15
  switch i32 %159, label %168 [
    i32 0, label %.sink.split92
    i32 1, label %160
  ]

160:                                              ; preds = %158
  %161 = getelementptr inbounds i8, ptr %154, i64 64
  %162 = load ptr, ptr %161, align 8, !tbaa !17
  %163 = getelementptr inbounds i8, ptr %162, i64 104
  %bcmp.6 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %163, i64 24)
  %164 = icmp eq i32 %bcmp.6, 0
  br i1 %164, label %.sink.split92, label %168

.sink.split92:                                    ; preds = %158, %160
  %165 = zext nneg i32 %.1.5 to i64
  %166 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %165
  store ptr %154, ptr %166, align 8, !tbaa !5
  %167 = add nuw nsw i32 %.1.5, 1
  br label %168

168:                                              ; preds = %.sink.split92, %160, %158, %156, %152
  %.1.6 = phi i32 [ %.1.5, %152 ], [ %.1.5, %160 ], [ %.1.5, %156 ], [ %.1.5, %158 ], [ %167, %.sink.split92 ]
  %169 = getelementptr inbounds i8, ptr %0, i64 72
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = icmp eq ptr %170, %44
  br i1 %171, label %._crit_edge, label %172

._crit_edge:                                      ; preds = %168
  %.pre = load i32, ptr %57, align 4, !tbaa !15
  br label %187

172:                                              ; preds = %168
  %173 = tail call i32 @iface_flag_has(ptr noundef %170, i32 noundef 8)
  %.not62.7 = icmp eq i32 %173, 0
  %.pre76 = load i32, ptr %57, align 4, !tbaa !15
  br i1 %.not62.7, label %187, label %174

174:                                              ; preds = %172
  switch i32 %.pre76, label %.thread77 [
    i32 0, label %.thread77.thread
    i32 1, label %175
  ]

175:                                              ; preds = %174
  %176 = getelementptr inbounds i8, ptr %170, i64 64
  %177 = load ptr, ptr %176, align 8, !tbaa !17
  %178 = getelementptr inbounds i8, ptr %177, i64 104
  %bcmp.7 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(24) %58, ptr noundef nonnull dereferenceable(24) %178, i64 24)
  %179 = icmp eq i32 %bcmp.7, 0
  br i1 %179, label %180, label %187

180:                                              ; preds = %175
  %181 = zext nneg i32 %.1.6 to i64
  %182 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %181
  store ptr %170, ptr %182, align 8, !tbaa !5
  %183 = add nuw nsw i32 %.1.6, 1
  br label %187

.thread77.thread:                                 ; preds = %174
  %184 = zext nneg i32 %.1.6 to i64
  %185 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %184
  store ptr %170, ptr %185, align 8, !tbaa !5
  %186 = add nuw nsw i32 %.1.6, 1
  br label %.preheader

187:                                              ; preds = %._crit_edge, %180, %175, %172
  %188 = phi i32 [ %.pre, %._crit_edge ], [ 1, %180 ], [ 1, %175 ], [ %.pre76, %172 ]
  %.1.7 = phi i32 [ %.1.6, %._crit_edge ], [ %183, %180 ], [ %.1.6, %175 ], [ %.1.6, %172 ]
  %189 = icmp ne i32 %188, 1
  %190 = icmp ult i32 %.1.7, 2
  %or.cond = select i1 %189, i1 true, i1 %190
  br i1 %or.cond, label %.thread77, label %191

191:                                              ; preds = %187
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2, i32 noundef 407, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

.thread77:                                        ; preds = %174, %187
  %.1.780 = phi i32 [ %.1.7, %187 ], [ %.1.6, %174 ]
  %192 = icmp eq i32 %.1.780, 0
  br i1 %192, label %.thread, label %.preheader

.preheader:                                       ; preds = %.thread77.thread, %.thread77
  %.1.78082 = phi i32 [ %186, %.thread77.thread ], [ %.1.780, %.thread77 ]
  %193 = getelementptr inbounds i8, ptr %44, i64 8
  %wide.trip.count = zext nneg i32 %.1.78082 to i64
  br label %194

194:                                              ; preds = %.preheader, %213
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %213 ]
  %195 = getelementptr inbounds [8 x ptr], ptr %2, i64 0, i64 %indvars.iv
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %.not60 = icmp eq ptr %196, null
  br i1 %.not60, label %197, label %198

197:                                              ; preds = %194
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.2, i32 noundef 426, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

198:                                              ; preds = %194
  %199 = load i64, ptr %196, align 8, !tbaa !20
  %200 = icmp eq i64 %199, 1991415775
  br i1 %200, label %202, label %201

201:                                              ; preds = %198
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.2, i32 noundef 426, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

202:                                              ; preds = %198
  %203 = load i64, ptr %48, align 8, !tbaa !9
  %204 = icmp eq i64 %203, 2864434397
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 428, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

206:                                              ; preds = %202
  %207 = tail call ptr @pkt_dup(ptr noundef nonnull %48)
  %.not61 = icmp eq ptr %207, null
  br i1 %.not61, label %208, label %209

208:                                              ; preds = %206
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.2, i32 noundef 430, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

209:                                              ; preds = %206
  %210 = load i64, ptr %207, align 8, !tbaa !9
  %211 = icmp eq i64 %210, 2864434397
  br i1 %211, label %213, label %212

212:                                              ; preds = %209
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 430, ptr noundef nonnull @__PRETTY_FUNCTION__.hub_rx_process) #5
  unreachable

213:                                              ; preds = %209
  %214 = getelementptr inbounds i8, ptr %196, i64 40
  tail call void @pktq_enqueue(ptr noundef nonnull %214, ptr noundef nonnull %207)
  %215 = load ptr, ptr %193, align 8, !tbaa !21
  %216 = tail call i32 @nid_id_get(ptr noundef %215)
  %217 = getelementptr inbounds i8, ptr %207, i64 20
  %218 = load i32, ptr %217, align 4, !tbaa !22
  %219 = getelementptr inbounds i8, ptr %196, i64 8
  %220 = load ptr, ptr %219, align 8, !tbaa !21
  %221 = tail call i32 @nid_id_get(ptr noundef %220)
  tail call void (ptr, ...) @msg_log(ptr noundef nonnull @.str.24, i32 noundef %216, i32 noundef %218, i32 noundef %221)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.thread, label %194, !llvm.loop !23

.thread:                                          ; preds = %213, %37, %.thread77, %42
  %.050 = phi i32 [ -1, %42 ], [ -1, %.thread77 ], [ -1, %37 ], [ 0, %213 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #4
  ret i32 %.050
}

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

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

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

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

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

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind willreturn memory(argmem: read) }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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 0}
!10 = !{!"pkt", !11, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !13, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !6, i64 0, !6, i64 8}
!14 = !{!10, !6, i64 8}
!15 = !{!16, !12, i64 84}
!16 = !{!"hub", !11, i64 0, !6, i64 8, !7, i64 16, !12, i64 80, !12, i64 84, !13, i64 88}
!17 = !{!18, !6, i64 64}
!18 = !{!"iface", !11, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !19, i64 40, !12, i64 56, !6, i64 64, !7, i64 72, !7, i64 88, !7, i64 104, !13, i64 128}
!19 = !{!"pktq", !6, i64 0, !6, i64 8}
!20 = !{!18, !11, i64 0}
!21 = !{!18, !6, i64 8}
!22 = !{!10, !12, i64 20}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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