; LLVM IR from specinfo-ua/UAPKI :: library/uapkif/src/asn1 (NativeInteger)

; 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.asn_dec_rval_s = type { i32, i64 }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%union.anon = type { ptr }
%struct.asn_TYPE_descriptor_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, i32, ptr }
%struct.asn_INTEGER_specifics_s = type { ptr, ptr, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local { i32, i64 } @NativeInteger_decode_ber(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5) #0 {
  %7 = alloca %struct.asn_dec_rval_s, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.asn_dec_rval_s, align 8
  %19 = alloca %struct.ASN__PRIMITIVE_TYPE_s, align 8
  %20 = alloca %union.anon, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.asn_TYPE_descriptor_s, ptr %22, i32 0, i32 19
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  store ptr %24, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %38

29:                                               ; preds = %6
  %30 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 8) #6
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %30, ptr %31, align 8, !tbaa !5
  store ptr %30, ptr %15, align 8, !tbaa !5
  %32 = load ptr, ptr %15, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %29
  %35 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 2, ptr %35, align 8, !tbaa !15
  %36 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  store i64 0, ptr %36, align 8, !tbaa !17
  store i32 1, ptr %17, align 4
  br label %102

37:                                               ; preds = %29
  br label %38

38:                                               ; preds = %37, %6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = load i32, ptr %13, align 4, !tbaa !11
  %44 = call { i32, i64 } @ber_check_tags(ptr noundef %39, ptr noundef %40, ptr noundef null, ptr noundef %41, i64 noundef %42, i32 noundef %43, i32 noundef 0, ptr noundef %16, ptr noundef null)
  %45 = getelementptr inbounds { i32, i64 }, ptr %18, i32 0, i32 0
  %46 = extractvalue { i32, i64 } %44, 0
  store i32 %46, ptr %45, align 8
  %47 = getelementptr inbounds { i32, i64 }, ptr %18, i32 0, i32 1
  %48 = extractvalue { i32, i64 } %44, 1
  store i64 %48, ptr %47, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  %49 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %38
  store i32 1, ptr %17, align 4
  br label %102

53:                                               ; preds = %38
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = getelementptr inbounds i8, ptr %54, i64 %56
  store ptr %57, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !17
  %60 = load i64, ptr %12, align 8, !tbaa !9
  %61 = sub i64 %60, %59
  store i64 %61, ptr %12, align 8, !tbaa !9
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = icmp sgt i64 %62, %63
  br i1 %64, label %65, label %68

65:                                               ; preds = %53
  %66 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 1, ptr %66, align 8, !tbaa !15
  %67 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  store i64 0, ptr %67, align 8, !tbaa !17
  store i32 1, ptr %17, align 4
  br label %102

68:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %69, ptr %20, align 8, !tbaa !19
  %70 = load ptr, ptr %20, align 8, !tbaa !19
  %71 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %19, i32 0, i32 0
  store ptr %70, ptr %71, align 8, !tbaa !20
  %72 = load i64, ptr %16, align 8, !tbaa !9
  %73 = trunc i64 %72 to i32
  %74 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %19, i32 0, i32 1
  store i32 %73, ptr %74, align 8, !tbaa !22
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %85

77:                                               ; preds = %68
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.asn_INTEGER_specifics_s, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %79, align 8, !tbaa !23
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %85

82:                                               ; preds = %77
  %83 = call i32 @asn_INTEGER2ulong(ptr noundef %19, ptr noundef %21)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %88, label %91

85:                                               ; preds = %77, %68
  %86 = call i32 @asn_INTEGER2long(ptr noundef %19, ptr noundef %21)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %91

88:                                               ; preds = %85, %82
  %89 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 2, ptr %89, align 8, !tbaa !15
  %90 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  store i64 0, ptr %90, align 8, !tbaa !17
  store i32 1, ptr %17, align 4
  br label %94

91:                                               ; preds = %85, %82
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %92, ptr %93, align 8, !tbaa !9
  store i32 0, ptr %17, align 4
  br label %94

94:                                               ; preds = %91, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  %95 = load i32, ptr %17, align 4
  switch i32 %95, label %102 [
    i32 0, label %96
  ]

96:                                               ; preds = %94
  %97 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 0
  store i32 0, ptr %97, align 8, !tbaa !15
  %98 = load i64, ptr %16, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %7, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !17
  %101 = add i64 %100, %98
  store i64 %101, ptr %99, align 8, !tbaa !17
  store i32 1, ptr %17, align 4
  br label %102

102:                                              ; preds = %96, %94, %65, %52, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %103 = load { i32, i64 }, ptr %7, align 8
  ret { i32, i64 } %103
}

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

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

declare { i32, i64 } @ber_check_tags(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; 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) #4

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

declare i32 @asn_INTEGER2ulong(ptr noundef, ptr noundef) #3

declare i32 @asn_INTEGER2long(ptr noundef, ptr noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 152}
!14 = !{!"asn_TYPE_descriptor_s", !6, i64 0, !6, i64 8, !6, i64 16, !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, !12, i64 104, !6, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !12, i64 144, !6, i64 152}
!15 = !{!16, !12, i64 0}
!16 = !{!"asn_dec_rval_s", !12, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = !{i64 0, i64 4, !11, i64 8, i64 8, !9}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"ASN__PRIMITIVE_TYPE_s", !6, i64 0, !12, i64 8}
!22 = !{!21, !12, i64 8}
!23 = !{!24, !12, i64 32}
!24 = !{!"asn_INTEGER_specifics_s", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}


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

; Function Attrs: nounwind uwtable
define dso_local { i32, i64 } @NativeInteger_decode_ber(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca i64, align 8
  %8 = alloca %struct.ASN__PRIMITIVE_TYPE_s, align 8
  %9 = alloca i64, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 152
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %6
  %15 = tail call noalias dereferenceable_or_null(8) ptr @calloc(i64 noundef 1, i64 noundef 8) #5
  store ptr %15, ptr %2, align 8, !tbaa !11
  %16 = icmp eq ptr %15, null
  br i1 %16, label %40, label %17

17:                                               ; preds = %14, %6
  %.024 = phi ptr [ %15, %14 ], [ %12, %6 ]
  %18 = call { i32, i64 } @ber_check_tags(ptr noundef %0, ptr noundef nonnull %1, ptr noundef null, ptr noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef 0, ptr noundef nonnull %7, ptr noundef null) #4
  %19 = extractvalue { i32, i64 } %18, 0
  %20 = extractvalue { i32, i64 } %18, 1
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %21, label %40

21:                                               ; preds = %17
  %22 = sub i64 %4, %20
  %23 = load i64, ptr %7, align 8, !tbaa !12
  %24 = icmp sgt i64 %23, %22
  br i1 %24, label %40, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %3, i64 %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr %26, ptr %8, align 8, !tbaa !14
  %27 = trunc i64 %23 to i32
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %27, ptr %28, align 8, !tbaa !16
  %.not29 = icmp eq ptr %11, null
  br i1 %.not29, label %34, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %11, i64 32
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %.not30 = icmp eq i32 %31, 0
  br i1 %.not30, label %34, label %32

32:                                               ; preds = %29
  %33 = call i32 @asn_INTEGER2ulong(ptr noundef nonnull %8, ptr noundef nonnull %9) #4
  %.not32 = icmp eq i32 %33, 0
  br i1 %.not32, label %36, label %.thread

34:                                               ; preds = %29, %25
  %35 = call i32 @asn_INTEGER2long(ptr noundef nonnull %8, ptr noundef nonnull %9) #4
  %.not31 = icmp eq i32 %35, 0
  br i1 %.not31, label %36, label %.thread

.thread:                                          ; preds = %34, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %40

36:                                               ; preds = %34, %32
  %37 = load i64, ptr %9, align 8, !tbaa !12
  store i64 %37, ptr %.024, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  %38 = load i64, ptr %7, align 8, !tbaa !12
  %39 = add i64 %38, %20
  br label %40

40:                                               ; preds = %.thread, %21, %17, %14, %36
  %.sroa.019.1 = phi i32 [ 0, %36 ], [ 2, %14 ], [ %19, %17 ], [ 1, %21 ], [ 2, %.thread ]
  %.sroa.8.1 = phi i64 [ %39, %36 ], [ 0, %14 ], [ %20, %17 ], [ 0, %21 ], [ 0, %.thread ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %.fca.0.insert = insertvalue { i32, i64 } poison, i32 %.sroa.019.1, 0
  %.fca.1.insert = insertvalue { i32, i64 } %.fca.0.insert, i64 %.sroa.8.1, 1
  ret { i32, i64 } %.fca.1.insert
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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

declare { i32, i64 } @ber_check_tags(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @asn_INTEGER2ulong(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @asn_INTEGER2long(ptr noundef, ptr noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 }
attributes #5 = { 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, !7, i64 152}
!6 = !{!"asn_TYPE_descriptor_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !7, i64 112, !10, i64 120, !7, i64 128, !7, i64 136, !10, i64 144, !7, i64 152}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"ASN__PRIMITIVE_TYPE_s", !7, i64 0, !10, i64 8}
!16 = !{!15, !10, i64 8}
!17 = !{!18, !10, i64 32}
!18 = !{!"asn_INTEGER_specifics_s", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}


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