; LLVM IR from RemHero/ReUp-DateBase-Raft :: layer3/ossSocket.ll (ZN10_ossSocket6acceptEPiP8sockaddrPji)

; 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.timeval = type { i64, i64 }
%struct.fd_set = type { [16 x i64] }
%class._ossSocket = type { i32, i32, i32, %struct.sockaddr_in, %struct.sockaddr_in, i8, i32 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

@_curPDLevel = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@__func__._ZN10_ossSocket6acceptEPiP8sockaddrPji = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5pdLog7PDLEVELPKcS1_jS1_z(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_ossSocket5closeEv(ptr noundef nonnull align 4 dereferenceable(52)) #3 align 2

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10_ossSocket6acceptEPiP8sockaddrPji(ptr noundef nonnull align 4 dereferenceable(52) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.timeval, align 8
  %14 = alloca %struct.fd_set, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %17 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %18 = getelementptr inbounds %class._ossSocket, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %19, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #5
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = sdiv i32 %20, 1000000
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 0
  store i64 %22, ptr %23, align 8, !tbaa !17
  %24 = load i32, ptr %10, align 4, !tbaa !9
  %25 = srem i32 %24, 1000000
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
  store i64 %26, ptr %27, align 8, !tbaa !20
  br label %28

28:                                               ; preds = %114, %81, %5
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr %14, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %41, %30
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = icmp ult i64 %33, 16
  br i1 %34, label %35, label %44

35:                                               ; preds = %31
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.fd_set, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds [16 x i64], ptr %37, i64 0, i64 %39
  store i64 0, ptr %40, align 8, !tbaa !21
  br label %41

41:                                               ; preds = %35
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = add i32 %42, 1
  store i32 %43, ptr %15, align 4, !tbaa !9
  br label %31, !llvm.loop !22

44:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  %47 = getelementptr inbounds %class._ossSocket, ptr %17, i32 0, i32 0
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %49 = srem i32 %48, 64
  %50 = zext i32 %49 to i64
  %51 = shl i64 1, %50
  %52 = getelementptr inbounds %struct.fd_set, ptr %14, i32 0, i32 0
  %53 = getelementptr inbounds %class._ossSocket, ptr %17, i32 0, i32 0
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = sdiv i32 %54, 64
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [16 x i64], ptr %52, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !21
  %59 = or i64 %58, %51
  store i64 %59, ptr %57, align 8, !tbaa !21
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = icmp sge i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %46
  br label %66

65:                                               ; preds = %46
  br label %66

66:                                               ; preds = %65, %64
  %67 = phi ptr [ %13, %64 ], [ null, %65 ]
  %68 = call i32 @select(i32 noundef %61, ptr noundef %14, ptr noundef null, ptr noundef null, ptr noundef %67)
  store i32 %68, ptr %11, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = icmp eq i32 0, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %66
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %72, align 4, !tbaa !9
  store i32 -3, ptr %11, align 4, !tbaa !9
  br label %142

73:                                               ; preds = %66
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = icmp sgt i32 0, %74
  br i1 %75, label %76, label %98

76:                                               ; preds = %73
  %77 = call ptr @__errno_location() #6
  %78 = load i32, ptr %77, align 4, !tbaa !9
  store i32 %78, ptr %11, align 4, !tbaa !9
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = icmp eq i32 4, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %76
  br label %28, !llvm.loop !24

82:                                               ; preds = %76
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  store i32 -6, ptr %11, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr @_curPDLevel, align 4, !tbaa !25
  %87 = icmp sge i32 %86, 1
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = call ptr @__errno_location() #6
  %90 = load i32, ptr %89, align 4, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) @_Z5pdLog7PDLEVELPKcS1_jS1_z(i32 noundef 1, ptr noundef @__func__._ZN10_ossSocket6acceptEPiP8sockaddrPji, ptr noundef @.str, i32 noundef 509, ptr noundef @.str.8, i32 noundef %90)
  br label %91

91:                                               ; preds = %88, %85
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  br label %144

94:                                               ; No predecessors!
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97, %73
  %99 = getelementptr inbounds %struct.fd_set, ptr %14, i32 0, i32 0
  %100 = getelementptr inbounds %class._ossSocket, ptr %17, i32 0, i32 0
  %101 = load i32, ptr %100, align 4, !tbaa !11
  %102 = sdiv i32 %101, 64
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [16 x i64], ptr %99, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !21
  %106 = getelementptr inbounds %class._ossSocket, ptr %17, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !11
  %108 = srem i32 %107, 64
  %109 = zext i32 %108 to i64
  %110 = shl i64 1, %109
  %111 = and i64 %105, %110
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %98
  br label %115

114:                                              ; preds = %98
  br label %28, !llvm.loop !24

115:                                              ; preds = %113
  store i32 0, ptr %11, align 4, !tbaa !9
  %116 = getelementptr inbounds %class._ossSocket, ptr %17, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = call i32 @accept(i32 noundef %117, ptr noundef %118, ptr noundef %119)
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %120, ptr %121, align 4, !tbaa !9
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = icmp eq i32 -1, %123
  br i1 %124, label %125, label %141

125:                                              ; preds = %115
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  store i32 -6, ptr %11, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr @_curPDLevel, align 4, !tbaa !25
  %130 = icmp sge i32 %129, 1
  br i1 %130, label %131, label %134

131:                                              ; preds = %128
  %132 = call ptr @__errno_location() #6
  %133 = load i32, ptr %132, align 4, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) @_Z5pdLog7PDLEVELPKcS1_jS1_z(i32 noundef 1, ptr noundef @__func__._ZN10_ossSocket6acceptEPiP8sockaddrPji, ptr noundef @.str, i32 noundef 524, ptr noundef @.str.17, i32 noundef %133)
  br label %134

134:                                              ; preds = %131, %128
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %144

137:                                              ; No predecessors!
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140, %115
  br label %142

142:                                              ; preds = %144, %141, %71
  %143 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  ret i32 %143

144:                                              ; preds = %136, %93
  call void @_ZN10_ossSocket5closeEv(ptr noundef nonnull align 4 dereferenceable(52) %17)
  br label %142
}

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #4

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress 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 = { "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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS10_ossSocket", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 12, !13, i64 28, !16, i64 44, !10, i64 48}
!13 = !{!"_ZTS11sockaddr_in", !14, i64 0, !14, i64 2, !15, i64 4, !7, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTS7in_addr", !10, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS7timeval", !19, i64 0, !19, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!18, !19, i64 8}
!21 = !{!19, !19, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS7PDLEVEL", !7, 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"

%struct.timeval = type { i64, i64 }
%struct.fd_set = type { [16 x i64] }

@_curPDLevel = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@__func__._ZN10_ossSocket6acceptEPiP8sockaddrPji = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5pdLog7PDLEVELPKcS1_jS1_z(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10_ossSocket5closeEv(ptr noundef nonnull align 4 dereferenceable(52)) local_unnamed_addr #3 align 2

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -6, 1) i32 @_ZN10_ossSocket6acceptEPiP8sockaddrPji(ptr noundef nonnull align 4 dereferenceable(52) %0, ptr nocapture noundef writeonly %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #3 align 2 {
  %6 = alloca %struct.timeval, align 8
  %7 = alloca %struct.fd_set, align 8
  %8 = load i32, ptr %0, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #6
  %9 = sdiv i32 %4, 1000000
  %10 = sext i32 %9 to i64
  store i64 %10, ptr %6, align 8, !tbaa !14
  %11 = srem i32 %4, 1000000
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %12, ptr %13, align 8, !tbaa !17
  %14 = add nsw i32 %8, 1
  %15 = icmp sgt i32 %4, -1
  %16 = select i1 %15, ptr %6, ptr null
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %5
  %17 = phi i32 [ %8, %5 ], [ %.be, %.backedge.backedge ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %7, i8 0, i64 128, i1 false), !tbaa !18
  %18 = srem i32 %17, 64
  %19 = zext nneg i32 %18 to i64
  %20 = shl nuw i64 1, %19
  %21 = sdiv i32 %17, 64
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [16 x i64], ptr %7, i64 0, i64 %22
  %24 = load i64, ptr %23, align 8, !tbaa !18
  %25 = or i64 %20, %24
  store i64 %25, ptr %23, align 8, !tbaa !18
  %26 = call i32 @select(i32 noundef %14, ptr noundef nonnull %7, ptr noundef null, ptr noundef null, ptr noundef %16)
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %.backedge
  store i32 0, ptr %1, align 4, !tbaa !19
  br label %58

29:                                               ; preds = %.backedge
  %30 = icmp slt i32 %26, 0
  br i1 %30, label %31, label %39

31:                                               ; preds = %29
  %32 = tail call ptr @__errno_location() #7
  %33 = load i32, ptr %32, align 4, !tbaa !19
  %34 = icmp eq i32 %33, 4
  br i1 %34, label %..backedge_crit_edge, label %35

..backedge_crit_edge:                             ; preds = %31
  %.pre.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %.backedge.backedge

.backedge.backedge:                               ; preds = %..backedge_crit_edge, %39
  %.be = phi i32 [ %.pre.pre, %..backedge_crit_edge ], [ %40, %39 ]
  br label %.backedge, !llvm.loop !20

35:                                               ; preds = %31
  %36 = load i32, ptr @_curPDLevel, align 4, !tbaa !22
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %38, label %59

38:                                               ; preds = %35
  call void (i32, ptr, ptr, i32, ptr, ...) @_Z5pdLog7PDLEVELPKcS1_jS1_z(i32 noundef 1, ptr noundef nonnull @__func__._ZN10_ossSocket6acceptEPiP8sockaddrPji, ptr noundef nonnull @.str, i32 noundef 509, ptr noundef nonnull @.str.8, i32 noundef %33)
  br label %59

39:                                               ; preds = %29
  %40 = load i32, ptr %0, align 4, !tbaa !5
  %41 = sdiv i32 %40, 64
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [16 x i64], ptr %7, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !18
  %45 = srem i32 %40, 64
  %46 = zext nneg i32 %45 to i64
  %47 = shl nuw i64 1, %46
  %48 = and i64 %47, %44
  %.not = icmp eq i64 %48, 0
  br i1 %.not, label %.backedge.backedge, label %49

49:                                               ; preds = %39
  %50 = call i32 @accept(i32 noundef %40, ptr noundef %2, ptr noundef %3)
  store i32 %50, ptr %1, align 4, !tbaa !19
  %51 = icmp eq i32 %50, -1
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = load i32, ptr @_curPDLevel, align 4, !tbaa !22
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  %56 = tail call ptr @__errno_location() #7
  %57 = load i32, ptr %56, align 4, !tbaa !19
  call void (i32, ptr, ptr, i32, ptr, ...) @_Z5pdLog7PDLEVELPKcS1_jS1_z(i32 noundef 1, ptr noundef nonnull @__func__._ZN10_ossSocket6acceptEPiP8sockaddrPji, ptr noundef nonnull @.str, i32 noundef 524, ptr noundef nonnull @.str.17, i32 noundef %57)
  br label %59

58:                                               ; preds = %49, %59, %28
  %.0 = phi i32 [ -3, %28 ], [ -6, %59 ], [ 0, %49 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  ret i32 %.0

59:                                               ; preds = %52, %55, %35, %38
  call void @_ZN10_ossSocket5closeEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  br label %58
}

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"_ZTS10_ossSocket", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 28, !13, i64 44, !7, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11sockaddr_in", !11, i64 0, !11, i64 2, !12, i64 4, !8, i64 8}
!11 = !{!"short", !8, i64 0}
!12 = !{!"_ZTS7in_addr", !7, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS7timeval", !16, i64 0, !16, i64 8}
!16 = !{!"long", !8, i64 0}
!17 = !{!15, !16, i64 8}
!18 = !{!16, !16, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS7PDLEVEL", !8, i64 0}


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