; LLVM IR from holzschu/ios_system :: curl/curl/docs/examples (sendrecv)

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

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca [1024 x i8], align 16
  %11 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store ptr @.str, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call i64 @strlen(ptr noundef %12) #5
  store i64 %13, ptr %4, align 8, !tbaa !9
  %14 = call ptr @curl_easy_init()
  store ptr %14, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %124

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !9
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = call i32 (ptr, i32, ...) @curl_easy_setopt(ptr noundef %18, i32 noundef 10002, ptr noundef @.str.1)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = call i32 (ptr, i32, ...) @curl_easy_setopt(ptr noundef %20, i32 noundef 141, i64 noundef 1)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = call i32 @curl_easy_perform(ptr noundef %22)
  store i32 %23, ptr %5, align 4, !tbaa !11
  %24 = load i32, ptr %5, align 4, !tbaa !11
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %30

26:                                               ; preds = %17
  %27 = load i32, ptr %5, align 4, !tbaa !11
  %28 = call ptr @curl_easy_strerror(i32 noundef %27)
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %121

30:                                               ; preds = %17
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = call i32 (ptr, i32, ...) @curl_easy_getinfo(ptr noundef %31, i32 noundef 5242924, ptr noundef %6)
  store i32 %32, ptr %5, align 4, !tbaa !11
  %33 = load i32, ptr %5, align 4, !tbaa !11
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %30
  %36 = load i32, ptr %5, align 4, !tbaa !11
  %37 = call ptr @curl_easy_strerror(i32 noundef %36)
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %37)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %121

39:                                               ; preds = %30
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %41

41:                                               ; preds = %79, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  br label %42

42:                                               ; preds = %63, %41
  store i64 0, ptr %9, align 8, !tbaa !9
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = load i64, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %44, i64 %45
  %47 = load i64, ptr %4, align 8, !tbaa !9
  %48 = load i64, ptr %7, align 8, !tbaa !9
  %49 = sub i64 %47, %48
  %50 = call i32 @curl_easy_send(ptr noundef %43, ptr noundef %46, i64 noundef %49, ptr noundef %9)
  store i32 %50, ptr %5, align 4, !tbaa !11
  %51 = load i64, ptr %9, align 8, !tbaa !9
  %52 = load i64, ptr %7, align 8, !tbaa !9
  %53 = add i64 %52, %51
  store i64 %53, ptr %7, align 8, !tbaa !9
  %54 = load i32, ptr %5, align 4, !tbaa !11
  %55 = icmp eq i32 %54, 81
  br i1 %55, label %56, label %62

56:                                               ; preds = %42
  %57 = load i32, ptr %6, align 4, !tbaa !11
  %58 = call i32 @wait_on_socket(i32 noundef %57, i32 noundef 0, i64 noundef 60000)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %62, label %60

60:                                               ; preds = %56
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %76

62:                                               ; preds = %56, %42
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %5, align 4, !tbaa !11
  %65 = icmp eq i32 %64, 81
  br i1 %65, label %42, label %66, !llvm.loop !13

66:                                               ; preds = %63
  %67 = load i32, ptr %5, align 4, !tbaa !11
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %73

69:                                               ; preds = %66
  %70 = load i32, ptr %5, align 4, !tbaa !11
  %71 = call ptr @curl_easy_strerror(i32 noundef %70)
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %71)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %76

73:                                               ; preds = %66
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %74)
  store i32 0, ptr %8, align 4
  br label %76

76:                                               ; preds = %73, %69, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %77 = load i32, ptr %8, align 4
  switch i32 %77, label %121 [
    i32 0, label %78
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = load i64, ptr %4, align 8, !tbaa !9
  %82 = icmp ult i64 %80, %81
  br i1 %82, label %41, label %83, !llvm.loop !15

83:                                               ; preds = %79
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %85

85:                                               ; preds = %118, %83
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  br label %86

86:                                               ; preds = %99, %85
  store i64 0, ptr %11, align 8, !tbaa !9
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %89 = call i32 @curl_easy_recv(ptr noundef %87, ptr noundef %88, i64 noundef 1024, ptr noundef %11)
  store i32 %89, ptr %5, align 4, !tbaa !11
  %90 = load i32, ptr %5, align 4, !tbaa !11
  %91 = icmp eq i32 %90, 81
  br i1 %91, label %92, label %98

92:                                               ; preds = %86
  %93 = load i32, ptr %6, align 4, !tbaa !11
  %94 = call i32 @wait_on_socket(i32 noundef %93, i32 noundef 1, i64 noundef 60000)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %98, label %96

96:                                               ; preds = %92
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %116

98:                                               ; preds = %92, %86
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %5, align 4, !tbaa !11
  %101 = icmp eq i32 %100, 81
  br i1 %101, label %86, label %102, !llvm.loop !16

102:                                              ; preds = %99
  %103 = load i32, ptr %5, align 4, !tbaa !11
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %109

105:                                              ; preds = %102
  %106 = load i32, ptr %5, align 4, !tbaa !11
  %107 = call ptr @curl_easy_strerror(i32 noundef %106)
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %107)
  store i32 6, ptr %8, align 4
  br label %116

109:                                              ; preds = %102
  %110 = load i64, ptr %11, align 8, !tbaa !9
  %111 = icmp eq i64 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  store i32 6, ptr %8, align 4
  br label %116

113:                                              ; preds = %109
  %114 = load i64, ptr %11, align 8, !tbaa !9
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %114)
  store i32 0, ptr %8, align 4
  br label %116

116:                                              ; preds = %113, %112, %105, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #4
  %117 = load i32, ptr %8, align 4
  switch i32 %117, label %121 [
    i32 0, label %118
    i32 6, label %119
  ]

118:                                              ; preds = %116
  br label %85

119:                                              ; preds = %116
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  call void @curl_easy_cleanup(ptr noundef %120)
  store i32 0, ptr %8, align 4
  br label %121

121:                                              ; preds = %119, %116, %76, %35, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %122 = load i32, ptr %8, align 4
  switch i32 %122, label %125 [
    i32 0, label %123
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123, %0
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %125

125:                                              ; preds = %124, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %126 = load i32, ptr %1, align 4
  ret i32 %126
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

declare ptr @curl_easy_init() #3

declare i32 @curl_easy_setopt(ptr noundef, i32 noundef, ...) #3

declare i32 @curl_easy_perform(ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

declare ptr @curl_easy_strerror(i32 noundef) #3

declare i32 @curl_easy_getinfo(ptr noundef, i32 noundef, ...) #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @wait_on_socket(i32 noundef, i32 noundef, i64 noundef) #0

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

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

declare void @curl_easy_cleanup(ptr noundef) #3

attributes #0 = { 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(read) "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 }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca [1024 x i8], align 16
  %4 = alloca i64, align 8
  %5 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str) #5
  %6 = tail call ptr @curl_easy_init() #6
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %56, label %7

7:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %8 = tail call i32 (ptr, i32, ...) @curl_easy_setopt(ptr noundef nonnull %6, i32 noundef 10002, ptr noundef nonnull @.str.1) #6
  %9 = tail call i32 (ptr, i32, ...) @curl_easy_setopt(ptr noundef nonnull %6, i32 noundef 141, i64 noundef 1) #6
  %10 = tail call i32 @curl_easy_perform(ptr noundef nonnull %6) #6
  %.not44 = icmp eq i32 %10, 0
  br i1 %.not44, label %14, label %11

11:                                               ; preds = %7
  %12 = tail call ptr @curl_easy_strerror(i32 noundef %10) #6
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %12)
  br label %.thread63

14:                                               ; preds = %7
  %15 = call i32 (ptr, i32, ...) @curl_easy_getinfo(ptr noundef nonnull %6, i32 noundef 5242924, ptr noundef nonnull %1) #6
  %.not45 = icmp eq i32 %15, 0
  br i1 %.not45, label %19, label %16

16:                                               ; preds = %14
  %17 = call ptr @curl_easy_strerror(i32 noundef %15) #6
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %17)
  br label %.thread63

19:                                               ; preds = %14
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %21

21:                                               ; preds = %36, %19
  %.032 = phi i64 [ 0, %19 ], [ %27, %36 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  br label %22

22:                                               ; preds = %28, %21
  %.133 = phi i64 [ %.032, %21 ], [ %27, %28 ]
  store i64 0, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr @.str, i64 %.133
  %24 = sub i64 %5, %.133
  %25 = call i32 @curl_easy_send(ptr noundef nonnull %6, ptr noundef nonnull %23, i64 noundef %24, ptr noundef nonnull %2) #6
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %27 = add i64 %26, %.133
  switch i32 %25, label %33 [
    i32 81, label %28
    i32 0, label %36
  ]

28:                                               ; preds = %22
  %29 = load i32, ptr %1, align 4, !tbaa !9
  %30 = call i32 @wait_on_socket(i32 noundef %29, i32 noundef 0, i64 noundef 60000)
  %.not46 = icmp eq i32 %30, 0
  br i1 %.not46, label %31, label %22, !llvm.loop !11

31:                                               ; preds = %28
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %.thread

33:                                               ; preds = %22
  %34 = call ptr @curl_easy_strerror(i32 noundef %25) #6
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %34)
  br label %.thread

.thread:                                          ; preds = %33, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.thread63

36:                                               ; preds = %22
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %38 = icmp ult i64 %27, %5
  br i1 %38, label %21, label %39, !llvm.loop !13

39:                                               ; preds = %36
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %41

41:                                               ; preds = %54, %39
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  br label %42

42:                                               ; preds = %44, %41
  store i64 0, ptr %4, align 8, !tbaa !5
  %43 = call i32 @curl_easy_recv(ptr noundef nonnull %6, ptr noundef nonnull %3, i64 noundef 1024, ptr noundef nonnull %4) #6
  switch i32 %43, label %48 [
    i32 81, label %44
    i32 0, label %51
  ]

44:                                               ; preds = %42
  %45 = load i32, ptr %1, align 4, !tbaa !9
  %46 = call i32 @wait_on_socket(i32 noundef %45, i32 noundef 1, i64 noundef 60000)
  %.not48 = icmp eq i32 %46, 0
  br i1 %.not48, label %.thread59, label %42, !llvm.loop !14

.thread59:                                        ; preds = %44
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #6
  br label %.thread63

48:                                               ; preds = %42
  %49 = call ptr @curl_easy_strerror(i32 noundef %43) #6
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %49)
  br label %.loopexit

51:                                               ; preds = %42
  %52 = load i64, ptr %4, align 8, !tbaa !5
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %.loopexit, label %54

54:                                               ; preds = %51
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef %52)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #6
  br label %41

.thread63:                                        ; preds = %11, %16, %.thread, %.thread59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  br label %56

.loopexit:                                        ; preds = %51, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #6
  call void @curl_easy_cleanup(ptr noundef nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  br label %56

56:                                               ; preds = %0, %.loopexit, %.thread63
  %.5 = phi i32 [ 1, %.thread63 ], [ 0, %.loopexit ], [ 0, %0 ]
  ret i32 %.5
}

; 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 nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

declare ptr @curl_easy_init() local_unnamed_addr #3

declare i32 @curl_easy_setopt(ptr noundef, i32 noundef, ...) local_unnamed_addr #3

declare i32 @curl_easy_perform(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare ptr @curl_easy_strerror(i32 noundef) local_unnamed_addr #3

declare i32 @curl_easy_getinfo(ptr noundef, i32 noundef, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @wait_on_socket(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

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

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

declare void @curl_easy_cleanup(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { nounwind willreturn memory(read) }
attributes #6 = { 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 = !{!"long", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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