; LLVM IR from ashishzero/karma :: src/modules/core/lin_maths.ll (Z25dynamic_circle_vs_mm_rectRK6Circle4Vec2RK7Mm_RectPf)

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

%union.Vec2 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }
%struct.Mm_Rect = type { %union.Vec2, %union.Vec2 }
%struct.Circle = type { %union.Vec2, float }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_Z12corner_pointRK7Mm_Rectj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zpl4Vec2S_(<2 x float>, <2 x float>) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z24intersect_circle_segmentRK6Circle4Vec2S2_Pf(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, <2 x float>, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_(<2 x float>, <2 x float>, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z25dynamic_circle_vs_mm_rectRK6Circle4Vec2RK7Mm_RectPf(ptr noundef nonnull align 4 dereferenceable(12) %0, <2 x float> %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3) #4 {
  %5 = alloca i1, align 1
  %6 = alloca %union.Vec2, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.Mm_Rect, align 4
  %11 = alloca %union.Vec2, align 4
  %12 = alloca %union.Vec2, align 4
  %13 = alloca %union.Vec2, align 4
  %14 = alloca %union.Vec2, align 4
  %15 = alloca %union.Vec2, align 4
  %16 = alloca %union.Vec2, align 4
  %17 = alloca %union.Vec2, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %union.Vec2, align 4
  %23 = alloca %struct.Circle, align 4
  %24 = alloca %union.Vec2, align 4
  %25 = alloca %union.Vec2, align 4
  %26 = getelementptr inbounds %union.Vec2, ptr %6, i32 0, i32 0
  store <2 x float> %1, ptr %26, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %27, i64 16, i1 false), !tbaa.struct !9
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Circle, ptr %28, i32 0, i32 1
  %30 = load float, ptr %29, align 4, !tbaa !11
  %31 = getelementptr inbounds %struct.Mm_Rect, ptr %10, i32 0, i32 0
  %32 = getelementptr inbounds %struct.anon.1, ptr %31, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !10
  %34 = fsub float %33, %30
  store float %34, ptr %32, align 4, !tbaa !10
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Circle, ptr %35, i32 0, i32 1
  %37 = load float, ptr %36, align 4, !tbaa !11
  %38 = getelementptr inbounds %struct.Mm_Rect, ptr %10, i32 0, i32 0
  %39 = getelementptr inbounds %struct.anon.1, ptr %38, i32 0, i32 1
  %40 = load float, ptr %39, align 4, !tbaa !10
  %41 = fsub float %40, %37
  store float %41, ptr %39, align 4, !tbaa !10
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Circle, ptr %42, i32 0, i32 1
  %44 = load float, ptr %43, align 4, !tbaa !11
  %45 = getelementptr inbounds %struct.Mm_Rect, ptr %10, i32 0, i32 1
  %46 = getelementptr inbounds %struct.anon.1, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !10
  %48 = fadd float %47, %44
  store float %48, ptr %46, align 4, !tbaa !10
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Circle, ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !11
  %52 = getelementptr inbounds %struct.Mm_Rect, ptr %10, i32 0, i32 1
  %53 = getelementptr inbounds %struct.anon.1, ptr %52, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !10
  %55 = fadd float %54, %51
  store float %55, ptr %53, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Circle, ptr %56, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Circle, ptr %58, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !14
  %60 = getelementptr inbounds %union.Vec2, ptr %13, i32 0, i32 0
  %61 = load <2 x float>, ptr %60, align 4
  %62 = getelementptr inbounds %union.Vec2, ptr %14, i32 0, i32 0
  %63 = load <2 x float>, ptr %62, align 4
  %64 = call <2 x float> @_Zpl4Vec2S_(<2 x float> %61, <2 x float> %63)
  %65 = getelementptr inbounds %union.Vec2, ptr %12, i32 0, i32 0
  store <2 x float> %64, ptr %65, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !14
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %union.Vec2, ptr %16, i32 0, i32 0
  %68 = load <2 x float>, ptr %67, align 4
  %69 = getelementptr inbounds %union.Vec2, ptr %17, i32 0, i32 0
  %70 = load <2 x float>, ptr %69, align 4
  %71 = call noundef zeroext i1 @_Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_(<2 x float> %68, <2 x float> %70, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef %66, ptr noundef %15)
  br i1 %71, label %73, label %72

72:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %147

73:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !15
  %74 = getelementptr inbounds %struct.anon.1, ptr %15, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !10
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Mm_Rect, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %struct.anon.1, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !10
  %80 = fcmp olt float %75, %79
  br i1 %80, label %81, label %84

81:                                               ; preds = %73
  %82 = load i32, ptr %19, align 4, !tbaa !15
  %83 = or i32 %82, 1
  store i32 %83, ptr %19, align 4, !tbaa !15
  br label %84

84:                                               ; preds = %81, %73
  %85 = getelementptr inbounds %struct.anon.1, ptr %15, i32 0, i32 0
  %86 = load float, ptr %85, align 4, !tbaa !10
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Mm_Rect, ptr %87, i32 0, i32 1
  %89 = getelementptr inbounds %struct.anon.1, ptr %88, i32 0, i32 0
  %90 = load float, ptr %89, align 4, !tbaa !10
  %91 = fcmp ogt float %86, %90
  br i1 %91, label %92, label %95

92:                                               ; preds = %84
  %93 = load i32, ptr %20, align 4, !tbaa !15
  %94 = or i32 %93, 1
  store i32 %94, ptr %20, align 4, !tbaa !15
  br label %95

95:                                               ; preds = %92, %84
  %96 = getelementptr inbounds %struct.anon.1, ptr %15, i32 0, i32 1
  %97 = load float, ptr %96, align 4, !tbaa !10
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Mm_Rect, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %struct.anon.1, ptr %99, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !10
  %102 = fcmp olt float %97, %101
  br i1 %102, label %103, label %106

103:                                              ; preds = %95
  %104 = load i32, ptr %19, align 4, !tbaa !15
  %105 = or i32 %104, 2
  store i32 %105, ptr %19, align 4, !tbaa !15
  br label %106

106:                                              ; preds = %103, %95
  %107 = getelementptr inbounds %struct.anon.1, ptr %15, i32 0, i32 1
  %108 = load float, ptr %107, align 4, !tbaa !10
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Mm_Rect, ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds %struct.anon.1, ptr %110, i32 0, i32 1
  %112 = load float, ptr %111, align 4, !tbaa !10
  %113 = fcmp ogt float %108, %112
  br i1 %113, label %114, label %117

114:                                              ; preds = %106
  %115 = load i32, ptr %20, align 4, !tbaa !15
  %116 = or i32 %115, 2
  store i32 %116, ptr %20, align 4, !tbaa !15
  br label %117

117:                                              ; preds = %114, %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %118 = load i32, ptr %19, align 4, !tbaa !15
  %119 = load i32, ptr %20, align 4, !tbaa !15
  %120 = add i32 %118, %119
  store i32 %120, ptr %21, align 4, !tbaa !15
  %121 = load i32, ptr %21, align 4, !tbaa !15
  %122 = icmp eq i32 %121, 3
  br i1 %122, label %123, label %145

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i32, ptr %20, align 4, !tbaa !15
  %126 = call <2 x float> @_Z12corner_pointRK7Mm_Rectj(ptr noundef nonnull align 4 dereferenceable(16) %124, i32 noundef %125)
  %127 = getelementptr inbounds %union.Vec2, ptr %22, i32 0, i32 0
  store <2 x float> %126, ptr %127, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #5
  %128 = getelementptr inbounds %struct.Circle, ptr %23, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !14
  %129 = getelementptr inbounds %struct.Circle, ptr %23, i32 0, i32 1
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Circle, ptr %130, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !11
  store float %132, ptr %129, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !14
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %union.Vec2, ptr %24, i32 0, i32 0
  %135 = load <2 x float>, ptr %134, align 4
  %136 = getelementptr inbounds %union.Vec2, ptr %25, i32 0, i32 0
  %137 = load <2 x float>, ptr %136, align 4
  %138 = call noundef zeroext i1 @_Z24intersect_circle_segmentRK6Circle4Vec2S2_Pf(ptr noundef nonnull align 4 dereferenceable(12) %23, <2 x float> %135, <2 x float> %137, ptr noundef %133)
  %139 = xor i1 %138, true
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #5
  br i1 %139, label %140, label %141

140:                                              ; preds = %123
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %142

141:                                              ; preds = %123
  store i32 0, ptr %18, align 4
  br label %142

142:                                              ; preds = %141, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %143 = load i32, ptr %18, align 4
  switch i32 %143, label %146 [
    i32 0, label %144
  ]

144:                                              ; preds = %142
  br label %145

145:                                              ; preds = %144, %117
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %146

146:                                              ; preds = %145, %142
  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
  br label %147

147:                                              ; preds = %146, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  %148 = load i1, ptr %5, align 1
  ret i1 %148
}

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


; 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.Mm_Rect = type { %union.Vec2, %union.Vec2 }
%union.Vec2 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }
%struct.Circle = type { %union.Vec2, float }

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_Z12corner_pointRK7Mm_Rectj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z24intersect_circle_segmentRK6Circle4Vec2S2_Pf(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_(<2 x float>, <2 x float>, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z25dynamic_circle_vs_mm_rectRK6Circle4Vec2RK7Mm_RectPf(ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %0, <2 x float> %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3) local_unnamed_addr #4 {
  %5 = alloca %struct.Mm_Rect, align 16
  %6 = alloca %union.Vec2, align 4
  %7 = alloca %struct.Circle, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load float, ptr %8, align 4, !tbaa !9
  %10 = load <4 x float>, ptr %5, align 16, !tbaa !6
  %11 = insertelement <4 x float> poison, float %9, i64 0
  %12 = shufflevector <4 x float> %11, <4 x float> poison, <4 x i32> zeroinitializer
  %13 = fsub <4 x float> %10, %12
  %14 = fadd <4 x float> %10, %12
  %15 = shufflevector <4 x float> %13, <4 x float> %14, <4 x i32> <i32 0, i32 1, i32 6, i32 7>
  store <4 x float> %15, ptr %5, align 16, !tbaa !6
  %.sroa.017.0.copyload = load <2 x float>, ptr %0, align 4, !tbaa !6
  %16 = tail call <2 x float> @_Zpl4Vec2S_(<2 x float> %.sroa.017.0.copyload, <2 x float> %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %17 = call noundef zeroext i1 @_Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_(<2 x float> %.sroa.017.0.copyload, <2 x float> %16, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef %3, ptr noundef nonnull %6)
  br i1 %17, label %18, label %43

18:                                               ; preds = %4
  %19 = load float, ptr %6, align 4, !tbaa !6
  %20 = load float, ptr %2, align 4, !tbaa !6
  %21 = fcmp olt float %19, %20
  %.036 = zext i1 %21 to i32
  %22 = getelementptr inbounds i8, ptr %2, i64 8
  %23 = load float, ptr %22, align 4, !tbaa !6
  %24 = fcmp ogt float %19, %23
  %.038 = zext i1 %24 to i32
  %25 = getelementptr inbounds i8, ptr %6, i64 4
  %26 = load float, ptr %25, align 4, !tbaa !6
  %27 = getelementptr inbounds i8, ptr %2, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !6
  %29 = fcmp olt float %26, %28
  %30 = or disjoint i32 %.036, 2
  %.137 = select i1 %29, i32 %30, i32 %.036
  %31 = getelementptr inbounds i8, ptr %2, i64 12
  %32 = load float, ptr %31, align 4, !tbaa !6
  %33 = fcmp ogt float %26, %32
  %34 = or disjoint i32 %.038, 2
  %.139 = select i1 %33, i32 %34, i32 %.038
  %35 = add nuw nsw i32 %.139, %.137
  %36 = icmp eq i32 %35, 3
  br i1 %36, label %37, label %42

37:                                               ; preds = %18
  %38 = call <2 x float> @_Z12corner_pointRK7Mm_Rectj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %.139)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  store <2 x float> %38, ptr %7, align 8, !tbaa !6
  %39 = getelementptr inbounds i8, ptr %7, i64 8
  %40 = load float, ptr %8, align 4, !tbaa !9
  store float %40, ptr %39, align 8, !tbaa !9
  %41 = call noundef zeroext i1 @_Z24intersect_circle_segmentRK6Circle4Vec2S2_Pf(ptr noundef nonnull align 4 dereferenceable(12) %7, <2 x float> %.sroa.017.0.copyload, <2 x float> %16, ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  br i1 %41, label %42, label %43

42:                                               ; preds = %37, %18
  br label %43

43:                                               ; preds = %42, %37, %4
  %.2 = phi i1 [ false, %4 ], [ true, %42 ], [ false, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret i1 %.2
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { 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 #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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS6Circle", !7, i64 0, !11, i64 8}
!11 = !{!"float", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass