; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/Ip6Dxe (Ip6ConfigSetGateway)

; 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._IP6_CONFIG_INSTANCE = type { i32, i8, %struct._LIST_ENTRY, i16, %struct.EFI_IP6_CONFIG_INTERFACE_INFO, %struct.EFI_IP6_CONFIG_INTERFACE_ID, i32, %struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS, [7 x %struct.IP6_CONFIG_DATA_ITEM], %struct.NET_MAP, %struct.NET_MAP, %struct._EFI_IP6_CONFIG_PROTOCOL, ptr, ptr, ptr, ptr, i8, i32, ptr, i32, ptr, i32, %struct._IP6_FORM_CALLBACK_INFO, %struct.IP6_CONFIG_NVDATA }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.EFI_IP6_CONFIG_INTERFACE_INFO = type { [32 x i16], i8, i32, %struct.EFI_MAC_ADDRESS, i32, ptr, i32, ptr }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.EFI_IP6_CONFIG_INTERFACE_ID = type { [8 x i8] }
%struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS = type { i32 }
%struct.IP6_CONFIG_DATA_ITEM = type { ptr, ptr, i64, i8, %struct.NET_MAP, %union.IP6_CONFIG_DATA, i64 }
%union.IP6_CONFIG_DATA = type { ptr }
%struct.NET_MAP = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64 }
%struct._EFI_IP6_CONFIG_PROTOCOL = type { ptr, ptr, ptr, ptr }
%struct._IP6_FORM_CALLBACK_INFO = type { i32, ptr, %struct._EFI_HII_CONFIG_ACCESS_PROTOCOL, ptr, ptr }
%struct._EFI_HII_CONFIG_ACCESS_PROTOCOL = type { ptr, ptr, ptr }
%struct.IP6_CONFIG_NVDATA = type { i32, %struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS, %struct.EFI_IP6_CONFIG_INTERFACE_ID, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i32 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct._IP6_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i64, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, %struct.IP6_LINK_RX_TOKEN, %struct.IP6_ASSEMBLE_TABLE, %struct.IP6_MLD_SERVICE_DATA, %struct.EFI_IPv6_ADDRESS, i8, i8, i8, i8, i8, i32, i32, i32, i32, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i8, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, %struct.EFI_MANAGED_NETWORK_CONFIG_DATA, %struct.EFI_SIMPLE_NETWORK_MODE, ptr, ptr, %struct._IP6_CONFIG_INSTANCE, ptr, i32, i32 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.IP6_LINK_RX_TOKEN = type { i32, ptr, ptr, %struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN }
%struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { ptr }
%struct.IP6_ASSEMBLE_TABLE = type { [127 x %struct._LIST_ENTRY] }
%struct.IP6_MLD_SERVICE_DATA = type { i64, %struct._LIST_ENTRY }
%struct.EFI_MANAGED_NETWORK_CONFIG_DATA = type { i32, i32, i16, i8, i8, i8, i8, i8, i8, i8 }
%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 }

@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 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 zeroext i8 @DebugAssertEnabled() #1

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

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

declare ptr @AllocatePool(i64 noundef) #1

declare void @FreePool(ptr noundef) #1

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

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

declare zeroext i8 @NetIp6IsValidUnicast(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6ConfigSetGateway(ptr noundef %0, i64 noundef %1, ptr noundef %2) #2 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, 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 1, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %21 = load i64, ptr %6, align 8, !tbaa !9
  %22 = urem i64 %21, 16
  %23 = icmp ne i64 %22, 0
  br i1 %23, label %27, label %24

24:                                               ; preds = %3
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = icmp eq i64 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24, %3
  store i64 -9223372036854775804, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

28:                                               ; preds = %24
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  store i64 -9223372036854775800, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

34:                                               ; preds = %28
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = udiv i64 %36, 16
  store i64 %37, ptr %13, align 8, !tbaa !9
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %71, %34
  %39 = load i64, ptr %8, align 8, !tbaa !9
  %40 = load i64, ptr %13, align 8, !tbaa !9
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %42, label %74

42:                                               ; preds = %38
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %43, i64 %44
  %46 = call zeroext i8 @NetIp6IsValidUnicast(ptr noundef %45)
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %42
  store i64 -9223372036854775806, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

49:                                               ; preds = %42
  %50 = load i64, ptr %8, align 8, !tbaa !9
  %51 = add i64 %50, 1
  store i64 %51, ptr %9, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %67, %49
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = icmp ult i64 %53, %54
  br i1 %55, label %56, label %70

56:                                               ; preds = %52
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %57, i64 %58
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %60, i64 %61
  %63 = call i64 @CompareMem(ptr noundef %59, ptr noundef %62, i64 noundef 16)
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %56
  store i64 -9223372036854775806, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

66:                                               ; preds = %56
  br label %67

67:                                               ; preds = %66
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr %9, align 8, !tbaa !9
  br label %52, !llvm.loop !24

70:                                               ; preds = %52
  br label %71

71:                                               ; preds = %70
  %72 = load i64, ptr %8, align 8, !tbaa !9
  %73 = add i64 %72, 1
  store i64 %73, ptr %8, align 8, !tbaa !9
  br label %38, !llvm.loop !26

74:                                               ; preds = %38
  %75 = call zeroext i8 @DebugAssertEnabled()
  %76 = zext i8 %75 to i32
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %88

78:                                               ; preds = %74
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = ptrtoint ptr %79 to i64
  %81 = sub i64 %80, ptrtoint (ptr getelementptr inbounds (%struct._IP6_SERVICE, ptr null, i32 0, i32 39) to i64)
  %82 = inttoptr i64 %81 to ptr
  %83 = getelementptr inbounds %struct._IP6_SERVICE, ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !27
  %85 = icmp ne i32 %84, 1396068425
  br i1 %85, label %86, label %88

86:                                               ; preds = %78
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1217, ptr noundef @.str.1)
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  br label %93

88:                                               ; preds = %78, %74
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = ptrtoint ptr %89 to i64
  %91 = sub i64 %90, ptrtoint (ptr getelementptr inbounds (%struct._IP6_SERVICE, ptr null, i32 0, i32 39) to i64)
  %92 = inttoptr i64 %91 to ptr
  br label %93

93:                                               ; preds = %88, %86
  %94 = phi ptr [ %87, %86 ], [ %92, %88 ]
  store ptr %94, ptr %17, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %95, i32 0, i32 8
  %97 = getelementptr inbounds [7 x %struct.IP6_CONFIG_DATA_ITEM], ptr %96, i64 0, i64 5
  store ptr %97, ptr %14, align 8, !tbaa !5
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %98, i32 0, i32 5
  %100 = load ptr, ptr %99, align 8, !tbaa !35
  store ptr %100, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %101, i32 0, i32 6
  %103 = load i64, ptr %102, align 8, !tbaa !36
  %104 = udiv i64 %103, 16
  store i64 %104, ptr %12, align 8, !tbaa !9
  store i8 0, ptr %15, align 1, !tbaa !35
  store i8 0, ptr %16, align 1, !tbaa !35
  %105 = load i64, ptr %13, align 8, !tbaa !9
  %106 = load i64, ptr %12, align 8, !tbaa !9
  %107 = icmp ne i64 %105, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %93
  %109 = load i64, ptr %6, align 8, !tbaa !9
  %110 = call ptr @AllocatePool(i64 noundef %109)
  store ptr %110, ptr %19, align 8, !tbaa !5
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %114

113:                                              ; preds = %108
  store i64 -9223372036854775799, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

114:                                              ; preds = %108
  br label %116

115:                                              ; preds = %93
  store ptr null, ptr %19, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %115, %114
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %157, %116
  %118 = load i64, ptr %8, align 8, !tbaa !9
  %119 = load i64, ptr %12, align 8, !tbaa !9
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %121, label %160

121:                                              ; preds = %117
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %137, %121
  %123 = load i64, ptr %9, align 8, !tbaa !9
  %124 = load i64, ptr %13, align 8, !tbaa !9
  %125 = icmp ult i64 %123, %124
  br i1 %125, label %126, label %140

126:                                              ; preds = %122
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load i64, ptr %8, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %127, i64 %128
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load i64, ptr %9, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %130, i64 %131
  %133 = call i64 @CompareMem(ptr noundef %129, ptr noundef %132, i64 noundef 16)
  %134 = icmp eq i64 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %126
  store i8 1, ptr %15, align 1, !tbaa !35
  br label %140

136:                                              ; preds = %126
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %9, align 8, !tbaa !9
  %139 = add i64 %138, 1
  store i64 %139, ptr %9, align 8, !tbaa !9
  br label %122, !llvm.loop !38

140:                                              ; preds = %135, %122
  %141 = load i64, ptr %9, align 8, !tbaa !9
  %142 = load i64, ptr %13, align 8, !tbaa !9
  %143 = icmp eq i64 %141, %142
  br i1 %143, label %144, label %156

144:                                              ; preds = %140
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = load i64, ptr %8, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %146, i64 %147
  %149 = call ptr @Ip6FindDefaultRouter(ptr noundef %145, ptr noundef %148)
  store ptr %149, ptr %18, align 8, !tbaa !5
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %155

152:                                              ; preds = %144
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  call void @Ip6DestroyDefaultRouter(ptr noundef %153, ptr noundef %154)
  br label %155

155:                                              ; preds = %152, %144
  br label %156

156:                                              ; preds = %155, %140
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %8, align 8, !tbaa !9
  %159 = add i64 %158, 1
  store i64 %159, ptr %8, align 8, !tbaa !9
  br label %117, !llvm.loop !39

160:                                              ; preds = %117
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %180, %160
  %162 = load i64, ptr %8, align 8, !tbaa !9
  %163 = load i64, ptr %13, align 8, !tbaa !9
  %164 = icmp ult i64 %162, %163
  br i1 %164, label %165, label %183

165:                                              ; preds = %161
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = load i64, ptr %8, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %167, i64 %168
  %170 = call ptr @Ip6FindDefaultRouter(ptr noundef %166, ptr noundef %169)
  store ptr %170, ptr %18, align 8, !tbaa !5
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = icmp eq ptr %171, null
  br i1 %172, label %173, label %179

173:                                              ; preds = %165
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = load i64, ptr %8, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %175, i64 %176
  %178 = call ptr @Ip6CreateDefaultRouter(ptr noundef %174, ptr noundef %177, i16 noundef zeroext -1)
  store i8 1, ptr %16, align 1, !tbaa !35
  br label %179

179:                                              ; preds = %173, %165
  br label %180

180:                                              ; preds = %179
  %181 = load i64, ptr %8, align 8, !tbaa !9
  %182 = add i64 %181, 1
  store i64 %182, ptr %8, align 8, !tbaa !9
  br label %161, !llvm.loop !40

183:                                              ; preds = %161
  %184 = load i8, ptr %15, align 1, !tbaa !35
  %185 = icmp ne i8 %184, 0
  br i1 %185, label %192, label %186

186:                                              ; preds = %183
  %187 = load i8, ptr %16, align 1, !tbaa !35
  %188 = icmp ne i8 %187, 0
  br i1 %188, label %192, label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %190, i32 0, i32 2
  store i64 0, ptr %191, align 8, !tbaa !41
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

192:                                              ; preds = %186, %183
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %208

195:                                              ; preds = %192
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %196, i32 0, i32 5
  %198 = load ptr, ptr %197, align 8, !tbaa !35
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %204

200:                                              ; preds = %195
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %201, i32 0, i32 5
  %203 = load ptr, ptr %202, align 8, !tbaa !35
  call void @FreePool(ptr noundef %203)
  br label %204

204:                                              ; preds = %200, %195
  %205 = load ptr, ptr %19, align 8, !tbaa !5
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %206, i32 0, i32 5
  store ptr %205, ptr %207, align 8, !tbaa !35
  br label %208

208:                                              ; preds = %204, %192
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %209, i32 0, i32 5
  %211 = load ptr, ptr %210, align 8, !tbaa !35
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = load i64, ptr %6, align 8, !tbaa !9
  %214 = call ptr @CopyMem(ptr noundef %211, ptr noundef %212, i64 noundef %213)
  %215 = load i64, ptr %6, align 8, !tbaa !9
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %216, i32 0, i32 6
  store i64 %215, ptr %217, align 8, !tbaa !36
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %218, i32 0, i32 2
  store i64 0, ptr %219, align 8, !tbaa !41
  store i64 0, ptr %4, align 8
  store i32 1, ptr %20, align 4
  br label %220

220:                                              ; preds = %208, %189, %113, %65, %48, %33, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %221 = load i64, ptr %4, align 8
  ret i64 %221
}

declare ptr @Ip6FindDefaultRouter(ptr noundef, ptr noundef) #1

declare void @Ip6DestroyDefaultRouter(ptr noundef, ptr noundef) #1

declare ptr @Ip6CreateDefaultRouter(ptr noundef, ptr noundef, i16 noundef zeroext) #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, !13, i64 176}
!12 = !{!"_IP6_CONFIG_INSTANCE", !13, i64 0, !7, i64 4, !14, i64 8, !15, i64 24, !16, i64 32, !17, i64 168, !13, i64 176, !18, i64 180, !7, i64 184, !19, i64 800, !19, i64 840, !20, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !13, i64 948, !6, i64 952, !13, i64 960, !6, i64 968, !13, i64 976, !21, i64 984, !23, i64 1040}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!"short", !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 64, !13, i64 68, !17, i64 72, !13, i64 104, !6, i64 112, !13, i64 120, !6, i64 128}
!17 = !{!"", !7, i64 0}
!18 = !{!"", !13, i64 0}
!19 = !{!"", !14, i64 0, !14, i64 16, !10, i64 32}
!20 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_IP6_FORM_CALLBACK_INFO", !13, i64 0, !6, i64 8, !22, i64 16, !6, i64 40, !6, i64 48}
!22 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"", !13, i64 0, !18, i64 4, !17, i64 8, !14, i64 16, !13, i64 32, !14, i64 40, !13, i64 56, !14, i64 64, !13, i64 80}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!28, !13, i64 0}
!28 = !{!"_IP6_SERVICE", !13, i64 0, !29, i64 8, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 56, !6, i64 72, !6, i64 80, !30, i64 88, !17, i64 136, !32, i64 2168, !17, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !13, i64 2216, !13, i64 2220, !13, i64 2224, !13, i64 2228, !14, i64 2232, !14, i64 2248, !14, i64 2264, !14, i64 2280, !13, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !13, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !33, i64 2352, !34, i64 2372, !6, i64 3032, !6, i64 3040, !12, i64 3048, !6, i64 4176, !13, i64 4184, !13, i64 4188}
!29 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!30 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16, !31, i64 24}
!31 = !{!"", !6, i64 0, !10, i64 8, !7, i64 16}
!32 = !{!"", !10, i64 0, !14, i64 8}
!33 = !{!"", !13, i64 0, !13, i64 4, !15, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!34 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !17, i64 552, !17, i64 584, !17, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!35 = !{!7, !7, i64 0}
!36 = !{!37, !10, i64 80}
!37 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !7, i64 24, !19, i64 32, !7, i64 72, !10, i64 80}
!38 = distinct !{!38, !25}
!39 = distinct !{!39, !25}
!40 = distinct !{!40, !25}
!41 = !{!37, !10, 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.EFI_IPv6_ADDRESS = type { [16 x i8] }

@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

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

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #0

declare void @FreePool(ptr noundef) local_unnamed_addr #0

declare ptr @CopyMem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare i64 @CompareMem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare zeroext i8 @NetIp6IsValidUnicast(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @Ip6ConfigSetGateway(ptr noundef %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = and i64 %1, 15
  %5 = icmp ne i64 %4, 0
  %6 = icmp eq i64 %1, 0
  %or.cond = or i1 %6, %5
  br i1 %or.cond, label %.loopexit95, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 176
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.lr.ph99.preheader, label %.loopexit95

.lr.ph99.preheader:                               ; preds = %7
  %10 = lshr exact i64 %1, 4
  br label %.lr.ph99

.loopexit:                                        ; preds = %16, %13
  %exitcond.not = icmp eq i64 %14, %10
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph99, !llvm.loop !22

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.loopexit
  %.07798 = phi i64 [ %14, %.loopexit ], [ 0, %.lr.ph99.preheader ]
  %11 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %2, i64 %.07798
  %12 = tail call zeroext i8 @NetIp6IsValidUnicast(ptr noundef %11) #3
  %.not93 = icmp eq i8 %12, 0
  br i1 %.not93, label %.loopexit95, label %13

13:                                               ; preds = %.lr.ph99
  %14 = add nuw nsw i64 %.07798, 1
  %15 = icmp ult i64 %14, %10
  br i1 %15, label %.lr.ph, label %.loopexit

16:                                               ; preds = %.lr.ph
  %17 = add nuw nsw i64 %.07997, 1
  %18 = icmp ult i64 %17, %10
  br i1 %18, label %.lr.ph, label %.loopexit, !llvm.loop !24

.lr.ph:                                           ; preds = %13, %16
  %.07997 = phi i64 [ %17, %16 ], [ %14, %13 ]
  %19 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %2, i64 %.07997
  %20 = tail call i64 @CompareMem(ptr noundef %11, ptr noundef nonnull %19, i64 noundef 16) #3
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %.loopexit95, label %16

._crit_edge:                                      ; preds = %.loopexit
  %22 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not87 = icmp eq i8 %22, 0
  %.pre130 = ptrtoint ptr %0 to i64
  %.pre131 = add i64 %.pre130, -3048
  %.pre133 = inttoptr i64 %.pre131 to ptr
  br i1 %.not87, label %._crit_edge._crit_edge, label %23

23:                                               ; preds = %._crit_edge
  %24 = load i32, ptr %.pre133, align 8, !tbaa !25
  %.not88 = icmp eq i32 %24, 1396068425
  br i1 %.not88, label %._crit_edge._crit_edge, label %25

25:                                               ; preds = %23
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1217, ptr noundef nonnull @.str.1) #3
  br label %._crit_edge._crit_edge

._crit_edge._crit_edge:                           ; preds = %._crit_edge, %23, %25
  %26 = phi ptr [ %0, %25 ], [ %.pre133, %23 ], [ %.pre133, %._crit_edge ]
  %27 = getelementptr inbounds i8, ptr %0, i64 696
  %28 = load ptr, ptr %27, align 8, !tbaa !33
  %29 = getelementptr inbounds i8, ptr %0, i64 704
  %30 = load i64, ptr %29, align 8, !tbaa !34
  %31 = lshr i64 %30, 4
  %.not89 = icmp eq i64 %10, %31
  br i1 %.not89, label %35, label %32

32:                                               ; preds = %._crit_edge._crit_edge
  %33 = tail call ptr @AllocatePool(i64 noundef %1) #3
  %34 = icmp eq ptr %33, null
  br i1 %34, label %.loopexit95, label %35

35:                                               ; preds = %._crit_edge._crit_edge, %32
  %.0 = phi ptr [ %33, %32 ], [ null, %._crit_edge._crit_edge ]
  %.not120 = icmp ult i64 %30, 16
  br i1 %.not120, label %.lr.ph117.preheader, label %.preheader94.us.preheader

.preheader94.us.preheader:                        ; preds = %35
  %umax = tail call i64 @llvm.umax.i64(i64 %10, i64 1)
  br label %.preheader94.us

.preheader94.us:                                  ; preds = %.preheader94.us.preheader, %47
  %.075108.us = phi i8 [ %.176.us, %47 ], [ 0, %.preheader94.us.preheader ]
  %.178107.us = phi i64 [ %48, %47 ], [ 0, %.preheader94.us.preheader ]
  %36 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %28, i64 %.178107.us
  br label %37

37:                                               ; preds = %.preheader94.us, %41
  %.180100.us = phi i64 [ 0, %.preheader94.us ], [ %42, %41 ]
  %38 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %2, i64 %.180100.us
  %39 = tail call i64 @CompareMem(ptr noundef %36, ptr noundef %38, i64 noundef 16) #3
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %._crit_edge102.us, label %41

41:                                               ; preds = %37
  %42 = add nuw nsw i64 %.180100.us, 1
  %exitcond125.not = icmp eq i64 %42, %umax
  br i1 %exitcond125.not, label %._crit_edge102.us, label %37, !llvm.loop !36

._crit_edge102.us:                                ; preds = %41, %37
  %.180.lcssa.us = phi i64 [ %.180100.us, %37 ], [ %umax, %41 ]
  %.176.us = phi i8 [ 1, %37 ], [ %.075108.us, %41 ]
  %43 = icmp eq i64 %.180.lcssa.us, %10
  br i1 %43, label %44, label %47

44:                                               ; preds = %._crit_edge102.us
  %45 = tail call ptr @Ip6FindDefaultRouter(ptr noundef %26, ptr noundef %36) #3
  %.not92.us = icmp eq ptr %45, null
  br i1 %.not92.us, label %47, label %46

46:                                               ; preds = %44
  tail call void @Ip6DestroyDefaultRouter(ptr noundef %26, ptr noundef nonnull %45) #3
  br label %47

47:                                               ; preds = %46, %44, %._crit_edge102.us
  %48 = add nuw nsw i64 %.178107.us, 1
  %exitcond126.not = icmp eq i64 %48, %31
  br i1 %exitcond126.not, label %.preheader.loopexit123, label %.preheader94.us, !llvm.loop !37

.preheader.loopexit123:                           ; preds = %47
  %49 = icmp ne i8 %.176.us, 0
  br label %.lr.ph117.preheader

.lr.ph117.preheader:                              ; preds = %35, %.preheader.loopexit123
  %.075.lcssa = phi i1 [ false, %35 ], [ %49, %.preheader.loopexit123 ]
  %umax128 = tail call i64 @llvm.umax.i64(i64 %10, i64 1)
  br label %.lr.ph117

.lr.ph117:                                        ; preds = %.lr.ph117.preheader, %55
  %.074116 = phi i8 [ %.1, %55 ], [ 0, %.lr.ph117.preheader ]
  %.2115 = phi i64 [ %56, %55 ], [ 0, %.lr.ph117.preheader ]
  %50 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %2, i64 %.2115
  %51 = tail call ptr @Ip6FindDefaultRouter(ptr noundef %26, ptr noundef %50) #3
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %55

53:                                               ; preds = %.lr.ph117
  %54 = tail call ptr @Ip6CreateDefaultRouter(ptr noundef %26, ptr noundef %50, i16 noundef zeroext -1) #3
  br label %55

55:                                               ; preds = %.lr.ph117, %53
  %.1 = phi i8 [ 1, %53 ], [ %.074116, %.lr.ph117 ]
  %56 = add nuw nsw i64 %.2115, 1
  %exitcond129.not = icmp eq i64 %56, %umax128
  br i1 %exitcond129.not, label %._crit_edge118, label %.lr.ph117, !llvm.loop !38

._crit_edge118:                                   ; preds = %55
  %57 = icmp ne i8 %.1, 0
  %or.cond3 = select i1 %.075.lcssa, i1 true, i1 %57
  br i1 %or.cond3, label %58, label %.loopexit95.sink.split

58:                                               ; preds = %._crit_edge118
  %.not90 = icmp eq ptr %.0, null
  %.pre = load ptr, ptr %27, align 8, !tbaa !33
  br i1 %.not90, label %62, label %59

59:                                               ; preds = %58
  %.not91 = icmp eq ptr %.pre, null
  br i1 %.not91, label %61, label %60

60:                                               ; preds = %59
  tail call void @FreePool(ptr noundef nonnull %.pre) #3
  br label %61

61:                                               ; preds = %60, %59
  store ptr %.0, ptr %27, align 8, !tbaa !33
  br label %62

62:                                               ; preds = %61, %58
  %63 = phi ptr [ %.0, %61 ], [ %.pre, %58 ]
  %64 = tail call ptr @CopyMem(ptr noundef %63, ptr noundef %2, i64 noundef %1) #3
  store i64 %1, ptr %29, align 8, !tbaa !34
  br label %.loopexit95.sink.split

.loopexit95.sink.split:                           ; preds = %._crit_edge118, %62
  %.073.ph = phi i64 [ 0, %62 ], [ -9223372036854775787, %._crit_edge118 ]
  %65 = getelementptr inbounds i8, ptr %0, i64 640
  store i64 0, ptr %65, align 8, !tbaa !39
  br label %.loopexit95

.loopexit95:                                      ; preds = %.lr.ph99, %.lr.ph, %.loopexit95.sink.split, %32, %7, %3
  %.073 = phi i64 [ -9223372036854775804, %3 ], [ -9223372036854775800, %7 ], [ -9223372036854775799, %32 ], [ %.073.ph, %.loopexit95.sink.split ], [ -9223372036854775806, %.lr.ph ], [ -9223372036854775806, %.lr.ph99 ]
  ret i64 %.073
}

declare ptr @Ip6FindDefaultRouter(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @Ip6DestroyDefaultRouter(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @Ip6CreateDefaultRouter(ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #2

attributes #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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 176}
!6 = !{!"_IP6_CONFIG_INSTANCE", !7, i64 0, !8, i64 4, !10, i64 8, !12, i64 24, !13, i64 32, !14, i64 168, !7, i64 176, !15, i64 180, !8, i64 184, !16, i64 800, !16, i64 840, !18, i64 880, !11, i64 912, !11, i64 920, !11, i64 928, !11, i64 936, !8, i64 944, !7, i64 948, !11, i64 952, !7, i64 960, !11, i64 968, !7, i64 976, !19, i64 984, !21, i64 1040}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"", !8, i64 0, !8, i64 64, !7, i64 68, !14, i64 72, !7, i64 104, !11, i64 112, !7, i64 120, !11, i64 128}
!14 = !{!"", !8, i64 0}
!15 = !{!"", !7, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 16, !17, i64 32}
!17 = !{!"long long", !8, i64 0}
!18 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!"_IP6_FORM_CALLBACK_INFO", !7, i64 0, !11, i64 8, !20, i64 16, !11, i64 40, !11, i64 48}
!20 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16}
!21 = !{!"", !7, i64 0, !15, i64 4, !14, i64 8, !10, i64 16, !7, i64 32, !10, i64 40, !7, i64 56, !10, i64 64, !7, i64 80}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!26, !7, i64 0}
!26 = !{!"_IP6_SERVICE", !7, i64 0, !27, i64 8, !17, i64 24, !17, i64 32, !10, i64 40, !10, i64 56, !11, i64 72, !11, i64 80, !28, i64 88, !14, i64 136, !30, i64 2168, !14, i64 2192, !8, i64 2208, !8, i64 2209, !8, i64 2210, !8, i64 2211, !8, i64 2212, !7, i64 2216, !7, i64 2220, !7, i64 2224, !7, i64 2228, !10, i64 2232, !10, i64 2248, !10, i64 2264, !10, i64 2280, !7, i64 2296, !8, i64 2300, !11, i64 2304, !8, i64 2312, !8, i64 2313, !7, i64 2316, !11, i64 2320, !11, i64 2328, !11, i64 2336, !11, i64 2344, !31, i64 2352, !32, i64 2372, !11, i64 3032, !11, i64 3040, !6, i64 3048, !11, i64 4176, !7, i64 4184, !7, i64 4188}
!27 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !11, i64 0, !11, i64 8}
!28 = !{!"", !7, i64 0, !11, i64 8, !11, i64 16, !29, i64 24}
!29 = !{!"", !11, i64 0, !17, i64 8, !8, i64 16}
!30 = !{!"", !17, i64 0, !10, i64 8}
!31 = !{!"", !7, i64 0, !7, i64 4, !12, i64 8, !8, i64 10, !8, i64 11, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16}
!32 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !8, i64 40, !14, i64 552, !14, i64 584, !14, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!33 = !{!8, !8, i64 0}
!34 = !{!35, !17, i64 80}
!35 = !{!"", !11, i64 0, !11, i64 8, !17, i64 16, !8, i64 24, !16, i64 32, !8, i64 72, !17, i64 80}
!36 = distinct !{!36, !23}
!37 = distinct !{!37, !23}
!38 = distinct !{!38, !23}
!39 = !{!35, !17, i64 16}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass