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

; 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._IP_IO = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, ptr, %union.IP_IO_IP_PROTOCOL, i8, i8, %union.IP_IO_IP_COMPLETION_TOKEN, %struct._LIST_ENTRY, ptr, ptr, ptr, ptr, i8 }
%union.IP_IO_IP_PROTOCOL = type { ptr }
%union.IP_IO_IP_COMPLETION_TOKEN = type { %struct.EFI_IP4_COMPLETION_TOKEN }
%struct.EFI_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.NET_BUF = type { i32, i64, %struct._LIST_ENTRY, %union.NET_IP_HEAD, ptr, ptr, [64 x i8], ptr, i32, i32, [1 x %struct.NET_BLOCK_OP] }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }
%struct.IP4_ICMP_ERROR_HEAD = type { %struct.IP4_ICMP_HEAD, i32, %struct.IP4_HEAD }
%struct.IP4_ICMP_HEAD = type { i8, i8, i16 }
%struct.IP4_HEAD = type { i8, i8, i16, i16, i16, i8, i8, i16, i32, i32 }

@.str = external hidden unnamed_addr constant [146 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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @IpIoIcmpv4Handler(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  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 1, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  br label %16

16:                                               ; preds = %3
  %17 = call zeroext i8 @DebugAssertEnabled()
  %18 = icmp ne i8 %17, 0
  br i1 %18, label %19, label %27

19:                                               ; preds = %16
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._IP_IO, ptr %20, i32 0, i32 14
  %22 = load i8, ptr %21, align 8, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = icmp eq i32 %23, 4
  br i1 %24, label %26, label %25

25:                                               ; preds = %19
  call void @DebugAssert(ptr noundef @.str, i64 noundef 283, ptr noundef @.str.1)
  br label %26

26:                                               ; preds = %25, %19
  br label %27

27:                                               ; preds = %26, %16
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.NET_BUF, ptr %30, i32 0, i32 10
  %32 = getelementptr inbounds [1 x %struct.NET_BLOCK_OP], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds %struct.NET_BLOCK_OP, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  store ptr %34, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.IP4_ICMP_ERROR_HEAD, ptr %35, i32 0, i32 2
  store ptr %36, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.NET_BUF, ptr %37, i32 0, i32 9
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = zext i32 %39 to i64
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load i8, ptr %41, align 1
  %43 = and i8 %42, 15
  %44 = zext i8 %43 to i32
  %45 = shl i32 %44, 2
  %46 = sext i32 %45 to i64
  %47 = add i64 4, %46
  %48 = add i64 %47, 8
  %49 = icmp ult i64 %40, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %29
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

51:                                               ; preds = %29
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.IP4_ICMP_ERROR_HEAD, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %struct.IP4_ICMP_HEAD, ptr %53, i32 0, i32 0
  %55 = load i8, ptr %54, align 1, !tbaa !18
  store i8 %55, ptr %12, align 1, !tbaa !23
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.IP4_ICMP_ERROR_HEAD, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %struct.IP4_ICMP_HEAD, ptr %57, i32 0, i32 1
  %59 = load i8, ptr %58, align 1, !tbaa !24
  store i8 %59, ptr %13, align 1, !tbaa !23
  %60 = load i8, ptr %12, align 1, !tbaa !23
  %61 = zext i8 %60 to i32
  switch i32 %61, label %97 [
    i32 3, label %62
    i32 11, label %75
    i32 12, label %85
    i32 4, label %91
  ]

62:                                               ; preds = %51
  %63 = load i8, ptr %13, align 1, !tbaa !23
  %64 = zext i8 %63 to i32
  switch i32 %64, label %73 [
    i32 0, label %65
    i32 1, label %65
    i32 2, label %65
    i32 3, label %65
    i32 5, label %65
    i32 4, label %70
    i32 6, label %71
    i32 9, label %71
    i32 11, label %71
    i32 7, label %72
    i32 8, label %72
    i32 10, label %72
    i32 12, label %72
  ]

65:                                               ; preds = %62, %62, %62, %62, %62
  %66 = load i8, ptr %13, align 1, !tbaa !23
  %67 = zext i8 %66 to i32
  %68 = add nsw i32 0, %67
  %69 = trunc i32 %68 to i8
  store i8 %69, ptr %10, align 1, !tbaa !23
  br label %74

70:                                               ; preds = %62
  store i8 4, ptr %10, align 1, !tbaa !23
  br label %74

71:                                               ; preds = %62, %62, %62
  store i8 0, ptr %10, align 1, !tbaa !23
  br label %74

72:                                               ; preds = %62, %62, %62, %62
  store i8 1, ptr %10, align 1, !tbaa !23
  br label %74

73:                                               ; preds = %62
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

74:                                               ; preds = %72, %71, %70, %65
  br label %98

75:                                               ; preds = %51
  %76 = load i8, ptr %13, align 1, !tbaa !23
  %77 = zext i8 %76 to i32
  %78 = icmp sgt i32 %77, 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

80:                                               ; preds = %75
  %81 = load i8, ptr %13, align 1, !tbaa !23
  %82 = zext i8 %81 to i32
  %83 = add nsw i32 %82, 6
  %84 = trunc i32 %83 to i8
  store i8 %84, ptr %10, align 1, !tbaa !23
  br label %98

85:                                               ; preds = %51
  %86 = load i8, ptr %13, align 1, !tbaa !23
  %87 = zext i8 %86 to i32
  %88 = icmp sgt i32 %87, 1
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

90:                                               ; preds = %85
  store i8 9, ptr %10, align 1, !tbaa !23
  br label %98

91:                                               ; preds = %51
  %92 = load i8, ptr %13, align 1, !tbaa !23
  %93 = zext i8 %92 to i32
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %91
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

96:                                               ; preds = %91
  store i8 8, ptr %10, align 1, !tbaa !23
  br label %98

97:                                               ; preds = %51
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

98:                                               ; preds = %96, %90, %80, %74
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load i8, ptr %100, align 1
  %102 = and i8 %101, 15
  %103 = zext i8 %102 to i32
  %104 = shl i32 %103, 2
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %99, i64 %105
  store ptr %106, ptr %11, align 8, !tbaa !5
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = ptrtoint ptr %107 to i64
  %110 = ptrtoint ptr %108 to i64
  %111 = sub i64 %109, %110
  %112 = trunc i64 %111 to i32
  store i32 %112, ptr %14, align 4, !tbaa !25
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i32, ptr %14, align 4, !tbaa !25
  %115 = call i32 @NetbufTrim(ptr noundef %113, i32 noundef %114, i8 noundef zeroext 1)
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._IP_IO, ptr %116, i32 0, i32 12
  %118 = load ptr, ptr %117, align 8, !tbaa !26
  %119 = load i8, ptr %10, align 1, !tbaa !23
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._IP_IO, ptr %122, i32 0, i32 10
  %124 = load ptr, ptr %123, align 8, !tbaa !27
  call void %118(i64 noundef -9223372036854775786, i8 noundef zeroext %119, ptr noundef %120, ptr noundef %121, ptr noundef %124)
  store i64 0, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %125

125:                                              ; preds = %98, %97, %95, %89, %79, %73, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 1, 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
  %126 = load i64, ptr %4, align 8
  ret i64 %126
}

declare zeroext i8 @DebugAssertEnabled() #2

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

declare i32 @NetbufTrim(ptr noundef, i32 noundef, i8 noundef zeroext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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, !7, i64 144}
!10 = !{!"_IP_IO", !11, i64 0, !11, i64 16, !6, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !7, i64 64, !7, i64 65, !7, i64 72, !11, i64 96, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!11 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!12 = !{!13, !6, i64 16}
!13 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 132}
!16 = !{!"", !14, i64 0, !17, i64 8, !11, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !14, i64 128, !14, i64 132, !7, i64 136}
!17 = !{!"long long", !7, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"", !20, i64 0, !14, i64 4, !22, i64 8}
!20 = !{!"", !7, i64 0, !7, i64 1, !21, i64 2}
!21 = !{!"short", !7, i64 0}
!22 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !21, i64 2, !21, i64 4, !21, i64 6, !7, i64 8, !7, i64 9, !21, i64 10, !14, i64 12, !14, i64 16}
!23 = !{!7, !7, i64 0}
!24 = !{!19, !7, i64 1}
!25 = !{!14, !14, i64 0}
!26 = !{!10, !6, i64 128}
!27 = !{!10, !6, i64 112}


; 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"

@.str = external hidden unnamed_addr constant [146 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@switch.table.IpIoIcmpv4Handler = private unnamed_addr constant [13 x i8] c"\00\01\02\03\04\05\00\01\01\00\01\00\01", align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775787, 1) i64 @IpIoIcmpv4Handler(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not = icmp eq i8 %4, 0
  br i1 %.not, label %10, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 144
  %7 = load i8, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i8 %7, 4
  br i1 %8, label %10, label %9

9:                                                ; preds = %5
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 283, ptr noundef nonnull @.str.1) #2
  br label %10

10:                                               ; preds = %5, %9, %3
  %11 = getelementptr inbounds i8, ptr %1, i64 152
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = getelementptr inbounds i8, ptr %1, i64 132
  %15 = load i32, ptr %14, align 4, !tbaa !14
  %16 = load i8, ptr %13, align 1
  %17 = shl i8 %16, 2
  %18 = and i8 %17, 60
  %narrow = add nuw nsw i8 %18, 12
  %19 = zext nneg i8 %narrow to i32
  %20 = icmp ult i32 %15, %19
  br i1 %20, label %47, label %21

21:                                               ; preds = %10
  %22 = load i8, ptr %12, align 1, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %12, i64 1
  %24 = load i8, ptr %23, align 1, !tbaa !22
  switch i8 %22, label %47 [
    i8 3, label %25
    i8 11, label %27
    i8 12, label %31
    i8 4, label %33
  ]

25:                                               ; preds = %21
  %26 = icmp ult i8 %24, 13
  br i1 %26, label %switch.lookup, label %47

27:                                               ; preds = %21
  %28 = icmp ugt i8 %24, 1
  br i1 %28, label %47, label %29

29:                                               ; preds = %27
  %30 = or disjoint i8 %24, 6
  br label %35

31:                                               ; preds = %21
  %32 = icmp ugt i8 %24, 1
  br i1 %32, label %47, label %35

33:                                               ; preds = %21
  %.not27 = icmp eq i8 %24, 0
  br i1 %.not27, label %35, label %47

switch.lookup:                                    ; preds = %25
  %34 = zext nneg i8 %24 to i64
  %switch.gep = getelementptr inbounds [13 x i8], ptr @switch.table.IpIoIcmpv4Handler, i64 0, i64 %34
  %switch.load = load i8, ptr %switch.gep, align 1
  br label %35

35:                                               ; preds = %switch.lookup, %33, %31, %29
  %.025 = phi i8 [ %30, %29 ], [ 9, %31 ], [ 8, %33 ], [ %switch.load, %switch.lookup ]
  %36 = zext nneg i8 %18 to i64
  %37 = getelementptr inbounds i8, ptr %13, i64 %36
  %38 = ptrtoint ptr %37 to i64
  %39 = ptrtoint ptr %12 to i64
  %40 = sub i64 %38, %39
  %41 = trunc i64 %40 to i32
  %42 = tail call i32 @NetbufTrim(ptr noundef nonnull %1, i32 noundef %41, i8 noundef zeroext 1) #2
  %43 = getelementptr inbounds i8, ptr %0, i64 128
  %44 = load ptr, ptr %43, align 8, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %0, i64 112
  %46 = load ptr, ptr %45, align 8, !tbaa !24
  tail call void %44(i64 noundef -9223372036854775786, i8 noundef zeroext %.025, ptr noundef %2, ptr noundef nonnull %1, ptr noundef %46) #2
  br label %47

47:                                               ; preds = %25, %21, %33, %31, %27, %10, %35
  %.0 = phi i64 [ 0, %35 ], [ -9223372036854775787, %10 ], [ -9223372036854775787, %25 ], [ -9223372036854775787, %27 ], [ -9223372036854775787, %31 ], [ -9223372036854775787, %33 ], [ -9223372036854775787, %21 ]
  ret i64 %.0
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 144}
!6 = !{!"_IP_IO", !7, i64 0, !7, i64 16, !8, i64 32, !8, i64 40, !8, i64 48, !9, i64 56, !9, i64 64, !9, i64 65, !9, i64 72, !7, i64 96, !8, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !9, i64 144}
!7 = !{!"_LIST_ENTRY", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 16}
!12 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !13, i64 32}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 132}
!15 = !{!"", !13, i64 0, !16, i64 8, !7, i64 16, !9, i64 32, !8, i64 40, !8, i64 48, !9, i64 56, !8, i64 120, !13, i64 128, !13, i64 132, !9, i64 136}
!16 = !{!"long long", !9, i64 0}
!17 = !{!18, !9, i64 0}
!18 = !{!"", !19, i64 0, !13, i64 4, !21, i64 8}
!19 = !{!"", !9, i64 0, !9, i64 1, !20, i64 2}
!20 = !{!"short", !9, i64 0}
!21 = !{!"", !9, i64 0, !9, i64 0, !9, i64 1, !20, i64 2, !20, i64 4, !20, i64 6, !9, i64 8, !9, i64 9, !20, i64 10, !13, i64 12, !13, i64 16}
!22 = !{!18, !9, i64 1}
!23 = !{!6, !8, i64 128}
!24 = !{!6, !8, i64 112}


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