; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Isect.ll (Z12R3IntersectsRK7R3PlaneS1_P6R3Line)

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

%class.R3Vector = type { [3 x double] }
%class.R3Point = type { [3 x double] }
%class.R3Line = type { %class.R3Point, %class.R3Vector }

@RN_EPSILON = external global double, align 8
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1

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

declare void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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) #0

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3Plane6NormalEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z9RNIsEqualddd(double noundef, double noundef, double noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11RNIsNotZerodd(double noundef, double noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12R3IntersectsRK7R3PlaneS1_P6R3Line(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) #5 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %class.R3Vector, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.R3Point, align 8
  %13 = alloca %class.R3Line, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call noundef i32 @_Z10R3ParallelRK7R3PlaneS1_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %28

18:                                               ; preds = %3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %21)
  %23 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %24 = call noundef i32 @_Z9RNIsEqualddd(double noundef %20, double noundef %22, double noundef %23)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %18
  store i32 5, ptr %4, align 4
  br label %94

27:                                               ; preds = %18
  store i32 0, ptr %4, align 4
  br label %94

28:                                               ; preds = %3
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %93

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3Plane6NormalEv(ptr noundef nonnull align 8 dereferenceable(32) %32)
  call void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %33)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3Plane6NormalEv(ptr noundef nonnull align 8 dereferenceable(32) %34)
  call void @_ZN8R3Vector5CrossERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %36 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  store i32 %36, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %37 = load i32, ptr %9, align 4, !tbaa !11
  %38 = add nsw i32 %37, 1
  %39 = srem i32 %38, 3
  store i32 %39, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %40 = load i32, ptr %9, align 4, !tbaa !11
  %41 = add nsw i32 %40, 2
  %42 = srem i32 %41, 3
  store i32 %42, ptr %11, align 4, !tbaa !11
  %43 = load i32, ptr %9, align 4, !tbaa !11
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %43)
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %47 = call noundef i32 @_Z11RNIsNotZerodd(double noundef %45, double noundef %46)
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %50, label %49

49:                                               ; preds = %31
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.11, i32 noundef 1763, ptr noundef @.str.5)
  br label %50

50:                                               ; preds = %49, %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %51)
  store double 0.000000e+00, ptr %52, align 8, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i32, ptr %11, align 4, !tbaa !11
  %55 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %53, i32 noundef %54)
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %56)
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !11
  %60 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %58, i32 noundef %59)
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %61)
  %63 = fmul double %60, %62
  %64 = fneg double %63
  %65 = call double @llvm.fmuladd.f64(double %55, double %57, double %64)
  %66 = load i32, ptr %9, align 4, !tbaa !11
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %66)
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = fdiv double %65, %68
  %70 = load i32, ptr %10, align 4, !tbaa !11
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %70)
  store double %69, ptr %71, align 8, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %72, i32 noundef %73)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %75)
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load i32, ptr %10, align 4, !tbaa !11
  %79 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %77, i32 noundef %78)
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %80)
  %82 = fmul double %79, %81
  %83 = fneg double %82
  %84 = call double @llvm.fmuladd.f64(double %74, double %76, double %83)
  %85 = load i32, ptr %9, align 4, !tbaa !11
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %85)
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = fdiv double %84, %87
  %89 = load i32, ptr %11, align 4, !tbaa !11
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %89)
  store double %88, ptr %90, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #6
  call void @_ZN6R3LineC1ERK7R3PointRK8R3Vectori(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 0)
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN6R3LineaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %91, ptr noundef nonnull align 8 dereferenceable(48) %13)
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %93

93:                                               ; preds = %50, %28
  store i32 2, ptr %4, align 4
  br label %94

94:                                               ; preds = %93, %27, %26
  %95 = load i32, ptr %4, align 4
  ret i32 %95
}

declare noundef i32 @_Z10R3ParallelRK7R3PlaneS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare void @_ZN8R3Vector5CrossERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #4 align 2

declare void @_ZN6R3LineC1ERK7R3PointRK8R3Vectori(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #1

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

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

%class.R3Vector = type { [3 x double] }
%class.R3Point = type { [3 x double] }
%class.R3Line = type { %class.R3Point, %class.R3Vector }

@RN_EPSILON = external local_unnamed_addr global double, align 8
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1

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

declare void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3Plane6NormalEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z9RNIsEqualddd(double noundef, double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11RNIsNotZerodd(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 6) i32 @_Z12R3IntersectsRK7R3PlaneS1_P6R3Line(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) local_unnamed_addr #5 {
  %4 = alloca %class.R3Vector, align 8
  %5 = alloca %class.R3Point, align 8
  %6 = alloca %class.R3Line, align 8
  %7 = tail call noundef i32 @_Z10R3ParallelRK7R3PlaneS1_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %13, label %8

8:                                                ; preds = %3
  %9 = tail call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %10 = tail call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %11 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %12 = tail call noundef i32 @_Z9RNIsEqualddd(double noundef %9, double noundef %10, double noundef %11)
  %.not31 = icmp eq i32 %12, 0
  %. = select i1 %.not31, i32 0, i32 5
  br label %52

13:                                               ; preds = %3
  %.not29 = icmp eq ptr %2, null
  br i1 %.not29, label %52, label %14

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3Plane6NormalEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3Plane6NormalEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @_ZN8R3Vector5CrossERKS_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %16)
  %17 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %18 = add nsw i32 %17, 1
  %19 = srem i32 %18, 3
  %20 = add nsw i32 %17, 2
  %21 = srem i32 %20, 3
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %17)
  %23 = load double, ptr %22, align 8, !tbaa !5
  %24 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %25 = call noundef i32 @_Z11RNIsNotZerodd(double noundef %23, double noundef %24)
  %.not30 = icmp eq i32 %25, 0
  br i1 %.not30, label %26, label %27

26:                                               ; preds = %14
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.11, i32 noundef 1763, ptr noundef nonnull @.str.5)
  br label %27

27:                                               ; preds = %26, %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %17)
  store double 0.000000e+00, ptr %28, align 8, !tbaa !5
  %29 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %21)
  %30 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %31 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %21)
  %32 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %33 = fneg double %31
  %34 = fmul double %32, %33
  %35 = call double @llvm.fmuladd.f64(double %29, double %30, double %34)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %17)
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = fdiv double %35, %37
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %19)
  store double %38, ptr %39, align 8, !tbaa !5
  %40 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %19)
  %41 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %42 = call noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %19)
  %43 = call noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %44 = fneg double %42
  %45 = fmul double %43, %44
  %46 = call double @llvm.fmuladd.f64(double %40, double %41, double %45)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %17)
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = fdiv double %46, %48
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %21)
  store double %49, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  call void @_ZN6R3LineC1ERK7R3PointRK8R3Vectori(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN6R3LineaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %6)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %52

52:                                               ; preds = %13, %27, %8
  %.0 = phi i32 [ %., %8 ], [ 2, %27 ], [ 2, %13 ]
  ret i32 %.0
}

declare noundef i32 @_Z10R3ParallelRK7R3PlaneS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Plane1DEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare void @_ZN8R3Vector5CrossERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PlaneixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #4 align 2

declare void @_ZN6R3LineC1ERK7R3PointRK8R3Vectori(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #1

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

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


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