; LLVM IR from freakout42/macrocalc :: mc/mex (display)

; 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.TERM = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.WINDOW = type { ptr, ptr, ptr, ptr, i32, ptr, i32, i32, i32, i32, i32, i32 }
%struct.VIDEO = type { i32, i32, [32768 x i8] }
%struct.BUFFER = type { ptr, ptr, i32, ptr, i32, ptr, i32, i32, [128 x i8], [128 x i8] }

@vscreen = external dso_local global ptr, align 8
@term = external global %struct.TERM, align 8
@ovrstrk = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local void @vtputc(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @modeput(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @vtmove(i32 noundef, i32 noundef) #1

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

7:                                                ; preds = %93, %1
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.WINDOW, ptr %8, i32 0, i32 7
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.WINDOW, ptr %11, i32 0, i32 8
  %13 = load i32, ptr %12, align 8, !tbaa !13
  %14 = add nsw i32 %10, %13
  store i32 %14, ptr %4, align 4, !tbaa !9
  %15 = load ptr, ptr @vscreen, align 8, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds ptr, ptr %15, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.VIDEO, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = or i32 %21, 3
  store i32 %22, ptr %20, align 4, !tbaa !14
  %23 = load i32, ptr %4, align 4, !tbaa !9
  call void @vtmove(i32 noundef %23, i32 noundef 0)
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.WINDOW, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  store ptr %26, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.BUFFER, ptr %27, i32 0, i32 7
  %29 = load i32, ptr %28, align 4, !tbaa !17
  %30 = and i32 %29, 4
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %41

32:                                               ; preds = %7
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.BUFFER, ptr %33, i32 0, i32 7
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %36 = and i32 %35, 8
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %32
  call void @vtputc(i32 noundef 42)
  br label %40

39:                                               ; preds = %32
  call void @vtputc(i32 noundef 43)
  br label %40

40:                                               ; preds = %39, %38
  br label %42

41:                                               ; preds = %7
  call void @vtputc(i32 noundef 45)
  br label %42

42:                                               ; preds = %41, %40
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.BUFFER, ptr %43, i32 0, i32 7
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = and i32 %45, 2
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %42
  call void @vtputc(i32 noundef 42)
  br label %50

49:                                               ; preds = %42
  call void @vtputc(i32 noundef 45)
  br label %50

50:                                               ; preds = %49, %48
  %51 = load i32, ptr @ovrstrk, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  call void @vtputc(i32 noundef 120)
  br label %55

54:                                               ; preds = %50
  call void @vtputc(i32 noundef 62)
  br label %55

55:                                               ; preds = %54, %53
  call void @vtputc(i32 noundef 32)
  store i32 3, ptr %4, align 4, !tbaa !9
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %62

58:                                               ; preds = %55
  store ptr @.str.2, ptr %3, align 8, !tbaa !5
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = load i32, ptr %4, align 4, !tbaa !9
  %61 = call i32 @modeput(ptr noundef %59, i32 noundef %60)
  store i32 %61, ptr %4, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %58, %55
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.BUFFER, ptr %63, i32 0, i32 9
  %65 = getelementptr inbounds [128 x i8], ptr %64, i64 0, i64 0
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = call i32 @modeput(ptr noundef %65, i32 noundef %66)
  store i32 %67, ptr %4, align 4, !tbaa !9
  %68 = load i32, ptr %4, align 4, !tbaa !9
  %69 = call i32 @modeput(ptr noundef @.str.3, i32 noundef %68)
  store i32 %69, ptr %4, align 4, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.BUFFER, ptr %70, i32 0, i32 8
  %72 = getelementptr inbounds [128 x i8], ptr %71, i64 0, i64 0
  %73 = load i8, ptr %72, align 8, !tbaa !19
  %74 = sext i8 %73 to i32
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %84

76:                                               ; preds = %62
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = call i32 @modeput(ptr noundef @.str.4, i32 noundef %77)
  store i32 %78, ptr %4, align 4, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.BUFFER, ptr %79, i32 0, i32 8
  %81 = getelementptr inbounds [128 x i8], ptr %80, i64 0, i64 0
  %82 = load i32, ptr %4, align 4, !tbaa !9
  %83 = call i32 @modeput(ptr noundef %81, i32 noundef %82)
  store i32 %83, ptr %4, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %76, %62
  call void @vtputc(i32 noundef 32)
  %85 = load i32, ptr %4, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %4, align 4, !tbaa !9
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %94

89:                                               ; preds = %84
  %90 = load i32, ptr %4, align 4, !tbaa !9
  %91 = load i32, ptr getelementptr inbounds (%struct.TERM, ptr @term, i32 0, i32 1), align 4, !tbaa !20
  %92 = icmp sgt i32 %90, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %89
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %7

94:                                               ; preds = %89, %84
  br label %95

95:                                               ; preds = %99, %94
  %96 = load i32, ptr %4, align 4, !tbaa !9
  %97 = load i32, ptr getelementptr inbounds (%struct.TERM, ptr @term, i32 0, i32 1), align 4, !tbaa !20
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %99, label %102

99:                                               ; preds = %95
  call void @vtputc(i32 noundef 45)
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %4, align 4, !tbaa !9
  br label %95, !llvm.loop !22

102:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = !{!12, !10, i64 52}
!12 = !{!"WINDOW", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68}
!13 = !{!12, !10, i64 56}
!14 = !{!15, !10, i64 4}
!15 = !{!"VIDEO", !10, i64 0, !10, i64 4, !7, i64 8}
!16 = !{!12, !6, i64 8}
!17 = !{!18, !10, i64 52}
!18 = !{!"BUFFER", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !7, i64 56, !7, i64 184}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !10, i64 4}
!21 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!22 = distinct !{!22, !23}
!23 = !{!"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.TERM = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@vscreen = external dso_local local_unnamed_addr global ptr, align 8
@term = external local_unnamed_addr global %struct.TERM, align 8
@ovrstrk = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @vtmove(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @modeline(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
.peel.begin:
  %1 = getelementptr inbounds i8, ptr %0, i64 52
  %2 = getelementptr inbounds i8, ptr %0, i64 56
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = load i32, ptr %2, align 8, !tbaa !11
  %6 = add nsw i32 %5, %4
  %7 = load ptr, ptr @vscreen, align 8, !tbaa !12
  %8 = sext i32 %6 to i64
  %9 = getelementptr inbounds ptr, ptr %7, i64 %8
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %10, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !13
  %13 = or i32 %12, 3
  store i32 %13, ptr %11, align 4, !tbaa !13
  tail call void @vtmove(i32 noundef %6, i32 noundef 0)
  %14 = load ptr, ptr %3, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %14, i64 52
  %16 = load i32, ptr %15, align 4, !tbaa !16
  %17 = and i32 %16, 4
  %.not.peel = icmp eq i32 %17, 0
  %18 = and i32 %16, 8
  %.not23.peel = icmp eq i32 %18, 0
  %. = select i1 %.not23.peel, i32 43, i32 42
  %.sink = select i1 %.not.peel, i32 45, i32 %.
  tail call void @vtputc(i32 noundef %.sink)
  %19 = load i32, ptr %15, align 4, !tbaa !16
  %20 = and i32 %19, 2
  %.not24.peel = icmp eq i32 %20, 0
  %.sink34 = select i1 %.not24.peel, i32 45, i32 42
  tail call void @vtputc(i32 noundef %.sink34)
  %21 = load i32, ptr @ovrstrk, align 4, !tbaa !18
  %.not25.peel = icmp eq i32 %21, 0
  %.sink35 = select i1 %.not25.peel, i32 62, i32 120
  tail call void @vtputc(i32 noundef %.sink35)
  tail call void @vtputc(i32 noundef 32)
  %22 = tail call i32 @modeput(ptr noundef nonnull @.str.2, i32 noundef 3)
  %23 = getelementptr inbounds i8, ptr %14, i64 184
  %24 = tail call i32 @modeput(ptr noundef nonnull %23, i32 noundef %22)
  %25 = tail call i32 @modeput(ptr noundef nonnull @.str.3, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %14, i64 56
  %27 = load i8, ptr %26, align 8, !tbaa !19
  %.not27.peel = icmp eq i8 %27, 0
  br i1 %.not27.peel, label %31, label %28

28:                                               ; preds = %.peel.begin
  %29 = tail call i32 @modeput(ptr noundef nonnull @.str.4, i32 noundef %25)
  %30 = tail call i32 @modeput(ptr noundef nonnull %26, i32 noundef %29)
  br label %31

31:                                               ; preds = %28, %.peel.begin
  %.1.peel = phi i32 [ %30, %28 ], [ %25, %.peel.begin ]
  tail call void @vtputc(i32 noundef 32)
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @term, i64 4), align 4
  %.not28.peel = icmp slt i32 %.1.peel, %32
  br i1 %.not28.peel, label %.preheader, label %.peel.next

.peel.next:                                       ; preds = %31
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 8, !tbaa !11
  %35 = add nsw i32 %34, %33
  %36 = load ptr, ptr @vscreen, align 8, !tbaa !12
  %37 = sext i32 %35 to i64
  %38 = getelementptr inbounds ptr, ptr %36, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %39, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !13
  %42 = or i32 %41, 3
  store i32 %42, ptr %40, align 4, !tbaa !13
  tail call void @vtmove(i32 noundef %35, i32 noundef 0)
  %43 = load ptr, ptr %3, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %43, i64 52
  %45 = load i32, ptr %44, align 4, !tbaa !16
  %46 = and i32 %45, 4
  %.not = icmp eq i32 %46, 0
  %47 = and i32 %45, 8
  %.not23 = icmp eq i32 %47, 0
  %.39 = select i1 %.not23, i32 43, i32 42
  %.sink36 = select i1 %.not, i32 45, i32 %.39
  tail call void @vtputc(i32 noundef %.sink36)
  %48 = load i32, ptr %44, align 4, !tbaa !16
  %49 = and i32 %48, 2
  %.not24 = icmp eq i32 %49, 0
  %.sink37 = select i1 %.not24, i32 45, i32 42
  tail call void @vtputc(i32 noundef %.sink37)
  %50 = load i32, ptr @ovrstrk, align 4, !tbaa !18
  %.not25 = icmp eq i32 %50, 0
  %.sink38 = select i1 %.not25, i32 62, i32 120
  tail call void @vtputc(i32 noundef %.sink38)
  tail call void @vtputc(i32 noundef 32)
  %51 = getelementptr inbounds i8, ptr %43, i64 184
  %52 = tail call i32 @modeput(ptr noundef nonnull %51, i32 noundef 3)
  %53 = tail call i32 @modeput(ptr noundef nonnull @.str.3, i32 noundef %52)
  %54 = getelementptr inbounds i8, ptr %43, i64 56
  %55 = load i8, ptr %54, align 8, !tbaa !19
  %.not27 = icmp eq i8 %55, 0
  br i1 %.not27, label %.preheader.loopexit, label %56

56:                                               ; preds = %.peel.next
  %57 = tail call i32 @modeput(ptr noundef nonnull @.str.4, i32 noundef %53)
  %58 = tail call i32 @modeput(ptr noundef nonnull %54, i32 noundef %57)
  br label %.preheader.loopexit

.preheader.loopexit:                              ; preds = %.peel.next, %56
  %.1 = phi i32 [ %58, %56 ], [ %53, %.peel.next ]
  tail call void @vtputc(i32 noundef 32)
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @term, i64 4), align 4, !tbaa !20
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %31
  %59 = phi i32 [ %32, %31 ], [ %.pre, %.preheader.loopexit ]
  %.1.lcssa = phi i32 [ %.1.peel, %31 ], [ %.1, %.preheader.loopexit ]
  %.229 = add nsw i32 %.1.lcssa, 1
  %60 = icmp slt i32 %.229, %59
  br i1 %60, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.230 = phi i32 [ %.2, %.lr.ph ], [ %.229, %.preheader ]
  tail call void @vtputc(i32 noundef 45)
  %.2 = add nsw i32 %.230, 1
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @term, i64 4), align 4, !tbaa !20
  %62 = icmp slt i32 %.2, %61
  br i1 %62, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  ret void
}

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

!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 52}
!6 = !{!"WINDOW", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 56}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"VIDEO", !10, i64 0, !10, i64 4, !8, i64 8}
!15 = !{!6, !7, i64 8}
!16 = !{!17, !10, i64 52}
!17 = !{!"BUFFER", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !8, i64 56, !8, i64 184}
!18 = !{!10, !10, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !10, i64 4}
!21 = !{!"", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass