; LLVM IR from sbischoff-ai/simple-molecular-dynamics :: SimpleMolecularDynamics/SimpleMolecularDynamics/mat.ll (ZN3mataSERKS_)

; 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.mat = type { ptr, i32, i32 }
%class.vec = type <{ ptr, i32, [4 x i8] }>

; 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 speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

declare void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #5

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #3

; 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 noundef nonnull align 8 dereferenceable(16) ptr @_ZN3mataSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %9 = load ptr, ptr %4, align 8
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = icmp eq ptr %9, %10
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  store ptr %9, ptr %3, align 8
  br label %108

13:                                               ; preds = %2
  %14 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 1
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %class.mat, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = icmp ne i32 %15, %18
  br i1 %19, label %20, label %76

20:                                               ; preds = %13
  %21 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %41

24:                                               ; preds = %20
  %25 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  %27 = icmp eq ptr %26, null
  br i1 %27, label %40, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %26, i64 -8
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds %class.vec, ptr %26, i64 %30
  %32 = icmp eq ptr %26, %31
  br i1 %32, label %37, label %33

33:                                               ; preds = %33, %28
  %34 = phi ptr [ %31, %28 ], [ %35, %33 ]
  %35 = getelementptr inbounds %class.vec, ptr %34, i64 -1
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %35) #7
  %36 = icmp eq ptr %35, %26
  br i1 %36, label %37, label %33

37:                                               ; preds = %33, %28
  %38 = mul i64 16, %30
  %39 = add i64 %38, 8
  call void @_ZdaPvm(ptr noundef %29, i64 noundef %39) #8
  br label %40

40:                                               ; preds = %37, %24
  br label %41

41:                                               ; preds = %40, %20
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.mat, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %45, i64 16)
  %47 = extractvalue { i64, i1 } %46, 1
  %48 = extractvalue { i64, i1 } %46, 0
  %49 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %48, i64 8)
  %50 = extractvalue { i64, i1 } %49, 1
  %51 = or i1 %47, %50
  %52 = extractvalue { i64, i1 } %49, 0
  %53 = select i1 %51, i64 -1, i64 %52
  %54 = call noalias noundef nonnull ptr @_Znam(i64 noundef %53) #9
  store i64 %45, ptr %54, align 16
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = icmp eq i64 %45, 0
  br i1 %56, label %64, label %57

57:                                               ; preds = %41
  %58 = getelementptr inbounds %class.vec, ptr %55, i64 %45
  br label %59

59:                                               ; preds = %61, %57
  %60 = phi ptr [ %55, %57 ], [ %62, %61 ]
  invoke void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %60)
          to label %61 unwind label %66

61:                                               ; preds = %59
  %62 = getelementptr inbounds %class.vec, ptr %60, i64 1
  %63 = icmp eq ptr %62, %58
  br i1 %63, label %64, label %59

64:                                               ; preds = %61, %41
  %65 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 0
  store ptr %55, ptr %65, align 8, !tbaa !12
  br label %76

66:                                               ; preds = %59
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %6, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %7, align 4
  %70 = icmp eq ptr %55, %60
  br i1 %70, label %75, label %71

71:                                               ; preds = %71, %66
  %72 = phi ptr [ %60, %66 ], [ %73, %71 ]
  %73 = getelementptr inbounds %class.vec, ptr %72, i64 -1
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %73) #7
  %74 = icmp eq ptr %73, %55
  br i1 %74, label %75, label %71

75:                                               ; preds = %71, %66
  call void @_ZdaPvm(ptr noundef %54, i64 noundef %53) #8
  br label %110

76:                                               ; preds = %64, %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !13
  br label %77

77:                                               ; preds = %96, %76
  %78 = load i32, ptr %8, align 4, !tbaa !13
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.mat, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %82 = icmp slt i32 %78, %81
  br i1 %82, label %83, label %99

83:                                               ; preds = %77
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.mat, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !12
  %87 = load i32, ptr %8, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %class.vec, ptr %86, i64 %88
  %90 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !12
  %92 = load i32, ptr %8, align 4, !tbaa !13
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %class.vec, ptr %91, i64 %93
  %95 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12) %94, ptr noundef nonnull align 8 dereferenceable(12) %89)
  br label %96

96:                                               ; preds = %83
  %97 = load i32, ptr %8, align 4, !tbaa !13
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %8, align 4, !tbaa !13
  br label %77, !llvm.loop !14

99:                                               ; preds = %77
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.mat, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 1
  store i32 %102, ptr %103, align 8, !tbaa !9
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.mat, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !16
  %107 = getelementptr inbounds %class.mat, ptr %9, i32 0, i32 2
  store i32 %106, ptr %107, align 4, !tbaa !16
  store ptr %9, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %108

108:                                              ; preds = %99, %12
  %109 = load ptr, ptr %3, align 8
  ret ptr %109

110:                                              ; preds = %75
  %111 = load ptr, ptr %6, align 8
  %112 = load i32, ptr %7, align 4
  %113 = insertvalue { ptr, i32 } poison, ptr %111, 0
  %114 = insertvalue { ptr, i32 } %113, i32 %112, 1
  resume { ptr, i32 } %114
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin 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 #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 "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 = { nobuiltin 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 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 #7 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin 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++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS3mat", !6, i64 0, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!10, !11, i64 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"

%class.vec = type <{ ptr, i32, [4 x i8] }>

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

declare void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3mataSERKS_(ptr noundef nonnull returned align 8 dereferenceable(16) %0, ptr noundef nonnull readonly align 8 dereferenceable(16) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = icmp eq ptr %0, %1
  br i1 %3, label %53, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i32 %6, %8
  br i1 %.not, label %39, label %9

9:                                                ; preds = %4
  %10 = load ptr, ptr %0, align 8, !tbaa !11
  %.not23 = icmp eq ptr %10, null
  br i1 %.not23, label %21, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %10, i64 -8
  %13 = load i64, ptr %12, align 8
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %.loopexit32, label %.preheader31.preheader

.preheader31.preheader:                           ; preds = %11
  %15 = getelementptr inbounds %class.vec, ptr %10, i64 %13
  br label %.preheader31

.preheader31:                                     ; preds = %.preheader31.preheader, %.preheader31
  %16 = phi ptr [ %17, %.preheader31 ], [ %15, %.preheader31.preheader ]
  %17 = getelementptr inbounds i8, ptr %16, i64 -16
  tail call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %17) #5
  %18 = icmp eq ptr %17, %10
  br i1 %18, label %.loopexit32, label %.preheader31

.loopexit32:                                      ; preds = %.preheader31, %11
  %19 = shl i64 %13, 4
  %20 = or disjoint i64 %19, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %12, i64 noundef %20) #6
  %.pr = load i32, ptr %7, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %.loopexit32, %9
  %22 = phi i32 [ %.pr, %.loopexit32 ], [ %8, %9 ]
  %23 = sext i32 %22 to i64
  %24 = icmp slt i32 %22, 0
  %25 = shl nsw i64 %23, 4
  %26 = or disjoint i64 %25, 8
  %27 = select i1 %24, i64 -1, i64 %26
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #7
  store i64 %23, ptr %28, align 16
  %.ptr25 = getelementptr inbounds i8, ptr %28, i64 8
  %29 = icmp eq i32 %22, 0
  br i1 %29, label %.loopexit30, label %30

30:                                               ; preds = %21
  %31 = getelementptr inbounds %class.vec, ptr %.ptr25, i64 %23
  br label %32

32:                                               ; preds = %33, %30
  %.idx = phi i64 [ 8, %30 ], [ %.add, %33 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %28, i64 %.idx
  invoke void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %.ptr.ptr)
          to label %33 unwind label %35

33:                                               ; preds = %32
  %.add = add nuw nsw i64 %.idx, 16
  %.ptr24 = getelementptr inbounds i8, ptr %28, i64 %.add
  %34 = icmp eq ptr %.ptr24, %31
  br i1 %34, label %.loopexit30.loopexit, label %32

.loopexit30.loopexit:                             ; preds = %33
  %.pre.pre = load i32, ptr %7, align 8, !tbaa !5
  br label %.loopexit30

.loopexit30:                                      ; preds = %.loopexit30.loopexit, %21
  %.pre = phi i32 [ %.pre.pre, %.loopexit30.loopexit ], [ 0, %21 ]
  store ptr %.ptr25, ptr %0, align 8, !tbaa !11
  br label %39

35:                                               ; preds = %32
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = icmp eq i64 %.idx, 8
  br i1 %37, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %35, %.preheader
  %.idx26 = phi i64 [ %.add27, %.preheader ], [ %.idx, %35 ]
  %.add27 = add nsw i64 %.idx26, -16
  %.ptr29 = getelementptr inbounds i8, ptr %28, i64 %.add27
  tail call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %.ptr29) #5
  %38 = icmp eq i64 %.add27, 8
  br i1 %38, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %35
  tail call void @_ZdaPvm(ptr noundef nonnull %28, i64 noundef %27) #6
  resume { ptr, i32 } %36

39:                                               ; preds = %.loopexit30, %4
  %40 = phi i32 [ %.pre, %.loopexit30 ], [ %6, %4 ]
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %39, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %39 ]
  %42 = load ptr, ptr %1, align 8, !tbaa !11
  %43 = getelementptr inbounds %class.vec, ptr %42, i64 %indvars.iv
  %44 = load ptr, ptr %0, align 8, !tbaa !11
  %45 = getelementptr inbounds %class.vec, ptr %44, i64 %indvars.iv
  %46 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12) %45, ptr noundef nonnull align 8 dereferenceable(12) %43)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i32, ptr %7, align 8, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next, %48
  br i1 %49, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %39
  %.lcssa = phi i32 [ %40, %39 ], [ %47, %.lr.ph ]
  store i32 %.lcssa, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %1, i64 12
  %51 = load i32, ptr %50, align 4, !tbaa !14
  %52 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %51, ptr %52, align 4, !tbaa !14
  br label %53

53:                                               ; preds = %2, %._crit_edge
  ret ptr %0
}

attributes #0 = { nobuiltin 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 #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 = { 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 = { nobuiltin 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 = { 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 #5 = { nounwind }
attributes #6 = { builtin nounwind }
attributes #7 = { builtin 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, !10, i64 8}
!6 = !{!"_ZTS3mat", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !10, i64 12}


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