; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (raycast)

; 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.Vector3 = type { [3 x float] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::raycastResult_t" = type { i8, i32, [2 x %class.Vector3], [2 x float] }
%"struct.edbdmath::quadraticResult_t" = type { i32, [2 x float] }
%"struct.geometry::types::isometricTransform_t" = type { %class.Matrix33, %class.Vector3 }
%"struct.geometry::types::shapeCylinder_t" = type { float, float }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3miERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

declare { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef, float noundef, float noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40)) unnamed_addr #5 align 2

declare void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3plERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #6 align 2

; 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)) #7

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

declare noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7raycastERK7Vector3S2_RKNS_5types20isometricTransform_tERKNS3_15shapeCylinder_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::raycastResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Matrix33, align 4
  %13 = alloca %class.Vector3, align 4
  %14 = alloca %class.Vector3, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca %class.Matrix33, align 4
  %17 = alloca %class.Vector3, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca %"struct.edbdmath::quadraticResult_t", align 4
  %23 = alloca { i64, float }, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca %"struct.geometry::types::raycastResult_t", align 4
  %31 = alloca ptr, align 8
  %32 = alloca %class.Vector3, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %class.Vector3, align 4
  %35 = alloca %class.Vector3, align 4
  %36 = alloca %class.Vector3, align 4
  %37 = alloca %class.Vector3, align 4
  %38 = alloca %class.Vector3, align 4
  %39 = alloca %class.Vector3, align 4
  %40 = alloca %class.Vector3, align 4
  %41 = alloca %class.Vector3, align 4
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca %class.Vector3, align 4
  %45 = alloca %class.Vector3, align 4
  %46 = alloca %class.Vector3, align 4
  %47 = alloca %class.Vector3, align 4
  %48 = alloca %class.Vector3, align 4
  %49 = alloca %class.Vector3, align 4
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  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
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %53)
  call void @llvm.lifetime.start.p0(i64 36, ptr %12) #8
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %54, i32 0, i32 0
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %55)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %57, i32 0, i32 1
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %56, ptr noundef nonnull align 4 dereferenceable(12) %58)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 36, ptr %16) #8
  call void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36) %16, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %17, ptr noundef nonnull align 4 dereferenceable(36) %16, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %59 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %17)
  store float %59, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %60 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %61 = fmul float 2.000000e+00, %60
  store float %61, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(36) %16, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %62 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %63, i32 0, i32 0
  %65 = load float, ptr %64, align 4, !tbaa !11
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %66, i32 0, i32 0
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = fneg float %65
  %70 = call float @llvm.fmuladd.f32(float %69, float %68, float %62)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  store float %70, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #8
  %71 = load float, ptr %18, align 4, !tbaa !9
  %72 = load float, ptr %19, align 4, !tbaa !9
  %73 = load float, ptr %20, align 4, !tbaa !9
  %74 = call { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef %71, float noundef %72, float noundef %73)
  store { i64, float } %74, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %75, i32 0, i32 1
  %77 = load float, ptr %76, align 4, !tbaa !13
  %78 = fmul float -1.000000e+00, %77
  %79 = fdiv float %78, 2.000000e+00
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 2)
  %81 = load float, ptr %80, align 4, !tbaa !9
  %82 = fsub float %79, %81
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %84 = load float, ptr %83, align 4, !tbaa !9
  %85 = fdiv float %82, %84
  store float %85, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %86, i32 0, i32 1
  %88 = load float, ptr %87, align 4, !tbaa !13
  %89 = fdiv float %88, 2.000000e+00
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 2)
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = fsub float %89, %91
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = fdiv float %92, %94
  store float %95, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %97 = load float, ptr %96, align 4, !tbaa !9
  store float %97, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %99 = load float, ptr %98, align 4, !tbaa !9
  store float %99, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  %100 = load float, ptr %18, align 4, !tbaa !9
  %101 = load float, ptr %19, align 4, !tbaa !9
  %102 = load float, ptr %20, align 4, !tbaa !9
  %103 = load float, ptr %27, align 4, !tbaa !9
  %104 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %100, float noundef %101, float noundef %102, float noundef %103)
  %105 = fcmp ole float %104, 0.000000e+00
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %28, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  %107 = load float, ptr %18, align 4, !tbaa !9
  %108 = load float, ptr %19, align 4, !tbaa !9
  %109 = load float, ptr %20, align 4, !tbaa !9
  %110 = load float, ptr %26, align 4, !tbaa !9
  %111 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %107, float noundef %108, float noundef %109, float noundef %110)
  %112 = fcmp ole float %111, 0.000000e+00
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %29, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #8
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %30)
  %114 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  store i32 0, ptr %114, align 4, !tbaa !16
  %115 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !19
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %154

118:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %119 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  store ptr %119, ptr %31, align 8, !tbaa !5
  %120 = load ptr, ptr %31, align 8, !tbaa !5
  store i32 0, ptr %120, align 4, !tbaa !21
  %121 = load i8, ptr %28, align 1, !tbaa !14, !range !22, !noundef !23
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %134

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %124)
  %125 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %126 = load ptr, ptr %31, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !21
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds [2 x %class.Vector3], ptr %125, i64 0, i64 %128
  %130 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %129, ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  %131 = load ptr, ptr %31, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !21
  %133 = add i32 %132, 1
  store i32 %133, ptr %131, align 4, !tbaa !21
  br label %134

134:                                              ; preds = %123, %118
  %135 = load i8, ptr %29, align 1, !tbaa !14, !range !22, !noundef !23
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %148

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %138)
  %139 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %140 = load ptr, ptr %31, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !21
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [2 x %class.Vector3], ptr %139, i64 0, i64 %142
  %144 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %143, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  %145 = load ptr, ptr %31, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !21
  %147 = add i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !21
  br label %148

148:                                              ; preds = %137, %134
  %149 = load ptr, ptr %31, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !21
  %151 = icmp ugt i32 %150, 0
  %152 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 0
  %153 = zext i1 %151 to i8
  store i8 %153, ptr %152, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %334

154:                                              ; preds = %5
  %155 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !19
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %158, label %215

158:                                              ; preds = %154
  %159 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %160 = getelementptr inbounds [2 x float], ptr %159, i64 0, i64 0
  %161 = load float, ptr %160, align 4, !tbaa !9
  %162 = load float, ptr %27, align 4, !tbaa !9
  %163 = fcmp ole float %161, %162
  br i1 %163, label %164, label %184

164:                                              ; preds = %158
  %165 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %166 = getelementptr inbounds [2 x float], ptr %165, i64 0, i64 0
  %167 = load float, ptr %166, align 4, !tbaa !9
  %168 = load float, ptr %26, align 4, !tbaa !9
  %169 = fcmp oge float %167, %168
  br i1 %169, label %170, label %184

170:                                              ; preds = %164
  %171 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 0
  store i8 1, ptr %171, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #8
  %172 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %173 = getelementptr inbounds [2 x float], ptr %172, i64 0, i64 0
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %37, ptr noundef nonnull align 4 dereferenceable(4) %173, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %36, ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %174)
  %175 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %176 = getelementptr inbounds [2 x %class.Vector3], ptr %175, i64 0, i64 0
  %177 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %176, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  %178 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  store i32 1, ptr %178, align 4, !tbaa !16
  %179 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %180 = getelementptr inbounds [2 x float], ptr %179, i64 0, i64 0
  %181 = load float, ptr %180, align 4, !tbaa !9
  %182 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %183 = getelementptr inbounds [2 x float], ptr %182, i64 0, i64 0
  store float %181, ptr %183, align 4, !tbaa !9
  br label %214

184:                                              ; preds = %164, %158
  %185 = load i8, ptr %28, align 1, !tbaa !14, !range !22, !noundef !23
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %197

187:                                              ; preds = %184
  %188 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 0
  store i8 1, ptr %188, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %39, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %189)
  %190 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %191 = getelementptr inbounds [2 x %class.Vector3], ptr %190, i64 0, i64 0
  %192 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %191, ptr noundef nonnull align 4 dereferenceable(12) %38)
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  %193 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  store i32 1, ptr %193, align 4, !tbaa !16
  %194 = load float, ptr %27, align 4, !tbaa !9
  %195 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %196 = getelementptr inbounds [2 x float], ptr %195, i64 0, i64 0
  store float %194, ptr %196, align 4, !tbaa !9
  br label %213

197:                                              ; preds = %184
  %198 = load i8, ptr %29, align 1, !tbaa !14, !range !22, !noundef !23
  %199 = trunc i8 %198 to i1
  br i1 %199, label %200, label %210

200:                                              ; preds = %197
  %201 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 0
  store i8 1, ptr %201, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %41, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %40, ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %202)
  %203 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %204 = getelementptr inbounds [2 x %class.Vector3], ptr %203, i64 0, i64 0
  %205 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %204, ptr noundef nonnull align 4 dereferenceable(12) %40)
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #8
  %206 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  store i32 1, ptr %206, align 4, !tbaa !16
  %207 = load float, ptr %26, align 4, !tbaa !9
  %208 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %209 = getelementptr inbounds [2 x float], ptr %208, i64 0, i64 0
  store float %207, ptr %209, align 4, !tbaa !9
  br label %212

210:                                              ; preds = %197
  %211 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 0
  store i8 0, ptr %211, align 4, !tbaa !24
  br label %212

212:                                              ; preds = %210, %200
  br label %213

213:                                              ; preds = %212, %187
  br label %214

214:                                              ; preds = %213, %170
  br label %333

215:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %216 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  store ptr %216, ptr %42, align 8, !tbaa !5
  %217 = load ptr, ptr %42, align 8, !tbaa !5
  store i32 0, ptr %217, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  store i32 0, ptr %43, align 4, !tbaa !21
  br label %218

218:                                              ; preds = %324, %215
  %219 = load i32, ptr %43, align 4, !tbaa !21
  %220 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 0
  %221 = load i32, ptr %220, align 4, !tbaa !19
  %222 = icmp ult i32 %219, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %327

224:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 12, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %45) #8
  %225 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %226 = load i32, ptr %43, align 4, !tbaa !21
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds [2 x float], ptr %225, i64 0, i64 %227
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %45, ptr noundef nonnull align 4 dereferenceable(4) %228, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %44, ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(12) %229)
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #8
  %230 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %231 = load i32, ptr %43, align 4, !tbaa !21
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds [2 x float], ptr %230, i64 0, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !9
  %235 = load float, ptr %27, align 4, !tbaa !9
  %236 = fcmp ole float %234, %235
  br i1 %236, label %237, label %265

237:                                              ; preds = %224
  %238 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %239 = load i32, ptr %43, align 4, !tbaa !21
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [2 x float], ptr %238, i64 0, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !9
  %243 = load float, ptr %26, align 4, !tbaa !9
  %244 = fcmp oge float %242, %243
  br i1 %244, label %245, label %265

245:                                              ; preds = %237
  %246 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %247 = load ptr, ptr %42, align 8, !tbaa !5
  %248 = load i32, ptr %247, align 4, !tbaa !21
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds [2 x %class.Vector3], ptr %246, i64 0, i64 %249
  %251 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %250, ptr noundef nonnull align 4 dereferenceable(12) %44)
  %252 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %253 = load i32, ptr %43, align 4, !tbaa !21
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds [2 x float], ptr %252, i64 0, i64 %254
  %256 = load float, ptr %255, align 4, !tbaa !9
  %257 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %258 = load ptr, ptr %42, align 8, !tbaa !5
  %259 = load i32, ptr %258, align 4, !tbaa !21
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds [2 x float], ptr %257, i64 0, i64 %260
  store float %256, ptr %261, align 4, !tbaa !9
  %262 = load ptr, ptr %42, align 8, !tbaa !5
  %263 = load i32, ptr %262, align 4, !tbaa !21
  %264 = add i32 %263, 1
  store i32 %264, ptr %262, align 4, !tbaa !21
  br label %323

265:                                              ; preds = %237, %224
  %266 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %267 = load i32, ptr %43, align 4, !tbaa !21
  %268 = zext i32 %267 to i64
  %269 = getelementptr inbounds [2 x float], ptr %266, i64 0, i64 %268
  %270 = load float, ptr %269, align 4, !tbaa !9
  %271 = load float, ptr %27, align 4, !tbaa !9
  %272 = fcmp oge float %270, %271
  br i1 %272, label %273, label %293

273:                                              ; preds = %265
  %274 = load i8, ptr %28, align 1, !tbaa !14, !range !22, !noundef !23
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %293

276:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %47, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %46, ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %277)
  %278 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %279 = load ptr, ptr %42, align 8, !tbaa !5
  %280 = load i32, ptr %279, align 4, !tbaa !21
  %281 = zext i32 %280 to i64
  %282 = getelementptr inbounds [2 x %class.Vector3], ptr %278, i64 0, i64 %281
  %283 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %282, ptr noundef nonnull align 4 dereferenceable(12) %46)
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #8
  %284 = load float, ptr %27, align 4, !tbaa !9
  %285 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %286 = load ptr, ptr %42, align 8, !tbaa !5
  %287 = load i32, ptr %286, align 4, !tbaa !21
  %288 = zext i32 %287 to i64
  %289 = getelementptr inbounds [2 x float], ptr %285, i64 0, i64 %288
  store float %284, ptr %289, align 4, !tbaa !9
  %290 = load ptr, ptr %42, align 8, !tbaa !5
  %291 = load i32, ptr %290, align 4, !tbaa !21
  %292 = add i32 %291, 1
  store i32 %292, ptr %290, align 4, !tbaa !21
  br label %322

293:                                              ; preds = %273, %265
  %294 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %22, i32 0, i32 1
  %295 = load i32, ptr %43, align 4, !tbaa !21
  %296 = zext i32 %295 to i64
  %297 = getelementptr inbounds [2 x float], ptr %294, i64 0, i64 %296
  %298 = load float, ptr %297, align 4, !tbaa !9
  %299 = load float, ptr %26, align 4, !tbaa !9
  %300 = fcmp ole float %298, %299
  br i1 %300, label %301, label %321

301:                                              ; preds = %293
  %302 = load i8, ptr %29, align 1, !tbaa !14, !range !22, !noundef !23
  %303 = trunc i8 %302 to i1
  br i1 %303, label %304, label %321

304:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 12, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %49, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %48, ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %305)
  %306 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %307 = load ptr, ptr %42, align 8, !tbaa !5
  %308 = load i32, ptr %307, align 4, !tbaa !21
  %309 = zext i32 %308 to i64
  %310 = getelementptr inbounds [2 x %class.Vector3], ptr %306, i64 0, i64 %309
  %311 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %310, ptr noundef nonnull align 4 dereferenceable(12) %48)
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %48) #8
  %312 = load float, ptr %26, align 4, !tbaa !9
  %313 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %314 = load ptr, ptr %42, align 8, !tbaa !5
  %315 = load i32, ptr %314, align 4, !tbaa !21
  %316 = zext i32 %315 to i64
  %317 = getelementptr inbounds [2 x float], ptr %313, i64 0, i64 %316
  store float %312, ptr %317, align 4, !tbaa !9
  %318 = load ptr, ptr %42, align 8, !tbaa !5
  %319 = load i32, ptr %318, align 4, !tbaa !21
  %320 = add i32 %319, 1
  store i32 %320, ptr %318, align 4, !tbaa !21
  br label %321

321:                                              ; preds = %304, %301, %293
  br label %322

322:                                              ; preds = %321, %276
  br label %323

323:                                              ; preds = %322, %245
  call void @llvm.lifetime.end.p0(i64 12, ptr %44) #8
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %43, align 4, !tbaa !21
  %326 = add i32 %325, 1
  store i32 %326, ptr %43, align 4, !tbaa !21
  br label %218, !llvm.loop !25

327:                                              ; preds = %223
  %328 = load ptr, ptr %42, align 8, !tbaa !5
  %329 = load i32, ptr %328, align 4, !tbaa !21
  %330 = icmp ugt i32 %329, 0
  %331 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 0
  %332 = zext i1 %330 to i8
  store i8 %332, ptr %331, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %333

333:                                              ; preds = %327, %214
  br label %334

334:                                              ; preds = %333, %148
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %335 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 1
  store ptr %335, ptr %50, align 8, !tbaa !5
  %336 = load ptr, ptr %50, align 8, !tbaa !5
  store i32 0, ptr %336, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  store i32 0, ptr %51, align 4, !tbaa !21
  br label %337

337:                                              ; preds = %375, %334
  %338 = load i32, ptr %51, align 4, !tbaa !21
  %339 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 1
  %340 = load i32, ptr %339, align 4, !tbaa !16
  %341 = icmp ult i32 %338, %340
  br i1 %341, label %343, label %342

342:                                              ; preds = %337
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %378

343:                                              ; preds = %337
  %344 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %345 = load i32, ptr %51, align 4, !tbaa !21
  %346 = zext i32 %345 to i64
  %347 = getelementptr inbounds [2 x float], ptr %344, i64 0, i64 %346
  %348 = load float, ptr %347, align 4, !tbaa !9
  %349 = fcmp oge float %348, 0.000000e+00
  br i1 %349, label %350, label %374

350:                                              ; preds = %343
  %351 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 3
  %352 = load i32, ptr %51, align 4, !tbaa !21
  %353 = zext i32 %352 to i64
  %354 = getelementptr inbounds [2 x float], ptr %351, i64 0, i64 %353
  %355 = load float, ptr %354, align 4, !tbaa !9
  %356 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 3
  %357 = load ptr, ptr %50, align 8, !tbaa !5
  %358 = load i32, ptr %357, align 4, !tbaa !21
  %359 = zext i32 %358 to i64
  %360 = getelementptr inbounds [2 x float], ptr %356, i64 0, i64 %359
  store float %355, ptr %360, align 4, !tbaa !9
  %361 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %30, i32 0, i32 2
  %362 = load i32, ptr %51, align 4, !tbaa !21
  %363 = zext i32 %362 to i64
  %364 = getelementptr inbounds [2 x %class.Vector3], ptr %361, i64 0, i64 %363
  %365 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 2
  %366 = load ptr, ptr %50, align 8, !tbaa !5
  %367 = load i32, ptr %366, align 4, !tbaa !21
  %368 = zext i32 %367 to i64
  %369 = getelementptr inbounds [2 x %class.Vector3], ptr %365, i64 0, i64 %368
  %370 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %369, ptr noundef nonnull align 4 dereferenceable(12) %364)
  %371 = load ptr, ptr %50, align 8, !tbaa !5
  %372 = load i32, ptr %371, align 4, !tbaa !21
  %373 = add i32 %372, 1
  store i32 %373, ptr %371, align 4, !tbaa !21
  br label %374

374:                                              ; preds = %350, %343
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %51, align 4, !tbaa !21
  %377 = add i32 %376, 1
  store i32 %377, ptr %51, align 4, !tbaa !21
  br label %337, !llvm.loop !27

378:                                              ; preds = %342
  %379 = load ptr, ptr %50, align 8, !tbaa !5
  %380 = load i32, ptr %379, align 4, !tbaa !21
  %381 = icmp ugt i32 %380, 0
  %382 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 0
  %383 = zext i1 %381 to i8
  store i8 %383, ptr %382, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 0}
!12 = !{!"_ZTSN8geometry5types15shapeCylinder_tE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!17, !18, i64 4}
!17 = !{!"_ZTSN8geometry5types15raycastResult_tE", !15, i64 0, !18, i64 4, !7, i64 8, !7, i64 32}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !18, i64 0}
!20 = !{!"_ZTSN8edbdmath17quadraticResult_tE", !18, i64 0, !7, i64 4}
!21 = !{!18, !18, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!17, !15, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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.Vector3 = type { [3 x float] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::raycastResult_t" = type { i8, i32, [2 x %class.Vector3], [2 x float] }
%"struct.edbdmath::quadraticResult_t" = type { i32, [2 x float] }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3miERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

declare { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef, float noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40)) unnamed_addr #4 align 2

declare void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3plERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #5 align 2

; 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 #6

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

declare noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7raycastERK7Vector3S2_RKNS_5types20isometricTransform_tERKNS3_15shapeCylinder_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::raycastResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(48) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %4) local_unnamed_addr #1 {
  %6 = alloca %class.Vector3, align 4
  %7 = alloca %class.Matrix33, align 4
  %8 = alloca %class.Vector3, align 4
  %9 = alloca %class.Vector3, align 4
  %10 = alloca %class.Vector3, align 4
  %11 = alloca %class.Matrix33, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca %class.Vector3, align 4
  %14 = alloca %"struct.edbdmath::quadraticResult_t", align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %"struct.geometry::types::raycastResult_t", align 4
  %20 = alloca %class.Vector3, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca %class.Vector3, align 4
  %24 = alloca %class.Vector3, align 4
  %25 = alloca %class.Vector3, align 4
  %26 = alloca %class.Vector3, align 4
  %27 = alloca %class.Vector3, align 4
  %28 = alloca %class.Vector3, align 4
  %29 = alloca %class.Vector3, align 4
  %30 = alloca %class.Vector3, align 4
  %31 = alloca %class.Vector3, align 4
  %32 = alloca %class.Vector3, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %class.Vector3, align 4
  %35 = alloca %class.Vector3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %7) #7
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %3)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %36 = getelementptr inbounds i8, ptr %3, i64 36
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %10, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %11) #7
  call void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36) %11, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %11, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %37 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %38 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %39 = fmul float %38, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %11, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %40 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %41 = load float, ptr %4, align 4, !tbaa !5
  %42 = fneg float %41
  %43 = call float @llvm.fmuladd.f32(float %42, float %41, float %40)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  %44 = call { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef %37, float noundef %39, float noundef %43)
  %.fca.0.extract = extractvalue { i64, float } %44, 0
  %.fca.1.extract = extractvalue { i64, float } %44, 1
  store i64 %.fca.0.extract, ptr %14, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %45 = getelementptr inbounds i8, ptr %4, i64 4
  %46 = load float, ptr %45, align 4, !tbaa !10
  %47 = fmul float %46, -5.000000e-01
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fsub float %47, %49
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %52 = load float, ptr %51, align 4, !tbaa !11
  %53 = fdiv float %50, %52
  store float %53, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %54 = load float, ptr %45, align 4, !tbaa !10
  %55 = fmul float %54, 5.000000e-01
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %57 = load float, ptr %56, align 4, !tbaa !11
  %58 = fsub float %55, %57
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %60 = load float, ptr %59, align 4, !tbaa !11
  %61 = fdiv float %58, %60
  store float %61, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %62 = 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)
  %63 = load float, ptr %62, align 4, !tbaa !11
  store float %63, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %65 = load float, ptr %64, align 4, !tbaa !11
  store float %65, ptr %18, align 4, !tbaa !11
  %66 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %37, float noundef %39, float noundef %43, float noundef %65)
  %67 = fcmp ugt float %66, 0.000000e+00
  %68 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %37, float noundef %39, float noundef %43, float noundef %63)
  %69 = fcmp ugt float %68, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #7
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %19)
  %70 = getelementptr inbounds i8, ptr %19, i64 4
  store i32 0, ptr %70, align 4, !tbaa !12
  %71 = trunc i64 %.fca.0.extract to i32
  switch i32 %71, label %.lr.ph [
    i32 0, label %72
    i32 1, label %95
  ]

72:                                               ; preds = %5
  br i1 %67, label %81, label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %74 = getelementptr inbounds i8, ptr %19, i64 8
  %75 = load i32, ptr %70, align 4, !tbaa !16
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [2 x %class.Vector3], ptr %74, i64 0, i64 %76
  %78 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #7
  %79 = load i32, ptr %70, align 4, !tbaa !16
  %80 = add i32 %79, 1
  store i32 %80, ptr %70, align 4, !tbaa !16
  br label %81

81:                                               ; preds = %73, %72
  %82 = phi i32 [ %80, %73 ], [ 0, %72 ]
  br i1 %69, label %91, label %83

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %84 = getelementptr inbounds i8, ptr %19, i64 8
  %85 = load i32, ptr %70, align 4, !tbaa !16
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds [2 x %class.Vector3], ptr %84, i64 0, i64 %86
  %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  %89 = load i32, ptr %70, align 4, !tbaa !16
  %90 = add i32 %89, 1
  store i32 %90, ptr %70, align 4, !tbaa !16
  br label %91

91:                                               ; preds = %83, %81
  %92 = phi i32 [ %90, %83 ], [ %82, %81 ]
  %93 = icmp ne i32 %92, 0
  %94 = zext i1 %93 to i8
  store i8 %94, ptr %19, align 4, !tbaa !17
  br label %159

95:                                               ; preds = %5
  %96 = lshr i64 %.fca.0.extract, 32
  %97 = trunc nuw i64 %96 to i32
  %98 = bitcast i32 %97 to float
  %99 = fcmp ult float %65, %98
  %100 = fcmp ugt float %63, %98
  %or.cond = select i1 %99, i1 true, i1 %100
  br i1 %or.cond, label %107, label %101

101:                                              ; preds = %95
  %102 = getelementptr inbounds i8, ptr %14, i64 4
  store i8 1, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %103 = getelementptr inbounds i8, ptr %19, i64 8
  %104 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %103, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #7
  store i32 1, ptr %70, align 4, !tbaa !12
  %105 = load float, ptr %102, align 4, !tbaa !11
  %106 = getelementptr inbounds i8, ptr %19, i64 32
  store float %105, ptr %106, align 4, !tbaa !11
  br label %159

107:                                              ; preds = %95
  br i1 %67, label %113, label %108

108:                                              ; preds = %107
  store i8 1, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %27, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %109 = getelementptr inbounds i8, ptr %19, i64 8
  %110 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %109, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #7
  store i32 1, ptr %70, align 4, !tbaa !12
  %111 = load float, ptr %18, align 4, !tbaa !11
  %112 = getelementptr inbounds i8, ptr %19, i64 32
  store float %111, ptr %112, align 4, !tbaa !11
  br label %159

113:                                              ; preds = %107
  br i1 %69, label %119, label %114

114:                                              ; preds = %113
  store i8 1, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %115 = getelementptr inbounds i8, ptr %19, i64 8
  %116 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %115, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #7
  store i32 1, ptr %70, align 4, !tbaa !12
  %117 = load float, ptr %17, align 4, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %19, i64 32
  store float %117, ptr %118, align 4, !tbaa !11
  br label %159

119:                                              ; preds = %113
  store i8 0, ptr %19, align 4, !tbaa !17
  br label %159

.lr.ph:                                           ; preds = %5
  %120 = getelementptr inbounds i8, ptr %14, i64 4
  %121 = getelementptr inbounds i8, ptr %19, i64 8
  %122 = getelementptr inbounds i8, ptr %19, i64 32
  br label %125

._crit_edge:                                      ; preds = %155
  %.pre = load i32, ptr %70, align 4, !tbaa !16
  %123 = icmp ne i32 %.pre, 0
  %124 = zext i1 %123 to i8
  store i8 %124, ptr %19, align 4, !tbaa !17
  br label %159

125:                                              ; preds = %.lr.ph, %155
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %155 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #7
  %126 = getelementptr inbounds [2 x float], ptr %120, i64 0, i64 %indvars.iv
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(4) %126, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %30, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #7
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = load float, ptr %18, align 4, !tbaa !11
  %129 = fcmp ugt float %127, %128
  %130 = load float, ptr %17, align 4
  %131 = fcmp ult float %127, %130
  %or.cond73 = select i1 %129, i1 true, i1 %131
  br i1 %or.cond73, label %137, label %132

132:                                              ; preds = %125
  %133 = load i32, ptr %70, align 4, !tbaa !16
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds [2 x %class.Vector3], ptr %121, i64 0, i64 %134
  %136 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %135, ptr noundef nonnull align 4 dereferenceable(12) %30)
  br label %.sink.split

137:                                              ; preds = %125
  %138 = fcmp ult float %127, %128
  %brmerge = or i1 %67, %138
  br i1 %brmerge, label %144, label %139

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %33) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %140 = load i32, ptr %70, align 4, !tbaa !16
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [2 x %class.Vector3], ptr %121, i64 0, i64 %141
  %143 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %142, ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #7
  br label %.sink.split

144:                                              ; preds = %137
  %145 = fcmp ugt float %127, %130
  %brmerge75 = or i1 %69, %145
  br i1 %brmerge75, label %155, label %146

146:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %35) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %147 = load i32, ptr %70, align 4, !tbaa !16
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds [2 x %class.Vector3], ptr %121, i64 0, i64 %148
  %150 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %149, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #7
  br label %.sink.split

.sink.split:                                      ; preds = %132, %146, %139
  %.sink.in = phi ptr [ %18, %139 ], [ %17, %146 ], [ %126, %132 ]
  %.sink = load float, ptr %.sink.in, align 4, !tbaa !11
  %151 = load i32, ptr %70, align 4, !tbaa !16
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds [2 x float], ptr %122, i64 0, i64 %152
  store float %.sink, ptr %153, align 4, !tbaa !11
  %154 = add i32 %151, 1
  store i32 %154, ptr %70, align 4, !tbaa !16
  br label %155

155:                                              ; preds = %.sink.split, %144
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %156 = load i32, ptr %14, align 8, !tbaa !18
  %157 = zext i32 %156 to i64
  %158 = icmp ult i64 %indvars.iv.next, %157
  br i1 %158, label %125, label %._crit_edge, !llvm.loop !20

159:                                              ; preds = %._crit_edge, %108, %119, %114, %101, %91
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %0)
  %160 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %160, align 4, !tbaa !16
  %161 = load i32, ptr %70, align 4, !tbaa !12
  %.not81 = icmp eq i32 %161, 0
  br i1 %.not81, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %159
  %162 = getelementptr inbounds i8, ptr %19, i64 32
  %163 = getelementptr inbounds i8, ptr %0, i64 32
  %164 = getelementptr inbounds i8, ptr %19, i64 8
  %165 = getelementptr inbounds i8, ptr %0, i64 8
  br label %169

._crit_edge80.loopexit:                           ; preds = %183
  %166 = icmp ne i32 %185, 0
  %167 = zext i1 %166 to i8
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit, %159
  %168 = phi i8 [ %167, %._crit_edge80.loopexit ], [ 0, %159 ]
  store i8 %168, ptr %0, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  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 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  ret void

169:                                              ; preds = %.lr.ph79, %183
  %170 = phi i32 [ %161, %.lr.ph79 ], [ %184, %183 ]
  %171 = phi i32 [ 0, %.lr.ph79 ], [ %185, %183 ]
  %indvars.iv83 = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next84, %183 ]
  %172 = getelementptr inbounds [2 x float], ptr %162, i64 0, i64 %indvars.iv83
  %173 = load float, ptr %172, align 4, !tbaa !11
  %174 = fcmp ult float %173, 0.000000e+00
  br i1 %174, label %183, label %175

175:                                              ; preds = %169
  %176 = zext i32 %171 to i64
  %177 = getelementptr inbounds [2 x float], ptr %163, i64 0, i64 %176
  store float %173, ptr %177, align 4, !tbaa !11
  %178 = getelementptr inbounds [2 x %class.Vector3], ptr %164, i64 0, i64 %indvars.iv83
  %179 = getelementptr inbounds [2 x %class.Vector3], ptr %165, i64 0, i64 %176
  %180 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %179, ptr noundef nonnull align 4 dereferenceable(12) %178)
  %181 = load i32, ptr %160, align 4, !tbaa !16
  %182 = add i32 %181, 1
  store i32 %182, ptr %160, align 4, !tbaa !16
  %.pre86 = load i32, ptr %70, align 4, !tbaa !12
  br label %183

183:                                              ; preds = %169, %175
  %184 = phi i32 [ %170, %169 ], [ %.pre86, %175 ]
  %185 = phi i32 [ %171, %169 ], [ %182, %175 ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %186 = zext i32 %184 to i64
  %187 = icmp ult i64 %indvars.iv.next84, %186
  br i1 %187, label %169, label %._crit_edge80.loopexit, !llvm.loop !22
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTSN8geometry5types15shapeCylinder_tE", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !15, i64 4}
!13 = !{!"_ZTSN8geometry5types15raycastResult_tE", !14, i64 0, !15, i64 4, !8, i64 8, !8, i64 32}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!13, !14, i64 0}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ZTSN8edbdmath17quadraticResult_tE", !15, i64 0, !8, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass