; LLVM IR from theolundqvist/parallax-voxel-ray-marcher :: src/external/Dear ImGui/imgui_draw.ll (ZN10ImDrawList9PathArcToERK6ImVec2fffi)

; 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, %struct.ImVector.0, %struct.ImVector.1, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.2, %struct.ImVector.3, %struct.ImVector.4, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%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.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.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [48 x %struct.ImVec2], float, [64 x i8], 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.ceil.f32(float) #3

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

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

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

; 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)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList9PathArcToERK6ImVec2fffi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, float noundef %3, float noundef %4, i32 noundef %5) #4 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  %25 = alloca float, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store float %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !11
  %28 = load ptr, ptr %7, align 8
  %29 = load float, ptr %9, align 4, !tbaa !9
  %30 = fcmp ole float %29, 0.000000e+00
  br i1 %30, label %31, label %34

31:                                               ; preds = %6
  %32 = getelementptr inbounds %struct.ImDrawList, ptr %28, i32 0, i32 11
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(8) %33)
  br label %205

34:                                               ; preds = %6
  %35 = load i32, ptr %12, align 4, !tbaa !11
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %34
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load float, ptr %9, align 4, !tbaa !9
  %40 = load float, ptr %10, align 4, !tbaa !9
  %41 = load float, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZN10ImDrawList11_PathArcToNERK6ImVec2fffi(ptr noundef nonnull align 8 dereferenceable(196) %28, ptr noundef nonnull align 4 dereferenceable(8) %38, float noundef %39, float noundef %40, float noundef %41, i32 noundef %42)
  br label %205

43:                                               ; preds = %34
  %44 = load float, ptr %9, align 4, !tbaa !9
  %45 = getelementptr inbounds %struct.ImDrawList, ptr %28, i32 0, i32 5
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %46, i32 0, i32 8
  %48 = load float, ptr %47, align 8, !tbaa !25
  %49 = fcmp ole float %44, %48
  br i1 %49, label %50, label %182

50:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  %51 = load float, ptr %11, align 4, !tbaa !9
  %52 = load float, ptr %10, align 4, !tbaa !9
  %53 = fcmp olt float %51, %52
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %13, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %55 = load float, ptr %10, align 4, !tbaa !9
  %56 = fmul float 4.800000e+01, %55
  %57 = fdiv float %56, 0x401921FB60000000
  store float %57, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %58 = load float, ptr %11, align 4, !tbaa !9
  %59 = fmul float 4.800000e+01, %58
  %60 = fdiv float %59, 0x401921FB60000000
  store float %60, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %61 = load i8, ptr %13, align 1, !tbaa !28, !range !30, !noundef !31
  %62 = trunc i8 %61 to i1
  br i1 %62, label %63, label %67

63:                                               ; preds = %50
  %64 = load float, ptr %14, align 4, !tbaa !9
  %65 = call noundef float @_ZL13ImFloorSignedf(float noundef %64)
  %66 = fptosi float %65 to i32
  br label %71

67:                                               ; preds = %50
  %68 = load float, ptr %14, align 4, !tbaa !9
  %69 = call float @llvm.ceil.f32(float %68)
  %70 = fptosi float %69 to i32
  br label %71

71:                                               ; preds = %67, %63
  %72 = phi i32 [ %66, %63 ], [ %70, %67 ]
  store i32 %72, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %73 = load i8, ptr %13, align 1, !tbaa !28, !range !30, !noundef !31
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %79

75:                                               ; preds = %71
  %76 = load float, ptr %15, align 4, !tbaa !9
  %77 = call float @llvm.ceil.f32(float %76)
  %78 = fptosi float %77 to i32
  br label %83

79:                                               ; preds = %71
  %80 = load float, ptr %15, align 4, !tbaa !9
  %81 = call noundef float @_ZL13ImFloorSignedf(float noundef %80)
  %82 = fptosi float %81 to i32
  br label %83

83:                                               ; preds = %79, %75
  %84 = phi i32 [ %78, %75 ], [ %82, %79 ]
  store i32 %84, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %85 = load i8, ptr %13, align 1, !tbaa !28, !range !30, !noundef !31
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %92

87:                                               ; preds = %83
  %88 = load i32, ptr %16, align 4, !tbaa !11
  %89 = load i32, ptr %17, align 4, !tbaa !11
  %90 = sub nsw i32 %88, %89
  %91 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %90, i32 noundef 0)
  br label %97

92:                                               ; preds = %83
  %93 = load i32, ptr %17, align 4, !tbaa !11
  %94 = load i32, ptr %16, align 4, !tbaa !11
  %95 = sub nsw i32 %93, %94
  %96 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %95, i32 noundef 0)
  br label %97

97:                                               ; preds = %92, %87
  %98 = phi i32 [ %91, %87 ], [ %96, %92 ]
  store i32 %98, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %99 = load i32, ptr %16, align 4, !tbaa !11
  %100 = sitofp i32 %99 to float
  %101 = fmul float %100, 0x400921FB60000000
  %102 = fmul float %101, 2.000000e+00
  %103 = fdiv float %102, 4.800000e+01
  store float %103, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %104 = load i32, ptr %17, align 4, !tbaa !11
  %105 = sitofp i32 %104 to float
  %106 = fmul float %105, 0x400921FB60000000
  %107 = fmul float %106, 2.000000e+00
  %108 = fdiv float %107, 4.800000e+01
  store float %108, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %109 = load float, ptr %19, align 4, !tbaa !9
  %110 = load float, ptr %10, align 4, !tbaa !9
  %111 = fsub float %109, %110
  %112 = fcmp une float %111, 0.000000e+00
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %21, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %114 = load float, ptr %11, align 4, !tbaa !9
  %115 = load float, ptr %20, align 4, !tbaa !9
  %116 = fsub float %114, %115
  %117 = fcmp une float %116, 0.000000e+00
  %118 = zext i1 %117 to i8
  store i8 %118, ptr %22, align 1, !tbaa !28
  %119 = getelementptr inbounds %struct.ImDrawList, ptr %28, i32 0, i32 11
  %120 = getelementptr inbounds %struct.ImDrawList, ptr %28, i32 0, i32 11
  %121 = getelementptr inbounds %struct.ImVector.4, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !32
  %123 = load i32, ptr %18, align 4, !tbaa !11
  %124 = add nsw i32 %123, 1
  %125 = load i8, ptr %21, align 1, !tbaa !28, !range !30, !noundef !31
  %126 = trunc i8 %125 to i1
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, i32 1, i32 0
  %129 = add nsw i32 %124, %128
  %130 = load i8, ptr %22, align 1, !tbaa !28, !range !30, !noundef !31
  %131 = trunc i8 %130 to i1
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 1, i32 0
  %134 = add nsw i32 %129, %133
  %135 = add nsw i32 %122, %134
  call void @_ZN8ImVectorI6ImVec2E7reserveEi(ptr noundef nonnull align 8 dereferenceable(16) %119, i32 noundef %135)
  %136 = load i8, ptr %21, align 1, !tbaa !28, !range !30, !noundef !31
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %154

138:                                              ; preds = %97
  %139 = getelementptr inbounds %struct.ImDrawList, ptr %28, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImVec2, ptr %140, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !33
  %143 = load float, ptr %10, align 4, !tbaa !9
  %144 = call float @cosf(float noundef %143) #7
  %145 = load float, ptr %9, align 4, !tbaa !9
  %146 = call float @llvm.fmuladd.f32(float %144, float %145, float %142)
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ImVec2, ptr %147, i32 0, i32 1
  %149 = load float, ptr %148, align 4, !tbaa !34
  %150 = load float, ptr %10, align 4, !tbaa !9
  %151 = call float @sinf(float noundef %150) #7
  %152 = load float, ptr %9, align 4, !tbaa !9
  %153 = call float @llvm.fmuladd.f32(float %151, float %152, float %149)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %146, float noundef %153)
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %139, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %154

154:                                              ; preds = %138, %97
  %155 = load i32, ptr %18, align 4, !tbaa !11
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %157, label %162

157:                                              ; preds = %154
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load float, ptr %9, align 4, !tbaa !9
  %160 = load i32, ptr %16, align 4, !tbaa !11
  %161 = load i32, ptr %17, align 4, !tbaa !11
  call void @_ZN10ImDrawList16_PathArcToFastExERK6ImVec2fiii(ptr noundef nonnull align 8 dereferenceable(196) %28, ptr noundef nonnull align 4 dereferenceable(8) %158, float noundef %159, i32 noundef %160, i32 noundef %161, i32 noundef 0)
  br label %162

162:                                              ; preds = %157, %154
  %163 = load i8, ptr %22, align 1, !tbaa !28, !range !30, !noundef !31
  %164 = trunc i8 %163 to i1
  br i1 %164, label %165, label %181

165:                                              ; preds = %162
  %166 = getelementptr inbounds %struct.ImDrawList, ptr %28, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ImVec2, ptr %167, i32 0, i32 0
  %169 = load float, ptr %168, align 4, !tbaa !33
  %170 = load float, ptr %11, align 4, !tbaa !9
  %171 = call float @cosf(float noundef %170) #7
  %172 = load float, ptr %9, align 4, !tbaa !9
  %173 = call float @llvm.fmuladd.f32(float %171, float %172, float %169)
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImVec2, ptr %174, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !34
  %177 = load float, ptr %11, align 4, !tbaa !9
  %178 = call float @sinf(float noundef %177) #7
  %179 = load float, ptr %9, align 4, !tbaa !9
  %180 = call float @llvm.fmuladd.f32(float %178, float %179, float %176)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %173, float noundef %180)
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %166, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %181

181:                                              ; preds = %165, %162
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %205

182:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %183 = load float, ptr %11, align 4, !tbaa !9
  %184 = load float, ptr %10, align 4, !tbaa !9
  %185 = fsub float %183, %184
  %186 = call noundef float @_ZL5ImAbsf(float noundef %185)
  store float %186, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %187 = load float, ptr %9, align 4, !tbaa !9
  %188 = call noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196) %28, float noundef %187)
  store i32 %188, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %189 = load i32, ptr %26, align 4, !tbaa !11
  %190 = sitofp i32 %189 to float
  %191 = load float, ptr %25, align 4, !tbaa !9
  %192 = fmul float %190, %191
  %193 = fdiv float %192, 0x401921FB60000000
  %194 = call float @llvm.ceil.f32(float %193)
  %195 = fptosi float %194 to i32
  %196 = load float, ptr %25, align 4, !tbaa !9
  %197 = fdiv float 0x401921FB60000000, %196
  %198 = fptosi float %197 to i32
  %199 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %195, i32 noundef %198)
  store i32 %199, ptr %27, align 4, !tbaa !11
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = load float, ptr %9, align 4, !tbaa !9
  %202 = load float, ptr %10, align 4, !tbaa !9
  %203 = load float, ptr %11, align 4, !tbaa !9
  %204 = load i32, ptr %27, align 4, !tbaa !11
  call void @_ZN10ImDrawList11_PathArcToNERK6ImVec2fffi(ptr noundef nonnull align 8 dereferenceable(196) %28, ptr noundef nonnull align 4 dereferenceable(8) %200, float noundef %201, float noundef %202, float noundef %203, i32 noundef %204)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %205

205:                                              ; preds = %182, %181, %37, %31
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL13ImFloorSignedf(float noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImAbsf(float noundef) #6

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #6 = { 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 #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, !6, i64 56}
!14 = !{!"_ZTS10ImDrawList", !15, i64 0, !16, i64 16, !17, i64 32, !12, i64 48, !12, 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, !10, i64 192}
!15 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!21 = !{!"_ZTS15ImDrawCmdHeader", !22, i64 0, !6, i64 16, !12, i64 24}
!22 = !{!"_ZTS6ImVec4", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!23 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !24, i64 8}
!24 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!25 = !{!26, !10, i64 432}
!26 = !{!"_ZTS20ImDrawListSharedData", !27, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !22, i64 28, !12, i64 44, !7, i64 48, !10, i64 432, !7, i64 436, !6, i64 504}
!27 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!28 = !{!29, !29, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!14, !12, i64 120}
!33 = !{!27, !10, i64 0}
!34 = !{!27, !10, i64 4}


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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196), 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) #3

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

; 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 #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList9PathArcToERK6ImVec2fffi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, float noundef %3, float noundef %4, i32 noundef %5) local_unnamed_addr #4 align 2 {
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = fcmp ugt float %2, 0.000000e+00
  br i1 %9, label %12, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %1)
  br label %95

12:                                               ; preds = %6
  %13 = icmp sgt i32 %5, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %12
  tail call void @_ZN10ImDrawList11_PathArcToNERK6ImVec2fffi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, float noundef %3, float noundef %4, i32 noundef %5)
  br label %95

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 432
  %19 = load float, ptr %18, align 8, !tbaa !22
  %20 = fcmp ult float %19, %2
  br i1 %20, label %83, label %21

21:                                               ; preds = %15
  %22 = fcmp olt float %4, %3
  %23 = fmul float %3, 4.800000e+01
  %24 = fdiv float %23, 0x401921FB60000000
  %25 = fmul float %4, 4.800000e+01
  %26 = fdiv float %25, 0x401921FB60000000
  br i1 %22, label %27, label %33

27:                                               ; preds = %21
  %28 = tail call noundef float @_ZL13ImFloorSignedf(float noundef %24)
  %29 = fptosi float %28 to i32
  %30 = tail call float @llvm.ceil.f32(float %26)
  %31 = fptosi float %30 to i32
  %32 = sub nsw i32 %29, %31
  br label %39

33:                                               ; preds = %21
  %34 = tail call float @llvm.ceil.f32(float %24)
  %35 = fptosi float %34 to i32
  %36 = tail call noundef float @_ZL13ImFloorSignedf(float noundef %26)
  %37 = fptosi float %36 to i32
  %38 = sub nsw i32 %37, %35
  br label %39

39:                                               ; preds = %33, %27
  %.sink = phi i32 [ %38, %33 ], [ %32, %27 ]
  %40 = phi i32 [ %37, %33 ], [ %31, %27 ]
  %41 = phi i32 [ %35, %33 ], [ %29, %27 ]
  %42 = tail call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %.sink, i32 noundef 0)
  %43 = sitofp i32 %41 to float
  %44 = fmul float %43, 0x400921FB60000000
  %45 = fmul float %44, 2.000000e+00
  %46 = fdiv float %45, 4.800000e+01
  %47 = sitofp i32 %40 to float
  %48 = fmul float %47, 0x400921FB60000000
  %49 = fmul float %48, 2.000000e+00
  %50 = fdiv float %49, 4.800000e+01
  %51 = fsub float %46, %3
  %52 = fcmp une float %51, 0.000000e+00
  %53 = fsub float %4, %50
  %54 = fcmp une float %53, 0.000000e+00
  %55 = getelementptr inbounds i8, ptr %0, i64 120
  %56 = load i32, ptr %55, align 8, !tbaa !25
  %57 = add nsw i32 %42, 1
  %58 = zext i1 %52 to i32
  %59 = zext i1 %54 to i32
  %60 = add i32 %57, %56
  %61 = add i32 %60, %59
  %62 = add i32 %61, %58
  tail call void @_ZN8ImVectorI6ImVec2E7reserveEi(ptr noundef nonnull align 8 dereferenceable(16) %55, i32 noundef %62)
  br i1 %52, label %63, label %71

63:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %64 = load float, ptr %1, align 4, !tbaa !26
  %65 = tail call float @cosf(float noundef %3) #7
  %66 = tail call float @llvm.fmuladd.f32(float %65, float %2, float %64)
  %67 = getelementptr inbounds i8, ptr %1, i64 4
  %68 = load float, ptr %67, align 4, !tbaa !27
  %69 = tail call float @sinf(float noundef %3) #7
  %70 = tail call float @llvm.fmuladd.f32(float %69, float %2, float %68)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %66, float noundef %70)
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %71

71:                                               ; preds = %63, %39
  %72 = icmp sgt i32 %42, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %71
  call void @_ZN10ImDrawList16_PathArcToFastExERK6ImVec2fiii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, i32 noundef %41, i32 noundef %40, i32 noundef 0)
  br label %74

74:                                               ; preds = %73, %71
  br i1 %54, label %75, label %95

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %76 = load float, ptr %1, align 4, !tbaa !26
  %77 = call float @cosf(float noundef %4) #7
  %78 = call float @llvm.fmuladd.f32(float %77, float %2, float %76)
  %79 = getelementptr inbounds i8, ptr %1, i64 4
  %80 = load float, ptr %79, align 4, !tbaa !27
  %81 = call float @sinf(float noundef %4) #7
  %82 = call float @llvm.fmuladd.f32(float %81, float %2, float %80)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %78, float noundef %82)
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %95

83:                                               ; preds = %15
  %84 = fsub float %4, %3
  %85 = tail call noundef float @_ZL5ImAbsf(float noundef %84)
  %86 = tail call noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196) %0, float noundef %2)
  %87 = sitofp i32 %86 to float
  %88 = fmul float %85, %87
  %89 = fdiv float %88, 0x401921FB60000000
  %90 = tail call float @llvm.ceil.f32(float %89)
  %91 = fptosi float %90 to i32
  %92 = fdiv float 0x401921FB60000000, %85
  %93 = fptosi float %92 to i32
  %94 = tail call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %91, i32 noundef %93)
  tail call void @_ZN10ImDrawList11_PathArcToNERK6ImVec2fffi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, float noundef %3, float noundef %4, i32 noundef %94)
  br label %95

95:                                               ; preds = %74, %75, %83, %14, %10
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL13ImFloorSignedf(float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImAbsf(float noundef) local_unnamed_addr #6

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #6 = { 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 #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, !11, i64 56}
!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, !19, i64 432}
!23 = !{!"_ZTS20ImDrawListSharedData", !24, i64 0, !11, i64 8, !19, i64 16, !19, i64 20, !19, i64 24, !18, i64 28, !8, i64 44, !9, i64 48, !19, i64 432, !9, i64 436, !11, i64 504}
!24 = !{!"_ZTS6ImVec2", !19, i64 0, !19, i64 4}
!25 = !{!6, !8, i64 120}
!26 = !{!24, !19, i64 0}
!27 = !{!24, !19, i64 4}


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