; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src (anisotropicparticlemesher)

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

; 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 nounwind uwtable
declare dso_local void @_ZN25AnisotropicParticleMesher28_getSubdividedGridDimensionsEPiS0_S0_Pd(ptr noundef nonnull align 8 dereferenceable(784), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesher13_getSliceMaskEiiR7Array3dIbE(ptr noundef nonnull align 8 dereferenceable(784) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = 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 ptr %3, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN7Array3dIbE4fillEb(ptr noundef nonnull align 8 dereferenceable(32) %23, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @_ZN25AnisotropicParticleMesher28_getSubdividedGridDimensionsEPiS0_S0_Pd(ptr noundef nonnull align 8 dereferenceable(784) %22, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp eq i32 %24, 0
  %26 = zext i1 %25 to i8
  store i8 %26, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = sub nsw i32 %28, 1
  %30 = icmp eq i32 %27, %29
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %14, align 1, !tbaa !11
  %32 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  br i1 %33, label %63, label %34

34:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %59, %34
  %36 = load i32, ptr %16, align 4, !tbaa !9
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.Array3d.23, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !15
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %35
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %62

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %55, %42
  %44 = load i32, ptr %18, align 4, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.Array3d.23, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = icmp slt i32 %44, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %43
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %58

50:                                               ; preds = %43
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = load i32, ptr %18, align 4, !tbaa !9
  %54 = load i32, ptr %16, align 4, !tbaa !9
  call void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32) %51, i32 noundef %52, i32 noundef %53, i32 noundef %54, i1 noundef zeroext false)
  br label %55

55:                                               ; preds = %50
  %56 = load i32, ptr %18, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %18, align 4, !tbaa !9
  br label %43, !llvm.loop !18

58:                                               ; preds = %49
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %16, align 4, !tbaa !9
  br label %35, !llvm.loop !20

62:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %63

63:                                               ; preds = %62, %4
  %64 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %65 = trunc i8 %64 to i1
  br i1 %65, label %99, label %66

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Array3d.23, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !21
  %70 = sub nsw i32 %69, 1
  store i32 %70, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %95, %66
  %72 = load i32, ptr %20, align 4, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.Array3d.23, ptr %73, i32 0, i32 2
  %75 = load i32, ptr %74, align 8, !tbaa !15
  %76 = icmp slt i32 %72, %75
  br i1 %76, label %78, label %77

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

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %91, %78
  %80 = load i32, ptr %21, align 4, !tbaa !9
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.Array3d.23, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !17
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %79
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %94

86:                                               ; preds = %79
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = load i32, ptr %20, align 4, !tbaa !9
  call void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32) %87, i32 noundef %88, i32 noundef %89, i32 noundef %90, i1 noundef zeroext false)
  br label %91

91:                                               ; preds = %86
  %92 = load i32, ptr %21, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %21, align 4, !tbaa !9
  br label %79, !llvm.loop !22

94:                                               ; preds = %85
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %20, align 4, !tbaa !9
  br label %71, !llvm.loop !23

98:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %99

99:                                               ; preds = %98, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array3dIbE4fillEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTS7Array3dIbE", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !12, i64 24, !12, i64 25, !10, i64 28}
!17 = !{!16, !10, i64 4}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!16, !10, i64 0}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}


; 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 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: mustprogress nounwind uwtable
declare dso_local void @_ZN25AnisotropicParticleMesher28_getSubdividedGridDimensionsEPiS0_S0_Pd(ptr noundef nonnull align 8 dereferenceable(784), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesher13_getSliceMaskEiiR7Array3dIbE(ptr noundef nonnull align 8 dereferenceable(784) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) local_unnamed_addr #2 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  tail call void @_ZN7Array3dIbE4fillEb(ptr noundef nonnull align 8 dereferenceable(32) %3, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @_ZN25AnisotropicParticleMesher28_getSubdividedGridDimensionsEPiS0_S0_Pd(ptr noundef nonnull align 8 dereferenceable(784) %0, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %9 = icmp eq i32 %1, 0
  %10 = load i32, ptr %5, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  %12 = icmp eq i32 %11, %2
  br i1 %9, label %.loopexit31, label %.preheader30

.preheader30:                                     ; preds = %4
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.preheader29.lr.ph, label %.loopexit31

.preheader29.lr.ph:                               ; preds = %.preheader30
  %16 = getelementptr inbounds i8, ptr %3, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !13
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.preheader29, label %.loopexit31

.preheader29:                                     ; preds = %.preheader29.lr.ph, %._crit_edge
  %19 = phi i32 [ %22, %._crit_edge ], [ %14, %.preheader29.lr.ph ]
  %20 = phi i32 [ %23, %._crit_edge ], [ %17, %.preheader29.lr.ph ]
  %.02733 = phi i32 [ %24, %._crit_edge ], [ 0, %.preheader29.lr.ph ]
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %13, align 8, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader29
  %22 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %19, %.preheader29 ]
  %23 = phi i32 [ %27, %._crit_edge.loopexit ], [ %20, %.preheader29 ]
  %24 = add nuw nsw i32 %.02733, 1
  %25 = icmp slt i32 %24, %22
  br i1 %25, label %.preheader29, label %.loopexit31, !llvm.loop !14

.lr.ph:                                           ; preds = %.preheader29, %.lr.ph
  %.02832 = phi i32 [ %26, %.lr.ph ], [ 0, %.preheader29 ]
  call void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0, i32 noundef %.02832, i32 noundef %.02733, i1 noundef zeroext false)
  %26 = add nuw nsw i32 %.02832, 1
  %27 = load i32, ptr %16, align 4, !tbaa !13
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !17

.loopexit31:                                      ; preds = %._crit_edge, %.preheader29.lr.ph, %.preheader30, %4
  br i1 %12, label %.loopexit, label %29

29:                                               ; preds = %.loopexit31
  %30 = load i32, ptr %3, align 8, !tbaa !18
  %31 = add nsw i32 %30, -1
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !9
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %29
  %35 = getelementptr inbounds i8, ptr %3, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !13
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge36
  %38 = phi i32 [ %41, %._crit_edge36 ], [ %33, %.preheader.lr.ph ]
  %39 = phi i32 [ %42, %._crit_edge36 ], [ %36, %.preheader.lr.ph ]
  %.02637 = phi i32 [ %43, %._crit_edge36 ], [ 0, %.preheader.lr.ph ]
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph35, label %._crit_edge36

._crit_edge36.loopexit:                           ; preds = %.lr.ph35
  %.pre40 = load i32, ptr %32, align 8, !tbaa !9
  br label %._crit_edge36

._crit_edge36:                                    ; preds = %._crit_edge36.loopexit, %.preheader
  %41 = phi i32 [ %.pre40, %._crit_edge36.loopexit ], [ %38, %.preheader ]
  %42 = phi i32 [ %46, %._crit_edge36.loopexit ], [ %39, %.preheader ]
  %43 = add nuw nsw i32 %.02637, 1
  %44 = icmp slt i32 %43, %41
  br i1 %44, label %.preheader, label %.loopexit, !llvm.loop !19

.lr.ph35:                                         ; preds = %.preheader, %.lr.ph35
  %.034 = phi i32 [ %45, %.lr.ph35 ], [ 0, %.preheader ]
  call void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %31, i32 noundef %.034, i32 noundef %.02637, i1 noundef zeroext false)
  %45 = add nuw nsw i32 %.034, 1
  %46 = load i32, ptr %35, align 4, !tbaa !13
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %.lr.ph35, label %._crit_edge36.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge36, %.preheader.lr.ph, %29, %.loopexit31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array3dIbE4fillEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS7Array3dIbE", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !12, i64 24, !12, i64 25, !6, i64 28}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!10, !6, i64 4}
!14 = distinct !{!14, !15, !16}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !15}
!18 = !{!10, !6, i64 0}
!19 = distinct !{!19, !15, !16}
!20 = distinct !{!20, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass