; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (Capsule3)

; 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.Maths::TVector3" = type { float, float, float }
%"class.Riemann::Capsule3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", float, float }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7Riemann8Capsule312SweepCapsuleERKN5Maths8TVector3IfEES5_S5_fPS3_S6_Pf = external hidden unnamed_addr constant [132 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Riemann8Segment325SqrDistancePointToSegmentERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Riemann8Segment327SqrDistanceSegmentToSegmentERKN5Maths8TVector3IfEES5_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7Riemann8Capsule39GetCenterEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann8Capsule312SweepCapsuleERKN5Maths8TVector3IfEES5_S5_fPS3_S6_Pf(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 align 2 {
  %9 = alloca i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca i8, align 1
  %20 = alloca float, align 4
  %21 = alloca %"class.Maths::TVector3", align 4
  %22 = alloca %"class.Maths::TVector3", align 4
  %23 = alloca %"class.Maths::TVector3", align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.Maths::TVector3", align 4
  %26 = alloca %"class.Maths::TVector3", align 4
  %27 = alloca %"class.Maths::TVector3", align 4
  %28 = alloca %"class.Maths::TVector3", align 4
  %29 = alloca %"class.Maths::TVector3", align 4
  %30 = alloca %"class.Maths::TVector3", align 4
  %31 = alloca %"class.Maths::TVector3", align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca i8, align 1
  %35 = alloca %"class.Maths::TVector3", align 4
  %36 = alloca %"class.Maths::TVector3", align 4
  %37 = alloca %"class.Maths::TVector3", align 4
  %38 = alloca %"class.Maths::TVector3", align 4
  %39 = alloca %"class.Maths::TVector3", align 4
  %40 = alloca %"class.Maths::TVector3", align 4
  %41 = alloca %"class.Maths::TVector3", align 4
  %42 = alloca %"class.Maths::TVector3", align 4
  %43 = alloca %"class.Maths::TVector3", align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca %"class.Maths::TVector3", align 4
  %48 = alloca [4 x %"class.Riemann::Capsule3"], align 16
  %49 = alloca %"class.Riemann::Capsule3", align 4
  %50 = alloca %"class.Riemann::Capsule3", align 4
  %51 = alloca %"class.Riemann::Capsule3", align 4
  %52 = alloca %"class.Riemann::Capsule3", align 4
  %53 = alloca i32, align 4
  %54 = alloca float, align 4
  %55 = alloca %"class.Maths::TVector3", align 4
  %56 = alloca %"class.Maths::TVector3", align 4
  %57 = alloca %"class.Maths::TVector3", align 4
  %58 = alloca %"class.Maths::TVector3", align 4
  %59 = alloca %"class.Maths::TVector3", align 4
  %60 = alloca %"class.Maths::TVector3", align 4
  %61 = alloca %"class.Maths::TVector3", align 4
  %62 = alloca %"class.Maths::TVector3", align 4
  %63 = alloca %"class.Maths::TVector3", align 4
  %64 = alloca float, align 4
  %65 = alloca %"class.Maths::TVector3", align 4
  %66 = alloca %"class.Maths::TVector3", align 4
  %67 = alloca %"class.Maths::TVector3", align 4
  %68 = alloca %"class.Maths::TVector3", align 4
  %69 = alloca %"class.Maths::TVector3", align 4
  %70 = alloca %"class.Maths::TVector3", align 4
  %71 = alloca %"class.Maths::TVector3", align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store float %4, ptr %14, align 4, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  %72 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %73 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 2
  %74 = load float, ptr %73, align 4, !tbaa !11
  %75 = load float, ptr %14, align 4, !tbaa !9
  %76 = fadd float %74, %75
  store float %76, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 1, ptr %19, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #6
  %77 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  %78 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %78)
  %79 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #6
  br i1 %79, label %80, label %90

80:                                               ; preds = %8
  %81 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = call noundef float @_ZN7Riemann8Segment325SqrDistancePointToSegmentERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %81, ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %83)
  %85 = load float, ptr %18, align 4, !tbaa !9
  %86 = load float, ptr %18, align 4, !tbaa !9
  %87 = fmul float %85, %86
  %88 = fcmp olt float %84, %87
  %89 = uitofp i1 %88 to float
  store float %89, ptr %20, align 4, !tbaa !9
  br label %116

90:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #6
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %91, ptr noundef nonnull align 4 dereferenceable(12) %92)
  %93 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  br i1 %93, label %94, label %104

94:                                               ; preds = %90
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  %97 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  %98 = call noundef float @_ZN7Riemann8Segment325SqrDistancePointToSegmentERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 4 dereferenceable(12) %96, ptr noundef nonnull align 4 dereferenceable(12) %97)
  %99 = load float, ptr %18, align 4, !tbaa !9
  %100 = load float, ptr %18, align 4, !tbaa !9
  %101 = fmul float %99, %100
  %102 = fcmp olt float %98, %101
  %103 = uitofp i1 %102 to float
  store float %103, ptr %20, align 4, !tbaa !9
  br label %115

104:                                              ; preds = %90
  %105 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  %106 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = call noundef float @_ZN7Riemann8Segment327SqrDistanceSegmentToSegmentERKN5Maths8TVector3IfEES5_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %105, ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %107, ptr noundef nonnull align 4 dereferenceable(12) %108)
  %110 = load float, ptr %18, align 4, !tbaa !9
  %111 = load float, ptr %18, align 4, !tbaa !9
  %112 = fmul float %110, %111
  %113 = fcmp olt float %109, %112
  %114 = uitofp i1 %113 to float
  store float %114, ptr %20, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %104, %94
  br label %116

116:                                              ; preds = %115, %80
  %117 = load float, ptr %20, align 4, !tbaa !9
  %118 = fcmp oge float %117, 0.000000e+00
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  br label %122

120:                                              ; preds = %116
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 413, ptr noundef @__PRETTY_FUNCTION__._ZNK7Riemann8Capsule312SweepCapsuleERKN5Maths8TVector3IfEES5_S5_fPS3_S6_Pf) #7
  unreachable

121:                                              ; No predecessors!
  br label %122

122:                                              ; preds = %121, %119
  %123 = load float, ptr %20, align 4, !tbaa !9
  %124 = fcmp ogt float %123, 0x3EB0C6F7A0000000
  br i1 %124, label %125, label %130

125:                                              ; preds = %122
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  store float 0.000000e+00, ptr %126, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %127)
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %128, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  store i1 true, ptr %9, align 1
  store i32 1, ptr %24, align 4
  br label %131

130:                                              ; preds = %122
  store i32 0, ptr %24, align 4
  br label %131

131:                                              ; preds = %130, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %132 = load i32, ptr %24, align 4
  switch i32 %132, label %260 [
    i32 0, label %133
  ]

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #6
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %134, ptr noundef nonnull align 4 dereferenceable(12) %135)
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %26, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #6
  %136 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %27, ptr noundef nonnull align 4 dereferenceable(12) %136, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #6
  %137 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(12) %137, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #6
  %138 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %29, ptr noundef nonnull align 4 dereferenceable(12) %138, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #6
  %139 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %30, ptr noundef nonnull align 4 dereferenceable(12) %139, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #6
  call void @_ZN7Riemann9Triangle315CalculateNormalERKN5Maths8TVector3IfEES5_S5_b(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %28, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store float 0x47EFFFFFE0000000, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store float 0x47EFFFFFE0000000, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  store i8 0, ptr %34, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %35)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %37)
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %140)
  %142 = fcmp oge float %141, 0.000000e+00
  br i1 %142, label %143, label %148

143:                                              ; preds = %133
  %144 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %31, float noundef %144)
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %145 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %38)
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %39, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %146 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %40, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %147 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %40)
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #6
  br label %153

148:                                              ; preds = %133
  %149 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %31, float noundef %149)
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #6
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %41, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %150 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %41)
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #6
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %42, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %151 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %42)
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %43) #6
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %43, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %152 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %43)
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #6
  br label %153

153:                                              ; preds = %148, %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #6
  call void @_ZNK7Riemann8Capsule39GetCenterEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %47, ptr noundef nonnull align 4 dereferenceable(32) %72)
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = call noundef zeroext i1 @_ZN5Quad316RayIntersectQuadERKN5Maths8TVector3IfEES4_S4_S4_S4_PfS5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %154, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef %44, ptr noundef %45, ptr noundef %46)
  br i1 %155, label %156, label %165

156:                                              ; preds = %153
  %157 = load float, ptr %44, align 4, !tbaa !9
  %158 = fcmp oge float %157, 0.000000e+00
  br i1 %158, label %159, label %165

159:                                              ; preds = %156
  %160 = load float, ptr %44, align 4, !tbaa !9
  %161 = load float, ptr %33, align 4, !tbaa !9
  %162 = fcmp olt float %160, %161
  br i1 %162, label %163, label %165

163:                                              ; preds = %159
  %164 = load float, ptr %44, align 4, !tbaa !9
  store float %164, ptr %33, align 4, !tbaa !9
  store i8 1, ptr %34, align 1, !tbaa !14
  br label %165

165:                                              ; preds = %163, %159, %156, %153
  %166 = load i8, ptr %34, align 1, !tbaa !14, !range !16, !noundef !17
  %167 = trunc i8 %166 to i1
  br i1 %167, label %213, label %168

168:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 128, ptr %48) #6
  %169 = getelementptr inbounds [4 x %"class.Riemann::Capsule3"], ptr %48, i32 0, i32 0
  %170 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %169, i64 4
  br label %171

171:                                              ; preds = %171, %168
  %172 = phi ptr [ %169, %168 ], [ %173, %171 ]
  call void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32) %172)
  %173 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %172, i64 1
  %174 = icmp eq ptr %173, %170
  br i1 %174, label %175, label %171

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #6
  %176 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %49, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %28, float noundef %176)
  %177 = getelementptr inbounds [4 x %"class.Riemann::Capsule3"], ptr %48, i64 0, i64 0
  %178 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %177, ptr noundef nonnull align 4 dereferenceable(32) %49)
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #6
  %179 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %50, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %30, float noundef %179)
  %180 = getelementptr inbounds [4 x %"class.Riemann::Capsule3"], ptr %48, i64 0, i64 1
  %181 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %180, ptr noundef nonnull align 4 dereferenceable(32) %50)
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #6
  %182 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %51, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %29, float noundef %182)
  %183 = getelementptr inbounds [4 x %"class.Riemann::Capsule3"], ptr %48, i64 0, i64 2
  %184 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %183, ptr noundef nonnull align 4 dereferenceable(32) %51)
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %52) #6
  %185 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %52, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %29, float noundef %185)
  %186 = getelementptr inbounds [4 x %"class.Riemann::Capsule3"], ptr %48, i64 0, i64 3
  %187 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %186, ptr noundef nonnull align 4 dereferenceable(32) %52)
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #6
  store i32 0, ptr %53, align 4, !tbaa !18
  br label %188

188:                                              ; preds = %209, %175
  %189 = load i32, ptr %53, align 4, !tbaa !18
  %190 = icmp slt i32 %189, 4
  br i1 %190, label %192, label %191

191:                                              ; preds = %188
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  br label %212

192:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  %193 = load i32, ptr %53, align 4, !tbaa !18
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [4 x %"class.Riemann::Capsule3"], ptr %48, i64 0, i64 %194
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = call noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32) %195, ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %196, ptr noundef %54)
  br i1 %197, label %198, label %208

198:                                              ; preds = %192
  %199 = load float, ptr %54, align 4, !tbaa !9
  %200 = fcmp oge float %199, 0.000000e+00
  br i1 %200, label %201, label %207

201:                                              ; preds = %198
  %202 = load float, ptr %54, align 4, !tbaa !9
  %203 = load float, ptr %33, align 4, !tbaa !9
  %204 = fcmp ole float %202, %203
  br i1 %204, label %205, label %207

205:                                              ; preds = %201
  %206 = load float, ptr %54, align 4, !tbaa !9
  store float %206, ptr %33, align 4, !tbaa !9
  store i8 1, ptr %34, align 1, !tbaa !14
  br label %207

207:                                              ; preds = %205, %201, %198
  br label %208

208:                                              ; preds = %207, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %53, align 4, !tbaa !18
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %53, align 4, !tbaa !18
  br label %188, !llvm.loop !20

212:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 128, ptr %48) #6
  br label %213

213:                                              ; preds = %212, %165
  %214 = load i8, ptr %34, align 1, !tbaa !14, !range !16, !noundef !17
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %256

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 12, ptr %55) #6
  %217 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %56) #6
  %218 = load float, ptr %33, align 4, !tbaa !9
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %56, float noundef %218, ptr noundef nonnull align 4 dereferenceable(12) %219)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %55, ptr noundef nonnull align 4 dereferenceable(12) %217, ptr noundef nonnull align 4 dereferenceable(12) %56)
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #6
  %220 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %58) #6
  %221 = load float, ptr %33, align 4, !tbaa !9
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %58, float noundef %221, ptr noundef nonnull align 4 dereferenceable(12) %222)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %57, ptr noundef nonnull align 4 dereferenceable(12) %220, ptr noundef nonnull align 4 dereferenceable(12) %58)
  call void @llvm.lifetime.end.p0(i64 12, ptr %58) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %59) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %59, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %55)
  call void @llvm.lifetime.start.p0(i64 12, ptr %60) #6
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %60, ptr noundef nonnull align 4 dereferenceable(12) %223, ptr noundef nonnull align 4 dereferenceable(12) %224)
  call void @llvm.lifetime.start.p0(i64 12, ptr %61) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %61)
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #6
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %62)
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN7RiemannL19computeEdgeEdgeDistERKN5Maths8TVector3IfEES4_S4_S4_PS2_S5_(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %225, ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef %61, ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 12, ptr %63) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %63, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %62)
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  %227 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %226, ptr noundef nonnull align 4 dereferenceable(12) %63)
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #6
  store float 0x3F50624DE0000000, ptr %64, align 4, !tbaa !9
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %228)
  %230 = fcmp olt float %229, 0x3F50624DE0000000
  br i1 %230, label %231, label %247

231:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 12, ptr %65) #6
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %65, ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %59)
  %232 = load ptr, ptr %16, align 8, !tbaa !5
  %233 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %232, ptr noundef nonnull align 4 dereferenceable(12) %65)
  call void @llvm.lifetime.end.p0(i64 12, ptr %65) #6
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %234)
  %236 = fcmp olt float %235, 0x3F50624DE0000000
  br i1 %236, label %237, label %246

237:                                              ; preds = %231
  %238 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %66) #6
  %239 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 1
  %240 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %66, ptr noundef nonnull align 4 dereferenceable(12) %239, ptr noundef nonnull align 4 dereferenceable(12) %240)
  %241 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN7RiemannL19computeEdgeEdgeDistERKN5Maths8TVector3IfEES4_S4_S4_PS2_S5_(ptr noundef nonnull align 4 dereferenceable(12) %238, ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %241, ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef %61, ptr noundef %62)
  call void @llvm.lifetime.end.p0(i64 12, ptr %66) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %67) #6
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %67, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %62)
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %242, ptr noundef nonnull align 4 dereferenceable(12) %67)
  call void @llvm.lifetime.end.p0(i64 12, ptr %67) #6
  %244 = load ptr, ptr %16, align 8, !tbaa !5
  %245 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %244)
  br label %246

246:                                              ; preds = %237, %231
  br label %247

247:                                              ; preds = %246, %216
  %248 = load float, ptr %33, align 4, !tbaa !9
  %249 = load ptr, ptr %17, align 8, !tbaa !5
  store float %248, ptr %249, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %68) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %69) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %70) #6
  %250 = load float, ptr %14, align 4, !tbaa !9
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %70, float noundef %250, ptr noundef nonnull align 4 dereferenceable(12) %61)
  call void @llvm.lifetime.start.p0(i64 12, ptr %71) #6
  %251 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %72, i32 0, i32 2
  %252 = load float, ptr %251, align 4, !tbaa !11
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %71, float noundef %252, ptr noundef nonnull align 4 dereferenceable(12) %62)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %69, ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %71)
  %253 = load float, ptr %18, align 4, !tbaa !9
  call void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %68, ptr noundef nonnull align 4 dereferenceable(12) %69, float noundef %253)
  %254 = load ptr, ptr %15, align 8, !tbaa !5
  %255 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %254, ptr noundef nonnull align 4 dereferenceable(12) %68)
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #6
  store i1 true, ptr %9, align 1
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #6
  br label %259

256:                                              ; preds = %213
  %257 = load i8, ptr %34, align 1, !tbaa !14, !range !16, !noundef !17
  %258 = trunc i8 %257 to i1
  store i1 %258, ptr %9, align 1
  store i32 1, ptr %24, align 4
  br label %259

259:                                              ; preds = %256, %247
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #6
  br label %260

260:                                              ; preds = %259, %131
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %261 = load i1, ptr %9, align 1
  ret i1 %261
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann9Triangle315CalculateNormalERKN5Maths8TVector3IfEES5_S5_b(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Quad316RayIntersectQuadERKN5Maths8TVector3IfEES4_S4_S4_S4_PfS5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef, ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7RiemannL19computeEdgeEdgeDistERKN5Maths8TVector3IfEES4_S4_S4_PS2_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { noreturn 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 = { nounwind }
attributes #7 = { noreturn 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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"_ZTSN7Riemann8Capsule3E", !13, i64 0, !13, i64 12, !10, i64 24, !10, i64 28}
!13 = !{!"_ZTSN5Maths8TVector3IfEE", !10, i64 0, !10, i64 4, !10, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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.Maths::TVector3" = type { float, float, float }
%"class.Riemann::Capsule3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", float, float }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Riemann8Segment325SqrDistancePointToSegmentERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Riemann8Segment327SqrDistanceSegmentToSegmentERKN5Maths8TVector3IfEES5_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7Riemann8Capsule39GetCenterEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann8Capsule312SweepCapsuleERKN5Maths8TVector3IfEES5_S5_fPS3_S6_Pf(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #0 align 2 {
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Maths::TVector3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca %"class.Maths::TVector3", align 4
  %18 = alloca %"class.Maths::TVector3", align 4
  %19 = alloca %"class.Maths::TVector3", align 4
  %20 = alloca %"class.Maths::TVector3", align 4
  %21 = alloca %"class.Maths::TVector3", align 4
  %22 = alloca %"class.Maths::TVector3", align 4
  %23 = alloca %"class.Maths::TVector3", align 4
  %24 = alloca %"class.Maths::TVector3", align 4
  %25 = alloca %"class.Maths::TVector3", align 4
  %26 = alloca %"class.Maths::TVector3", align 4
  %27 = alloca %"class.Maths::TVector3", align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.Maths::TVector3", align 4
  %32 = alloca [4 x %"class.Riemann::Capsule3"], align 16
  %33 = alloca %"class.Riemann::Capsule3", align 4
  %34 = alloca %"class.Riemann::Capsule3", align 4
  %35 = alloca %"class.Riemann::Capsule3", align 4
  %36 = alloca %"class.Riemann::Capsule3", align 4
  %37 = alloca float, align 4
  %38 = alloca %"class.Maths::TVector3", align 4
  %39 = alloca %"class.Maths::TVector3", align 4
  %40 = alloca %"class.Maths::TVector3", align 4
  %41 = alloca %"class.Maths::TVector3", align 4
  %42 = alloca %"class.Maths::TVector3", align 4
  %43 = alloca %"class.Maths::TVector3", align 4
  %44 = alloca %"class.Maths::TVector3", align 4
  %45 = alloca %"class.Maths::TVector3", align 4
  %46 = alloca %"class.Maths::TVector3", align 4
  %47 = alloca %"class.Maths::TVector3", align 4
  %48 = alloca %"class.Maths::TVector3", align 4
  %49 = alloca %"class.Maths::TVector3", align 4
  %50 = alloca %"class.Maths::TVector3", align 4
  %51 = alloca %"class.Maths::TVector3", align 4
  %52 = alloca %"class.Maths::TVector3", align 4
  %53 = alloca %"class.Maths::TVector3", align 4
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = fadd float %55, %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  %57 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %57)
  %58 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  br i1 %58, label %59, label %63

59:                                               ; preds = %8
  %60 = call noundef float @_ZN7Riemann8Segment325SqrDistancePointToSegmentERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %61 = fmul float %56, %56
  %62 = fcmp olt float %60, %61
  br i1 %62, label %72, label %.critedge

63:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %64 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  %65 = fmul float %56, %56
  br i1 %64, label %66, label %69

66:                                               ; preds = %63
  %67 = call noundef float @_ZN7Riemann8Segment325SqrDistancePointToSegmentERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %57)
  %68 = fcmp olt float %67, %65
  br i1 %68, label %72, label %.critedge

69:                                               ; preds = %63
  %70 = call noundef float @_ZN7Riemann8Segment327SqrDistanceSegmentToSegmentERKN5Maths8TVector3IfEES5_S5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %71 = fcmp olt float %70, %65
  br i1 %71, label %72, label %.critedge

72:                                               ; preds = %66, %59, %69
  store float 0.000000e+00, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @_ZNK5Maths8TVector3IfEngEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %73 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %128

.critedge:                                        ; preds = %66, %59, %69
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  call void @_ZN7Riemann9Triangle315CalculateNormalERKN5Maths8TVector3IfEES5_S5_b(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %15, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %21)
  %74 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %75 = fcmp ult float %74, 0.000000e+00
  call void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %56)
  br i1 %75, label %80, label %76

76:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %77 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %78 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %79 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #5
  br label %84

80:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %82 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %27, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #5
  br label %84

84:                                               ; preds = %80, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #5
  call void @_ZNK7Riemann8Capsule39GetCenterEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(32) %0)
  %85 = call noundef zeroext i1 @_ZN5Quad316RayIntersectQuadERKN5Maths8TVector3IfEES4_S4_S4_S4_PfS5_S5_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30)
  %86 = load float, ptr %28, align 4
  %87 = fcmp oge float %86, 0.000000e+00
  %88 = fcmp olt float %86, 0x47EFFFFFE0000000
  %89 = and i1 %87, %88
  %or.cond74 = select i1 %85, i1 %89, i1 false
  br i1 %or.cond74, label %.thread, label %90

90:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %32) #5
  call void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32) %32)
  %.ptr.1 = getelementptr inbounds i8, ptr %32, i64 32
  call void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %32, i64 64
  call void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %32, i64 96
  call void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #5
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %33, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %56)
  %91 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %32, ptr noundef nonnull align 4 dereferenceable(32) %33)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #5
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %34, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %56)
  %92 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(32) %34)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #5
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %35, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %56)
  %93 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(32) %35)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %36) #5
  call void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32) %36, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %56)
  %94 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZN7Riemann8Capsule3aSEOS0_(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.3, ptr noundef nonnull align 4 dereferenceable(32) %36)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #5
  %95 = call noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32) %32, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull %37)
  %96 = load float, ptr %37, align 4
  %97 = fcmp oge float %96, 0.000000e+00
  %98 = fcmp ole float %96, 0x47EFFFFFE0000000
  %99 = and i1 %97, %98
  %or.cond75.not = select i1 %95, i1 %99, i1 false
  %.268 = select i1 %or.cond75.not, float %96, float 0x47EFFFFFE0000000
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #5
  %100 = call noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull %37)
  %101 = load float, ptr %37, align 4
  %102 = fcmp oge float %101, 0.000000e+00
  %or.cond3.not.1 = select i1 %100, i1 %102, i1 false
  %103 = fcmp ole float %101, %.268
  %or.cond75.not.1 = select i1 %or.cond3.not.1, i1 %103, i1 false
  %.268.1 = select i1 %or.cond75.not.1, float %101, float %.268
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #5
  %104 = call noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull %37)
  %105 = load float, ptr %37, align 4
  %106 = fcmp oge float %105, 0.000000e+00
  %or.cond3.not.2 = select i1 %104, i1 %106, i1 false
  %107 = fcmp ole float %105, %.268.1
  %or.cond75.not.2 = select i1 %or.cond3.not.2, i1 %107, i1 false
  %.268.2 = select i1 %or.cond75.not.2, float %105, float %.268.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #5
  %108 = call noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(32) %.ptr.3, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull %37)
  %109 = load float, ptr %37, align 4
  %110 = fcmp oge float %109, 0.000000e+00
  %or.cond3.not.3 = select i1 %108, i1 %110, i1 false
  %111 = fcmp ole float %109, %.268.2
  %or.cond75.not.3 = select i1 %or.cond3.not.3, i1 %111, i1 false
  %.268.3 = select i1 %or.cond75.not.3, float %109, float %.268.2
  %112 = select i1 %or.cond75.not.3, i1 true, i1 %or.cond75.not.2
  %113 = select i1 %112, i1 true, i1 %or.cond75.not.1
  %.265.3 = select i1 %113, i1 true, i1 %or.cond75.not
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %32) #5
  br i1 %.265.3, label %.thread, label %127

.thread:                                          ; preds = %84, %90
  %.36982 = phi float [ %.268.3, %90 ], [ %86, %84 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %38) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %39) #5
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %39, float noundef %.36982, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %39) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %40) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %41) #5
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %41, float noundef %.36982, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %40, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %41)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %41) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %42) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %42, ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %38)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %43) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %43, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %44) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %44)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %45) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %45)
  call void @_ZN7RiemannL19computeEdgeEdgeDistERKN5Maths8TVector3IfEES4_S4_S4_PS2_S5_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull %44, ptr noundef nonnull %45)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %46) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %46, ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %45)
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %46)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %46) #5
  %115 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %6)
  %116 = fcmp olt float %115, 0x3F50624DE0000000
  br i1 %116, label %117, label %124

117:                                              ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %47) #5
  call void @_ZNK5Maths8TVector3IfE5CrossERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %47, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %42)
  %118 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %47)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %47) #5
  %119 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %6)
  %120 = fcmp olt float %119, 0x3F50624DE0000000
  br i1 %120, label %121, label %124

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %48) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %48, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %0)
  call void @_ZN7RiemannL19computeEdgeEdgeDistERKN5Maths8TVector3IfEES4_S4_S4_PS2_S5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull %44, ptr noundef nonnull %45)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %48) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %49) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %49, ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %45)
  %122 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %49)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %49) #5
  %123 = call noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %6)
  br label %124

124:                                              ; preds = %117, %121, %.thread
  store float %.36982, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %50) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %51) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %52) #5
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %52, float noundef %4, ptr noundef nonnull align 4 dereferenceable(12) %44)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %53) #5
  %125 = load float, ptr %54, align 4, !tbaa !5
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %53, float noundef %125, ptr noundef nonnull align 4 dereferenceable(12) %45)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %51, ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %53)
  call void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %50, ptr noundef nonnull align 4 dereferenceable(12) %51, float noundef %56)
  %126 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %50)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %53) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %52) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %51) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %50) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %45) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %44) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %43) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %42) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %40) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %38) #5
  br label %127

127:                                              ; preds = %90, %124
  %.383 = phi i1 [ false, %90 ], [ true, %124 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  br label %128

128:                                              ; preds = %72, %127
  %.2 = phi i1 [ %.383, %127 ], [ true, %72 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5Maths8TVector3IfE6IsZeroEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann9Triangle315CalculateNormalERKN5Maths8TVector3IfEES5_S5_b(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Quad316RayIntersectQuadERKN5Maths8TVector3IfEES4_S4_S4_S4_PfS5_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann8Capsule3C2Ev(ptr noundef nonnull align 4 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann8Capsule3C2ERKN5Maths8TVector3IfEES5_f(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef) unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7RiemannL19computeEdgeEdgeDistERKN5Maths8TVector3IfEES4_S4_S4_PS2_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5Maths8TVector3IfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 24}
!6 = !{!"_ZTSN7Riemann8Capsule3E", !7, i64 0, !7, i64 12, !8, i64 24, !8, i64 28}
!7 = !{!"_ZTSN5Maths8TVector3IfEE", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!8, !8, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass