; LLVM IR from fcimeson/cbTSP :: cbLKH/SRC (ReadLine)

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

@Buffer = external hidden global ptr, align 8
@MaxBuffer = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@__PRETTY_FUNCTION__.ReadLine = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@LastLine = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @ReadLine(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %5 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %6 = icmp eq ptr %5, null
  br i1 %6, label %7, label %13

7:                                                ; preds = %1
  store i32 80, ptr @MaxBuffer, align 4, !tbaa !9
  %8 = call noalias ptr @malloc(i64 noundef 80) #9
  store ptr %8, ptr @Buffer, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %7
  br label %12

11:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 28, ptr noundef @__PRETTY_FUNCTION__.ReadLine) #10
  unreachable

12:                                               ; preds = %10
  br label %13

13:                                               ; preds = %12, %1
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %49, %13
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = call i32 @fgetc(ptr noundef %15)
  store i32 %16, ptr %4, align 4, !tbaa !9
  %17 = icmp ne i32 %16, -1
  br i1 %17, label %18, label %24

18:                                               ; preds = %14
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load i32, ptr %4, align 4, !tbaa !9
  %21 = call i32 @EndOfLine(ptr noundef %19, i32 noundef %20)
  %22 = icmp ne i32 %21, 0
  %23 = xor i1 %22, true
  br label %24

24:                                               ; preds = %18, %14
  %25 = phi i1 [ false, %14 ], [ %23, %18 ]
  br i1 %25, label %26, label %52

26:                                               ; preds = %24
  %27 = load i32, ptr %3, align 4, !tbaa !9
  %28 = load i32, ptr @MaxBuffer, align 4, !tbaa !9
  %29 = sub nsw i32 %28, 1
  %30 = icmp sge i32 %27, %29
  br i1 %30, label %31, label %42

31:                                               ; preds = %26
  %32 = load i32, ptr @MaxBuffer, align 4, !tbaa !9
  %33 = mul nsw i32 %32, 2
  store i32 %33, ptr @MaxBuffer, align 4, !tbaa !9
  %34 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %35 = load i32, ptr @MaxBuffer, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = call ptr @realloc(ptr noundef %34, i64 noundef %36) #11
  store ptr %37, ptr @Buffer, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %31
  br label %41

40:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 33, ptr noundef @__PRETTY_FUNCTION__.ReadLine) #10
  unreachable

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41, %26
  %43 = load i32, ptr %4, align 4, !tbaa !9
  %44 = trunc i32 %43 to i8
  %45 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %45, i64 %47
  store i8 %44, ptr %48, align 1, !tbaa !11
  br label %49

49:                                               ; preds = %42
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %3, align 4, !tbaa !9
  br label %14, !llvm.loop !12

52:                                               ; preds = %24
  %53 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %54 = load i32, ptr %3, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  store i8 0, ptr %56, align 1, !tbaa !11
  %57 = load ptr, ptr @LastLine, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %65

59:                                               ; preds = %52
  %60 = load ptr, ptr @LastLine, align 8, !tbaa !5
  %61 = call i64 @strlen(ptr noundef %60) #12
  %62 = trunc i64 %61 to i32
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %65, label %76

65:                                               ; preds = %59, %52
  %66 = load ptr, ptr @LastLine, align 8, !tbaa !5
  call void @free(ptr noundef %66) #8
  %67 = load i32, ptr %3, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = mul i64 %69, 1
  %71 = call noalias ptr @malloc(i64 noundef %70) #9
  store ptr %71, ptr @LastLine, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %65
  br label %75

74:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 40, ptr noundef @__PRETTY_FUNCTION__.ReadLine) #10
  unreachable

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75, %59
  %77 = load ptr, ptr @LastLine, align 8, !tbaa !5
  %78 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %79 = call ptr @strcpy(ptr noundef %77, ptr noundef %78) #8
  %80 = load i32, ptr %4, align 4, !tbaa !9
  %81 = icmp eq i32 %80, -1
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load i32, ptr %3, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  br label %88

86:                                               ; preds = %82, %76
  %87 = load ptr, ptr @Buffer, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %86, %85
  %89 = phi ptr [ null, %85 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret ptr %89
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

declare i32 @fgetc(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @EndOfLine(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #5

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #7

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #7

; 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 allocsize(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 = { 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 = { "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 allocsize(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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind allocsize(1) }
attributes #12 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

@Buffer = external hidden local_unnamed_addr global ptr, align 8
@MaxBuffer = external hidden local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@__PRETTY_FUNCTION__.ReadLine = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@LastLine = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @ReadLine(ptr noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %3 = icmp eq ptr %2, null
  br i1 %3, label %4, label %7

4:                                                ; preds = %1
  store i32 80, ptr @MaxBuffer, align 4, !tbaa !9
  %5 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #8
  store ptr %5, ptr @Buffer, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 28, ptr noundef nonnull @__PRETTY_FUNCTION__.ReadLine) #9
  unreachable

7:                                                ; preds = %4, %1
  %8 = tail call i32 @fgetc(ptr noundef %0)
  %.not1422 = icmp eq i32 %8, -1
  br i1 %.not1422, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %7, %20
  %indvars.iv = phi i64 [ %indvars.iv.next, %20 ], [ 0, %7 ]
  %9 = phi i32 [ %25, %20 ], [ %8, %7 ]
  %.023 = phi i32 [ %24, %20 ], [ 0, %7 ]
  %10 = tail call i32 @EndOfLine(ptr noundef %0, i32 noundef %9)
  %.not15 = icmp eq i32 %10, 0
  br i1 %.not15, label %11, label %.critedge.loopexit.split.loop.exit29

11:                                               ; preds = %.lr.ph
  %12 = load i32, ptr @MaxBuffer, align 4, !tbaa !9
  %13 = add nsw i32 %12, -1
  %14 = sext i32 %13 to i64
  %.not18 = icmp slt i64 %indvars.iv, %14
  %.pre = load ptr, ptr @Buffer, align 8, !tbaa !5
  br i1 %.not18, label %20, label %15

15:                                               ; preds = %11
  %16 = shl nsw i32 %12, 1
  store i32 %16, ptr @MaxBuffer, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = tail call ptr @realloc(ptr noundef %.pre, i64 noundef %17) #10
  store ptr %18, ptr @Buffer, align 8, !tbaa !5
  %.not19 = icmp eq ptr %18, null
  br i1 %.not19, label %19, label %20

19:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 33, ptr noundef nonnull @__PRETTY_FUNCTION__.ReadLine) #9
  unreachable

20:                                               ; preds = %15, %11
  %21 = phi ptr [ %18, %15 ], [ %.pre, %11 ]
  %22 = trunc i32 %9 to i8
  %23 = getelementptr inbounds i8, ptr %21, i64 %indvars.iv
  store i8 %22, ptr %23, align 1, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = add nuw nsw i32 %.023, 1
  %25 = tail call i32 @fgetc(ptr noundef %0)
  %.not14 = icmp eq i32 %25, -1
  br i1 %.not14, label %.critedge, label %.lr.ph, !llvm.loop !12

.critedge.loopexit.split.loop.exit29:             ; preds = %.lr.ph
  %26 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %20, %.critedge.loopexit.split.loop.exit29, %7
  %.0.lcssa = phi i32 [ 0, %7 ], [ %26, %.critedge.loopexit.split.loop.exit29 ], [ %24, %20 ]
  %.not14.lcssa = phi i1 [ true, %7 ], [ false, %.critedge.loopexit.split.loop.exit29 ], [ true, %20 ]
  %27 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %28 = zext nneg i32 %.0.lcssa to i64
  %29 = getelementptr inbounds i8, ptr %27, i64 %28
  store i8 0, ptr %29, align 1, !tbaa !11
  %30 = load ptr, ptr @LastLine, align 8, !tbaa !5
  %.not16 = icmp eq ptr %30, null
  br i1 %.not16, label %35, label %31

31:                                               ; preds = %.critedge
  %32 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %30) #11
  %33 = trunc i64 %32 to i32
  %34 = icmp sgt i32 %.0.lcssa, %33
  br i1 %34, label %35, label %40

35:                                               ; preds = %31, %.critedge
  tail call void @free(ptr noundef %30) #12
  %36 = add nuw nsw i32 %.0.lcssa, 1
  %37 = zext nneg i32 %36 to i64
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #8
  store ptr %38, ptr @LastLine, align 8, !tbaa !5
  %.not17 = icmp eq ptr %38, null
  br i1 %.not17, label %39, label %40

39:                                               ; preds = %35
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 40, ptr noundef nonnull @__PRETTY_FUNCTION__.ReadLine) #9
  unreachable

40:                                               ; preds = %35, %31
  %41 = phi ptr [ %38, %35 ], [ %30, %31 ]
  %42 = load ptr, ptr @Buffer, align 8, !tbaa !5
  %43 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %41, ptr noundef nonnull dereferenceable(1) %42) #12
  %44 = icmp eq i32 %.0.lcssa, 0
  %or.cond = and i1 %.not14.lcssa, %44
  %45 = load ptr, ptr @Buffer, align 8
  %46 = select i1 %or.cond, ptr null, ptr %45
  ret ptr %46
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @EndOfLine(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

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

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 = { 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 #4 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(1) }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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