; 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.conn_dispatcher = type { ptr, 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 }

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@flag_debug = external dso_local global i32, align 4
@verbose = external dso_local global i32, align 4
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@dispatchers = external dso_local global [4 x %struct.conn_dispatcher], align 16
@.str.88 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.tx_perform = external hidden unnamed_addr constant [47 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [44 x i8], align 1
@__func__.tx_perform = external hidden unnamed_addr constant [11 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @nid_type_get(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @pktq_dequeue_candidate(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @tx_perform(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %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 i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  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
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %12
  br label %17

16:                                               ; preds = %12
  call void @__assert_fail(ptr noundef @.str.187, ptr noundef @.str.2, i32 noundef 2407, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

17:                                               ; preds = %15
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.iface, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !11
  %21 = icmp eq i64 %20, 1991415775
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  br label %24

23:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.188, ptr noundef @.str.2, i32 noundef 2407, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

24:                                               ; preds = %22
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  br label %32

31:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.189, ptr noundef @.str.2, i32 noundef 2408, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

32:                                               ; preds = %30
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.iface, ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = icmp eq i64 %35, 1991415775
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  br label %39

38:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.190, ptr noundef @.str.2, i32 noundef 2408, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

39:                                               ; preds = %37
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.iface, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = call i32 @nid_type_get(ptr noundef %44)
  store i32 %45, ptr %9, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 3
  br i1 %47, label %51, label %48

48:                                               ; preds = %41
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %51, label %52

51:                                               ; preds = %48, %41
  br label %53

52:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.191, ptr noundef @.str.2, i32 noundef 2415, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

53:                                               ; preds = %51
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [4 x %struct.conn_dispatcher], ptr @dispatchers, i64 0, i64 %55
  store ptr %56, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.iface, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !16
  %60 = call i32 @nid_type_get(ptr noundef %59)
  store i32 %60, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 3
  br i1 %62, label %66, label %63

63:                                               ; preds = %53
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %63, %53
  br label %68

67:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.191, ptr noundef @.str.2, i32 noundef 2419, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

68:                                               ; preds = %66
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4 x %struct.conn_dispatcher], ptr @dispatchers, i64 0, i64 %70
  store ptr %71, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.iface, ptr %72, i32 0, i32 4
  %74 = call i32 @pktq_empty(ptr noundef %73)
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %91

76:                                               ; preds = %68
  %77 = load i32, ptr @verbose, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %90

79:                                               ; preds = %76
  %80 = load i32, ptr @verbose, align 4, !tbaa !9
  %81 = icmp sge i32 %80, 2
  br i1 %81, label %82, label %90

82:                                               ; preds = %79
  %83 = load i32, ptr @flag_debug, align 4, !tbaa !9
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %85, label %89

85:                                               ; preds = %82
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.88, ptr noundef @__func__.tx_perform, i32 noundef 2431)
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.192)
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %89

89:                                               ; preds = %85, %82
  br label %90

90:                                               ; preds = %89, %79, %76
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %145

91:                                               ; preds = %68
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.iface, ptr %92, i32 0, i32 4
  %94 = call ptr @pktq_dequeue_candidate(ptr noundef %93)
  store ptr %94, ptr %8, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.conn_dispatcher, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !17
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = call i32 %97(ptr noundef %98, ptr noundef %99)
  store i32 %100, ptr %10, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %118, label %103

103:                                              ; preds = %91
  %104 = load i32, ptr @verbose, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %117

106:                                              ; preds = %103
  %107 = load i32, ptr @verbose, align 4, !tbaa !9
  %108 = icmp sge i32 %107, 2
  br i1 %108, label %109, label %117

109:                                              ; preds = %106
  %110 = load i32, ptr @flag_debug, align 4, !tbaa !9
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %112, label %116

112:                                              ; preds = %109
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.88, ptr noundef @__func__.tx_perform, i32 noundef 2448)
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.193)
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %116

116:                                              ; preds = %112, %109
  br label %117

117:                                              ; preds = %116, %106, %103
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %145

118:                                              ; preds = %91
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.conn_dispatcher, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = call ptr %121(ptr noundef %122)
  store ptr %123, ptr %8, align 8, !tbaa !5
  br label %124

124:                                              ; preds = %118
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %128

127:                                              ; preds = %124
  br label %129

128:                                              ; preds = %124
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 2457, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

129:                                              ; preds = %127
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.pkt, ptr %130, i32 0, i32 0
  %132 = load i64, ptr %131, align 8, !tbaa !20
  %133 = icmp eq i64 %132, 2864434397
  br i1 %133, label %134, label %135

134:                                              ; preds = %129
  br label %136

135:                                              ; preds = %129
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 2457, ptr noundef @__PRETTY_FUNCTION__.tx_perform) #5
  unreachable

136:                                              ; preds = %134
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.conn_dispatcher, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !22
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = call i32 %141(ptr noundef %142, ptr noundef %143)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %145

145:                                              ; preds = %138, %117, %90
  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
  %146 = load i32, ptr %3, align 4
  ret i32 %146
}

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


; 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.conn_dispatcher = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@flag_debug = external dso_local local_unnamed_addr global i32, align 4
@verbose = external dso_local local_unnamed_addr global i32, align 4
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@dispatchers = external dso_local local_unnamed_addr global [4 x %struct.conn_dispatcher], align 16
@.str.88 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.tx_perform = external hidden unnamed_addr constant [47 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [44 x i8], align 1
@__func__.tx_perform = external hidden unnamed_addr constant [11 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @tx_perform(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.187, ptr noundef nonnull @.str.2, i32 noundef 2407, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

4:                                                ; preds = %2
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = icmp eq i64 %5, 1991415775
  br i1 %6, label %8, label %7

7:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.188, ptr noundef nonnull @.str.2, i32 noundef 2407, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

8:                                                ; preds = %4
  %.not38 = icmp eq ptr %1, null
  br i1 %.not38, label %9, label %10

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.189, ptr noundef nonnull @.str.2, i32 noundef 2408, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

10:                                               ; preds = %8
  %11 = load i64, ptr %1, align 8, !tbaa !5
  %12 = icmp eq i64 %11, 1991415775
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.190, ptr noundef nonnull @.str.2, i32 noundef 2408, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = tail call i32 @nid_type_get(ptr noundef %16)
  %18 = and i32 %17, -3
  %or.cond = icmp eq i32 %18, 1
  br i1 %or.cond, label %20, label %19

19:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.191, ptr noundef nonnull @.str.2, i32 noundef 2415, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

20:                                               ; preds = %14
  %21 = zext nneg i32 %17 to i64
  %22 = getelementptr inbounds [4 x %struct.conn_dispatcher], ptr @dispatchers, i64 0, i64 %21
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = tail call i32 @nid_type_get(ptr noundef %24)
  %26 = and i32 %25, -3
  %or.cond3 = icmp eq i32 %26, 1
  br i1 %or.cond3, label %28, label %27

27:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.191, ptr noundef nonnull @.str.2, i32 noundef 2419, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

28:                                               ; preds = %20
  %29 = zext nneg i32 %25 to i64
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = tail call i32 @pktq_empty(ptr noundef nonnull %30)
  %.not39 = icmp eq i32 %31, 0
  br i1 %.not39, label %41, label %32

32:                                               ; preds = %28
  %33 = load i32, ptr @verbose, align 4
  %34 = icmp sgt i32 %33, 1
  %35 = load i32, ptr @flag_debug, align 4
  %36 = icmp sgt i32 %35, 0
  %or.cond9 = select i1 %34, i1 %36, i1 false
  br i1 %or.cond9, label %37, label %67

37:                                               ; preds = %32
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88, ptr noundef nonnull @__func__.tx_perform, i32 noundef 2431)
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.192)
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %67

41:                                               ; preds = %28
  %42 = tail call ptr @pktq_dequeue_candidate(ptr noundef nonnull %30)
  %43 = load ptr, ptr %22, align 8, !tbaa !15
  %44 = tail call i32 %43(ptr noundef nonnull %1, ptr noundef %42) #4
  %.not40 = icmp eq i32 %44, 0
  br i1 %.not40, label %45, label %54

45:                                               ; preds = %41
  %46 = load i32, ptr @verbose, align 4
  %47 = icmp sgt i32 %46, 1
  %48 = load i32, ptr @flag_debug, align 4
  %49 = icmp sgt i32 %48, 0
  %or.cond11 = select i1 %47, i1 %49, i1 false
  br i1 %or.cond11, label %50, label %67

50:                                               ; preds = %45
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88, ptr noundef nonnull @__func__.tx_perform, i32 noundef 2448)
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.193)
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %67

54:                                               ; preds = %41
  %55 = getelementptr inbounds [4 x %struct.conn_dispatcher], ptr @dispatchers, i64 0, i64 %29, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = tail call ptr %56(ptr noundef nonnull %0) #4
  %.not41 = icmp eq ptr %57, null
  br i1 %.not41, label %58, label %59

58:                                               ; preds = %54
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 2457, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

59:                                               ; preds = %54
  %60 = load i64, ptr %57, align 8, !tbaa !18
  %61 = icmp eq i64 %60, 2864434397
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 2457, ptr noundef nonnull @__PRETTY_FUNCTION__.tx_perform) #3
  unreachable

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %22, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  %66 = tail call i32 %65(ptr noundef nonnull %1, ptr noundef nonnull %57) #4
  br label %67

67:                                               ; preds = %45, %50, %32, %37, %63
  ret i32 0
}

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"iface", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 40, !12, i64 56, !10, i64 64, !8, i64 72, !8, i64 88, !8, i64 104, !13, i64 128}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"pktq", !10, i64 0, !10, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"", !10, i64 0, !10, i64 8}
!14 = !{!6, !10, i64 16}
!15 = !{!16, !10, i64 0}
!16 = !{!"conn_dispatcher", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!16, !10, i64 8}
!18 = !{!19, !7, i64 0}
!19 = !{!"pkt", !7, i64 0, !10, i64 8, !12, i64 16, !12, i64 20, !10, i64 24, !10, i64 32, !13, i64 40}
!20 = !{!16, !10, i64 16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass