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

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

@curwp = external global ptr, align 8

; 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 i32 @inword(i32 noundef) #1

declare i32 @backchar(i32 noundef, i32 noundef) #2

declare i32 @forwchar(i32 noundef, i32 noundef) #2

declare void @lchange(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @caseword(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #1 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %13 = load i32, ptr %7, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %4
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %121

16:                                               ; preds = %4
  br label %17

17:                                               ; preds = %119, %16
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr %7, align 4, !tbaa !5
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %120

21:                                               ; preds = %17
  br label %22

22:                                               ; preds = %29, %21
  %23 = call i32 @inword(i32 noundef 0)
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = call i32 @backchar(i32 noundef 0, i32 noundef 1)
  %27 = icmp ne i32 %26, 1
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  br label %30

29:                                               ; preds = %25
  br label %22, !llvm.loop !9

30:                                               ; preds = %28, %22
  br label %31

31:                                               ; preds = %39, %30
  %32 = call i32 @inword(i32 noundef 0)
  %33 = icmp ne i32 %32, 0
  %34 = xor i1 %33, true
  br i1 %34, label %35, label %40

35:                                               ; preds = %31
  %36 = call i32 @forwchar(i32 noundef 0, i32 noundef 1)
  %37 = icmp ne i32 %36, 1
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %121

39:                                               ; preds = %35
  br label %31, !llvm.loop !11

40:                                               ; preds = %31
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %118, %40
  %42 = call i32 @inword(i32 noundef 0)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %119

44:                                               ; preds = %41
  %45 = load ptr, ptr @curwp, align 8, !tbaa !12
  %46 = getelementptr inbounds %struct.WINDOW, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  %48 = getelementptr inbounds %struct.LINE, ptr %47, i32 0, i32 4
  %49 = load ptr, ptr @curwp, align 8, !tbaa !12
  %50 = getelementptr inbounds %struct.WINDOW, ptr %49, i32 0, i32 4
  %51 = load i32, ptr %50, align 8, !tbaa !16
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [32768 x i8], ptr %48, i64 0, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !17
  %55 = sext i8 %54 to i32
  %56 = and i32 %55, 255
  store i32 %56, ptr %10, align 4, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %65

59:                                               ; preds = %44
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %85

62:                                               ; preds = %59
  %63 = load i32, ptr %11, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %85, label %65

65:                                               ; preds = %62, %44
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = icmp sge i32 %66, 65
  br i1 %67, label %68, label %85

68:                                               ; preds = %65
  %69 = load i32, ptr %10, align 4, !tbaa !5
  %70 = icmp sle i32 %69, 90
  br i1 %70, label %71, label %85

71:                                               ; preds = %68
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %73 = add nsw i32 %72, 32
  store i32 %73, ptr %10, align 4, !tbaa !5
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = trunc i32 %74 to i8
  %76 = load ptr, ptr @curwp, align 8, !tbaa !12
  %77 = getelementptr inbounds %struct.WINDOW, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  %79 = getelementptr inbounds %struct.LINE, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr @curwp, align 8, !tbaa !12
  %81 = getelementptr inbounds %struct.WINDOW, ptr %80, i32 0, i32 4
  %82 = load i32, ptr %81, align 8, !tbaa !16
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [32768 x i8], ptr %79, i64 0, i64 %83
  store i8 %75, ptr %84, align 1, !tbaa !17
  call void @lchange(i32 noundef 8)
  br label %85

85:                                               ; preds = %71, %68, %65, %62, %59
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %94, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %114

91:                                               ; preds = %88
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %114

94:                                               ; preds = %91, %85
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = icmp sge i32 %95, 97
  br i1 %96, label %97, label %114

97:                                               ; preds = %94
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = icmp sle i32 %98, 122
  br i1 %99, label %100, label %114

100:                                              ; preds = %97
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 32
  store i32 %102, ptr %10, align 4, !tbaa !5
  %103 = load i32, ptr %10, align 4, !tbaa !5
  %104 = trunc i32 %103 to i8
  %105 = load ptr, ptr @curwp, align 8, !tbaa !12
  %106 = getelementptr inbounds %struct.WINDOW, ptr %105, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !14
  %108 = getelementptr inbounds %struct.LINE, ptr %107, i32 0, i32 4
  %109 = load ptr, ptr @curwp, align 8, !tbaa !12
  %110 = getelementptr inbounds %struct.WINDOW, ptr %109, i32 0, i32 4
  %111 = load i32, ptr %110, align 8, !tbaa !16
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [32768 x i8], ptr %108, i64 0, i64 %112
  store i8 %104, ptr %113, align 1, !tbaa !17
  call void @lchange(i32 noundef 8)
  br label %114

114:                                              ; preds = %100, %97, %94, %91, %88
  %115 = call i32 @forwchar(i32 noundef 0, i32 noundef 1)
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %121

118:                                              ; preds = %114
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %41, !llvm.loop !18

119:                                              ; preds = %41
  br label %17, !llvm.loop !19

120:                                              ; preds = %17
  store i32 1, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %121

121:                                              ; preds = %120, %117, %38, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %122 = load i32, ptr %5, align 4
  ret i32 %122
}

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 = { "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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !13, i64 24}
!15 = !{!"WINDOW", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68}
!16 = !{!15, !6, i64 32}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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

@curwp = external local_unnamed_addr global ptr, align 8

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

declare i32 @backchar(i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @forwchar(i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @lchange(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @caseword(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = icmp slt i32 %1, 0
  br i1 %5, label %.loopexit53, label %.preheader56

.preheader56:                                     ; preds = %4
  %.not58 = icmp eq i32 %1, 0
  br i1 %.not58, label %.loopexit53, label %.preheader55.lr.ph

.preheader55.lr.ph:                               ; preds = %.preheader56
  %.not37 = icmp eq i32 %2, 0
  %6 = icmp ne i32 %3, 0
  br label %.preheader55

.loopexit:                                        ; preds = %.preheader, %.preheader.preheader
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %.loopexit53, label %.preheader55, !llvm.loop !5

.preheader55:                                     ; preds = %.preheader55.lr.ph, %.loopexit
  %.in = phi i32 [ %1, %.preheader55.lr.ph ], [ %7, %.loopexit ]
  %7 = add nsw i32 %.in, -1
  br label %8

8:                                                ; preds = %.preheader55, %10
  %9 = tail call i32 @inword(i32 noundef 0)
  %.not33 = icmp eq i32 %9, 0
  br i1 %.not33, label %.preheader73, label %10

10:                                               ; preds = %8
  %11 = tail call i32 @backchar(i32 noundef 0, i32 noundef 1) #2
  %.not34 = icmp eq i32 %11, 1
  br i1 %.not34, label %8, label %.preheader73, !llvm.loop !7

.preheader73:                                     ; preds = %10, %8
  br label %12

12:                                               ; preds = %.preheader73, %42
  %13 = tail call i32 @inword(i32 noundef 0)
  %.not35 = icmp eq i32 %13, 0
  br i1 %.not35, label %42, label %.preheader.preheader

.preheader.preheader:                             ; preds = %12
  %14 = tail call i32 @inword(i32 noundef 0)
  %.not36.peel = icmp eq i32 %14, 0
  br i1 %.not36.peel, label %.loopexit, label %15

15:                                               ; preds = %.preheader.preheader
  %16 = load ptr, ptr @curwp, align 8, !tbaa !8
  %17 = getelementptr inbounds i8, ptr %16, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %18, i64 20
  %20 = getelementptr inbounds i8, ptr %16, i64 32
  %21 = load i32, ptr %20, align 8, !tbaa !15
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [32768 x i8], ptr %19, i64 0, i64 %22
  %24 = load i8, ptr %23, align 1, !tbaa !16
  %25 = zext i8 %24 to i32
  br i1 %.not37, label %27, label %.thread49.peel

.thread49.peel:                                   ; preds = %15
  %26 = add nsw i32 %25, -97
  %or.cond45.peel = icmp ult i32 %26, 26
  br i1 %or.cond45.peel, label %33, label %39

27:                                               ; preds = %15
  %28 = add i8 %24, -65
  %or.cond42.peel = icmp ult i8 %28, 26
  br i1 %or.cond42.peel, label %.thread52.peel, label %.thread.peel

.thread52.peel:                                   ; preds = %27
  %29 = or disjoint i32 %25, 32
  %30 = trunc nuw nsw i32 %29 to i8
  store i8 %30, ptr %23, align 1, !tbaa !16
  tail call void @lchange(i32 noundef 8) #2
  br label %.thread.peel

.thread.peel:                                     ; preds = %.thread52.peel, %27
  %.02847.peel = phi i32 [ %29, %.thread52.peel ], [ %25, %27 ]
  %31 = add nsw i32 %.02847.peel, -97
  %32 = icmp ult i32 %31, 26
  %or.cond44.peel = select i1 %6, i1 %32, i1 false
  br i1 %or.cond44.peel, label %.thread.peel._crit_edge, label %39

.thread.peel._crit_edge:                          ; preds = %.thread.peel
  %.pre = load ptr, ptr @curwp, align 8, !tbaa !8
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 24
  %.pre63 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !12
  %.phi.trans.insert64 = getelementptr inbounds i8, ptr %.pre, i64 32
  %.pre65 = load i32, ptr %.phi.trans.insert64, align 8, !tbaa !15
  %.pre66 = sext i32 %.pre65 to i64
  br label %33

33:                                               ; preds = %.thread.peel._crit_edge, %.thread49.peel
  %.pre-phi = phi i64 [ %.pre66, %.thread.peel._crit_edge ], [ %22, %.thread49.peel ]
  %34 = phi ptr [ %.pre63, %.thread.peel._crit_edge ], [ %18, %.thread49.peel ]
  %.02848.peel = phi i32 [ %.02847.peel, %.thread.peel._crit_edge ], [ %25, %.thread49.peel ]
  %35 = trunc nuw i32 %.02848.peel to i8
  %36 = add nsw i8 %35, -32
  %37 = getelementptr inbounds i8, ptr %34, i64 20
  %38 = getelementptr inbounds [32768 x i8], ptr %37, i64 0, i64 %.pre-phi
  store i8 %36, ptr %38, align 1, !tbaa !16
  tail call void @lchange(i32 noundef 8) #2
  br label %39

39:                                               ; preds = %33, %.thread.peel, %.thread49.peel
  %40 = tail call i32 @forwchar(i32 noundef 0, i32 noundef 1) #2
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %.loopexit53, label %.preheader

42:                                               ; preds = %12
  %43 = tail call i32 @forwchar(i32 noundef 0, i32 noundef 1) #2
  %.not41 = icmp eq i32 %43, 1
  br i1 %.not41, label %12, label %.loopexit53, !llvm.loop !17

.preheader:                                       ; preds = %39, %.thread
  %44 = tail call i32 @inword(i32 noundef 0)
  %.not36 = icmp eq i32 %44, 0
  br i1 %.not36, label %.loopexit, label %45

45:                                               ; preds = %.preheader
  %46 = load ptr, ptr @curwp, align 8, !tbaa !8
  %47 = getelementptr inbounds i8, ptr %46, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  %49 = getelementptr inbounds i8, ptr %48, i64 20
  %50 = getelementptr inbounds i8, ptr %46, i64 32
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [32768 x i8], ptr %49, i64 0, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !16
  %55 = zext i8 %54 to i32
  %56 = add i8 %54, -65
  %or.cond42 = icmp ult i8 %56, 26
  br i1 %.not37, label %58, label %57

57:                                               ; preds = %45
  %or.cond = select i1 %6, i1 %or.cond42, i1 false
  br i1 %or.cond, label %60, label %.thread49

58:                                               ; preds = %45
  br i1 %or.cond42, label %.thread52, label %.thread

.thread52:                                        ; preds = %58
  %59 = or disjoint i8 %54, 32
  store i8 %59, ptr %53, align 1, !tbaa !16
  br label %.thread.sink.split

60:                                               ; preds = %57
  %61 = or disjoint i32 %55, 32
  %62 = trunc nuw nsw i32 %61 to i8
  store i8 %62, ptr %53, align 1, !tbaa !16
  tail call void @lchange(i32 noundef 8) #2
  br label %.thread49

.thread49:                                        ; preds = %57, %60
  %.02851 = phi i32 [ %61, %60 ], [ %55, %57 ]
  %63 = add nsw i32 %.02851, -97
  %or.cond45 = icmp ult i32 %63, 26
  br i1 %or.cond45, label %.thread49._crit_edge, label %.thread

.thread49._crit_edge:                             ; preds = %.thread49
  %64 = trunc nuw i32 %.02851 to i8
  %65 = add nsw i8 %64, -32
  %66 = load ptr, ptr @curwp, align 8, !tbaa !8
  %67 = getelementptr inbounds i8, ptr %66, i64 24
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = getelementptr inbounds i8, ptr %68, i64 20
  %70 = getelementptr inbounds i8, ptr %66, i64 32
  %71 = load i32, ptr %70, align 8, !tbaa !15
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [32768 x i8], ptr %69, i64 0, i64 %72
  store i8 %65, ptr %73, align 1, !tbaa !16
  br label %.thread.sink.split

.thread.sink.split:                               ; preds = %.thread49._crit_edge, %.thread52
  tail call void @lchange(i32 noundef 8) #2
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %58, %.thread49
  %74 = tail call i32 @forwchar(i32 noundef 0, i32 noundef 1) #2
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %.loopexit53, label %.preheader, !llvm.loop !18

.loopexit53:                                      ; preds = %.loopexit, %39, %42, %.thread, %.preheader56, %4
  %.029 = phi i32 [ 0, %4 ], [ 1, %.preheader56 ], [ 0, %.thread ], [ 0, %42 ], [ 1, %.loopexit ], [ 0, %39 ]
  ret i32 %.029
}

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 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !9, i64 24}
!13 = !{!"WINDOW", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !14, i64 32, !9, i64 40, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68}
!14 = !{!"int", !10, i64 0}
!15 = !{!13, !14, i64 32}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6, !19}
!19 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass