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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_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 %3) #0 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Maths::TVector3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca float, align 4
  %17 = alloca %"class.Maths::TVector3", align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca i8, align 1
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i8, align 1
  %28 = alloca %"class.Maths::TVector3", align 4
  %29 = alloca %"class.Maths::TVector3", align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.Maths::TVector3", align 4
  %32 = alloca %"class.Riemann::Sphere3", align 4
  %33 = alloca %"class.Riemann::Sphere3", align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca i8, align 1
  %37 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %40)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  %41 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 1
  %42 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %42)
  %43 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 3
  %44 = load float, ptr %43, align 4, !tbaa !9
  call void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %44)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %45 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11)
  store float %45, ptr %13, align 4, !tbaa !13
  %46 = load float, ptr %13, align 4, !tbaa !13
  %47 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %48 = load float, ptr %47, align 4, !tbaa !14
  %49 = fneg float %48
  %50 = fcmp oge float %46, %49
  br i1 %50, label %51, label %79

51:                                               ; preds = %4
  %52 = load float, ptr %13, align 4, !tbaa !13
  %53 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 3
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %56 = load float, ptr %55, align 4, !tbaa !14
  %57 = fadd float %54, %56
  %58 = fcmp ole float %52, %57
  br i1 %58, label %59, label %79

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %60 = load float, ptr %13, align 4, !tbaa !13
  %61 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 3
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = call noundef float @_ZN5Maths5ClampIfEET_S1_S1_S1_(float noundef %60, float noundef 0.000000e+00, float noundef %62)
  store float %63, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %64 = load float, ptr %14, align 4, !tbaa !13
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %65 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  store float %65, ptr %16, align 4, !tbaa !13
  %66 = load float, ptr %16, align 4, !tbaa !13
  %67 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %70 = load float, ptr %69, align 4, !tbaa !14
  %71 = fmul float %68, %70
  %72 = fcmp ole float %66, %71
  br i1 %72, label %73, label %75

73:                                               ; preds = %59
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  store float 0.000000e+00, ptr %74, align 4, !tbaa !13
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %76

75:                                               ; preds = %59
  store i32 0, ptr %18, align 4
  br label %76

76:                                               ; preds = %75, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %77 = load i32, ptr %18, align 4
  switch i32 %77, label %231 [
    i32 0, label %78
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %51, %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %80)
  store float %81, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %82 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  store float %82, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %83 = load float, ptr %19, align 4, !tbaa !13
  %84 = load float, ptr %19, align 4, !tbaa !13
  %85 = fneg float %83
  %86 = call float @llvm.fmuladd.f32(float %85, float %84, float 1.000000e+00)
  store float %86, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %87 = load float, ptr %20, align 4, !tbaa !13
  %88 = load float, ptr %13, align 4, !tbaa !13
  %89 = load float, ptr %13, align 4, !tbaa !13
  %90 = fneg float %88
  %91 = call float @llvm.fmuladd.f32(float %90, float %89, float %87)
  %92 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %93 = load float, ptr %92, align 4, !tbaa !14
  %94 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %95 = load float, ptr %94, align 4, !tbaa !14
  %96 = fneg float %93
  %97 = call float @llvm.fmuladd.f32(float %96, float %95, float %91)
  store float %97, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  store i8 0, ptr %23, align 1, !tbaa !15
  %98 = load float, ptr %22, align 4, !tbaa !13
  %99 = fcmp ole float %98, 0.000000e+00
  br i1 %99, label %100, label %101

100:                                              ; preds = %79
  store i8 1, ptr %23, align 1, !tbaa !15
  br label %184

101:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %102)
  %104 = load float, ptr %13, align 4, !tbaa !13
  %105 = load float, ptr %19, align 4, !tbaa !13
  %106 = fneg float %104
  %107 = call float @llvm.fmuladd.f32(float %106, float %105, float %103)
  store float %107, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %108 = load float, ptr %24, align 4, !tbaa !13
  %109 = load float, ptr %24, align 4, !tbaa !13
  %110 = load float, ptr %21, align 4, !tbaa !13
  %111 = load float, ptr %22, align 4, !tbaa !13
  %112 = fmul float %110, %111
  %113 = fneg float %112
  %114 = call float @llvm.fmuladd.f32(float %108, float %109, float %113)
  store float %114, ptr %25, align 4, !tbaa !13
  %115 = load float, ptr %25, align 4, !tbaa !13
  %116 = fcmp olt float %115, 0.000000e+00
  br i1 %116, label %117, label %118

117:                                              ; preds = %101
  store i8 1, ptr %23, align 1, !tbaa !15
  br label %180

118:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  %119 = load float, ptr %25, align 4, !tbaa !13
  %120 = fpext float %119 to double
  %121 = fcmp olt double %120, 1.000000e-04
  %122 = zext i1 %121 to i8
  store i8 %122, ptr %27, align 1, !tbaa !15
  %123 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %136

125:                                              ; preds = %118
  %126 = load float, ptr %21, align 4, !tbaa !13
  %127 = fcmp oeq float %126, 0.000000e+00
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  br label %134

129:                                              ; preds = %125
  %130 = load float, ptr %24, align 4, !tbaa !13
  %131 = fneg float %130
  %132 = load float, ptr %21, align 4, !tbaa !13
  %133 = fdiv float %131, %132
  br label %134

134:                                              ; preds = %129, %128
  %135 = phi float [ 0.000000e+00, %128 ], [ %133, %129 ]
  store float %135, ptr %26, align 4, !tbaa !13
  br label %154

136:                                              ; preds = %118
  %137 = load float, ptr %21, align 4, !tbaa !13
  %138 = fcmp oeq float %137, 0.000000e+00
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  br label %148

140:                                              ; preds = %136
  %141 = load float, ptr %24, align 4, !tbaa !13
  %142 = fneg float %141
  %143 = load float, ptr %25, align 4, !tbaa !13
  %144 = call float @sqrtf(float noundef %143) #7
  %145 = fsub float %142, %144
  %146 = load float, ptr %21, align 4, !tbaa !13
  %147 = fdiv float %145, %146
  br label %148

148:                                              ; preds = %140, %139
  %149 = phi float [ 0.000000e+00, %139 ], [ %147, %140 ]
  store float %149, ptr %26, align 4, !tbaa !13
  %150 = load float, ptr %26, align 4, !tbaa !13
  %151 = fcmp olt float %150, 0.000000e+00
  br i1 %151, label %152, label %153

152:                                              ; preds = %148
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %177

153:                                              ; preds = %148
  br label %154

154:                                              ; preds = %153, %134
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #7
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load float, ptr %26, align 4, !tbaa !13
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %29, ptr noundef nonnull align 4 dereferenceable(12) %156, float noundef %157)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(12) %155, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  %158 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %158)
  %159 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  store float %159, ptr %30, align 4, !tbaa !13
  %160 = load float, ptr %30, align 4, !tbaa !13
  %161 = fcmp oge float %160, 0.000000e+00
  br i1 %161, label %162, label %170

162:                                              ; preds = %154
  %163 = load float, ptr %30, align 4, !tbaa !13
  %164 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 3
  %165 = load float, ptr %164, align 4, !tbaa !9
  %166 = fcmp olt float %163, %165
  br i1 %166, label %167, label %170

167:                                              ; preds = %162
  %168 = load float, ptr %26, align 4, !tbaa !13
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  store float %168, ptr %169, align 4, !tbaa !13
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %176

170:                                              ; preds = %162, %154
  %171 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %172 = trunc i8 %171 to i1
  %173 = xor i1 %172, true
  %174 = zext i1 %173 to i8
  store i8 %174, ptr %23, align 1, !tbaa !15
  br label %175

175:                                              ; preds = %170
  store i32 0, ptr %18, align 4
  br label %176

176:                                              ; preds = %175, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  br label %177

177:                                              ; preds = %176, %152
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  %178 = load i32, ptr %18, align 4
  switch i32 %178, label %181 [
    i32 0, label %179
  ]

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179, %117
  store i32 0, ptr %18, align 4
  br label %181

181:                                              ; preds = %180, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %182 = load i32, ptr %18, align 4
  switch i32 %182, label %230 [
    i32 0, label %183
  ]

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183, %100
  %185 = load i8, ptr %23, align 1, !tbaa !15, !range !17, !noundef !18
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %229

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %188 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 0
  %189 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %190 = load float, ptr %189, align 4, !tbaa !14
  call void @_ZN7Riemann7Sphere3C2ERKN5Maths8TVector3IfEEf(ptr noundef nonnull align 4 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %188, float noundef %190)
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %191 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 1
  %192 = getelementptr inbounds %"class.Riemann::Capsule3", ptr %38, i32 0, i32 2
  %193 = load float, ptr %192, align 4, !tbaa !14
  call void @_ZN7Riemann7Sphere3C2ERKN5Maths8TVector3IfEEf(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(12) %191, float noundef %193)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #7
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = call noundef zeroext i1 @_ZNK7Riemann7Sphere312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %194, ptr noundef nonnull align 4 dereferenceable(12) %195, ptr noundef %34)
  %197 = zext i1 %196 to i8
  store i8 %197, ptr %36, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #7
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = call noundef zeroext i1 @_ZNK7Riemann7Sphere312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(12) %198, ptr noundef nonnull align 4 dereferenceable(12) %199, ptr noundef %35)
  %201 = zext i1 %200 to i8
  store i8 %201, ptr %37, align 1, !tbaa !15
  %202 = load i8, ptr %36, align 1, !tbaa !15, !range !17, !noundef !18
  %203 = trunc i8 %202 to i1
  br i1 %203, label %204, label %211

204:                                              ; preds = %187
  %205 = load i8, ptr %37, align 1, !tbaa !15, !range !17, !noundef !18
  %206 = trunc i8 %205 to i1
  br i1 %206, label %207, label %211

207:                                              ; preds = %204
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %209 = load float, ptr %208, align 4, !tbaa !13
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  store float %209, ptr %210, align 4, !tbaa !13
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %226

211:                                              ; preds = %204, %187
  %212 = load i8, ptr %36, align 1, !tbaa !15, !range !17, !noundef !18
  %213 = trunc i8 %212 to i1
  br i1 %213, label %214, label %217

214:                                              ; preds = %211
  %215 = load float, ptr %34, align 4, !tbaa !13
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  store float %215, ptr %216, align 4, !tbaa !13
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %226

217:                                              ; preds = %211
  %218 = load i8, ptr %37, align 1, !tbaa !15, !range !17, !noundef !18
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %223

220:                                              ; preds = %217
  %221 = load float, ptr %35, align 4, !tbaa !13
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  store float %221, ptr %222, align 4, !tbaa !13
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %226

223:                                              ; preds = %217
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  store i32 0, ptr %18, align 4
  br label %226

226:                                              ; preds = %225, %220, %214, %207
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  %227 = load i32, ptr %18, align 4
  switch i32 %227, label %230 [
    i32 0, label %228
  ]

228:                                              ; preds = %226
  br label %229

229:                                              ; preds = %228, %184
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %230

230:                                              ; preds = %229, %226, %181
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %231

231:                                              ; preds = %230, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  %232 = load i1, ptr %5, align 1
  ret i1 %232
}

; 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 nounwind uwtable
declare dso_local noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5Maths5ClampIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) #3

; 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 nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #5

; 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 void @_ZN7Riemann7Sphere3C2ERKN5Maths8TVector3IfEEf(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), float noundef) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZNK7Riemann7Sphere312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) #6

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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, !12, i64 28}
!10 = !{!"_ZTSN7Riemann8Capsule3E", !11, i64 0, !11, i64 12, !12, i64 24, !12, i64 28}
!11 = !{!"_ZTSN5Maths8TVector3IfEE", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"float", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !12, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann8Capsule312IntersectRayERKN5Maths8TVector3IfEES5_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 nocapture noundef writeonly %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  %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.Riemann::Sphere3", align 4
  %14 = alloca %"class.Riemann::Sphere3", align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %17 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %0)
  %18 = getelementptr inbounds i8, ptr %0, i64 28
  %19 = load float, ptr %18, align 4, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  %20 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load float, ptr %21, align 4, !tbaa !11
  %23 = fneg float %22
  %24 = fcmp ult float %20, %23
  br i1 %24, label %36, label %25

25:                                               ; preds = %4
  %26 = load float, ptr %18, align 4, !tbaa !5
  %27 = fadd float %22, %26
  %28 = fcmp ugt float %20, %27
  br i1 %28, label %36, label %29

29:                                               ; preds = %25
  %30 = call noundef float @_ZN5Maths5ClampIfEET_S1_S1_S1_(float noundef %20, float noundef 0.000000e+00, float noundef %26)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %30)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %31 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  %32 = load float, ptr %21, align 4, !tbaa !11
  %33 = fmul float %32, %32
  %34 = fcmp ugt float %31, %33
  br i1 %34, label %.critedge, label %35

35:                                               ; preds = %29
  store float 0.000000e+00, ptr %3, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br label %.thread82

.critedge:                                        ; preds = %29
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br label %36

36:                                               ; preds = %.critedge, %25, %4
  %37 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %38 = call noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %5)
  %39 = fneg float %37
  %40 = call float @llvm.fmuladd.f32(float %39, float %37, float 1.000000e+00)
  %41 = fneg float %20
  %42 = call float @llvm.fmuladd.f32(float %41, float %20, float %38)
  %43 = load float, ptr %21, align 4, !tbaa !11
  %44 = fneg float %43
  %45 = call float @llvm.fmuladd.f32(float %44, float %43, float %42)
  %46 = fcmp ugt float %45, 0.000000e+00
  br i1 %46, label %47, label %.thread88

47:                                               ; preds = %36
  %48 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %49 = call float @llvm.fmuladd.f32(float %41, float %37, float %48)
  %50 = fneg float %40
  %51 = fmul float %45, %50
  %52 = call float @llvm.fmuladd.f32(float %49, float %49, float %51)
  %53 = fcmp olt float %52, 0.000000e+00
  br i1 %53, label %.thread88, label %54

54:                                               ; preds = %47
  %55 = fpext float %52 to double
  %56 = fcmp uge double %55, 1.000000e-04
  %57 = fcmp oeq float %40, 0.000000e+00
  br i1 %56, label %62, label %58

58:                                               ; preds = %54
  %59 = fneg float %49
  %60 = fdiv float %59, %40
  %61 = select i1 %57, float 0.000000e+00, float %60
  br label %.thread

62:                                               ; preds = %54
  br i1 %57, label %.thread, label %63

63:                                               ; preds = %62
  %64 = fneg float %49
  %65 = call float @sqrtf(float noundef %52) #7
  %66 = fsub float %64, %65
  %67 = fdiv float %66, %40
  %68 = fcmp olt float %67, 0.000000e+00
  br i1 %68, label %.thread82, label %.thread

.thread:                                          ; preds = %62, %63, %58
  %.070 = phi float [ %61, %58 ], [ %67, %63 ], [ 0.000000e+00, %62 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef %.070)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %0)
  %69 = call noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  %70 = fcmp oge float %69, 0.000000e+00
  %71 = load float, ptr %18, align 4
  %72 = fcmp olt float %69, %71
  %or.cond = select i1 %70, i1 %72, i1 false
  br i1 %or.cond, label %73, label %74

73:                                               ; preds = %.thread
  store float %.070, ptr %3, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  br label %.thread82

74:                                               ; preds = %.thread
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  br i1 %56, label %.thread88, label %.thread82

.thread88:                                        ; preds = %47, %36, %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %75 = load float, ptr %21, align 4, !tbaa !11
  call void @_ZN7Riemann7Sphere3C2ERKN5Maths8TVector3IfEEf(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(12) %0, float noundef %75)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %76 = load float, ptr %21, align 4, !tbaa !11
  call void @_ZN7Riemann7Sphere3C2ERKN5Maths8TVector3IfEEf(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %76)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %77 = call noundef zeroext i1 @_ZNK7Riemann7Sphere312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull %15)
  %78 = call noundef zeroext i1 @_ZNK7Riemann7Sphere312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull %16)
  %brmerge.demorgan = and i1 %77, %78
  br i1 %brmerge.demorgan, label %79, label %81

79:                                               ; preds = %.thread88
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br label %.thread91

81:                                               ; preds = %.thread88
  %brmerge = or i1 %77, %78
  %.mux = select i1 %77, ptr %15, ptr %16
  br i1 %brmerge, label %.thread91, label %82

.thread91:                                        ; preds = %81, %79
  %.sink.in = phi ptr [ %80, %79 ], [ %.mux, %81 ]
  %.sink = load float, ptr %.sink.in, align 4, !tbaa !12
  store float %.sink, ptr %3, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %.thread82

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %.thread82

.thread82:                                        ; preds = %63, %74, %82, %.thread91, %73, %35
  %.9 = phi i1 [ true, %35 ], [ true, %73 ], [ true, %.thread91 ], [ false, %82 ], [ false, %74 ], [ false, %63 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  ret i1 %.9
}

; 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 nounwind uwtable
declare dso_local noundef float @_ZN5Maths10DotProductIfEET_RKNS_8TVector3IS1_EES5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5Maths5ClampIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #3

; 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 nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector3IfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

; 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 void @_ZN7Riemann7Sphere3C2ERKN5Maths8TVector3IfEEf(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), float noundef) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZNK7Riemann7Sphere312IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #6

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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, !8, i64 28}
!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 = !{!6, !8, i64 24}
!12 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass