; LLVM IR from mackorone/mms :: old/v2/src/lib/polypartition (polypartition)

; 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.TPPLPoint = type { double, double }

; 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13TPPLPartition10IntersectsER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4) #3 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.TPPLPoint, align 8
  %13 = alloca %struct.TPPLPoint, align 8
  %14 = alloca %struct.TPPLPoint, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %struct.TPPLPoint, align 8
  %20 = alloca %struct.TPPLPoint, align 8
  %21 = alloca %struct.TPPLPoint, align 8
  %22 = alloca %struct.TPPLPoint, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.TPPLPoint, ptr %25, i32 0, i32 0
  %27 = load double, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TPPLPoint, ptr %28, i32 0, i32 0
  %30 = load double, ptr %29, align 8, !tbaa !9
  %31 = fcmp oeq double %27, %30
  br i1 %31, label %32, label %41

32:                                               ; preds = %5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.TPPLPoint, ptr %33, i32 0, i32 1
  %35 = load double, ptr %34, align 8, !tbaa !12
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.TPPLPoint, ptr %36, i32 0, i32 1
  %38 = load double, ptr %37, align 8, !tbaa !12
  %39 = fcmp oeq double %35, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %32
  store i32 0, ptr %6, align 4
  br label %206

41:                                               ; preds = %32, %5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.TPPLPoint, ptr %42, i32 0, i32 0
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TPPLPoint, ptr %45, i32 0, i32 0
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = fcmp oeq double %44, %47
  br i1 %48, label %49, label %58

49:                                               ; preds = %41
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.TPPLPoint, ptr %50, i32 0, i32 1
  %52 = load double, ptr %51, align 8, !tbaa !12
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TPPLPoint, ptr %53, i32 0, i32 1
  %55 = load double, ptr %54, align 8, !tbaa !12
  %56 = fcmp oeq double %52, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %49
  store i32 0, ptr %6, align 4
  br label %206

58:                                               ; preds = %49, %41
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.TPPLPoint, ptr %59, i32 0, i32 0
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.TPPLPoint, ptr %62, i32 0, i32 0
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = fcmp oeq double %61, %64
  br i1 %65, label %66, label %75

66:                                               ; preds = %58
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.TPPLPoint, ptr %67, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !12
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TPPLPoint, ptr %70, i32 0, i32 1
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = fcmp oeq double %69, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %66
  store i32 0, ptr %6, align 4
  br label %206

75:                                               ; preds = %66, %58
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TPPLPoint, ptr %76, i32 0, i32 0
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.TPPLPoint, ptr %79, i32 0, i32 0
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fcmp oeq double %78, %81
  br i1 %82, label %83, label %92

83:                                               ; preds = %75
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.TPPLPoint, ptr %84, i32 0, i32 1
  %86 = load double, ptr %85, align 8, !tbaa !12
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TPPLPoint, ptr %87, i32 0, i32 1
  %89 = load double, ptr %88, align 8, !tbaa !12
  %90 = fcmp oeq double %86, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %83
  store i32 0, ptr %6, align 4
  br label %206

92:                                               ; preds = %83, %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.TPPLPoint, ptr %93, i32 0, i32 1
  %95 = load double, ptr %94, align 8, !tbaa !12
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.TPPLPoint, ptr %96, i32 0, i32 1
  %98 = load double, ptr %97, align 8, !tbaa !12
  %99 = fsub double %95, %98
  %100 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 0
  store double %99, ptr %100, align 8, !tbaa !9
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.TPPLPoint, ptr %101, i32 0, i32 0
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.TPPLPoint, ptr %104, i32 0, i32 0
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = fsub double %103, %106
  %108 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 1
  store double %107, ptr %108, align 8, !tbaa !12
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TPPLPoint, ptr %109, i32 0, i32 1
  %111 = load double, ptr %110, align 8, !tbaa !12
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TPPLPoint, ptr %112, i32 0, i32 1
  %114 = load double, ptr %113, align 8, !tbaa !12
  %115 = fsub double %111, %114
  %116 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 0
  store double %115, ptr %116, align 8, !tbaa !9
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.TPPLPoint, ptr %117, i32 0, i32 0
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.TPPLPoint, ptr %120, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = fsub double %119, %122
  %124 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 1
  store double %123, ptr %124, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 8 dereferenceable(16) %126)
  %128 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %129 = extractvalue { double, double } %127, 0
  store double %129, ptr %128, align 8
  %130 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %131 = extractvalue { double, double } %127, 1
  store double %131, ptr %130, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  %132 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 0
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %137 = load double, ptr %136, align 8, !tbaa !12
  %138 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 1
  %139 = load double, ptr %138, align 8, !tbaa !12
  %140 = fmul double %137, %139
  %141 = call double @llvm.fmuladd.f64(double %133, double %135, double %140)
  store double %141, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %142, ptr noundef nonnull align 8 dereferenceable(16) %143)
  %145 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %146 = extractvalue { double, double } %144, 0
  store double %146, ptr %145, align 8
  %147 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %148 = extractvalue { double, double } %144, 1
  store double %148, ptr %147, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  %149 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 0
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %154 = load double, ptr %153, align 8, !tbaa !12
  %155 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 1
  %156 = load double, ptr %155, align 8, !tbaa !12
  %157 = fmul double %154, %156
  %158 = call double @llvm.fmuladd.f64(double %150, double %152, double %157)
  store double %158, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %159, ptr noundef nonnull align 8 dereferenceable(16) %160)
  %162 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %163 = extractvalue { double, double } %161, 0
  store double %163, ptr %162, align 8
  %164 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %165 = extractvalue { double, double } %161, 1
  store double %165, ptr %164, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  %166 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %167 = load double, ptr %166, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 0
  %169 = load double, ptr %168, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %171 = load double, ptr %170, align 8, !tbaa !12
  %172 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 1
  %173 = load double, ptr %172, align 8, !tbaa !12
  %174 = fmul double %171, %173
  %175 = call double @llvm.fmuladd.f64(double %167, double %169, double %174)
  store double %175, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %176, ptr noundef nonnull align 8 dereferenceable(16) %177)
  %179 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %180 = extractvalue { double, double } %178, 0
  store double %180, ptr %179, align 8
  %181 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %182 = extractvalue { double, double } %178, 1
  store double %182, ptr %181, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  %183 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %184 = load double, ptr %183, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 0
  %186 = load double, ptr %185, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %188 = load double, ptr %187, align 8, !tbaa !12
  %189 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 1
  %190 = load double, ptr %189, align 8, !tbaa !12
  %191 = fmul double %188, %190
  %192 = call double @llvm.fmuladd.f64(double %184, double %186, double %191)
  store double %192, ptr %16, align 8, !tbaa !14
  %193 = load double, ptr %15, align 8, !tbaa !14
  %194 = load double, ptr %16, align 8, !tbaa !14
  %195 = fmul double %193, %194
  %196 = fcmp ogt double %195, 0.000000e+00
  br i1 %196, label %197, label %198

197:                                              ; preds = %92
  store i32 0, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %205

198:                                              ; preds = %92
  %199 = load double, ptr %17, align 8, !tbaa !14
  %200 = load double, ptr %18, align 8, !tbaa !14
  %201 = fmul double %199, %200
  %202 = fcmp ogt double %201, 0.000000e+00
  br i1 %202, label %203, label %204

203:                                              ; preds = %198
  store i32 0, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %205

204:                                              ; preds = %198
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %205

205:                                              ; preds = %204, %203, %197
  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 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %206

206:                                              ; preds = %205, %91, %74, %57, %40
  %207 = load i32, ptr %6, align 4
  ret i32 %207
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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, !11, i64 0}
!10 = !{!"_ZTS9TPPLPoint", !11, i64 0, !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{i64 0, i64 8, !14, i64 8, i64 8, !14}
!14 = !{!11, !11, 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"

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN13TPPLPartition10IntersectsER9TPPLPointS1_S1_S1_(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4) local_unnamed_addr #0 align 2 {
  %6 = load double, ptr %1, align 8, !tbaa !5
  %7 = load double, ptr %3, align 8, !tbaa !5
  %8 = fcmp oeq double %6, %7
  br i1 %8, label %9, label %15

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load double, ptr %10, align 8, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  %13 = load double, ptr %12, align 8, !tbaa !10
  %14 = fcmp oeq double %11, %13
  br i1 %14, label %87, label %15

15:                                               ; preds = %9, %5
  %16 = load double, ptr %4, align 8, !tbaa !5
  %17 = fcmp oeq double %6, %16
  br i1 %17, label %18, label %24

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %4, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !10
  %23 = fcmp oeq double %20, %22
  br i1 %23, label %87, label %24

24:                                               ; preds = %18, %15
  %25 = load double, ptr %2, align 8, !tbaa !5
  %26 = fcmp oeq double %25, %7
  br i1 %26, label %27, label %33

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !10
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  %31 = load double, ptr %30, align 8, !tbaa !10
  %32 = fcmp oeq double %29, %31
  br i1 %32, label %87, label %33

33:                                               ; preds = %27, %24
  %34 = fcmp oeq double %25, %16
  %35 = getelementptr inbounds i8, ptr %2, i64 8
  %36 = load double, ptr %35, align 8, !tbaa !10
  %37 = getelementptr inbounds i8, ptr %4, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !10
  %39 = fcmp oeq double %36, %38
  %or.cond = select i1 %34, i1 %39, i1 false
  br i1 %or.cond, label %87, label %._crit_edge

._crit_edge:                                      ; preds = %33
  %40 = getelementptr inbounds i8, ptr %1, i64 8
  %41 = load double, ptr %40, align 8, !tbaa !10
  %42 = getelementptr inbounds i8, ptr %3, i64 8
  %43 = load double, ptr %42, align 8, !tbaa !10
  %44 = fsub double %38, %43
  %45 = fsub double %7, %16
  %46 = tail call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %47 = tail call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %48 = tail call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  %51 = tail call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %52 = extractvalue { double, double } %51, 0
  %53 = extractvalue { double, double } %51, 1
  %54 = insertelement <2 x double> poison, double %45, i64 0
  %55 = shufflevector <2 x double> %54, <2 x double> poison, <2 x i32> zeroinitializer
  %56 = insertelement <2 x double> poison, double %50, i64 0
  %57 = insertelement <2 x double> %56, double %53, i64 1
  %58 = fmul <2 x double> %55, %57
  %59 = insertelement <2 x double> poison, double %49, i64 0
  %60 = insertelement <2 x double> %59, double %52, i64 1
  %61 = insertelement <2 x double> poison, double %44, i64 0
  %62 = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> zeroinitializer
  %63 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %60, <2 x double> %62, <2 x double> %58)
  %shift = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %64 = fmul <2 x double> %63, %shift
  %65 = extractelement <2 x double> %64, i64 0
  %66 = fcmp ogt double %65, 0.000000e+00
  br i1 %66, label %87, label %67

67:                                               ; preds = %._crit_edge
  %68 = extractvalue { double, double } %47, 0
  %69 = fsub double %36, %41
  %70 = extractvalue { double, double } %47, 1
  %71 = fsub double %6, %25
  %72 = extractvalue { double, double } %46, 0
  %73 = extractvalue { double, double } %46, 1
  %74 = insertelement <2 x double> poison, double %71, i64 0
  %75 = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> zeroinitializer
  %76 = insertelement <2 x double> poison, double %73, i64 0
  %77 = insertelement <2 x double> %76, double %70, i64 1
  %78 = fmul <2 x double> %75, %77
  %79 = insertelement <2 x double> poison, double %72, i64 0
  %80 = insertelement <2 x double> %79, double %68, i64 1
  %81 = insertelement <2 x double> poison, double %69, i64 0
  %82 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> zeroinitializer
  %83 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %80, <2 x double> %82, <2 x double> %78)
  %shift59 = shufflevector <2 x double> %83, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %84 = fmul <2 x double> %83, %shift59
  %85 = extractelement <2 x double> %84, i64 0
  %86 = fcmp ule double %85, 0.000000e+00
  %. = zext i1 %86 to i32
  br label %87

87:                                               ; preds = %33, %._crit_edge, %67, %27, %18, %9
  %.1 = phi i32 [ 0, %9 ], [ 0, %18 ], [ 0, %27 ], [ 0, %._crit_edge ], [ %., %67 ], [ 0, %33 ]
  ret i32 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #1

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"_ZTS9TPPLPoint", !7, i64 0, !7, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass