; LLVM IR from lekkas/c-algorithms :: src/algos (MergeSort)

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

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

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

18:                                               ; preds = %32, %4
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %22, label %35

22:                                               ; preds = %18
  %23 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %23, ptr %10, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds i32, ptr %24, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %28, ptr %29, align 4, !tbaa !9
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void @enqueue(ptr noundef %30, ptr noundef %31)
  br label %32

32:                                               ; preds = %22
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %9, align 4, !tbaa !9
  br label %18, !llvm.loop !11

35:                                               ; preds = %18
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %9, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %52, %35
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %42, label %55

42:                                               ; preds = %38
  %43 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %43, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %44, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %48, ptr %49, align 4, !tbaa !9
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  call void @enqueue(ptr noundef %50, ptr noundef %51)
  br label %52

52:                                               ; preds = %42
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %9, align 4, !tbaa !9
  br label %38, !llvm.loop !13

55:                                               ; preds = %38
  %56 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %56, ptr %9, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %96, %55
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = call i32 @isQueueEmpty(ptr noundef %58)
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %66, label %61

61:                                               ; preds = %57
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = call i32 @isQueueEmpty(ptr noundef %62)
  %64 = icmp ne i32 %63, 0
  %65 = xor i1 %64, true
  br label %66

66:                                               ; preds = %61, %57
  %67 = phi i1 [ false, %57 ], [ %65, %61 ]
  br i1 %67, label %68, label %97

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = call ptr @peekTail(ptr noundef %69)
  %71 = load i32, ptr %70, align 4, !tbaa !9
  store i32 %71, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = call ptr @peekTail(ptr noundef %72)
  %74 = load i32, ptr %73, align 4, !tbaa !9
  store i32 %74, ptr %14, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %78, label %87

78:                                               ; preds = %68
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = call ptr @dequeue(ptr noundef %79)
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %9, align 4, !tbaa !9
  %85 = sext i32 %83 to i64
  %86 = getelementptr inbounds i32, ptr %82, i64 %85
  store i32 %81, ptr %86, align 4, !tbaa !9
  br label %96

87:                                               ; preds = %68
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = call ptr @dequeue(ptr noundef %88)
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %9, align 4, !tbaa !9
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds i32, ptr %91, i64 %94
  store i32 %90, ptr %95, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %87, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %57, !llvm.loop !14

97:                                               ; preds = %66
  br label %98

98:                                               ; preds = %103, %97
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = call i32 @isQueueEmpty(ptr noundef %99)
  %101 = icmp ne i32 %100, 0
  %102 = xor i1 %101, true
  br i1 %102, label %103, label %112

103:                                              ; preds = %98
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = call ptr @dequeue(ptr noundef %104)
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %9, align 4, !tbaa !9
  %110 = sext i32 %108 to i64
  %111 = getelementptr inbounds i32, ptr %107, i64 %110
  store i32 %106, ptr %111, align 4, !tbaa !9
  br label %98, !llvm.loop !15

112:                                              ; preds = %98
  br label %113

113:                                              ; preds = %118, %112
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = call i32 @isQueueEmpty(ptr noundef %114)
  %116 = icmp ne i32 %115, 0
  %117 = xor i1 %116, true
  br i1 %117, label %118, label %127

118:                                              ; preds = %113
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = call ptr @dequeue(ptr noundef %119)
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %9, align 4, !tbaa !9
  %125 = sext i32 %123 to i64
  %126 = getelementptr inbounds i32, ptr %122, i64 %125
  store i32 %121, ptr %126, align 4, !tbaa !9
  br label %113, !llvm.loop !16

127:                                              ; preds = %113
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  call void @delQueue(ptr noundef %128)
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  call void @delQueue(ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

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

declare ptr @createQueue() #2

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

declare void @enqueue(ptr noundef, ptr noundef) #2

declare i32 @isQueueEmpty(ptr noundef) #2

declare ptr @peekTail(ptr noundef) #2

declare ptr @dequeue(ptr noundef) #2

declare void @delQueue(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 = { nounwind allocsize(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 }
attributes #5 = { nounwind allocsize(0) }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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: nounwind uwtable
define dso_local void @mergeA(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = tail call ptr @createQueue() #3
  %6 = tail call ptr @createQueue() #3
  %.not49 = icmp sgt i32 %1, %2
  br i1 %.not49, label %.preheader48, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %4
  %7 = sext i32 %1 to i64
  %8 = add i32 %2, 1
  br label %.lr.ph

.preheader48:                                     ; preds = %.lr.ph, %4
  %.not41.not51 = icmp slt i32 %2, %3
  br i1 %.not41.not51, label %.lr.ph53.preheader, label %.preheader47

.lr.ph53.preheader:                               ; preds = %.preheader48
  %9 = sext i32 %2 to i64
  %wide.trip.count = sext i32 %3 to i64
  br label %.lr.ph53

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %7, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %10 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #4
  %11 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %12 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %12, ptr %10, align 4, !tbaa !5
  tail call void @enqueue(ptr noundef %5, ptr noundef nonnull %10) #3
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %8, %lftr.wideiv
  br i1 %exitcond.not, label %.preheader48, label %.lr.ph, !llvm.loop !9

.preheader47:                                     ; preds = %.lr.ph53, %.preheader48
  %13 = tail call i32 @isQueueEmpty(ptr noundef %5) #3
  %.not4254 = icmp eq i32 %13, 0
  br i1 %.not4254, label %.lr.ph56.preheader, label %.critedge

.lr.ph56.preheader:                               ; preds = %.preheader47
  %14 = sext i32 %1 to i64
  br label %.lr.ph56

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %.lr.ph53
  %indvars.iv67 = phi i64 [ %9, %.lr.ph53.preheader ], [ %indvars.iv.next68, %.lr.ph53 ]
  %indvars.iv.next68 = add nsw i64 %indvars.iv67, 1
  %15 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #4
  %16 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next68
  %17 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %17, ptr %15, align 4, !tbaa !5
  tail call void @enqueue(ptr noundef %6, ptr noundef nonnull %15) #3
  %exitcond70.not = icmp eq i64 %indvars.iv.next68, %wide.trip.count
  br i1 %exitcond70.not, label %.preheader47, label %.lr.ph53, !llvm.loop !11

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %19
  %indvars.iv71 = phi i64 [ %14, %.lr.ph56.preheader ], [ %indvars.iv.next72, %19 ]
  %18 = tail call i32 @isQueueEmpty(ptr noundef %6) #3
  %.not43 = icmp eq i32 %18, 0
  br i1 %.not43, label %19, label %.critedge.loopexit

19:                                               ; preds = %.lr.ph56
  %20 = tail call ptr @peekTail(ptr noundef %5) #3
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = tail call ptr @peekTail(ptr noundef %6) #3
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %.not44 = icmp sgt i32 %21, %23
  %. = select i1 %.not44, ptr %6, ptr %5
  %24 = tail call ptr @dequeue(ptr noundef %.) #3
  %.sink = load i32, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv71
  store i32 %.sink, ptr %25, align 4
  %indvars.iv.next72 = add nsw i64 %indvars.iv71, 1
  %26 = tail call i32 @isQueueEmpty(ptr noundef %5) #3
  %.not42 = icmp eq i32 %26, 0
  br i1 %.not42, label %.lr.ph56, label %.critedge.loopexit, !llvm.loop !12

.critedge.loopexit:                               ; preds = %19, %.lr.ph56
  %.2.lcssa.ph.in = phi i64 [ %indvars.iv71, %.lr.ph56 ], [ %indvars.iv.next72, %19 ]
  %.2.lcssa.ph = trunc i64 %.2.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader47
  %.2.lcssa = phi i32 [ %1, %.preheader47 ], [ %.2.lcssa.ph, %.critedge.loopexit ]
  %27 = tail call i32 @isQueueEmpty(ptr noundef %5) #3
  %.not4559 = icmp eq i32 %27, 0
  br i1 %.not4559, label %.lr.ph61.preheader, label %.preheader

.lr.ph61.preheader:                               ; preds = %.critedge
  %28 = sext i32 %.2.lcssa to i64
  br label %.lr.ph61

.preheader.loopexit:                              ; preds = %.lr.ph61
  %29 = trunc nsw i64 %indvars.iv.next75 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.critedge
  %.4.lcssa = phi i32 [ %.2.lcssa, %.critedge ], [ %29, %.preheader.loopexit ]
  %30 = tail call i32 @isQueueEmpty(ptr noundef %6) #3
  %.not4663 = icmp eq i32 %30, 0
  br i1 %.not4663, label %.lr.ph65.preheader, label %._crit_edge

.lr.ph65.preheader:                               ; preds = %.preheader
  %31 = sext i32 %.4.lcssa to i64
  br label %.lr.ph65

.lr.ph61:                                         ; preds = %.lr.ph61.preheader, %.lr.ph61
  %indvars.iv74 = phi i64 [ %28, %.lr.ph61.preheader ], [ %indvars.iv.next75, %.lr.ph61 ]
  %32 = tail call ptr @dequeue(ptr noundef %5) #3
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %indvars.iv.next75 = add nsw i64 %indvars.iv74, 1
  %34 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv74
  store i32 %33, ptr %34, align 4, !tbaa !5
  %35 = tail call i32 @isQueueEmpty(ptr noundef %5) #3
  %.not45 = icmp eq i32 %35, 0
  br i1 %.not45, label %.lr.ph61, label %.preheader.loopexit, !llvm.loop !13

.lr.ph65:                                         ; preds = %.lr.ph65.preheader, %.lr.ph65
  %indvars.iv78 = phi i64 [ %31, %.lr.ph65.preheader ], [ %indvars.iv.next79, %.lr.ph65 ]
  %36 = tail call ptr @dequeue(ptr noundef %6) #3
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %indvars.iv.next79 = add nsw i64 %indvars.iv78, 1
  %38 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv78
  store i32 %37, ptr %38, align 4, !tbaa !5
  %39 = tail call i32 @isQueueEmpty(ptr noundef %6) #3
  %.not46 = icmp eq i32 %39, 0
  br i1 %.not46, label %.lr.ph65, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph65, %.preheader
  tail call void @delQueue(ptr noundef %5) #3
  tail call void @delQueue(ptr noundef %6) #3
  ret void
}

declare ptr @createQueue() local_unnamed_addr #1

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

declare void @enqueue(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @isQueueEmpty(ptr noundef) local_unnamed_addr #1

declare ptr @peekTail(ptr noundef) local_unnamed_addr #1

declare ptr @dequeue(ptr noundef) local_unnamed_addr #1

declare void @delQueue(ptr noundef) 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 = { nounwind }
attributes #4 = { nounwind allocsize(0) }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass