; LLVM IR from ysyesilyurt/ComputerGraphics :: RayTracing/Scene.ll (Z11renderPixeliiP5Scenei)

; 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 }
%union.Color = type { %struct.anon }
%struct.anon = type { i8, i8, i8 }
%class.Ray = type { %struct.Vector3f, %struct.Vector3f }
%class.Scene = type { i32, float, float, %struct.Vector3f, %struct.Vector3f, %"class.std::vector.2", %"class.std::vector.7", %"class.std::vector.12", %"class.std::vector.17", %"class.std::vector" }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = 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.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = 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.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12intersectRayRK3RayRKSt6vectorIP5ShapeSaIS4_EE(ptr dead_on_unwind noalias writable sret(%struct.IntersectionData) align 4, ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z15computeRadianceRK3RayRK16IntersectionDataP5Scenei(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20), ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local i24 @_Z11renderPixeliiP5Scenei(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #3 {
  %5 = alloca %union.Color, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %class.Ray, align 4
  %11 = alloca %struct.IntersectionData, align 4
  %12 = alloca %struct.Vector3f, align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca i32, align 4
  %15 = alloca i24, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %16 = load ptr, ptr %8, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.Scene, ptr %16, i32 0, i32 5
  %18 = load i32, ptr %9, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6CameraSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %19) #6
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZNK6Camera13getPrimaryRayEii(ptr dead_on_unwind writable sret(%class.Ray) align 4 %10, ptr noundef nonnull align 4 dereferenceable(112) %21, i32 noundef %22, i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 20, ptr %11) #6
  %24 = load ptr, ptr %8, align 8, !tbaa !9
  %25 = getelementptr inbounds %class.Scene, ptr %24, i32 0, i32 9
  call void @_Z12intersectRayRK3RayRKSt6vectorIP5ShapeSaIS4_EE(ptr dead_on_unwind writable sret(%struct.IntersectionData) align 4 %11, ptr noundef nonnull align 4 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %25)
  %26 = getelementptr inbounds %struct.IntersectionData, ptr %11, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = fcmp une float %27, 0x47EFFFFFE0000000
  br i1 %28, label %29, label %47

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  %32 = getelementptr inbounds %class.Scene, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !15
  %34 = call { <2 x float>, float } @_Z15computeRadianceRK3RayRK16IntersectionDataP5Scenei(ptr noundef nonnull align 4 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(20) %11, ptr noundef %30, i32 noundef %33)
  store { <2 x float>, float } %34, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %13, i64 12, i1 false)
  %35 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 0
  %36 = getelementptr inbounds %struct.Vector3f, ptr %12, i32 0, i32 0
  %37 = load float, ptr %36, align 4, !tbaa !37
  %38 = fptoui float %37 to i8
  store i8 %38, ptr %35, align 1, !tbaa !38
  %39 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 1
  %40 = getelementptr inbounds %struct.Vector3f, ptr %12, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !37
  %42 = fptoui float %41 to i8
  store i8 %42, ptr %39, align 1, !tbaa !40
  %43 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 2
  %44 = getelementptr inbounds %struct.Vector3f, ptr %12, i32 0, i32 2
  %45 = load float, ptr %44, align 4, !tbaa !37
  %46 = fptoui float %45 to i8
  store i8 %46, ptr %43, align 1, !tbaa !41
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  br label %66

47:                                               ; preds = %4
  %48 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 0
  %49 = load ptr, ptr %8, align 8, !tbaa !9
  %50 = getelementptr inbounds %class.Scene, ptr %49, i32 0, i32 3
  %51 = getelementptr inbounds %struct.Vector3f, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 4, !tbaa !37
  %53 = fptoui float %52 to i8
  store i8 %53, ptr %48, align 1, !tbaa !38
  %54 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 1
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  %56 = getelementptr inbounds %class.Scene, ptr %55, i32 0, i32 3
  %57 = getelementptr inbounds %struct.Vector3f, ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !37
  %59 = fptoui float %58 to i8
  store i8 %59, ptr %54, align 1, !tbaa !40
  %60 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 2
  %61 = load ptr, ptr %8, align 8, !tbaa !9
  %62 = getelementptr inbounds %class.Scene, ptr %61, i32 0, i32 3
  %63 = getelementptr inbounds %struct.Vector3f, ptr %62, i32 0, i32 2
  %64 = load float, ptr %63, align 4, !tbaa !37
  %65 = fptoui float %64 to i8
  store i8 %65, ptr %60, align 1, !tbaa !41
  store i32 1, ptr %14, align 4
  br label %66

66:                                               ; preds = %47, %29
  call void @llvm.lifetime.end.p0(i64 20, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  %67 = getelementptr inbounds %union.Color, ptr %5, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 1 %67, i64 3, i1 false)
  %68 = load i24, ptr %15, align 4
  ret i24 %68
}

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

declare void @_ZNK6Camera13getPrimaryRayEii(ptr dead_on_unwind writable sret(%class.Ray) align 4, ptr noundef nonnull align 4 dereferenceable(112), i32 noundef, i32 noundef) #5

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS16IntersectionData", !13, i64 0, !14, i64 4, !6, i64 16}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS8Vector3f", !7, i64 0, !7, i64 4, !7, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS5Scene", !6, i64 0, !13, i64 4, !13, i64 8, !14, i64 12, !14, i64 24, !17, i64 40, !21, i64 64, !25, i64 88, !29, i64 112, !33, i64 136}
!17 = !{!"_ZTSSt6vectorIP6CameraSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP6CameraSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!21 = !{!"_ZTSSt6vectorIP10PointLightSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP10PointLightSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!25 = !{!"_ZTSSt6vectorIP8MaterialSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP8MaterialSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!29 = !{!"_ZTSSt6vectorI8Vector3fSaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseI8Vector3fSaIS0_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!33 = !{!"_ZTSSt6vectorIP5ShapeSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIP5ShapeSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!37 = !{!7, !7, i64 0}
!38 = !{!39, !7, i64 0}
!39 = !{!"_ZTSN5ColorUt_E", !7, i64 0, !7, i64 1, !7, i64 2}
!40 = !{!39, !7, i64 1}
!41 = !{!39, !7, i64 2}


; 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 }
%class.Ray = type { %struct.Vector3f, %struct.Vector3f }

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12intersectRayRK3RayRKSt6vectorIP5ShapeSaIS4_EE(ptr dead_on_unwind noalias writable sret(%struct.IntersectionData) align 4, ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; 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 uwtable
declare dso_local { <2 x float>, float } @_Z15computeRadianceRK3RayRK16IntersectionDataP5Scenei(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20), ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local i24 @_Z11renderPixeliiP5Scenei(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca %class.Ray, align 4
  %6 = alloca %struct.IntersectionData, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %7 = getelementptr inbounds i8, ptr %2, i64 40
  %8 = sext i32 %3 to i64
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6CameraSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %8) #5
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK6Camera13getPrimaryRayEii(ptr dead_on_unwind nonnull writable sret(%class.Ray) align 4 %5, ptr noundef nonnull align 4 dereferenceable(112) %10, i32 noundef %1, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #5
  %11 = getelementptr inbounds i8, ptr %2, i64 136
  call void @_Z12intersectRayRK3RayRKSt6vectorIP5ShapeSaIS4_EE(ptr dead_on_unwind nonnull writable sret(%struct.IntersectionData) align 4 %6, ptr noundef nonnull align 4 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %12 = load float, ptr %6, align 4, !tbaa !9
  %13 = fcmp une float %12, 0x47EFFFFFE0000000
  br i1 %13, label %14, label %17

14:                                               ; preds = %4
  %15 = load i32, ptr %2, align 8, !tbaa !14
  %16 = call { <2 x float>, float } @_Z15computeRadianceRK3RayRK16IntersectionDataP5Scenei(ptr noundef nonnull align 4 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(20) %6, ptr noundef nonnull %2, i32 noundef %15)
  %.fca.0.extract = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %16, 1
  br label %22

17:                                               ; preds = %4
  %18 = getelementptr inbounds i8, ptr %2, i64 12
  %19 = load <2 x float>, ptr %18, align 4, !tbaa !36
  %20 = getelementptr inbounds i8, ptr %2, i64 20
  %21 = load float, ptr %20, align 4, !tbaa !36
  br label %22

22:                                               ; preds = %17, %14
  %.sroa.512.0.in = phi float [ %.fca.1.extract, %14 ], [ %21, %17 ]
  %23 = phi <2 x float> [ %.fca.0.extract, %14 ], [ %19, %17 ]
  %.sroa.512.0 = fptoui float %.sroa.512.0.in to i8
  %24 = extractelement <2 x float> %23, i64 1
  %.sroa.3.0 = fptoui float %24 to i8
  %25 = extractelement <2 x float> %23, i64 0
  %.sroa.011.0 = fptoui float %25 to i8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  %.sroa.512.0.insert.ext = zext i8 %.sroa.512.0 to i24
  %.sroa.512.0.insert.shift = shl nuw i24 %.sroa.512.0.insert.ext, 16
  %.sroa.3.0.insert.ext = zext i8 %.sroa.3.0 to i24
  %.sroa.3.0.insert.shift = shl nuw nsw i24 %.sroa.3.0.insert.ext, 8
  %.sroa.3.0.insert.insert = or disjoint i24 %.sroa.512.0.insert.shift, %.sroa.3.0.insert.shift
  %.sroa.011.0.insert.ext = zext i8 %.sroa.011.0 to i24
  %.sroa.011.0.insert.insert = or disjoint i24 %.sroa.3.0.insert.insert, %.sroa.011.0.insert.ext
  ret i24 %.sroa.011.0.insert.insert
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6CameraSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZNK6Camera13getPrimaryRayEii(ptr dead_on_unwind writable sret(%class.Ray) align 4, ptr noundef nonnull align 4 dereferenceable(112), i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS16IntersectionData", !11, i64 0, !12, i64 4, !13, i64 16}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTS8Vector3f", !7, i64 0, !7, i64 4, !7, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS5Scene", !13, i64 0, !11, i64 4, !11, i64 8, !12, i64 12, !12, i64 24, !16, i64 40, !20, i64 64, !24, i64 88, !28, i64 112, !32, i64 136}
!16 = !{!"_ZTSSt6vectorIP6CameraSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP6CameraSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIP10PointLightSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP10PointLightSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP10PointLightSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIP8MaterialSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIP8MaterialSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP8MaterialSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorI8Vector3fSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseI8Vector3fSaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI8Vector3fSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIP5ShapeSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIP5ShapeSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP5ShapeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass