; LLVM IR from tezc/sc :: timer (timer_test)

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

%struct.sc_timer = type { i64, i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@count = external dso_local global i32, align 4
@ids = external dso_local global [1000 x i64], align 16
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__.test3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @time_ms() #0

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @sleep_ms(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @callback(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #0

declare void @sc_timer_init(ptr noundef, i64 noundef) #3

declare i64 @sc_timer_add(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #4

declare i64 @sc_timer_timeout(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare void @sc_timer_term(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @test3() #0 {
  %1 = alloca %struct.sc_timer, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #5
  %7 = call i64 @time_ms()
  call void @sc_timer_init(ptr noundef %1, i64 noundef %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %35, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 1000
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %38

12:                                               ; preds = %8
  %13 = call i32 @rand() #5
  %14 = srem i32 %13, 20
  %15 = sext i32 %14 to i64
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = inttoptr i64 %19 to ptr
  %21 = call i64 @sc_timer_add(ptr noundef %1, i64 noundef %15, i64 noundef %17, ptr noundef %20)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %23
  store i64 %21, ptr %24, align 8, !tbaa !9
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = icmp ne i64 %28, -1
  br i1 %29, label %30, label %31

30:                                               ; preds = %12
  br label %32

31:                                               ; preds = %12
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 198, ptr noundef @__PRETTY_FUNCTION__.test3) #6
  unreachable

32:                                               ; preds = %30
  %33 = load i32, ptr @count, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr @count, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %32
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !11

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

39:                                               ; preds = %49, %38
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 1000
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %52

43:                                               ; preds = %39
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %45
  call void @sc_timer_cancel(ptr noundef %1, ptr noundef %46)
  %47 = load i32, ptr @count, align 4, !tbaa !5
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr @count, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %43
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = add nsw i32 %50, 2
  store i32 %51, ptr %3, align 4, !tbaa !5
  br label %39, !llvm.loop !13

52:                                               ; preds = %42
  %53 = load i32, ptr @count, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 500
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  br label %57

56:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 207, ptr noundef @__PRETTY_FUNCTION__.test3) #6
  unreachable

57:                                               ; preds = %55
  call void @sc_timer_cancel(ptr noundef %1, ptr noundef @ids)
  %58 = load i32, ptr @count, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 500
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  br label %62

61:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 209, ptr noundef @__PRETTY_FUNCTION__.test3) #6
  unreachable

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 10000, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  br label %63

63:                                               ; preds = %72, %62
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %78

66:                                               ; preds = %63
  %67 = call i64 @time_ms()
  %68 = call i64 @sc_timer_timeout(ptr noundef %1, i64 noundef %67, ptr noundef inttoptr (i64 333 to ptr), ptr noundef @callback)
  store i64 %68, ptr %5, align 8, !tbaa !9
  %69 = load i32, ptr @count, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  br label %78

72:                                               ; preds = %66
  %73 = load i64, ptr %5, align 8, !tbaa !9
  %74 = trunc i64 %73 to i32
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sub nsw i32 %75, %74
  store i32 %76, ptr %4, align 4, !tbaa !5
  %77 = load i64, ptr %5, align 8, !tbaa !9
  call void @sleep_ms(i64 noundef %77)
  br label %63, !llvm.loop !14

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

79:                                               ; preds = %92, %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = icmp slt i32 %80, 500
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %95

83:                                               ; preds = %79
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp eq i64 %87, -1
  br i1 %88, label %89, label %90

89:                                               ; preds = %83
  br label %91

90:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 224, ptr noundef @__PRETTY_FUNCTION__.test3) #6
  unreachable

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !5
  br label %79, !llvm.loop !15

95:                                               ; preds = %82
  call void @sc_timer_term(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #5
  ret void
}

declare void @sc_timer_cancel(ptr noundef, ptr noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 = { "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 = { nounwind }
attributes #6 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !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"

%struct.sc_timer = type { i64, i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@count = external dso_local local_unnamed_addr global i32, align 4
@ids = external dso_local global [1000 x i64], align 16
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__.test3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @time_ms() local_unnamed_addr #0

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @sleep_ms(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @callback(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #0

declare void @sc_timer_init(ptr noundef, i64 noundef) local_unnamed_addr #3

declare i64 @sc_timer_add(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

declare i64 @sc_timer_timeout(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @sc_timer_term(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @test3() local_unnamed_addr #0 {
  %1 = alloca %struct.sc_timer, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  %2 = tail call i64 @time_ms()
  call void @sc_timer_init(ptr noundef nonnull %1, i64 noundef %2) #5
  br label %3

3:                                                ; preds = %0, %11
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %11 ]
  %4 = call i32 @rand() #5
  %5 = srem i32 %4, 20
  %6 = sext i32 %5 to i64
  %7 = inttoptr i64 %indvars.iv to ptr
  %8 = call i64 @sc_timer_add(ptr noundef nonnull %1, i64 noundef %6, i64 noundef %indvars.iv, ptr noundef %7) #5
  %9 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv
  store i64 %8, ptr %9, align 8, !tbaa !5
  %.not = icmp eq i64 %8, -1
  br i1 %.not, label %10, label %11

10:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 198, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #6
  unreachable

11:                                               ; preds = %3
  %12 = load i32, ptr @count, align 4, !tbaa !9
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr @count, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000
  br i1 %exitcond.not, label %.preheader19, label %3, !llvm.loop !11

14:                                               ; preds = %.preheader19
  %15 = icmp eq i32 %18, 500
  br i1 %15, label %21, label %20

.preheader19:                                     ; preds = %11, %.preheader19
  %indvars.iv25 = phi i64 [ %indvars.iv.next26, %.preheader19 ], [ 0, %11 ]
  %16 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv25
  call void @sc_timer_cancel(ptr noundef nonnull %1, ptr noundef nonnull %16) #5
  %17 = load i32, ptr @count, align 4, !tbaa !9
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr @count, align 4, !tbaa !9
  %indvars.iv.next26 = add nuw nsw i64 %indvars.iv25, 2
  %19 = icmp ult i64 %indvars.iv25, 998
  br i1 %19, label %.preheader19, label %14, !llvm.loop !13

20:                                               ; preds = %14
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 207, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #6
  unreachable

21:                                               ; preds = %14
  call void @sc_timer_cancel(ptr noundef nonnull %1, ptr noundef nonnull @ids) #5
  %22 = load i32, ptr @count, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 500
  br i1 %23, label %.preheader, label %24

24:                                               ; preds = %21
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 209, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #6
  unreachable

.preheader:                                       ; preds = %21, %29
  %.01722 = phi i32 [ %31, %29 ], [ 10000, %21 ]
  %25 = call i64 @time_ms()
  %26 = call i64 @sc_timer_timeout(ptr noundef nonnull %1, i64 noundef %25, ptr noundef nonnull inttoptr (i64 333 to ptr), ptr noundef nonnull @callback) #5
  %27 = load i32, ptr @count, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %.preheader32, label %29

29:                                               ; preds = %.preheader
  %30 = trunc i64 %26 to i32
  %31 = sub nsw i32 %.01722, %30
  call void @sleep_ms(i64 noundef %26)
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.preheader, label %.preheader32, !llvm.loop !14

.preheader32:                                     ; preds = %.preheader, %29
  br label %51

33:                                               ; preds = %51
  %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
  %34 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv.next29
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = icmp eq i64 %35, -1
  br i1 %36, label %37, label %55

37:                                               ; preds = %33
  %indvars.iv.next29.1 = add nuw nsw i64 %indvars.iv28, 2
  %38 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv.next29.1
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = icmp eq i64 %39, -1
  br i1 %40, label %41, label %55

41:                                               ; preds = %37
  %indvars.iv.next29.2 = add nuw nsw i64 %indvars.iv28, 3
  %42 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv.next29.2
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %45, label %55

45:                                               ; preds = %41
  %indvars.iv.next29.3 = add nuw nsw i64 %indvars.iv28, 4
  %46 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv.next29.3
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = icmp eq i64 %47, -1
  br i1 %48, label %49, label %55

49:                                               ; preds = %45
  %indvars.iv.next29.4 = add nuw nsw i64 %indvars.iv28, 5
  %exitcond31.not.4 = icmp eq i64 %indvars.iv.next29.4, 500
  br i1 %exitcond31.not.4, label %50, label %51, !llvm.loop !15

50:                                               ; preds = %49
  call void @sc_timer_term(ptr noundef nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret void

51:                                               ; preds = %49, %.preheader32
  %indvars.iv28 = phi i64 [ 0, %.preheader32 ], [ %indvars.iv.next29.4, %49 ]
  %52 = getelementptr inbounds [1000 x i64], ptr @ids, i64 0, i64 %indvars.iv28
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = icmp eq i64 %53, -1
  br i1 %54, label %33, label %55

55:                                               ; preds = %45, %41, %37, %33, %51
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 224, ptr noundef nonnull @__PRETTY_FUNCTION__.test3) #6
  unreachable
}

declare void @sc_timer_cancel(ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 = { "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 = { nounwind }
attributes #6 = { noreturn 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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