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

; 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.R3Plane = type { %class.R3Vector, double }
%class.R3Point = type { [3 x double] }

@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
@RN_INFINITY = external global double, align 8
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 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

declare noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

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

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

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

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

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

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

declare noundef double @_Z16R3SignedDistanceRK7R3PlaneRK7R3Point(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

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

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

declare void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmldRK8R3Vector(ptr dead_on_unwind noalias writable sret(%class.R3Vector) align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8R3Circle6NormalEv(ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

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

declare void @_ZdvRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12R3IntersectsRK5R3RayRK10R3CylinderP7R3PointP8R3VectorPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #6 {
  %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 double, align 8
  %13 = alloca double, align 8
  %14 = alloca %class.R3Vector, align 8
  %15 = alloca %class.R3Vector, align 8
  %16 = alloca %class.R3Vector, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca %class.R3Vector, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca %class.R3Vector, align 8
  %24 = alloca double, align 8
  %25 = alloca %class.R3Vector, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca %class.R3Plane, align 8
  %34 = alloca %class.R3Point, align 8
  %35 = alloca %class.R3Plane, align 8
  %36 = alloca %class.R3Point, align 8
  %37 = alloca %class.R3Plane, align 8
  %38 = alloca %class.R3Plane, align 8
  %39 = alloca %class.R3Point, align 8
  %40 = alloca %class.R3Point, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %class.R3Point, align 8
  %43 = alloca %class.R3Vector, align 8
  %44 = alloca %class.R3Vector, align 8
  %45 = alloca %class.R3Vector, align 8
  %46 = alloca %class.R3Vector, align 8
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %47)
  call void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %48)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %49)
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span6VectorEv(ptr noundef nonnull align 8 dereferenceable(80) %50)
  call void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %51)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %52 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  store double %52, ptr %17, align 8, !tbaa !9
  %53 = load double, ptr %17, align 8, !tbaa !9
  %54 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %55 = call noundef i32 @_Z8RNIsZerodd(double noundef %53, double noundef %54)
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %77

57:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %58)
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %60)
  %62 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6R3Span4LineEv(ptr noundef nonnull align 8 dereferenceable(80) %61)
  %63 = call noundef double @_Z10R3DistanceRK7R3PointRK6R3Line(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(48) %62)
  store double %63, ptr %18, align 8, !tbaa !9
  %64 = load double, ptr %18, align 8, !tbaa !9
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %65)
  %67 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %68 = call noundef i32 @_Z15RNIsLessOrEqualddd(double noundef %64, double noundef %66, double noundef %67)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %57
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  %71 = load double, ptr @RN_INFINITY, align 8, !tbaa !9
  store double %71, ptr %13, align 8, !tbaa !9
  br label %73

72:                                               ; preds = %57
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %74

73:                                               ; preds = %70
  store i32 0, ptr %19, align 4
  br label %74

74:                                               ; preds = %73, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %75 = load i32, ptr %19, align 4
  switch i32 %75, label %432 [
    i32 0, label %76
  ]

76:                                               ; preds = %74
  br label %167

77:                                               ; preds = %5
  %78 = load double, ptr %17, align 8, !tbaa !9
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %16, double noundef %78)
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %80)
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %82)
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span5StartEv(ptr noundef nonnull align 8 dereferenceable(80) %83)
  call void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 8 dereferenceable(24) %84)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %85 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %16)
  store double %85, ptr %21, align 8, !tbaa !9
  %86 = load double, ptr %21, align 8, !tbaa !9
  %87 = fcmp olt double %86, 0.000000e+00
  br i1 %87, label %88, label %91

88:                                               ; preds = %77
  %89 = load double, ptr %21, align 8, !tbaa !9
  %90 = fneg double %89
  store double %90, ptr %21, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %88, %77
  %92 = load double, ptr %21, align 8, !tbaa !9
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %93)
  %95 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %96 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %92, double noundef %94, double noundef %95)
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %91
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %164

99:                                               ; preds = %91
  %100 = load double, ptr %17, align 8, !tbaa !9
  %101 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %102 = call noundef i32 @_Z11RNIsNotZerodd(double noundef %100, double noundef %101)
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %99
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.7, i32 noundef 1193, ptr noundef @.str.5)
  br label %105

105:                                              ; preds = %104, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %106 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %16)
  %107 = load double, ptr %17, align 8, !tbaa !9
  %108 = fneg double %107
  %109 = fdiv double %106, %108
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  store double %109, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @_ZN8R3Vector9NormalizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %110)
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %112)
  %114 = load double, ptr %21, align 8, !tbaa !9
  %115 = load double, ptr %21, align 8, !tbaa !9
  %116 = fmul double %114, %115
  %117 = fneg double %116
  %118 = call double @llvm.fmuladd.f64(double %111, double %113, double %117)
  store double %118, ptr %26, align 8, !tbaa !9
  %119 = load double, ptr %26, align 8, !tbaa !9
  %120 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %121 = call noundef i32 @_Z12RNIsPositivedd(double noundef %119, double noundef %120)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %141

123:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %124 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %25)
  store double %124, ptr %27, align 8, !tbaa !9
  %125 = load double, ptr %27, align 8, !tbaa !9
  %126 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %127 = call noundef i32 @_Z11RNIsNotZerodd(double noundef %125, double noundef %126)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %130, label %129

129:                                              ; preds = %123
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.8, i32 noundef 1204, ptr noundef @.str.5)
  br label %130

130:                                              ; preds = %129, %123
  %131 = load double, ptr %26, align 8, !tbaa !9
  %132 = call double @sqrt(double noundef %131) #7
  %133 = load double, ptr %27, align 8, !tbaa !9
  %134 = fdiv double %132, %133
  store double %134, ptr %24, align 8, !tbaa !9
  %135 = load double, ptr %24, align 8, !tbaa !9
  %136 = fcmp olt double %135, 0.000000e+00
  br i1 %136, label %137, label %140

137:                                              ; preds = %130
  %138 = load double, ptr %24, align 8, !tbaa !9
  %139 = fneg double %138
  store double %139, ptr %24, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %137, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %142

141:                                              ; preds = %105
  store double 0.000000e+00, ptr %24, align 8, !tbaa !9
  br label %142

142:                                              ; preds = %141, %140
  %143 = load double, ptr %22, align 8, !tbaa !9
  %144 = load double, ptr %24, align 8, !tbaa !9
  %145 = fadd double %143, %144
  store double %145, ptr %13, align 8, !tbaa !9
  %146 = load double, ptr %13, align 8, !tbaa !9
  %147 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %148 = call noundef i32 @_Z12RNIsNegativedd(double noundef %146, double noundef %147)
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %151

150:                                              ; preds = %142
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %160

151:                                              ; preds = %142
  %152 = load double, ptr %22, align 8, !tbaa !9
  %153 = load double, ptr %24, align 8, !tbaa !9
  %154 = fsub double %152, %153
  store double %154, ptr %12, align 8, !tbaa !9
  %155 = load double, ptr %12, align 8, !tbaa !9
  %156 = fcmp olt double %155, 0.000000e+00
  br i1 %156, label %157, label %158

157:                                              ; preds = %151
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %157, %151
  br label %159

159:                                              ; preds = %158
  store i32 0, ptr %19, align 4
  br label %160

160:                                              ; preds = %159, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %161 = load i32, ptr %19, align 4
  switch i32 %161, label %164 [
    i32 0, label %162
  ]

162:                                              ; preds = %160
  br label %163

163:                                              ; preds = %162
  store i32 0, ptr %19, align 4
  br label %164

164:                                              ; preds = %163, %160, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  %165 = load i32, ptr %19, align 4
  switch i32 %165, label %432 [
    i32 0, label %166
  ]

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %168)
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %170)
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span6VectorEv(ptr noundef nonnull align 8 dereferenceable(80) %171)
  %173 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 8 dereferenceable(24) %172)
  store double %173, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %174)
  %176 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %175)
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %177)
  %179 = call noundef double @_Z16R3SignedDistanceRK7R3PlaneRK7R3Point(ptr noundef nonnull align 8 dereferenceable(32) %176, ptr noundef nonnull align 8 dereferenceable(24) %178)
  store double %179, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %180)
  %182 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %181)
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %183)
  %185 = call noundef double @_Z16R3SignedDistanceRK7R3PlaneRK7R3Point(ptr noundef nonnull align 8 dereferenceable(32) %182, ptr noundef nonnull align 8 dereferenceable(24) %184)
  store double %185, ptr %32, align 8, !tbaa !9
  %186 = load double, ptr %31, align 8, !tbaa !9
  %187 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %188 = call noundef i32 @_Z12RNIsPositivedd(double noundef %186, double noundef %187)
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %265

190:                                              ; preds = %167
  %191 = load double, ptr %30, align 8, !tbaa !9
  %192 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %193 = call noundef i32 @_Z18RNIsPositiveOrZerodd(double noundef %191, double noundef %192)
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %196

195:                                              ; preds = %190
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

196:                                              ; preds = %190
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %198)
  %200 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %199)
  %201 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %197, ptr noundef nonnull align 8 dereferenceable(32) %200, ptr noundef null, ptr noundef %28)
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %210

203:                                              ; preds = %196
  %204 = load double, ptr %28, align 8, !tbaa !9
  %205 = load double, ptr %13, align 8, !tbaa !9
  %206 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %207 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %204, double noundef %205, double noundef %206)
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %210

209:                                              ; preds = %203
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

210:                                              ; preds = %203, %196
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #7
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %212)
  %214 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %213)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind writable sret(%class.R3Plane) align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %214)
  %215 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %211, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef null, ptr noundef %29)
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %223

217:                                              ; preds = %210
  %218 = load double, ptr %29, align 8, !tbaa !9
  %219 = load double, ptr %12, align 8, !tbaa !9
  %220 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %221 = call noundef i32 @_Z8RNIsLessddd(double noundef %218, double noundef %219, double noundef %220)
  %222 = icmp ne i32 %221, 0
  br label %223

223:                                              ; preds = %217, %210
  %224 = phi i1 [ false, %210 ], [ %222, %217 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #7
  br i1 %224, label %225, label %226

225:                                              ; preds = %223
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

226:                                              ; preds = %223
  %227 = load double, ptr %28, align 8, !tbaa !9
  %228 = load double, ptr %12, align 8, !tbaa !9
  %229 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %230 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %227, double noundef %228, double noundef %229)
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %260

232:                                              ; preds = %226
  %233 = load double, ptr %28, align 8, !tbaa !9
  %234 = fcmp oge double %233, 0.000000e+00
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.9, i32 noundef 1254, ptr noundef @.str.5)
  br label %236

236:                                              ; preds = %235, %232
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %242

239:                                              ; preds = %236
  %240 = load double, ptr %28, align 8, !tbaa !9
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  store double %240, ptr %241, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %239, %236
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %250

245:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  %247 = load double, ptr %28, align 8, !tbaa !9
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %34, ptr noundef nonnull align 8 dereferenceable(48) %246, double noundef %247)
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %248, ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  br label %250

250:                                              ; preds = %245, %242
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = icmp ne ptr %251, null
  br i1 %252, label %253, label %259

253:                                              ; preds = %250
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %254)
  %256 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8R3Circle6NormalEv(ptr noundef nonnull align 8 dereferenceable(72) %255)
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %257, ptr noundef nonnull align 8 dereferenceable(24) %256)
  br label %259

259:                                              ; preds = %253, %250
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

260:                                              ; preds = %226
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263
  br label %390

265:                                              ; preds = %167
  %266 = load double, ptr %32, align 8, !tbaa !9
  %267 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %268 = call noundef i32 @_Z12RNIsPositivedd(double noundef %266, double noundef %267)
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %345

270:                                              ; preds = %265
  %271 = load double, ptr %30, align 8, !tbaa !9
  %272 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %273 = call noundef i32 @_Z18RNIsNegativeOrZerodd(double noundef %271, double noundef %272)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %276

275:                                              ; preds = %270
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

276:                                              ; preds = %270
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %278)
  %280 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %279)
  %281 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %277, ptr noundef nonnull align 8 dereferenceable(32) %280, ptr noundef null, ptr noundef %28)
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %290

283:                                              ; preds = %276
  %284 = load double, ptr %28, align 8, !tbaa !9
  %285 = load double, ptr %13, align 8, !tbaa !9
  %286 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %287 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %284, double noundef %285, double noundef %286)
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %289, label %290

289:                                              ; preds = %283
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

290:                                              ; preds = %283, %276
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #7
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %292)
  %294 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %293)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind writable sret(%class.R3Plane) align 8 %35, ptr noundef nonnull align 8 dereferenceable(32) %294)
  %295 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %291, ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef null, ptr noundef %29)
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %303

297:                                              ; preds = %290
  %298 = load double, ptr %29, align 8, !tbaa !9
  %299 = load double, ptr %12, align 8, !tbaa !9
  %300 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %301 = call noundef i32 @_Z8RNIsLessddd(double noundef %298, double noundef %299, double noundef %300)
  %302 = icmp ne i32 %301, 0
  br label %303

303:                                              ; preds = %297, %290
  %304 = phi i1 [ false, %290 ], [ %302, %297 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #7
  br i1 %304, label %305, label %306

305:                                              ; preds = %303
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

306:                                              ; preds = %303
  %307 = load double, ptr %28, align 8, !tbaa !9
  %308 = load double, ptr %12, align 8, !tbaa !9
  %309 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %310 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %307, double noundef %308, double noundef %309)
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %340

312:                                              ; preds = %306
  %313 = load double, ptr %28, align 8, !tbaa !9
  %314 = fcmp oge double %313, 0.000000e+00
  br i1 %314, label %316, label %315

315:                                              ; preds = %312
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.9, i32 noundef 1285, ptr noundef @.str.5)
  br label %316

316:                                              ; preds = %315, %312
  %317 = load ptr, ptr %11, align 8, !tbaa !5
  %318 = icmp ne ptr %317, null
  br i1 %318, label %319, label %322

319:                                              ; preds = %316
  %320 = load double, ptr %28, align 8, !tbaa !9
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  store double %320, ptr %321, align 8, !tbaa !9
  br label %322

322:                                              ; preds = %319, %316
  %323 = load ptr, ptr %9, align 8, !tbaa !5
  %324 = icmp ne ptr %323, null
  br i1 %324, label %325, label %330

325:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #7
  %326 = load ptr, ptr %7, align 8, !tbaa !5
  %327 = load double, ptr %28, align 8, !tbaa !9
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %36, ptr noundef nonnull align 8 dereferenceable(48) %326, double noundef %327)
  %328 = load ptr, ptr %9, align 8, !tbaa !5
  %329 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %328, ptr noundef nonnull align 8 dereferenceable(24) %36)
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #7
  br label %330

330:                                              ; preds = %325, %322
  %331 = load ptr, ptr %10, align 8, !tbaa !5
  %332 = icmp ne ptr %331, null
  br i1 %332, label %333, label %339

333:                                              ; preds = %330
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %334)
  %336 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8R3Circle6NormalEv(ptr noundef nonnull align 8 dereferenceable(72) %335)
  %337 = load ptr, ptr %10, align 8, !tbaa !5
  %338 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %337, ptr noundef nonnull align 8 dereferenceable(24) %336)
  br label %339

339:                                              ; preds = %333, %330
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

340:                                              ; preds = %306
  br label %341

341:                                              ; preds = %340
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343
  br label %389

345:                                              ; preds = %265
  %346 = load double, ptr %30, align 8, !tbaa !9
  %347 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %348 = call noundef i32 @_Z12RNIsPositivedd(double noundef %346, double noundef %347)
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %366

350:                                              ; preds = %345
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  %352 = load ptr, ptr %8, align 8, !tbaa !5
  %353 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %352)
  %354 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %353)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind writable sret(%class.R3Plane) align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %354)
  %355 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %351, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef null, ptr noundef %28)
  %356 = icmp ne i32 %355, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br i1 %356, label %357, label %365

357:                                              ; preds = %350
  %358 = load double, ptr %28, align 8, !tbaa !9
  %359 = load double, ptr %12, align 8, !tbaa !9
  %360 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %361 = call noundef i32 @_Z8RNIsLessddd(double noundef %358, double noundef %359, double noundef %360)
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %364

363:                                              ; preds = %357
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

364:                                              ; preds = %357
  br label %365

365:                                              ; preds = %364, %350
  br label %388

366:                                              ; preds = %345
  %367 = load double, ptr %30, align 8, !tbaa !9
  %368 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %369 = call noundef i32 @_Z12RNIsNegativedd(double noundef %367, double noundef %368)
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %387

371:                                              ; preds = %366
  %372 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #7
  %373 = load ptr, ptr %8, align 8, !tbaa !5
  %374 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %373)
  %375 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %374)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind writable sret(%class.R3Plane) align 8 %38, ptr noundef nonnull align 8 dereferenceable(32) %375)
  %376 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %372, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef null, ptr noundef %28)
  %377 = icmp ne i32 %376, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  br i1 %377, label %378, label %386

378:                                              ; preds = %371
  %379 = load double, ptr %28, align 8, !tbaa !9
  %380 = load double, ptr %12, align 8, !tbaa !9
  %381 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %382 = call noundef i32 @_Z8RNIsLessddd(double noundef %379, double noundef %380, double noundef %381)
  %383 = icmp ne i32 %382, 0
  br i1 %383, label %384, label %385

384:                                              ; preds = %378
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

385:                                              ; preds = %378
  br label %386

386:                                              ; preds = %385, %371
  br label %387

387:                                              ; preds = %386, %366
  br label %388

388:                                              ; preds = %387, %365
  br label %389

389:                                              ; preds = %388, %344
  br label %390

390:                                              ; preds = %389, %264
  %391 = load double, ptr %12, align 8, !tbaa !9
  %392 = fcmp oge double %391, 0.000000e+00
  br i1 %392, label %394, label %393

393:                                              ; preds = %390
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.10, i32 noundef 1317, ptr noundef @.str.5)
  br label %394

394:                                              ; preds = %393, %390
  %395 = load ptr, ptr %11, align 8, !tbaa !5
  %396 = icmp ne ptr %395, null
  br i1 %396, label %397, label %400

397:                                              ; preds = %394
  %398 = load double, ptr %12, align 8, !tbaa !9
  %399 = load ptr, ptr %11, align 8, !tbaa !5
  store double %398, ptr %399, align 8, !tbaa !9
  br label %400

400:                                              ; preds = %397, %394
  %401 = load ptr, ptr %9, align 8, !tbaa !5
  %402 = icmp ne ptr %401, null
  br i1 %402, label %403, label %408

403:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #7
  %404 = load ptr, ptr %7, align 8, !tbaa !5
  %405 = load double, ptr %12, align 8, !tbaa !9
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %39, ptr noundef nonnull align 8 dereferenceable(48) %404, double noundef %405)
  %406 = load ptr, ptr %9, align 8, !tbaa !5
  %407 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %406, ptr noundef nonnull align 8 dereferenceable(24) %39)
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  br label %408

408:                                              ; preds = %403, %400
  %409 = load ptr, ptr %10, align 8, !tbaa !5
  %410 = icmp ne ptr %409, null
  br i1 %410, label %411, label %430

411:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #7
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %412 = load ptr, ptr %9, align 8, !tbaa !5
  %413 = icmp ne ptr %412, null
  br i1 %413, label %414, label %416

414:                                              ; preds = %411
  %415 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %415, ptr %41, align 8, !tbaa !5
  br label %420

416:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #7
  %417 = load ptr, ptr %7, align 8, !tbaa !5
  %418 = load double, ptr %12, align 8, !tbaa !9
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %42, ptr noundef nonnull align 8 dereferenceable(48) %417, double noundef %418)
  %419 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %42)
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #7
  store ptr %40, ptr %41, align 8, !tbaa !5
  br label %420

420:                                              ; preds = %416, %414
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #7
  %421 = load ptr, ptr %41, align 8, !tbaa !5
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  %423 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %422)
  %424 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span5StartEv(ptr noundef nonnull align 8 dereferenceable(80) %423)
  call void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %43, ptr noundef nonnull align 8 dereferenceable(24) %421, ptr noundef nonnull align 8 dereferenceable(24) %424)
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #7
  %425 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @_ZmldRK8R3Vector(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %46, double noundef %425, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @_ZmiRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %45, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %46)
  %426 = load ptr, ptr %8, align 8, !tbaa !5
  %427 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %426)
  call void @_ZdvRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %44, ptr noundef nonnull align 8 dereferenceable(24) %45, double noundef %427)
  %428 = load ptr, ptr %10, align 8, !tbaa !5
  %429 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %428, ptr noundef nonnull align 8 dereferenceable(24) %44)
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #7
  br label %430

430:                                              ; preds = %420, %408
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %431

431:                                              ; preds = %430, %384, %363, %339, %305, %289, %275, %259, %225, %209, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %432

432:                                              ; preds = %431, %164, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %433 = load i32, ptr %6, align 4
  ret i32 %433
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span6VectorEv(ptr noundef nonnull align 8 dereferenceable(80)) #4 align 2

declare void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef double @_Z10R3DistanceRK7R3PointRK6R3Line(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232)) #4 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span5StartEv(ptr noundef nonnull align 8 dereferenceable(80)) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7R3PlanengEv(ptr dead_on_unwind noalias writable sret(%class.R3Plane) align 8, ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

declare void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef) #1

declare void @_ZmiRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

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 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 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 "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 = { 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 #7 = { 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}


; 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.R3Plane = type { %class.R3Vector, double }
%class.R3Point = type { [3 x double] }

@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
@RN_INFINITY = external local_unnamed_addr global double, align 8
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 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

declare noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8RNIsZerodd(double noundef, double noundef) local_unnamed_addr #3

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

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

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

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

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

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

declare noundef double @_Z16R3SignedDistanceRK7R3PlaneRK7R3Point(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

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

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

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

declare void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmldRK8R3Vector(ptr dead_on_unwind noalias writable sret(%class.R3Vector) align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8R3Circle6NormalEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4 align 2

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

declare void @_ZdvRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z12R3IntersectsRK5R3RayRK10R3CylinderP7R3PointP8R3VectorPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, ptr noundef %3, ptr noundef writeonly %4) local_unnamed_addr #6 {
  %6 = alloca %class.R3Vector, align 8
  %7 = alloca %class.R3Vector, align 8
  %8 = alloca %class.R3Vector, align 8
  %9 = alloca %class.R3Vector, align 8
  %10 = alloca %class.R3Vector, align 8
  %11 = alloca %class.R3Vector, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca %class.R3Plane, align 8
  %15 = alloca %class.R3Point, align 8
  %16 = alloca %class.R3Plane, align 8
  %17 = alloca %class.R3Point, align 8
  %18 = alloca %class.R3Plane, align 8
  %19 = alloca %class.R3Plane, align 8
  %20 = alloca %class.R3Point, align 8
  %21 = alloca %class.R3Point, align 8
  %22 = alloca %class.R3Point, align 8
  %23 = alloca %class.R3Vector, align 8
  %24 = alloca %class.R3Vector, align 8
  %25 = alloca %class.R3Vector, align 8
  %26 = alloca %class.R3Vector, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  %27 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %27)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %28 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span6VectorEv(ptr noundef nonnull align 8 dereferenceable(80) %28)
  call void @_ZN8R3VectorC1ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %29)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %30 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %31 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %32 = call noundef i32 @_Z8RNIsZerodd(double noundef %30, double noundef %31)
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %42, label %33

33:                                               ; preds = %5
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %35 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %36 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6R3Span4LineEv(ptr noundef nonnull align 8 dereferenceable(80) %35)
  %37 = call noundef double @_Z10R3DistanceRK7R3PointRK6R3Line(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(48) %36)
  %38 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %39 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %40 = call noundef i32 @_Z15RNIsLessOrEqualddd(double noundef %37, double noundef %38, double noundef %39)
  %.not137.not = icmp eq i32 %40, 0
  %41 = load double, ptr @RN_INFINITY, align 8
  br i1 %.not137.not, label %218, label %85

42:                                               ; preds = %5
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef %30)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %45 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span5StartEv(ptr noundef nonnull align 8 dereferenceable(80) %45)
  call void @_ZmiRK7R3PointS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %46)
  %47 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %8)
  %48 = fcmp olt double %47, 0.000000e+00
  %49 = fneg double %47
  %.0116 = select i1 %48, double %49, double %47
  %50 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %51 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %52 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %.0116, double noundef %50, double noundef %51)
  %.not132 = icmp eq i32 %52, 0
  br i1 %.not132, label %53, label %.thread

.thread:                                          ; preds = %42
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %218

53:                                               ; preds = %42
  %54 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %55 = call noundef i32 @_Z11RNIsNotZerodd(double noundef %30, double noundef %54)
  %.not133 = icmp eq i32 %55, 0
  br i1 %.not133, label %56, label %57

56:                                               ; preds = %53
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.7, i32 noundef 1193, ptr noundef nonnull @.str.5)
  br label %57

57:                                               ; preds = %56, %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %58 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %8)
  %59 = fneg double %30
  %60 = fdiv double %58, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZN8R3Vector9NormalizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %61 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %62 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %63 = fneg double %.0116
  %64 = fmul double %.0116, %63
  %65 = call double @llvm.fmuladd.f64(double %61, double %62, double %64)
  %66 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %67 = call noundef i32 @_Z12RNIsPositivedd(double noundef %65, double noundef %66)
  %.not134 = icmp eq i32 %67, 0
  br i1 %.not134, label %78, label %68

68:                                               ; preds = %57
  %69 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %70 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %71 = call noundef i32 @_Z11RNIsNotZerodd(double noundef %69, double noundef %70)
  %.not135 = icmp eq i32 %71, 0
  br i1 %.not135, label %72, label %73

72:                                               ; preds = %68
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.8, i32 noundef 1204, ptr noundef nonnull @.str.5)
  br label %73

73:                                               ; preds = %72, %68
  %74 = call double @sqrt(double noundef %65) #7
  %75 = fdiv double %74, %69
  %76 = fcmp olt double %75, 0.000000e+00
  %77 = fneg double %75
  %.0117 = select i1 %76, double %77, double %75
  br label %78

78:                                               ; preds = %57, %73
  %.1118 = phi double [ %.0117, %73 ], [ 0.000000e+00, %57 ]
  %79 = fadd double %60, %.1118
  %80 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %81 = call noundef i32 @_Z12RNIsNegativedd(double noundef %79, double noundef %80)
  %.not136 = icmp eq i32 %81, 0
  br i1 %.not136, label %.thread171, label %84

.thread171:                                       ; preds = %78
  %82 = fsub double %60, %.1118
  %83 = fcmp olt double %82, 0.000000e+00
  %.1106 = select i1 %83, double 0.000000e+00, double %82
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %85

84:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %218

85:                                               ; preds = %.thread171, %33
  %.2112 = phi double [ %41, %33 ], [ %79, %.thread171 ]
  %.4109 = phi double [ 0.000000e+00, %33 ], [ %.1106, %.thread171 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %87 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span6VectorEv(ptr noundef nonnull align 8 dereferenceable(80) %87)
  %89 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %88)
  %90 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %90)
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %93 = call noundef double @_Z16R3SignedDistanceRK7R3PlaneRK7R3Point(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull align 8 dereferenceable(24) %92)
  %94 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %95 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %94)
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %97 = call noundef double @_Z16R3SignedDistanceRK7R3PlaneRK7R3Point(ptr noundef nonnull align 8 dereferenceable(32) %95, ptr noundef nonnull align 8 dereferenceable(24) %96)
  %98 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %99 = call noundef i32 @_Z12RNIsPositivedd(double noundef %93, double noundef %98)
  %.not138 = icmp eq i32 %99, 0
  %100 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  br i1 %.not138, label %139, label %101

101:                                              ; preds = %85
  %102 = call noundef i32 @_Z18RNIsPositiveOrZerodd(double noundef %89, double noundef %100)
  %.not155 = icmp eq i32 %102, 0
  br i1 %.not155, label %103, label %217

103:                                              ; preds = %101
  %104 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %105 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %104)
  %106 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %105, ptr noundef null, ptr noundef nonnull %12)
  %.not156 = icmp eq i32 %106, 0
  br i1 %.not156, label %111, label %107

107:                                              ; preds = %103
  %108 = load double, ptr %12, align 8, !tbaa !5
  %109 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %110 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %108, double noundef %.2112, double noundef %109)
  %.not157 = icmp eq i32 %110, 0
  br i1 %.not157, label %111, label %217

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  %112 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %113 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %112)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind nonnull writable sret(%class.R3Plane) align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %113)
  %114 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef null, ptr noundef nonnull %13)
  %.not158 = icmp eq i32 %114, 0
  br i1 %.not158, label %.critedge, label %115

115:                                              ; preds = %111
  %116 = load double, ptr %13, align 8, !tbaa !5
  %117 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %118 = call noundef i32 @_Z8RNIsLessddd(double noundef %116, double noundef %.4109, double noundef %117)
  %.not159 = icmp eq i32 %118, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br i1 %.not159, label %119, label %217

.critedge:                                        ; preds = %111
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %119

119:                                              ; preds = %.critedge, %115
  %120 = load double, ptr %12, align 8, !tbaa !5
  %121 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %122 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %120, double noundef %.4109, double noundef %121)
  %.not160 = icmp eq i32 %122, 0
  br i1 %.not160, label %201, label %123

123:                                              ; preds = %119
  %124 = load double, ptr %12, align 8, !tbaa !5
  %125 = fcmp ult double %124, 0.000000e+00
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.9, i32 noundef 1254, ptr noundef nonnull @.str.5)
  br label %127

127:                                              ; preds = %126, %123
  %.not164 = icmp eq ptr %4, null
  br i1 %.not164, label %130, label %128

128:                                              ; preds = %127
  %129 = load double, ptr %12, align 8, !tbaa !5
  store double %129, ptr %4, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %128, %127
  %.not165 = icmp eq ptr %2, null
  br i1 %.not165, label %134, label %131

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  %132 = load double, ptr %12, align 8, !tbaa !5
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %15, ptr noundef nonnull align 8 dereferenceable(48) %0, double noundef %132)
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  br label %134

134:                                              ; preds = %131, %130
  %.not166 = icmp eq ptr %3, null
  br i1 %.not166, label %217, label %135

135:                                              ; preds = %134
  %136 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8R3Circle6NormalEv(ptr noundef nonnull align 8 dereferenceable(72) %136)
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %137)
  br label %217

139:                                              ; preds = %85
  %140 = call noundef i32 @_Z12RNIsPositivedd(double noundef %97, double noundef %100)
  %.not139 = icmp eq i32 %140, 0
  %141 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  br i1 %.not139, label %180, label %142

142:                                              ; preds = %139
  %143 = call noundef i32 @_Z18RNIsNegativeOrZerodd(double noundef %89, double noundef %141)
  %.not146 = icmp eq i32 %143, 0
  br i1 %.not146, label %144, label %217

144:                                              ; preds = %142
  %145 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %146 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %145)
  %147 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %146, ptr noundef null, ptr noundef nonnull %12)
  %.not147 = icmp eq i32 %147, 0
  br i1 %.not147, label %152, label %148

148:                                              ; preds = %144
  %149 = load double, ptr %12, align 8, !tbaa !5
  %150 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %151 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %149, double noundef %.2112, double noundef %150)
  %.not148 = icmp eq i32 %151, 0
  br i1 %.not148, label %152, label %217

152:                                              ; preds = %148, %144
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  %153 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %153)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind nonnull writable sret(%class.R3Plane) align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %154)
  %155 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef null, ptr noundef nonnull %13)
  %.not149 = icmp eq i32 %155, 0
  br i1 %.not149, label %.critedge4, label %156

156:                                              ; preds = %152
  %157 = load double, ptr %13, align 8, !tbaa !5
  %158 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %159 = call noundef i32 @_Z8RNIsLessddd(double noundef %157, double noundef %.4109, double noundef %158)
  %.not150 = icmp eq i32 %159, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br i1 %.not150, label %160, label %217

.critedge4:                                       ; preds = %152
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %160

160:                                              ; preds = %.critedge4, %156
  %161 = load double, ptr %12, align 8, !tbaa !5
  %162 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %163 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %161, double noundef %.4109, double noundef %162)
  %.not151 = icmp eq i32 %163, 0
  br i1 %.not151, label %201, label %164

164:                                              ; preds = %160
  %165 = load double, ptr %12, align 8, !tbaa !5
  %166 = fcmp ult double %165, 0.000000e+00
  br i1 %166, label %167, label %168

167:                                              ; preds = %164
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.9, i32 noundef 1285, ptr noundef nonnull @.str.5)
  br label %168

168:                                              ; preds = %167, %164
  %.not152 = icmp eq ptr %4, null
  br i1 %.not152, label %171, label %169

169:                                              ; preds = %168
  %170 = load double, ptr %12, align 8, !tbaa !5
  store double %170, ptr %4, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %169, %168
  %.not153 = icmp eq ptr %2, null
  br i1 %.not153, label %175, label %172

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #7
  %173 = load double, ptr %12, align 8, !tbaa !5
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %17, ptr noundef nonnull align 8 dereferenceable(48) %0, double noundef %173)
  %174 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  br label %175

175:                                              ; preds = %172, %171
  %.not154 = icmp eq ptr %3, null
  br i1 %.not154, label %217, label %176

176:                                              ; preds = %175
  %177 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %178 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK8R3Circle6NormalEv(ptr noundef nonnull align 8 dereferenceable(72) %177)
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %178)
  br label %217

180:                                              ; preds = %139
  %181 = call noundef i32 @_Z12RNIsPositivedd(double noundef %89, double noundef %141)
  %.not140 = icmp eq i32 %181, 0
  br i1 %.not140, label %190, label %182

182:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #7
  %183 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %184 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %183)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind nonnull writable sret(%class.R3Plane) align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %184)
  %185 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef null, ptr noundef nonnull %12)
  %.not144 = icmp eq i32 %185, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #7
  br i1 %.not144, label %201, label %186

186:                                              ; preds = %182
  %187 = load double, ptr %12, align 8, !tbaa !5
  %188 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %189 = call noundef i32 @_Z8RNIsLessddd(double noundef %187, double noundef %.4109, double noundef %188)
  %.not145 = icmp eq i32 %189, 0
  br i1 %.not145, label %201, label %217

190:                                              ; preds = %180
  %191 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %192 = call noundef i32 @_Z12RNIsNegativedd(double noundef %89, double noundef %191)
  %.not141 = icmp eq i32 %192, 0
  br i1 %.not141, label %201, label %193

193:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  %194 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %195 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8R3Circle5PlaneEv(ptr noundef nonnull align 8 dereferenceable(72) %194)
  call void @_ZNK7R3PlanengEv(ptr dead_on_unwind nonnull writable sret(%class.R3Plane) align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %195)
  %196 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef null, ptr noundef nonnull %12)
  %.not142 = icmp eq i32 %196, 0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br i1 %.not142, label %201, label %197

197:                                              ; preds = %193
  %198 = load double, ptr %12, align 8, !tbaa !5
  %199 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %200 = call noundef i32 @_Z8RNIsLessddd(double noundef %198, double noundef %.4109, double noundef %199)
  %.not143 = icmp eq i32 %200, 0
  br i1 %.not143, label %201, label %217

201:                                              ; preds = %160, %190, %197, %193, %182, %186, %119
  %202 = fcmp ult double %.4109, 0.000000e+00
  br i1 %202, label %203, label %204

203:                                              ; preds = %201
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.10, i32 noundef 1317, ptr noundef nonnull @.str.5)
  br label %204

204:                                              ; preds = %203, %201
  %.not161 = icmp eq ptr %4, null
  br i1 %.not161, label %206, label %205

205:                                              ; preds = %204
  store double %.4109, ptr %4, align 8, !tbaa !5
  br label %206

206:                                              ; preds = %205, %204
  %.not162 = icmp eq ptr %2, null
  br i1 %.not162, label %207, label %.thread175

207:                                              ; preds = %206
  %.not163 = icmp eq ptr %3, null
  br i1 %.not163, label %217, label %209

.thread175:                                       ; preds = %206
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %20, ptr noundef nonnull align 8 dereferenceable(48) %0, double noundef %.4109)
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  %.not163176 = icmp eq ptr %3, null
  br i1 %.not163176, label %217, label %.thread177

.thread177:                                       ; preds = %.thread175
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #7
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21)
  br label %211

209:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #7
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #7
  call void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %0, double noundef %.4109)
  %210 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  br label %211

211:                                              ; preds = %.thread177, %209
  %.0 = phi ptr [ %21, %209 ], [ %2, %.thread177 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #7
  %212 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  %213 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span5StartEv(ptr noundef nonnull align 8 dereferenceable(80) %212)
  call void @_ZmiRK7R3PointS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %.0, ptr noundef nonnull align 8 dereferenceable(24) %213)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #7
  %214 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZmldRK8R3Vector(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %26, double noundef %214, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZmiRK8R3VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %26)
  %215 = call noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232) %1)
  call void @_ZdvRK8R3Vectord(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %25, double noundef %215)
  %216 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %24)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #7
  br label %217

217:                                              ; preds = %.thread175, %207, %211, %197, %186, %175, %176, %156, %148, %142, %134, %135, %115, %107, %101
  %.3 = phi i32 [ 0, %101 ], [ 0, %107 ], [ 0, %115 ], [ 1, %135 ], [ 1, %134 ], [ 0, %142 ], [ 0, %148 ], [ 0, %156 ], [ 1, %176 ], [ 1, %175 ], [ 0, %186 ], [ 0, %197 ], [ 1, %211 ], [ 1, %207 ], [ 1, %.thread175 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %218

218:                                              ; preds = %84, %.thread, %33, %217
  %.4 = phi i32 [ %.3, %217 ], [ 0, %33 ], [ 0, %84 ], [ 0, %.thread ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  ret i32 %.4
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNK10R3Cylinder4AxisEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span6VectorEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

declare void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef double @_Z10R3DistanceRK7R3PointRK6R3Line(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK10R3Cylinder6RadiusEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Span5StartEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder3TopEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK10R3Cylinder4BaseEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7R3PlanengEv(ptr dead_on_unwind noalias writable sret(%class.R3Plane) align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

declare void @_ZNK5R3Ray5PointEd(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef) local_unnamed_addr #1

declare void @_ZmiRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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 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 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #7 = { 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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass