; LLVM IR from whoiswelliton/Computer_Engineering_UTFPR-PB :: Embedded_Systems/TIVA Connected TM4C1294XL Projects/01 - lwIP_HTTPServer_on_TIVA (listen)

; 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.api_msg = type { ptr, i8, %union.anon }
%union.anon = type { %struct.anon.2 }
%struct.anon.2 = type { ptr, i16, i64, i64, i64, i8, i32 }
%struct.netconn = type { i32, i32, %union.anon.5, i8, ptr, ptr, ptr, i32, i32, i32, i8, ptr, ptr }
%union.anon.5 = type { ptr }
%struct.tcp_pcb = type { %struct.ip4_addr, %struct.ip4_addr, i8, i8, i8, i8, ptr, ptr, i32, i8, i16, i16, i16, i8, i8, i8, i32, i32, i16, i16, i32, i16, i16, i32, i32, i16, i16, i16, i8, i8, i32, i16, i16, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i8, i8, i8, i8 }
%struct.ip4_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

declare signext i8 @sys_mbox_new(ptr noundef, i32 noundef) #1

declare void @sys_mbox_free(ptr noundef) #1

declare void @sys_mbox_set_invalid(ptr noundef) #1

declare i32 @sys_mbox_valid(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @lwip_netconn_do_listen(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %7, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.api_msg, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds %struct.netconn, ptr %10, i32 0, i32 2
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %129

14:                                               ; preds = %1
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.api_msg, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.netconn, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %20 = and i32 %19, 240
  %21 = icmp eq i32 %20, 16
  br i1 %21, label %22, label %127

22:                                               ; preds = %14
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.api_msg, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.netconn, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %116

29:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.api_msg, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.netconn, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct.tcp_pcb, ptr %34, i32 0, i32 8
  %36 = load i32, ptr %35, align 8, !tbaa !16
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %29
  store i8 -6, ptr %4, align 1, !tbaa !11
  br label %115

39:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  store i8 -1, ptr %6, align 1, !tbaa !11
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.api_msg, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.netconn, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = load i8, ptr %6, align 1, !tbaa !11
  %46 = call ptr @tcp_listen_with_backlog_and_err(ptr noundef %44, i8 noundef zeroext %45, ptr noundef %4)
  store ptr %46, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %39
  br label %114

50:                                               ; preds = %39
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.api_msg, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.netconn, ptr %53, i32 0, i32 5
  %55 = call i32 @sys_mbox_valid(ptr noundef %54)
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %66

57:                                               ; preds = %50
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.api_msg, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.netconn, ptr %60, i32 0, i32 5
  call void @sys_mbox_free(ptr noundef %61)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.api_msg, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.netconn, ptr %64, i32 0, i32 5
  call void @sys_mbox_set_invalid(ptr noundef %65)
  br label %66

66:                                               ; preds = %57, %50
  store i8 0, ptr %4, align 1, !tbaa !11
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.api_msg, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.netconn, ptr %69, i32 0, i32 6
  %71 = call i32 @sys_mbox_valid(ptr noundef %70)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %79, label %73

73:                                               ; preds = %66
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.api_msg, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.netconn, ptr %76, i32 0, i32 6
  %78 = call signext i8 @sys_mbox_new(ptr noundef %77, i32 noundef 6)
  store i8 %78, ptr %4, align 1, !tbaa !11
  br label %79

79:                                               ; preds = %73, %66
  %80 = load i8, ptr %4, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %106

83:                                               ; preds = %79
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.api_msg, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.netconn, ptr %86, i32 0, i32 1
  store i32 2, ptr %87, align 4, !tbaa !15
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.api_msg, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.netconn, ptr %91, i32 0, i32 2
  store ptr %88, ptr %92, align 8, !tbaa !11
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.api_msg, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.netconn, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.api_msg, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  call void @tcp_arg(ptr noundef %97, ptr noundef %100)
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.api_msg, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.netconn, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  call void @tcp_accept(ptr noundef %105, ptr noundef @accept_function)
  br label %113

106:                                              ; preds = %79
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call signext i8 @tcp_close(ptr noundef %107)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.api_msg, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.netconn, ptr %111, i32 0, i32 2
  store ptr null, ptr %112, align 8, !tbaa !11
  br label %113

113:                                              ; preds = %106, %83
  br label %114

114:                                              ; preds = %113, %49
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  br label %115

115:                                              ; preds = %114, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %126

116:                                              ; preds = %22
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.api_msg, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.netconn, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !15
  %122 = icmp eq i32 %121, 2
  br i1 %122, label %123, label %124

123:                                              ; preds = %116
  store i8 0, ptr %4, align 1, !tbaa !11
  br label %125

124:                                              ; preds = %116
  store i8 -11, ptr %4, align 1, !tbaa !11
  br label %125

125:                                              ; preds = %124, %123
  br label %126

126:                                              ; preds = %125, %115
  br label %128

127:                                              ; preds = %14
  store i8 -16, ptr %4, align 1, !tbaa !11
  br label %128

128:                                              ; preds = %127, %126
  br label %130

129:                                              ; preds = %1
  store i8 -11, ptr %4, align 1, !tbaa !11
  br label %130

130:                                              ; preds = %129, %128
  %131 = load i8, ptr %4, align 1, !tbaa !11
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.api_msg, ptr %132, i32 0, i32 1
  store i8 %131, ptr %133, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

declare ptr @tcp_listen_with_backlog_and_err(ptr noundef, i8 noundef zeroext, ptr noundef) #1

declare void @tcp_arg(ptr noundef, ptr noundef) #1

declare void @tcp_accept(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden signext i8 @accept_function(ptr noundef, ptr noundef, i8 noundef signext) #2

declare signext i8 @tcp_close(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"api_msg", !6, i64 0, !7, i64 8, !7, i64 16}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"netconn", !14, i64 0, !14, i64 4, !7, i64 8, !7, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !14, i64 56, !7, i64 60, !6, i64 64, !6, i64 72}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !14, i64 4}
!16 = !{!17, !14, i64 32}
!17 = !{!"tcp_pcb", !18, i64 0, !18, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !6, i64 16, !6, i64 24, !14, i64 32, !7, i64 36, !19, i64 38, !19, i64 40, !19, i64 42, !7, i64 44, !7, i64 45, !7, i64 46, !14, i64 48, !14, i64 52, !19, i64 56, !19, i64 58, !14, i64 60, !19, i64 64, !19, i64 66, !14, i64 68, !14, i64 72, !19, i64 76, !19, i64 78, !19, i64 80, !7, i64 82, !7, i64 83, !14, i64 84, !19, i64 88, !19, i64 90, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !19, i64 112, !19, i64 114, !19, i64 116, !19, i64 118, !19, i64 120, !19, i64 122, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !14, i64 200, !7, i64 204, !7, i64 205, !7, i64 206, !7, i64 207}
!18 = !{!"ip4_addr", !14, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!10, !7, i64 8}


; 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

declare signext i8 @sys_mbox_new(ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @sys_mbox_free(ptr noundef) local_unnamed_addr #1

declare void @sys_mbox_set_invalid(ptr noundef) local_unnamed_addr #1

declare i32 @sys_mbox_valid(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @lwip_netconn_do_listen(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #3
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !10
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %57, label %6

6:                                                ; preds = %1
  %7 = load i32, ptr %3, align 8, !tbaa !11
  %8 = and i32 %7, 240
  %9 = icmp eq i32 %8, 16
  br i1 %9, label %10, label %56

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %3, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !14
  switch i32 %12, label %55 [
    i32 0, label %13
    i32 2, label %54
  ]

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %5, i64 32
  %15 = load i32, ptr %14, align 8, !tbaa !15
  %.not24 = icmp eq i32 %15, 0
  br i1 %.not24, label %17, label %16

16:                                               ; preds = %13
  store i8 -6, ptr %2, align 1, !tbaa !10
  br label %58

17:                                               ; preds = %13
  %18 = call ptr @tcp_listen_with_backlog_and_err(ptr noundef nonnull %5, i8 noundef zeroext -1, ptr noundef nonnull %2) #3
  %19 = icmp eq ptr %18, null
  br i1 %19, label %58, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 32
  %23 = call i32 @sys_mbox_valid(ptr noundef nonnull %22) #3
  %.not25 = icmp eq i32 %23, 0
  br i1 %.not25, label %29, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 32
  call void @sys_mbox_free(ptr noundef nonnull %26) #3
  %27 = load ptr, ptr %0, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 32
  call void @sys_mbox_set_invalid(ptr noundef nonnull %28) #3
  br label %29

29:                                               ; preds = %24, %20
  store i8 0, ptr %2, align 1, !tbaa !10
  %30 = load ptr, ptr %0, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 40
  %32 = call i32 @sys_mbox_valid(ptr noundef nonnull %31) #3
  %.not26 = icmp eq i32 %32, 0
  br i1 %.not26, label %33, label %thread-pre-split

33:                                               ; preds = %29
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 40
  %36 = call signext i8 @sys_mbox_new(ptr noundef nonnull %35, i32 noundef 6) #3
  store i8 %36, ptr %2, align 1, !tbaa !10
  br label %37

thread-pre-split:                                 ; preds = %29
  %.pr = load i8, ptr %2, align 1, !tbaa !10
  br label %37

37:                                               ; preds = %thread-pre-split, %33
  %38 = phi i8 [ %.pr, %thread-pre-split ], [ %36, %33 ]
  %39 = icmp eq i8 %38, 0
  br i1 %39, label %40, label %50

40:                                               ; preds = %37
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 4
  store i32 2, ptr %42, align 4, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %41, i64 8
  store ptr %18, ptr %43, align 8, !tbaa !10
  %44 = load ptr, ptr %0, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !10
  call void @tcp_arg(ptr noundef %46, ptr noundef %44) #3
  %47 = load ptr, ptr %0, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !10
  call void @tcp_accept(ptr noundef %49, ptr noundef nonnull @accept_function) #3
  br label %58

50:                                               ; preds = %37
  %51 = call signext i8 @tcp_close(ptr noundef nonnull %18) #3
  %52 = load ptr, ptr %0, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  store ptr null, ptr %53, align 8, !tbaa !10
  br label %58

54:                                               ; preds = %10
  store i8 0, ptr %2, align 1, !tbaa !10
  br label %58

55:                                               ; preds = %10
  store i8 -11, ptr %2, align 1, !tbaa !10
  br label %58

56:                                               ; preds = %6
  store i8 -16, ptr %2, align 1, !tbaa !10
  br label %58

57:                                               ; preds = %1
  store i8 -11, ptr %2, align 1, !tbaa !10
  br label %58

58:                                               ; preds = %16, %40, %50, %17, %56, %54, %55, %57
  %59 = load i8, ptr %2, align 1, !tbaa !10
  %60 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 %59, ptr %60, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #3
  ret void
}

declare ptr @tcp_listen_with_backlog_and_err(ptr noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare void @tcp_arg(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @tcp_accept(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden signext i8 @accept_function(ptr noundef, ptr noundef, i8 noundef signext) #2

declare signext i8 @tcp_close(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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, !7, i64 0}
!6 = !{!"api_msg", !7, i64 0, !8, i64 8, !8, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"netconn", !13, i64 0, !13, i64 4, !8, i64 8, !8, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !8, i64 60, !7, i64 64, !7, i64 72}
!13 = !{!"int", !8, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!16, !13, i64 32}
!16 = !{!"tcp_pcb", !17, i64 0, !17, i64 4, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11, !7, i64 16, !7, i64 24, !13, i64 32, !8, i64 36, !18, i64 38, !18, i64 40, !18, i64 42, !8, i64 44, !8, i64 45, !8, i64 46, !13, i64 48, !13, i64 52, !18, i64 56, !18, i64 58, !13, i64 60, !18, i64 64, !18, i64 66, !13, i64 68, !13, i64 72, !18, i64 76, !18, i64 78, !18, i64 80, !8, i64 82, !8, i64 83, !13, i64 84, !18, i64 88, !18, i64 90, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !18, i64 112, !18, i64 114, !18, i64 116, !18, i64 118, !18, i64 120, !18, i64 122, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !13, i64 200, !8, i64 204, !8, i64 205, !8, i64 206, !8, i64 207}
!17 = !{!"ip4_addr", !13, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = !{!6, !8, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass