; LLVM IR from pandax381/microps :: arp (arp_resolve)

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

%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.net_iface = type { ptr, ptr, i32 }
%struct.net_device = type { ptr, ptr, i32, [16 x i8], i16, i16, i16, i16, i16, [16 x i8], %union.anon, ptr, ptr }
%union.anon = type { [16 x i8] }
%struct.arp_cache = type { i8, i32, [6 x i8], %struct.timeval }
%struct.timeval = type { i64, i64 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.arp_resolve = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@mutex = external hidden global %union.pthread_mutex_t, align 8
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @arp_resolve(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [16 x i8], align 16
  %10 = alloca [18 x i8], align 16
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 18, ptr %10) #6
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.net_iface, ptr %12, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = getelementptr inbounds %struct.net_device, ptr %14, i32 0, i32 4
  %16 = load i16, ptr %15, align 4, !tbaa !13
  %17 = zext i16 %16 to i32
  %18 = icmp ne i32 %17, 2
  br i1 %18, label %19, label %22

19:                                               ; preds = %3
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %20, i32 noundef 68, ptr noundef @.str, i32 noundef 271, ptr noundef @__func__.arp_resolve, ptr noundef @.str.1)
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %87

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.net_iface, ptr %23, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %26 = icmp ne i32 %25, 1
  br i1 %26, label %27, label %30

27:                                               ; preds = %22
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %28, i32 noundef 68, ptr noundef @.str, i32 noundef 275, ptr noundef @__func__.arp_resolve, ptr noundef @.str.2)
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %87

30:                                               ; preds = %22
  %31 = call i32 @mutex_lock(ptr noundef @mutex)
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = call ptr @arp_cache_select(i32 noundef %32)
  store ptr %33, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %62, label %36

36:                                               ; preds = %30
  %37 = call ptr @arp_cache_alloc()
  store ptr %37, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %44, label %40

40:                                               ; preds = %36
  %41 = call i32 @mutex_unlock(ptr noundef @mutex)
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %42, i32 noundef 69, ptr noundef @.str, i32 noundef 284, ptr noundef @__func__.arp_resolve, ptr noundef @.str.3)
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %87

44:                                               ; preds = %36
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.arp_cache, ptr %45, i32 0, i32 0
  store i8 1, ptr %46, align 8, !tbaa !17
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.arp_cache, ptr %48, i32 0, i32 1
  store i32 %47, ptr %49, align 4, !tbaa !21
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.arp_cache, ptr %50, i32 0, i32 3
  %52 = call i32 @gettimeofday(ptr noundef %51, ptr noundef null) #6
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = call i32 @arp_request(ptr noundef %53, i32 noundef %54)
  %56 = call i32 @mutex_unlock(ptr noundef @mutex)
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %60 = call ptr @ip_addr_ntop(i32 noundef %58, ptr noundef %59, i64 noundef 16)
  %61 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %57, i32 noundef 68, ptr noundef @.str, i32 noundef 292, ptr noundef @__func__.arp_resolve, ptr noundef @.str.4, ptr noundef %60)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %87

62:                                               ; preds = %30
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.arp_cache, ptr %63, i32 0, i32 0
  %65 = load i8, ptr %64, align 8, !tbaa !17
  %66 = zext i8 %65 to i32
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %73

68:                                               ; preds = %62
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = call i32 @arp_request(ptr noundef %69, i32 noundef %70)
  %72 = call i32 @mutex_unlock(ptr noundef @mutex)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %87

73:                                               ; preds = %62
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.arp_cache, ptr %75, i32 0, i32 2
  %77 = getelementptr inbounds [6 x i8], ptr %76, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %74, ptr align 8 %77, i64 6, i1 false)
  %78 = call i32 @mutex_unlock(ptr noundef @mutex)
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %82 = call ptr @ip_addr_ntop(i32 noundef %80, ptr noundef %81, i64 noundef 16)
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds [18 x i8], ptr %10, i64 0, i64 0
  %85 = call ptr @ether_addr_ntop(ptr noundef %83, ptr noundef %84, i64 noundef 18)
  %86 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %79, i32 noundef 68, ptr noundef @.str, i32 noundef 303, ptr noundef @__func__.arp_resolve, ptr noundef @.str.5, ptr noundef %82, ptr noundef %85)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %87

87:                                               ; preds = %73, %68, %44, %40, %27, %19
  call void @llvm.lifetime.end.p0(i64 18, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %88 = load i32, ptr %4, align 4
  ret i32 %88
}

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

declare i32 @lprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_lock(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @arp_cache_select(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @arp_cache_alloc() #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_unlock(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #4

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

declare ptr @ip_addr_ntop(i32 noundef, ptr noundef, i64 noundef) #2

; 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) #5

declare ptr @ether_addr_ntop(ptr noundef, ptr noundef, i64 noundef) #2

; 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 = { "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 = { inlinehint 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 #4 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !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 = !{!12, !6, i64 8}
!12 = !{!"net_iface", !6, i64 0, !6, i64 8, !10, i64 16}
!13 = !{!14, !15, i64 36}
!14 = !{!"net_device", !6, i64 0, !6, i64 8, !10, i64 16, !7, i64 20, !15, i64 36, !15, i64 38, !15, i64 40, !15, i64 42, !15, i64 44, !7, i64 46, !7, i64 62, !6, i64 80, !6, i64 88}
!15 = !{!"short", !7, i64 0}
!16 = !{!12, !10, i64 16}
!17 = !{!18, !7, i64 0}
!18 = !{!"arp_cache", !7, i64 0, !10, i64 4, !7, i64 8, !19, i64 16}
!19 = !{!"timeval", !20, i64 0, !20, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!18, !10, i64 4}


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

%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.arp_resolve = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@mutex = external hidden global %union.pthread_mutex_t, align 8
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @arp_resolve(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca [16 x i8], align 16
  %5 = alloca [18 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 18, ptr nonnull %5) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 36
  %9 = load i16, ptr %8, align 4, !tbaa !11
  %.not = icmp eq i16 %9, 2
  br i1 %.not, label %13, label %10

10:                                               ; preds = %3
  %11 = load ptr, ptr @stderr, align 8, !tbaa !14
  %12 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %11, i32 noundef 68, ptr noundef nonnull @.str, i32 noundef 271, ptr noundef nonnull @__func__.arp_resolve, ptr noundef nonnull @.str.1) #6
  br label %50

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i32, ptr %14, align 8, !tbaa !15
  %.not21 = icmp eq i32 %15, 1
  br i1 %.not21, label %19, label %16

16:                                               ; preds = %13
  %17 = load ptr, ptr @stderr, align 8, !tbaa !14
  %18 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %17, i32 noundef 68, ptr noundef nonnull @.str, i32 noundef 275, ptr noundef nonnull @__func__.arp_resolve, ptr noundef nonnull @.str.2) #6
  br label %50

19:                                               ; preds = %13
  %20 = tail call i32 @mutex_lock(ptr noundef nonnull @mutex)
  %21 = tail call ptr @arp_cache_select(i32 noundef %1)
  %.not22 = icmp eq ptr %21, null
  br i1 %.not22, label %22, label %37

22:                                               ; preds = %19
  %23 = tail call ptr @arp_cache_alloc()
  %.not23 = icmp eq ptr %23, null
  br i1 %.not23, label %24, label %28

24:                                               ; preds = %22
  %25 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  %26 = load ptr, ptr @stderr, align 8, !tbaa !14
  %27 = tail call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %26, i32 noundef 69, ptr noundef nonnull @.str, i32 noundef 284, ptr noundef nonnull @__func__.arp_resolve, ptr noundef nonnull @.str.3) #6
  br label %50

28:                                               ; preds = %22
  store i8 1, ptr %23, align 8, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %23, i64 4
  store i32 %1, ptr %29, align 4, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %23, i64 16
  %31 = tail call i32 @gettimeofday(ptr noundef nonnull %30, ptr noundef null) #6
  %32 = tail call i32 @arp_request(ptr noundef nonnull %0, i32 noundef %1)
  %33 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  %34 = load ptr, ptr @stderr, align 8, !tbaa !14
  %35 = call ptr @ip_addr_ntop(i32 noundef %1, ptr noundef nonnull %4, i64 noundef 16) #6
  %36 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %34, i32 noundef 68, ptr noundef nonnull @.str, i32 noundef 292, ptr noundef nonnull @__func__.arp_resolve, ptr noundef nonnull @.str.4, ptr noundef %35) #6
  br label %50

37:                                               ; preds = %19
  %38 = load i8, ptr %21, align 8, !tbaa !16
  %39 = icmp eq i8 %38, 1
  br i1 %39, label %40, label %43

40:                                               ; preds = %37
  %41 = tail call i32 @arp_request(ptr noundef nonnull %0, i32 noundef %1)
  %42 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  br label %50

43:                                               ; preds = %37
  %44 = getelementptr inbounds i8, ptr %21, i64 8
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %2, ptr noundef nonnull align 8 dereferenceable(6) %44, i64 6, i1 false)
  %45 = tail call i32 @mutex_unlock(ptr noundef nonnull @mutex)
  %46 = load ptr, ptr @stderr, align 8, !tbaa !14
  %47 = call ptr @ip_addr_ntop(i32 noundef %1, ptr noundef nonnull %4, i64 noundef 16) #6
  %48 = call ptr @ether_addr_ntop(ptr noundef %2, ptr noundef nonnull %5, i64 noundef 18) #6
  %49 = call i32 (ptr, i32, ptr, i32, ptr, ptr, ...) @lprintf(ptr noundef %46, i32 noundef 68, ptr noundef nonnull @.str, i32 noundef 303, ptr noundef nonnull @__func__.arp_resolve, ptr noundef nonnull @.str.5, ptr noundef %47, ptr noundef %48) #6
  br label %50

50:                                               ; preds = %43, %40, %28, %24, %16, %10
  %.0 = phi i32 [ -1, %10 ], [ -1, %16 ], [ 0, %40 ], [ 1, %43 ], [ 0, %28 ], [ -1, %24 ]
  call void @llvm.lifetime.end.p0(i64 18, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  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

declare i32 @lprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_lock(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden ptr @arp_cache_select(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @arp_cache_alloc() local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mutex_unlock(ptr noundef) local_unnamed_addr #3

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

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

declare ptr @ip_addr_ntop(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; 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) #5

declare ptr @ether_addr_ntop(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; 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 = { "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 = { inlinehint 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 8}
!6 = !{!"net_iface", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 36}
!12 = !{!"net_device", !7, i64 0, !7, i64 8, !10, i64 16, !8, i64 20, !13, i64 36, !13, i64 38, !13, i64 40, !13, i64 42, !13, i64 44, !8, i64 46, !8, i64 62, !7, i64 80, !7, i64 88}
!13 = !{!"short", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !10, i64 16}
!16 = !{!17, !8, i64 0}
!17 = !{!"arp_cache", !8, i64 0, !10, i64 4, !8, i64 8, !18, i64 16}
!18 = !{!"timeval", !19, i64 0, !19, i64 8}
!19 = !{!"long", !8, i64 0}
!20 = !{!17, !10, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass