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

; 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.etharp_entry = type { ptr, %struct.ip4_addr, ptr, %struct.eth_addr, i16, i8 }
%struct.ip4_addr = type { i32 }
%struct.eth_addr = type { [6 x i8] }

@arp_table = external hidden global [10 x %struct.etharp_entry], align 16

; Function Attrs: nounwind uwtable
define dso_local void @etharp_tmr() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #2
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %3

3:                                                ; preds = %97, %0
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = icmp slt i32 %4, 10
  br i1 %5, label %6, label %100

6:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #2
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %8
  %10 = getelementptr inbounds %struct.etharp_entry, ptr %9, i32 0, i32 5
  %11 = load i8, ptr %10, align 8, !tbaa !9
  store i8 %11, ptr %2, align 1, !tbaa !15
  %12 = load i8, ptr %2, align 1, !tbaa !15
  %13 = zext i8 %12 to i32
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %96

15:                                               ; preds = %6
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.etharp_entry, ptr %18, i32 0, i32 4
  %20 = load i16, ptr %19, align 2, !tbaa !16
  %21 = add i16 %20, 1
  store i16 %21, ptr %19, align 2, !tbaa !16
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.etharp_entry, ptr %24, i32 0, i32 4
  %26 = load i16, ptr %25, align 2, !tbaa !16
  %27 = zext i16 %26 to i32
  %28 = icmp sge i32 %27, 300
  br i1 %28, label %45, label %29

29:                                               ; preds = %15
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.etharp_entry, ptr %32, i32 0, i32 5
  %34 = load i8, ptr %33, align 8, !tbaa !9
  %35 = zext i8 %34 to i32
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %47

37:                                               ; preds = %29
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %39
  %41 = getelementptr inbounds %struct.etharp_entry, ptr %40, i32 0, i32 4
  %42 = load i16, ptr %41, align 2, !tbaa !16
  %43 = zext i16 %42 to i32
  %44 = icmp sge i32 %43, 5
  br i1 %44, label %45, label %47

45:                                               ; preds = %37, %15
  %46 = load i32, ptr %1, align 4, !tbaa !5
  call void @etharp_free_entry(i32 noundef %46)
  br label %95

47:                                               ; preds = %37, %29
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %49
  %51 = getelementptr inbounds %struct.etharp_entry, ptr %50, i32 0, i32 5
  %52 = load i8, ptr %51, align 8, !tbaa !9
  %53 = zext i8 %52 to i32
  %54 = icmp eq i32 %53, 3
  br i1 %54, label %55, label %60

55:                                               ; preds = %47
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.etharp_entry, ptr %58, i32 0, i32 5
  store i8 4, ptr %59, align 8, !tbaa !9
  br label %94

60:                                               ; preds = %47
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.etharp_entry, ptr %63, i32 0, i32 5
  %65 = load i8, ptr %64, align 8, !tbaa !9
  %66 = zext i8 %65 to i32
  %67 = icmp eq i32 %66, 4
  br i1 %67, label %68, label %73

68:                                               ; preds = %60
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %70
  %72 = getelementptr inbounds %struct.etharp_entry, ptr %71, i32 0, i32 5
  store i8 2, ptr %72, align 8, !tbaa !9
  br label %93

73:                                               ; preds = %60
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.etharp_entry, ptr %76, i32 0, i32 5
  %78 = load i8, ptr %77, align 8, !tbaa !9
  %79 = zext i8 %78 to i32
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %92

81:                                               ; preds = %73
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %83
  %85 = getelementptr inbounds %struct.etharp_entry, ptr %84, i32 0, i32 2
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [10 x %struct.etharp_entry], ptr @arp_table, i64 0, i64 %88
  %90 = getelementptr inbounds %struct.etharp_entry, ptr %89, i32 0, i32 1
  %91 = call signext i8 @etharp_request(ptr noundef %86, ptr noundef %90)
  br label %92

92:                                               ; preds = %81, %73
  br label %93

93:                                               ; preds = %92, %68
  br label %94

94:                                               ; preds = %93, %55
  br label %95

95:                                               ; preds = %94, %45
  br label %96

96:                                               ; preds = %95, %6
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #2
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %1, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %1, align 4, !tbaa !5
  br label %3, !llvm.loop !18

100:                                              ; preds = %3
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #2
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @etharp_free_entry(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local signext i8 @etharp_request(ptr noundef, ptr noundef) #0

; 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 32}
!10 = !{!"etharp_entry", !11, i64 0, !12, i64 8, !11, i64 16, !13, i64 24, !14, i64 30, !7, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"ip4_addr", !6, i64 0}
!13 = !{!"eth_addr", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !14, i64 30}
!17 = !{!10, !11, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; 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.etharp_entry = type { ptr, %struct.ip4_addr, ptr, %struct.eth_addr, i16, i8 }
%struct.ip4_addr = type { i32 }
%struct.eth_addr = type { [6 x i8] }

@arp_table = external hidden global [10 x %struct.etharp_entry], align 16

; Function Attrs: nounwind uwtable
define dso_local void @etharp_tmr() local_unnamed_addr #0 {
  %1 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 32), align 16, !tbaa !5
  %.not = icmp eq i8 %1, 0
  br i1 %.not, label %16, label %2

2:                                                ; preds = %0
  %3 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 30), align 2, !tbaa !14
  %4 = add i16 %3, 1
  store i16 %4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 30), align 2, !tbaa !14
  %5 = icmp ugt i16 %4, 299
  br i1 %5, label %9, label %6

6:                                                ; preds = %2
  %7 = icmp eq i8 %1, 1
  %8 = icmp ugt i16 %4, 4
  %or.cond = and i1 %7, %8
  br i1 %or.cond, label %9, label %10

9:                                                ; preds = %6, %2
  tail call void @etharp_free_entry(i32 noundef 0)
  br label %16

10:                                               ; preds = %6
  switch i8 %1, label %16 [
    i8 3, label %11
    i8 4, label %12
    i8 1, label %13
  ]

11:                                               ; preds = %10
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 32), align 16, !tbaa !5
  br label %16

12:                                               ; preds = %10
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 32), align 16, !tbaa !5
  br label %16

13:                                               ; preds = %10
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 16), align 16, !tbaa !15
  %15 = tail call signext i8 @etharp_request(ptr noundef %14, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 8))
  br label %16

16:                                               ; preds = %10, %9, %12, %13, %11, %0
  %17 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 72), align 8, !tbaa !5
  %.not.1 = icmp eq i8 %17, 0
  br i1 %.not.1, label %32, label %18

18:                                               ; preds = %16
  %19 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 70), align 2, !tbaa !14
  %20 = add i16 %19, 1
  store i16 %20, ptr getelementptr inbounds (i8, ptr @arp_table, i64 70), align 2, !tbaa !14
  %21 = icmp ugt i16 %20, 299
  br i1 %21, label %31, label %22

22:                                               ; preds = %18
  %23 = icmp eq i8 %17, 1
  %24 = icmp ugt i16 %20, 4
  %or.cond.1 = and i1 %23, %24
  br i1 %or.cond.1, label %31, label %25

25:                                               ; preds = %22
  switch i8 %17, label %32 [
    i8 3, label %30
    i8 4, label %29
    i8 1, label %26
  ]

26:                                               ; preds = %25
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 56), align 8, !tbaa !15
  %28 = tail call signext i8 @etharp_request(ptr noundef %27, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 48))
  br label %32

29:                                               ; preds = %25
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 72), align 8, !tbaa !5
  br label %32

30:                                               ; preds = %25
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 72), align 8, !tbaa !5
  br label %32

31:                                               ; preds = %22, %18
  tail call void @etharp_free_entry(i32 noundef 1)
  br label %32

32:                                               ; preds = %31, %30, %29, %26, %25, %16
  %33 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 112), align 16, !tbaa !5
  %.not.2 = icmp eq i8 %33, 0
  br i1 %.not.2, label %48, label %34

34:                                               ; preds = %32
  %35 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 110), align 2, !tbaa !14
  %36 = add i16 %35, 1
  store i16 %36, ptr getelementptr inbounds (i8, ptr @arp_table, i64 110), align 2, !tbaa !14
  %37 = icmp ugt i16 %36, 299
  br i1 %37, label %47, label %38

38:                                               ; preds = %34
  %39 = icmp eq i8 %33, 1
  %40 = icmp ugt i16 %36, 4
  %or.cond.2 = and i1 %39, %40
  br i1 %or.cond.2, label %47, label %41

41:                                               ; preds = %38
  switch i8 %33, label %48 [
    i8 3, label %46
    i8 4, label %45
    i8 1, label %42
  ]

42:                                               ; preds = %41
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 96), align 16, !tbaa !15
  %44 = tail call signext i8 @etharp_request(ptr noundef %43, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 88))
  br label %48

45:                                               ; preds = %41
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 112), align 16, !tbaa !5
  br label %48

46:                                               ; preds = %41
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 112), align 16, !tbaa !5
  br label %48

47:                                               ; preds = %38, %34
  tail call void @etharp_free_entry(i32 noundef 2)
  br label %48

48:                                               ; preds = %47, %46, %45, %42, %41, %32
  %49 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 152), align 8, !tbaa !5
  %.not.3 = icmp eq i8 %49, 0
  br i1 %.not.3, label %64, label %50

50:                                               ; preds = %48
  %51 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 150), align 2, !tbaa !14
  %52 = add i16 %51, 1
  store i16 %52, ptr getelementptr inbounds (i8, ptr @arp_table, i64 150), align 2, !tbaa !14
  %53 = icmp ugt i16 %52, 299
  br i1 %53, label %63, label %54

54:                                               ; preds = %50
  %55 = icmp eq i8 %49, 1
  %56 = icmp ugt i16 %52, 4
  %or.cond.3 = and i1 %55, %56
  br i1 %or.cond.3, label %63, label %57

57:                                               ; preds = %54
  switch i8 %49, label %64 [
    i8 3, label %62
    i8 4, label %61
    i8 1, label %58
  ]

58:                                               ; preds = %57
  %59 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 136), align 8, !tbaa !15
  %60 = tail call signext i8 @etharp_request(ptr noundef %59, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 128))
  br label %64

61:                                               ; preds = %57
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 152), align 8, !tbaa !5
  br label %64

62:                                               ; preds = %57
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 152), align 8, !tbaa !5
  br label %64

63:                                               ; preds = %54, %50
  tail call void @etharp_free_entry(i32 noundef 3)
  br label %64

64:                                               ; preds = %63, %62, %61, %58, %57, %48
  %65 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 192), align 16, !tbaa !5
  %.not.4 = icmp eq i8 %65, 0
  br i1 %.not.4, label %80, label %66

66:                                               ; preds = %64
  %67 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 190), align 2, !tbaa !14
  %68 = add i16 %67, 1
  store i16 %68, ptr getelementptr inbounds (i8, ptr @arp_table, i64 190), align 2, !tbaa !14
  %69 = icmp ugt i16 %68, 299
  br i1 %69, label %79, label %70

70:                                               ; preds = %66
  %71 = icmp eq i8 %65, 1
  %72 = icmp ugt i16 %68, 4
  %or.cond.4 = and i1 %71, %72
  br i1 %or.cond.4, label %79, label %73

73:                                               ; preds = %70
  switch i8 %65, label %80 [
    i8 3, label %78
    i8 4, label %77
    i8 1, label %74
  ]

74:                                               ; preds = %73
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 176), align 16, !tbaa !15
  %76 = tail call signext i8 @etharp_request(ptr noundef %75, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 168))
  br label %80

77:                                               ; preds = %73
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 192), align 16, !tbaa !5
  br label %80

78:                                               ; preds = %73
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 192), align 16, !tbaa !5
  br label %80

79:                                               ; preds = %70, %66
  tail call void @etharp_free_entry(i32 noundef 4)
  br label %80

80:                                               ; preds = %79, %78, %77, %74, %73, %64
  %81 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 232), align 8, !tbaa !5
  %.not.5 = icmp eq i8 %81, 0
  br i1 %.not.5, label %96, label %82

82:                                               ; preds = %80
  %83 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 230), align 2, !tbaa !14
  %84 = add i16 %83, 1
  store i16 %84, ptr getelementptr inbounds (i8, ptr @arp_table, i64 230), align 2, !tbaa !14
  %85 = icmp ugt i16 %84, 299
  br i1 %85, label %95, label %86

86:                                               ; preds = %82
  %87 = icmp eq i8 %81, 1
  %88 = icmp ugt i16 %84, 4
  %or.cond.5 = and i1 %87, %88
  br i1 %or.cond.5, label %95, label %89

89:                                               ; preds = %86
  switch i8 %81, label %96 [
    i8 3, label %94
    i8 4, label %93
    i8 1, label %90
  ]

90:                                               ; preds = %89
  %91 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 216), align 8, !tbaa !15
  %92 = tail call signext i8 @etharp_request(ptr noundef %91, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 208))
  br label %96

93:                                               ; preds = %89
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 232), align 8, !tbaa !5
  br label %96

94:                                               ; preds = %89
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 232), align 8, !tbaa !5
  br label %96

95:                                               ; preds = %86, %82
  tail call void @etharp_free_entry(i32 noundef 5)
  br label %96

96:                                               ; preds = %95, %94, %93, %90, %89, %80
  %97 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 272), align 16, !tbaa !5
  %.not.6 = icmp eq i8 %97, 0
  br i1 %.not.6, label %112, label %98

98:                                               ; preds = %96
  %99 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 270), align 2, !tbaa !14
  %100 = add i16 %99, 1
  store i16 %100, ptr getelementptr inbounds (i8, ptr @arp_table, i64 270), align 2, !tbaa !14
  %101 = icmp ugt i16 %100, 299
  br i1 %101, label %111, label %102

102:                                              ; preds = %98
  %103 = icmp eq i8 %97, 1
  %104 = icmp ugt i16 %100, 4
  %or.cond.6 = and i1 %103, %104
  br i1 %or.cond.6, label %111, label %105

105:                                              ; preds = %102
  switch i8 %97, label %112 [
    i8 3, label %110
    i8 4, label %109
    i8 1, label %106
  ]

106:                                              ; preds = %105
  %107 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 256), align 16, !tbaa !15
  %108 = tail call signext i8 @etharp_request(ptr noundef %107, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 248))
  br label %112

109:                                              ; preds = %105
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 272), align 16, !tbaa !5
  br label %112

110:                                              ; preds = %105
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 272), align 16, !tbaa !5
  br label %112

111:                                              ; preds = %102, %98
  tail call void @etharp_free_entry(i32 noundef 6)
  br label %112

112:                                              ; preds = %111, %110, %109, %106, %105, %96
  %113 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 312), align 8, !tbaa !5
  %.not.7 = icmp eq i8 %113, 0
  br i1 %.not.7, label %128, label %114

114:                                              ; preds = %112
  %115 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 310), align 2, !tbaa !14
  %116 = add i16 %115, 1
  store i16 %116, ptr getelementptr inbounds (i8, ptr @arp_table, i64 310), align 2, !tbaa !14
  %117 = icmp ugt i16 %116, 299
  br i1 %117, label %127, label %118

118:                                              ; preds = %114
  %119 = icmp eq i8 %113, 1
  %120 = icmp ugt i16 %116, 4
  %or.cond.7 = and i1 %119, %120
  br i1 %or.cond.7, label %127, label %121

121:                                              ; preds = %118
  switch i8 %113, label %128 [
    i8 3, label %126
    i8 4, label %125
    i8 1, label %122
  ]

122:                                              ; preds = %121
  %123 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 296), align 8, !tbaa !15
  %124 = tail call signext i8 @etharp_request(ptr noundef %123, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 288))
  br label %128

125:                                              ; preds = %121
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 312), align 8, !tbaa !5
  br label %128

126:                                              ; preds = %121
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 312), align 8, !tbaa !5
  br label %128

127:                                              ; preds = %118, %114
  tail call void @etharp_free_entry(i32 noundef 7)
  br label %128

128:                                              ; preds = %127, %126, %125, %122, %121, %112
  %129 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 352), align 16, !tbaa !5
  %.not.8 = icmp eq i8 %129, 0
  br i1 %.not.8, label %144, label %130

130:                                              ; preds = %128
  %131 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 350), align 2, !tbaa !14
  %132 = add i16 %131, 1
  store i16 %132, ptr getelementptr inbounds (i8, ptr @arp_table, i64 350), align 2, !tbaa !14
  %133 = icmp ugt i16 %132, 299
  br i1 %133, label %143, label %134

134:                                              ; preds = %130
  %135 = icmp eq i8 %129, 1
  %136 = icmp ugt i16 %132, 4
  %or.cond.8 = and i1 %135, %136
  br i1 %or.cond.8, label %143, label %137

137:                                              ; preds = %134
  switch i8 %129, label %144 [
    i8 3, label %142
    i8 4, label %141
    i8 1, label %138
  ]

138:                                              ; preds = %137
  %139 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 336), align 16, !tbaa !15
  %140 = tail call signext i8 @etharp_request(ptr noundef %139, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 328))
  br label %144

141:                                              ; preds = %137
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 352), align 16, !tbaa !5
  br label %144

142:                                              ; preds = %137
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 352), align 16, !tbaa !5
  br label %144

143:                                              ; preds = %134, %130
  tail call void @etharp_free_entry(i32 noundef 8)
  br label %144

144:                                              ; preds = %143, %142, %141, %138, %137, %128
  %145 = load i8, ptr getelementptr inbounds (i8, ptr @arp_table, i64 392), align 8, !tbaa !5
  %.not.9 = icmp eq i8 %145, 0
  br i1 %.not.9, label %160, label %146

146:                                              ; preds = %144
  %147 = load i16, ptr getelementptr inbounds (i8, ptr @arp_table, i64 390), align 2, !tbaa !14
  %148 = add i16 %147, 1
  store i16 %148, ptr getelementptr inbounds (i8, ptr @arp_table, i64 390), align 2, !tbaa !14
  %149 = icmp ugt i16 %148, 299
  br i1 %149, label %159, label %150

150:                                              ; preds = %146
  %151 = icmp eq i8 %145, 1
  %152 = icmp ugt i16 %148, 4
  %or.cond.9 = and i1 %151, %152
  br i1 %or.cond.9, label %159, label %153

153:                                              ; preds = %150
  switch i8 %145, label %160 [
    i8 3, label %158
    i8 4, label %157
    i8 1, label %154
  ]

154:                                              ; preds = %153
  %155 = load ptr, ptr getelementptr inbounds (i8, ptr @arp_table, i64 376), align 8, !tbaa !15
  %156 = tail call signext i8 @etharp_request(ptr noundef %155, ptr noundef nonnull getelementptr inbounds (i8, ptr @arp_table, i64 368))
  br label %160

157:                                              ; preds = %153
  store i8 2, ptr getelementptr inbounds (i8, ptr @arp_table, i64 392), align 8, !tbaa !5
  br label %160

158:                                              ; preds = %153
  store i8 4, ptr getelementptr inbounds (i8, ptr @arp_table, i64 392), align 8, !tbaa !5
  br label %160

159:                                              ; preds = %150, %146
  tail call void @etharp_free_entry(i32 noundef 9)
  br label %160

160:                                              ; preds = %159, %158, %157, %154, %153, %144
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local signext i8 @etharp_request(ptr noundef, ptr noundef) local_unnamed_addr #0

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

!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, !8, i64 32}
!6 = !{!"etharp_entry", !7, i64 0, !10, i64 8, !7, i64 16, !12, i64 24, !13, i64 30, !8, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"ip4_addr", !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"eth_addr", !8, i64 0}
!13 = !{!"short", !8, i64 0}
!14 = !{!6, !13, i64 30}
!15 = !{!6, !7, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass