; LLVM IR from clangen/musikcube :: src/3rdparty/win32_src/pdcurses (color)

; 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.SCREEN = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i64, i32, i32, ptr, i32, i32, i32, i8, i32, i64, i8, i8, %struct.MOUSE_STATUS, i16, i64, ptr, ptr, i8, i8, i32, i32, ptr, i32, i32, ptr, i32, i32, ptr }
%struct.MOUSE_STATUS = type { i32, i32, [9 x i16], i32 }
%struct._opaque_screen_t = type { ptr, i32, i32, i8, ptr, i32, i32, i32, ptr, i32, i8, ptr, ptr }
%struct._pdc_pair = type { i32, i32, i32, i32 }

@SP = external global ptr, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__.find_pair = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

16:                                               ; preds = %2
  br label %18

17:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 628, ptr noundef @__PRETTY_FUNCTION__.find_pair) #4
  unreachable

18:                                               ; preds = %16
  %19 = load ptr, ptr @SP, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.SCREEN, ptr %19, i32 0, i32 45
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  br label %25

24:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 629, ptr noundef @__PRETTY_FUNCTION__.find_pair) #4
  unreachable

25:                                               ; preds = %23
  %26 = load ptr, ptr @SP, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.SCREEN, ptr %26, i32 0, i32 45
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %struct._opaque_screen_t, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %25
  br label %34

33:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 630, ptr noundef @__PRETTY_FUNCTION__.find_pair) #4
  unreachable

34:                                               ; preds = %32
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %111, %34
  %36 = load ptr, ptr @SP, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.SCREEN, ptr %36, i32 0, i32 45
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds %struct._opaque_screen_t, ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !19
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %114

46:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %47 = load ptr, ptr @SP, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.SCREEN, ptr %47, i32 0, i32 45
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct._opaque_screen_t, ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  store i32 %55, ptr %8, align 4, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %57, label %88

57:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %58 = load ptr, ptr @SP, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.SCREEN, ptr %58, i32 0, i32 45
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct._opaque_screen_t, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  store ptr %62, ptr %9, align 8, !tbaa !9
  %63 = load ptr, ptr %9, align 8, !tbaa !9
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct._pdc_pair, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct._pdc_pair, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %71, label %84

71:                                               ; preds = %57
  %72 = load ptr, ptr %9, align 8, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct._pdc_pair, ptr %72, i64 %74
  %76 = getelementptr inbounds %struct._pdc_pair, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %76, align 4, !tbaa !23
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %71
  %81 = load i32, ptr %8, align 4, !tbaa !5
  call void @_unlink_color_pair(i32 noundef %81)
  %82 = load i32, ptr %8, align 4, !tbaa !5
  call void @_link_color_pair(i32 noundef %82, i32 noundef 0)
  %83 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %83, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %85

84:                                               ; preds = %71, %57
  store i32 0, ptr %10, align 4
  br label %85

85:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %86 = load i32, ptr %10, align 4
  switch i32 %86, label %108 [
    i32 0, label %87
  ]

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %87, %46
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %6, align 4, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = srem i32 %91, 4
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %88
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = sub nsw i32 %95, 4
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = add nsw i32 %97, %96
  store i32 %98, ptr %6, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %94, %88
  %100 = load ptr, ptr @SP, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.SCREEN, ptr %100, i32 0, i32 45
  %102 = load ptr, ptr %101, align 8, !tbaa !11
  %103 = getelementptr inbounds %struct._opaque_screen_t, ptr %102, i32 0, i32 5
  %104 = load i32, ptr %103, align 8, !tbaa !24
  %105 = sub nsw i32 %104, 1
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = and i32 %106, %105
  store i32 %107, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %108

108:                                              ; preds = %99, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %109 = load i32, ptr %10, align 4
  switch i32 %109, label %115 [
    i32 0, label %110
  ]

110:                                              ; preds = %108
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %7, align 4, !tbaa !5
  br label %35, !llvm.loop !25

114:                                              ; preds = %35
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %115

115:                                              ; preds = %114, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %116 = load i32, ptr %3, align 4
  ret i32 %116
}

; Function Attrs: nounwind uwtable
declare hidden i32 @_hash_color_pair(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @_unlink_color_pair(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @_link_color_pair(i32 noundef, i32 noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind }
attributes #4 = { noreturn 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 = !{!12, !10, i64 208}
!12 = !{!"", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !13, i64 9, !14, i64 10, !14, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !15, i64 40, !6, i64 48, !6, i64 52, !10, i64 56, !6, i64 64, !6, i64 68, !6, i64 72, !13, i64 76, !6, i64 80, !15, i64 88, !13, i64 96, !13, i64 97, !16, i64 100, !14, i64 132, !15, i64 136, !10, i64 144, !10, i64 152, !13, i64 160, !13, i64 161, !6, i64 164, !6, i64 168, !10, i64 176, !6, i64 184, !6, i64 188, !10, i64 192, !6, i64 200, !6, i64 204, !10, i64 208}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 4, !7, i64 8, !6, i64 28}
!17 = !{!18, !6, i64 8}
!18 = !{!"_opaque_screen_t", !10, i64 0, !6, i64 8, !6, i64 12, !13, i64 16, !10, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !10, i64 48, !6, i64 56, !13, i64 60, !10, i64 64, !10, i64 72}
!19 = !{!18, !10, i64 24}
!20 = !{!18, !10, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_pdc_pair", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!23 = !{!22, !6, i64 4}
!24 = !{!18, !6, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"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._pdc_pair = type { i32, i32, i32, i32 }

@SP = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__.find_pair = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @find_pair(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = tail call i32 @_hash_color_pair(i32 noundef %0, i32 noundef %1)
  %4 = load ptr, ptr @SP, align 8
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 628, ptr noundef nonnull @__PRETTY_FUNCTION__.find_pair) #2
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %4, i64 208
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not31 = icmp eq ptr %8, null
  br i1 %.not31, label %9, label %10

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

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %8, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !15
  %.not32 = icmp eq i32 %12, 0
  br i1 %.not32, label %19, label %.preheader

.preheader:                                       ; preds = %10
  %13 = getelementptr inbounds i8, ptr %8, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = sext i32 %3 to i64
  %16 = getelementptr inbounds i32, ptr %14, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !18
  %.not3343 = icmp eq i32 %17, 0
  br i1 %.not3343, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %18 = getelementptr inbounds i8, ptr %8, i64 32
  br label %20

19:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 630, ptr noundef nonnull @__PRETTY_FUNCTION__.find_pair) #2
  unreachable

20:                                               ; preds = %.lr.ph, %.thread
  %21 = phi i32 [ %17, %.lr.ph ], [ %45, %.thread ]
  %.02445 = phi i32 [ %3, %.lr.ph ], [ %41, %.thread ]
  %.02744 = phi i32 [ 0, %.lr.ph ], [ %42, %.thread ]
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %.thread

23:                                               ; preds = %20
  %24 = load ptr, ptr %8, align 8, !tbaa !19
  %25 = zext nneg i32 %21 to i64
  %26 = getelementptr inbounds %struct._pdc_pair, ptr %24, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !20
  %28 = icmp eq i32 %27, %0
  br i1 %28, label %29, label %.thread

29:                                               ; preds = %23
  %30 = getelementptr inbounds i8, ptr %26, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %32 = icmp eq i32 %31, %1
  br i1 %32, label %33, label %.thread

33:                                               ; preds = %29
  tail call void @_unlink_color_pair(i32 noundef %21)
  tail call void @_link_color_pair(i32 noundef %21, i32 noundef 0)
  br label %.loopexit

.thread:                                          ; preds = %23, %29, %20
  %34 = add nsw i32 %.02445, 1
  %35 = and i32 %.02744, 3
  %36 = icmp eq i32 %35, 0
  %37 = add nsw i32 %.02744, -4
  %38 = select i1 %36, i32 %37, i32 0
  %.125 = add nsw i32 %34, %38
  %39 = load i32, ptr %18, align 8, !tbaa !23
  %40 = add nsw i32 %39, -1
  %41 = and i32 %40, %.125
  %42 = add nuw nsw i32 %.02744, 1
  %43 = sext i32 %41 to i64
  %44 = getelementptr inbounds i32, ptr %14, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !18
  %.not33 = icmp eq i32 %45, 0
  br i1 %.not33, label %.loopexit, label %20, !llvm.loop !24

.loopexit:                                        ; preds = %.thread, %.preheader, %33
  %.4 = phi i32 [ %21, %33 ], [ -1, %.preheader ], [ -1, %.thread ]
  ret i32 %.4
}

; Function Attrs: nounwind uwtable
declare hidden i32 @_hash_color_pair(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @_unlink_color_pair(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @_link_color_pair(i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { noreturn 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, !13, i64 208}
!6 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !10, i64 10, !10, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !12, i64 40, !11, i64 48, !11, i64 52, !13, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !7, i64 76, !11, i64 80, !12, i64 88, !7, i64 96, !7, i64 97, !14, i64 100, !10, i64 132, !12, i64 136, !13, i64 144, !13, i64 152, !7, i64 160, !7, i64 161, !11, i64 164, !11, i64 168, !13, i64 176, !11, i64 184, !11, i64 188, !13, i64 192, !11, i64 200, !11, i64 204, !13, i64 208}
!7 = !{!"_Bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"", !11, i64 0, !11, i64 4, !8, i64 8, !11, i64 28}
!15 = !{!16, !11, i64 8}
!16 = !{!"_opaque_screen_t", !13, i64 0, !11, i64 8, !11, i64 12, !7, i64 16, !13, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !13, i64 48, !11, i64 56, !7, i64 60, !13, i64 64, !13, i64 72}
!17 = !{!16, !13, i64 24}
!18 = !{!11, !11, i64 0}
!19 = !{!16, !13, i64 0}
!20 = !{!21, !11, i64 0}
!21 = !{!"_pdc_pair", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!22 = !{!21, !11, i64 4}
!23 = !{!16, !11, i64 32}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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