; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (pkparse)

; 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.mbedtls_asn1_buf = type { i32, i64, ptr }
%struct.mbedtls_ecp_keypair = type { %struct.mbedtls_ecp_group, %struct.mbedtls_mpi, %struct.mbedtls_ecp_point }
%struct.mbedtls_ecp_group = type { i32, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi, i64, i64, i32, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.mbedtls_mpi = type { i32, i64, ptr }
%struct.mbedtls_ecp_point = type { %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi }

; 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 i32 @mbedtls_pk_parse_subpubkey(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %struct.mbedtls_asn1_buf, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = 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 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call i32 @mbedtls_asn1_get_tag(ptr noundef %14, ptr noundef %15, ptr noundef %9, i32 noundef 48)
  store i32 %16, ptr %8, align 4, !tbaa !9
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %21

18:                                               ; preds = %3
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = add nsw i32 -15616, %19
  store i32 %20, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

21:                                               ; preds = %3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = load i64, ptr %9, align 8, !tbaa !11
  %25 = getelementptr inbounds i8, ptr %23, i64 %24
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call i32 @pk_get_pk_alg(ptr noundef %26, ptr noundef %27, ptr noundef %11, ptr noundef %10)
  store i32 %28, ptr %8, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %21
  %31 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %31, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

32:                                               ; preds = %21
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call i32 @mbedtls_asn1_get_bitstring_null(ptr noundef %33, ptr noundef %34, ptr noundef %9)
  store i32 %35, ptr %8, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %32
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = add nsw i32 -15104, %38
  store i32 %39, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

40:                                               ; preds = %32
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load i64, ptr %9, align 8, !tbaa !11
  %44 = getelementptr inbounds i8, ptr %42, i64 %43
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = icmp ne ptr %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %40
  store i32 -15206, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

48:                                               ; preds = %40
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = call ptr @mbedtls_pk_info_from_type(i32 noundef %49)
  store ptr %50, ptr %12, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store i32 -15488, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

53:                                               ; preds = %48
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = call i32 @mbedtls_pk_setup(ptr noundef %54, ptr noundef %55)
  store i32 %56, ptr %8, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %53
  %59 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %59, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

60:                                               ; preds = %53
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %63, label %73

63:                                               ; preds = %60
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds { ptr, ptr }, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, ptr }, ptr %66, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8
  %71 = call ptr @mbedtls_pk_rsa(ptr %68, ptr %70)
  %72 = call i32 @pk_get_rsapubkey(ptr noundef %64, ptr noundef %65, ptr noundef %71)
  store i32 %72, ptr %8, align 4, !tbaa !9
  br label %103

73:                                               ; preds = %60
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 3
  br i1 %75, label %79, label %76

76:                                               ; preds = %73
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 2
  br i1 %78, label %79, label %101

79:                                               ; preds = %76, %73
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds { ptr, ptr }, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, ptr }, ptr %80, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8
  %85 = call ptr @mbedtls_pk_ec(ptr %82, ptr %84)
  %86 = getelementptr inbounds %struct.mbedtls_ecp_keypair, ptr %85, i32 0, i32 0
  %87 = call i32 @pk_use_ecparams(ptr noundef %10, ptr noundef %86)
  store i32 %87, ptr %8, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %100

90:                                               ; preds = %79
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds { ptr, ptr }, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, ptr }, ptr %93, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8
  %98 = call ptr @mbedtls_pk_ec(ptr %95, ptr %97)
  %99 = call i32 @pk_get_ecpubkey(ptr noundef %91, ptr noundef %92, ptr noundef %98)
  store i32 %99, ptr %8, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %90, %79
  br label %102

101:                                              ; preds = %76
  store i32 -15488, ptr %8, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %101, %100
  br label %103

103:                                              ; preds = %102, %63
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %112

106:                                              ; preds = %103
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = icmp ne ptr %108, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  store i32 -15206, ptr %8, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %111, %106, %103
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mbedtls_pk_free(ptr noundef %116)
  br label %117

117:                                              ; preds = %115, %112
  %118 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %118, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %119

119:                                              ; preds = %117, %58, %52, %47, %37, %30, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %120 = load i32, ptr %4, align 4
  ret i32 %120
}

declare i32 @mbedtls_asn1_get_tag(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_get_pk_alg(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @mbedtls_asn1_get_bitstring_null(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @mbedtls_pk_info_from_type(i32 noundef) #2

declare i32 @mbedtls_pk_setup(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_get_rsapubkey(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_rsa(ptr, ptr) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_use_ecparams(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_ec(ptr, ptr) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_get_ecpubkey(ptr noundef, ptr noundef, ptr noundef) #1

declare void @mbedtls_pk_free(ptr noundef) #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 = { inlinehint 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 #4 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; 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.mbedtls_asn1_buf = type { i32, i64, ptr }

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_pk_parse_subpubkey(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca i64, align 8
  %5 = alloca %struct.mbedtls_asn1_buf, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  %7 = call i32 @mbedtls_asn1_get_tag(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %4, i32 noundef 48) #4
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %10, label %8

8:                                                ; preds = %3
  %9 = add nsw i32 %7, -15616
  br label %56

10:                                               ; preds = %3
  %11 = load ptr, ptr %0, align 8, !tbaa !9
  %12 = load i64, ptr %4, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %11, i64 %12
  %14 = call i32 @pk_get_pk_alg(ptr noundef nonnull %0, ptr noundef %13, ptr noundef nonnull %6, ptr noundef nonnull %5)
  %.not39 = icmp eq i32 %14, 0
  br i1 %.not39, label %15, label %56

15:                                               ; preds = %10
  %16 = call i32 @mbedtls_asn1_get_bitstring_null(ptr noundef nonnull %0, ptr noundef %13, ptr noundef nonnull %4) #4
  %.not40 = icmp eq i32 %16, 0
  br i1 %.not40, label %19, label %17

17:                                               ; preds = %15
  %18 = add nsw i32 %16, -15104
  br label %56

19:                                               ; preds = %15
  %20 = load ptr, ptr %0, align 8, !tbaa !9
  %21 = load i64, ptr %4, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %20, i64 %21
  %.not41 = icmp eq ptr %22, %13
  br i1 %.not41, label %23, label %56

23:                                               ; preds = %19
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = call ptr @mbedtls_pk_info_from_type(i32 noundef %24) #4
  %26 = icmp eq ptr %25, null
  br i1 %26, label %56, label %27

27:                                               ; preds = %23
  %28 = call i32 @mbedtls_pk_setup(ptr noundef %2, ptr noundef nonnull %25) #4
  %.not42 = icmp eq i32 %28, 0
  br i1 %.not42, label %29, label %56

29:                                               ; preds = %27
  %30 = load i32, ptr %6, align 4
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = load ptr, ptr %2, align 8
  %34 = getelementptr inbounds i8, ptr %2, i64 8
  %35 = load ptr, ptr %34, align 8
  %36 = call ptr @mbedtls_pk_rsa(ptr %33, ptr %35)
  %37 = call i32 @pk_get_rsapubkey(ptr noundef nonnull %0, ptr noundef %13, ptr noundef %36)
  br label %52

38:                                               ; preds = %29
  %39 = and i32 %30, -2
  %or.cond = icmp eq i32 %39, 2
  br i1 %or.cond, label %40, label %.thread

40:                                               ; preds = %38
  %41 = load ptr, ptr %2, align 8
  %42 = getelementptr inbounds i8, ptr %2, i64 8
  %43 = load ptr, ptr %42, align 8
  %44 = call ptr @mbedtls_pk_ec(ptr %41, ptr %43)
  %45 = call i32 @pk_use_ecparams(ptr noundef nonnull %5, ptr noundef %44)
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %.thread

47:                                               ; preds = %40
  %48 = load ptr, ptr %2, align 8
  %49 = load ptr, ptr %42, align 8
  %50 = call ptr @mbedtls_pk_ec(ptr %48, ptr %49)
  %51 = call i32 @pk_get_ecpubkey(ptr noundef nonnull %0, ptr noundef %13, ptr noundef %50)
  br label %52

52:                                               ; preds = %47, %32
  %.030 = phi i32 [ %37, %32 ], [ %51, %47 ]
  %53 = icmp eq i32 %.030, 0
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %52
  %55 = load ptr, ptr %0, align 8, !tbaa !9
  %.not43 = icmp eq ptr %55, %13
  br i1 %.not43, label %56, label %.thread

.thread:                                          ; preds = %38, %40, %52, %54
  %.1.ph = phi i32 [ -15206, %54 ], [ %.030, %52 ], [ -15488, %38 ], [ %45, %40 ]
  call void @mbedtls_pk_free(ptr noundef %2) #4
  br label %56

56:                                               ; preds = %54, %.thread, %27, %23, %19, %10, %17, %8
  %.0 = phi i32 [ %9, %8 ], [ %18, %17 ], [ %14, %10 ], [ -15206, %19 ], [ -15488, %23 ], [ %28, %27 ], [ %.1.ph, %.thread ], [ 0, %54 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i32 %.0
}

declare i32 @mbedtls_asn1_get_tag(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_get_pk_alg(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @mbedtls_asn1_get_bitstring_null(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @mbedtls_pk_info_from_type(i32 noundef) local_unnamed_addr #2

declare i32 @mbedtls_pk_setup(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_get_rsapubkey(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_rsa(ptr, ptr) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_use_ecparams(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mbedtls_pk_ec(ptr, ptr) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @pk_get_ecpubkey(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @mbedtls_pk_free(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress 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 = { inlinehint 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 #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass