; LLVM IR from ohler55/agoo :: ext/agoo (queue)

; 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.pollfd = type { i32, i16, i16 }
%struct._agooQueue = type { ptr, ptr, %struct._agooAtom, %struct._agooAtom, i8, i8, %struct._agooAtom, %struct._agooAtom, %struct._agooAtom, i32, i32 }
%struct._agooAtom = type { ptr, %union.pthread_mutex_t }
%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 }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @atomic_flag_test_and_set(ptr noundef) #1

declare double @dsleep(double noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @_atomic_store(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @atomic_flag_clear(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
define dso_local ptr @agoo_queue_pop(ptr noundef %0, double noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.pollfd, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  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 4, ptr %8) #4
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct._agooQueue, ptr %11, i32 0, i32 5
  %13 = load i8, ptr %12, align 1, !tbaa !11, !range !16, !noundef !17
  %14 = trunc i8 %13 to i1
  br i1 %14, label %15, label %23

15:                                               ; preds = %2
  br label %16

16:                                               ; preds = %20, %15
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct._agooQueue, ptr %17, i32 0, i32 7
  %19 = call zeroext i1 @atomic_flag_test_and_set(ptr noundef %18)
  br i1 %19, label %20, label %22

20:                                               ; preds = %16
  %21 = call double @dsleep(double noundef 1.000000e-04)
  br label %16, !llvm.loop !18

22:                                               ; preds = %16
  br label %23

23:                                               ; preds = %22, %2
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._agooQueue, ptr %24, i32 0, i32 2
  %26 = call ptr @atomic_load(ptr noundef %25)
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %27, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = icmp ne ptr null, %28
  br i1 %29, label %30, label %43

30:                                               ; preds = %23
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._agooQueue, ptr %31, i32 0, i32 2
  %33 = call ptr @atomic_load(ptr noundef %32)
  store ptr null, ptr %33, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._agooQueue, ptr %34, i32 0, i32 5
  %36 = load i8, ptr %35, align 1, !tbaa !11, !range !16, !noundef !17
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %41

38:                                               ; preds = %30
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._agooQueue, ptr %39, i32 0, i32 7
  call void @atomic_flag_clear(ptr noundef %40)
  br label %41

41:                                               ; preds = %38, %30
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %42, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %113

43:                                               ; preds = %23
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._agooQueue, ptr %44, i32 0, i32 2
  %46 = call ptr @atomic_load(ptr noundef %45)
  %47 = getelementptr inbounds ptr, ptr %46, i64 1
  store ptr %47, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._agooQueue, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = icmp ule ptr %50, %51
  br i1 %52, label %53, label %57

53:                                               ; preds = %43
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._agooQueue, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  store ptr %56, ptr %7, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %53, %43
  %58 = load double, ptr %5, align 8, !tbaa !9
  %59 = fdiv double %58, 1.000000e+02
  %60 = fmul double %59, 1.000000e+03
  %61 = fptosi double %60 to i32
  store i32 %61, ptr %8, align 4, !tbaa !22
  br label %62

62:                                               ; preds = %94, %57
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._agooQueue, ptr %63, i32 0, i32 3
  %65 = call ptr @atomic_load(ptr noundef %64)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = icmp eq ptr %65, %66
  br i1 %67, label %68, label %97

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %69 = load i32, ptr %8, align 4, !tbaa !22
  %70 = icmp sle i32 %69, 0
  br i1 %70, label %71, label %80

71:                                               ; preds = %68
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._agooQueue, ptr %72, i32 0, i32 5
  %74 = load i8, ptr %73, align 1, !tbaa !11, !range !16, !noundef !17
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %79

76:                                               ; preds = %71
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._agooQueue, ptr %77, i32 0, i32 7
  call void @atomic_flag_clear(ptr noundef %78)
  br label %79

79:                                               ; preds = %76, %71
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %91

80:                                               ; preds = %68
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call i32 @agoo_queue_listen(ptr noundef %81)
  %83 = getelementptr inbounds %struct.pollfd, ptr %10, i32 0, i32 0
  store i32 %82, ptr %83, align 4, !tbaa !23
  %84 = getelementptr inbounds %struct.pollfd, ptr %10, i32 0, i32 1
  store i16 1, ptr %84, align 4, !tbaa !26
  %85 = getelementptr inbounds %struct.pollfd, ptr %10, i32 0, i32 2
  store i16 0, ptr %85, align 2, !tbaa !27
  %86 = call i32 @poll(ptr noundef %10, i64 noundef 1, i32 noundef 100)
  %87 = icmp slt i32 0, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %80
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  call void @agoo_queue_release(ptr noundef %89)
  br label %90

90:                                               ; preds = %88, %80
  store i32 0, ptr %9, align 4
  br label %91

91:                                               ; preds = %90, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %92 = load i32, ptr %9, align 4
  switch i32 %92, label %113 [
    i32 0, label %93
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %8, align 4, !tbaa !22
  %96 = add nsw i32 %95, -1
  store i32 %96, ptr %8, align 4, !tbaa !22
  br label %62, !llvm.loop !28

97:                                               ; preds = %62
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._agooQueue, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_atomic_store(ptr noundef %99, ptr noundef %100)
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  store ptr %102, ptr %6, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %103, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._agooQueue, ptr %104, i32 0, i32 5
  %106 = load i8, ptr %105, align 1, !tbaa !11, !range !16, !noundef !17
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %111

108:                                              ; preds = %97
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._agooQueue, ptr %109, i32 0, i32 7
  call void @atomic_flag_clear(ptr noundef %110)
  br label %111

111:                                              ; preds = %108, %97
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %112, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %113

113:                                              ; preds = %111, %91, %41
  call void @llvm.lifetime.end.p0(i64 4, 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
  %114 = load ptr, ptr %3, align 8
  ret ptr %114
}

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

declare i32 @poll(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @agoo_queue_release(ptr noundef) #3

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

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 113}
!12 = !{!"_agooQueue", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 64, !14, i64 112, !14, i64 113, !13, i64 120, !13, i64 168, !13, i64 216, !15, i64 264, !15, i64 268}
!13 = !{!"_agooAtom", !6, i64 0, !7, i64 8}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !6, i64 8}
!21 = !{!12, !6, i64 0}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !15, i64 0}
!24 = !{!"pollfd", !15, i64 0, !25, i64 4, !25, i64 6}
!25 = !{!"short", !7, i64 0}
!26 = !{!24, !25, i64 4}
!27 = !{!24, !25, i64 6}
!28 = distinct !{!28, !19}


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

%struct.pollfd = type { i32, i16, i16 }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @atomic_flag_test_and_set(ptr noundef) local_unnamed_addr #1

declare double @dsleep(double noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @_atomic_store(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @agoo_queue_pop(ptr noundef %0, double noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.pollfd, align 4
  %4 = getelementptr inbounds i8, ptr %0, i64 113
  %5 = load i8, ptr %4, align 1, !tbaa !5, !range !13, !noundef !14
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 168
  %8 = tail call zeroext i1 @atomic_flag_test_and_set(ptr noundef nonnull %7)
  br i1 %8, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %9 = tail call double @dsleep(double noundef 1.000000e-04) #4
  %10 = tail call zeroext i1 @atomic_flag_test_and_set(ptr noundef nonnull %7)
  br i1 %10, label %.lr.ph, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %2
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = tail call ptr @atomic_load(ptr noundef nonnull %11)
  %13 = load ptr, ptr %12, align 8, !tbaa !17
  %.not = icmp eq ptr %13, null
  %14 = tail call ptr @atomic_load(ptr noundef nonnull %11)
  br i1 %.not, label %20, label %15

15:                                               ; preds = %.loopexit
  store ptr null, ptr %14, align 8, !tbaa !17
  %16 = load i8, ptr %4, align 1, !tbaa !5, !range !13, !noundef !14
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %18, label %57

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @atomic_flag_clear(ptr noundef nonnull %19)
  br label %57

20:                                               ; preds = %.loopexit
  %21 = getelementptr inbounds i8, ptr %14, i64 8
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  %.not34 = icmp ugt ptr %23, %21
  br i1 %.not34, label %26, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr %0, align 8, !tbaa !19
  br label %26

26:                                               ; preds = %24, %20
  %.030 = phi ptr [ %25, %24 ], [ %21, %20 ]
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  %28 = tail call ptr @atomic_load(ptr noundef nonnull %27)
  %29 = icmp eq ptr %28, %.030
  br i1 %29, label %.lr.ph36, label %._crit_edge

.lr.ph36:                                         ; preds = %26
  %30 = fdiv double %1, 1.000000e+02
  %31 = fmul double %30, 1.000000e+03
  %32 = fptosi double %31 to i32
  %33 = getelementptr inbounds i8, ptr %3, i64 4
  %34 = getelementptr inbounds i8, ptr %3, i64 6
  br label %35

35:                                               ; preds = %.lr.ph36, %48
  %.02935 = phi i32 [ %32, %.lr.ph36 ], [ %49, %48 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %36 = icmp sgt i32 %.02935, 0
  br i1 %36, label %42, label %37

37:                                               ; preds = %35
  %38 = load i8, ptr %4, align 1, !tbaa !5, !range !13, !noundef !14
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %40, label %47

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %0, i64 168
  call void @atomic_flag_clear(ptr noundef nonnull %41)
  br label %47

42:                                               ; preds = %35
  %43 = call i32 @agoo_queue_listen(ptr noundef %0)
  store i32 %43, ptr %3, align 4, !tbaa !20
  store i16 1, ptr %33, align 4, !tbaa !23
  store i16 0, ptr %34, align 2, !tbaa !24
  %44 = call i32 @poll(ptr noundef nonnull %3, i64 noundef 1, i32 noundef 100) #4
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  call void @agoo_queue_release(ptr noundef %0)
  br label %48

47:                                               ; preds = %37, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %57

48:                                               ; preds = %42, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %49 = add nsw i32 %.02935, -1
  %50 = call ptr @atomic_load(ptr noundef nonnull %27)
  %51 = icmp eq ptr %50, %.030
  br i1 %51, label %35, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %48, %26
  call void @_atomic_store(ptr noundef nonnull %11, ptr noundef %.030)
  %52 = load ptr, ptr %.030, align 8, !tbaa !17
  store ptr null, ptr %.030, align 8, !tbaa !17
  %53 = load i8, ptr %4, align 1, !tbaa !5, !range !13, !noundef !14
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %55, label %57

55:                                               ; preds = %._crit_edge
  %56 = getelementptr inbounds i8, ptr %0, i64 168
  call void @atomic_flag_clear(ptr noundef nonnull %56)
  br label %57

57:                                               ; preds = %47, %._crit_edge, %55, %15, %18
  %.2 = phi ptr [ null, %47 ], [ %13, %18 ], [ %13, %15 ], [ %52, %55 ], [ %52, %._crit_edge ]
  ret ptr %.2
}

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

declare i32 @poll(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @agoo_queue_release(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 }

!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, !11, i64 113}
!6 = !{!"_agooQueue", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 64, !11, i64 112, !11, i64 113, !10, i64 120, !10, i64 168, !10, i64 216, !12, i64 264, !12, i64 268}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_agooAtom", !7, i64 0, !8, i64 8}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 8}
!19 = !{!6, !7, i64 0}
!20 = !{!21, !12, i64 0}
!21 = !{!"pollfd", !12, i64 0, !22, i64 4, !22, i64 6}
!22 = !{!"short", !8, i64 0}
!23 = !{!21, !22, i64 4}
!24 = !{!21, !22, i64 6}
!25 = distinct !{!25, !16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass