; LLVM IR from mhsitu/welding_robot :: coppeliaSim-client/common (socketOutConnection)

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

%class.CSocketOutConnection = type <{ ptr, %"class.std::__cxx11::basic_string", i32, i32, %struct.sockaddr_in, i8, i8, i16, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

; 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: mustprogress uwtable
define dso_local noundef i32 @_ZN20CSocketOutConnection20_receiveSimplePacketERSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [6 x i8], align 1
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i16, align 2
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 6, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #4
  %15 = call noundef i32 @_ZN20CSocketOutConnection12_getTimeInMsEv(ptr noundef nonnull align 8 dereferenceable(68) %14)
  %16 = trunc i32 %15 to i16
  store i16 %16, ptr %8, align 2, !tbaa !11
  br label %17

17:                                               ; preds = %47, %2
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 6
  br i1 %19, label %20, label %48

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %21 = getelementptr inbounds %class.CSocketOutConnection, ptr %14, i32 0, i32 3
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = sub nsw i32 6, %27
  %29 = sext i32 %28 to i64
  %30 = call i64 @recv(i32 noundef %22, ptr noundef %26, i64 noundef %29, i32 noundef 0)
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %9, align 4, !tbaa !9
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %34, label %35

34:                                               ; preds = %20
  store i32 3, ptr %10, align 4
  br label %45

35:                                               ; preds = %20
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = add nsw i32 %37, %36
  store i32 %38, ptr %7, align 4, !tbaa !9
  %39 = load i16, ptr %8, align 2, !tbaa !11
  %40 = zext i16 %39 to i32
  %41 = call noundef i32 @_ZN20CSocketOutConnection16_getTimeDiffInMsEi(ptr noundef nonnull align 8 dereferenceable(68) %14, i32 noundef %40)
  %42 = icmp sgt i32 %41, 3000
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  store i32 3, ptr %10, align 4
  br label %45

44:                                               ; preds = %35
  store i32 0, ptr %10, align 4
  br label %45

45:                                               ; preds = %44, %43, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %46 = load i32, ptr %10, align 4
  switch i32 %46, label %131 [
    i32 0, label %47
    i32 3, label %48
  ]

47:                                               ; preds = %45
  br label %17, !llvm.loop !20

48:                                               ; preds = %45, %17
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 6
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %129

52:                                               ; preds = %48
  %53 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
  %54 = load i8, ptr %53, align 1, !tbaa !22
  %55 = sext i8 %54 to i32
  %56 = getelementptr inbounds %class.CSocketOutConnection, ptr %14, i32 0, i32 5
  %57 = load i8, ptr %56, align 8, !tbaa !23
  %58 = sext i8 %57 to i32
  %59 = icmp ne i32 %55, %58
  br i1 %59, label %68, label %60

60:                                               ; preds = %52
  %61 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 1
  %62 = load i8, ptr %61, align 1, !tbaa !22
  %63 = sext i8 %62 to i32
  %64 = getelementptr inbounds %class.CSocketOutConnection, ptr %14, i32 0, i32 6
  %65 = load i8, ptr %64, align 1, !tbaa !24
  %66 = sext i8 %65 to i32
  %67 = icmp ne i32 %63, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %60, %52
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %129

69:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #4
  %70 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
  %71 = getelementptr inbounds i8, ptr %70, i64 2
  %72 = getelementptr inbounds i16, ptr %71, i64 0
  %73 = load i16, ptr %72, align 2, !tbaa !11
  store i16 %73, ptr %11, align 2, !tbaa !11
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorIcSaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #4
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i16, ptr %11, align 2, !tbaa !11
  %77 = zext i16 %76 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 0, ptr %12, align 1, !tbaa !22
  call void @_ZNSt6vectorIcSaIcEE6resizeEmRKc(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  %78 = call noundef i32 @_ZN20CSocketOutConnection12_getTimeInMsEv(ptr noundef nonnull align 8 dereferenceable(68) %14)
  %79 = trunc i32 %78 to i16
  store i16 %79, ptr %8, align 2, !tbaa !11
  br label %80

80:                                               ; preds = %115, %69
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = load i16, ptr %11, align 2, !tbaa !11
  %83 = zext i16 %82 to i32
  %84 = icmp ne i32 %81, %83
  br i1 %84, label %85, label %116

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %86 = getelementptr inbounds %class.CSocketOutConnection, ptr %14, i32 0, i32 3
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef 0) #4
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  %93 = load i16, ptr %11, align 2, !tbaa !11
  %94 = zext i16 %93 to i32
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = sub nsw i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = call i64 @recv(i32 noundef %87, ptr noundef %92, i64 noundef %97, i32 noundef 0)
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = icmp slt i32 %100, 1
  br i1 %101, label %102, label %103

102:                                              ; preds = %85
  store i32 5, ptr %10, align 4
  br label %113

103:                                              ; preds = %85
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = add nsw i32 %105, %104
  store i32 %106, ptr %7, align 4, !tbaa !9
  %107 = load i16, ptr %8, align 2, !tbaa !11
  %108 = zext i16 %107 to i32
  %109 = call noundef i32 @_ZN20CSocketOutConnection16_getTimeDiffInMsEi(ptr noundef nonnull align 8 dereferenceable(68) %14, i32 noundef %108)
  %110 = icmp sgt i32 %109, 3000
  br i1 %110, label %111, label %112

111:                                              ; preds = %103
  store i32 5, ptr %10, align 4
  br label %113

112:                                              ; preds = %103
  store i32 0, ptr %10, align 4
  br label %113

113:                                              ; preds = %112, %111, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %114 = load i32, ptr %10, align 4
  switch i32 %114, label %131 [
    i32 0, label %115
    i32 5, label %116
  ]

115:                                              ; preds = %113
  br label %80, !llvm.loop !25

116:                                              ; preds = %113, %80
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = load i16, ptr %11, align 2, !tbaa !11
  %119 = zext i16 %118 to i32
  %120 = icmp ne i32 %117, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %116
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %128

122:                                              ; preds = %116
  %123 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
  %124 = getelementptr inbounds i8, ptr %123, i64 2
  %125 = getelementptr inbounds i16, ptr %124, i64 1
  %126 = load i16, ptr %125, align 2, !tbaa !11
  %127 = zext i16 %126 to i32
  store i32 %127, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %128

128:                                              ; preds = %122, %121
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #4
  br label %129

129:                                              ; preds = %128, %68, %51
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr %6) #4
  %130 = load i32, ptr %3, align 4
  ret i32 %130

131:                                              ; preds = %113, %45
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN20CSocketOutConnection12_getTimeInMsEv(ptr noundef nonnull align 8 dereferenceable(68)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN20CSocketOutConnection16_getTimeDiffInMsEi(ptr noundef nonnull align 8 dereferenceable(68), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEE6resizeEmRKc(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

!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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !10, i64 44}
!14 = !{!"_ZTS20CSocketOutConnection", !15, i64 8, !10, i64 40, !10, i64 44, !18, i64 48, !7, i64 64, !7, i64 65, !12, i64 66}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS11sockaddr_in", !12, i64 0, !12, i64 2, !19, i64 4, !7, i64 8}
!19 = !{!"_ZTS7in_addr", !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!7, !7, i64 0}
!23 = !{!14, !7, i64 64}
!24 = !{!14, !7, i64 65}
!25 = distinct !{!25, !21}


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

; 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 uwtable
define dso_local noundef range(i32 -1, 65536) i32 @_ZN20CSocketOutConnection20_receiveSimplePacketERSt6vectorIcSaIcEE(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca [6 x i8], align 1
  %4 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %3) #4
  %5 = tail call noundef i32 @_ZN20CSocketOutConnection12_getTimeInMsEv(ptr noundef nonnull align 8 dereferenceable(68) %0)
  %6 = getelementptr inbounds i8, ptr %0, i64 44
  %7 = and i32 %5, 65535
  br label %8

8:                                                ; preds = %18, %2
  %.026 = phi i32 [ 0, %2 ], [ %19, %18 ]
  %.not = icmp eq i32 %.026, 6
  br i1 %.not, label %.thread44, label %9

9:                                                ; preds = %8
  %10 = load i32, ptr %6, align 4, !tbaa !5
  %11 = zext nneg i32 %.026 to i64
  %12 = getelementptr inbounds i8, ptr %3, i64 %11
  %13 = sub nsw i32 6, %.026
  %14 = sext i32 %13 to i64
  %15 = call i64 @recv(i32 noundef %10, ptr noundef nonnull %12, i64 noundef %14, i32 noundef 0)
  %16 = trunc i64 %15 to i32
  %17 = icmp slt i32 %16, 1
  br i1 %17, label %.thread47, label %18

18:                                               ; preds = %9
  %19 = add nuw nsw i32 %.026, %16
  %20 = call noundef i32 @_ZN20CSocketOutConnection16_getTimeDiffInMsEi(ptr noundef nonnull align 8 dereferenceable(68) %0, i32 noundef %7)
  %21 = icmp sgt i32 %20, 3000
  br i1 %21, label %22, label %8

22:                                               ; preds = %18
  %.not33 = icmp eq i32 %19, 6
  br i1 %.not33, label %.thread44, label %.thread47

.thread44:                                        ; preds = %8, %22
  %23 = load i8, ptr %3, align 1, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  %25 = load i8, ptr %24, align 8, !tbaa !18
  %.not34 = icmp eq i8 %23, %25
  br i1 %.not34, label %26, label %.thread47

26:                                               ; preds = %.thread44
  %27 = getelementptr inbounds i8, ptr %3, i64 1
  %28 = load i8, ptr %27, align 1, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %0, i64 65
  %30 = load i8, ptr %29, align 1, !tbaa !19
  %.not35 = icmp eq i8 %28, %30
  br i1 %.not35, label %31, label %.thread47

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %3, i64 2
  %33 = load i16, ptr %32, align 2, !tbaa !20
  call void @_ZNSt6vectorIcSaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %34 = zext i16 %33 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  store i8 0, ptr %4, align 1, !tbaa !17
  call void @_ZNSt6vectorIcSaIcEE6resizeEmRKc(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  %35 = call noundef i32 @_ZN20CSocketOutConnection12_getTimeInMsEv(ptr noundef nonnull align 8 dereferenceable(68) %0)
  %36 = zext i16 %33 to i32
  %37 = and i32 %35, 65535
  br label %38

38:                                               ; preds = %49, %31
  %.3 = phi i32 [ 0, %31 ], [ %50, %49 ]
  %.not36 = icmp eq i32 %.3, %36
  br i1 %.not36, label %.thread52.thread, label %39

39:                                               ; preds = %38
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #4
  %42 = zext nneg i32 %.3 to i64
  %43 = getelementptr inbounds i8, ptr %41, i64 %42
  %44 = sub nsw i32 %36, %.3
  %45 = sext i32 %44 to i64
  %46 = call i64 @recv(i32 noundef %40, ptr noundef nonnull %43, i64 noundef %45, i32 noundef 0)
  %47 = trunc i64 %46 to i32
  %48 = icmp slt i32 %47, 1
  br i1 %48, label %.thread52, label %49

49:                                               ; preds = %39
  %50 = add nuw nsw i32 %.3, %47
  %51 = call noundef i32 @_ZN20CSocketOutConnection16_getTimeDiffInMsEi(ptr noundef nonnull align 8 dereferenceable(68) %0, i32 noundef %37)
  %52 = icmp sgt i32 %51, 3000
  br i1 %52, label %.thread52, label %38

.thread52:                                        ; preds = %49, %39
  %.5 = phi i32 [ %.3, %39 ], [ %50, %49 ]
  %.not37 = icmp eq i32 %.5, %36
  br i1 %.not37, label %.thread52.thread, label %.thread47

.thread52.thread:                                 ; preds = %38, %.thread52
  %53 = getelementptr inbounds i8, ptr %3, i64 4
  %54 = load i16, ptr %53, align 2, !tbaa !20
  %55 = zext i16 %54 to i32
  br label %.thread47

.thread47:                                        ; preds = %9, %.thread52.thread, %.thread52, %.thread44, %26, %22
  %.1 = phi i32 [ -1, %22 ], [ -1, %26 ], [ -1, %.thread44 ], [ %55, %.thread52.thread ], [ -1, %.thread52 ], [ -1, %9 ]
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %3) #4
  ret i32 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN20CSocketOutConnection12_getTimeInMsEv(ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN20CSocketOutConnection16_getTimeDiffInMsEi(ptr noundef nonnull align 8 dereferenceable(68), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEE6resizeEmRKc(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

!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, !13, i64 44}
!6 = !{!"_ZTS20CSocketOutConnection", !7, i64 8, !13, i64 40, !13, i64 44, !14, i64 48, !10, i64 64, !10, i64 65, !15, i64 66}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTS11sockaddr_in", !15, i64 0, !15, i64 2, !16, i64 4, !10, i64 8}
!15 = !{!"short", !10, i64 0}
!16 = !{!"_ZTS7in_addr", !13, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !10, i64 64}
!19 = !{!6, !10, i64 65}
!20 = !{!15, !15, i64 0}


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