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

; 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.MTFTP4_OPTION = type { i16, i8, i32, i32, i16, i8, i32 }
%struct._MTFTP4_PROTOCOL = type { i32, %struct._LIST_ENTRY, %struct._EFI_MTFTP4_PROTOCOL, i64, i8, ptr, ptr, %struct.EFI_MTFTP4_CONFIG_DATA, ptr, %struct.MTFTP4_OPTION, i16, i16, i16, %struct._LIST_ENTRY, i32, i16, i16, i32, ptr, ptr, i32, i32, i32, i32, i32, i16, i8, ptr }
%struct._EFI_MTFTP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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_IPv4_ADDRESS = type { [4 x i8] }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct._MTFTP4_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i16, %struct._LIST_ENTRY, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { 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 }
%struct._UDP_IO = type { i32, %struct._LIST_ENTRY, i64, i8, ptr, ptr, ptr, %struct.EFI_SIMPLE_NETWORK_MODE, %struct._LIST_ENTRY, ptr, %union.anon, %union.anon.0 }
%struct.EFI_SIMPLE_NETWORK_MODE = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x %struct.EFI_MAC_ADDRESS], %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i8, i8 }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%union.anon = type { ptr }
%union.anon.0 = type { %struct.EFI_UDP6_CONFIG_DATA }
%struct.EFI_UDP6_CONFIG_DATA = type { i8, i8, i8, i8, i8, i32, i32, %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }

@.str = external hidden unnamed_addr constant [154 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@gBS = external global ptr, align 8
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4
@.str.8 = external hidden unnamed_addr constant [52 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

declare i64 @UdpIoRecvDatagram(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

; 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 i64 @Mtftp4RrqSendAck(ptr noundef, i16 noundef zeroext) #2

declare zeroext i8 @DebugAssertEnabled() #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) #1

declare i64 @Mtftp4SendError(ptr noundef, i16 noundef zeroext, ptr noundef) #1

declare i64 @Mtftp4GetNextBlockNum(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @Mtftp4RrqHandleOack(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3, ptr noundef %4) #2 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca %struct.MTFTP4_OPTION, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i8 %3, ptr %10, align 1, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, 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
  %17 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 0, ptr %17, align 1, !tbaa !11
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %18, i32 0, i32 13
  %20 = call i64 @Mtftp4GetNextBlockNum(ptr noundef %19)
  store i64 %20, ptr %14, align 8, !tbaa !12
  br label %21

21:                                               ; preds = %5
  %22 = call zeroext i8 @DebugAssertEnabled()
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %24, label %29

24:                                               ; preds = %21
  %25 = load i64, ptr %14, align 8, !tbaa !12
  %26 = icmp ne i64 %25, -1
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @DebugAssert(ptr noundef @.str, i64 noundef 498, ptr noundef @.str.5)
  br label %28

28:                                               ; preds = %27, %24
  br label %29

29:                                               ; preds = %28, %21
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %32, i32 0, i32 26
  %34 = load i8, ptr %33, align 2, !tbaa !14
  %35 = zext i8 %34 to i32
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %41

37:                                               ; preds = %31
  %38 = load i64, ptr %14, align 8, !tbaa !12
  %39 = icmp ne i64 %38, 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  store i64 0, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

41:                                               ; preds = %37, %31
  %42 = call ptr @ZeroMem(ptr noundef %12, i64 noundef 20)
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = call i64 @Mtftp4ParseOptionOack(ptr noundef %43, i32 noundef %44, ptr noundef %12)
  store i64 %45, ptr %13, align 8, !tbaa !12
  %46 = load i64, ptr %13, align 8, !tbaa !12
  %47 = icmp slt i64 %46, 0
  br i1 %47, label %54, label %48

48:                                               ; preds = %41
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %50, i32 0, i32 9
  %52 = call zeroext i8 @Mtftp4RrqOackValid(ptr noundef %49, ptr noundef %12, ptr noundef %51)
  %53 = icmp ne i8 %52, 0
  br i1 %53, label %61, label %54

54:                                               ; preds = %48, %41
  %55 = load i64, ptr %13, align 8, !tbaa !12
  %56 = icmp ne i64 %55, -9223372036854775799
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call i64 @Mtftp4SendError(ptr noundef %58, i16 noundef zeroext 4, ptr noundef @.str.6)
  br label %60

60:                                               ; preds = %57, %54
  store i64 -9223372036854775785, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

61:                                               ; preds = %48
  %62 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 6
  %63 = load i32, ptr %62, align 4, !tbaa !22
  %64 = and i32 %63, 8
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %189

66:                                               ; preds = %61
  %67 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 5
  %68 = load i8, ptr %67, align 2, !tbaa !23
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %69, i32 0, i32 26
  store i8 %68, ptr %70, align 2, !tbaa !14
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %71, i32 0, i32 24
  %73 = load i32, ptr %72, align 8, !tbaa !24
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %188

75:                                               ; preds = %66
  %76 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 3
  %77 = load i32, ptr %76, align 4, !tbaa !25
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %84, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 4
  %81 = load i16, ptr %80, align 4, !tbaa !26
  %82 = zext i16 %81 to i32
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %79, %75
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call i64 @Mtftp4SendError(ptr noundef %85, i16 noundef zeroext 4, ptr noundef @.str.7)
  store i64 -9223372036854775785, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

87:                                               ; preds = %79
  %88 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 3
  %89 = load i32, ptr %88, align 4, !tbaa !25
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %90, i32 0, i32 24
  store i32 %89, ptr %91, align 8, !tbaa !24
  %92 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 4
  %93 = load i16, ptr %92, align 4, !tbaa !26
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %94, i32 0, i32 25
  store i16 %93, ptr %95, align 4, !tbaa !27
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %96, i32 0, i32 27
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = icmp eq ptr %98, null
  br i1 %99, label %100, label %148

100:                                              ; preds = %87
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %101, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !29
  %104 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %106, i32 0, i32 5
  %108 = load ptr, ptr %107, align 8, !tbaa !29
  %109 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %108, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !33
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = call ptr @UdpIoCreateIo(ptr noundef %105, ptr noundef %110, ptr noundef @Mtftp4RrqConfigMcastPort, i8 noundef zeroext 4, ptr noundef %111)
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %113, i32 0, i32 27
  store ptr %112, ptr %114, align 8, !tbaa !28
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %115, i32 0, i32 27
  %117 = load ptr, ptr %116, align 8, !tbaa !28
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %147

119:                                              ; preds = %100
  %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 !34
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %123, i32 0, i32 27
  %125 = load ptr, ptr %124, align 8, !tbaa !28
  %126 = getelementptr inbounds %struct._UDP_IO, ptr %125, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !37
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %128, i32 0, i32 5
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %130, i32 0, i32 7
  %132 = load ptr, ptr %131, align 8, !tbaa !33
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !40
  %136 = call i64 %122(ptr noundef %127, ptr noundef @gEfiUdp4ProtocolGuid, ptr noundef %15, ptr noundef %132, ptr noundef %135, i32 noundef 8)
  store i64 %136, ptr %13, align 8, !tbaa !12
  %137 = load i64, ptr %13, align 8, !tbaa !12
  %138 = icmp slt i64 %137, 0
  br i1 %138, label %139, label %146

139:                                              ; preds = %119
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %140, i32 0, i32 27
  %142 = load ptr, ptr %141, align 8, !tbaa !28
  %143 = call i64 @UdpIoFreeIo(ptr noundef %142)
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %144, i32 0, i32 27
  store ptr null, ptr %145, align 8, !tbaa !28
  store i64 -9223372036854775801, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

146:                                              ; preds = %119
  br label %147

147:                                              ; preds = %146, %100
  br label %148

148:                                              ; preds = %147, %87
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %149, i32 0, i32 27
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = icmp eq ptr %151, null
  br i1 %152, label %153, label %154

153:                                              ; preds = %148
  store i64 -9223372036854775801, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

154:                                              ; preds = %148
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %155, i32 0, i32 27
  %157 = load ptr, ptr %156, align 8, !tbaa !28
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = call i64 @UdpIoRecvDatagram(ptr noundef %157, ptr noundef @Mtftp4RrqInput, ptr noundef %158, i32 noundef 0)
  store i64 %159, ptr %13, align 8, !tbaa !12
  %160 = load i64, ptr %13, align 8, !tbaa !12
  %161 = icmp slt i64 %160, 0
  br i1 %161, label %162, label %166

162:                                              ; preds = %154
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = call i64 @Mtftp4SendError(ptr noundef %163, i16 noundef zeroext 2, ptr noundef @.str.8)
  %165 = load i64, ptr %13, align 8, !tbaa !12
  store i64 %165, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

166:                                              ; preds = %154
  %167 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 0
  %168 = load i16, ptr %167, align 4, !tbaa !41
  %169 = zext i16 %168 to i32
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %166
  %172 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 0
  %173 = load i16, ptr %172, align 4, !tbaa !41
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %174, i32 0, i32 11
  store i16 %173, ptr %175, align 2, !tbaa !42
  br label %176

176:                                              ; preds = %171, %166
  %177 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 1
  %178 = load i8, ptr %177, align 2, !tbaa !43
  %179 = zext i8 %178 to i32
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %187

181:                                              ; preds = %176
  %182 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 1
  %183 = load i8, ptr %182, align 2, !tbaa !43
  %184 = zext i8 %183 to i32
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %185, i32 0, i32 23
  store i32 %184, ptr %186, align 4, !tbaa !44
  br label %187

187:                                              ; preds = %181, %176
  br label %188

188:                                              ; preds = %187, %66
  br label %213

189:                                              ; preds = %61
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %190, i32 0, i32 26
  store i8 1, ptr %191, align 2, !tbaa !14
  %192 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 0
  %193 = load i16, ptr %192, align 4, !tbaa !41
  %194 = zext i16 %193 to i32
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %201

196:                                              ; preds = %189
  %197 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 0
  %198 = load i16, ptr %197, align 4, !tbaa !41
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %199, i32 0, i32 11
  store i16 %198, ptr %200, align 2, !tbaa !42
  br label %201

201:                                              ; preds = %196, %189
  %202 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 1
  %203 = load i8, ptr %202, align 2, !tbaa !43
  %204 = zext i8 %203 to i32
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %212

206:                                              ; preds = %201
  %207 = getelementptr inbounds %struct.MTFTP4_OPTION, ptr %12, i32 0, i32 1
  %208 = load i8, ptr %207, align 2, !tbaa !43
  %209 = zext i8 %208 to i32
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._MTFTP4_PROTOCOL, ptr %210, i32 0, i32 23
  store i32 %209, ptr %211, align 4, !tbaa !44
  br label %212

212:                                              ; preds = %206, %201
  br label %213

213:                                              ; preds = %212, %188
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load i64, ptr %14, align 8, !tbaa !12
  %216 = sub nsw i64 %215, 1
  %217 = trunc i64 %216 to i16
  %218 = call i64 @Mtftp4RrqSendAck(ptr noundef %214, i16 noundef zeroext %217)
  store i64 %218, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %219

219:                                              ; preds = %213, %162, %153, %139, %84, %60, %40
  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 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 20, ptr %12) #3
  %220 = load i64, ptr %6, align 8
  ret i64 %220
}

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

declare i64 @Mtftp4ParseOptionOack(ptr noundef, i32 noundef, ptr noundef) #1

declare ptr @UdpIoCreateIo(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef) #1

declare i64 @UdpIoFreeIo(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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !7, i64 262}
!15 = !{!"_MTFTP4_PROTOCOL", !10, i64 0, !16, i64 8, !17, i64 24, !13, i64 88, !7, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !6, i64 152, !21, i64 160, !20, i64 180, !20, i64 182, !20, i64 184, !16, i64 192, !10, i64 208, !20, i64 212, !20, i64 214, !10, i64 216, !6, i64 224, !6, i64 232, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !20, i64 260, !7, i64 262, !6, i64 264}
!16 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!17 = !{!"_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}
!18 = !{!"", !7, i64 0, !19, i64 1, !19, i64 5, !20, i64 10, !19, i64 12, !19, i64 16, !20, i64 20, !20, i64 22, !20, i64 24}
!19 = !{!"", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"", !20, i64 0, !7, i64 2, !10, i64 4, !10, i64 8, !20, i64 12, !7, i64 14, !10, i64 16}
!22 = !{!21, !10, i64 16}
!23 = !{!21, !7, i64 14}
!24 = !{!15, !10, i64 256}
!25 = !{!21, !10, i64 8}
!26 = !{!21, !20, i64 12}
!27 = !{!15, !20, i64 260}
!28 = !{!15, !6, i64 264}
!29 = !{!15, !6, i64 104}
!30 = !{!31, !6, i64 64}
!31 = !{!"_MTFTP4_SERVICE", !10, i64 0, !32, i64 8, !20, i64 24, !16, i64 32, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!32 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!33 = !{!31, !6, i64 72}
!34 = !{!35, !6, i64 280}
!35 = !{!"", !36, 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}
!36 = !{!"", !13, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!37 = !{!38, !6, i64 56}
!38 = !{!"_UDP_IO", !10, i64 0, !16, i64 8, !13, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !39, i64 64, !16, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!39 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !19, i64 552, !19, i64 584, !19, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!40 = !{!15, !6, i64 112}
!41 = !{!21, !20, i64 0}
!42 = !{!15, !20, i64 182}
!43 = !{!21, !7, i64 2}
!44 = !{!15, !10, i64 252}


; 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] }
%struct.MTFTP4_OPTION = type { i16, i8, i32, i32, i16, i8, i32 }

@.str = external hidden unnamed_addr constant [154 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@gBS = external local_unnamed_addr global ptr, align 8
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1

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

declare i64 @UdpIoRecvDatagram(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; 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
declare dso_local i64 @Mtftp4RrqSendAck(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare i64 @Mtftp4SendError(ptr noundef, i16 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare i64 @Mtftp4GetNextBlockNum(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Mtftp4RrqOackValid(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local i64 @Mtftp4RrqHandleOack(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #2 {
  %6 = alloca %struct.MTFTP4_OPTION, align 4
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  store i8 0, ptr %4, align 1, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 192
  %9 = tail call i64 @Mtftp4GetNextBlockNum(ptr noundef nonnull %8) #3
  %10 = tail call zeroext i8 @DebugAssertEnabled() #3
  %11 = icmp eq i8 %10, 0
  %12 = icmp ne i64 %9, -1
  %or.cond7 = select i1 %11, i1 true, i1 %12
  br i1 %or.cond7, label %14, label %13

13:                                               ; preds = %5
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 498, ptr noundef nonnull @.str.5) #3
  br label %14

14:                                               ; preds = %13, %5
  %15 = getelementptr inbounds i8, ptr %0, i64 262
  %16 = load i8, ptr %15, align 2, !tbaa !8
  %17 = icmp ne i8 %16, 0
  %18 = icmp ne i64 %9, 1
  %or.cond = select i1 %17, i1 %18, i1 false
  br i1 %or.cond, label %.thread63, label %19

19:                                               ; preds = %14
  %20 = call ptr @ZeroMem(ptr noundef nonnull %6, i64 noundef 20) #3
  %21 = call i64 @Mtftp4ParseOptionOack(ptr noundef %1, i32 noundef %2, ptr noundef nonnull %6) #3
  %22 = icmp slt i64 %21, 0
  br i1 %22, label %26, label %23

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 160
  %25 = call zeroext i8 @Mtftp4RrqOackValid(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %24)
  %.not = icmp eq i8 %25, 0
  br i1 %.not, label %.thread, label %28

26:                                               ; preds = %19
  %.not61 = icmp eq i64 %21, -9223372036854775799
  br i1 %.not61, label %.thread63, label %.thread

.thread:                                          ; preds = %23, %26
  %27 = call i64 @Mtftp4SendError(ptr noundef nonnull %0, i16 noundef zeroext 4, ptr noundef nonnull @.str.6) #3
  br label %.thread63

28:                                               ; preds = %23
  %29 = getelementptr inbounds i8, ptr %6, i64 16
  %30 = load i32, ptr %29, align 4, !tbaa !19
  %31 = and i32 %30, 8
  %.not55 = icmp eq i32 %31, 0
  br i1 %.not55, label %90, label %32

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %6, i64 14
  %34 = load i8, ptr %33, align 2, !tbaa !20
  store i8 %34, ptr %15, align 2, !tbaa !8
  %35 = getelementptr inbounds i8, ptr %0, i64 256
  %36 = load i32, ptr %35, align 8, !tbaa !21
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %99

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = icmp eq i32 %40, 0
  %42 = getelementptr inbounds i8, ptr %6, i64 12
  %43 = load i16, ptr %42, align 4
  %44 = icmp eq i16 %43, 0
  %or.cond5 = select i1 %41, i1 true, i1 %44
  br i1 %or.cond5, label %45, label %47

45:                                               ; preds = %38
  %46 = call i64 @Mtftp4SendError(ptr noundef nonnull %0, i16 noundef zeroext 4, ptr noundef nonnull @.str.7) #3
  br label %.thread63

47:                                               ; preds = %38
  store i32 %40, ptr %35, align 8, !tbaa !21
  %48 = getelementptr inbounds i8, ptr %0, i64 260
  store i16 %43, ptr %48, align 4, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %0, i64 264
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %.thread64

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %0, i64 104
  %54 = load ptr, ptr %53, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %54, i64 64
  %56 = load ptr, ptr %55, align 8, !tbaa !26
  %57 = getelementptr inbounds i8, ptr %54, i64 72
  %58 = load ptr, ptr %57, align 8, !tbaa !29
  %59 = call ptr @UdpIoCreateIo(ptr noundef %56, ptr noundef %58, ptr noundef nonnull @Mtftp4RrqConfigMcastPort, i8 noundef zeroext 4, ptr noundef nonnull %0) #3
  store ptr %59, ptr %49, align 8, !tbaa !24
  %.not58 = icmp eq ptr %59, null
  br i1 %.not58, label %.thread63, label %60

60:                                               ; preds = %52
  %61 = load ptr, ptr @gBS, align 8, !tbaa !30
  %62 = getelementptr inbounds i8, ptr %61, i64 280
  %63 = load ptr, ptr %62, align 8, !tbaa !31
  %64 = getelementptr inbounds i8, ptr %59, i64 56
  %65 = load ptr, ptr %64, align 8, !tbaa !34
  %66 = load ptr, ptr %53, align 8, !tbaa !25
  %67 = getelementptr inbounds i8, ptr %66, i64 72
  %68 = load ptr, ptr %67, align 8, !tbaa !29
  %69 = getelementptr inbounds i8, ptr %0, i64 112
  %70 = load ptr, ptr %69, align 8, !tbaa !37
  %71 = call i64 %63(ptr noundef %65, ptr noundef nonnull @gEfiUdp4ProtocolGuid, ptr noundef nonnull %7, ptr noundef %68, ptr noundef %70, i32 noundef 8) #3
  %72 = icmp slt i64 %71, 0
  %73 = load ptr, ptr %49, align 8, !tbaa !24
  br i1 %72, label %74, label %76

74:                                               ; preds = %60
  %75 = call i64 @UdpIoFreeIo(ptr noundef %73) #3
  store ptr null, ptr %49, align 8, !tbaa !24
  br label %.thread63

76:                                               ; preds = %60
  %77 = icmp eq ptr %73, null
  br i1 %77, label %.thread63, label %.thread64

.thread64:                                        ; preds = %47, %76
  %78 = phi ptr [ %73, %76 ], [ %50, %47 ]
  %79 = call i64 @UdpIoRecvDatagram(ptr noundef nonnull %78, ptr noundef nonnull @Mtftp4RrqInput, ptr noundef nonnull %0, i32 noundef 0) #3
  %80 = icmp slt i64 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %.thread64
  %82 = call i64 @Mtftp4SendError(ptr noundef nonnull %0, i16 noundef zeroext 2, ptr noundef nonnull @.str.8) #3
  br label %.thread63

83:                                               ; preds = %.thread64
  %84 = load i16, ptr %6, align 4, !tbaa !38
  %.not59 = icmp eq i16 %84, 0
  br i1 %.not59, label %87, label %85

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %0, i64 182
  store i16 %84, ptr %86, align 2, !tbaa !39
  br label %87

87:                                               ; preds = %85, %83
  %88 = getelementptr inbounds i8, ptr %6, i64 2
  %89 = load i8, ptr %88, align 2, !tbaa !40
  %.not60 = icmp eq i8 %89, 0
  br i1 %.not60, label %99, label %.sink.split

90:                                               ; preds = %28
  store i8 1, ptr %15, align 2, !tbaa !8
  %91 = load i16, ptr %6, align 4, !tbaa !38
  %.not56 = icmp eq i16 %91, 0
  br i1 %.not56, label %94, label %92

92:                                               ; preds = %90
  %93 = getelementptr inbounds i8, ptr %0, i64 182
  store i16 %91, ptr %93, align 2, !tbaa !39
  br label %94

94:                                               ; preds = %92, %90
  %95 = getelementptr inbounds i8, ptr %6, i64 2
  %96 = load i8, ptr %95, align 2, !tbaa !40
  %.not57 = icmp eq i8 %96, 0
  br i1 %.not57, label %99, label %.sink.split

.sink.split:                                      ; preds = %94, %87
  %.sink66 = phi i8 [ %89, %87 ], [ %96, %94 ]
  %97 = zext i8 %.sink66 to i32
  %98 = getelementptr inbounds i8, ptr %0, i64 252
  store i32 %97, ptr %98, align 4, !tbaa !41
  br label %99

99:                                               ; preds = %.sink.split, %94, %32, %87
  %100 = trunc i64 %9 to i16
  %101 = add i16 %100, -1
  %102 = call i64 @Mtftp4RrqSendAck(ptr noundef nonnull %0, i16 noundef zeroext %101)
  br label %.thread63

.thread63:                                        ; preds = %52, %76, %26, %.thread, %14, %99, %81, %74, %45
  %.0 = phi i64 [ -9223372036854775785, %45 ], [ -9223372036854775801, %74 ], [ %79, %81 ], [ %102, %99 ], [ 0, %14 ], [ -9223372036854775785, %.thread ], [ -9223372036854775785, %26 ], [ -9223372036854775801, %76 ], [ -9223372036854775801, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #3
  ret i64 %.0
}

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

declare i64 @Mtftp4ParseOptionOack(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @UdpIoCreateIo(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare i64 @UdpIoFreeIo(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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !6, i64 262}
!9 = !{!"_MTFTP4_PROTOCOL", !10, i64 0, !11, i64 8, !13, i64 24, !14, i64 88, !6, i64 96, !12, i64 104, !12, i64 112, !15, i64 120, !12, i64 152, !18, i64 160, !17, i64 180, !17, i64 182, !17, i64 184, !11, i64 192, !10, i64 208, !17, i64 212, !17, i64 214, !10, i64 216, !12, i64 224, !12, i64 232, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !17, i64 260, !6, i64 262, !12, i64 264}
!10 = !{!"int", !6, i64 0}
!11 = !{!"_LIST_ENTRY", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"_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}
!14 = !{!"long long", !6, i64 0}
!15 = !{!"", !6, i64 0, !16, i64 1, !16, i64 5, !17, i64 10, !16, i64 12, !16, i64 16, !17, i64 20, !17, i64 22, !17, i64 24}
!16 = !{!"", !6, i64 0}
!17 = !{!"short", !6, i64 0}
!18 = !{!"", !17, i64 0, !6, i64 2, !10, i64 4, !10, i64 8, !17, i64 12, !6, i64 14, !10, i64 16}
!19 = !{!18, !10, i64 16}
!20 = !{!18, !6, i64 14}
!21 = !{!9, !10, i64 256}
!22 = !{!18, !10, i64 8}
!23 = !{!9, !17, i64 260}
!24 = !{!9, !12, i64 264}
!25 = !{!9, !12, i64 104}
!26 = !{!27, !12, i64 64}
!27 = !{!"_MTFTP4_SERVICE", !10, i64 0, !28, i64 8, !17, i64 24, !11, i64 32, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80}
!28 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !12, i64 0, !12, i64 8}
!29 = !{!27, !12, i64 72}
!30 = !{!12, !12, i64 0}
!31 = !{!32, !12, i64 280}
!32 = !{!"", !33, i64 0, !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, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368}
!33 = !{!"", !14, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!34 = !{!35, !12, i64 56}
!35 = !{!"_UDP_IO", !10, i64 0, !11, i64 8, !14, i64 24, !6, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !36, i64 64, !11, i64 720, !12, i64 736, !6, i64 744, !6, i64 752}
!36 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !16, i64 552, !16, i64 584, !16, i64 616, !6, i64 648, !6, i64 649, !6, i64 650, !6, i64 651, !6, i64 652}
!37 = !{!9, !12, i64 112}
!38 = !{!18, !17, i64 0}
!39 = !{!9, !17, i64 182}
!40 = !{!18, !6, i64 2}
!41 = !{!9, !10, i64 252}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass