; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui_draw)

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

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui38ShadeVertsLinearColorGradientKeepAlphaEP10ImDrawListii6ImVec2S2_jj(ptr noundef %0, i32 noundef %1, i32 noundef %2, <2 x float> %3, <2 x float> %4, i32 noundef %5, i32 noundef %6) #3 {
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca float, align 4
  %27 = alloca %struct.ImVec2, align 4
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store <2 x float> %3, ptr %8, align 4
  store <2 x float> %4, ptr %9, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %32 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %32, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %33 = call noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %34 = fdiv float 1.000000e+00, %33
  store float %34, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImDrawList, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.ImVector.2, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.ImDrawVert, ptr %38, i64 %40
  store ptr %41, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImDrawList, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds %struct.ImVector.2, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.ImDrawVert, ptr %45, i64 %47
  store ptr %48, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %49 = load i32, ptr %13, align 4, !tbaa !9
  %50 = lshr i32 %49, 0
  %51 = and i32 %50, 255
  store i32 %51, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = lshr i32 %52, 8
  %54 = and i32 %53, 255
  store i32 %54, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = lshr i32 %55, 16
  %57 = and i32 %56, 255
  store i32 %57, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = lshr i32 %58, 0
  %60 = and i32 %59, 255
  %61 = load i32, ptr %19, align 4, !tbaa !9
  %62 = sub nsw i32 %60, %61
  store i32 %62, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = lshr i32 %63, 8
  %65 = and i32 %64, 255
  %66 = load i32, ptr %20, align 4, !tbaa !9
  %67 = sub nsw i32 %65, %66
  store i32 %67, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = lshr i32 %68, 16
  %70 = and i32 %69, 255
  %71 = load i32, ptr %21, align 4, !tbaa !9
  %72 = sub nsw i32 %70, %71
  store i32 %72, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %73, ptr %25, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %124, %7
  %75 = load ptr, ptr %25, align 8, !tbaa !5
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = icmp ult ptr %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %127

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %80 = load ptr, ptr %25, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImDrawVert, ptr %80, i32 0, i32 0
  %82 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %81, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %82, ptr %27, align 4
  %83 = call noundef float @_ZL5ImDotRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  store float %83, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %84 = load float, ptr %26, align 4, !tbaa !11
  %85 = load float, ptr %16, align 4, !tbaa !11
  %86 = fmul float %84, %85
  %87 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %86, float noundef 0.000000e+00, float noundef 1.000000e+00)
  store float %87, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = sitofp i32 %88 to float
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = sitofp i32 %90 to float
  %92 = load float, ptr %28, align 4, !tbaa !11
  %93 = call float @llvm.fmuladd.f32(float %91, float %92, float %89)
  %94 = fptosi float %93 to i32
  store i32 %94, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = sitofp i32 %95 to float
  %97 = load i32, ptr %23, align 4, !tbaa !9
  %98 = sitofp i32 %97 to float
  %99 = load float, ptr %28, align 4, !tbaa !11
  %100 = call float @llvm.fmuladd.f32(float %98, float %99, float %96)
  %101 = fptosi float %100 to i32
  store i32 %101, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %102 = load i32, ptr %21, align 4, !tbaa !9
  %103 = sitofp i32 %102 to float
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = sitofp i32 %104 to float
  %106 = load float, ptr %28, align 4, !tbaa !11
  %107 = call float @llvm.fmuladd.f32(float %105, float %106, float %103)
  %108 = fptosi float %107 to i32
  store i32 %108, ptr %31, align 4, !tbaa !9
  %109 = load i32, ptr %29, align 4, !tbaa !9
  %110 = shl i32 %109, 0
  %111 = load i32, ptr %30, align 4, !tbaa !9
  %112 = shl i32 %111, 8
  %113 = or i32 %110, %112
  %114 = load i32, ptr %31, align 4, !tbaa !9
  %115 = shl i32 %114, 16
  %116 = or i32 %113, %115
  %117 = load ptr, ptr %25, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImDrawVert, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 4, !tbaa !25
  %120 = and i32 %119, -16777216
  %121 = or i32 %116, %120
  %122 = load ptr, ptr %25, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImDrawVert, ptr %122, i32 0, i32 2
  store i32 %121, ptr %123, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %124

124:                                              ; preds = %79
  %125 = load ptr, ptr %25, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ImDrawVert, ptr %125, i32 1
  store ptr %126, ptr %25, align 8, !tbaa !5
  br label %74, !llvm.loop !28

127:                                              ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImDotRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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"="64" "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 = { 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 #5 = { 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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 40}
!14 = !{!"_ZTS10ImDrawList", !15, i64 0, !16, i64 16, !17, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !18, i64 88, !19, i64 104, !20, i64 120, !21, i64 136, !23, i64 168, !12, i64 192}
!15 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!21 = !{!"_ZTS15ImDrawCmdHeader", !22, i64 0, !6, i64 16, !10, i64 24}
!22 = !{!"_ZTS6ImVec4", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!23 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !24, i64 8}
!24 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!26, !10, i64 16}
!26 = !{!"_ZTS10ImDrawVert", !27, i64 0, !27, i64 8, !10, i64 16}
!27 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!28 = distinct !{!28, !29}
!29 = !{!"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 }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui38ShadeVertsLinearColorGradientKeepAlphaEP10ImDrawListii6ImVec2S2_jj(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, <2 x float> %3, <2 x float> %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #3 {
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 8
  store <2 x float> %3, ptr %8, align 8
  store <2 x float> %4, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %12 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %12, ptr %10, align 8
  %13 = call noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %14 = fdiv float 1.000000e+00, %13
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = sext i32 %2 to i64
  %18 = getelementptr inbounds %struct.ImDrawVert, ptr %16, i64 %17
  %19 = icmp slt i32 %1, %2
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %20 = sext i32 %1 to i64
  %21 = getelementptr inbounds %struct.ImDrawVert, ptr %16, i64 %20
  %22 = lshr i32 %6, 16
  %23 = and i32 %22, 255
  %24 = lshr i32 %5, 16
  %25 = and i32 %24, 255
  %26 = sub nsw i32 %23, %25
  %27 = lshr i32 %6, 8
  %28 = and i32 %27, 255
  %29 = lshr i32 %5, 8
  %30 = and i32 %29, 255
  %31 = sub nsw i32 %28, %30
  %32 = and i32 %6, 255
  %33 = and i32 %5, 255
  %34 = sub nsw i32 %32, %33
  %35 = uitofp nneg i32 %33 to float
  %36 = sitofp i32 %34 to float
  %37 = uitofp nneg i32 %30 to float
  %38 = sitofp i32 %31 to float
  %39 = uitofp nneg i32 %25 to float
  %40 = sitofp i32 %26 to float
  br label %41

._crit_edge:                                      ; preds = %41, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret void

41:                                               ; preds = %.lr.ph, %41
  %.033 = phi ptr [ %21, %.lr.ph ], [ %60, %41 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %42 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %.033, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %42, ptr %11, align 8
  %43 = call noundef float @_ZL5ImDotRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %44 = fmul float %14, %43
  %45 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %44, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %46 = call float @llvm.fmuladd.f32(float %36, float %45, float %35)
  %47 = fptosi float %46 to i32
  %48 = call float @llvm.fmuladd.f32(float %38, float %45, float %37)
  %49 = fptosi float %48 to i32
  %50 = call float @llvm.fmuladd.f32(float %40, float %45, float %39)
  %51 = fptosi float %50 to i32
  %52 = shl i32 %49, 8
  %53 = shl i32 %51, 16
  %54 = getelementptr inbounds i8, ptr %.033, i64 16
  %55 = load i32, ptr %54, align 4, !tbaa !22
  %56 = and i32 %55, -16777216
  %57 = or i32 %56, %47
  %58 = or i32 %57, %52
  %59 = or i32 %58, %53
  store i32 %59, ptr %54, align 4, !tbaa !22
  %60 = getelementptr inbounds i8, ptr %.033, i64 20
  %61 = icmp ult ptr %60, %18
  br i1 %61, label %41, label %._crit_edge, !llvm.loop !25
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImDotRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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"="64" "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 = { 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 #5 = { 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, !11, i64 40}
!6 = !{!"_ZTS10ImDrawList", !7, i64 0, !12, i64 16, !13, i64 32, !8, i64 48, !8, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !14, i64 88, !15, i64 104, !16, i64 120, !17, i64 136, !20, i64 168, !19, i64 192}
!7 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTS8ImVectorItE", !8, i64 0, !8, i64 4, !11, i64 8}
!13 = !{!"_ZTS8ImVectorI10ImDrawVertE", !8, i64 0, !8, i64 4, !11, i64 8}
!14 = !{!"_ZTS8ImVectorI6ImVec4E", !8, i64 0, !8, i64 4, !11, i64 8}
!15 = !{!"_ZTS8ImVectorIPvE", !8, i64 0, !8, i64 4, !11, i64 8}
!16 = !{!"_ZTS8ImVectorI6ImVec2E", !8, i64 0, !8, i64 4, !11, i64 8}
!17 = !{!"_ZTS15ImDrawCmdHeader", !18, i64 0, !11, i64 16, !8, i64 24}
!18 = !{!"_ZTS6ImVec4", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!19 = !{!"float", !9, i64 0}
!20 = !{!"_ZTS18ImDrawListSplitter", !8, i64 0, !8, i64 4, !21, i64 8}
!21 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !8, i64 0, !8, i64 4, !11, i64 8}
!22 = !{!23, !8, i64 16}
!23 = !{!"_ZTS10ImDrawVert", !24, i64 0, !24, i64 8, !8, i64 16}
!24 = !{!"_ZTS6ImVec2", !19, i64 0, !19, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass