; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/renderer (VertexArray)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl" }
%"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.VertexBufferElement = type { i32, i32, i8 }

@glad_glEnableVertexAttribArray = external global ptr, align 8
@glad_glVertexAttribPointer = external global ptr, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11VertexArray9AddBufferERK12VertexBufferRK18VertexBufferLayout(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(28) %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  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
  %14 = load ptr, ptr %4, align 8
  call void @_ZNK11VertexArray4BindEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK12VertexBuffer4BindEv(ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK18VertexBufferLayout11GetElementsEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %16)
  store ptr %8, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %61, %3
  %18 = load i32, ptr %10, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = call noundef i64 @_ZNKSt6vectorI19VertexBufferElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %22 = icmp ult i64 %19, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %68

24:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorI19VertexBufferElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %27) #6
  store ptr %28, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %30 = load i32, ptr %10, align 4, !tbaa !9
  invoke void %29(i32 noundef %30)
          to label %31 unwind label %64

31:                                               ; preds = %24
  %32 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.VertexBufferElement, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.VertexBufferElement, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.VertexBufferElement, ptr %40, i32 0, i32 2
  %42 = load i8, ptr %41, align 4, !tbaa !14
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = invoke noundef i32 @_ZNK18VertexBufferLayout9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(28) %43)
          to label %45 unwind label %64

45:                                               ; preds = %31
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = inttoptr i64 %47 to ptr
  invoke void %32(i32 noundef %33, i32 noundef %36, i32 noundef %39, i8 noundef zeroext %42, i32 noundef %44, ptr noundef %48)
          to label %49 unwind label %64

49:                                               ; preds = %45
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.VertexBufferElement, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.VertexBufferElement, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !13
  %56 = invoke noundef i32 @_ZN19VertexBufferElement13GetSizeOfTypeEj(i32 noundef %55)
          to label %57 unwind label %64

57:                                               ; preds = %49
  %58 = mul i32 %52, %56
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = add i32 %59, %58
  store i32 %60, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %61

61:                                               ; preds = %57
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = add i32 %62, 1
  store i32 %63, ptr %10, align 4, !tbaa !9
  br label %17, !llvm.loop !15

64:                                               ; preds = %49, %45, %31, %24
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %12, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZNSt6vectorI19VertexBufferElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %69

68:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZNSt6vectorI19VertexBufferElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

69:                                               ; preds = %64
  %70 = load ptr, ptr %12, align 8
  %71 = load i32, ptr %13, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11VertexArray4BindEv(ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

declare void @_ZNK12VertexBuffer4BindEv(ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK18VertexBufferLayout11GetElementsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI19VertexBufferElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorI19VertexBufferElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK18VertexBufferLayout9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(28)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN19VertexBufferElement13GetSizeOfTypeEj(i32 noundef) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI19VertexBufferElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { inlinehint 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 #6 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS19VertexBufferElement", !10, i64 0, !10, i64 4, !7, i64 8}
!13 = !{!12, !10, i64 0}
!14 = !{!12, !7, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl" }
%"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VertexBufferElement, std::allocator<VertexBufferElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@glad_glEnableVertexAttribArray = external local_unnamed_addr global ptr, align 8
@glad_glVertexAttribPointer = external local_unnamed_addr global ptr, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11VertexArray9AddBufferERK12VertexBufferRK18VertexBufferLayout(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(28) %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  tail call void @_ZNK11VertexArray4BindEv(ptr noundef nonnull align 4 dereferenceable(4) %0)
  tail call void @_ZNK12VertexBuffer4BindEv(ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNK18VertexBufferLayout11GetElementsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %2)
  %5 = call noundef i64 @_ZNKSt6vectorI19VertexBufferElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %19, %3
  call void @_ZNSt6vectorI19VertexBufferElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

.lr.ph:                                           ; preds = %3, %19
  %6 = phi i64 [ %26, %19 ], [ 0, %3 ]
  %.022 = phi i32 [ %24, %19 ], [ 0, %3 ]
  %.01921 = phi i32 [ %25, %19 ], [ 0, %3 ]
  %7 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorI19VertexBufferElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %6) #6
  %8 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  invoke void %8(i32 noundef %.01921)
          to label %9 unwind label %29

9:                                                ; preds = %.lr.ph
  %10 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %7, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !9
  %13 = load i32, ptr %7, align 4, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  %15 = load i8, ptr %14, align 4, !tbaa !13
  %16 = call noundef i32 @_ZNK18VertexBufferLayout9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(28) %2)
  %17 = zext i32 %.022 to i64
  %18 = inttoptr i64 %17 to ptr
  invoke void %10(i32 noundef %.01921, i32 noundef %12, i32 noundef %13, i8 noundef zeroext %15, i32 noundef %16, ptr noundef %18)
          to label %19 unwind label %29

19:                                               ; preds = %9
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = load i32, ptr %7, align 4, !tbaa !12
  %22 = call noundef i32 @_ZN19VertexBufferElement13GetSizeOfTypeEj(i32 noundef %21)
  %23 = mul i32 %22, %20
  %24 = add i32 %23, %.022
  %25 = add i32 %.01921, 1
  %26 = zext i32 %25 to i64
  %27 = call noundef i64 @_ZNKSt6vectorI19VertexBufferElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %28 = icmp ugt i64 %27, %26
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !14

29:                                               ; preds = %9, %.lr.ph
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI19VertexBufferElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %30
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11VertexArray4BindEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

declare void @_ZNK12VertexBuffer4BindEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK18VertexBufferLayout11GetElementsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI19VertexBufferElementSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorI19VertexBufferElementSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK18VertexBufferLayout9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN19VertexBufferElement13GetSizeOfTypeEj(i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI19VertexBufferElementSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { inlinehint 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 #6 = { 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 4}
!10 = !{!"_ZTS19VertexBufferElement", !11, i64 0, !11, i64 4, !7, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!10, !7, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass