; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/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, i32 }

; 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(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %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 !13
  %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 !13
  %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 %186

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 !13
  %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 !13
  %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 %186

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 !13
  %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 !13
  %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 %186

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 !13
  %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 !13
  %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 %186

92:                                               ; preds = %83, %75
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, 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 !13
  %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 !13
  %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 !13
  %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 !13
  %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 !13
  %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 !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind writable sret(%struct.TPPLPoint) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(24) %126)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %19, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  %127 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 0
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 1
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = fmul double %132, %134
  %136 = call double @llvm.fmuladd.f64(double %128, double %130, double %135)
  store double %136, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind writable sret(%struct.TPPLPoint) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 8 dereferenceable(24) %138)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  %139 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 0
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %144 = load double, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds %struct.TPPLPoint, ptr %12, i32 0, i32 1
  %146 = load double, ptr %145, align 8, !tbaa !13
  %147 = fmul double %144, %146
  %148 = call double @llvm.fmuladd.f64(double %140, double %142, double %147)
  store double %148, ptr %18, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind writable sret(%struct.TPPLPoint) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef nonnull align 8 dereferenceable(24) %150)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  %151 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 0
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %156 = load double, ptr %155, align 8, !tbaa !13
  %157 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 1
  %158 = load double, ptr %157, align 8, !tbaa !13
  %159 = fmul double %156, %158
  %160 = call double @llvm.fmuladd.f64(double %152, double %154, double %159)
  store double %160, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind writable sret(%struct.TPPLPoint) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 8 dereferenceable(24) %162)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %22, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  %163 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 0
  %164 = load double, ptr %163, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 0
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct.TPPLPoint, ptr %14, i32 0, i32 1
  %168 = load double, ptr %167, align 8, !tbaa !13
  %169 = getelementptr inbounds %struct.TPPLPoint, ptr %13, i32 0, i32 1
  %170 = load double, ptr %169, align 8, !tbaa !13
  %171 = fmul double %168, %170
  %172 = call double @llvm.fmuladd.f64(double %164, double %166, double %171)
  store double %172, ptr %16, align 8, !tbaa !15
  %173 = load double, ptr %15, align 8, !tbaa !15
  %174 = load double, ptr %16, align 8, !tbaa !15
  %175 = fmul double %173, %174
  %176 = fcmp ogt double %175, 0.000000e+00
  br i1 %176, label %177, label %178

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

178:                                              ; preds = %92
  %179 = load double, ptr %17, align 8, !tbaa !15
  %180 = load double, ptr %18, align 8, !tbaa !15
  %181 = fmul double %179, %180
  %182 = fcmp ogt double %181, 0.000000e+00
  br i1 %182, label %183, label %184

183:                                              ; preds = %178
  store i32 0, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %185

184:                                              ; preds = %178
  store i32 1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %185

185:                                              ; preds = %184, %183, %177
  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 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %186

186:                                              ; preds = %185, %91, %74, %57, %40
  %187 = load i32, ptr %6, align 4
  ret i32 %187
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.TPPLPoint) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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, !12, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15, i64 16, i64 4, !16}
!15 = !{!11, !11, i64 0}
!16 = !{!12, !12, 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.TPPLPoint = type { double, double, i32 }

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

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

; Function Attrs: mustprogress 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(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #1 align 2 {
  %6 = alloca %struct.TPPLPoint, align 16
  %7 = alloca %struct.TPPLPoint, align 8
  %8 = alloca %struct.TPPLPoint, align 16
  %9 = alloca %struct.TPPLPoint, align 8
  %10 = load double, ptr %1, align 8, !tbaa !5
  %11 = load double, ptr %3, align 8, !tbaa !5
  %12 = fcmp oeq double %10, %11
  br i1 %12, label %13, label %19

13:                                               ; preds = %5
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load double, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = load double, ptr %16, align 8, !tbaa !11
  %18 = fcmp oeq double %15, %17
  br i1 %18, label %79, label %19

19:                                               ; preds = %13, %5
  %20 = load double, ptr %4, align 8, !tbaa !5
  %21 = fcmp oeq double %10, %20
  br i1 %21, label %22, label %28

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds i8, ptr %4, i64 8
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = fcmp oeq double %24, %26
  br i1 %27, label %79, label %28

28:                                               ; preds = %22, %19
  %29 = load double, ptr %2, align 8, !tbaa !5
  %30 = fcmp oeq double %29, %11
  br i1 %30, label %31, label %37

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %2, i64 8
  %33 = load double, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %3, i64 8
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fcmp oeq double %33, %35
  br i1 %36, label %79, label %37

37:                                               ; preds = %31, %28
  %38 = fcmp oeq double %29, %20
  %39 = getelementptr inbounds i8, ptr %2, i64 8
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %4, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !11
  %43 = fcmp oeq double %40, %42
  %or.cond = select i1 %38, i1 %43, i1 false
  br i1 %or.cond, label %79, label %._crit_edge

._crit_edge:                                      ; preds = %37
  %44 = getelementptr inbounds i8, ptr %1, i64 8
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %3, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !11
  %48 = fsub double %42, %47
  %49 = fsub double %11, %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.TPPLPoint) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %50 = load <2 x double>, ptr %6, align 16
  %.sroa.10.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %51 = load <2 x double>, ptr %.sroa.10.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.TPPLPoint) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.sroa.0.0.copyload7 = load double, ptr %7, align 8, !tbaa !12
  %.sroa.10.0..sroa_idx10 = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.10.0.copyload11 = load double, ptr %.sroa.10.0..sroa_idx10, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.TPPLPoint) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %52 = load <2 x double>, ptr %8, align 16
  %.sroa.10.0..sroa_idx12 = getelementptr inbounds i8, ptr %8, i64 8
  %53 = load <2 x double>, ptr %.sroa.10.0..sroa_idx12, align 8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  call void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.TPPLPoint) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.sroa.0.0.copyload9 = load double, ptr %9, align 8, !tbaa !12
  %.sroa.10.0..sroa_idx14 = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.10.0.copyload15 = load double, ptr %.sroa.10.0..sroa_idx14, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  %54 = insertelement <2 x double> poison, double %49, i64 0
  %55 = shufflevector <2 x double> %54, <2 x double> poison, <2 x i32> zeroinitializer
  %56 = insertelement <2 x double> %53, double %.sroa.10.0.copyload15, i64 1
  %57 = fmul <2 x double> %55, %56
  %58 = insertelement <2 x double> %52, double %.sroa.0.0.copyload9, i64 1
  %59 = insertelement <2 x double> poison, double %48, i64 0
  %60 = shufflevector <2 x double> %59, <2 x double> poison, <2 x i32> zeroinitializer
  %61 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %58, <2 x double> %60, <2 x double> %57)
  %shift = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %62 = fmul <2 x double> %61, %shift
  %63 = extractelement <2 x double> %62, i64 0
  %64 = fcmp ogt double %63, 0.000000e+00
  br i1 %64, label %79, label %65

65:                                               ; preds = %._crit_edge
  %66 = fsub double %40, %45
  %67 = fsub double %10, %29
  %68 = insertelement <2 x double> poison, double %67, i64 0
  %69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
  %70 = insertelement <2 x double> %51, double %.sroa.10.0.copyload11, i64 1
  %71 = fmul <2 x double> %69, %70
  %72 = insertelement <2 x double> %50, double %.sroa.0.0.copyload7, i64 1
  %73 = insertelement <2 x double> poison, double %66, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> %74, <2 x double> %71)
  %shift68 = shufflevector <2 x double> %75, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %76 = fmul <2 x double> %75, %shift68
  %77 = extractelement <2 x double> %76, i64 0
  %78 = fcmp ule double %77, 0.000000e+00
  %. = zext i1 %78 to i32
  br label %79

79:                                               ; preds = %37, %._crit_edge, %65, %31, %22, %13
  %.1 = phi i32 [ 0, %13 ], [ 0, %22 ], [ 0, %31 ], [ 0, %._crit_edge ], [ %., %65 ], [ 0, %37 ]
  ret i32 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK9TPPLPointmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.TPPLPoint) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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>) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = !{!"_ZTS9TPPLPoint", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}


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