; LLVM IR from xhub/reshop :: gui/external/imgui (imgui_widgets)

; 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.ImGuiSelectionBasicStorage = type { i32, i8, ptr, ptr, i32, %struct.ImGuiStorage }
%struct.ImGuiStorage = type { %struct.ImVector.2 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiStoragePair = type { i32, %union.anon }
%union.anon = type { ptr }

@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN26ImGuiSelectionBasicStorage19GetNextSelectedItemEPPvPj = external hidden unnamed_addr constant [73 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN26ImGuiSelectionBasicStorage19GetNextSelectedItemEPPvPj(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %1, ptr noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %12, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %13 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  %14 = getelementptr inbounds %struct.ImGuiStorage, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds %struct.ImVector.2, ptr %14, i32 0, i32 2
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  %18 = getelementptr inbounds %struct.ImGuiStorage, ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds %struct.ImVector.2, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !15
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds %struct.ImGuiStoragePair, ptr %16, i64 %21
  store ptr %22, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 1
  %24 = load i8, ptr %23, align 4, !tbaa !16, !range !17, !noundef !18
  %25 = trunc i8 %24 to i1
  br i1 %25, label %26, label %42

26:                                               ; preds = %3
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %42

29:                                               ; preds = %26
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %42

32:                                               ; preds = %29
  %33 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  %34 = getelementptr inbounds %struct.ImGuiStorage, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.ImVector.2, ptr %34, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  %38 = getelementptr inbounds %struct.ImGuiStorage, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %struct.ImVector.2, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !15
  %41 = sext i32 %40 to i64
  call void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef %36, i64 noundef %41, i64 noundef 16, ptr noundef @_ZL22PairComparerByValueIntPKvS0_)
  br label %42

42:                                               ; preds = %32, %29, %26, %3
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %50

45:                                               ; preds = %42
  %46 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  %47 = getelementptr inbounds %struct.ImGuiStorage, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.ImVector.2, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  store ptr %49, ptr %7, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %45, %42
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  %53 = getelementptr inbounds %struct.ImGuiStorage, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %struct.ImVector.2, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = icmp uge ptr %51, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %50
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = icmp ule ptr %58, %59
  br label %61

61:                                               ; preds = %57, %50
  %62 = phi i1 [ false, %50 ], [ %60, %57 ]
  br i1 %62, label %63, label %64

63:                                               ; preds = %61
  br label %66

64:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.183, ptr noundef @.str.2, i32 noundef 8094, ptr noundef @__PRETTY_FUNCTION__._ZN26ImGuiSelectionBasicStorage19GetNextSelectedItemEPPvPj) #7
  unreachable

65:                                               ; No predecessors!
  br label %66

66:                                               ; preds = %65, %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = icmp ne ptr %67, %68
  br i1 %69, label %70, label %86

70:                                               ; preds = %66
  br label %71

71:                                               ; preds = %82, %70
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImGuiStoragePair, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !19
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %80

76:                                               ; preds = %71
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = icmp ult ptr %77, %78
  br label %80

80:                                               ; preds = %76, %71
  %81 = phi i1 [ false, %71 ], [ %79, %76 ]
  br i1 %81, label %82, label %85

82:                                               ; preds = %80
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImGuiStoragePair, ptr %83, i32 1
  store ptr %84, ptr %7, align 8, !tbaa !5
  br label %71, !llvm.loop !20

85:                                               ; preds = %80
  br label %86

86:                                               ; preds = %85, %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = icmp ne ptr %87, %88
  %90 = zext i1 %89 to i8
  store i8 %90, ptr %9, align 1, !tbaa !22
  %91 = load i8, ptr %9, align 1, !tbaa !22, !range !17, !noundef !18
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %96

93:                                               ; preds = %86
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGuiStoragePair, ptr %94, i64 1
  br label %98

96:                                               ; preds = %86
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %96, %93
  %99 = phi ptr [ %95, %93 ], [ %97, %96 ]
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %99, ptr %100, align 8, !tbaa !5
  %101 = load i8, ptr %9, align 1, !tbaa !22, !range !17, !noundef !18
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %107

103:                                              ; preds = %98
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiStoragePair, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !23
  br label %108

107:                                              ; preds = %98
  br label %108

108:                                              ; preds = %107, %103
  %109 = phi i32 [ %106, %103 ], [ 0, %107 ]
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %109, ptr %110, align 4, !tbaa !25
  %111 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 1
  %112 = load i8, ptr %111, align 4, !tbaa !16, !range !17, !noundef !18
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %119

114:                                              ; preds = %108
  %115 = load i8, ptr %9, align 1, !tbaa !22, !range !17, !noundef !18
  %116 = trunc i8 %115 to i1
  br i1 %116, label %119, label %117

117:                                              ; preds = %114
  %118 = getelementptr inbounds %struct.ImGuiSelectionBasicStorage, ptr %10, i32 0, i32 5
  call void @_ZN12ImGuiStorage14BuildSortByKeyEv(ptr noundef nonnull align 8 dereferenceable(16) %118)
  br label %119

119:                                              ; preds = %117, %114, %108
  %120 = load i8, ptr %9, align 1, !tbaa !22, !range !17, !noundef !18
  %121 = trunc i8 %120 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret i1 %121
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22PairComparerByValueIntPKvS0_(ptr noundef, ptr noundef) #4

declare void @_ZN12ImGuiStorage14BuildSortByKeyEv(ptr noundef nonnull align 8 dereferenceable(16)) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress 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 = { mustprogress 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 #4 = { mustprogress 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 #5 = { "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 }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 40}
!10 = !{!"_ZTS26ImGuiSelectionBasicStorage", !11, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !13, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS12ImGuiStorage", !14, i64 0}
!14 = !{!"_ZTS8ImVectorI16ImGuiStoragePairE", !11, i64 0, !11, i64 4, !6, i64 8}
!15 = !{!10, !11, i64 32}
!16 = !{!10, !12, i64 4}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !12, i64 0}
!23 = !{!24, !11, i64 0}
!24 = !{!"_ZTS16ImGuiStoragePair", !11, i64 0, !7, i64 8}
!25 = !{!11, !11, i64 0}


; 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.ImGuiStoragePair = type { i32, %union.anon }
%union.anon = type { ptr }

@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN26ImGuiSelectionBasicStorage19GetNextSelectedItemEPPvPj = external hidden unnamed_addr constant [73 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: inlinehint mustprogress uwtable
declare hidden void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN26ImGuiSelectionBasicStorage19GetNextSelectedItemEPPvPj(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr nocapture noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 align 2 {
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = load ptr, ptr %6, align 8
  %8 = load i32, ptr %5, align 8, !tbaa !9
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds %struct.ImGuiStoragePair, ptr %7, i64 %9
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i8, ptr %11, align 4, !tbaa !15, !range !16, !noundef !17
  %13 = trunc nuw i8 %12 to i1
  %14 = icmp eq ptr %4, null
  %or.cond = select i1 %13, i1 %14, i1 false
  %15 = icmp ne ptr %7, null
  %or.cond3 = select i1 %or.cond, i1 %15, i1 false
  br i1 %or.cond3, label %16, label %17

16:                                               ; preds = %3
  tail call void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef nonnull %7, i64 noundef %9, i64 noundef 16, ptr noundef nonnull @_ZL22PairComparerByValueIntPKvS0_)
  %.pre = load ptr, ptr %6, align 8
  br label %17

17:                                               ; preds = %16, %3
  %18 = phi ptr [ %.pre, %16 ], [ %7, %3 ]
  %spec.select = select i1 %14, ptr %18, ptr %4
  %19 = icmp uge ptr %spec.select, %18
  %20 = icmp ule ptr %spec.select, %10
  %21 = select i1 %19, i1 %20, i1 false
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.183, ptr noundef nonnull @.str.2, i32 noundef 8094, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN26ImGuiSelectionBasicStorage19GetNextSelectedItemEPPvPj) #5
  unreachable

23:                                               ; preds = %17
  %.not = icmp eq ptr %spec.select, %10
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %23, %.preheader
  %.1 = phi ptr [ %29, %.preheader ], [ %spec.select, %23 ]
  %24 = getelementptr inbounds i8, ptr %.1, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !18
  %26 = icmp eq i32 %25, 0
  %27 = icmp ult ptr %.1, %10
  %28 = select i1 %26, i1 %27, i1 false
  %29 = getelementptr inbounds i8, ptr %.1, i64 16
  br i1 %28, label %.preheader, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %.preheader, %23
  %.2 = phi ptr [ %spec.select, %23 ], [ %.1, %.preheader ]
  %30 = icmp ne ptr %.2, %10
  %.idx = select i1 %30, i64 16, i64 0
  %31 = getelementptr inbounds i8, ptr %.2, i64 %.idx
  store ptr %31, ptr %1, align 8, !tbaa !5
  br i1 %30, label %.thread, label %33

.thread:                                          ; preds = %.loopexit
  %32 = load i32, ptr %.2, align 8, !tbaa !21
  store i32 %32, ptr %2, align 4, !tbaa !23
  br label %37

33:                                               ; preds = %.loopexit
  store i32 0, ptr %2, align 4, !tbaa !23
  %34 = load i8, ptr %11, align 4, !tbaa !15, !range !16, !noundef !17
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  tail call void @_ZN12ImGuiStorage14BuildSortByKeyEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  br label %37

37:                                               ; preds = %.thread, %33, %36
  ret i1 %30
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22PairComparerByValueIntPKvS0_(ptr noundef, ptr noundef) #3

declare void @_ZN12ImGuiStorage14BuildSortByKeyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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 = { inlinehint mustprogress 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 = { mustprogress 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 = { mustprogress 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 #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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 32}
!10 = !{!"_ZTS26ImGuiSelectionBasicStorage", !11, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !13, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS12ImGuiStorage", !14, i64 0}
!14 = !{!"_ZTS8ImVectorI16ImGuiStoragePairE", !11, i64 0, !11, i64 4, !6, i64 8}
!15 = !{!10, !12, i64 4}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTS16ImGuiStoragePair", !11, i64 0, !7, i64 8}
!23 = !{!11, !11, i64 0}


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