; LLVM IR from ysyesilyurt/ComputerGraphics :: RayTracing/Shape.ll (ZNK6Sphere9intersectERK3Ray)

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

%struct.IntersectionData = type { float, %struct.Vector3f, i32 }
%struct.Vector3f = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%class.Ray = type { %struct.Vector3f, %struct.Vector3f }
%class.Scene = type { i32, float, float, %struct.Vector3f, %struct.Vector3f, %"class.std::vector", %"class.std::vector.2", %"class.std::vector.7", %"class.std::vector.12", %"class.std::vector.17" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl" }
%"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<PointLight *, std::allocator<PointLight *>>::_Vector_impl" }
%"struct.std::_Vector_base<PointLight *, std::allocator<PointLight *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PointLight *, std::allocator<PointLight *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PointLight *, std::allocator<PointLight *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<Material *, std::allocator<Material *>>::_Vector_impl" }
%"struct.std::_Vector_base<Material *, std::allocator<Material *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Material *, std::allocator<Material *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Material *, std::allocator<Material *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<Vector3f, std::allocator<Vector3f>>::_Vector_impl" }
%"struct.std::_Vector_base<Vector3f, std::allocator<Vector3f>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vector3f, std::allocator<Vector3f>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vector3f, std::allocator<Vector3f>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<Shape *, std::allocator<Shape *>>::_Vector_impl" }
%"struct.std::_Vector_base<Shape *, std::allocator<Shape *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Shape *, std::allocator<Shape *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Shape *, std::allocator<Shape *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Sphere = type { %class.Shape, i32, float }
%class.Shape = type { ptr, i32, i32 }

@pScene = external global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Sphere9intersectERK3Ray(ptr dead_on_unwind noalias writable sret(%struct.IntersectionData) align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(24) %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca %struct.Vector3f, align 4
  %8 = alloca %struct.Vector3f, align 4
  %9 = alloca { <2 x float>, float }, align 4
  %10 = alloca { <2 x float>, float }, align 8
  %11 = alloca float, align 4
  %12 = alloca %struct.Vector3f, align 4
  %13 = alloca %struct.Vector3f, align 4
  %14 = alloca { <2 x float>, float }, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %struct.Vector3f, align 4
  %17 = alloca %struct.Vector3f, align 4
  %18 = alloca { <2 x float>, float }, align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.Vector3f, align 4
  %25 = alloca %struct.Vector3f, align 4
  %26 = alloca %struct.Vector3f, align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca { <2 x float>, float }, align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca %struct.Vector3f, align 4
  %31 = alloca { <2 x float>, float }, align 4
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca { <2 x float>, float }, align 4
  %34 = alloca { <2 x float>, float }, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.Ray, ptr %36, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #8
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.Ray, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr @pScene, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.Scene, ptr %40, i32 0, i32 8
  %42 = getelementptr inbounds %class.Sphere, ptr %35, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !9
  %44 = sub nsw i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %45) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %46, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %8, i64 12, i1 false)
  %47 = getelementptr inbounds { <2 x float>, float }, ptr %9, i32 0, i32 0
  %48 = load <2 x float>, ptr %47, align 4
  %49 = getelementptr inbounds { <2 x float>, float }, ptr %9, i32 0, i32 1
  %50 = load float, ptr %49, align 4
  %51 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %39, <2 x float> %48, float %50)
  store { <2 x float>, float } %51, ptr %10, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 8 %10, i64 12, i1 false)
  %52 = call noundef float @_Z10dotProductRK8Vector3fS1_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  store float %52, ptr %6, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.Ray, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr @pScene, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.Scene, ptr %55, i32 0, i32 8
  %57 = getelementptr inbounds %class.Sphere, ptr %35, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !9
  %59 = sub nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %60) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %61, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %13, i64 12, i1 false)
  %62 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 0
  %63 = load <2 x float>, ptr %62, align 4
  %64 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 1
  %65 = load float, ptr %64, align 4
  %66 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %54, <2 x float> %63, float %65)
  store { <2 x float>, float } %66, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #8
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Ray, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr @pScene, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.Scene, ptr %69, i32 0, i32 8
  %71 = getelementptr inbounds %class.Sphere, ptr %35, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !9
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %74) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %75, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %17, i64 12, i1 false)
  %76 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 0
  %77 = load <2 x float>, ptr %76, align 4
  %78 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 1
  %79 = load float, ptr %78, align 4
  %80 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %68, <2 x float> %77, float %79)
  store { <2 x float>, float } %80, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %19, i64 12, i1 false)
  %81 = call noundef float @_Z10dotProductRK8Vector3fS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %82 = getelementptr inbounds %class.Sphere, ptr %35, i32 0, i32 2
  %83 = load float, ptr %82, align 4, !tbaa !17
  %84 = fsub float %81, %83
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  store float %84, ptr %11, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %85 = load float, ptr %6, align 4, !tbaa !16
  %86 = load float, ptr %6, align 4, !tbaa !16
  %87 = load float, ptr %11, align 4, !tbaa !16
  %88 = fneg float %87
  %89 = call float @llvm.fmuladd.f32(float %85, float %86, float %88)
  store float %89, ptr %20, align 4, !tbaa !16
  %90 = load float, ptr %20, align 4, !tbaa !16
  %91 = load ptr, ptr @pScene, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.Scene, ptr %91, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !18
  %94 = fcmp olt float %90, %93
  br i1 %94, label %95, label %102

95:                                               ; preds = %3
  %96 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 0
  store float 0x47EFFFFFE0000000, ptr %96, align 4, !tbaa !41
  %97 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 1
  %98 = getelementptr inbounds %struct.Vector3f, ptr %97, i32 0, i32 0
  store float 0.000000e+00, ptr %98, align 4, !tbaa !15
  %99 = getelementptr inbounds %struct.Vector3f, ptr %97, i32 0, i32 1
  store float 0.000000e+00, ptr %99, align 4, !tbaa !15
  %100 = getelementptr inbounds %struct.Vector3f, ptr %97, i32 0, i32 2
  store float 0.000000e+00, ptr %100, align 4, !tbaa !15
  %101 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 2
  store i32 -1, ptr %101, align 4, !tbaa !43
  store i32 1, ptr %21, align 4
  br label %167

102:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %103 = load float, ptr %6, align 4, !tbaa !16
  %104 = fneg float %103
  %105 = load float, ptr %20, align 4, !tbaa !16
  %106 = call noundef float @_ZSt4sqrtf(float noundef %105)
  %107 = fsub float %104, %106
  store float %107, ptr %22, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %108 = load float, ptr %6, align 4, !tbaa !16
  %109 = fneg float %108
  %110 = load float, ptr %20, align 4, !tbaa !16
  %111 = call noundef float @_ZSt4sqrtf(float noundef %110)
  %112 = fadd float %109, %111
  store float %112, ptr %23, align 4, !tbaa !16
  %113 = load float, ptr %22, align 4, !tbaa !16
  %114 = load ptr, ptr @pScene, align 8, !tbaa !5
  %115 = getelementptr inbounds %class.Scene, ptr %114, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !18
  %117 = fcmp olt float %113, %116
  br i1 %117, label %118, label %131

118:                                              ; preds = %102
  %119 = load float, ptr %23, align 4, !tbaa !16
  %120 = load ptr, ptr @pScene, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.Scene, ptr %120, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !18
  %123 = fcmp olt float %119, %122
  br i1 %123, label %124, label %131

124:                                              ; preds = %118
  %125 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 0
  store float 0x47EFFFFFE0000000, ptr %125, align 4, !tbaa !41
  %126 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 1
  %127 = getelementptr inbounds %struct.Vector3f, ptr %126, i32 0, i32 0
  store float 0.000000e+00, ptr %127, align 4, !tbaa !15
  %128 = getelementptr inbounds %struct.Vector3f, ptr %126, i32 0, i32 1
  store float 0.000000e+00, ptr %128, align 4, !tbaa !15
  %129 = getelementptr inbounds %struct.Vector3f, ptr %126, i32 0, i32 2
  store float 0.000000e+00, ptr %129, align 4, !tbaa !15
  %130 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 2
  store i32 -1, ptr %130, align 4, !tbaa !43
  store i32 1, ptr %21, align 4
  br label %166

131:                                              ; preds = %118, %102
  %132 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 0
  %133 = load float, ptr %22, align 4, !tbaa !16
  store float %133, ptr %132, align 4, !tbaa !41
  %134 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #8
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.Ray, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %class.Ray, ptr %137, i32 0, i32 1
  %139 = load float, ptr %22, align 4, !tbaa !16
  %140 = call { <2 x float>, float } @_ZNK8Vector3fmlEf(ptr noundef nonnull align 4 dereferenceable(12) %138, float noundef %139)
  store { <2 x float>, float } %140, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %26, i64 12, i1 false)
  %141 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 0
  %142 = load <2 x float>, ptr %141, align 4
  %143 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 1
  %144 = load float, ptr %143, align 4
  %145 = call { <2 x float>, float } @_ZNK8Vector3fplES_(ptr noundef nonnull align 4 dereferenceable(12) %136, <2 x float> %142, float %144)
  store { <2 x float>, float } %145, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %29, i64 12, i1 false)
  %146 = load ptr, ptr @pScene, align 8, !tbaa !5
  %147 = getelementptr inbounds %class.Scene, ptr %146, i32 0, i32 8
  %148 = getelementptr inbounds %class.Sphere, ptr %35, i32 0, i32 1
  %149 = load i32, ptr %148, align 8, !tbaa !9
  %150 = sub nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %151) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %152, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %30, i64 12, i1 false)
  %153 = getelementptr inbounds { <2 x float>, float }, ptr %31, i32 0, i32 0
  %154 = load <2 x float>, ptr %153, align 4
  %155 = getelementptr inbounds { <2 x float>, float }, ptr %31, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %25, <2 x float> %154, float %156)
  store { <2 x float>, float } %157, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %24, i64 12, i1 false)
  %158 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %159 = load <2 x float>, ptr %158, align 4
  %160 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %161 = load float, ptr %160, align 4
  %162 = call { <2 x float>, float } @_Z9normalize8Vector3f(<2 x float> %159, float %161)
  store { <2 x float>, float } %162, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %134, ptr align 8 %34, i64 12, i1 false)
  %163 = getelementptr inbounds %struct.IntersectionData, ptr %0, i32 0, i32 2
  %164 = getelementptr inbounds %class.Shape, ptr %35, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !44
  store i32 %165, ptr %163, align 4, !tbaa !43
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #8
  store i32 1, ptr %21, align 4
  br label %166

166:                                              ; preds = %131, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %167

167:                                              ; preds = %166, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, float) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z9normalize8Vector3f(<2 x float>, float) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8Vector3fplES_(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, float) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8Vector3fmlEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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, !12, i64 16}
!10 = !{!"_ZTS6Sphere", !11, i64 0, !12, i64 16, !13, i64 20}
!11 = !{!"_ZTS5Shape", !12, i64 8, !12, i64 12}
!12 = !{!"int", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{i64 0, i64 4, !15, i64 4, i64 4, !15, i64 8, i64 4, !15}
!15 = !{!7, !7, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!10, !13, i64 20}
!18 = !{!19, !13, i64 4}
!19 = !{!"_ZTS5Scene", !12, i64 0, !13, i64 4, !13, i64 8, !20, i64 12, !20, i64 24, !21, i64 40, !25, i64 64, !29, i64 88, !33, i64 112, !37, i64 136}
!20 = !{!"_ZTS8Vector3f", !7, i64 0, !7, i64 4, !7, i64 8}
!21 = !{!"_ZTSSt6vectorIP6CameraSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP6CameraSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIP10PointLightSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP10PointLightSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt6vectorIP8MaterialSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP8MaterialSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorI8Vector3fSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI8Vector3fSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIP5ShapeSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIP5ShapeSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!42, !13, i64 0}
!42 = !{!"_ZTS16IntersectionData", !13, i64 0, !20, i64 4, !12, i64 16}
!43 = !{!42, !12, i64 16}
!44 = !{!11, !12, i64 12}


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

%struct.IntersectionData = type { float, %struct.Vector3f, i32 }
%struct.Vector3f = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }

@pScene = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Sphere9intersectERK3Ray(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.IntersectionData) align 4 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(24) %2) unnamed_addr #0 align 2 {
  %4 = alloca %struct.Vector3f, align 8
  %5 = alloca %struct.Vector3f, align 8
  %6 = alloca %struct.Vector3f, align 8
  %7 = alloca %struct.Vector3f, align 8
  %8 = getelementptr inbounds i8, ptr %2, i64 12
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #7
  %9 = load ptr, ptr @pScene, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 112
  %11 = getelementptr inbounds i8, ptr %1, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = add nsw i32 %12, -1
  %14 = sext i32 %13 to i64
  %15 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %14) #7
  %.sroa.054.0.copyload = load <2 x float>, ptr %15, align 4
  %.sroa.255.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.255.0.copyload = load float, ptr %.sroa.255.0..sroa_idx, align 4, !tbaa !14
  %16 = tail call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %2, <2 x float> %.sroa.054.0.copyload, float %.sroa.255.0.copyload)
  %.fca.0.extract48 = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract49 = extractvalue { <2 x float>, float } %16, 1
  store <2 x float> %.fca.0.extract48, ptr %4, align 8
  %.sroa.251.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store float %.fca.1.extract49, ptr %.sroa.251.0..sroa_idx, align 8
  %17 = call noundef float @_Z10dotProductRK8Vector3fS1_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  %18 = load ptr, ptr @pScene, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 112
  %20 = load i32, ptr %11, align 8, !tbaa !9
  %21 = add nsw i32 %20, -1
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %22) #7
  %.sroa.045.0.copyload = load <2 x float>, ptr %23, align 4
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.246.0.copyload = load float, ptr %.sroa.246.0..sroa_idx, align 4, !tbaa !14
  %24 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %2, <2 x float> %.sroa.045.0.copyload, float %.sroa.246.0.copyload)
  %.fca.0.extract39 = extractvalue { <2 x float>, float } %24, 0
  %.fca.1.extract40 = extractvalue { <2 x float>, float } %24, 1
  store <2 x float> %.fca.0.extract39, ptr %5, align 8
  %.sroa.242.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store float %.fca.1.extract40, ptr %.sroa.242.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  %25 = load ptr, ptr @pScene, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 112
  %27 = load i32, ptr %11, align 8, !tbaa !9
  %28 = add nsw i32 %27, -1
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %29) #7
  %.sroa.037.0.copyload = load <2 x float>, ptr %30, align 4
  %.sroa.238.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  %.sroa.238.0.copyload = load float, ptr %.sroa.238.0..sroa_idx, align 4, !tbaa !14
  %31 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %2, <2 x float> %.sroa.037.0.copyload, float %.sroa.238.0.copyload)
  %.fca.0.extract31 = extractvalue { <2 x float>, float } %31, 0
  %.fca.1.extract32 = extractvalue { <2 x float>, float } %31, 1
  store <2 x float> %.fca.0.extract31, ptr %6, align 8
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store float %.fca.1.extract32, ptr %.sroa.234.0..sroa_idx, align 8
  %32 = call noundef float @_Z10dotProductRK8Vector3fS1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %33 = getelementptr inbounds i8, ptr %1, i64 20
  %34 = load float, ptr %33, align 4, !tbaa !15
  %35 = fsub float %32, %34
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  %36 = fneg float %35
  %37 = call float @llvm.fmuladd.f32(float %17, float %17, float %36)
  %38 = load ptr, ptr @pScene, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 4
  %40 = load float, ptr %39, align 4, !tbaa !16
  %41 = fcmp olt float %37, %40
  br i1 %41, label %42, label %44

42:                                               ; preds = %3
  store <4 x float> <float 0x47EFFFFFE0000000, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, ptr %0, align 4, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 -1, ptr %43, align 4, !tbaa !39
  br label %72

44:                                               ; preds = %3
  %45 = fneg float %17
  %46 = call noundef float @_ZSt4sqrtf(float noundef %37)
  %47 = fsub float %45, %46
  %48 = call noundef float @_ZSt4sqrtf(float noundef %37)
  %49 = load ptr, ptr @pScene, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 4
  %51 = load float, ptr %50, align 4, !tbaa !16
  %52 = fcmp olt float %47, %51
  %53 = fsub float %48, %17
  %54 = fcmp olt float %53, %51
  %or.cond = and i1 %52, %54
  br i1 %or.cond, label %55, label %57

55:                                               ; preds = %44
  store <4 x float> <float 0x47EFFFFFE0000000, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, ptr %0, align 4, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 -1, ptr %56, align 4, !tbaa !39
  br label %72

57:                                               ; preds = %44
  %58 = getelementptr inbounds i8, ptr %0, i64 4
  store float %47, ptr %0, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %59 = call { <2 x float>, float } @_ZNK8Vector3fmlEf(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %47)
  %.fca.0.extract17 = extractvalue { <2 x float>, float } %59, 0
  %.fca.1.extract18 = extractvalue { <2 x float>, float } %59, 1
  %60 = call { <2 x float>, float } @_ZNK8Vector3fplES_(ptr noundef nonnull align 4 dereferenceable(12) %2, <2 x float> %.fca.0.extract17, float %.fca.1.extract18)
  %.fca.0.extract11 = extractvalue { <2 x float>, float } %60, 0
  %.fca.1.extract12 = extractvalue { <2 x float>, float } %60, 1
  store <2 x float> %.fca.0.extract11, ptr %7, align 8
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract12, ptr %.sroa.214.0..sroa_idx, align 8
  %61 = load ptr, ptr @pScene, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 112
  %63 = load i32, ptr %11, align 8, !tbaa !9
  %64 = add nsw i32 %63, -1
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %65) #7
  %.sroa.09.0.copyload = load <2 x float>, ptr %66, align 4
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %66, i64 8
  %.sroa.210.0.copyload = load float, ptr %.sroa.210.0..sroa_idx, align 4, !tbaa !14
  %67 = call { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12) %7, <2 x float> %.sroa.09.0.copyload, float %.sroa.210.0.copyload)
  %.fca.0.extract3 = extractvalue { <2 x float>, float } %67, 0
  %.fca.1.extract4 = extractvalue { <2 x float>, float } %67, 1
  %68 = call { <2 x float>, float } @_Z9normalize8Vector3f(<2 x float> %.fca.0.extract3, float %.fca.1.extract4)
  %.fca.0.extract = extractvalue { <2 x float>, float } %68, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %68, 1
  store <2 x float> %.fca.0.extract, ptr %58, align 4
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 12
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 4
  %69 = getelementptr inbounds i8, ptr %0, i64 16
  %70 = getelementptr inbounds i8, ptr %1, i64 12
  %71 = load i32, ptr %70, align 4, !tbaa !42
  store i32 %71, ptr %69, align 4, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %72

72:                                               ; preds = %55, %57, %42
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8Vector3fmiES_(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, float) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI8Vector3fSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z9normalize8Vector3f(<2 x float>, float) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8Vector3fplES_(ptr noundef nonnull align 4 dereferenceable(12), <2 x float>, float) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK8Vector3fmlEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 16}
!10 = !{!"_ZTS6Sphere", !11, i64 0, !12, i64 16, !13, i64 20}
!11 = !{!"_ZTS5Shape", !12, i64 8, !12, i64 12}
!12 = !{!"int", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !13, i64 20}
!16 = !{!17, !13, i64 4}
!17 = !{!"_ZTS5Scene", !12, i64 0, !13, i64 4, !13, i64 8, !18, i64 12, !18, i64 24, !19, i64 40, !23, i64 64, !27, i64 88, !31, i64 112, !35, i64 136}
!18 = !{!"_ZTS8Vector3f", !7, i64 0, !7, i64 4, !7, i64 8}
!19 = !{!"_ZTSSt6vectorIP6CameraSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIP6CameraSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIP10PointLightSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP10PointLightSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIP8MaterialSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP8MaterialSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorI8Vector3fSaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseI8Vector3fSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorIP5ShapeSaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIP5ShapeSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!40, !12, i64 16}
!40 = !{!"_ZTS16IntersectionData", !13, i64 0, !18, i64 4, !12, i64 16}
!41 = !{!40, !13, i64 0}
!42 = !{!11, !12, i64 12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass