; LLVM IR from pandax381/microps :: tcp (tcp_accept)

; 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"

%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.tcp_pcb = type { i32, i32, %struct.ip_endpoint, %struct.ip_endpoint, %struct.anon, i32, %struct.anon.0, i32, i16, i16, [65535 x i8], %struct.sched_ctx, %struct.queue_head, %struct.timeval, ptr, %struct.queue_head }
%struct.ip_endpoint = type { i32, i16 }
%struct.anon = type { i32, i32, i16, i16, i32, i32 }
%struct.anon.0 = type { i32, i16, i16 }
%struct.sched_ctx = type { %union.pthread_cond_t, i32, i32 }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.timeval = type { i64, i64 }
%struct.queue_head = type { ptr, ptr, i32 }

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@mutex = external hidden global %union.pthread_mutex_t, align 8
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@__func__.tcp_accept = external hidden unnamed_addr constant [11 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 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: 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) #1

declare i32 @lprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_lock(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_unlock(ptr noundef) #3

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

declare i32 @sched_sleep(ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @tcp_pcb_id(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @tcp_pcb_get(i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @tcp_accept(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %10 = call i32 @mutex_lock(ptr noundef @mutex)
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = call ptr @tcp_pcb_get(i32 noundef %11)
  store ptr %12, ptr %6, align 8, !tbaa !9
  %13 = load ptr, ptr %6, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %19, label %15

15:                                               ; preds = %2
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %16, i32 noundef 69, ptr noundef @.str.1, i32 noundef 1163, ptr noundef @__func__.tcp_accept, ptr noundef @.str.12)
  %18 = call i32 @mutex_unlock(ptr noundef @mutex)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %77

19:                                               ; preds = %2
  %20 = load ptr, ptr %6, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.tcp_pcb, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp ne i32 %22, 2
  br i1 %23, label %24, label %28

24:                                               ; preds = %19
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %25, i32 noundef 69, ptr noundef @.str.1, i32 noundef 1168, ptr noundef @__func__.tcp_accept, ptr noundef @.str.14)
  %27 = call i32 @mutex_unlock(ptr noundef @mutex)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %77

28:                                               ; preds = %19
  %29 = load ptr, ptr %6, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.tcp_pcb, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !21
  %32 = icmp ne i32 %31, 2
  br i1 %32, label %33, label %37

33:                                               ; preds = %28
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %34, i32 noundef 69, ptr noundef @.str.1, i32 noundef 1173, ptr noundef @__func__.tcp_accept, ptr noundef @.str.21)
  %36 = call i32 @mutex_unlock(ptr noundef @mutex)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %77

37:                                               ; preds = %28
  br label %38

38:                                               ; preds = %64, %37
  %39 = load ptr, ptr %6, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.tcp_pcb, ptr %39, i32 0, i32 15
  %41 = call ptr @queue_pop(ptr noundef %40)
  store ptr %41, ptr %7, align 8, !tbaa !9
  %42 = icmp ne ptr %41, null
  %43 = xor i1 %42, true
  br i1 %43, label %44, label %65

44:                                               ; preds = %38
  %45 = load ptr, ptr %6, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.tcp_pcb, ptr %45, i32 0, i32 11
  %47 = call i32 @sched_sleep(ptr noundef %46, ptr noundef @mutex, ptr noundef null)
  %48 = icmp eq i32 %47, -1
  br i1 %48, label %49, label %54

49:                                               ; preds = %44
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %50, i32 noundef 68, ptr noundef @.str.1, i32 noundef 1179, ptr noundef @__func__.tcp_accept, ptr noundef @.str.9)
  %52 = call i32 @mutex_unlock(ptr noundef @mutex)
  %53 = call ptr @__errno_location() #7
  store i32 4, ptr %53, align 4, !tbaa !5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %77

54:                                               ; preds = %44
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.tcp_pcb, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !21
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %64

59:                                               ; preds = %54
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %60, i32 noundef 68, ptr noundef @.str.1, i32 noundef 1185, ptr noundef @__func__.tcp_accept, ptr noundef @.str.22)
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  call void @tcp_pcb_release(ptr noundef %62)
  %63 = call i32 @mutex_unlock(ptr noundef @mutex)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %77

64:                                               ; preds = %54
  br label %38, !llvm.loop !22

65:                                               ; preds = %38
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %72

68:                                               ; preds = %65
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = load ptr, ptr %7, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.tcp_pcb, ptr %70, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 8 %71, i64 8, i1 false), !tbaa.struct !24
  br label %72

72:                                               ; preds = %68, %65
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  %74 = call i32 @tcp_pcb_id(ptr noundef %73)
  store i32 %74, ptr %8, align 4, !tbaa !5
  %75 = call i32 @mutex_unlock(ptr noundef @mutex)
  %76 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %76, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %77

77:                                               ; preds = %72, %59, %49, %33, %24, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %78 = load i32, ptr %3, align 4
  ret i32 %78
}

declare ptr @queue_pop(ptr noundef) #2

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

%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@mutex = external hidden global %union.pthread_mutex_t, align 8
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@__func__.tcp_accept = external hidden unnamed_addr constant [11 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1

declare i32 @lprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_lock(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @tcp_pcb_release(ptr noundef) local_unnamed_addr #2

declare i32 @sched_sleep(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @tcp_pcb_id(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @tcp_pcb_get(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @tcp_accept(i32 noundef %0, ptr noundef writeonly %1) local_unnamed_addr #2 {
  %3 = tail call i32 @mutex_lock(ptr noundef nonnull @mutex)
  %4 = tail call ptr @tcp_pcb_get(i32 noundef %0)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %9

5:                                                ; preds = %2
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %6, i32 noundef 69, ptr noundef nonnull @.str.1, i32 noundef 1163, ptr noundef nonnull @__func__.tcp_accept, ptr noundef nonnull @.str.12) #4
  %8 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  br label %48

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %4, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %.not15 = icmp eq i32 %11, 2
  br i1 %.not15, label %16, label %12

12:                                               ; preds = %9
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %13, i32 noundef 69, ptr noundef nonnull @.str.1, i32 noundef 1168, ptr noundef nonnull @__func__.tcp_accept, ptr noundef nonnull @.str.14) #4
  %15 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  br label %48

16:                                               ; preds = %9
  %17 = load i32, ptr %4, align 8, !tbaa !20
  %.not16 = icmp eq i32 %17, 2
  br i1 %.not16, label %.preheader, label %20

.preheader:                                       ; preds = %16
  %18 = getelementptr inbounds i8, ptr %4, i64 65704
  %19 = getelementptr inbounds i8, ptr %4, i64 65600
  br label %24

20:                                               ; preds = %16
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %21, i32 noundef 69, ptr noundef nonnull @.str.1, i32 noundef 1173, ptr noundef nonnull @__func__.tcp_accept, ptr noundef nonnull @.str.21) #4
  %23 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  br label %48

24:                                               ; preds = %.preheader, %34
  %25 = tail call ptr @queue_pop(ptr noundef nonnull %18) #4
  %.not17 = icmp eq ptr %25, null
  br i1 %.not17, label %26, label %41

26:                                               ; preds = %24
  %27 = tail call i32 @sched_sleep(ptr noundef nonnull %19, ptr noundef nonnull @mutex, ptr noundef null) #4
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %30, i32 noundef 68, ptr noundef nonnull @.str.1, i32 noundef 1179, ptr noundef nonnull @__func__.tcp_accept, ptr noundef nonnull @.str.9) #4
  %32 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  %33 = tail call ptr @__errno_location() #5
  store i32 4, ptr %33, align 4, !tbaa !21
  br label %48

34:                                               ; preds = %26
  %35 = load i32, ptr %4, align 8, !tbaa !20
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %24, !llvm.loop !22

37:                                               ; preds = %34
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %38, i32 noundef 68, ptr noundef nonnull @.str.1, i32 noundef 1185, ptr noundef nonnull @__func__.tcp_accept, ptr noundef nonnull @.str.22) #4
  tail call void @tcp_pcb_release(ptr noundef nonnull %4)
  %40 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  br label %48

41:                                               ; preds = %24
  %.not18 = icmp eq ptr %1, null
  br i1 %.not18, label %45, label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %25, i64 16
  %44 = load i64, ptr %43, align 8
  store i64 %44, ptr %1, align 4
  br label %45

45:                                               ; preds = %42, %41
  %46 = tail call i32 @tcp_pcb_id(ptr noundef nonnull %25)
  %47 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  br label %48

48:                                               ; preds = %45, %37, %29, %20, %12, %5
  %.0 = phi i32 [ -1, %12 ], [ -1, %20 ], [ -1, %29 ], [ -1, %37 ], [ %46, %45 ], [ -1, %5 ]
  ret i32 %.0
}

declare ptr @queue_pop(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { 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 #4 = { nounwind }
attributes #5 = { 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, !11, i64 4}
!10 = !{!"tcp_pcb", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !14, i64 24, !11, i64 44, !15, i64 48, !11, i64 56, !13, i64 60, !13, i64 62, !7, i64 64, !16, i64 65600, !17, i64 65656, !18, i64 65680, !6, i64 65696, !17, i64 65704}
!11 = !{!"int", !7, i64 0}
!12 = !{!"ip_endpoint", !11, i64 0, !13, i64 4}
!13 = !{!"short", !7, i64 0}
!14 = !{!"", !11, i64 0, !11, i64 4, !13, i64 8, !13, i64 10, !11, i64 12, !11, i64 16}
!15 = !{!"", !11, i64 0, !13, i64 4, !13, i64 6}
!16 = !{!"sched_ctx", !7, i64 0, !11, i64 48, !11, i64 52}
!17 = !{!"queue_head", !6, i64 0, !6, i64 8, !11, i64 16}
!18 = !{!"timeval", !19, i64 0, !19, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!10, !11, i64 0}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass