; LLVM IR from ARMmbed/mbed-crypto :: library (asn1write)

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

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 ptr @mbedtls_asn1_store_named_data(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = load i64, ptr %9, align 8, !tbaa !9
  %19 = call ptr @asn1_find_named_data(ptr noundef %16, ptr noundef %17, i64 noundef %18)
  store ptr %19, ptr %12, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %81

21:                                               ; preds = %5
  %22 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 64) #6
  store ptr %22, ptr %12, align 8, !tbaa !5
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  store ptr null, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %135

26:                                               ; preds = %21
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %29, i32 0, i32 1
  store i64 %27, ptr %30, align 8, !tbaa !11
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %31) #6
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %34, i32 0, i32 2
  store ptr %32, ptr %35, align 8, !tbaa !15
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %26
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %42) #5
  store ptr null, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %135

43:                                               ; preds = %26
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %47, ptr align 1 %48, i64 %49, i1 false)
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %52, i32 0, i32 1
  store i64 %50, ptr %53, align 8, !tbaa !16
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = icmp ne i64 %54, 0
  br i1 %55, label %56, label %74

56:                                               ; preds = %43
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %57) #6
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %60, i32 0, i32 2
  store ptr %58, ptr %61, align 8, !tbaa !17
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %73

67:                                               ; preds = %56
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  call void @free(ptr noundef %71) #5
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %72) #5
  store ptr null, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %135

73:                                               ; preds = %56
  br label %74

74:                                               ; preds = %73, %43
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %77, i32 0, i32 2
  store ptr %76, ptr %78, align 8, !tbaa !18
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %79, ptr %80, align 8, !tbaa !5
  br label %123

81:                                               ; preds = %5
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = icmp eq i64 %82, 0
  br i1 %83, label %84, label %92

84:                                               ; preds = %81
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !17
  call void @free(ptr noundef %88) #5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %90, i32 0, i32 2
  store ptr null, ptr %91, align 8, !tbaa !17
  br label %122

92:                                               ; preds = %81
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %93, i32 0, i32 1
  %95 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %94, i32 0, i32 1
  %96 = load i64, ptr %95, align 8, !tbaa !16
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = icmp ne i64 %96, %97
  br i1 %98, label %99, label %121

99:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %100 = load i64, ptr %11, align 8, !tbaa !9
  %101 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %100) #6
  store ptr %101, ptr %14, align 8, !tbaa !5
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %99
  store ptr null, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %118

105:                                              ; preds = %99
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %106, i32 0, i32 1
  %108 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  call void @free(ptr noundef %109) #5
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %111, i32 0, i32 1
  %113 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %112, i32 0, i32 2
  store ptr %110, ptr %113, align 8, !tbaa !17
  %114 = load i64, ptr %11, align 8, !tbaa !9
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %115, i32 0, i32 1
  %117 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %116, i32 0, i32 1
  store i64 %114, ptr %117, align 8, !tbaa !16
  store i32 0, ptr %13, align 4
  br label %118

118:                                              ; preds = %105, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %119 = load i32, ptr %13, align 4
  switch i32 %119, label %135 [
    i32 0, label %120
  ]

120:                                              ; preds = %118
  br label %121

121:                                              ; preds = %120, %92
  br label %122

122:                                              ; preds = %121, %84
  br label %123

123:                                              ; preds = %122, %74
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %133

126:                                              ; preds = %123
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.mbedtls_asn1_named_data, ptr %127, i32 0, i32 1
  %129 = getelementptr inbounds %struct.mbedtls_asn1_buf, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %130, ptr align 1 %131, i64 %132, i1 false)
  br label %133

133:                                              ; preds = %126, %123
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %134, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %135

135:                                              ; preds = %133, %118, %67, %41, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %136 = load ptr, ptr %6, align 8
  ret ptr %136
}

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 allocsize(0,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 #4 = { nounwind "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }

!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", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"mbedtls_asn1_named_data", !13, i64 0, !13, i64 24, !6, i64 48, !7, i64 56}
!13 = !{!"mbedtls_asn1_buf", !14, i64 0, !10, i64 8, !6, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !10, i64 32}
!17 = !{!12, !6, i64 40}
!18 = !{!12, !6, i64 48}


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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @mbedtls_asn1_store_named_data(ptr nocapture noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef readonly %3, i64 noundef %4) local_unnamed_addr #1 {
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = tail call ptr @asn1_find_named_data(ptr noundef %6, ptr noundef %1, i64 noundef %2)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %28

9:                                                ; preds = %5
  %10 = tail call noalias dereferenceable_or_null(64) ptr @calloc(i64 noundef 1, i64 noundef 64) #4
  %11 = icmp eq ptr %10, null
  br i1 %11, label %.critedge, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %2, ptr %13, align 8, !tbaa !9
  %14 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %2) #4
  %15 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %14, ptr %15, align 8, !tbaa !14
  %16 = icmp eq ptr %14, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %12
  tail call void @free(ptr noundef nonnull %10) #5
  br label %.critedge

18:                                               ; preds = %12
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %14, ptr align 1 %1, i64 %2, i1 false)
  %19 = getelementptr inbounds i8, ptr %10, i64 32
  store i64 %4, ptr %19, align 8, !tbaa !15
  %.not52 = icmp eq i64 %4, 0
  br i1 %.not52, label %25, label %20

20:                                               ; preds = %18
  %21 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %4) #4
  %22 = getelementptr inbounds i8, ptr %10, i64 40
  store ptr %21, ptr %22, align 8, !tbaa !16
  %23 = icmp eq ptr %21, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  tail call void @free(ptr noundef nonnull %14) #5
  tail call void @free(ptr noundef nonnull %10) #5
  br label %.critedge

25:                                               ; preds = %20, %18
  %26 = load ptr, ptr %0, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %10, i64 48
  store ptr %26, ptr %27, align 8, !tbaa !17
  store ptr %10, ptr %0, align 8, !tbaa !5
  br label %41

28:                                               ; preds = %5
  %29 = icmp eq i64 %4, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %7, i64 40
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  tail call void @free(ptr noundef %32) #5
  store ptr null, ptr %31, align 8, !tbaa !16
  br label %41

33:                                               ; preds = %28
  %34 = getelementptr inbounds i8, ptr %7, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !15
  %.not = icmp eq i64 %35, %4
  br i1 %.not, label %41, label %36

36:                                               ; preds = %33
  %37 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %4) #4
  %.not51 = icmp eq ptr %37, null
  br i1 %.not51, label %.critedge, label %38

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %7, i64 40
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  tail call void @free(ptr noundef %40) #5
  store ptr %37, ptr %39, align 8, !tbaa !16
  store i64 %4, ptr %34, align 8, !tbaa !15
  br label %41

41:                                               ; preds = %38, %30, %33, %25
  %.044 = phi ptr [ %10, %25 ], [ %7, %30 ], [ %7, %38 ], [ %7, %33 ]
  %.not53 = icmp eq ptr %3, null
  br i1 %.not53, label %.critedge, label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %.044, i64 40
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %44, ptr nonnull align 1 %3, i64 %4, i1 false)
  br label %.critedge

.critedge:                                        ; preds = %36, %41, %42, %9, %24, %17
  %.1 = phi ptr [ null, %17 ], [ null, %24 ], [ null, %9 ], [ %.044, %42 ], [ %.044, %41 ], [ null, %36 ]
  ret ptr %.1
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree 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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0,1) }
attributes #5 = { 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, !13, i64 8}
!10 = !{!"mbedtls_asn1_named_data", !11, i64 0, !11, i64 24, !6, i64 48, !7, i64 56}
!11 = !{!"mbedtls_asn1_buf", !12, i64 0, !13, i64 8, !6, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!10, !13, i64 32}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 48}


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