; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library (TcpIoAccept)

; 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.GUID = type { i32, i16, i16, [8 x i8] }
%struct.TCP_IO = type { i8, ptr, ptr, ptr, %union.TCP_IO_PROTOCOL, %union.TCP_IO_PROTOCOL, %union.TCP_IO_CONNECTION_TOKEN, %union.TCP_IO_IO_TOKEN, %union.TCP_IO_IO_TOKEN, %union.TCP_IO_CLOSE_TOKEN, %union.TCP_IO_LISTEN_TOKEN, i8, i8, i8, i8, i8 }
%union.TCP_IO_PROTOCOL = type { ptr }
%union.TCP_IO_CONNECTION_TOKEN = type { %struct.EFI_TCP4_CONNECTION_TOKEN }
%struct.EFI_TCP4_CONNECTION_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN }
%struct.EFI_TCP4_COMPLETION_TOKEN = type { ptr, i64 }
%union.TCP_IO_IO_TOKEN = type { %struct.EFI_TCP4_IO_TOKEN }
%struct.EFI_TCP4_IO_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, %union.anon }
%union.anon = type { ptr }
%union.TCP_IO_CLOSE_TOKEN = type { %struct.EFI_TCP4_CLOSE_TOKEN }
%struct.EFI_TCP4_CLOSE_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, i8 }
%union.TCP_IO_LISTEN_TOKEN = type { %struct.EFI_TCP4_LISTEN_TOKEN }
%struct.EFI_TCP4_LISTEN_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, ptr }
%struct._EFI_TCP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_TCP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }

@gBS = external global ptr, align 8
@gEfiTcp4ProtocolGuid = external global %struct.GUID, align 4
@gEfiTcp6ProtocolGuid = external global %struct.GUID, align 4

; 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

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

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.TCP_IO, ptr %14, i32 0, i32 4
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %13, %2
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %139

19:                                               ; preds = %13
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.TCP_IO, ptr %20, i32 0, i32 15
  store i8 0, ptr %21, align 4, !tbaa !10
  store ptr null, ptr %8, align 8, !tbaa !5
  store ptr null, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.TCP_IO, ptr %22, i32 0, i32 0
  %24 = load i8, ptr %23, align 8, !tbaa !12
  %25 = zext i8 %24 to i32
  %26 = icmp eq i32 %25, 4
  br i1 %26, label %27, label %38

27:                                               ; preds = %19
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TCP_IO, ptr %28, i32 0, i32 4
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._EFI_TCP4_PROTOCOL, ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.TCP_IO, ptr %35, i32 0, i32 10
  %37 = call i64 %33(ptr noundef %34, ptr noundef %36)
  store i64 %37, ptr %6, align 8, !tbaa !15
  br label %57

38:                                               ; preds = %19
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.TCP_IO, ptr %39, i32 0, i32 0
  %41 = load i8, ptr %40, align 8, !tbaa !12
  %42 = zext i8 %41 to i32
  %43 = icmp eq i32 %42, 6
  br i1 %43, label %44, label %55

44:                                               ; preds = %38
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TCP_IO, ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  store ptr %47, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._EFI_TCP6_PROTOCOL, ptr %48, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.TCP_IO, ptr %52, i32 0, i32 10
  %54 = call i64 %50(ptr noundef %51, ptr noundef %53)
  store i64 %54, ptr %6, align 8, !tbaa !15
  br label %56

55:                                               ; preds = %38
  store i64 -9223372036854775805, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %139

56:                                               ; preds = %44
  br label %57

57:                                               ; preds = %56, %27
  %58 = load i64, ptr %6, align 8, !tbaa !15
  %59 = icmp slt i64 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %57
  %61 = load i64, ptr %6, align 8, !tbaa !15
  store i64 %61, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %139

62:                                               ; preds = %57
  br label %63

63:                                               ; preds = %95, %62
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.TCP_IO, ptr %64, i32 0, i32 15
  %66 = load i8, ptr %65, align 4, !tbaa !10
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %75, label %68

68:                                               ; preds = %63
  %69 = load ptr, ptr @gBS, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %69, i32 0, i32 13
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = call i64 %71(ptr noundef %72)
  %74 = icmp slt i64 %73, 0
  br label %75

75:                                               ; preds = %68, %63
  %76 = phi i1 [ false, %63 ], [ %74, %68 ]
  br i1 %76, label %77, label %96

77:                                               ; preds = %75
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.TCP_IO, ptr %78, i32 0, i32 0
  %80 = load i8, ptr %79, align 8, !tbaa !12
  %81 = zext i8 %80 to i32
  %82 = icmp eq i32 %81, 4
  br i1 %82, label %83, label %89

83:                                               ; preds = %77
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._EFI_TCP4_PROTOCOL, ptr %84, i32 0, i32 9
  %86 = load ptr, ptr %85, align 8, !tbaa !23
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call i64 %86(ptr noundef %87)
  br label %95

89:                                               ; preds = %77
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._EFI_TCP6_PROTOCOL, ptr %90, i32 0, i32 8
  %92 = load ptr, ptr %91, align 8, !tbaa !24
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call i64 %92(ptr noundef %93)
  br label %95

95:                                               ; preds = %89, %83
  br label %63, !llvm.loop !25

96:                                               ; preds = %75
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.TCP_IO, ptr %97, i32 0, i32 15
  %99 = load i8, ptr %98, align 4, !tbaa !10
  %100 = icmp ne i8 %99, 0
  br i1 %100, label %102, label %101

101:                                              ; preds = %96
  store i64 -9223372036854775790, ptr %6, align 8, !tbaa !15
  br label %108

102:                                              ; preds = %96
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TCP_IO, ptr %103, i32 0, i32 10
  %105 = getelementptr inbounds %struct.EFI_TCP4_LISTEN_TOKEN, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %struct.EFI_TCP4_COMPLETION_TOKEN, ptr %105, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !9
  store i64 %107, ptr %6, align 8, !tbaa !15
  br label %108

108:                                              ; preds = %102, %101
  %109 = load i64, ptr %6, align 8, !tbaa !15
  %110 = icmp slt i64 %109, 0
  br i1 %110, label %137, label %111

111:                                              ; preds = %108
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TCP_IO, ptr %112, i32 0, i32 0
  %114 = load i8, ptr %113, align 8, !tbaa !12
  %115 = zext i8 %114 to i32
  %116 = icmp eq i32 %115, 4
  br i1 %116, label %117, label %118

117:                                              ; preds = %111
  store ptr @gEfiTcp4ProtocolGuid, ptr %7, align 8, !tbaa !5
  br label %119

118:                                              ; preds = %111
  store ptr @gEfiTcp6ProtocolGuid, ptr %7, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %118, %117
  %120 = load ptr, ptr @gBS, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %120, i32 0, i32 33
  %122 = load ptr, ptr %121, align 8, !tbaa !27
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.TCP_IO, ptr %123, i32 0, i32 10
  %125 = getelementptr inbounds %struct.EFI_TCP4_LISTEN_TOKEN, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !9
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TCP_IO, ptr %128, i32 0, i32 5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.TCP_IO, ptr %130, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !28
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.TCP_IO, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !29
  %136 = call i64 %122(ptr noundef %126, ptr noundef %127, ptr noundef %129, ptr noundef %132, ptr noundef %135, i32 noundef 16)
  store i64 %136, ptr %6, align 8, !tbaa !15
  br label %137

137:                                              ; preds = %119, %108
  %138 = load i64, ptr %6, align 8, !tbaa !15
  store i64 %138, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %139

139:                                              ; preds = %137, %60, %55, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  %140 = load i64, ptr %3, align 8
  ret i64 %140
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !7, i64 164}
!11 = !{!"", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 64, !7, i64 88, !7, i64 112, !7, i64 136, !7, i64 160, !7, i64 161, !7, i64 162, !7, i64 163, !7, i64 164}
!12 = !{!11, !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_EFI_TCP4_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!18, !6, i64 24}
!18 = !{!"_EFI_TCP6_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!19 = !{!20, !6, i64 120}
!20 = !{!"", !21, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !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, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!21 = !{!"", !16, i64 0, !22, i64 8, !22, i64 12, !22, i64 16, !22, i64 20}
!22 = !{!"int", !7, i64 0}
!23 = !{!14, !6, i64 72}
!24 = !{!18, !6, i64 64}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!20, !6, i64 280}
!28 = !{!11, !6, i64 8}
!29 = !{!11, !6, i64 16}


; 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.GUID = type { i32, i16, i16, [8 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiTcp4ProtocolGuid = external global %struct.GUID, align 4
@gEfiTcp6ProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @TcpIoAccept(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %.thread, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %.thread, label %8

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 164
  store i8 0, ptr %9, align 4, !tbaa !8
  %10 = load i8, ptr %0, align 8, !tbaa !11
  switch i8 %10, label %.thread [
    i8 4, label %12
    i8 6, label %11
  ]

11:                                               ; preds = %8
  br label %12

12:                                               ; preds = %8, %11
  %.sink43 = phi i64 [ 24, %11 ], [ 32, %8 ]
  %.032 = phi ptr [ null, %11 ], [ %6, %8 ]
  %.0 = phi ptr [ %6, %11 ], [ null, %8 ]
  %13 = getelementptr inbounds i8, ptr %6, i64 %.sink43
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  %16 = tail call i64 %14(ptr noundef nonnull %6, ptr noundef nonnull %15) #1
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %.thread, label %.preheader

.preheader:                                       ; preds = %12
  %18 = load i8, ptr %9, align 4, !tbaa !8
  %.not41 = icmp eq i8 %18, 0
  br i1 %.not41, label %.lr.ph, label %.critedge.thread

.lr.ph:                                           ; preds = %.preheader
  %19 = getelementptr inbounds i8, ptr %.0, i64 64
  %20 = getelementptr inbounds i8, ptr %.032, i64 72
  br label %21

21:                                               ; preds = %.lr.ph, %27
  %22 = load ptr, ptr @gBS, align 8, !tbaa !12
  %23 = getelementptr inbounds i8, ptr %22, i64 120
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = tail call i64 %24(ptr noundef %1) #1
  %26 = icmp slt i64 %25, 0
  br i1 %26, label %27, label %.critedge

27:                                               ; preds = %21
  %28 = load i8, ptr %0, align 8, !tbaa !11
  %29 = icmp eq i8 %28, 4
  %. = select i1 %29, ptr %20, ptr %19
  %.032..0 = select i1 %29, ptr %.032, ptr %.0
  %30 = load ptr, ptr %., align 8, !tbaa !12
  %31 = tail call i64 %30(ptr noundef %.032..0) #1
  %32 = load i8, ptr %9, align 4, !tbaa !8
  %.not = icmp eq i8 %32, 0
  br i1 %.not, label %21, label %.critedge.thread, !llvm.loop !18

.critedge:                                        ; preds = %21
  %.pr = load i8, ptr %9, align 4, !tbaa !8
  %.not38 = icmp eq i8 %.pr, 0
  br i1 %.not38, label %.thread, label %.critedge.thread

.critedge.thread:                                 ; preds = %27, %.preheader, %.critedge
  %33 = getelementptr inbounds i8, ptr %0, i64 144
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = icmp slt i64 %34, 0
  br i1 %35, label %.thread, label %36

36:                                               ; preds = %.critedge.thread
  %37 = load i8, ptr %0, align 8, !tbaa !11
  %38 = icmp eq i8 %37, 4
  %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid = select i1 %38, ptr @gEfiTcp4ProtocolGuid, ptr @gEfiTcp6ProtocolGuid
  %39 = load ptr, ptr @gBS, align 8, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %39, i64 280
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds i8, ptr %0, i64 152
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 40
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = tail call i64 %41(ptr noundef %43, ptr noundef nonnull %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid, ptr noundef nonnull %44, ptr noundef %46, ptr noundef %48, i32 noundef 16) #1
  br label %.thread

.thread:                                          ; preds = %.critedge, %.critedge.thread, %36, %12, %8, %2, %4
  %.035 = phi i64 [ -9223372036854775806, %4 ], [ -9223372036854775806, %2 ], [ -9223372036854775805, %8 ], [ %16, %12 ], [ %34, %.critedge.thread ], [ %49, %36 ], [ -9223372036854775790, %.critedge ]
  ret i64 %.035
}

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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !6, i64 164}
!9 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 64, !6, i64 88, !6, i64 112, !6, i64 136, !6, i64 160, !6, i64 161, !6, i64 162, !6, i64 163, !6, i64 164}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!9, !6, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 120}
!14 = !{!"", !15, i64 0, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368}
!15 = !{!"", !16, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20}
!16 = !{!"long long", !6, i64 0}
!17 = !{!"int", !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!14, !10, i64 280}
!21 = !{!9, !10, i64 8}
!22 = !{!9, !10, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass