; LLVM IR from shixiongfei/nio4c :: nio4c_selector (selector_select)

; 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.niohtableiter_s = type { i32, ptr, ptr, ptr }
%struct.nioevent_s = type { i32, i32, i32, i32, ptr }
%struct.nioselector_s = type { ptr, %struct.niohtable_s, %struct.niosocket_s, %struct.niosocket_s, i32 }
%struct.niohtable_s = type { ptr, i32, i32, i32 }
%struct.niosocket_s = type { i32 }
%struct.niomonitor_s = type { ptr, ptr, ptr, i32, i32, i32 }
%struct.niopoll_s = type { ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__.selector_select = external hidden unnamed_addr constant [73 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @selector_select(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.niohtableiter_s, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = call ptr @llvm.stacksave.p0()
  store ptr %19, ptr %15, align 8
  %20 = alloca %struct.nioevent_s, i64 %18, align 16
  store i64 %18, ptr %16, align 8
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.nioselector_s, ptr %21, i32 0, i32 1
  %23 = call i32 @niohtable_iter(ptr noundef %22, ptr noundef %14)
  br label %24

24:                                               ; preds = %27, %4
  %25 = call i32 @niohtable_next(ptr noundef %14, ptr noundef null, ptr noundef %13)
  %26 = icmp eq i32 0, %25
  br i1 %26, label %27, label %30

27:                                               ; preds = %24
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.niomonitor_s, ptr %28, i32 0, i32 4
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %24, !llvm.loop !13

30:                                               ; preds = %24
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.nioselector_s, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = getelementptr inbounds %struct.niopoll_s, ptr %33, i32 0, i32 5
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.nioselector_s, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = call i32 %35(ptr noundef %38, ptr noundef %20, i32 noundef %39, i32 noundef %40)
  store i32 %41, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %119, %30
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %46, label %122

46:                                               ; preds = %42
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.nioevent_s, ptr %20, i64 %48
  %50 = getelementptr inbounds %struct.nioevent_s, ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  store ptr %51, ptr %13, align 8, !tbaa !5
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.nioevent_s, ptr %20, i64 %53
  %55 = getelementptr inbounds %struct.nioevent_s, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !23
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %68

58:                                               ; preds = %46
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  br label %63

62:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 113, ptr noundef @__PRETTY_FUNCTION__.selector_select) #6
  unreachable

63:                                               ; preds = %61
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.niomonitor_s, ptr %64, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = or i32 %66, 4
  store i32 %67, ptr %65, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %63, %46
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %struct.nioevent_s, ptr %20, i64 %70
  %72 = getelementptr inbounds %struct.nioevent_s, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %72, align 8, !tbaa !24
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %96

75:                                               ; preds = %68
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.nioevent_s, ptr %20, i64 %77
  %79 = getelementptr inbounds %struct.nioevent_s, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !25
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.nioselector_s, ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %struct.niosocket_s, ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !26
  %85 = icmp eq i32 %80, %84
  br i1 %85, label %86, label %90

86:                                               ; preds = %75
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.nioselector_s, ptr %87, i32 0, i32 2
  %89 = call i32 @nio_recv(ptr noundef %88, ptr noundef %11, i32 noundef 4)
  br label %95

90:                                               ; preds = %75
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.niomonitor_s, ptr %91, i32 0, i32 4
  %93 = load i32, ptr %92, align 4, !tbaa !11
  %94 = or i32 %93, 1
  store i32 %94, ptr %92, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %90, %86
  br label %96

96:                                               ; preds = %95, %68
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.nioevent_s, ptr %20, i64 %98
  %100 = getelementptr inbounds %struct.nioevent_s, ptr %99, i32 0, i32 3
  %101 = load i32, ptr %100, align 4, !tbaa !27
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %96
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.niomonitor_s, ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = or i32 %106, 2
  store i32 %107, ptr %105, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %103, %96
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %118

111:                                              ; preds = %108
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %12, align 4, !tbaa !9
  %116 = sext i32 %114 to i64
  %117 = getelementptr inbounds ptr, ptr %113, i64 %116
  store ptr %112, ptr %117, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %111, %108
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %9, align 4, !tbaa !9
  br label %42, !llvm.loop !28

122:                                              ; preds = %42
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %124)
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %123
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

declare i32 @niohtable_iter(ptr noundef, ptr noundef) #3

declare i32 @niohtable_next(ptr noundef, ptr noundef, ptr noundef) #3

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

declare i32 @nio_recv(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn }
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 = { 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 #5 = { nounwind }
attributes #6 = { 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, !10, i64 28}
!12 = !{!"niomonitor_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 0}
!16 = !{!"nioselector_s", !6, i64 0, !17, i64 8, !18, i64 32, !18, i64 36, !10, i64 40}
!17 = !{!"niohtable_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!18 = !{!"niosocket_s", !10, i64 0}
!19 = !{!20, !6, i64 40}
!20 = !{!"niopoll_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!21 = !{!22, !6, i64 16}
!22 = !{!"nioevent_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16}
!23 = !{!22, !10, i64 4}
!24 = !{!22, !10, i64 8}
!25 = !{!22, !10, i64 0}
!26 = !{!16, !10, i64 32}
!27 = !{!22, !10, i64 12}
!28 = distinct !{!28, !14}


; 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.niohtableiter_s = type { i32, ptr, ptr, ptr }
%struct.nioevent_s = type { i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@__PRETTY_FUNCTION__.selector_select = external hidden unnamed_addr constant [73 x i8], align 1

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

; 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 i32 @selector_select(ptr noundef %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.niohtableiter_s, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  %8 = zext i32 %2 to i64
  %9 = tail call ptr @llvm.stacksave.p0()
  %10 = alloca %struct.nioevent_s, i64 %8, align 16
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = call i32 @niohtable_iter(ptr noundef nonnull %11, ptr noundef nonnull %7) #5
  %13 = call i32 @niohtable_next(ptr noundef nonnull %7, ptr noundef null, ptr noundef nonnull %6) #5
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %.lr.ph
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 28
  store i32 0, ptr %16, align 4, !tbaa !9
  %17 = call i32 @niohtable_next(ptr noundef nonnull %7, ptr noundef null, ptr noundef nonnull %6) #5
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %4
  %19 = load ptr, ptr %0, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %19, i64 40
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = call i32 %21(ptr noundef %19, ptr noundef nonnull %10, i32 noundef %2, i32 noundef %3) #5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph31, label %._crit_edge32

.lr.ph31:                                         ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %wide.trip.count = zext nneg i32 %22 to i64
  br label %25

25:                                               ; preds = %.lr.ph31, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph31 ], [ %indvars.iv.next, %61 ]
  %.01928 = phi i32 [ 0, %.lr.ph31 ], [ %.1, %61 ]
  %26 = getelementptr inbounds %struct.nioevent_s, ptr %10, i64 %indvars.iv
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !20
  store ptr %28, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %26, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !22
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %37, label %31

31:                                               ; preds = %25
  %.not22 = icmp eq ptr %28, null
  br i1 %.not22, label %32, label %33

32:                                               ; preds = %31
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 113, ptr noundef nonnull @__PRETTY_FUNCTION__.selector_select) #6
  unreachable

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %28, i64 28
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = or i32 %35, 4
  store i32 %36, ptr %34, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %33, %25
  %38 = getelementptr inbounds i8, ptr %26, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !23
  %.not23 = icmp eq i32 %39, 0
  br i1 %.not23, label %50, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %26, align 8, !tbaa !24
  %42 = load i32, ptr %24, align 8, !tbaa !25
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = call i32 @nio_recv(ptr noundef nonnull %24, ptr noundef nonnull %5, i32 noundef 4) #5
  br label %50

46:                                               ; preds = %40
  %47 = getelementptr inbounds i8, ptr %28, i64 28
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = or i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %44, %46, %37
  %51 = getelementptr inbounds i8, ptr %26, i64 12
  %52 = load i32, ptr %51, align 4, !tbaa !26
  %.not24 = icmp eq i32 %52, 0
  %.pr = load ptr, ptr %6, align 8, !tbaa !5
  br i1 %.not24, label %56, label %.thread

.thread:                                          ; preds = %50
  %53 = getelementptr inbounds i8, ptr %.pr, i64 28
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = or i32 %54, 2
  store i32 %55, ptr %53, align 4, !tbaa !9
  br label %57

56:                                               ; preds = %50
  %.not25 = icmp eq ptr %.pr, null
  br i1 %.not25, label %61, label %57

57:                                               ; preds = %.thread, %56
  %58 = add nsw i32 %.01928, 1
  %59 = sext i32 %.01928 to i64
  %60 = getelementptr inbounds ptr, ptr %1, i64 %59
  store ptr %.pr, ptr %60, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %56, %57
  %.1 = phi i32 [ %58, %57 ], [ %.01928, %56 ]
  %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 %._crit_edge32, label %25, !llvm.loop !27

._crit_edge32:                                    ; preds = %61, %._crit_edge
  %.019.lcssa = phi i32 [ 0, %._crit_edge ], [ %.1, %61 ]
  call void @llvm.stackrestore.p0(ptr %9)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  ret i32 %.019.lcssa
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

declare i32 @niohtable_iter(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @niohtable_next(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @nio_recv(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { 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 #5 = { nounwind }
attributes #6 = { 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 28}
!10 = !{!"niomonitor_s", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 0}
!15 = !{!"nioselector_s", !6, i64 0, !16, i64 8, !17, i64 32, !17, i64 36, !11, i64 40}
!16 = !{!"niohtable_s", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!17 = !{!"niosocket_s", !11, i64 0}
!18 = !{!19, !6, i64 40}
!19 = !{!"niopoll_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = !{!21, !6, i64 16}
!21 = !{!"nioevent_s", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16}
!22 = !{!21, !11, i64 4}
!23 = !{!21, !11, i64 8}
!24 = !{!21, !11, i64 0}
!25 = !{!15, !11, i64 32}
!26 = !{!21, !11, i64 12}
!27 = distinct !{!27, !13}


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