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

; 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.EFI_MTFTP4_OPTION = type { ptr, ptr }
%struct._PXEBC_PRIVATE_DATA = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct._EFI_PXE_BASE_CODE_PROTOCOL, %struct._EFI_LOAD_FILE_PROTOCOL, %struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL, ptr, ptr, ptr, ptr, %struct.EFI_IP4_CONFIG_DATA, ptr, ptr, ptr, i16, %struct.EFI_UDP4_CONFIG_DATA, %struct.EFI_PXE_BASE_CODE_MODE, i32, ptr, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, i8, i32, i64, i64, [312 x i8], %struct.EFI_DHCP4_PACKET, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i32, i32, i32, %struct.PXEBC_CACHED_DHCP4_PACKET, %struct.PXEBC_CACHED_DHCP4_PACKET, %struct.PXEBC_CACHED_DHCP4_PACKET, [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], [5 x i32], [5 x [16 x i32]], i32, [5 x i32], [16 x i32], ptr, %struct.EFI_IP4_COMPLETION_TOKEN }
%struct._EFI_PXE_BASE_CODE_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_LOAD_FILE_PROTOCOL = type { ptr }
%struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL = type { i64, ptr }
%struct.EFI_IP4_CONFIG_DATA = type { i8, i8, i8, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i8, i8, i8, i8, i32, i32 }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%struct.EFI_UDP4_CONFIG_DATA = type { i8, i8, i8, i8, i8, i8, i8, i32, i32, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, %struct.EFI_IPv4_ADDRESS, i16 }
%struct.EFI_PXE_BASE_CODE_MODE = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %struct.EFI_PXE_BASE_CODE_IP_FILTER, i32, [8 x %struct.EFI_PXE_BASE_CODE_ARP_ENTRY], i32, [8 x %struct.EFI_PXE_BASE_CODE_ROUTE_ENTRY], %struct.EFI_PXE_BASE_CODE_ICMP_ERROR, %struct.EFI_PXE_BASE_CODE_TFTP_ERROR }
%union.EFI_PXE_BASE_CODE_PACKET = type { %struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET, [444 x i8] }
%struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET = type { i32, [1024 x i8] }
%struct.EFI_PXE_BASE_CODE_IP_FILTER = type { i8, i8, i16, [8 x %union.EFI_IP_ADDRESS] }
%struct.EFI_PXE_BASE_CODE_ARP_ENTRY = type { %union.EFI_IP_ADDRESS, %struct.EFI_MAC_ADDRESS }
%struct.EFI_PXE_BASE_CODE_ROUTE_ENTRY = type { %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS }
%struct.EFI_PXE_BASE_CODE_ICMP_ERROR = type { i8, i8, i16, %union.anon, [494 x i8] }
%union.anon = type { i32 }
%struct.EFI_PXE_BASE_CODE_TFTP_ERROR = type { i8, [127 x i8] }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%struct.EFI_DHCP4_PACKET = type <{ i32, i32, %struct.anon.0 }>
%struct.anon.0 = type <{ %struct.EFI_DHCP4_HEADER, i32, [1 x i8] }>
%struct.EFI_DHCP4_HEADER = type { i8, i8, i8, i8, i32, i16, i16, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, [16 x i8], [64 x i8], [128 x i8] }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.PXEBC_CACHED_DHCP4_PACKET = type { %union.PXEBC_DHCP4_PACKET, i8, i8, [7 x ptr], %struct.PXEBC_VENDOR_OPTION }
%union.PXEBC_DHCP4_PACKET = type { [1480 x i8] }
%struct.PXEBC_VENDOR_OPTION = type { [8 x i32], %struct.EFI_IPv4_ADDRESS, i16, i16, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, i16, i16, i16, ptr, i8, ptr, i8, ptr, i8, ptr, i8 }
%struct.EFI_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon.1 }
%union.anon.1 = type { ptr }
%struct.EFI_MTFTP4_CONFIG_DATA = type { i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, i16, i16 }
%struct._EFI_MTFTP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_MTFTP4_ERROR_HEADER = type <{ i16, i16, [1 x i8] }>

@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@mMtftpOptions = external dso_local global [4 x ptr], align 16

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

declare ptr @AsciiStrnCpy(ptr noundef, ptr noundef, i64 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
define dso_local i64 @PxeBcTftpGetFileSize(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i64, 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 [2 x %struct.EFI_MTFTP4_OPTION], align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca [128 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  store i64 -9223372036854775801, ptr %19, align 8, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %22, i32 0, i32 18
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  store ptr %24, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %14, align 8, !tbaa !5
  store ptr null, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !31
  store i32 1, ptr %18, align 4, !tbaa !31
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.EFI_MTFTP4_CONFIG_DATA, ptr %25, i32 0, i32 6
  store i16 69, ptr %26, align 2, !tbaa !32
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._EFI_MTFTP4_PROTOCOL, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !34
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = call i64 %29(ptr noundef %30, ptr noundef %31)
  store i64 %32, ptr %19, align 8, !tbaa !9
  %33 = load i64, ptr %19, align 8, !tbaa !9
  %34 = icmp slt i64 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %5
  %36 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %36, ptr %6, align 8
  store i32 1, ptr %20, align 4
  br label %165

37:                                               ; preds = %5
  %38 = load ptr, ptr getelementptr inbounds ([4 x ptr], ptr @mMtftpOptions, i64 0, i64 2), align 16, !tbaa !5
  %39 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 0
  %40 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %39, i32 0, i32 0
  store ptr %38, ptr %40, align 16, !tbaa !36
  %41 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %42 = call i64 @UtoA10(i64 noundef 0, ptr noundef %41)
  %43 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %44 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 0
  %45 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %44, i32 0, i32 1
  store ptr %43, ptr %45, align 8, !tbaa !38
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %71

48:                                               ; preds = %37
  %49 = load ptr, ptr @mMtftpOptions, align 16, !tbaa !5
  %50 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 1
  %51 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %50, i32 0, i32 0
  store ptr %49, ptr %51, align 16, !tbaa !36
  %52 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 0
  %53 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !38
  %55 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 0
  %56 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !38
  %58 = call i64 @AsciiStrLen(ptr noundef %57)
  %59 = getelementptr inbounds i8, ptr %54, i64 %58
  %60 = getelementptr inbounds i8, ptr %59, i64 1
  %61 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 1
  %62 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %61, i32 0, i32 1
  store ptr %60, ptr %62, align 8, !tbaa !38
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 1
  %66 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %65, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !38
  %68 = call i64 @UtoA10(i64 noundef %64, ptr noundef %67)
  %69 = load i32, ptr %18, align 4, !tbaa !31
  %70 = add i32 %69, 1
  store i32 %70, ptr %18, align 4, !tbaa !31
  br label %71

71:                                               ; preds = %48, %37
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._EFI_MTFTP4_PROTOCOL, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !39
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i32, ptr %18, align 4, !tbaa !31
  %78 = trunc i32 %77 to i8
  %79 = getelementptr inbounds [2 x %struct.EFI_MTFTP4_OPTION], ptr %13, i64 0, i64 0
  %80 = call i64 %74(ptr noundef %75, ptr noundef null, ptr noundef %76, ptr noundef null, i8 noundef zeroext %78, ptr noundef %79, ptr noundef %16, ptr noundef %14)
  store i64 %80, ptr %19, align 8, !tbaa !9
  %81 = load i64, ptr %19, align 8, !tbaa !9
  %82 = icmp slt i64 %81, 0
  br i1 %82, label %83, label %113

83:                                               ; preds = %71
  %84 = load i64, ptr %19, align 8, !tbaa !9
  %85 = icmp eq i64 %84, -9223372036854775785
  br i1 %85, label %86, label %112

86:                                               ; preds = %83
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %87, i32 0, i32 23
  %89 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %88, i32 0, i32 15
  store i8 1, ptr %89, align 1, !tbaa !40
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.EFI_MTFTP4_ERROR_HEADER, ptr %90, i32 0, i32 1
  %92 = load i16, ptr %91, align 1, !tbaa !41
  %93 = trunc i16 %92 to i8
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %94, i32 0, i32 23
  %96 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %95, i32 0, i32 33
  %97 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_TFTP_ERROR, ptr %96, i32 0, i32 0
  store i8 %93, ptr %97, align 8, !tbaa !42
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %98, i32 0, i32 23
  %100 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %99, i32 0, i32 33
  %101 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_TFTP_ERROR, ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds [127 x i8], ptr %101, i64 0, i64 0
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.EFI_MTFTP4_ERROR_HEADER, ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds [1 x i8], ptr %104, i64 0, i64 0
  %106 = call ptr @AsciiStrnCpy(ptr noundef %102, ptr noundef %105, i64 noundef 127)
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %107, i32 0, i32 23
  %109 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %108, i32 0, i32 33
  %110 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_TFTP_ERROR, ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds [127 x i8], ptr %110, i64 0, i64 126
  store i8 0, ptr %111, align 1, !tbaa !41
  br label %112

112:                                              ; preds = %86, %83
  br label %153

113:                                              ; preds = %71
  store i32 0, ptr %18, align 4, !tbaa !31
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct._EFI_MTFTP4_PROTOCOL, ptr %114, i32 0, i32 3
  %116 = load ptr, ptr %115, align 8, !tbaa !43
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load i32, ptr %16, align 4, !tbaa !31
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = call i64 %116(ptr noundef %117, i32 noundef %118, ptr noundef %119, ptr noundef %18, ptr noundef %15)
  store i64 %120, ptr %19, align 8, !tbaa !9
  %121 = load i64, ptr %19, align 8, !tbaa !9
  %122 = icmp slt i64 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %113
  br label %153

124:                                              ; preds = %113
  store i64 -9223372036854775794, ptr %19, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %148, %124
  %126 = load i32, ptr %18, align 4, !tbaa !31
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %151

128:                                              ; preds = %125
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = load i32, ptr %18, align 4, !tbaa !31
  %131 = sub i32 %130, 1
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %129, i64 %132
  %134 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !36
  %136 = call i64 @AsciiStrnCmp(ptr noundef %135, ptr noundef @.str.2, i64 noundef 5)
  %137 = icmp eq i64 %136, 0
  br i1 %137, label %138, label %148

138:                                              ; preds = %128
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = load i32, ptr %18, align 4, !tbaa !31
  %141 = sub i32 %140, 1
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %139, i64 %142
  %144 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !38
  %146 = call i64 @AtoU64(ptr noundef %145)
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %146, ptr %147, align 8, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %138, %128
  %149 = load i32, ptr %18, align 4, !tbaa !31
  %150 = add i32 %149, -1
  store i32 %150, ptr %18, align 4, !tbaa !31
  br label %125, !llvm.loop !44

151:                                              ; preds = %125
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  call void @FreePool(ptr noundef %152)
  br label %153

153:                                              ; preds = %151, %123, %112
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %158

156:                                              ; preds = %153
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  call void @FreePool(ptr noundef %157)
  br label %158

158:                                              ; preds = %156, %153
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._EFI_MTFTP4_PROTOCOL, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !34
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = call i64 %161(ptr noundef %162, ptr noundef null)
  %164 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %164, ptr %6, align 8
  store i32 1, ptr %20, align 4
  br label %165

165:                                              ; preds = %158, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %166 = load i64, ptr %6, align 8
  ret i64 %166
}

declare i64 @UtoA10(i64 noundef, ptr noundef) #1

declare i64 @AsciiStrLen(ptr noundef) #1

declare i64 @AsciiStrnCmp(ptr noundef, ptr noundef, i64 noundef) #1

declare i64 @AtoU64(ptr noundef) #1

declare void @FreePool(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 280}
!12 = !{!"_PXEBC_PRIVATE_DATA", !13, 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, !14, i64 80, !15, i64 192, !16, i64 200, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !17, i64 248, !6, i64 280, !6, i64 288, !6, i64 296, !19, i64 304, !20, i64 308, !21, i64 344, !13, i64 10768, !6, i64 10776, !7, i64 10784, !7, i64 10800, !7, i64 10816, !7, i64 10832, !7, i64 10848, !13, i64 10852, !10, i64 10856, !10, i64 10864, !7, i64 10872, !25, i64 11184, !18, i64 11433, !7, i64 11465, !7, i64 11466, !7, i64 11467, !13, i64 11468, !13, i64 11472, !13, i64 11476, !28, i64 11480, !28, i64 13152, !28, i64 14824, !7, i64 16496, !7, i64 43248, !7, i64 43268, !13, i64 43588, !7, i64 43592, !7, i64 43612, !6, i64 43680, !30, i64 43688}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !10, 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, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!15 = !{!"_EFI_LOAD_FILE_PROTOCOL", !6, i64 0}
!16 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !10, i64 0, !6, i64 8}
!17 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !18, i64 6, !18, i64 10, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !13, i64 20, !13, i64 24}
!18 = !{!"", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !13, i64 8, !13, i64 12, !7, i64 16, !18, i64 17, !18, i64 21, !19, i64 26, !18, i64 28, !19, i64 32}
!21 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 20, !7, i64 36, !7, i64 52, !7, i64 1524, !7, i64 2996, !7, i64 4468, !7, i64 5940, !7, i64 7412, !22, i64 8884, !13, i64 9016, !7, i64 9020, !13, i64 9404, !7, i64 9408, !23, i64 9792, !24, i64 10296}
!22 = !{!"", !7, i64 0, !7, i64 1, !19, i64 2, !7, i64 4}
!23 = !{!"", !7, i64 0, !7, i64 1, !19, i64 2, !7, i64 4, !7, i64 8}
!24 = !{!"", !7, i64 0, !7, i64 1}
!25 = !{!"", !13, i64 0, !13, i64 4, !26, i64 8}
!26 = !{!"", !27, i64 0, !13, i64 236, !7, i64 240}
!27 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !13, i64 4, !19, i64 8, !19, i64 10, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!28 = !{!"", !7, i64 0, !7, i64 1480, !7, i64 1481, !7, i64 1488, !29, i64 1544}
!29 = !{!"", !7, i64 0, !18, i64 32, !19, i64 36, !19, i64 38, !7, i64 40, !7, i64 41, !7, i64 42, !18, i64 43, !18, i64 47, !19, i64 52, !19, i64 54, !19, i64 56, !19, i64 58, !6, i64 64, !7, i64 72, !6, i64 80, !7, i64 88, !6, i64 96, !7, i64 104, !6, i64 112, !7, i64 120}
!30 = !{!"", !6, i64 0, !10, i64 8, !7, i64 16}
!31 = !{!13, !13, i64 0}
!32 = !{!33, !19, i64 20}
!33 = !{!"", !7, i64 0, !18, i64 1, !18, i64 5, !19, i64 10, !18, i64 12, !18, i64 16, !19, i64 20, !19, i64 22, !19, i64 24}
!34 = !{!35, !6, i64 8}
!35 = !{!"_EFI_MTFTP4_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}
!36 = !{!37, !6, i64 0}
!37 = !{!"", !6, i64 0, !6, i64 8}
!38 = !{!37, !6, i64 8}
!39 = !{!35, !6, i64 16}
!40 = !{!12, !7, i64 359}
!41 = !{!7, !7, i64 0}
!42 = !{!12, !7, i64 10640}
!43 = !{!35, !6, i64 24}
!44 = distinct !{!44, !45}
!45 = !{!"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.EFI_MTFTP4_OPTION = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@mMtftpOptions = external dso_local local_unnamed_addr global [4 x ptr], align 16

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

declare ptr @AsciiStrnCpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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 range(i64 -9223372036854775808, 1) i64 @PxeBcTftpGetFileSize(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #2 {
  %6 = alloca [2 x %struct.EFI_MTFTP4_OPTION], align 16
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca [128 x i8], align 16
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  store i64 0, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 280
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr null, ptr %7, align 8, !tbaa !30
  store ptr null, ptr %8, align 8, !tbaa !30
  store i32 0, ptr %9, align 4, !tbaa !31
  store i32 1, ptr %11, align 4, !tbaa !31
  %14 = getelementptr inbounds i8, ptr %1, i64 20
  store i16 69, ptr %14, align 2, !tbaa !32
  %15 = getelementptr inbounds i8, ptr %13, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !34
  %17 = tail call i64 %16(ptr noundef %13, ptr noundef %1) #3
  %18 = icmp slt i64 %17, 0
  br i1 %18, label %84, label %19

19:                                               ; preds = %5
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @mMtftpOptions, i64 16), align 16, !tbaa !30
  store ptr %20, ptr %6, align 16, !tbaa !36
  %21 = call i64 @UtoA10(i64 noundef 0, ptr noundef nonnull %10) #3
  %22 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %10, ptr %22, align 8, !tbaa !38
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %32, label %23

23:                                               ; preds = %19
  %24 = load ptr, ptr @mMtftpOptions, align 16, !tbaa !30
  %25 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %24, ptr %25, align 16, !tbaa !36
  %26 = call i64 @AsciiStrLen(ptr noundef nonnull %10) #3
  %27 = getelementptr inbounds i8, ptr %10, i64 %26
  %28 = getelementptr inbounds i8, ptr %27, i64 1
  %29 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %28, ptr %29, align 8, !tbaa !38
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = call i64 @UtoA10(i64 noundef %30, ptr noundef nonnull %28) #3
  store i32 2, ptr %11, align 4, !tbaa !31
  br label %32

32:                                               ; preds = %23, %19
  %33 = phi i8 [ 2, %23 ], [ 1, %19 ]
  %34 = getelementptr inbounds i8, ptr %13, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !39
  %36 = call i64 %35(ptr noundef nonnull %13, ptr noundef null, ptr noundef %2, ptr noundef null, i8 noundef zeroext %33, ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef nonnull %7) #3
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %38, label %51

38:                                               ; preds = %32
  %39 = icmp eq i64 %36, -9223372036854775785
  br i1 %39, label %40, label %78

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %0, i64 359
  store i8 1, ptr %41, align 1, !tbaa !40
  %42 = load ptr, ptr %7, align 8, !tbaa !30
  %43 = getelementptr inbounds i8, ptr %42, i64 2
  %44 = load i16, ptr %43, align 1, !tbaa !41
  %45 = trunc i16 %44 to i8
  %46 = getelementptr inbounds i8, ptr %0, i64 10640
  store i8 %45, ptr %46, align 8, !tbaa !42
  %47 = getelementptr inbounds i8, ptr %0, i64 10641
  %48 = getelementptr inbounds i8, ptr %42, i64 4
  %49 = call ptr @AsciiStrnCpy(ptr noundef nonnull %47, ptr noundef nonnull %48, i64 noundef 127) #3
  %50 = getelementptr inbounds i8, ptr %0, i64 10767
  store i8 0, ptr %50, align 1, !tbaa !41
  br label %78

51:                                               ; preds = %32
  store i32 0, ptr %11, align 4, !tbaa !31
  %52 = getelementptr inbounds i8, ptr %13, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !43
  %54 = load i32, ptr %9, align 4, !tbaa !31
  %55 = load ptr, ptr %7, align 8, !tbaa !30
  %56 = call i64 %53(ptr noundef nonnull %13, i32 noundef %54, ptr noundef %55, ptr noundef nonnull %11, ptr noundef nonnull %8) #3
  %57 = icmp slt i64 %56, 0
  br i1 %57, label %78, label %thread-pre-split

thread-pre-split:                                 ; preds = %51
  %.pr = load i32, ptr %11, align 4, !tbaa !31
  %.not3335 = icmp eq i32 %.pr, 0
  br i1 %.not3335, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %thread-pre-split, %74
  %.036 = phi i64 [ %.1, %74 ], [ -9223372036854775794, %thread-pre-split ]
  %58 = phi i32 [ %76, %74 ], [ %.pr, %thread-pre-split ]
  %59 = load ptr, ptr %8, align 8, !tbaa !30
  %60 = add i32 %58, -1
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !36
  %64 = call i64 @AsciiStrnCmp(ptr noundef %63, ptr noundef nonnull @.str.2, i64 noundef 5) #3
  %65 = icmp eq i64 %64, 0
  br i1 %65, label %66, label %74

66:                                               ; preds = %.lr.ph
  %67 = load ptr, ptr %8, align 8, !tbaa !30
  %68 = load i32, ptr %11, align 4, !tbaa !31
  %69 = add i32 %68, -1
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds %struct.EFI_MTFTP4_OPTION, ptr %67, i64 %70, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !38
  %73 = call i64 @AtoU64(ptr noundef %72) #3
  store i64 %73, ptr %4, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %66, %.lr.ph
  %.1 = phi i64 [ 0, %66 ], [ %.036, %.lr.ph ]
  %75 = load i32, ptr %11, align 4, !tbaa !31
  %76 = add i32 %75, -1
  store i32 %76, ptr %11, align 4, !tbaa !31
  %.not33 = icmp eq i32 %76, 0
  br i1 %.not33, label %._crit_edge, label %.lr.ph, !llvm.loop !44

._crit_edge:                                      ; preds = %74, %thread-pre-split
  %.0.lcssa = phi i64 [ -9223372036854775794, %thread-pre-split ], [ %.1, %74 ]
  %77 = load ptr, ptr %8, align 8, !tbaa !30
  call void @FreePool(ptr noundef %77) #3
  br label %78

78:                                               ; preds = %51, %38, %40, %._crit_edge
  %.2 = phi i64 [ -9223372036854775785, %40 ], [ %36, %38 ], [ %56, %51 ], [ %.0.lcssa, %._crit_edge ]
  %79 = load ptr, ptr %7, align 8, !tbaa !30
  %.not34 = icmp eq ptr %79, null
  br i1 %.not34, label %81, label %80

80:                                               ; preds = %78
  call void @FreePool(ptr noundef nonnull %79) #3
  br label %81

81:                                               ; preds = %80, %78
  %82 = load ptr, ptr %15, align 8, !tbaa !34
  %83 = call i64 %82(ptr noundef %13, ptr noundef null) #3
  br label %84

84:                                               ; preds = %5, %81
  %.026 = phi i64 [ %.2, %81 ], [ %17, %5 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  ret i64 %.026
}

declare i64 @UtoA10(i64 noundef, ptr noundef) local_unnamed_addr #1

declare i64 @AsciiStrLen(ptr noundef) local_unnamed_addr #1

declare i64 @AsciiStrnCmp(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare i64 @AtoU64(ptr noundef) local_unnamed_addr #1

declare void @FreePool(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 280}
!10 = !{!"_PXEBC_PRIVATE_DATA", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !13, i64 80, !14, i64 192, !15, i64 200, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !16, i64 248, !12, i64 280, !12, i64 288, !12, i64 296, !18, i64 304, !19, i64 308, !20, i64 344, !11, i64 10768, !12, i64 10776, !7, i64 10784, !7, i64 10800, !7, i64 10816, !7, i64 10832, !7, i64 10848, !11, i64 10852, !6, i64 10856, !6, i64 10864, !7, i64 10872, !24, i64 11184, !17, i64 11433, !7, i64 11465, !7, i64 11466, !7, i64 11467, !11, i64 11468, !11, i64 11472, !11, i64 11476, !27, i64 11480, !27, i64 13152, !27, i64 14824, !7, i64 16496, !7, i64 43248, !7, i64 43268, !11, i64 43588, !7, i64 43592, !7, i64 43612, !12, i64 43680, !29, i64 43688}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104}
!14 = !{!"_EFI_LOAD_FILE_PROTOCOL", !12, i64 0}
!15 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !6, i64 0, !12, i64 8}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !17, i64 6, !17, i64 10, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !11, i64 20, !11, i64 24}
!17 = !{!"", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !11, i64 8, !11, i64 12, !7, i64 16, !17, i64 17, !17, i64 21, !18, i64 26, !17, i64 28, !18, i64 32}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 20, !7, i64 36, !7, i64 52, !7, i64 1524, !7, i64 2996, !7, i64 4468, !7, i64 5940, !7, i64 7412, !21, i64 8884, !11, i64 9016, !7, i64 9020, !11, i64 9404, !7, i64 9408, !22, i64 9792, !23, i64 10296}
!21 = !{!"", !7, i64 0, !7, i64 1, !18, i64 2, !7, i64 4}
!22 = !{!"", !7, i64 0, !7, i64 1, !18, i64 2, !7, i64 4, !7, i64 8}
!23 = !{!"", !7, i64 0, !7, i64 1}
!24 = !{!"", !11, i64 0, !11, i64 4, !25, i64 8}
!25 = !{!"", !26, i64 0, !11, i64 236, !7, i64 240}
!26 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !11, i64 4, !18, i64 8, !18, i64 10, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!27 = !{!"", !7, i64 0, !7, i64 1480, !7, i64 1481, !7, i64 1488, !28, i64 1544}
!28 = !{!"", !7, i64 0, !17, i64 32, !18, i64 36, !18, i64 38, !7, i64 40, !7, i64 41, !7, i64 42, !17, i64 43, !17, i64 47, !18, i64 52, !18, i64 54, !18, i64 56, !18, i64 58, !12, i64 64, !7, i64 72, !12, i64 80, !7, i64 88, !12, i64 96, !7, i64 104, !12, i64 112, !7, i64 120}
!29 = !{!"", !12, i64 0, !6, i64 8, !7, i64 16}
!30 = !{!12, !12, i64 0}
!31 = !{!11, !11, i64 0}
!32 = !{!33, !18, i64 20}
!33 = !{!"", !7, i64 0, !17, i64 1, !17, i64 5, !18, i64 10, !17, i64 12, !17, i64 16, !18, i64 20, !18, i64 22, !18, i64 24}
!34 = !{!35, !12, i64 8}
!35 = !{!"_EFI_MTFTP4_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56}
!36 = !{!37, !12, i64 0}
!37 = !{!"", !12, i64 0, !12, i64 8}
!38 = !{!37, !12, i64 8}
!39 = !{!35, !12, i64 16}
!40 = !{!10, !7, i64 359}
!41 = !{!7, !7, i64 0}
!42 = !{!10, !7, i64 10640}
!43 = !{!35, !12, i64 24}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass