; LLVM IR from opencryptoki/libzpc :: src/zkey (pkey)

; 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.pkey_apqns4keytype = type { i32, [32 x i8], [32 x i8], i32, ptr, i32 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@__PRETTY_FUNCTION__.alloc_apqns_from_mkvp = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @alloc_apqns_from_mkvp(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.pkey_apqns4keytype, align 8
  %12 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %13 = load ptr, ptr %7, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %5
  br label %17

16:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 315, ptr noundef @__PRETTY_FUNCTION__.alloc_apqns_from_mkvp) #8
  unreachable

17:                                               ; preds = %15
  %18 = load ptr, ptr %8, align 8, !tbaa !9
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  br label %22

21:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 316, ptr noundef @__PRETTY_FUNCTION__.alloc_apqns_from_mkvp) #8
  unreachable

22:                                               ; preds = %20
  %23 = load ptr, ptr %9, align 8, !tbaa !9
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  br label %27

26:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 317, ptr noundef @__PRETTY_FUNCTION__.alloc_apqns_from_mkvp) #8
  unreachable

27:                                               ; preds = %25
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr null, ptr %28, align 8, !tbaa !9
  %29 = load ptr, ptr %8, align 8, !tbaa !9
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %95, %27
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = icmp ugt i64 %32, 0
  br i1 %33, label %34, label %44

34:                                               ; preds = %30
  %35 = load ptr, ptr %8, align 8, !tbaa !9
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = call noalias ptr @calloc(i64 noundef %36, i64 noundef 4) #9
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %37, ptr %38, align 8, !tbaa !9
  %39 = load ptr, ptr %7, align 8, !tbaa !9
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %34
  store i32 17, ptr %12, align 4, !tbaa !5
  br label %104

43:                                               ; preds = %34
  br label %44

44:                                               ; preds = %43, %30
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 88, i1 false)
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 0
  store i32 %45, ptr %46, align 8, !tbaa !13
  %47 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 1
  %48 = getelementptr inbounds [32 x i8], ptr %47, i64 0, i64 0
  %49 = load ptr, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 1 %49, i64 32, i1 false)
  %50 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 2
  %51 = getelementptr inbounds [32 x i8], ptr %50, i64 0, i64 0
  %52 = load ptr, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 1 %52, i64 32, i1 false)
  %53 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 3
  store i32 2, ptr %53, align 4, !tbaa !15
  %54 = load ptr, ptr %7, align 8, !tbaa !9
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 4
  store ptr %55, ptr %56, align 8, !tbaa !16
  %57 = load ptr, ptr %8, align 8, !tbaa !9
  %58 = load i64, ptr %57, align 8, !tbaa !11
  %59 = trunc i64 %58 to i32
  %60 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 5
  store i32 %59, ptr %60, align 8, !tbaa !17
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = call i32 (i32, i64, ...) @ioctl(i32 noundef %61, i64 noundef 3227021340, ptr noundef %11) #7
  store i32 %62, ptr %12, align 4, !tbaa !5
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %77

65:                                               ; preds = %44
  %66 = load ptr, ptr %8, align 8, !tbaa !9
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %76, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %8, align 8, !tbaa !9
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = icmp ugt i64 %71, 0
  br i1 %72, label %73, label %77

73:                                               ; preds = %69
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = icmp ne i32 %74, 28
  br i1 %75, label %76, label %77

76:                                               ; preds = %73, %65
  store i32 44, ptr %12, align 4, !tbaa !5
  br label %104

77:                                               ; preds = %73, %69, %44
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %77
  %81 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 5
  %82 = load i32, ptr %81, align 8, !tbaa !17
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %80
  store i32 39, ptr %12, align 4, !tbaa !5
  br label %104

85:                                               ; preds = %80, %77
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %93

88:                                               ; preds = %85
  %89 = load ptr, ptr %8, align 8, !tbaa !9
  %90 = load i64, ptr %89, align 8, !tbaa !11
  %91 = icmp ugt i64 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %88
  br label %103

93:                                               ; preds = %88, %85
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %7, align 8, !tbaa !9
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  call void @free(ptr noundef %97) #7
  %98 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr null, ptr %98, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.pkey_apqns4keytype, ptr %11, i32 0, i32 5
  %100 = load i32, ptr %99, align 8, !tbaa !17
  %101 = zext i32 %100 to i64
  %102 = load ptr, ptr %8, align 8, !tbaa !9
  store i64 %101, ptr %102, align 8, !tbaa !11
  br label %30

103:                                              ; preds = %92
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %103, %84, %76, %42
  %105 = load i32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #7
  ret i32 %105
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"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}
!13 = !{!14, !6, i64 0}
!14 = !{!"pkey_apqns4keytype", !6, i64 0, !7, i64 4, !7, i64 36, !6, i64 68, !10, i64 72, !6, i64 80}
!15 = !{!14, !6, i64 68}
!16 = !{!14, !10, i64 72}
!17 = !{!14, !6, i64 80}


; 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.pkey_apqns4keytype = type { i32, [32 x i8], [32 x i8], i32, ptr, i32 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@__PRETTY_FUNCTION__.alloc_apqns_from_mkvp = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1

; 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 range(i32 0, 45) i32 @alloc_apqns_from_mkvp(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca %struct.pkey_apqns4keytype, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #7
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %7, label %8

7:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 315, ptr noundef nonnull @__PRETTY_FUNCTION__.alloc_apqns_from_mkvp) #8
  unreachable

8:                                                ; preds = %5
  %.not34 = icmp eq ptr %2, null
  br i1 %.not34, label %9, label %10

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 316, ptr noundef nonnull @__PRETTY_FUNCTION__.alloc_apqns_from_mkvp) #8
  unreachable

10:                                               ; preds = %8
  %.not35 = icmp eq ptr %3, null
  br i1 %.not35, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 317, ptr noundef nonnull @__PRETTY_FUNCTION__.alloc_apqns_from_mkvp) #8
  unreachable

12:                                               ; preds = %10
  store ptr null, ptr %1, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 4
  %14 = getelementptr inbounds i8, ptr %6, i64 36
  %15 = getelementptr inbounds i8, ptr %6, i64 68
  %16 = getelementptr inbounds i8, ptr %6, i64 72
  %17 = getelementptr inbounds i8, ptr %6, i64 80
  %18 = getelementptr inbounds i8, ptr %6, i64 80
  br label %19

19:                                               ; preds = %35, %12
  %storemerge = phi i64 [ 0, %12 ], [ %38, %35 ]
  store i64 %storemerge, ptr %2, align 8, !tbaa !9
  %.not36 = icmp eq i64 %storemerge, 0
  br i1 %.not36, label %23, label %20

20:                                               ; preds = %19
  %21 = call noalias ptr @calloc(i64 noundef %storemerge, i64 noundef 4) #9
  store ptr %21, ptr %1, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %39, label %23

23:                                               ; preds = %20, %19
  %24 = phi ptr [ %21, %20 ], [ null, %19 ]
  store i64 0, ptr %18, align 8
  store i32 %4, ptr %6, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %13, ptr noundef nonnull align 1 dereferenceable(32) %3, i64 32, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %14, ptr noundef nonnull align 1 dereferenceable(32) %3, i64 32, i1 false)
  store i32 2, ptr %15, align 4, !tbaa !14
  store ptr %24, ptr %16, align 8, !tbaa !15
  %25 = trunc nuw i64 %storemerge to i32
  store i32 %25, ptr %17, align 8, !tbaa !16
  %26 = call i32 (i32, i64, ...) @ioctl(i32 noundef %0, i64 noundef 3227021340, ptr noundef nonnull %6) #7
  %.not37 = icmp eq i32 %26, 0
  br i1 %.not37, label %30, label %27

27:                                               ; preds = %23
  %28 = load i64, ptr %2, align 8, !tbaa !9
  %29 = icmp ne i64 %28, 0
  %.not38 = icmp eq i32 %26, 28
  %or.cond = and i1 %.not38, %29
  br i1 %or.cond, label %35, label %39

30:                                               ; preds = %23
  %31 = load i32, ptr %17, align 8
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %39, label %33

33:                                               ; preds = %30
  %34 = load i64, ptr %2, align 8, !tbaa !9
  %.not39 = icmp eq i64 %34, 0
  br i1 %.not39, label %35, label %39

35:                                               ; preds = %27, %33
  %36 = load ptr, ptr %1, align 8, !tbaa !5
  call void @free(ptr noundef %36) #7
  store ptr null, ptr %1, align 8, !tbaa !5
  %37 = load i32, ptr %17, align 8, !tbaa !16
  %38 = zext i32 %37 to i64
  br label %19

39:                                               ; preds = %33, %30, %27, %20
  %.0 = phi i32 [ 17, %20 ], [ 44, %27 ], [ 39, %30 ], [ 0, %33 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #7
  ret i32 %.0
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; 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 #3

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

; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) local_unnamed_addr #5

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

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 = { noreturn 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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, !13, i64 0}
!12 = !{!"pkey_apqns4keytype", !13, i64 0, !7, i64 4, !7, i64 36, !13, i64 68, !6, i64 72, !13, i64 80}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 68}
!15 = !{!12, !6, i64 72}
!16 = !{!12, !13, i64 80}


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