; LLVM IR from tyoma/agge :: src/agge (stroke_features)

; 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.agge::point" = type { float, float }

@_ZN4agge15c_qarc_bezier_kE = external constant float, align 4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef, float noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4agge4caps5round4calcERNS_10pod_vectorINS_5pointIfEEEEfRKS4_fS8_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %4, ptr noundef nonnull align 4 dereferenceable(8) %5) unnamed_addr #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"struct.agge::point", align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca %"struct.agge::point", align 4
  %29 = alloca %"struct.agge::point", align 4
  %30 = alloca float, align 4
  %31 = alloca %"struct.agge::point", align 4
  %32 = alloca %"struct.agge::point", 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 ptr %3, ptr %10, align 8, !tbaa !5
  store float %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8
  %34 = load float, ptr %9, align 4, !tbaa !9
  %35 = load float, ptr %11, align 4, !tbaa !9
  %36 = fdiv float %34, %35
  store float %36, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %37 = load float, ptr %9, align 4, !tbaa !9
  %38 = call noundef float @_ZN4agge23optimal_circle_steppingEff(float noundef %37, float noundef 1.000000e+00)
  %39 = fmul float 4.000000e+00, %38
  store float %39, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.agge::point", ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !11
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.agge::point", ptr %43, i32 0, i32 0
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = fsub float %42, %45
  %47 = load float, ptr %11, align 4, !tbaa !9
  %48 = fmul float %46, %47
  store float %48, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %49 = load float, ptr @_ZN4agge15c_qarc_bezier_kE, align 4, !tbaa !9
  %50 = load float, ptr %14, align 4, !tbaa !9
  %51 = fmul float %49, %50
  store float %51, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.agge::point", ptr %52, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !13
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.agge::point", ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !13
  %58 = fsub float %54, %57
  %59 = load float, ptr %11, align 4, !tbaa !9
  %60 = fmul float %58, %59
  store float %60, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %61 = load float, ptr @_ZN4agge15c_qarc_bezier_kE, align 4, !tbaa !9
  %62 = load float, ptr %16, align 4, !tbaa !9
  %63 = fmul float %61, %62
  store float %63, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.agge::point", ptr %64, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !11
  %67 = load float, ptr %16, align 4, !tbaa !9
  %68 = fsub float %66, %67
  store float %68, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.agge::point", ptr %69, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !13
  %72 = load float, ptr %14, align 4, !tbaa !9
  %73 = fadd float %71, %72
  store float %73, ptr %19, align 4, !tbaa !9
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %75 = load float, ptr %18, align 4, !tbaa !9
  %76 = load float, ptr %19, align 4, !tbaa !9
  %77 = call <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef %75, float noundef %76)
  store <2 x float> %77, ptr %20, align 4
  %78 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %79 = load float, ptr %18, align 4, !tbaa !9
  %80 = load float, ptr %15, align 4, !tbaa !9
  %81 = fsub float %79, %80
  store float %81, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %82 = load float, ptr %19, align 4, !tbaa !9
  %83 = load float, ptr %17, align 4, !tbaa !9
  %84 = fsub float %82, %83
  store float %84, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.agge::point", ptr %85, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = load float, ptr %14, align 4, !tbaa !9
  %89 = fsub float %87, %88
  store float %89, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.agge::point", ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !13
  %93 = load float, ptr %16, align 4, !tbaa !9
  %94 = fsub float %92, %93
  store float %94, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %95 = load float, ptr %23, align 4, !tbaa !9
  %96 = load float, ptr %17, align 4, !tbaa !9
  %97 = fsub float %95, %96
  store float %97, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %98 = load float, ptr %24, align 4, !tbaa !9
  %99 = load float, ptr %15, align 4, !tbaa !9
  %100 = fadd float %98, %99
  store float %100, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %101 = load float, ptr %13, align 4, !tbaa !9
  store float %101, ptr %27, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %120, %6
  %103 = load float, ptr %27, align 4, !tbaa !9
  %104 = fcmp olt float %103, 1.000000e+00
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %124

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %107 = getelementptr inbounds %"struct.agge::point", ptr %28, i32 0, i32 0
  %108 = getelementptr inbounds %"struct.agge::point", ptr %28, i32 0, i32 1
  %109 = load float, ptr %18, align 4, !tbaa !9
  %110 = load float, ptr %19, align 4, !tbaa !9
  %111 = load float, ptr %21, align 4, !tbaa !9
  %112 = load float, ptr %22, align 4, !tbaa !9
  %113 = load float, ptr %25, align 4, !tbaa !9
  %114 = load float, ptr %26, align 4, !tbaa !9
  %115 = load float, ptr %23, align 4, !tbaa !9
  %116 = load float, ptr %24, align 4, !tbaa !9
  %117 = load float, ptr %27, align 4, !tbaa !9
  call void @_ZN4agge7cbezier9calculateEPfS1_fffffffff(ptr noundef %107, ptr noundef %108, float noundef %109, float noundef %110, float noundef %111, float noundef %112, float noundef %113, float noundef %114, float noundef %115, float noundef %116, float noundef %117)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 4 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %120

120:                                              ; preds = %106
  %121 = load float, ptr %13, align 4, !tbaa !9
  %122 = load float, ptr %27, align 4, !tbaa !9
  %123 = fadd float %122, %121
  store float %123, ptr %27, align 4, !tbaa !9
  br label %102, !llvm.loop !14

124:                                              ; preds = %105
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %126 = load float, ptr %23, align 4, !tbaa !9
  %127 = load float, ptr %24, align 4, !tbaa !9
  %128 = call <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef %126, float noundef %127)
  store <2 x float> %128, ptr %29, align 4
  %129 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 4 dereferenceable(8) %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  %130 = load float, ptr %23, align 4, !tbaa !9
  store float %130, ptr %18, align 4, !tbaa !9
  %131 = load float, ptr %24, align 4, !tbaa !9
  store float %131, ptr %19, align 4, !tbaa !9
  %132 = load float, ptr %18, align 4, !tbaa !9
  %133 = load float, ptr %17, align 4, !tbaa !9
  %134 = fadd float %132, %133
  store float %134, ptr %21, align 4, !tbaa !9
  %135 = load float, ptr %19, align 4, !tbaa !9
  %136 = load float, ptr %15, align 4, !tbaa !9
  %137 = fsub float %135, %136
  store float %137, ptr %22, align 4, !tbaa !9
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.agge::point", ptr %138, i32 0, i32 0
  %140 = load float, ptr %139, align 4, !tbaa !11
  %141 = load float, ptr %16, align 4, !tbaa !9
  %142 = fadd float %140, %141
  store float %142, ptr %23, align 4, !tbaa !9
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.agge::point", ptr %143, i32 0, i32 1
  %145 = load float, ptr %144, align 4, !tbaa !13
  %146 = load float, ptr %14, align 4, !tbaa !9
  %147 = fsub float %145, %146
  store float %147, ptr %24, align 4, !tbaa !9
  %148 = load float, ptr %23, align 4, !tbaa !9
  %149 = load float, ptr %15, align 4, !tbaa !9
  %150 = fsub float %148, %149
  store float %150, ptr %25, align 4, !tbaa !9
  %151 = load float, ptr %24, align 4, !tbaa !9
  %152 = load float, ptr %17, align 4, !tbaa !9
  %153 = fsub float %151, %152
  store float %153, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %154 = load float, ptr %13, align 4, !tbaa !9
  store float %154, ptr %30, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %173, %124
  %156 = load float, ptr %30, align 4, !tbaa !9
  %157 = fcmp olt float %156, 1.000000e+00
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %177

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %160 = getelementptr inbounds %"struct.agge::point", ptr %31, i32 0, i32 0
  %161 = getelementptr inbounds %"struct.agge::point", ptr %31, i32 0, i32 1
  %162 = load float, ptr %18, align 4, !tbaa !9
  %163 = load float, ptr %19, align 4, !tbaa !9
  %164 = load float, ptr %21, align 4, !tbaa !9
  %165 = load float, ptr %22, align 4, !tbaa !9
  %166 = load float, ptr %25, align 4, !tbaa !9
  %167 = load float, ptr %26, align 4, !tbaa !9
  %168 = load float, ptr %23, align 4, !tbaa !9
  %169 = load float, ptr %24, align 4, !tbaa !9
  %170 = load float, ptr %30, align 4, !tbaa !9
  call void @_ZN4agge7cbezier9calculateEPfS1_fffffffff(ptr noundef %160, ptr noundef %161, float noundef %162, float noundef %163, float noundef %164, float noundef %165, float noundef %166, float noundef %167, float noundef %168, float noundef %169, float noundef %170)
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef nonnull align 4 dereferenceable(8) %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %173

173:                                              ; preds = %159
  %174 = load float, ptr %13, align 4, !tbaa !9
  %175 = load float, ptr %30, align 4, !tbaa !9
  %176 = fadd float %175, %174
  store float %176, ptr %30, align 4, !tbaa !9
  br label %155, !llvm.loop !16

177:                                              ; preds = %158
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %179 = load float, ptr %23, align 4, !tbaa !9
  %180 = load float, ptr %24, align 4, !tbaa !9
  %181 = call <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef %179, float noundef %180)
  store <2 x float> %181, ptr %32, align 4
  %182 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %178, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  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 %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

declare noundef float @_ZN4agge23optimal_circle_steppingEff(float noundef, float noundef) #4

declare void @_ZN4agge7cbezier9calculateEPfS1_fffffffff(ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind 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 = { "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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN4agge5pointIfEE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.agge::point" = type { float, float }

@_ZN4agge15c_qarc_bezier_kE = external local_unnamed_addr constant float, align 4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef, float noundef) local_unnamed_addr #2

; 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 uwtable
define dso_local void @_ZNK4agge4caps5round4calcERNS_10pod_vectorINS_5pointIfEEEEfRKS4_fS8_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %3, float noundef %4, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %5) unnamed_addr #3 align 2 {
  %7 = alloca %"struct.agge::point", align 8
  %8 = alloca %"struct.agge::point", align 4
  %9 = alloca %"struct.agge::point", align 8
  %10 = alloca %"struct.agge::point", align 4
  %11 = alloca %"struct.agge::point", align 8
  %12 = fdiv float %2, %4
  %13 = tail call noundef float @_ZN4agge23optimal_circle_steppingEff(float noundef %2, float noundef 1.000000e+00)
  %14 = fmul float %13, 4.000000e+00
  %15 = load float, ptr %5, align 4, !tbaa !5
  %16 = load float, ptr %3, align 4, !tbaa !5
  %17 = fsub float %15, %16
  %18 = fmul float %12, %17
  %19 = load float, ptr @_ZN4agge15c_qarc_bezier_kE, align 4, !tbaa !10
  %20 = fmul float %19, %18
  %21 = getelementptr inbounds i8, ptr %5, i64 4
  %22 = load float, ptr %21, align 4, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %3, i64 4
  %24 = load float, ptr %23, align 4, !tbaa !11
  %25 = fsub float %22, %24
  %26 = fmul float %12, %25
  %27 = fmul float %19, %26
  %28 = fsub float %16, %26
  %29 = fadd float %18, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %30 = tail call <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef %28, float noundef %29)
  store <2 x float> %30, ptr %7, align 8
  %31 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %32 = fsub float %28, %20
  %33 = fsub float %29, %27
  %34 = load float, ptr %3, align 4, !tbaa !5
  %35 = fsub float %34, %18
  %36 = load float, ptr %23, align 4, !tbaa !11
  %37 = fsub float %36, %26
  %38 = fsub float %35, %27
  %39 = fadd float %20, %37
  %40 = fcmp olt float %14, 1.000000e+00
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %41 = getelementptr inbounds i8, ptr %8, i64 4
  br label %53

._crit_edge:                                      ; preds = %53, %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %42 = call <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef %35, float noundef %37)
  store <2 x float> %42, ptr %9, align 8
  %43 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %44 = fadd float %27, %35
  %45 = fsub float %37, %20
  %46 = load float, ptr %3, align 4, !tbaa !5
  %47 = fadd float %26, %46
  %48 = load float, ptr %23, align 4, !tbaa !11
  %49 = fsub float %48, %18
  %50 = fsub float %47, %20
  %51 = fsub float %49, %27
  br i1 %40, label %.lr.ph83, label %._crit_edge84

.lr.ph83:                                         ; preds = %._crit_edge
  %52 = getelementptr inbounds i8, ptr %10, i64 4
  br label %59

53:                                               ; preds = %.lr.ph, %53
  %.07980 = phi float [ %14, %.lr.ph ], [ %55, %53 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4agge7cbezier9calculateEPfS1_fffffffff(ptr noundef nonnull %8, ptr noundef nonnull %41, float noundef %28, float noundef %29, float noundef %32, float noundef %33, float noundef %38, float noundef %39, float noundef %35, float noundef %37, float noundef %.07980)
  %54 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %55 = fadd float %14, %.07980
  %56 = fcmp olt float %55, 1.000000e+00
  br i1 %56, label %53, label %._crit_edge, !llvm.loop !12

._crit_edge84:                                    ; preds = %59, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %57 = call <2 x float> @_ZN4agge12create_pointIfEENS_5pointIT_EES2_S2_(float noundef %47, float noundef %49)
  store <2 x float> %57, ptr %11, align 8
  %58 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  ret void

59:                                               ; preds = %.lr.ph83, %59
  %.081 = phi float [ %14, %.lr.ph83 ], [ %61, %59 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN4agge7cbezier9calculateEPfS1_fffffffff(ptr noundef nonnull %10, ptr noundef nonnull %52, float noundef %35, float noundef %37, float noundef %44, float noundef %45, float noundef %50, float noundef %51, float noundef %47, float noundef %49, float noundef %.081)
  %60 = call noundef ptr @_ZN4agge10pod_vectorINS_5pointIfEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %61 = fadd float %14, %.081
  %62 = fcmp olt float %61, 1.000000e+00
  br i1 %62, label %59, label %._crit_edge84, !llvm.loop !14
}

declare noundef float @_ZN4agge23optimal_circle_steppingEff(float noundef, float noundef) local_unnamed_addr #4

declare void @_ZN4agge7cbezier9calculateEPfS1_fffffffff(ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind 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 = { "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, !7, i64 0}
!6 = !{!"_ZTSN4agge5pointIfEE", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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