; LLVM IR from mhsitu/welding_robot :: coppeliaSim-client/common/stack/stackArray.ll (ZN11CStackArray14buildFromStackEi)

; 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.CStackArray = type <{ %class.CStackObject.base, [4 x i8], %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", i8, [7 x i8] }>
%class.CStackObject.base = type <{ ptr, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<CStackObject *, std::allocator<CStackObject *>>::_Vector_impl" }
%"struct.std::_Vector_base<CStackObject *, std::allocator<CStackObject *>>::_Vector_impl" = type { %"struct.std::_Vector_base<CStackObject *, std::allocator<CStackObject *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CStackObject *, std::allocator<CStackObject *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@simPopStackItem = external global ptr, align 8
@simGetStackSize = external global ptr, align 8
@simMoveStackItemToTop = external global ptr, align 8
@simGetStackDoubleValue = external global ptr, align 8

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

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

; 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 noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11CStackArray14buildFromStackEi(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  %13 = getelementptr inbounds %class.CStackArray, ptr %12, i32 0, i32 2
  %14 = call noundef i64 @_ZNKSt6vectorIP12CStackObjectSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  %15 = getelementptr inbounds %class.CStackArray, ptr %12, i32 0, i32 3
  %16 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  %17 = add i64 %14, %16
  %18 = getelementptr inbounds %class.CStackArray, ptr %12, i32 0, i32 4
  %19 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  %20 = add i64 %17, %19
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %91

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %23 = load ptr, ptr @simGetStackSize, align 8, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = call noundef i32 %23(i32 noundef %24)
  store i32 %25, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 1, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %41, %22
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %44

31:                                               ; preds = %26
  %32 = load ptr, ptr @simMoveStackItemToTop, align 8, !tbaa !5
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = call noundef i32 %32(i32 noundef %33, i32 noundef 0)
  %35 = load ptr, ptr @simGetStackDoubleValue, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = call noundef i32 %35(i32 noundef %36, ptr noundef %8)
  %38 = icmp ne i32 1, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %31
  store i8 0, ptr %7, align 1, !tbaa !11
  br label %40

40:                                               ; preds = %39, %31
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !9
  br label %26, !llvm.loop !13

44:                                               ; preds = %30
  %45 = load i8, ptr %7, align 1, !tbaa !11, !range !15, !noundef !16
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %75

47:                                               ; preds = %44
  %48 = getelementptr inbounds %class.CStackArray, ptr %12, i32 0, i32 3
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %71, %47
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %74

56:                                               ; preds = %51
  %57 = load ptr, ptr @simMoveStackItemToTop, align 8, !tbaa !5
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = call noundef i32 %57(i32 noundef %58, i32 noundef 0)
  %60 = load ptr, ptr @simGetStackDoubleValue, align 8, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !9
  %62 = call noundef i32 %60(i32 noundef %61, ptr noundef %8)
  %63 = load double, ptr %8, align 8, !tbaa !17
  %64 = getelementptr inbounds %class.CStackArray, ptr %12, i32 0, i32 3
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #3
  store double %63, ptr %67, align 8, !tbaa !17
  %68 = load ptr, ptr @simPopStackItem, align 8, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = call noundef i32 %68(i32 noundef %69, i32 noundef 1)
  br label %71

71:                                               ; preds = %56
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %10, align 4, !tbaa !9
  br label %51, !llvm.loop !19

74:                                               ; preds = %55
  br label %90

75:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %86, %75
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %89

81:                                               ; preds = %76
  %82 = load ptr, ptr @simMoveStackItemToTop, align 8, !tbaa !5
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = call noundef i32 %82(i32 noundef %83, i32 noundef 0)
  %85 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN11CStackArray18appendTopStackItemEi(ptr noundef nonnull align 8 dereferenceable(89) %12, i32 noundef %85)
  br label %86

86:                                               ; preds = %81
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %11, align 4, !tbaa !9
  br label %76, !llvm.loop !20

89:                                               ; preds = %80
  br label %90

90:                                               ; preds = %89, %74
  store i1 true, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %92

91:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %92

92:                                               ; preds = %91, %90
  %93 = load i1, ptr %3, align 1
  ret i1 %93
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11CStackArray18appendTopStackItemEi(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef) #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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

@simPopStackItem = external local_unnamed_addr global ptr, align 8
@simGetStackSize = external local_unnamed_addr global ptr, align 8
@simMoveStackItemToTop = external local_unnamed_addr global ptr, align 8
@simGetStackDoubleValue = external local_unnamed_addr global ptr, align 8

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP12CStackObjectSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; 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 noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11CStackArray14buildFromStackEi(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = alloca double, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = tail call noundef i64 @_ZNKSt6vectorIP12CStackObjectSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %8 = add i64 %7, %5
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  %11 = sub i64 0, %10
  %12 = icmp eq i64 %8, %11
  br i1 %12, label %13, label %35

13:                                               ; preds = %2
  %14 = load ptr, ptr @simGetStackSize, align 8, !tbaa !5
  %15 = tail call noundef i32 %14(i32 noundef %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %.critedge.thread

.critedge.thread:                                 ; preds = %13
  %17 = sext i32 %15 to i64
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %17)
  br label %.loopexit

._crit_edge:                                      ; preds = %.lr.ph
  br i1 %spec.select, label %.critedge, label %.lr.ph30

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.02228 = phi i32 [ %22, %.lr.ph ], [ 0, %13 ]
  %.02327 = phi i1 [ %spec.select, %.lr.ph ], [ true, %13 ]
  %18 = load ptr, ptr @simMoveStackItemToTop, align 8, !tbaa !5
  %19 = call noundef i32 %18(i32 noundef %1, i32 noundef 0)
  %20 = load ptr, ptr @simGetStackDoubleValue, align 8, !tbaa !5
  %21 = call noundef i32 %20(i32 noundef %1, ptr noundef nonnull %3)
  %.not = icmp eq i32 %21, 1
  %spec.select = select i1 %.not, i1 %.02327, i1 false
  %22 = add nuw nsw i32 %.02228, 1
  %exitcond.not = icmp eq i32 %22, %15
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

.critedge:                                        ; preds = %._crit_edge
  %23 = zext nneg i32 %15 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %23)
  br i1 %16, label %.lr.ph33.preheader, label %.loopexit

.lr.ph33.preheader:                               ; preds = %.critedge
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %.lr.ph33

.lr.ph33:                                         ; preds = %.lr.ph33.preheader, %.lr.ph33
  %indvars.iv = phi i64 [ 0, %.lr.ph33.preheader ], [ %indvars.iv.next, %.lr.ph33 ]
  %24 = load ptr, ptr @simMoveStackItemToTop, align 8, !tbaa !5
  %25 = call noundef i32 %24(i32 noundef %1, i32 noundef 0)
  %26 = load ptr, ptr @simGetStackDoubleValue, align 8, !tbaa !5
  %27 = call noundef i32 %26(i32 noundef %1, ptr noundef nonnull %3)
  %28 = load double, ptr %3, align 8, !tbaa !11
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #3
  store double %28, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr @simPopStackItem, align 8, !tbaa !5
  %31 = call noundef i32 %30(i32 noundef %1, i32 noundef 1)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond37.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond37.not, label %.loopexit, label %.lr.ph33, !llvm.loop !13

.lr.ph30:                                         ; preds = %._crit_edge, %.lr.ph30
  %.029 = phi i32 [ %34, %.lr.ph30 ], [ 0, %._crit_edge ]
  %32 = load ptr, ptr @simMoveStackItemToTop, align 8, !tbaa !5
  %33 = call noundef i32 %32(i32 noundef %1, i32 noundef 0)
  call void @_ZN11CStackArray18appendTopStackItemEi(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1)
  %34 = add nuw nsw i32 %.029, 1
  %exitcond35.not = icmp eq i32 %34, %15
  br i1 %exitcond35.not, label %.loopexit, label %.lr.ph30, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph30, %.lr.ph33, %.critedge.thread, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br label %35

35:                                               ; preds = %2, %.loopexit
  ret i1 %12
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11CStackArray18appendTopStackItemEi(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef) 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass