; LLVM IR from alekmaul/pvsneslib :: snes-examples/input/multiplay5 (multiplay5)

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

@snesfont = external global i8, align 1
@snespal = external global i8, align 1
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@snes_mplay5 = external global i8, align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@i = external dso_local global i8, align 1
@pad_keys = external global [5 x i16], align 2
@pad0 = external dso_local global i16, align 2
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @consoleSetTextMapPtr(i16 noundef zeroext 26624)
  call void @consoleSetTextGfxPtr(i16 noundef zeroext 12288)
  call void @consoleSetTextOffset(i16 noundef zeroext 256)
  call void @consoleInitText(i8 noundef zeroext 0, i8 noundef zeroext 32, ptr noundef @snesfont, ptr noundef @snespal)
  call void @bgSetGfxPtr(i8 noundef zeroext 0, i16 noundef zeroext 8192)
  call void @bgSetMapPtr(i8 noundef zeroext 0, i16 noundef zeroext 26624, i8 noundef zeroext 0)
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 7, i16 noundef zeroext 1, ptr noundef @.str)
  call void @detectMPlay5()
  %2 = load i8, ptr @snes_mplay5, align 1, !tbaa !5
  %3 = icmp ne i8 %2, 0
  br i1 %3, label %4, label %5

4:                                                ; preds = %0
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 5, i16 noundef zeroext 5, ptr noundef @.str.1)
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 0, i16 noundef zeroext 7, ptr noundef @.str.2)
  br label %5

5:                                                ; preds = %4, %0
  call void @setMode(i8 noundef zeroext 1, i8 noundef zeroext 0)
  call void @bgSetDisable(i8 noundef zeroext 1)
  call void @bgSetDisable(i8 noundef zeroext 2)
  call void @setScreenOn()
  br label %6

6:                                                ; preds = %88, %5
  %7 = load i8, ptr @snes_mplay5, align 1, !tbaa !5
  %8 = icmp ne i8 %7, 0
  br i1 %8, label %9, label %87

9:                                                ; preds = %6
  store i8 0, ptr @i, align 1, !tbaa !5
  br label %10

10:                                               ; preds = %83, %9
  %11 = load i8, ptr @i, align 1, !tbaa !5
  %12 = zext i8 %11 to i32
  %13 = icmp slt i32 %12, 5
  br i1 %13, label %14, label %86

14:                                               ; preds = %10
  %15 = load i8, ptr @i, align 1, !tbaa !5
  %16 = zext i8 %15 to i64
  %17 = getelementptr inbounds [5 x i16], ptr @pad_keys, i64 0, i64 %16
  %18 = load i16, ptr %17, align 2, !tbaa !8
  store i16 %18, ptr @pad0, align 2, !tbaa !8
  %19 = load i16, ptr @pad0, align 2, !tbaa !8
  %20 = zext i16 %19 to i32
  switch i32 %20, label %73 [
    i32 128, label %21
    i32 32768, label %26
    i32 64, label %32
    i32 16384, label %38
    i32 256, label %44
    i32 512, label %44
    i32 1024, label %44
    i32 2048, label %44
    i32 8192, label %50
    i32 4096, label %55
    i32 16, label %61
    i32 32, label %67
  ]

21:                                               ; preds = %14
  %22 = load i8, ptr @i, align 1, !tbaa !5
  %23 = zext i8 %22 to i32
  %24 = mul nsw i32 %23, 6
  %25 = trunc i32 %24 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %25, i16 noundef zeroext 8, ptr noundef @.str.3)
  br label %82

26:                                               ; preds = %14
  %27 = load i8, ptr @i, align 1, !tbaa !5
  %28 = zext i8 %27 to i32
  %29 = mul nsw i32 %28, 6
  %30 = add nsw i32 %29, 1
  %31 = trunc i32 %30 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %31, i16 noundef zeroext 8, ptr noundef @.str.4)
  br label %82

32:                                               ; preds = %14
  %33 = load i8, ptr @i, align 1, !tbaa !5
  %34 = zext i8 %33 to i32
  %35 = mul nsw i32 %34, 6
  %36 = add nsw i32 %35, 2
  %37 = trunc i32 %36 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %37, i16 noundef zeroext 8, ptr noundef @.str.5)
  br label %82

38:                                               ; preds = %14
  %39 = load i8, ptr @i, align 1, !tbaa !5
  %40 = zext i8 %39 to i32
  %41 = mul nsw i32 %40, 6
  %42 = add nsw i32 %41, 3
  %43 = trunc i32 %42 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %43, i16 noundef zeroext 8, ptr noundef @.str.6)
  br label %82

44:                                               ; preds = %14, %14, %14, %14
  %45 = load i8, ptr @i, align 1, !tbaa !5
  %46 = zext i8 %45 to i32
  %47 = mul nsw i32 %46, 6
  %48 = add nsw i32 %47, 4
  %49 = trunc i32 %48 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %49, i16 noundef zeroext 8, ptr noundef @.str.7)
  br label %82

50:                                               ; preds = %14
  %51 = load i8, ptr @i, align 1, !tbaa !5
  %52 = zext i8 %51 to i32
  %53 = mul nsw i32 %52, 6
  %54 = trunc i32 %53 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %54, i16 noundef zeroext 9, ptr noundef @.str.8)
  br label %82

55:                                               ; preds = %14
  %56 = load i8, ptr @i, align 1, !tbaa !5
  %57 = zext i8 %56 to i32
  %58 = mul nsw i32 %57, 6
  %59 = add nsw i32 %58, 1
  %60 = trunc i32 %59 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %60, i16 noundef zeroext 9, ptr noundef @.str.9)
  br label %82

61:                                               ; preds = %14
  %62 = load i8, ptr @i, align 1, !tbaa !5
  %63 = zext i8 %62 to i32
  %64 = mul nsw i32 %63, 6
  %65 = add nsw i32 %64, 2
  %66 = trunc i32 %65 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %66, i16 noundef zeroext 9, ptr noundef @.str.10)
  br label %82

67:                                               ; preds = %14
  %68 = load i8, ptr @i, align 1, !tbaa !5
  %69 = zext i8 %68 to i32
  %70 = mul nsw i32 %69, 6
  %71 = add nsw i32 %70, 3
  %72 = trunc i32 %71 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %72, i16 noundef zeroext 9, ptr noundef @.str.11)
  br label %82

73:                                               ; preds = %14
  %74 = load i8, ptr @i, align 1, !tbaa !5
  %75 = zext i8 %74 to i32
  %76 = mul nsw i32 %75, 6
  %77 = trunc i32 %76 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %77, i16 noundef zeroext 8, ptr noundef @.str.12)
  %78 = load i8, ptr @i, align 1, !tbaa !5
  %79 = zext i8 %78 to i32
  %80 = mul nsw i32 %79, 6
  %81 = trunc i32 %80 to i16
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %81, i16 noundef zeroext 9, ptr noundef @.str.12)
  br label %82

82:                                               ; preds = %73, %67, %61, %55, %50, %44, %38, %32, %26, %21
  br label %83

83:                                               ; preds = %82
  %84 = load i8, ptr @i, align 1, !tbaa !5
  %85 = add i8 %84, 1
  store i8 %85, ptr @i, align 1, !tbaa !5
  br label %10, !llvm.loop !10

86:                                               ; preds = %10
  br label %88

87:                                               ; preds = %6
  call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 3, i16 noundef zeroext 7, ptr noundef @.str.13)
  br label %88

88:                                               ; preds = %87, %86
  call void @WaitForVBlank()
  br label %6
}

declare void @consoleSetTextMapPtr(i16 noundef zeroext) #1

declare void @consoleSetTextGfxPtr(i16 noundef zeroext) #1

declare void @consoleSetTextOffset(i16 noundef zeroext) #1

declare void @consoleInitText(i8 noundef zeroext, i8 noundef zeroext, ptr noundef, ptr noundef) #1

declare void @bgSetGfxPtr(i8 noundef zeroext, i16 noundef zeroext) #1

declare void @bgSetMapPtr(i8 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext) #1

declare void @consoleDrawText(i16 noundef zeroext, i16 noundef zeroext, ptr noundef, ...) #1

declare void @detectMPlay5() #1

declare void @setMode(i8 noundef zeroext, i8 noundef zeroext) #1

declare void @bgSetDisable(i8 noundef zeroext) #1

declare void @setScreenOn() #1

declare void @WaitForVBlank() #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 = { "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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"short", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"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"

@snesfont = external global i8, align 1
@snespal = external global i8, align 1
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@snes_mplay5 = external local_unnamed_addr global i8, align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@i = external dso_local local_unnamed_addr global i8, align 1
@pad_keys = external local_unnamed_addr global [5 x i16], align 2
@pad0 = external dso_local local_unnamed_addr global i16, align 2
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  tail call void @consoleSetTextMapPtr(i16 noundef zeroext 26624) #2
  tail call void @consoleSetTextGfxPtr(i16 noundef zeroext 12288) #2
  tail call void @consoleSetTextOffset(i16 noundef zeroext 256) #2
  tail call void @consoleInitText(i8 noundef zeroext 0, i8 noundef zeroext 32, ptr noundef nonnull @snesfont, ptr noundef nonnull @snespal) #2
  tail call void @bgSetGfxPtr(i8 noundef zeroext 0, i16 noundef zeroext 8192) #2
  tail call void @bgSetMapPtr(i8 noundef zeroext 0, i16 noundef zeroext 26624, i8 noundef zeroext 0) #2
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 7, i16 noundef zeroext 1, ptr noundef nonnull @.str) #2
  tail call void @detectMPlay5() #2
  %1 = load i8, ptr @snes_mplay5, align 1, !tbaa !5
  %.not = icmp eq i8 %1, 0
  br i1 %.not, label %3, label %2

2:                                                ; preds = %0
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 5, i16 noundef zeroext 5, ptr noundef nonnull @.str.1) #2
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 0, i16 noundef zeroext 7, ptr noundef nonnull @.str.2) #2
  br label %3

3:                                                ; preds = %2, %0
  tail call void @setMode(i8 noundef zeroext 1, i8 noundef zeroext 0) #2
  tail call void @bgSetDisable(i8 noundef zeroext 1) #2
  tail call void @bgSetDisable(i8 noundef zeroext 2) #2
  tail call void @setScreenOn() #2
  br label %4

4:                                                ; preds = %.loopexit, %3
  %5 = load i8, ptr @snes_mplay5, align 1, !tbaa !5
  %.not1 = icmp eq i8 %5, 0
  br i1 %.not1, label %39, label %.preheader

.preheader:                                       ; preds = %4
  store i8 0, ptr @i, align 1, !tbaa !5
  br label %6

6:                                                ; preds = %.preheader, %35
  %storemerge16 = phi i8 [ 0, %.preheader ], [ %37, %35 ]
  %7 = zext nneg i8 %storemerge16 to i64
  %8 = getelementptr inbounds [5 x i16], ptr @pad_keys, i64 0, i64 %7
  %9 = load i16, ptr %8, align 2, !tbaa !8
  store i16 %9, ptr @pad0, align 2, !tbaa !8
  switch i16 %9, label %30 [
    i16 128, label %10
    i16 -32768, label %12
    i16 64, label %15
    i16 16384, label %17
    i16 256, label %19
    i16 512, label %19
    i16 1024, label %19
    i16 2048, label %19
    i16 8192, label %21
    i16 4096, label %23
    i16 16, label %26
    i16 32, label %28
  ]

10:                                               ; preds = %6
  %narrow14 = mul nuw nsw i8 %storemerge16, 6
  %11 = zext nneg i8 %narrow14 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %11, i16 noundef zeroext 8, ptr noundef nonnull @.str.3) #2
  br label %35

12:                                               ; preds = %6
  %narrow13 = mul nuw nsw i8 %storemerge16, 6
  %13 = or disjoint i8 %narrow13, 1
  %14 = zext nneg i8 %13 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %14, i16 noundef zeroext 8, ptr noundef nonnull @.str.4) #2
  br label %35

15:                                               ; preds = %6
  %narrow11 = mul nuw nsw i8 %storemerge16, 6
  %narrow12 = add nuw nsw i8 %narrow11, 2
  %16 = zext nneg i8 %narrow12 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %16, i16 noundef zeroext 8, ptr noundef nonnull @.str.5) #2
  br label %35

17:                                               ; preds = %6
  %narrow9 = mul nuw nsw i8 %storemerge16, 6
  %narrow10 = add nuw nsw i8 %narrow9, 3
  %18 = zext nneg i8 %narrow10 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %18, i16 noundef zeroext 8, ptr noundef nonnull @.str.6) #2
  br label %35

19:                                               ; preds = %6, %6, %6, %6
  %narrow7 = mul nuw nsw i8 %storemerge16, 6
  %narrow8 = add nuw nsw i8 %narrow7, 4
  %20 = zext nneg i8 %narrow8 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %20, i16 noundef zeroext 8, ptr noundef nonnull @.str.7) #2
  br label %35

21:                                               ; preds = %6
  %narrow6 = mul nuw nsw i8 %storemerge16, 6
  %22 = zext nneg i8 %narrow6 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %22, i16 noundef zeroext 9, ptr noundef nonnull @.str.8) #2
  br label %35

23:                                               ; preds = %6
  %narrow5 = mul nuw nsw i8 %storemerge16, 6
  %24 = or disjoint i8 %narrow5, 1
  %25 = zext nneg i8 %24 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %25, i16 noundef zeroext 9, ptr noundef nonnull @.str.9) #2
  br label %35

26:                                               ; preds = %6
  %narrow3 = mul nuw nsw i8 %storemerge16, 6
  %narrow4 = add nuw nsw i8 %narrow3, 2
  %27 = zext nneg i8 %narrow4 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %27, i16 noundef zeroext 9, ptr noundef nonnull @.str.10) #2
  br label %35

28:                                               ; preds = %6
  %narrow = mul nuw nsw i8 %storemerge16, 6
  %narrow2 = add nuw nsw i8 %narrow, 3
  %29 = zext nneg i8 %narrow2 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %29, i16 noundef zeroext 9, ptr noundef nonnull @.str.11) #2
  br label %35

30:                                               ; preds = %6
  %narrow15 = mul nuw nsw i8 %storemerge16, 6
  %31 = zext nneg i8 %narrow15 to i16
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %31, i16 noundef zeroext 8, ptr noundef nonnull @.str.12) #2
  %32 = load i8, ptr @i, align 1, !tbaa !5
  %33 = zext i8 %32 to i16
  %34 = mul nuw nsw i16 %33, 6
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext %34, i16 noundef zeroext 9, ptr noundef nonnull @.str.12) #2
  br label %35

35:                                               ; preds = %10, %12, %15, %17, %19, %21, %23, %26, %28, %30
  %36 = load i8, ptr @i, align 1, !tbaa !5
  %37 = add i8 %36, 1
  store i8 %37, ptr @i, align 1, !tbaa !5
  %38 = icmp ult i8 %37, 5
  br i1 %38, label %6, label %.loopexit, !llvm.loop !10

39:                                               ; preds = %4
  tail call void (i16, i16, ptr, ...) @consoleDrawText(i16 noundef zeroext 3, i16 noundef zeroext 7, ptr noundef nonnull @.str.13) #2
  br label %.loopexit

.loopexit:                                        ; preds = %35, %39
  tail call void @WaitForVBlank() #2
  br label %4
}

declare void @consoleSetTextMapPtr(i16 noundef zeroext) local_unnamed_addr #1

declare void @consoleSetTextGfxPtr(i16 noundef zeroext) local_unnamed_addr #1

declare void @consoleSetTextOffset(i16 noundef zeroext) local_unnamed_addr #1

declare void @consoleInitText(i8 noundef zeroext, i8 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @bgSetGfxPtr(i8 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #1

declare void @bgSetMapPtr(i8 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

declare void @consoleDrawText(i16 noundef zeroext, i16 noundef zeroext, ptr noundef, ...) local_unnamed_addr #1

declare void @detectMPlay5() local_unnamed_addr #1

declare void @setMode(i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

declare void @bgSetDisable(i8 noundef zeroext) local_unnamed_addr #1

declare void @setScreenOn() local_unnamed_addr #1

declare void @WaitForVBlank() local_unnamed_addr #1

attributes #0 = { noreturn 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 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"short", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass