; LLVM IR from hutusi/rethink-c :: test (test_arraylist)

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

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@__const.test_arraylist_sort.entries = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_arraylist_sort.sorted = external hidden unnamed_addr constant [13 x i32], align 16
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__.test_arraylist_sort = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare ptr @arraylist_new(ptr noundef, i32 noundef) #2

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

declare i32 @arraylist_prepend(ptr noundef, ptr noundef) #2

declare void @arraylist_free(ptr noundef) #2

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

declare i32 @int_compare(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @test_arraylist_sort() #4 {
  %1 = alloca [13 x i32], align 16
  %2 = alloca [13 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 52, ptr %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_arraylist_sort.entries, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 52, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_arraylist_sort.sorted, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 13, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = call ptr @arraylist_new(ptr noundef null, i32 noundef %8)
  store ptr %9, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %21, %0
  %11 = load i32, ptr %5, align 4, !tbaa !5
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = icmp ult i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %24

15:                                               ; preds = %10
  %16 = load ptr, ptr %4, align 8, !tbaa !9
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [13 x i32], ptr %1, i64 0, i64 %18
  %20 = call i32 @arraylist_prepend(ptr noundef %16, ptr noundef %19)
  br label %21

21:                                               ; preds = %15
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %5, align 4, !tbaa !5
  br label %10, !llvm.loop !11

24:                                               ; preds = %14
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  %26 = call i32 @arraylist_sort(ptr noundef %25, ptr noundef @int_compare)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct._ArrayList, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %24
  br label %34

33:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 80, ptr noundef @__PRETTY_FUNCTION__.test_arraylist_sort) #6
  unreachable

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

35:                                               ; preds = %58, %34
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = icmp ult i32 %36, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct._ArrayList, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  store ptr %47, ptr %7, align 8, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = icmp eq i32 %49, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %40
  br label %57

56:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.1, i32 noundef 87, ptr noundef @__PRETTY_FUNCTION__.test_arraylist_sort) #6
  unreachable

57:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %58

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

61:                                               ; preds = %39
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @arraylist_free(ptr noundef %62)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr %1) #5
  ret void
}

declare i32 @arraylist_sort(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { 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 #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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ArrayList", !10, i64 0, !6, i64 8, !6, i64 12, !10, i64 16}
!15 = !{!14, !10, i64 0}
!16 = distinct !{!16, !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"

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@__const.test_arraylist_sort.entries = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_arraylist_sort.sorted = external hidden unnamed_addr constant [13 x i32], align 16
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__.test_arraylist_sort = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare ptr @arraylist_new(ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare i32 @arraylist_prepend(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @arraylist_free(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) #0

declare i32 @int_compare(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @test_arraylist_sort() local_unnamed_addr #4 {
  %1 = alloca [13 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(52) %1, ptr noundef nonnull align 16 dereferenceable(52) @__const.test_arraylist_sort.entries, i64 52, i1 false)
  %2 = tail call ptr @arraylist_new(ptr noundef null, i32 noundef 13) #5
  %3 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %1) #5
  %4 = getelementptr inbounds i8, ptr %1, i64 4
  %5 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %4) #5
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %6) #5
  %8 = getelementptr inbounds i8, ptr %1, i64 12
  %9 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %8) #5
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %10) #5
  %12 = getelementptr inbounds i8, ptr %1, i64 20
  %13 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %12) #5
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %14) #5
  %16 = getelementptr inbounds i8, ptr %1, i64 28
  %17 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %16) #5
  %18 = getelementptr inbounds i8, ptr %1, i64 32
  %19 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %18) #5
  %20 = getelementptr inbounds i8, ptr %1, i64 36
  %21 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %20) #5
  %22 = getelementptr inbounds i8, ptr %1, i64 40
  %23 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %22) #5
  %24 = getelementptr inbounds i8, ptr %1, i64 44
  %25 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %24) #5
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  %27 = call i32 @arraylist_prepend(ptr noundef %2, ptr noundef nonnull %26) #5
  %28 = call i32 @arraylist_sort(ptr noundef %2, ptr noundef nonnull @int_compare) #5
  %29 = getelementptr inbounds i8, ptr %2, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !5
  %31 = icmp eq i32 %30, 13
  br i1 %31, label %.preheader, label %37

.preheader:                                       ; preds = %0
  %32 = load ptr, ptr %2, align 8, !tbaa !11
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = load i32, ptr @__const.test_arraylist_sort.sorted, align 16, !tbaa !13
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %38, label %111

37:                                               ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 80, ptr noundef nonnull @__PRETTY_FUNCTION__.test_arraylist_sort) #6
  unreachable

38:                                               ; preds = %.preheader
  %39 = getelementptr inbounds i8, ptr %32, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = load i32, ptr %40, align 4, !tbaa !13
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 4), align 4, !tbaa !13
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %111

44:                                               ; preds = %38
  %45 = getelementptr inbounds i8, ptr %32, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 8), align 8, !tbaa !13
  %49 = icmp eq i32 %47, %48
  br i1 %49, label %50, label %111

50:                                               ; preds = %44
  %51 = getelementptr inbounds i8, ptr %32, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  %53 = load i32, ptr %52, align 4, !tbaa !13
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 12), align 4, !tbaa !13
  %55 = icmp eq i32 %53, %54
  br i1 %55, label %56, label %111

56:                                               ; preds = %50
  %57 = getelementptr inbounds i8, ptr %32, i64 32
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %59 = load i32, ptr %58, align 4, !tbaa !13
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 16), align 16, !tbaa !13
  %61 = icmp eq i32 %59, %60
  br i1 %61, label %62, label %111

62:                                               ; preds = %56
  %63 = getelementptr inbounds i8, ptr %32, i64 40
  %64 = load ptr, ptr %63, align 8, !tbaa !12
  %65 = load i32, ptr %64, align 4, !tbaa !13
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 20), align 4, !tbaa !13
  %67 = icmp eq i32 %65, %66
  br i1 %67, label %68, label %111

68:                                               ; preds = %62
  %69 = getelementptr inbounds i8, ptr %32, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !12
  %71 = load i32, ptr %70, align 4, !tbaa !13
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 24), align 8, !tbaa !13
  %73 = icmp eq i32 %71, %72
  br i1 %73, label %74, label %111

74:                                               ; preds = %68
  %75 = getelementptr inbounds i8, ptr %32, i64 56
  %76 = load ptr, ptr %75, align 8, !tbaa !12
  %77 = load i32, ptr %76, align 4, !tbaa !13
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 28), align 4, !tbaa !13
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %111

80:                                               ; preds = %74
  %81 = getelementptr inbounds i8, ptr %32, i64 64
  %82 = load ptr, ptr %81, align 8, !tbaa !12
  %83 = load i32, ptr %82, align 4, !tbaa !13
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 32), align 16, !tbaa !13
  %85 = icmp eq i32 %83, %84
  br i1 %85, label %86, label %111

86:                                               ; preds = %80
  %87 = getelementptr inbounds i8, ptr %32, i64 72
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  %89 = load i32, ptr %88, align 4, !tbaa !13
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 36), align 4, !tbaa !13
  %91 = icmp eq i32 %89, %90
  br i1 %91, label %92, label %111

92:                                               ; preds = %86
  %93 = getelementptr inbounds i8, ptr %32, i64 80
  %94 = load ptr, ptr %93, align 8, !tbaa !12
  %95 = load i32, ptr %94, align 4, !tbaa !13
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 40), align 8, !tbaa !13
  %97 = icmp eq i32 %95, %96
  br i1 %97, label %98, label %111

98:                                               ; preds = %92
  %99 = getelementptr inbounds i8, ptr %32, i64 88
  %100 = load ptr, ptr %99, align 8, !tbaa !12
  %101 = load i32, ptr %100, align 4, !tbaa !13
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 44), align 4, !tbaa !13
  %103 = icmp eq i32 %101, %102
  br i1 %103, label %104, label %111

104:                                              ; preds = %98
  %105 = getelementptr inbounds i8, ptr %32, i64 96
  %106 = load ptr, ptr %105, align 8, !tbaa !12
  %107 = load i32, ptr %106, align 4, !tbaa !13
  %108 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_arraylist_sort.sorted, i64 48), align 16, !tbaa !13
  %109 = icmp eq i32 %107, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %104
  call void @arraylist_free(ptr noundef nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %1) #5
  ret void

111:                                              ; preds = %104, %98, %92, %86, %80, %74, %68, %62, %56, %50, %44, %38, %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.1, i32 noundef 87, ptr noundef nonnull @__PRETTY_FUNCTION__.test_arraylist_sort) #6
  unreachable
}

declare i32 @arraylist_sort(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { 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 #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, !10, i64 8}
!6 = !{!"_ArrayList", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass