; LLVM IR from tenok-rtos/tenok :: user/shell (ls)

; 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.dirstream = type { ptr, ptr }
%struct.dirent = type { [30 x i8], i32, i8 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @ls(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [100 x i8], align 16
  %7 = alloca [128 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.dirstream, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.dirent, 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 100, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #6
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
  %14 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %15 = call ptr @getcwd(ptr noundef %14, i64 noundef 128)
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %18, label %45

18:                                               ; preds = %2
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %21, i64 0
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = sext i8 %23 to i32
  %25 = icmp ne i32 %24, 47
  br i1 %25, label %26, label %37

26:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %27 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %28 = call i64 @strlen(ptr noundef %27) #7
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %8, align 4, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %31
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %32, i64 noundef 100, ptr noundef @.str, ptr noundef %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %44

37:                                               ; preds = %18
  %38 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 1
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = call ptr @strncpy(ptr noundef %38, ptr noundef %41, i64 noundef 127) #6
  %43 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 127
  store i8 0, ptr %43, align 1, !tbaa !11
  br label %44

44:                                               ; preds = %37, %26
  br label %50

45:                                               ; preds = %2
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 2
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  call void @shell_puts(ptr noundef @.str.1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %97

49:                                               ; preds = %45
  br label %50

50:                                               ; preds = %49, %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %51 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %52 = call i32 @opendir(ptr noundef %51, ptr noundef %10)
  store i32 %52, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %62

55:                                               ; preds = %50
  %56 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %56, i64 noundef 100, ptr noundef @.str.2, ptr noundef %59) #6
  %61 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  call void @shell_puts(ptr noundef %61)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %96

62:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  br label %63

63:                                               ; preds = %89, %62
  %64 = call i32 @readdir(ptr noundef %10, ptr noundef %13)
  %65 = icmp ne i32 %64, -1
  br i1 %65, label %66, label %90

66:                                               ; preds = %63
  %67 = getelementptr inbounds %struct.dirent, ptr %13, i32 0, i32 2
  %68 = load i8, ptr %67, align 4, !tbaa !12
  %69 = zext i8 %68 to i32
  %70 = icmp eq i32 %69, 4
  br i1 %70, label %71, label %80

71:                                               ; preds = %66
  %72 = load i32, ptr %12, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 %73
  %75 = getelementptr inbounds %struct.dirent, ptr %13, i32 0, i32 0
  %76 = getelementptr inbounds [30 x i8], ptr %75, i64 0, i64 0
  %77 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %74, i64 noundef 100, ptr noundef @.str.3, ptr noundef %76) #6
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = add nsw i32 %78, %77
  store i32 %79, ptr %12, align 4, !tbaa !5
  br label %89

80:                                               ; preds = %66
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.dirent, ptr %13, i32 0, i32 0
  %85 = getelementptr inbounds [30 x i8], ptr %84, i64 0, i64 0
  %86 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %83, i64 noundef 100, ptr noundef @.str.4, ptr noundef %85) #6
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = add nsw i32 %87, %86
  store i32 %88, ptr %12, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %80, %71
  br label %63, !llvm.loop !14

90:                                               ; preds = %63
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 %92
  %94 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %93, i64 noundef 100, ptr noundef @.str.5) #6
  %95 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  call void @shell_puts(ptr noundef %95)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %96

96:                                               ; preds = %90, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %97

97:                                               ; preds = %96, %48
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %6) #6
  %98 = load i32, ptr %3, align 4
  ret i32 %98
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #5

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #5

declare void @shell_puts(ptr noundef) #3

declare i32 @opendir(ptr noundef, ptr noundef) #3

declare i32 @readdir(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 willreturn memory(read) "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 "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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 36}
!13 = !{!"dirent", !7, i64 0, !6, i64 32, !7, i64 36}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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.dirstream = type { ptr, ptr }
%struct.dirent = type { [30 x i8], i32, i8 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @ls(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [100 x i8], align 16
  %4 = alloca [128 x i8], align 16
  %5 = alloca %struct.dirstream, align 8
  %6 = alloca %struct.dirent, align 4
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %3, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %4, i8 0, i64 128, i1 false)
  %7 = call ptr @getcwd(ptr noundef nonnull %4, i64 noundef 128) #7
  %8 = icmp eq i32 %0, 2
  br i1 %8, label %9, label %21

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %.not = icmp eq i8 %12, 47
  br i1 %.not, label %18, label %13

13:                                               ; preds = %9
  %14 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #8
  %sext = shl i64 %14, 32
  %15 = ashr exact i64 %sext, 32
  %16 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 %15
  %17 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 100, ptr noundef nonnull @.str, ptr noundef nonnull %11) #7
  br label %24

18:                                               ; preds = %9
  %19 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %11, i64 noundef 127) #7
  %20 = getelementptr inbounds i8, ptr %4, i64 127
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %24

21:                                               ; preds = %2
  %22 = icmp sgt i32 %0, 2
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  call void @shell_puts(ptr noundef nonnull @.str.1) #7
  br label %44

24:                                               ; preds = %21, %13, %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %25 = call i32 @opendir(ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %.not16 = icmp eq i32 %25, 0
  br i1 %.not16, label %30, label %26

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 100, ptr noundef nonnull @.str.2, ptr noundef %28) #7
  call void @shell_puts(ptr noundef nonnull %3) #7
  br label %43

30:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  %31 = call i32 @readdir(ptr noundef nonnull %5, ptr noundef nonnull %6) #7
  %.not1718 = icmp eq i32 %31, -1
  br i1 %.not1718, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %32 = getelementptr inbounds i8, ptr %6, i64 36
  br label %33

33:                                               ; preds = %.lr.ph, %33
  %.019 = phi i32 [ 0, %.lr.ph ], [ %.1, %33 ]
  %34 = load i8, ptr %32, align 4, !tbaa !10
  %35 = icmp eq i8 %34, 4
  %36 = sext i32 %.019 to i64
  %37 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %36
  %.str.3..str.4 = select i1 %35, ptr @.str.3, ptr @.str.4
  %38 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %37, i64 noundef 100, ptr noundef nonnull %.str.3..str.4, ptr noundef nonnull %6) #7
  %.1 = add nsw i32 %38, %.019
  %39 = call i32 @readdir(ptr noundef nonnull %5, ptr noundef nonnull %6) #7
  %.not17 = icmp eq i32 %39, -1
  br i1 %.not17, label %._crit_edge.loopexit, label %33, !llvm.loop !13

._crit_edge.loopexit:                             ; preds = %33
  %40 = sext i32 %.1 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %30
  %.0.lcssa = phi i64 [ 0, %30 ], [ %40, %._crit_edge.loopexit ]
  %41 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %.0.lcssa
  %42 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %41, i64 noundef 100, ptr noundef nonnull @.str.5) #7
  call void @shell_puts(ptr noundef nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  br label %43

43:                                               ; preds = %._crit_edge, %26
  %.013 = phi i32 [ 1, %26 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %44

44:                                               ; preds = %43, %23
  %.114 = phi i32 [ %.013, %43 ], [ 1, %23 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  ret i32 %.114
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #6

declare void @shell_puts(ptr noundef) local_unnamed_addr #3

declare i32 @opendir(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @readdir(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !7, i64 36}
!11 = !{!"dirent", !7, i64 0, !12, i64 32, !7, i64 36}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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