; LLVM IR from yinqiwen/ardb :: src/common/channel/timer/timer.ll (ZN4ardb5Timer7RoutineEv)

; 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.ardb::Timer" = type { ptr, %"class.ardb::TimerTaskQueue", %"class.btree::btree_map" }
%"class.ardb::TimerTaskQueue" = type { ptr, i32, i32 }
%"class.btree::btree_map" = type { %"class.btree::btree_map_container" }
%"class.btree::btree_map_container" = type { %"class.btree::btree_unique_container" }
%"class.btree::btree_unique_container" = type { %"class.btree::btree_container" }
%"class.btree::btree_container" = type { %"class.btree::btree" }
%"class.btree::btree" = type { %"struct.btree::btree<btree::btree_map_params<unsigned int, ardb::TimerTask *, std::less<unsigned int>, std::allocator<std::pair<const unsigned int, ardb::TimerTask *>>, 256>>::empty_base_handle" }
%"struct.btree::btree<btree::btree_map_params<unsigned int, ardb::TimerTask *, std::less<unsigned int>, std::allocator<std::pair<const unsigned int, ardb::TimerTask *>>, 256>>::empty_base_handle" = type { ptr }
%"class.ardb::TimerTask" = type <{ i32, i32, i64, i64, i32, [4 x i8], i64, ptr, 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare noundef ptr @_ZN4ardb14TimerTaskQueue6GetMinEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

declare noundef i64 @_ZN4ardb24get_current_epoch_millisEv() #1

declare noundef i64 @_ZN4ardb10millistimeEmNS_8TimeUnitE(i64 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4ardb5Timer7RoutineEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 -1, ptr %4, align 8, !tbaa !11
  br label %10

10:                                               ; preds = %86, %84, %1
  %11 = getelementptr inbounds %"class.ardb::Timer", ptr %9, i32 0, i32 1
  %12 = call noundef zeroext i1 @_ZN4ardb14TimerTaskQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %13 = xor i1 %12, true
  br i1 %13, label %14, label %87

14:                                               ; preds = %10
  store i64 -1, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %15 = getelementptr inbounds %"class.ardb::Timer", ptr %9, i32 0, i32 1
  %16 = call noundef ptr @_ZN4ardb14TimerTaskQueue6GetMinEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  store ptr %16, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %17 = call noundef i64 @_ZN4ardb24get_current_epoch_millisEv()
  store i64 %17, ptr %6, align 8, !tbaa !11
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.ardb::TimerTask", ptr %18, i32 0, i32 6
  %20 = load i64, ptr %19, align 8, !tbaa !13
  %21 = load i64, ptr %6, align 8, !tbaa !11
  %22 = icmp ugt i64 %20, %21
  br i1 %22, label %23, label %29

23:                                               ; preds = %14
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.ardb::TimerTask", ptr %24, i32 0, i32 6
  %26 = load i64, ptr %25, align 8, !tbaa !13
  %27 = load i64, ptr %6, align 8, !tbaa !11
  %28 = sub i64 %26, %27
  store i64 %28, ptr %4, align 8, !tbaa !11
  store i32 3, ptr %7, align 4
  br label %84

29:                                               ; preds = %14
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.ardb::TimerTask", ptr %30, i32 0, i32 7
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = icmp ne ptr null, %32
  br i1 %33, label %34, label %80

34:                                               ; preds = %29
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call noundef i32 @_ZN4ardb9TimerTask8GetStateEv(ptr noundef nonnull align 8 dereferenceable(60) %35)
  %37 = icmp eq i32 1, %36
  br i1 %37, label %38, label %76

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.ardb::TimerTask", ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  store ptr %41, ptr %8, align 8, !tbaa !5
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = add i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.ardb::TimerTask", ptr %44, i32 0, i32 3
  %46 = load i64, ptr %45, align 8, !tbaa !18
  %47 = icmp sgt i64 %46, 0
  br i1 %47, label %48, label %63

48:                                               ; preds = %38
  %49 = getelementptr inbounds %"class.ardb::Timer", ptr %9, i32 0, i32 1
  %50 = call noundef i64 @_ZN4ardb24get_current_epoch_millisEv()
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.ardb::TimerTask", ptr %51, i32 0, i32 3
  %53 = load i64, ptr %52, align 8, !tbaa !18
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.ardb::TimerTask", ptr %54, i32 0, i32 4
  %56 = load i32, ptr %55, align 8, !tbaa !19
  %57 = call noundef i64 @_ZN4ardb10millistimeEmNS_8TimeUnitE(i64 noundef %53, i32 noundef %56)
  %58 = add i64 %50, %57
  call void @_ZN4ardb14TimerTaskQueue13RescheduleMinEm(ptr noundef nonnull align 8 dereferenceable(16) %49, i64 noundef %58)
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = getelementptr inbounds ptr, ptr %60, i64 0
  %62 = load ptr, ptr %61, align 8
  call void %62(ptr noundef nonnull align 8 dereferenceable(8) %59)
  store i32 2, ptr %7, align 4
  br label %73, !llvm.loop !22

63:                                               ; preds = %38
  %64 = getelementptr inbounds %"class.ardb::Timer", ptr %9, i32 0, i32 1
  call void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.ardb::TimerTask", ptr %65, i32 0, i32 1
  store i32 2, ptr %66, align 4, !tbaa !24
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = getelementptr inbounds ptr, ptr %68, i64 0
  %70 = load ptr, ptr %69, align 8
  call void %70(ptr noundef nonnull align 8 dereferenceable(8) %67)
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4ardb5Timer12DoTerminatedEPNS_9TimerTaskEb(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %71, i1 noundef zeroext true)
  br label %72

72:                                               ; preds = %63
  store i32 0, ptr %7, align 4
  br label %73

73:                                               ; preds = %72, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %74 = load i32, ptr %7, align 4
  switch i32 %74, label %84 [
    i32 0, label %75
  ]

75:                                               ; preds = %73
  br label %79

76:                                               ; preds = %34
  %77 = getelementptr inbounds %"class.ardb::Timer", ptr %9, i32 0, i32 1
  call void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16) %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4ardb5Timer12DoTerminatedEPNS_9TimerTaskEb(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %78, i1 noundef zeroext true)
  br label %79

79:                                               ; preds = %76, %75
  br label %82

80:                                               ; preds = %29
  %81 = getelementptr inbounds %"class.ardb::Timer", ptr %9, i32 0, i32 1
  call void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16) %81)
  br label %82

82:                                               ; preds = %80, %79
  br label %83

83:                                               ; preds = %82
  store i32 0, ptr %7, align 4
  br label %84

84:                                               ; preds = %83, %73, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %85 = load i32, ptr %7, align 4
  switch i32 %85, label %89 [
    i32 0, label %86
    i32 3, label %87
    i32 2, label %10
  ]

86:                                               ; preds = %84
  br label %10, !llvm.loop !22

87:                                               ; preds = %84, %10
  %88 = load i64, ptr %4, align 8, !tbaa !11
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret i64 %88

89:                                               ; preds = %84
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4ardb14TimerTaskQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4ardb9TimerTask8GetStateEv(ptr noundef nonnull align 8 dereferenceable(60)) #3 align 2

declare void @_ZN4ardb14TimerTaskQueue13RescheduleMinEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1

declare void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { inlinehint 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 #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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 32}
!14 = !{!"_ZTSN4ardb9TimerTaskE", !10, i64 0, !15, i64 4, !12, i64 8, !12, i64 16, !16, i64 24, !12, i64 32, !6, i64 40, !6, i64 48, !10, i64 56}
!15 = !{!"_ZTSN4ardb14TimerTaskStateE", !7, i64 0}
!16 = !{!"_ZTSN4ardb8TimeUnitE", !7, i64 0}
!17 = !{!14, !6, i64 40}
!18 = !{!14, !12, i64 16}
!19 = !{!14, !16, i64 24}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!14, !15, i64 4}


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

declare noundef ptr @_ZN4ardb14TimerTaskQueue6GetMinEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

declare noundef i64 @_ZN4ardb24get_current_epoch_millisEv() local_unnamed_addr #0

declare noundef i64 @_ZN4ardb10millistimeEmNS_8TimeUnitE(i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4ardb5Timer7RoutineEv(ptr noundef nonnull align 8 dereferenceable(32) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = tail call noundef zeroext i1 @_ZN4ardb14TimerTaskQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %3, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %1, %36
  %4 = tail call noundef ptr @_ZN4ardb14TimerTaskQueue6GetMinEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %5 = tail call noundef i64 @_ZN4ardb24get_current_epoch_millisEv()
  %6 = getelementptr inbounds i8, ptr %4, i64 32
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = icmp ugt i64 %7, %5
  br i1 %8, label %.thread, label %10

.thread:                                          ; preds = %.lr.ph
  %9 = sub i64 %7, %5
  br label %.loopexit

10:                                               ; preds = %.lr.ph
  %11 = getelementptr inbounds i8, ptr %4, i64 40
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %35, label %13

13:                                               ; preds = %10
  %14 = tail call noundef i32 @_ZN4ardb9TimerTask8GetStateEv(ptr noundef nonnull align 8 dereferenceable(60) %4)
  %15 = icmp eq i32 %14, 1
  br i1 %15, label %16, label %34

16:                                               ; preds = %13
  %17 = load ptr, ptr %11, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %4, i64 16
  %19 = load i64, ptr %18, align 8, !tbaa !15
  %20 = icmp slt i64 %19, 1
  br i1 %20, label %30, label %21

21:                                               ; preds = %16
  %22 = tail call noundef i64 @_ZN4ardb24get_current_epoch_millisEv()
  %23 = load i64, ptr %18, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %4, i64 24
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %26 = tail call noundef i64 @_ZN4ardb10millistimeEmNS_8TimeUnitE(i64 noundef %23, i32 noundef %25)
  %27 = add i64 %26, %22
  tail call void @_ZN4ardb14TimerTaskQueue13RescheduleMinEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %27)
  %28 = load ptr, ptr %17, align 8, !tbaa !17
  %29 = load ptr, ptr %28, align 8
  tail call void %29(ptr noundef nonnull align 8 dereferenceable(8) %17)
  br label %36, !llvm.loop !19

30:                                               ; preds = %16
  tail call void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %31 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 2, ptr %31, align 4, !tbaa !21
  %32 = load ptr, ptr %17, align 8, !tbaa !17
  %33 = load ptr, ptr %32, align 8
  tail call void %33(ptr noundef nonnull align 8 dereferenceable(8) %17)
  tail call void @_ZN4ardb5Timer12DoTerminatedEPNS_9TimerTaskEb(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %4, i1 noundef zeroext true)
  br label %36

34:                                               ; preds = %13
  tail call void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  tail call void @_ZN4ardb5Timer12DoTerminatedEPNS_9TimerTaskEb(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %4, i1 noundef zeroext true)
  br label %36

35:                                               ; preds = %10
  tail call void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br label %36

36:                                               ; preds = %21, %30, %34, %35
  %37 = tail call noundef zeroext i1 @_ZN4ardb14TimerTaskQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %37, label %.loopexit, label %.lr.ph

.loopexit:                                        ; preds = %36, %1, %.thread
  %.223 = phi i64 [ %9, %.thread ], [ -1, %1 ], [ -1, %36 ]
  ret i64 %.223
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4ardb14TimerTaskQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4ardb9TimerTask8GetStateEv(ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #2 align 2

declare void @_ZN4ardb14TimerTaskQueue13RescheduleMinEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0

declare void @_ZN4ardb14TimerTaskQueue9RemoveMinEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

attributes #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 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 = { inlinehint 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" }

!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, !11, i64 32}
!6 = !{!"_ZTSN4ardb9TimerTaskE", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !13, i64 40, !13, i64 48, !7, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4ardb14TimerTaskStateE", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSN4ardb8TimeUnitE", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !13, i64 40}
!15 = !{!6, !11, i64 16}
!16 = !{!6, !12, i64 24}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !9, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !10, i64 4}


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