; LLVM IR from wkoszek/kmnsim :: src (all)

; 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.network = type { i64, %struct.nids, %struct.connlist, %struct.arptable, i32, i32, i32, i32, ptr, ptr, [1024 x i8] }
%struct.nids = type { ptr, ptr }
%struct.connlist = type { ptr, ptr }
%struct.arptable = type { ptr, ptr }
%struct.iface = type { i64, ptr, ptr, %struct.pktq, %struct.pktq, i32, ptr, [4 x i32], [4 x i32], [6 x i32], %struct.anon }
%struct.pktq = type { ptr, ptr }
%struct.anon = type { ptr, ptr }
%struct.nid = type { i64, [64 x i8], i32, i32, ptr, %struct.anon.0 }
%struct.anon.0 = type { ptr, ptr }
%struct.pkt = type { i64, ptr, i32, i32, ptr, ptr, %struct.anon.2 }
%struct.anon.2 = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.cmd_dispatch_host_ping = external hidden unnamed_addr constant [77 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [39 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @nid_name_get(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @pktq_enqueue(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @pkt_create(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @pkt_init(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @cmdlist_first(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @cmd_val(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @network_err(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @iface_find_by_ip(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @cmd_dispatch_host_ping(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store ptr null, ptr %13, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.network, ptr %15, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i64 %17, 473585002
  br i1 %18, label %19, label %20

19:                                               ; preds = %3
  br label %21

20:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 853, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

21:                                               ; preds = %19
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  br label %26

25:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 854, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

26:                                               ; preds = %24
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  br label %31

30:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.2, i32 noundef 855, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

31:                                               ; preds = %29
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call ptr @cmdlist_first(ptr noundef %32)
  store ptr %33, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %31
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @network_err(ptr noundef %37, ptr noundef @.str.69)
  store i32 %38, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %119

39:                                               ; preds = %31
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call ptr @cmd_val(ptr noundef %40)
  store ptr %41, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = call ptr @iface_find_by_ip(ptr noundef %42, ptr noundef %43)
  store ptr %44, ptr %10, align 8, !tbaa !5
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %51

47:                                               ; preds = %39
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call i32 (ptr, ptr, ...) @network_err(ptr noundef %48, ptr noundef @.str.70, ptr noundef %49)
  store i32 %50, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %119

51:                                               ; preds = %39
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  br label %57

56:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.2, i32 noundef 875, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

57:                                               ; preds = %55
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.iface, ptr %58, i32 0, i32 0
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = icmp eq i64 %60, 1991415775
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  br label %64

63:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.2, i32 noundef 875, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.network, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call ptr @nid_lookup(ptr noundef %68, ptr noundef %69, i32 noundef 0, i32 noundef 2)
  store ptr %70, ptr %13, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %78

73:                                               ; preds = %66
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = call ptr @nid_name_get(ptr noundef %75)
  %77 = call i32 (ptr, ptr, ...) @network_err(ptr noundef %74, ptr noundef @.str.73, ptr noundef %76)
  store i32 %77, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %119

78:                                               ; preds = %66
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.nid, ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !20
  store ptr %81, ptr %11, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %78
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  br label %87

86:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.2, i32 noundef 890, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

87:                                               ; preds = %85
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.iface, ptr %88, i32 0, i32 0
  %90 = load i64, ptr %89, align 8, !tbaa !16
  %91 = icmp eq i64 %90, 1991415775
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  br label %94

93:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.2, i32 noundef 890, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = call ptr @pkt_create(i32 noundef 1000)
  store ptr %97, ptr %12, align 8, !tbaa !5
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  call void @pkt_init(ptr noundef %98, i32 noundef 0, ptr noundef %99, ptr noundef %100)
  br label %101

101:                                              ; preds = %96
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  br label %106

105:                                              ; preds = %101
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 904, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

106:                                              ; preds = %104
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.pkt, ptr %107, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !22
  %110 = icmp eq i64 %109, 2864434397
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  br label %113

112:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 904, ptr noundef @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #4
  unreachable

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.iface, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  call void @pktq_enqueue(ptr noundef %117, ptr noundef %118)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %119

119:                                              ; preds = %115, %73, %47, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %120 = load i32, ptr %4, align 4
  ret i32 %120
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @nid_lookup(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #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 }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"network", !11, i64 0, !12, i64 8, !13, i64 24, !14, i64 40, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !6, i64 72, !6, i64 80, !7, i64 88}
!11 = !{!"long", !7, i64 0}
!12 = !{!"nids", !6, i64 0, !6, i64 8}
!13 = !{!"connlist", !6, i64 0, !6, i64 8}
!14 = !{!"arptable", !6, i64 0, !6, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"iface", !11, i64 0, !6, i64 8, !6, i64 16, !18, i64 24, !18, i64 40, !15, i64 56, !6, i64 64, !7, i64 72, !7, i64 88, !7, i64 104, !19, i64 128}
!18 = !{!"pktq", !6, i64 0, !6, i64 8}
!19 = !{!"", !6, i64 0, !6, i64 8}
!20 = !{!21, !6, i64 80}
!21 = !{!"nid", !11, i64 0, !7, i64 8, !15, i64 72, !15, i64 76, !6, i64 80, !19, i64 88}
!22 = !{!23, !11, i64 0}
!23 = !{!"pkt", !11, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !19, i64 40}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.cmd_dispatch_host_ping = external hidden unnamed_addr constant [77 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @nid_name_get(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @pktq_enqueue(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @pkt_create(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @pkt_init(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @cmdlist_first(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @cmd_val(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @network_err(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @iface_find_by_ip(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @cmd_dispatch_host_ping(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = load i64, ptr %0, align 8, !tbaa !5
  %5 = icmp eq i64 %4, 473585002
  br i1 %5, label %7, label %6

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 853, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

7:                                                ; preds = %3
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 854, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

9:                                                ; preds = %7
  %.not36 = icmp eq ptr %1, null
  br i1 %.not36, label %10, label %11

10:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.2, i32 noundef 855, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

11:                                               ; preds = %9
  %12 = tail call ptr @cmdlist_first(ptr noundef nonnull %2)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %16

14:                                               ; preds = %11
  %15 = tail call i32 (ptr, ptr, ...) @network_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.69)
  br label %50

16:                                               ; preds = %11
  %17 = tail call ptr @cmd_val(ptr noundef nonnull %12)
  %18 = tail call ptr @iface_find_by_ip(ptr noundef nonnull %0, ptr noundef %17)
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %22

20:                                               ; preds = %16
  %21 = tail call i32 (ptr, ptr, ...) @network_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.70, ptr noundef %17)
  br label %50

22:                                               ; preds = %16
  %23 = load i64, ptr %18, align 8, !tbaa !15
  %24 = icmp eq i64 %23, 1991415775
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.2, i32 noundef 875, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = tail call ptr @nid_lookup(ptr noundef nonnull %27, ptr noundef nonnull %1, i32 noundef 0, i32 noundef 2)
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %26
  %31 = tail call ptr @nid_name_get(ptr noundef null)
  %32 = tail call i32 (ptr, ptr, ...) @network_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.73, ptr noundef %31)
  br label %50

33:                                               ; preds = %26
  %34 = getelementptr inbounds i8, ptr %28, i64 80
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %.not37 = icmp eq ptr %35, null
  br i1 %.not37, label %36, label %37

36:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.2, i32 noundef 890, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

37:                                               ; preds = %33
  %38 = load i64, ptr %35, align 8, !tbaa !15
  %39 = icmp eq i64 %38, 1991415775
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.2, i32 noundef 890, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

41:                                               ; preds = %37
  %42 = tail call ptr @pkt_create(i32 noundef 1000)
  tail call void @pkt_init(ptr noundef %42, i32 noundef 0, ptr noundef nonnull %35, ptr noundef nonnull %18)
  %.not38 = icmp eq ptr %42, null
  br i1 %.not38, label %43, label %44

43:                                               ; preds = %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 904, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

44:                                               ; preds = %41
  %45 = load i64, ptr %42, align 8, !tbaa !21
  %46 = icmp eq i64 %45, 2864434397
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 904, ptr noundef nonnull @__PRETTY_FUNCTION__.cmd_dispatch_host_ping) #2
  unreachable

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %35, i64 40
  tail call void @pktq_enqueue(ptr noundef nonnull %49, ptr noundef nonnull %42)
  br label %50

50:                                               ; preds = %48, %30, %20, %14
  %.0 = phi i32 [ %15, %14 ], [ %21, %20 ], [ %32, %30 ], [ 0, %48 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @nid_lookup(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { noreturn 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 #1 = { 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 #2 = { 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, !7, i64 0}
!6 = !{!"network", !7, i64 0, !10, i64 8, !12, i64 24, !13, i64 40, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !11, i64 72, !11, i64 80, !8, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"nids", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"connlist", !11, i64 0, !11, i64 8}
!13 = !{!"arptable", !11, i64 0, !11, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"iface", !7, i64 0, !11, i64 8, !11, i64 16, !17, i64 24, !17, i64 40, !14, i64 56, !11, i64 64, !8, i64 72, !8, i64 88, !8, i64 104, !18, i64 128}
!17 = !{!"pktq", !11, i64 0, !11, i64 8}
!18 = !{!"", !11, i64 0, !11, i64 8}
!19 = !{!20, !11, i64 80}
!20 = !{!"nid", !7, i64 0, !8, i64 8, !14, i64 72, !14, i64 76, !11, i64 80, !18, i64 88}
!21 = !{!22, !7, i64 0}
!22 = !{!"pkt", !7, i64 0, !11, i64 8, !14, i64 16, !14, i64 20, !11, i64 24, !11, i64 32, !18, i64 40}


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