; LLVM IR from paroj/gltut :: Tut 12 Dynamic Range (Lights)

; 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.LightBlock = type { %"struct.glm::detail::tvec4", float, [3 x float], [4 x %struct.PerLight] }
%"struct.glm::detail::tvec4" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%struct.PerLight = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4" }
%"struct.glm::detail::tvec3" = type { %union.anon.2 }
%union.anon.2 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, float }
%class.LightManager = type { %"class.Framework::Timer", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator", %"class.Framework::TimedLinearInterpolator.6", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23", %"class.std::map" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"class.Framework::TimedLinearInterpolator" = type { %"class.Framework::WeightedLinearInterpolator" }
%"class.Framework::WeightedLinearInterpolator" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data, std::allocator<Framework::WeightedLinearInterpolator<glm::detail::tvec4<float>>::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Framework::TimedLinearInterpolator.6" = type { %"class.Framework::WeightedLinearInterpolator.7" }
%"class.Framework::WeightedLinearInterpolator.7" = type { %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::WeightedLinearInterpolator<float>::Data, std::allocator<Framework::WeightedLinearInterpolator<float>::Data>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>, std::allocator<Framework::ConstVelLinearInterpolator<glm::detail::tvec3<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tvec4<float>, std::allocator<glm::detail::tvec4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl" }
%"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl" = type { %"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Framework::Timer, std::allocator<Framework::Timer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Framework::Timer>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

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

declare noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20)) #1

; 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
define dso_local void @_ZNK12LightManager19GetLightInformationERKN3glm6detail7tmat4x4IfEE(ptr dead_on_unwind noalias writable sret(%struct.LightBlock) align 4 %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 4 dereferenceable(64) %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.glm::detail::tvec4", align 4
  %8 = alloca %"struct.glm::detail::tvec4", align 4
  %9 = alloca %"struct.glm::detail::tvec4", align 4
  %10 = alloca %"struct.glm::detail::tvec4", align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.glm::detail::tvec4", align 4
  %13 = alloca %"struct.glm::detail::tvec3", align 4
  %14 = alloca float, align 4
  %15 = alloca %"struct.glm::detail::tvec4", align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  call void @_ZN10LightBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(160) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %17 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 1
  %18 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 0
  %19 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %18)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec4IfEEE11InterpolateEf(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %7, ptr noundef nonnull align 8 dereferenceable(24) %17, float noundef %19)
  %20 = getelementptr inbounds %struct.LightBlock, ptr %0, i32 0, i32 0
  %21 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  %22 = getelementptr inbounds %struct.LightBlock, ptr %0, i32 0, i32 1
  store float 0x3F2ABFD7E0000000, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %9, ptr noundef nonnull align 8 dereferenceable(240) %16)
  call void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %23, ptr noundef nonnull align 4 dereferenceable(16) %9)
  %24 = getelementptr inbounds %struct.LightBlock, ptr %0, i32 0, i32 3
  %25 = getelementptr inbounds [4 x %struct.PerLight], ptr %24, i64 0, i64 0
  %26 = getelementptr inbounds %struct.PerLight, ptr %25, i32 0, i32 0
  %27 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %28 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 3
  %29 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 0
  %30 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %29)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec4IfEEE11InterpolateEf(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %10, ptr noundef nonnull align 8 dereferenceable(24) %28, float noundef %30)
  %31 = getelementptr inbounds %struct.LightBlock, ptr %0, i32 0, i32 3
  %32 = getelementptr inbounds [4 x %struct.PerLight], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds %struct.PerLight, ptr %32, i32 0, i32 1
  %34 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %35

35:                                               ; preds = %68, %3
  %36 = load i32, ptr %11, align 4, !tbaa !13
  %37 = icmp slt i32 %36, 3
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %71

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  %40 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 5
  %41 = load i32, ptr %11, align 4, !tbaa !13
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNKSt6vectorIN9Framework26ConstVelLinearInterpolatorIN3glm6detail5tvec3IfEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42) #6
  %44 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 7
  %45 = load i32, ptr %11, align 4, !tbaa !13
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN9Framework5TimerESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #6
  %48 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %47)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec3IfEEE11InterpolateEf(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(24) %43, float noundef %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 1.000000e+00, ptr %14, align 4, !tbaa !15
  call void @_ZN3glm6detail5tvec4IfEC2IffEERKNS0_5tvec3IT_EERKT0_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %15, ptr noundef nonnull align 4 dereferenceable(64) %49, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %50 = getelementptr inbounds %struct.LightBlock, ptr %0, i32 0, i32 3
  %51 = load i32, ptr %11, align 4, !tbaa !13
  %52 = add nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [4 x %struct.PerLight], ptr %50, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.PerLight, ptr %54, i32 0, i32 0
  %56 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(16) %15)
  %57 = getelementptr inbounds %class.LightManager, ptr %16, i32 0, i32 6
  %58 = load i32, ptr %11, align 4, !tbaa !13
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN3glm6detail5tvec4IfEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #6
  %61 = getelementptr inbounds %struct.LightBlock, ptr %0, i32 0, i32 3
  %62 = load i32, ptr %11, align 4, !tbaa !13
  %63 = add nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [4 x %struct.PerLight], ptr %61, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.PerLight, ptr %65, i32 0, i32 1
  %67 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(16) %60)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %68

68:                                               ; preds = %39
  %69 = load i32, ptr %11, align 4, !tbaa !13
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %11, align 4, !tbaa !13
  br label %35, !llvm.loop !16

71:                                               ; preds = %38
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec4IfEEE11InterpolateEf(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(24), float noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec3IfEEE11InterpolateEf(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 8 dereferenceable(24), float noundef) #2 align 2

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.LightBlock = type { %"struct.glm::detail::tvec4", float, [3 x float], [4 x %struct.PerLight] }
%"struct.glm::detail::tvec4" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%struct.PerLight = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4" }
%"struct.glm::detail::tvec3" = type { %union.anon.2 }
%union.anon.2 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, float }

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

declare noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1

; 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
define dso_local void @_ZNK12LightManager19GetLightInformationERKN3glm6detail7tmat4x4IfEE(ptr dead_on_unwind noalias nonnull writable sret(%struct.LightBlock) align 4 %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 4 dereferenceable(64) %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"struct.glm::detail::tvec4", align 4
  %5 = alloca %"struct.glm::detail::tvec4", align 4
  %6 = alloca %"struct.glm::detail::tvec4", align 4
  %7 = alloca %"struct.glm::detail::tvec4", align 4
  %8 = alloca %"struct.glm::detail::tvec4", align 4
  %9 = alloca %"struct.glm::detail::tvec3", align 4
  %10 = alloca float, align 4
  %11 = alloca %"struct.glm::detail::tvec4", align 4
  tail call void @_ZN10LightBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(160) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  %13 = tail call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec4IfEEE11InterpolateEf(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %4, ptr noundef nonnull align 8 dereferenceable(24) %12, float noundef %13)
  %14 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  store float 0x3F2ABFD7E0000000, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %6, ptr noundef nonnull align 8 dereferenceable(240) %1)
  call void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %5, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %18 = getelementptr inbounds i8, ptr %1, i64 72
  %19 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec4IfEEE11InterpolateEf(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %7, ptr noundef nonnull align 8 dereferenceable(24) %18, float noundef %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %22 = getelementptr inbounds i8, ptr %1, i64 120
  %23 = getelementptr inbounds i8, ptr %1, i64 168
  %24 = getelementptr inbounds i8, ptr %1, i64 144
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  %25 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNKSt6vectorIN9Framework26ConstVelLinearInterpolatorIN3glm6detail5tvec3IfEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #6
  %26 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN9Framework5TimerESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #6
  %27 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %26)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec3IfEEE11InterpolateEf(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %9, ptr noundef nonnull align 8 dereferenceable(24) %25, float noundef %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store float 1.000000e+00, ptr %10, align 4, !tbaa !11
  call void @_ZN3glm6detail5tvec4IfEC2IffEERKNS0_5tvec3IT_EERKT0_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %28 = getelementptr inbounds i8, ptr %0, i64 64
  %29 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %30 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN3glm6detail5tvec4IfEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #6
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  %32 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(16) %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  %33 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNKSt6vectorIN9Framework26ConstVelLinearInterpolatorIN3glm6detail5tvec3IfEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 1) #6
  %34 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN9Framework5TimerESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 1) #6
  %35 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %34)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec3IfEEE11InterpolateEf(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %9, ptr noundef nonnull align 8 dereferenceable(24) %33, float noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store float 1.000000e+00, ptr %10, align 4, !tbaa !11
  call void @_ZN3glm6detail5tvec4IfEC2IffEERKNS0_5tvec3IT_EERKT0_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %36 = getelementptr inbounds i8, ptr %0, i64 96
  %37 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %38 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN3glm6detail5tvec4IfEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 1) #6
  %39 = getelementptr inbounds i8, ptr %0, i64 112
  %40 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(16) %38)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  %41 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNKSt6vectorIN9Framework26ConstVelLinearInterpolatorIN3glm6detail5tvec3IfEEEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 2) #6
  %42 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN9Framework5TimerESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 2) #6
  %43 = call noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) %42)
  call void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec3IfEEE11InterpolateEf(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec3") align 4 %9, ptr noundef nonnull align 8 dereferenceable(24) %41, float noundef %43)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store float 1.000000e+00, ptr %10, align 4, !tbaa !11
  call void @_ZN3glm6detail5tvec4IfEC2IffEERKNS0_5tvec3IT_EERKT0_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %44 = getelementptr inbounds i8, ptr %0, i64 128
  %45 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %46 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN3glm6detail5tvec4IfEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 2) #6
  %47 = getelementptr inbounds i8, ptr %0, i64 144
  %48 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %46)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec4IfEEE11InterpolateEf(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(24), float noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK12LightManager20GetSunlightDirectionEv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 8 dereferenceable(240)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Framework26WeightedLinearInterpolatorIN3glm6detail5tvec3IfEEE11InterpolateEf(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec3") align 4, ptr noundef nonnull align 8 dereferenceable(24), float noundef) local_unnamed_addr #2 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 #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 = { 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, !10, i64 16}
!6 = !{!"_ZTS10LightBlock", !7, i64 0, !10, i64 16, !8, i64 20, !8, i64 32}
!7 = !{!"_ZTSN3glm6detail5tvec4IfEE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass