; LLVM IR from beagleboard/librobotcontrol :: examples/src (rc_test_dsm)

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

@print_mode = external hidden global i32, align 4
@opterr = external global i32, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@running = external hidden global i32, align 4
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@stdout = external global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr @print_mode, align 4, !tbaa !5
  store i32 0, ptr @opterr, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %31, %2
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = load ptr, ptr %5, align 8, !tbaa !9
  %11 = call i32 @getopt(i32 noundef %9, ptr noundef %10, ptr noundef @.str) #4
  store i32 %11, ptr %6, align 4, !tbaa !5
  %12 = icmp ne i32 %11, -1
  br i1 %12, label %13, label %32

13:                                               ; preds = %8
  %14 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %14, label %28 [
    i32 114, label %15
    i32 110, label %21
    i32 104, label %27
  ]

15:                                               ; preds = %13
  %16 = load i32, ptr @print_mode, align 4, !tbaa !5
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %20

18:                                               ; preds = %15
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

20:                                               ; preds = %15
  store i32 1, ptr @print_mode, align 4, !tbaa !5
  br label %31

21:                                               ; preds = %13
  %22 = load i32, ptr @print_mode, align 4, !tbaa !5
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

26:                                               ; preds = %21
  store i32 2, ptr @print_mode, align 4, !tbaa !5
  br label %31

27:                                               ; preds = %13
  call void @__print_usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

28:                                               ; preds = %13
  %29 = load ptr, ptr @stderr, align 8, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.2) #4
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

31:                                               ; preds = %26, %20
  br label %8, !llvm.loop !11

32:                                               ; preds = %8
  %33 = load i32, ptr @print_mode, align 4, !tbaa !5
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.3) #4
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

38:                                               ; preds = %32
  %39 = call i32 @rc_dsm_init()
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

42:                                               ; preds = %38
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %51 = call ptr @signal(i32 noundef 2, ptr noundef @__signal_handler) #4
  store i32 1, ptr @running, align 4, !tbaa !5
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %53 = load ptr, ptr @stdout, align 8, !tbaa !9
  %54 = call i32 @fflush(ptr noundef %53)
  br label %55

55:                                               ; preds = %63, %42
  %56 = call i32 @rc_dsm_is_new_data()
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %64

58:                                               ; preds = %55
  %59 = load i32, ptr @running, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %58
  %62 = call i32 @rc_dsm_cleanup()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

63:                                               ; preds = %58
  call void @rc_usleep(i32 noundef 50000)
  br label %55, !llvm.loop !13

64:                                               ; preds = %55
  call void @rc_dsm_set_callback(ptr noundef @__new_dsm_data_callback)
  br label %65

65:                                               ; preds = %80, %64
  %66 = load i32, ptr @running, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %81

68:                                               ; preds = %65
  %69 = call i32 @rc_dsm_is_connection_active()
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %80

71:                                               ; preds = %68
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %73 = call i64 @rc_dsm_nanos_since_last_packet()
  %74 = sitofp i64 %73 to double
  %75 = fdiv double %74, 1.000000e+09
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %75)
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %78 = load ptr, ptr @stdout, align 8, !tbaa !9
  %79 = call i32 @fflush(ptr noundef %78)
  br label %80

80:                                               ; preds = %71, %68
  call void @rc_usleep(i32 noundef 500000)
  br label %65, !llvm.loop !14

81:                                               ; preds = %65
  %82 = call i32 @rc_dsm_cleanup()
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %84

84:                                               ; preds = %81, %61, %41, %35, %28, %27, %24, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %85 = load i32, ptr %3, align 4
  ret i32 %85
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare hidden void @__print_usage() #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @rc_dsm_init() #3

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @__signal_handler(i32 noundef) #0

declare i32 @fflush(ptr noundef) #3

declare i32 @rc_dsm_is_new_data() #3

declare i32 @rc_dsm_cleanup() #3

declare void @rc_usleep(i32 noundef) #3

declare void @rc_dsm_set_callback(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @__new_dsm_data_callback() #0

declare i32 @rc_dsm_is_connection_active() #3

declare i64 @rc_dsm_nanos_since_last_packet() #3

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

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 = { 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 }

!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 = distinct !{!13, !12}
!14 = distinct !{!14, !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"

@print_mode = external hidden local_unnamed_addr global i32, align 4
@opterr = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@running = external hidden local_unnamed_addr global i32, align 4
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  store i32 0, ptr @print_mode, align 4, !tbaa !5
  store i32 0, ptr @opterr, align 4, !tbaa !5
  br label %3

3:                                                ; preds = %17, %2
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #4
  switch i32 %4, label %14 [
    i32 -1, label %18
    i32 114, label %5
    i32 110, label %9
    i32 104, label %13
  ]

5:                                                ; preds = %3
  %6 = load i32, ptr @print_mode, align 4, !tbaa !5
  %.not7 = icmp eq i32 %6, 0
  br i1 %.not7, label %17, label %7

7:                                                ; preds = %5
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  tail call void @__print_usage()
  br label %64

9:                                                ; preds = %3
  %10 = load i32, ptr @print_mode, align 4, !tbaa !5
  %.not6 = icmp eq i32 %10, 0
  br i1 %.not6, label %17, label %11

11:                                               ; preds = %9
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  tail call void @__print_usage()
  br label %64

13:                                               ; preds = %3
  tail call void @__print_usage()
  br label %64

14:                                               ; preds = %3
  %15 = load ptr, ptr @stderr, align 8, !tbaa !9
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.2) #5
  tail call void @__print_usage()
  br label %64

17:                                               ; preds = %9, %5
  %storemerge = phi i32 [ 1, %5 ], [ 2, %9 ]
  store i32 %storemerge, ptr @print_mode, align 4, !tbaa !5
  br label %3, !llvm.loop !11

18:                                               ; preds = %3
  %19 = load i32, ptr @print_mode, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.3) #5
  tail call void @__print_usage()
  br label %64

24:                                               ; preds = %18
  %25 = tail call i32 @rc_dsm_init() #4
  %.not4 = icmp eq i32 %25, 0
  br i1 %.not4, label %26, label %64

26:                                               ; preds = %24
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %35 = tail call ptr @signal(i32 noundef 2, ptr noundef nonnull @__signal_handler) #4
  store i32 1, ptr @running, align 4, !tbaa !5
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %37 = load ptr, ptr @stdout, align 8, !tbaa !9
  %38 = tail call i32 @fflush(ptr noundef %37)
  %39 = tail call i32 @rc_dsm_is_new_data() #4
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %26, %45
  %41 = load i32, ptr @running, align 4, !tbaa !5
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %.lr.ph
  %44 = tail call i32 @rc_dsm_cleanup() #4
  br label %64

45:                                               ; preds = %.lr.ph
  tail call void @rc_usleep(i32 noundef 50000) #4
  %46 = tail call i32 @rc_dsm_is_new_data() #4
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %45, %26
  tail call void @rc_dsm_set_callback(ptr noundef nonnull @__new_dsm_data_callback) #4
  %48 = load i32, ptr @running, align 4, !tbaa !5
  %.not58 = icmp eq i32 %48, 0
  br i1 %.not58, label %._crit_edge11, label %.lr.ph10

.lr.ph10:                                         ; preds = %._crit_edge, %60
  %49 = tail call i32 @rc_dsm_is_connection_active() #4
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %60

51:                                               ; preds = %.lr.ph10
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %53 = tail call i64 @rc_dsm_nanos_since_last_packet() #4
  %54 = sitofp i64 %53 to double
  %55 = fdiv double %54, 1.000000e+09
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %55)
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !9
  %59 = tail call i32 @fflush(ptr noundef %58)
  br label %60

60:                                               ; preds = %51, %.lr.ph10
  tail call void @rc_usleep(i32 noundef 500000) #4
  %61 = load i32, ptr @running, align 4, !tbaa !5
  %.not5 = icmp eq i32 %61, 0
  br i1 %.not5, label %._crit_edge11, label %.lr.ph10, !llvm.loop !14

._crit_edge11:                                    ; preds = %60, %._crit_edge
  %62 = tail call i32 @rc_dsm_cleanup() #4
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %64

64:                                               ; preds = %24, %._crit_edge11, %43, %21, %14, %13, %11, %7
  %.0 = phi i32 [ -1, %14 ], [ 0, %13 ], [ -1, %11 ], [ -1, %7 ], [ -1, %21 ], [ 0, %43 ], [ 0, %._crit_edge11 ], [ -1, %24 ]
  ret i32 %.0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @__print_usage() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare i32 @rc_dsm_init() local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @__signal_handler(i32 noundef) #0

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

declare i32 @rc_dsm_is_new_data() local_unnamed_addr #3

declare i32 @rc_dsm_cleanup() local_unnamed_addr #3

declare void @rc_usleep(i32 noundef) local_unnamed_addr #3

declare void @rc_dsm_set_callback(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @__new_dsm_data_callback() #0

declare i32 @rc_dsm_is_connection_active() local_unnamed_addr #3

declare i64 @rc_dsm_nanos_since_last_packet() 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 = { 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 #2 = { nofree 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 }
attributes #5 = { cold 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 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass