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

; 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.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.EFI_DEVICE_PATH_PROTOCOL = type { i8, i8, [2 x i8] }
%struct.VENDOR_DEVICE_PATH = type { %struct.EFI_DEVICE_PATH_PROTOCOL, %struct.GUID }

@gBS = external global ptr, align 8
@gEfiHiiConfigAccessProtocolGuid = external global %struct.GUID, align 4
@gEfiManagedNetworkServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiNicIp4ConfigVariableGuid = external global %struct.GUID, align 4

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

declare void @FreePool(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 i64 @CompareMem(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @NetGetChildHandle(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  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
  %13 = load ptr, ptr @gBS, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %13, i32 0, i32 37
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = call i64 %15(i32 noundef 2, ptr noundef @gEfiHiiConfigAccessProtocolGuid, ptr noundef null, ptr noundef %8, ptr noundef %7)
  store i64 %16, ptr %6, align 8, !tbaa !14
  %17 = load i64, ptr %6, align 8, !tbaa !14
  %18 = icmp slt i64 %17, 0
  br i1 %18, label %22, label %19

19:                                               ; preds = %2
  %20 = load i64, ptr %8, align 8, !tbaa !14
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %19, %2
  %23 = load i64, ptr %6, align 8, !tbaa !14
  store i64 %23, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %93

24:                                               ; preds = %19
  store i64 -9223372036854775794, ptr %6, align 8, !tbaa !14
  store i64 0, ptr %9, align 8, !tbaa !14
  br label %25

25:                                               ; preds = %87, %24
  %26 = load i64, ptr %9, align 8, !tbaa !14
  %27 = load i64, ptr %8, align 8, !tbaa !14
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %29, label %90

29:                                               ; preds = %25
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load i64, ptr %9, align 8, !tbaa !14
  %33 = getelementptr inbounds ptr, ptr %31, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call i64 @EfiTestChildHandle(ptr noundef %30, ptr noundef %34, ptr noundef @gEfiManagedNetworkServiceBindingProtocolGuid)
  store i64 %35, ptr %6, align 8, !tbaa !14
  %36 = load i64, ptr %6, align 8, !tbaa !14
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %86, label %38

38:                                               ; preds = %29
  %39 = load ptr, ptr @gBS, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %39, i32 0, i32 17
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load i64, ptr %9, align 8, !tbaa !14
  %44 = getelementptr inbounds ptr, ptr %42, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = call i64 %41(ptr noundef %45, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %10)
  store i64 %46, ptr %6, align 8, !tbaa !14
  %47 = load i64, ptr %6, align 8, !tbaa !14
  %48 = icmp slt i64 %47, 0
  br i1 %48, label %85, label %49

49:                                               ; preds = %38
  br label %50

50:                                               ; preds = %83, %49
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = call zeroext i8 @IsDevicePathEnd(ptr noundef %51)
  %53 = icmp ne i8 %52, 0
  %54 = xor i1 %53, true
  br i1 %54, label %55, label %84

55:                                               ; preds = %50
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call ptr @NextDevicePathNode(ptr noundef %56)
  store ptr %57, ptr %10, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.EFI_DEVICE_PATH_PROTOCOL, ptr %58, i32 0, i32 0
  %60 = load i8, ptr %59, align 1, !tbaa !16
  %61 = zext i8 %60 to i32
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %63, label %83

63:                                               ; preds = %55
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.EFI_DEVICE_PATH_PROTOCOL, ptr %64, i32 0, i32 1
  %66 = load i8, ptr %65, align 1, !tbaa !18
  %67 = zext i8 %66 to i32
  %68 = icmp eq i32 %67, 4
  br i1 %68, label %69, label %83

69:                                               ; preds = %63
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %70, ptr %11, align 8, !tbaa !5
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.VENDOR_DEVICE_PATH, ptr %71, i32 0, i32 1
  %73 = call i64 @CompareMem(ptr noundef %72, ptr noundef @gEfiNicIp4ConfigVariableGuid, i64 noundef 16)
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %75, label %82

75:                                               ; preds = %69
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load i64, ptr %9, align 8, !tbaa !14
  %78 = getelementptr inbounds ptr, ptr %76, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %79, ptr %80, align 8, !tbaa !5
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  call void @FreePool(ptr noundef %81)
  store i64 0, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %93

82:                                               ; preds = %69
  br label %83

83:                                               ; preds = %82, %63, %55
  br label %50, !llvm.loop !19

84:                                               ; preds = %50
  br label %85

85:                                               ; preds = %84, %38
  br label %86

86:                                               ; preds = %85, %29
  br label %87

87:                                               ; preds = %86
  %88 = load i64, ptr %9, align 8, !tbaa !14
  %89 = add i64 %88, 1
  store i64 %89, ptr %9, align 8, !tbaa !14
  br label %25, !llvm.loop !21

90:                                               ; preds = %25
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  call void @FreePool(ptr noundef %91)
  %92 = load i64, ptr %6, align 8, !tbaa !14
  store i64 %92, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %93

93:                                               ; preds = %90, %75, %22
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %94 = load i64, ptr %3, align 8
  ret i64 %94
}

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

declare zeroext i8 @IsDevicePathEnd(ptr noundef) #1

declare ptr @NextDevicePathNode(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, !6, i64 312}
!10 = !{!"", !11, 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}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !6, i64 152}
!16 = !{!17, !7, i64 0}
!17 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!18 = !{!17, !7, i64 1}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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

%struct.GUID = type { i32, i16, i16, [8 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiHiiConfigAccessProtocolGuid = external global %struct.GUID, align 4
@gEfiManagedNetworkServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiNicIp4ConfigVariableGuid = external global %struct.GUID, align 4

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

declare void @FreePool(ptr 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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @NetGetChildHandle(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %6 = load ptr, ptr @gBS, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 312
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = call i64 %8(i32 noundef 2, ptr noundef nonnull @gEfiHiiConfigAccessProtocolGuid, ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %10 = icmp slt i64 %9, 0
  %11 = load i64, ptr %4, align 8
  %12 = icmp eq i64 %11, 0
  %or.cond = select i1 %10, i1 true, i1 %12
  br i1 %or.cond, label %52, label %.lr.ph24

.lr.ph24:                                         ; preds = %2, %.loopexit
  %.01422 = phi i64 [ %48, %.loopexit ], [ 0, %2 ]
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds ptr, ptr %13, i64 %.01422
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = call i64 @EfiTestChildHandle(ptr noundef %0, ptr noundef %15, ptr noundef nonnull @gEfiManagedNetworkServiceBindingProtocolGuid) #3
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %.loopexit, label %18

18:                                               ; preds = %.lr.ph24
  %19 = load ptr, ptr @gBS, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 152
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds ptr, ptr %22, i64 %.01422
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = call i64 %21(ptr noundef %24, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef nonnull %5) #3
  %26 = icmp slt i64 %25, 0
  br i1 %26, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %18
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call zeroext i8 @IsDevicePathEnd(ptr noundef %27) #3
  %.not21 = icmp eq i8 %28, 0
  br i1 %.not21, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %45
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = call ptr @NextDevicePathNode(ptr noundef %29) #3
  store ptr %30, ptr %5, align 8, !tbaa !5
  %31 = load i8, ptr %30, align 1, !tbaa !15
  %32 = icmp eq i8 %31, 1
  br i1 %32, label %33, label %45

33:                                               ; preds = %.lr.ph
  %34 = getelementptr inbounds i8, ptr %30, i64 1
  %35 = load i8, ptr %34, align 1, !tbaa !17
  %36 = icmp eq i8 %35, 4
  br i1 %36, label %37, label %45

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %30, i64 4
  %39 = call i64 @CompareMem(ptr noundef nonnull %38, ptr noundef nonnull @gEfiNicIp4ConfigVariableGuid, i64 noundef 16) #3
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %41, label %._crit_edge27

._crit_edge27:                                    ; preds = %37
  %.pre = load ptr, ptr %5, align 8, !tbaa !5
  br label %45

41:                                               ; preds = %37
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.01422
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %1, align 8, !tbaa !5
  br label %.sink.split

45:                                               ; preds = %._crit_edge27, %33, %.lr.ph
  %46 = phi ptr [ %.pre, %._crit_edge27 ], [ %30, %33 ], [ %30, %.lr.ph ]
  %47 = call zeroext i8 @IsDevicePathEnd(ptr noundef %46) #3
  %.not = icmp eq i8 %47, 0
  br i1 %.not, label %.lr.ph, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %45, %.preheader, %.lr.ph24, %18
  %.1 = phi i64 [ %16, %.lr.ph24 ], [ %25, %18 ], [ %25, %.preheader ], [ %25, %45 ]
  %48 = add nuw i64 %.01422, 1
  %49 = load i64, ptr %4, align 8, !tbaa !20
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %.lr.ph24, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %.loopexit
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %41, %._crit_edge
  %.sink = phi ptr [ %51, %._crit_edge ], [ %42, %41 ]
  %.0.ph = phi i64 [ %.1, %._crit_edge ], [ 0, %41 ]
  call void @FreePool(ptr noundef %.sink) #3
  br label %52

52:                                               ; preds = %.sink.split, %2
  %.0 = phi i64 [ %9, %2 ], [ %.0.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i64 %.0
}

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

declare zeroext i8 @IsDevicePathEnd(ptr noundef) local_unnamed_addr #1

declare ptr @NextDevicePathNode(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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 312}
!10 = !{!"", !11, 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}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !6, i64 152}
!15 = !{!16, !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!17 = !{!16, !7, i64 1}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !12, i64 0}
!21 = distinct !{!21, !19}


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