; LLVM IR from kimwalisch/primesieve :: src/CountPrintPrimes.ll (ZN10primesieve16CountPrintPrimes10initCountsEv)

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

%"class.primesieve::CountPrintPrimes" = type { %"class.primesieve::Erat", i64, [6 x %"class.primesieve::Vector"], ptr, ptr, %"class.primesieve::MemoryPool" }
%"class.primesieve::Erat" = type { i64, i64, i64, i64, %"class.primesieve::Vector", i64, i64, %"class.primesieve::EratSmall", %"class.primesieve::EratBig", %"class.primesieve::EratMedium" }
%"class.primesieve::Vector" = type { ptr, ptr, ptr }
%"class.primesieve::EratSmall" = type { %"class.primesieve::Wheel", i64, i64, %"class.primesieve::Vector.0" }
%"class.primesieve::Wheel" = type { ptr, i64 }
%"class.primesieve::Vector.0" = type { ptr, ptr, ptr }
%"class.primesieve::EratBig" = type { %"class.primesieve::Wheel.1", i64, i64, i64, ptr, %"class.primesieve::Vector.2" }
%"class.primesieve::Wheel.1" = type { ptr, i64 }
%"class.primesieve::Vector.2" = type { ptr, ptr, ptr }
%"class.primesieve::EratMedium" = type { %"class.primesieve::Wheel", i64, ptr, %"class.primesieve::Vector.2", %"class.primesieve::Vector.2" }
%"class.primesieve::MemoryPool" = type { ptr, i64, %"class.primesieve::Vector.3" }
%"class.primesieve::Vector.3" = type { ptr, ptr, ptr }

@_ZN12_GLOBAL__N_18bitmasksE = external hidden constant [6 x [5 x i64]], align 16

; 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: mustprogress uwtable
define dso_local void @_ZN10primesieve16CountPrintPrimes10initCountsEv(ptr noundef nonnull align 8 dereferenceable(488) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %74, %1
  %9 = load i32, ptr %3, align 4, !tbaa !9
  %10 = zext i32 %9 to i64
  %11 = getelementptr inbounds %"class.primesieve::CountPrintPrimes", ptr %7, i32 0, i32 3
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = call noundef i64 @_ZNK10primesieve5ArrayImLm6EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  %14 = icmp ult i64 %10, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %8
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %77

16:                                               ; preds = %8
  %17 = getelementptr inbounds %"class.primesieve::CountPrintPrimes", ptr %7, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !25
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = call noundef zeroext i1 @_ZNK10primesieve10PrimeSieve7isCountEi(ptr noundef nonnull align 8 dereferenceable(120) %18, i32 noundef %19)
  br i1 %20, label %21, label %73

21:                                               ; preds = %16
  %22 = getelementptr inbounds %"class.primesieve::CountPrintPrimes", ptr %7, i32 0, i32 2
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds [6 x %"class.primesieve::Vector"], ptr %22, i64 0, i64 %24
  call void @_ZN10primesieve6VectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef 256)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !26
  br label %26

26:                                               ; preds = %69, %21
  %27 = load i64, ptr %5, align 8, !tbaa !26
  %28 = icmp ult i64 %27, 256
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %72

30:                                               ; preds = %26
  %31 = getelementptr inbounds %"class.primesieve::CountPrintPrimes", ptr %7, i32 0, i32 2
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds [6 x %"class.primesieve::Vector"], ptr %31, i64 0, i64 %33
  %35 = load i64, ptr %5, align 8, !tbaa !26
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %35) #4
  store i8 0, ptr %36, align 1, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [6 x [5 x i64]], ptr @_ZN12_GLOBAL__N_18bitmasksE, i64 0, i64 %38
  %40 = getelementptr inbounds [5 x i64], ptr %39, i64 0, i64 0
  store ptr %40, ptr %6, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %65, %30
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !26
  %44 = load i64, ptr %5, align 8, !tbaa !26
  %45 = icmp ule i64 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %41
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %68

47:                                               ; preds = %41
  %48 = load i64, ptr %5, align 8, !tbaa !26
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !26
  %51 = and i64 %48, %50
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !26
  %54 = icmp eq i64 %51, %53
  br i1 %54, label %55, label %64

55:                                               ; preds = %47
  %56 = getelementptr inbounds %"class.primesieve::CountPrintPrimes", ptr %7, i32 0, i32 2
  %57 = load i32, ptr %3, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [6 x %"class.primesieve::Vector"], ptr %56, i64 0, i64 %58
  %60 = load i64, ptr %5, align 8, !tbaa !26
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %60) #4
  %62 = load i8, ptr %61, align 1, !tbaa !27
  %63 = add i8 %62, 1
  store i8 %63, ptr %61, align 1, !tbaa !27
  br label %64

64:                                               ; preds = %55, %47
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds i64, ptr %66, i32 1
  store ptr %67, ptr %6, align 8, !tbaa !5
  br label %41, !llvm.loop !28

68:                                               ; preds = %46
  br label %69

69:                                               ; preds = %68
  %70 = load i64, ptr %5, align 8, !tbaa !26
  %71 = add i64 %70, 1
  store i64 %71, ptr %5, align 8, !tbaa !26
  br label %26, !llvm.loop !30

72:                                               ; preds = %29
  br label %73

73:                                               ; preds = %72, %16
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = add i32 %75, 1
  store i32 %76, ptr %3, align 4, !tbaa !9
  br label %8, !llvm.loop !31

77:                                               ; preds = %15
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10primesieve5ArrayImLm6EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

declare noundef zeroext i1 @_ZNK10primesieve10PrimeSieve7isCountEi(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10primesieve6VectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 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 = { "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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 432}
!12 = !{!"_ZTSN10primesieve16CountPrintPrimesE", !13, i64 0, !14, i64 280, !7, i64 288, !6, i64 432, !6, i64 440, !23, i64 448}
!13 = !{!"_ZTSN10primesieve4EratE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32, !14, i64 56, !14, i64 64, !16, i64 72, !19, i64 128, !22, i64 200}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN10primesieve6VectorIhSaIhEEE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSN10primesieve9EratSmallE", !17, i64 0, !14, i64 16, !14, i64 24, !18, i64 32}
!17 = !{!"_ZTSN10primesieve5WheelILi30ELi8ELi6EXadsoKNS_9WheelInitEL_ZNS_11wheel30InitEEEEEE", !14, i64 8}
!18 = !{!"_ZTSN10primesieve6VectorINS_12SievingPrimeESaIS1_EEE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN10primesieve7EratBigE", !20, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !21, i64 48}
!20 = !{!"_ZTSN10primesieve5WheelILi210ELi48ELi10EXadsoKNS_9WheelInitEL_ZNS_12wheel210InitEEEEEE", !14, i64 8}
!21 = !{!"_ZTSN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN10primesieve10EratMediumE", !17, i64 0, !14, i64 16, !6, i64 24, !21, i64 32, !21, i64 56}
!23 = !{!"_ZTSN10primesieve10MemoryPoolE", !6, i64 0, !14, i64 8, !24, i64 16}
!24 = !{!"_ZTSN10primesieve6VectorINS0_IcSaIcEEESaIS2_EEE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!12, !6, i64 440}
!26 = !{!14, !14, i64 0}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}


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

%"class.primesieve::Vector" = type { ptr, ptr, ptr }

@_ZN12_GLOBAL__N_18bitmasksE = external hidden local_unnamed_addr constant [6 x [5 x i64]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10primesieve16CountPrintPrimes10initCountsEv(ptr noundef nonnull align 8 dereferenceable(488) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 432
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm6EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %3) #3
  %5 = icmp ugt i64 %4, 1
  br i1 %5, label %.lr.ph26, label %._crit_edge27

.lr.ph26:                                         ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 440
  %7 = getelementptr inbounds i8, ptr %0, i64 288
  br label %8

._crit_edge27:                                    ; preds = %.loopexit, %1
  ret void

8:                                                ; preds = %.lr.ph26, %.loopexit
  %9 = phi i64 [ 1, %.lr.ph26 ], [ %30, %.loopexit ]
  %.01824 = phi i32 [ 1, %.lr.ph26 ], [ %29, %.loopexit ]
  %10 = load ptr, ptr %6, align 8, !tbaa !22
  %11 = tail call noundef zeroext i1 @_ZNK10primesieve10PrimeSieve7isCountEi(ptr noundef nonnull align 8 dereferenceable(120) %10, i32 noundef %.01824)
  br i1 %11, label %12, label %.loopexit

12:                                               ; preds = %8
  %13 = getelementptr inbounds [6 x %"class.primesieve::Vector"], ptr %7, i64 0, i64 %9
  tail call void @_ZN10primesieve6VectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 256)
  %14 = getelementptr inbounds [6 x [5 x i64]], ptr @_ZN12_GLOBAL__N_18bitmasksE, i64 0, i64 %9
  br label %15

15:                                               ; preds = %12, %._crit_edge
  %.01723 = phi i64 [ 0, %12 ], [ %18, %._crit_edge ]
  %16 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.01723) #3
  store i8 0, ptr %16, align 1, !tbaa !23
  %17 = load i64, ptr %14, align 8, !tbaa !24
  %.not21 = icmp ugt i64 %17, %.01723
  br i1 %.not21, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %26, %15
  %18 = add nuw nsw i64 %.01723, 1
  %exitcond.not = icmp eq i64 %18, 256
  br i1 %exitcond.not, label %.loopexit, label %15, !llvm.loop !25

.lr.ph:                                           ; preds = %15, %26
  %19 = phi i64 [ %28, %26 ], [ %17, %15 ]
  %.022 = phi ptr [ %27, %26 ], [ %14, %15 ]
  %20 = and i64 %19, %.01723
  %21 = icmp eq i64 %20, %19
  br i1 %21, label %22, label %26

22:                                               ; preds = %.lr.ph
  %23 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.01723) #3
  %24 = load i8, ptr %23, align 1, !tbaa !23
  %25 = add i8 %24, 1
  store i8 %25, ptr %23, align 1, !tbaa !23
  br label %26

26:                                               ; preds = %.lr.ph, %22
  %27 = getelementptr inbounds i8, ptr %.022, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !24
  %.not = icmp ugt i64 %28, %.01723
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !27

.loopexit:                                        ; preds = %._crit_edge, %8
  %29 = add i32 %.01824, 1
  %30 = zext i32 %29 to i64
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm6EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %31) #3
  %33 = icmp ugt i64 %32, %30
  br i1 %33, label %8, label %._crit_edge27, !llvm.loop !28
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10primesieve5ArrayImLm6EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK10primesieve10PrimeSieve7isCountEi(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10primesieve6VectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 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 }

!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, !12, i64 432}
!6 = !{!"_ZTSN10primesieve16CountPrintPrimesE", !7, i64 0, !8, i64 280, !9, i64 288, !12, i64 432, !12, i64 440, !20, i64 448}
!7 = !{!"_ZTSN10primesieve4EratE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !8, i64 56, !8, i64 64, !13, i64 72, !16, i64 128, !19, i64 200}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN10primesieve6VectorIhSaIhEEE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSN10primesieve9EratSmallE", !14, i64 0, !8, i64 16, !8, i64 24, !15, i64 32}
!14 = !{!"_ZTSN10primesieve5WheelILi30ELi8ELi6EXadsoKNS_9WheelInitEL_ZNS_11wheel30InitEEEEEE", !8, i64 8}
!15 = !{!"_ZTSN10primesieve6VectorINS_12SievingPrimeESaIS1_EEE", !12, i64 0, !12, i64 8, !12, i64 16}
!16 = !{!"_ZTSN10primesieve7EratBigE", !17, i64 0, !8, i64 16, !8, i64 24, !8, i64 32, !12, i64 40, !18, i64 48}
!17 = !{!"_ZTSN10primesieve5WheelILi210ELi48ELi10EXadsoKNS_9WheelInitEL_ZNS_12wheel210InitEEEEEE", !8, i64 8}
!18 = !{!"_ZTSN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEE", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"_ZTSN10primesieve10EratMediumE", !14, i64 0, !8, i64 16, !12, i64 24, !18, i64 32, !18, i64 56}
!20 = !{!"_ZTSN10primesieve10MemoryPoolE", !12, i64 0, !8, i64 8, !21, i64 16}
!21 = !{!"_ZTSN10primesieve6VectorINS0_IcSaIcEEESaIS2_EEE", !12, i64 0, !12, i64 8, !12, i64 16}
!22 = !{!6, !12, i64 440}
!23 = !{!9, !9, i64 0}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass