; LLVM IR from golems/ach :: src (dns)

; 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.timespec = type { i64, i64 }
%struct.pollfd = type { i32, i16, i16 }
%struct.dns_packet = type { i16, i16, i16, i16, i16, i16, [1 x i8] }

@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 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: 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @perror(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @dns_query(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6) #4 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %struct.timespec, align 8
  %18 = alloca %struct.timespec, align 8
  %19 = alloca %struct.timespec, align 8
  %20 = alloca %struct.timespec, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca %struct.pollfd, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !11
  store ptr %3, ptr %12, align 8, !tbaa !9
  store i64 %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !9
  store i64 %6, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %26 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !13
  %27 = getelementptr inbounds %struct.timespec, ptr %20, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !14
  %29 = add nsw i64 %28, 2
  store i64 %29, ptr %27, align 8, !tbaa !14
  br label %30

30:                                               ; preds = %112, %7
  %31 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %34 = load i64, ptr %33, align 8
  %35 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %36 = load i64, ptr %35, align 8
  %37 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %38 = load i64, ptr %37, align 8
  %39 = call i32 @timespec_cmp(i64 %32, i64 %34, i64 %36, i64 %38)
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %41, label %69

41:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = load ptr, ptr %12, align 8, !tbaa !9
  %44 = load i64, ptr %13, align 8, !tbaa !11
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = load i64, ptr %11, align 8, !tbaa !11
  %47 = trunc i64 %46 to i32
  %48 = call i64 @sendto(i32 noundef %42, ptr noundef %43, i64 noundef %44, i32 noundef 0, ptr noundef %45, i32 noundef %47)
  store i64 %48, ptr %21, align 8, !tbaa !11
  %49 = load i64, ptr %13, align 8, !tbaa !11
  %50 = load i64, ptr %21, align 8, !tbaa !11
  %51 = icmp ne i64 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %41
  call void @perror(ptr noundef @.str.12)
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %66

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %54 = getelementptr inbounds %struct.timespec, ptr %18, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !16
  %56 = add nsw i64 %55, 250000000
  store i64 %56, ptr %23, align 8, !tbaa !11
  %57 = load i64, ptr %23, align 8, !tbaa !11
  %58 = srem i64 %57, 1000000000
  %59 = getelementptr inbounds %struct.timespec, ptr %19, i32 0, i32 1
  store i64 %58, ptr %59, align 8, !tbaa !16
  %60 = getelementptr inbounds %struct.timespec, ptr %18, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !14
  %62 = load i64, ptr %23, align 8, !tbaa !11
  %63 = sdiv i64 %62, 1000000000
  %64 = add nsw i64 %61, %63
  %65 = getelementptr inbounds %struct.timespec, ptr %19, i32 0, i32 0
  store i64 %64, ptr %65, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  store i32 0, ptr %22, align 4
  br label %66

66:                                               ; preds = %53, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %67 = load i32, ptr %22, align 4
  switch i32 %67, label %124 [
    i32 0, label %68
  ]

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %68, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = getelementptr inbounds %struct.pollfd, ptr %25, i32 0, i32 0
  store i32 %70, ptr %71, align 4, !tbaa !17
  %72 = getelementptr inbounds %struct.pollfd, ptr %25, i32 0, i32 1
  store i16 1, ptr %72, align 4, !tbaa !20
  %73 = getelementptr inbounds %struct.pollfd, ptr %25, i32 0, i32 2
  store i16 0, ptr %73, align 2, !tbaa !21
  %74 = call i32 @poll(ptr noundef %25, i64 noundef 1, i32 noundef 250)
  store i32 %74, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  %75 = load i32, ptr %24, align 4, !tbaa !5
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %77, label %79

77:                                               ; preds = %69
  %78 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %78, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %109

79:                                               ; preds = %69
  %80 = load i32, ptr %24, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %107

82:                                               ; preds = %79
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = load ptr, ptr %14, align 8, !tbaa !9
  %85 = load i64, ptr %15, align 8, !tbaa !11
  %86 = call i64 @recv(i32 noundef %83, ptr noundef %84, i64 noundef %85, i32 noundef 0)
  store i64 %86, ptr %16, align 8, !tbaa !11
  %87 = load i64, ptr %16, align 8, !tbaa !11
  %88 = icmp slt i64 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %82
  call void @perror(ptr noundef @.str.13)
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %109

90:                                               ; preds = %82
  %91 = load i64, ptr %16, align 8, !tbaa !11
  %92 = icmp sge i64 %91, 14
  br i1 %92, label %93, label %106

93:                                               ; preds = %90
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.dns_packet, ptr %94, i32 0, i32 0
  %96 = load i16, ptr %95, align 2, !tbaa !22
  %97 = zext i16 %96 to i32
  %98 = load ptr, ptr %12, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.dns_packet, ptr %98, i32 0, i32 0
  %100 = load i16, ptr %99, align 2, !tbaa !22
  %101 = zext i16 %100 to i32
  %102 = icmp eq i32 %97, %101
  br i1 %102, label %103, label %106

103:                                              ; preds = %93
  %104 = load i64, ptr %16, align 8, !tbaa !11
  %105 = trunc i64 %104 to i32
  store i32 %105, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %109

106:                                              ; preds = %93, %90
  br label %107

107:                                              ; preds = %106, %79
  %108 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %18) #7
  store i32 0, ptr %22, align 4
  br label %109

109:                                              ; preds = %107, %103, %89, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %110 = load i32, ptr %22, align 4
  switch i32 %110, label %124 [
    i32 0, label %111
  ]

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111
  %113 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %114 = load i64, ptr %113, align 8
  %115 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %118 = load i64, ptr %117, align 8
  %119 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %120 = load i64, ptr %119, align 8
  %121 = call i32 @timespec_cmp(i64 %114, i64 %116, i64 %118, i64 %120)
  %122 = icmp slt i32 %121, 0
  br i1 %122, label %30, label %123, !llvm.loop !24

123:                                              ; preds = %112
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %124

124:                                              ; preds = %123, %109, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %125 = load i32, ptr %8, align 4
  ret i32 %125
}

; Function Attrs: nounwind
declare i32 @clock_gettime(i32 noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @timespec_cmp(i64, i64, i64, i64) #6

declare i64 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #3

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

declare i64 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 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 "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 = { 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 #7 = { 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 = !{!"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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!14 = !{!15, !12, i64 0}
!15 = !{!"timespec", !12, i64 0, !12, i64 8}
!16 = !{!15, !12, i64 8}
!17 = !{!18, !6, i64 0}
!18 = !{!"pollfd", !6, i64 0, !19, i64 4, !19, i64 6}
!19 = !{!"short", !7, i64 0}
!20 = !{!18, !19, i64 4}
!21 = !{!18, !19, i64 6}
!22 = !{!23, !19, i64 0}
!23 = !{!"dns_packet", !19, i64 0, !19, i64 2, !19, i64 4, !19, i64 6, !19, i64 8, !19, i64 10, !7, i64 12}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.timespec = type { i64, i64 }
%struct.pollfd = type { i32, i16, i16 }

@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 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: mustprogress 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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @dns_query(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6) local_unnamed_addr #3 {
  %8 = alloca %struct.timespec, align 8
  %9 = alloca %struct.timespec, align 8
  %10 = alloca %struct.pollfd, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %11 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !5
  %.sroa.0.0.copyload = load i64, ptr %8, align 8, !tbaa !6
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.6.0.copyload = load i64, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !6
  %12 = add nsw i64 %.sroa.0.0.copyload, 2
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  %14 = trunc i64 %2 to i32
  %15 = getelementptr inbounds i8, ptr %10, i64 4
  %16 = getelementptr inbounds i8, ptr %10, i64 6
  br label %17

17:                                               ; preds = %47, %7
  %.sroa.5.0 = phi i64 [ 0, %7 ], [ %.sroa.5.2, %47 ]
  %.sroa.010.0 = phi i64 [ 0, %7 ], [ %.sroa.010.2, %47 ]
  %18 = load i64, ptr %9, align 8
  %19 = load i64, ptr %13, align 8
  %20 = call i32 @timespec_cmp(i64 %18, i64 %19, i64 %.sroa.010.0, i64 %.sroa.5.0)
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %22, label %31

22:                                               ; preds = %17
  %23 = call i64 @sendto(i32 noundef %0, ptr noundef %3, i64 noundef %4, i32 noundef 0, ptr noundef %1, i32 noundef %14) #7
  %.not = icmp eq i64 %23, %4
  br i1 %.not, label %.thread, label %30

.thread:                                          ; preds = %22
  %24 = load i64, ptr %13, align 8, !tbaa !10
  %25 = add nsw i64 %24, 250000000
  %26 = srem i64 %25, 1000000000
  %27 = load i64, ptr %9, align 8, !tbaa !12
  %28 = sdiv i64 %25, 1000000000
  %29 = add nsw i64 %28, %27
  br label %31

30:                                               ; preds = %22
  call void @perror(ptr noundef nonnull @.str.12) #8
  br label %.thread35

31:                                               ; preds = %.thread, %17
  %.sroa.5.2 = phi i64 [ %.sroa.5.0, %17 ], [ %26, %.thread ]
  %.sroa.010.2 = phi i64 [ %.sroa.010.0, %17 ], [ %29, %.thread ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  store i32 %0, ptr %10, align 4, !tbaa !13
  store i16 1, ptr %15, align 4, !tbaa !17
  store i16 0, ptr %16, align 2, !tbaa !18
  %32 = call i32 @poll(ptr noundef nonnull %10, i64 noundef 1, i32 noundef 250) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %.thread35, label %34

34:                                               ; preds = %31
  %.not31 = icmp eq i32 %32, 0
  br i1 %.not31, label %47, label %35

35:                                               ; preds = %34
  %36 = call i64 @recv(i32 noundef %0, ptr noundef %5, i64 noundef %6, i32 noundef 0) #7
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  call void @perror(ptr noundef nonnull @.str.13) #8
  br label %.thread35

39:                                               ; preds = %35
  %40 = icmp ugt i64 %36, 13
  br i1 %40, label %41, label %47

41:                                               ; preds = %39
  %42 = load i16, ptr %5, align 2, !tbaa !19
  %43 = load i16, ptr %3, align 2, !tbaa !19
  %44 = icmp eq i16 %42, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %41
  %46 = trunc i64 %36 to i32
  br label %.thread35

47:                                               ; preds = %39, %41, %34
  %48 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %9) #7
  %49 = load i64, ptr %9, align 8
  %50 = load i64, ptr %13, align 8
  %51 = call i32 @timespec_cmp(i64 %49, i64 %50, i64 %12, i64 %.sroa.6.0.copyload)
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %17, label %.thread35, !llvm.loop !21

.thread35:                                        ; preds = %31, %47, %45, %38, %30
  %.4 = phi i32 [ -1, %30 ], [ %46, %45 ], [ -1, %38 ], [ %32, %31 ], [ -1, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  ret i32 %.4
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @timespec_cmp(i64, i64, i64, i64) local_unnamed_addr #5

declare i64 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

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

declare i64 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #6

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

!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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"timespec", !7, i64 0, !7, i64 8}
!12 = !{!11, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"pollfd", !15, i64 0, !16, i64 4, !16, i64 6}
!15 = !{!"int", !8, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = !{!14, !16, i64 4}
!18 = !{!14, !16, i64 6}
!19 = !{!20, !16, i64 0}
!20 = !{!"dns_packet", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8, !16, i64 10, !8, i64 12}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass