; LLVM IR from xhub/reshop :: gui/external/imgui/imgui_draw.ll (ZN10ImDrawList19PathEllipticalArcToERK6ImVec2S2_fffi)

; 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.ImVec2 = type { float, float }
%struct.ImDrawList = type { %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, %struct.ImVector, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, float, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, i64, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }

; 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
declare float @cosf(float noundef) #1

; Function Attrs: nounwind
declare float @sinf(float noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(216), float noundef) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E7reserveEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList19PathEllipticalArcToERK6ImVec2S2_fffi(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %3, float noundef %4, float noundef %5, i32 noundef %6) #4 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store float %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !11
  %21 = load ptr, ptr %8, align 8
  %22 = load i32, ptr %14, align 4, !tbaa !11
  %23 = icmp sle i32 %22, 0
  br i1 %23, label %24, label %33

24:                                               ; preds = %7
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImVec2, ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImVec2, ptr %28, i32 0, i32 1
  %30 = load float, ptr %29, align 4, !tbaa !15
  %31 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %27, float noundef %30)
  %32 = call noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(216) %21, float noundef %31)
  store i32 %32, ptr %14, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %24, %7
  %34 = getelementptr inbounds %struct.ImDrawList, ptr %21, i32 0, i32 8
  %35 = getelementptr inbounds %struct.ImDrawList, ptr %21, i32 0, i32 8
  %36 = getelementptr inbounds %struct.ImVector, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !16
  %38 = load i32, ptr %14, align 4, !tbaa !11
  %39 = add nsw i32 %38, 1
  %40 = add nsw i32 %37, %39
  call void @_ZN8ImVectorI6ImVec2E7reserveEi(ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %41 = load float, ptr %11, align 4, !tbaa !9
  %42 = call float @cosf(float noundef %41) #7
  store float %42, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %43 = load float, ptr %11, align 4, !tbaa !9
  %44 = call float @sinf(float noundef %43) #7
  store float %44, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %105, %33
  %46 = load i32, ptr %17, align 4, !tbaa !11
  %47 = load i32, ptr %14, align 4, !tbaa !11
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %108

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %51 = load float, ptr %12, align 4, !tbaa !9
  %52 = load i32, ptr %17, align 4, !tbaa !11
  %53 = sitofp i32 %52 to float
  %54 = load i32, ptr %14, align 4, !tbaa !11
  %55 = sitofp i32 %54 to float
  %56 = fdiv float %53, %55
  %57 = load float, ptr %13, align 4, !tbaa !9
  %58 = load float, ptr %12, align 4, !tbaa !9
  %59 = fsub float %57, %58
  %60 = call float @llvm.fmuladd.f32(float %56, float %59, float %51)
  store float %60, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %61 = load float, ptr %18, align 4, !tbaa !9
  %62 = call float @cosf(float noundef %61) #7
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImVec2, ptr %63, i32 0, i32 0
  %65 = load float, ptr %64, align 4, !tbaa !13
  %66 = fmul float %62, %65
  %67 = load float, ptr %18, align 4, !tbaa !9
  %68 = call float @sinf(float noundef %67) #7
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImVec2, ptr %69, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !15
  %72 = fmul float %68, %71
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %66, float noundef %72)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %73 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  %74 = load float, ptr %73, align 4, !tbaa !13
  %75 = load float, ptr %15, align 4, !tbaa !9
  %76 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %77 = load float, ptr %76, align 4, !tbaa !15
  %78 = load float, ptr %16, align 4, !tbaa !9
  %79 = fmul float %77, %78
  %80 = fneg float %79
  %81 = call float @llvm.fmuladd.f32(float %74, float %75, float %80)
  %82 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  %83 = load float, ptr %82, align 4, !tbaa !13
  %84 = load float, ptr %16, align 4, !tbaa !9
  %85 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !15
  %87 = load float, ptr %15, align 4, !tbaa !9
  %88 = fmul float %86, %87
  %89 = call float @llvm.fmuladd.f32(float %83, float %84, float %88)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %81, float noundef %89)
  %90 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !13
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImVec2, ptr %92, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !13
  %95 = fadd float %91, %94
  %96 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  store float %95, ptr %96, align 4, !tbaa !13
  %97 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !15
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImVec2, ptr %99, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !15
  %102 = fadd float %98, %101
  %103 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  store float %102, ptr %103, align 4, !tbaa !15
  %104 = getelementptr inbounds %struct.ImDrawList, ptr %21, i32 0, i32 8
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %105

105:                                              ; preds = %50
  %106 = load i32, ptr %17, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %17, align 4, !tbaa !11
  br label %45, !llvm.loop !30

108:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}
!16 = !{!17, !12, i64 80}
!17 = !{!"_ZTS10ImDrawList", !18, i64 0, !19, i64 16, !20, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !21, i64 80, !22, i64 96, !25, i64 128, !27, i64 152, !28, i64 168, !29, i64 184, !10, i64 200, !6, i64 208}
!18 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!22 = !{!"_ZTS15ImDrawCmdHeader", !23, i64 0, !24, i64 16, !12, i64 24}
!23 = !{!"_ZTS6ImVec4", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!24 = !{!"long long", !7, i64 0}
!25 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !26, i64 8}
!26 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorIyE", !12, i64 0, !12, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorIhE", !12, i64 0, !12, i64 4, !6, i64 8}
!30 = distinct !{!30, !31}
!31 = !{!"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.ImVec2 = type { float, float }

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(216), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E7reserveEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList19PathEllipticalArcToERK6ImVec2S2_fffi(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %2, float noundef %3, float noundef %4, float noundef %5, i32 noundef %6) local_unnamed_addr #4 align 2 {
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  %10 = icmp slt i32 %6, 1
  br i1 %10, label %11, label %17

11:                                               ; preds = %7
  %12 = load float, ptr %2, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %2, i64 4
  %14 = load float, ptr %13, align 4, !tbaa !10
  %15 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %12, float noundef %14)
  %16 = tail call noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(216) %0, float noundef %15)
  br label %17

17:                                               ; preds = %11, %7
  %.0 = phi i32 [ %16, %11 ], [ %6, %7 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = add i32 %.0, 1
  %21 = add nsw i32 %20, %19
  tail call void @_ZN8ImVectorI6ImVec2E7reserveEi(ptr noundef nonnull align 8 dereferenceable(16) %18, i32 noundef %21)
  %22 = tail call float @cosf(float noundef %3) #7
  %23 = tail call float @sinf(float noundef %3) #7
  %.not26 = icmp slt i32 %.0, 0
  br i1 %.not26, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17
  %24 = uitofp nneg i32 %.0 to float
  %25 = fsub float %5, %4
  %26 = getelementptr inbounds i8, ptr %2, i64 4
  %27 = getelementptr inbounds i8, ptr %8, i64 4
  br label %28

._crit_edge:                                      ; preds = %28, %17
  ret void

28:                                               ; preds = %.lr.ph, %28
  %.02427 = phi i32 [ 0, %.lr.ph ], [ %48, %28 ]
  %29 = uitofp nneg i32 %.02427 to float
  %30 = fdiv float %29, %24
  %31 = call float @llvm.fmuladd.f32(float %30, float %25, float %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %32 = call float @cosf(float noundef %31) #7
  %33 = load float, ptr %2, align 4, !tbaa !5
  %34 = fmul float %32, %33
  %35 = call float @sinf(float noundef %31) #7
  %36 = load float, ptr %26, align 4, !tbaa !10
  %37 = fmul float %35, %36
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %34, float noundef %37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %38 = load float, ptr %8, align 8, !tbaa !5
  %39 = load float, ptr %27, align 4, !tbaa !10
  %40 = fneg float %39
  %41 = fmul float %23, %40
  %42 = call float @llvm.fmuladd.f32(float %38, float %22, float %41)
  %43 = fmul float %22, %39
  %44 = call float @llvm.fmuladd.f32(float %38, float %23, float %43)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %42, float noundef %44)
  %45 = load <2 x float>, ptr %9, align 8, !tbaa !27
  %46 = load <2 x float>, ptr %1, align 4, !tbaa !27
  %47 = fadd <2 x float> %45, %46
  store <2 x float> %47, ptr %8, align 8, !tbaa !27
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %48 = add nuw i32 %.02427, 1
  %exitcond.not = icmp eq i32 %.02427, %.0
  br i1 %exitcond.not, label %._crit_edge, label %28, !llvm.loop !28
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(write) "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 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 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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, !7, i64 0}
!6 = !{!"_ZTS6ImVec2", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !14, i64 80}
!12 = !{!"_ZTS10ImDrawList", !13, i64 0, !16, i64 16, !17, i64 32, !14, i64 48, !14, i64 52, !15, i64 56, !15, i64 64, !15, i64 72, !18, i64 80, !19, i64 96, !22, i64 128, !24, i64 152, !25, i64 168, !26, i64 184, !7, i64 200, !15, i64 208}
!13 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !14, i64 0, !14, i64 4, !15, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !15, i64 8}
!17 = !{!"_ZTS8ImVectorI10ImDrawVertE", !14, i64 0, !14, i64 4, !15, i64 8}
!18 = !{!"_ZTS8ImVectorI6ImVec2E", !14, i64 0, !14, i64 4, !15, i64 8}
!19 = !{!"_ZTS15ImDrawCmdHeader", !20, i64 0, !21, i64 16, !14, i64 24}
!20 = !{!"_ZTS6ImVec4", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!21 = !{!"long long", !8, i64 0}
!22 = !{!"_ZTS18ImDrawListSplitter", !14, i64 0, !14, i64 4, !23, i64 8}
!23 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !14, i64 0, !14, i64 4, !15, i64 8}
!24 = !{!"_ZTS8ImVectorI6ImVec4E", !14, i64 0, !14, i64 4, !15, i64 8}
!25 = !{!"_ZTS8ImVectorIyE", !14, i64 0, !14, i64 4, !15, i64 8}
!26 = !{!"_ZTS8ImVectorIhE", !14, i64 0, !14, i64 4, !15, i64 8}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass