; LLVM IR from godzilla-foundation/godzilla-community :: core/deps/nanomsg-1.1.5/src/transports/utils (literal)

; 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.in_addr = type { i32 }
%struct.in6_addr = type { %union.anon }
%union.anon = type { [4 x i32] }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%struct.sockaddr_in6 = type { i16, i16, i32, %struct.in6_addr, i32 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [127 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @nn_literal_resolve(ptr noundef %0, i64 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca [46 x i8], align 16
  %14 = alloca %struct.in_addr, align 4
  %15 = alloca %struct.in6_addr, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !11
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 46, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %17 = load i64, ptr %8, align 8, !tbaa !9
  %18 = icmp ugt i64 %17, 0
  br i1 %18, label %19, label %49

19:                                               ; preds = %5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 0
  %22 = load i8, ptr %21, align 1, !tbaa !13
  %23 = sext i8 %22 to i32
  %24 = icmp eq i32 %23, 91
  br i1 %24, label %25, label %49

25:                                               ; preds = %19
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load i64, ptr %8, align 8, !tbaa !9
  %28 = sub i64 %27, 1
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !13
  %31 = sext i8 %30 to i32
  %32 = icmp ne i32 %31, 93
  br i1 %32, label %33, label %34

33:                                               ; preds = %25
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %145

34:                                               ; preds = %25
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = sub i64 %35, 2
  %37 = add i64 %36, 1
  %38 = icmp ugt i64 %37, 46
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %145

40:                                               ; preds = %34
  %41 = getelementptr inbounds [46 x i8], ptr %13, i64 0, i64 0
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 1
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = sub i64 %44, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 1 %43, i64 %45, i1 false)
  %46 = load i64, ptr %8, align 8, !tbaa !9
  %47 = sub i64 %46, 2
  %48 = getelementptr inbounds [46 x i8], ptr %13, i64 0, i64 %47
  store i8 0, ptr %48, align 1, !tbaa !13
  br label %60

49:                                               ; preds = %19, %5
  %50 = load i64, ptr %8, align 8, !tbaa !9
  %51 = add i64 %50, 1
  %52 = icmp ugt i64 %51, 46
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %145

54:                                               ; preds = %49
  %55 = getelementptr inbounds [46 x i8], ptr %13, i64 0, i64 0
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i64, ptr %8, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 1 %56, i64 %57, i1 false)
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = getelementptr inbounds [46 x i8], ptr %13, i64 0, i64 %58
  store i8 0, ptr %59, align 1, !tbaa !13
  br label %60

60:                                               ; preds = %54, %40
  %61 = load i32, ptr %9, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %104, label %63

63:                                               ; preds = %60
  %64 = getelementptr inbounds [46 x i8], ptr %13, i64 0, i64 0
  %65 = call i32 @inet_pton(i32 noundef 10, ptr noundef %64, ptr noundef %15) #8
  store i32 %65, ptr %12, align 4, !tbaa !11
  %66 = load i32, ptr %12, align 4, !tbaa !11
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %82

68:                                               ; preds = %63
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.sockaddr_storage, ptr %72, i32 0, i32 0
  store i16 10, ptr %73, align 8, !tbaa !14
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.sockaddr_in6, ptr %74, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %15, i64 16, i1 false), !tbaa.struct !17
  br label %76

76:                                               ; preds = %71, %68
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %81

79:                                               ; preds = %76
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 28, ptr %80, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %79, %76
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %145

82:                                               ; preds = %63
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %12, align 4, !tbaa !11
  %85 = icmp eq i32 %84, 0
  %86 = xor i1 %85, true
  %87 = zext i1 %86 to i32
  %88 = sext i32 %87 to i64
  %89 = call i64 @llvm.expect.i64(i64 %88, i64 0)
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %91, label %101

91:                                               ; preds = %83
  call void @nn_backtrace_print()
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = call ptr @__errno_location() #9
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = call ptr @nn_err_strerror(i32 noundef %94)
  %96 = call ptr @__errno_location() #9
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str, ptr noundef %95, i32 noundef %97, ptr noundef @.str.1, i32 noundef 74) #8
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = call i32 @fflush(ptr noundef %99)
  call void @nn_err_abort() #10
  unreachable

101:                                              ; preds = %83
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103, %60
  %105 = getelementptr inbounds [46 x i8], ptr %13, i64 0, i64 0
  %106 = call i32 @inet_pton(i32 noundef 2, ptr noundef %105, ptr noundef %14) #8
  store i32 %106, ptr %12, align 4, !tbaa !11
  %107 = load i32, ptr %12, align 4, !tbaa !11
  %108 = icmp eq i32 %107, 1
  br i1 %108, label %109, label %123

109:                                              ; preds = %104
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %117

112:                                              ; preds = %109
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.sockaddr_storage, ptr %113, i32 0, i32 0
  store i16 2, ptr %114, align 8, !tbaa !14
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.sockaddr_in, ptr %115, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 4 %14, i64 4, i1 false), !tbaa.struct !18
  br label %117

117:                                              ; preds = %112, %109
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 16, ptr %121, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %120, %117
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %145

123:                                              ; preds = %104
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %12, align 4, !tbaa !11
  %126 = icmp eq i32 %125, 0
  %127 = xor i1 %126, true
  %128 = zext i1 %127 to i32
  %129 = sext i32 %128 to i64
  %130 = call i64 @llvm.expect.i64(i64 %129, i64 0)
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %142

132:                                              ; preds = %124
  call void @nn_backtrace_print()
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call ptr @__errno_location() #9
  %135 = load i32, ptr %134, align 4, !tbaa !11
  %136 = call ptr @nn_err_strerror(i32 noundef %135)
  %137 = call ptr @__errno_location() #9
  %138 = load i32, ptr %137, align 4, !tbaa !11
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str, ptr noundef %136, i32 noundef %138, ptr noundef @.str.1, i32 noundef 88) #8
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = call i32 @fflush(ptr noundef %140)
  call void @nn_err_abort() #10
  unreachable

142:                                              ; preds = %124
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  store i32 -22, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %145

145:                                              ; preds = %144, %122, %81, %53, %39, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 46, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %146 = load i32, ptr %6, align 4
  ret i32 %146
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

declare void @nn_backtrace_print() #5

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare ptr @nn_err_strerror(i32 noundef) #5

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

declare i32 @fflush(ptr noundef) #5

; Function Attrs: noreturn
declare void @nn_err_abort() #7

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { "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 = { 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 #7 = { noreturn "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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn }

!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 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"sockaddr_storage", !16, i64 0, !7, i64 2, !10, i64 120}
!16 = !{!"short", !7, i64 0}
!17 = !{i64 0, i64 16, !13}
!18 = !{i64 0, i64 4, !11}


; 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.in_addr = type { i32 }
%struct.in6_addr = type { %union.anon }
%union.anon = type { [4 x i32] }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [127 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -22, 1) i32 @nn_literal_resolve(ptr nocapture noundef readonly %0, i64 noundef %1, i32 noundef %2, ptr noundef writeonly %3, ptr noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca [46 x i8], align 16
  %7 = alloca %struct.in_addr, align 4
  %8 = alloca %struct.in6_addr, align 4
  call void @llvm.lifetime.start.p0(i64 46, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %.thread, label %9

9:                                                ; preds = %5
  %10 = load i8, ptr %0, align 1, !tbaa !5
  %11 = icmp eq i8 %10, 91
  br i1 %11, label %12, label %21

12:                                               ; preds = %9
  %13 = getelementptr i8, ptr %0, i64 %1
  %14 = getelementptr i8, ptr %13, i64 -1
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %.not33 = icmp ne i8 %15, 93
  %16 = add i64 %1, -48
  %17 = icmp ult i64 %16, -47
  %or.cond = or i1 %17, %.not33
  br i1 %or.cond, label %57, label %18

18:                                               ; preds = %12
  %19 = add nsw i64 %1, -2
  %20 = getelementptr inbounds i8, ptr %0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %6, ptr nonnull align 1 %20, i64 %19, i1 false)
  br label %24

21:                                               ; preds = %9
  %22 = add i64 %1, -46
  %23 = icmp ult i64 %22, -47
  br i1 %23, label %57, label %.thread

.thread:                                          ; preds = %5, %21
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %6, ptr align 1 %0, i64 %1, i1 false)
  br label %24

24:                                               ; preds = %.thread, %18
  %.sink42 = phi i64 [ %1, %.thread ], [ %19, %18 ]
  %25 = getelementptr inbounds [46 x i8], ptr %6, i64 0, i64 %.sink42
  store i8 0, ptr %25, align 1, !tbaa !5
  %.not34 = icmp eq i32 %2, 0
  br i1 %.not34, label %26, label %41

26:                                               ; preds = %24
  %27 = call i32 @inet_pton(i32 noundef 10, ptr noundef nonnull %6, ptr noundef nonnull %8) #8
  switch i32 %27, label %32 [
    i32 1, label %28
    i32 0, label %41
  ], !prof !8

28:                                               ; preds = %26
  %.not36 = icmp eq ptr %3, null
  br i1 %.not36, label %31, label %29

29:                                               ; preds = %28
  store i16 10, ptr %3, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !13
  br label %31

31:                                               ; preds = %29, %28
  %.not37 = icmp eq ptr %4, null
  br i1 %.not37, label %57, label %.sink.split

32:                                               ; preds = %26
  call void @nn_backtrace_print() #8
  %33 = load ptr, ptr @stderr, align 8, !tbaa !14
  %34 = tail call ptr @__errno_location() #9
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = call ptr @nn_err_strerror(i32 noundef %35) #8
  %37 = load i32, ptr %34, align 4, !tbaa !16
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str, ptr noundef %36, i32 noundef %37, ptr noundef nonnull @.str.1, i32 noundef 74) #10
  %39 = load ptr, ptr @stderr, align 8, !tbaa !14
  %40 = call i32 @fflush(ptr noundef %39)
  call void @nn_err_abort() #11
  unreachable

41:                                               ; preds = %26, %24
  %42 = call i32 @inet_pton(i32 noundef 2, ptr noundef nonnull %6, ptr noundef nonnull %7) #8
  switch i32 %42, label %48 [
    i32 1, label %43
    i32 0, label %57
  ], !prof !8

43:                                               ; preds = %41
  %.not39 = icmp eq ptr %3, null
  br i1 %.not39, label %47, label %44

44:                                               ; preds = %43
  store i16 2, ptr %3, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %3, i64 4
  %46 = load i32, ptr %7, align 4, !tbaa !16
  store i32 %46, ptr %45, align 4, !tbaa !16
  br label %47

47:                                               ; preds = %44, %43
  %.not40 = icmp eq ptr %4, null
  br i1 %.not40, label %57, label %.sink.split

48:                                               ; preds = %41
  call void @nn_backtrace_print() #8
  %49 = load ptr, ptr @stderr, align 8, !tbaa !14
  %50 = tail call ptr @__errno_location() #9
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = call ptr @nn_err_strerror(i32 noundef %51) #8
  %53 = load i32, ptr %50, align 4, !tbaa !16
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str, ptr noundef %52, i32 noundef %53, ptr noundef nonnull @.str.1, i32 noundef 88) #10
  %55 = load ptr, ptr @stderr, align 8, !tbaa !14
  %56 = call i32 @fflush(ptr noundef %55)
  call void @nn_err_abort() #11
  unreachable

.sink.split:                                      ; preds = %47, %31
  %.sink = phi i64 [ 28, %31 ], [ 16, %47 ]
  store i64 %.sink, ptr %4, align 8, !tbaa !18
  br label %57

57:                                               ; preds = %.sink.split, %41, %47, %31, %21, %12
  %.0 = phi i32 [ -22, %12 ], [ -22, %21 ], [ 0, %31 ], [ 0, %47 ], [ -22, %41 ], [ 0, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 46, ptr nonnull %6) #8
  ret i32 %.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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @nn_backtrace_print() local_unnamed_addr #4

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

declare ptr @nn_err_strerror(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: noreturn
declare void @nn_err_abort() local_unnamed_addr #7

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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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 #6 = { 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 #7 = { noreturn "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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { cold nounwind }
attributes #11 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!"branch_weights", i32 1, i32 2001, i32 2000}
!9 = !{!10, !11, i64 0}
!10 = !{!"sockaddr_storage", !11, i64 0, !6, i64 2, !12, i64 120}
!11 = !{!"short", !6, i64 0}
!12 = !{!"long", !6, i64 0}
!13 = !{i64 0, i64 16, !5}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !6, i64 0}
!18 = !{!12, !12, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass