; LLVM IR from Razakhel/RaZ :: src/RaZ/Render/ShaderProgram.ll (ZNK3Raz13ShaderProgram14sendAttributesEv)

; 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.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.anon.101 = type <{ ptr, i32, [4 x i8] }>
%"class.Raz::ShaderProgram" = type { ptr, %"class.Raz::OwnerValue", %"class.std::unordered_map", %"class.std::vector", %"class.std::vector.19" }
%"class.Raz::OwnerValue" = type { i32 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>, std::allocator<std::pair<std::shared_ptr<Raz::Texture>, Raz::ShaderProgram::ImageTextureAttachment>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Raz::ShaderProgram::Attribute" = type { i32, [4 x i8], %"class.std::variant" }
%"class.std::variant" = type { %"struct.std::__detail::__variant::_Variant_base.base", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base" = type { %"struct.std::__detail::__variant::_Move_assign_base.base" }
%"struct.std::__detail::__variant::_Move_assign_base.base" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base" }
%"struct.std::__detail::__variant::_Copy_assign_base.base" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base" }
%"struct.std::__detail::__variant::_Move_ctor_base.base" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base" = type { %"struct.std::__detail::__variant::_Variant_storage.base" }
%"struct.std::__detail::__variant::_Variant_storage.base" = type <{ %"union.std::__detail::__variant::_Variadic_union", i8 }>
%"union.std::__detail::__variant::_Variadic_union" = type { %"union.std::__detail::__variant::_Variadic_union.42" }
%"union.std::__detail::__variant::_Variadic_union.42" = type { %"union.std::__detail::__variant::_Variadic_union.44" }
%"union.std::__detail::__variant::_Variadic_union.44" = type { %"union.std::__detail::__variant::_Variadic_union.46" }
%"union.std::__detail::__variant::_Variadic_union.46" = type { %"union.std::__detail::__variant::_Variadic_union.48" }
%"union.std::__detail::__variant::_Variadic_union.48" = type { %"union.std::__detail::__variant::_Variadic_union.52" }
%"union.std::__detail::__variant::_Variadic_union.52" = type { %"union.std::__detail::__variant::_Variadic_union.56" }
%"union.std::__detail::__variant::_Variadic_union.56" = type { %"union.std::__detail::__variant::_Variadic_union.60" }
%"union.std::__detail::__variant::_Variadic_union.60" = type { %"union.std::__detail::__variant::_Variadic_union.64" }
%"union.std::__detail::__variant::_Variadic_union.64" = type { %"union.std::__detail::__variant::_Variadic_union.68" }
%"union.std::__detail::__variant::_Variadic_union.68" = type { %"union.std::__detail::__variant::_Variadic_union.72" }
%"union.std::__detail::__variant::_Variadic_union.72" = type { %"union.std::__detail::__variant::_Variadic_union.76" }
%"union.std::__detail::__variant::_Variadic_union.76" = type { %"union.std::__detail::__variant::_Variadic_union.80" }
%"union.std::__detail::__variant::_Variadic_union.80" = type { %"union.std::__detail::__variant::_Variadic_union.82" }
%"union.std::__detail::__variant::_Variadic_union.82" = type { %"union.std::__detail::__variant::_Variadic_union.86" }
%"union.std::__detail::__variant::_Variadic_union.86" = type { %"struct.std::__detail::__variant::_Uninitialized.87" }
%"struct.std::__detail::__variant::_Uninitialized.87" = type { %"class.Raz::Matrix.88" }
%"class.Raz::Matrix.88" = type { %"struct.std::array.89" }
%"struct.std::array.89" = type { [16 x float] }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Raz13ShaderProgram14sendAttributesEv(ptr noundef nonnull align 8 dereferenceable(120) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.anon.101, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"class.Raz::ShaderProgram", ptr %11, i32 0, i32 2
  %13 = call noundef zeroext i1 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %12) #3
  br i1 %13, label %14, label %15

14:                                               ; preds = %1
  br label %52

15:                                               ; preds = %1
  call void @_ZNK3Raz13ShaderProgram3useEv(ptr noundef nonnull align 8 dereferenceable(120) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %16 = getelementptr inbounds %"class.Raz::ShaderProgram", ptr %11, i32 0, i32 2
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #3
  %19 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %4, i32 0, i32 0
  %20 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %19, i32 0, i32 0
  store ptr %18, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = call ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #3
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_const_iterator", ptr %5, i32 0, i32 0
  %24 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %23, i32 0, i32 0
  store ptr %22, ptr %24, align 8
  br label %25

25:                                               ; preds = %50, %15
  %26 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %52

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %29 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  store ptr %29, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112) %30) #3
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112) %32) #3
  store ptr %33, ptr %9, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.Raz::ShaderProgram::Attribute", ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !9
  %37 = icmp eq i32 %36, -1
  br i1 %37, label %38, label %39

38:                                               ; preds = %28
  store i32 3, ptr %6, align 4
  br label %47

39:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %40 = getelementptr inbounds %class.anon.101, ptr %10, i32 0, i32 0
  store ptr %11, ptr %40, align 8, !tbaa !19
  %41 = getelementptr inbounds %class.anon.101, ptr %10, i32 0, i32 1
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.Raz::ShaderProgram::Attribute", ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !9
  store i32 %44, ptr %41, align 8, !tbaa !21
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.Raz::ShaderProgram::Attribute", ptr %45, i32 0, i32 2
  call void @"_ZSt5visitIZNK3Raz13ShaderProgram14sendAttributesEvE3$_0JRKSt7variantIJijfNS0_6VectorIiLm2EEENS4_IiLm3EEENS4_IiLm4EEENS4_IjLm2EEENS4_IjLm3EEENS4_IjLm4EEENS4_IfLm2EEENS4_IfLm3EEENS4_IfLm4EEENS0_6MatrixIfLm2ELm2EEENSE_IfLm3ELm3EEENSE_IfLm4ELm4EEESt6vectorIiSaIiEESI_IjSaIjEESI_IfSaIfEEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISV_EEEEE4typeEE4typeEOS14_EEEE4typeEOST_DpOSV_"(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(65) %46)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  store i32 0, ptr %6, align 4
  br label %47

47:                                               ; preds = %39, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %48 = load i32, ptr %6, align 4
  switch i32 %48, label %53 [
    i32 0, label %49
    i32 3, label %50
  ]

49:                                               ; preds = %47
  br label %50

50:                                               ; preds = %49, %47
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br label %25

52:                                               ; preds = %27, %14
  ret void

53:                                               ; preds = %47
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Raz13ShaderProgram3useEv(ptr noundef nonnull align 8 dereferenceable(120)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112)) #1

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5visitIZNK3Raz13ShaderProgram14sendAttributesEvE3$_0JRKSt7variantIJijfNS0_6VectorIiLm2EEENS4_IiLm3EEENS4_IiLm4EEENS4_IjLm2EEENS4_IjLm3EEENS4_IjLm4EEENS4_IfLm2EEENS4_IfLm3EEENS4_IfLm4EEENS0_6MatrixIfLm2ELm2EEENSE_IfLm3ELm3EEENSE_IfLm4ELm4EEESt6vectorIiSaIiEESI_IjSaIjEESI_IfSaIfEEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISV_EEEEE4typeEE4typeEOS14_EEEE4typeEOST_DpOSV_"(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(65)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"_ZTSN3Raz13ShaderProgram9AttributeE", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt7variantIJijfN3Raz6VectorIiLm2EEENS1_IiLm3EEENS1_IiLm4EEENS1_IjLm2EEENS1_IjLm3EEENS1_IjLm4EEENS1_IfLm2EEENS1_IfLm3EEENS1_IfLm4EEENS0_6MatrixIfLm2ELm2EEENSB_IfLm3ELm3EEENSB_IfLm4ELm4EEESt6vectorIiSaIiEESF_IjSaIjEESF_IfSaIfEEEE", !13, i64 0}
!13 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !17, i64 0}
!17 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !18, i64 0}
!18 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !7, i64 0, !7, i64 64}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSZNK3Raz13ShaderProgram14sendAttributesEvE3$_0", !6, i64 0, !11, i64 8}
!21 = !{!20, !11, i64 8}


; 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.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.anon.101 = type <{ ptr, i32, [4 x i8] }>

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3Raz13ShaderProgram14sendAttributesEv(ptr noundef nonnull align 8 dereferenceable(120) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %3 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %4 = alloca %class.anon.101, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = tail call noundef zeroext i1 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %5) #3
  br i1 %6, label %23, label %7

7:                                                ; preds = %1
  tail call void @_ZNK3Raz13ShaderProgram3useEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %8 = tail call ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %5) #3
  store ptr %8, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %9 = tail call ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %5) #3
  store ptr %9, ptr %3, align 8
  %10 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %11 = getelementptr inbounds i8, ptr %4, i64 8
  br label %12

._crit_edge:                                      ; preds = %20, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  br label %23

12:                                               ; preds = %.lr.ph, %20
  %13 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %14 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112) %13) #3
  %15 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112) %13) #3
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %20, label %18

18:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  store ptr %0, ptr %4, align 8, !tbaa !17
  store i32 %16, ptr %11, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  call void @"_ZSt5visitIZNK3Raz13ShaderProgram14sendAttributesEvE3$_0JRKSt7variantIJijfNS0_6VectorIiLm2EEENS4_IiLm3EEENS4_IiLm4EEENS4_IjLm2EEENS4_IjLm3EEENS4_IjLm4EEENS4_IfLm2EEENS4_IfLm3EEENS4_IfLm4EEENS0_6MatrixIfLm2ELm2EEENSE_IfLm3ELm3EEENSE_IfLm4ELm4EEESt6vectorIiSaIiEESI_IjSaIjEESI_IfSaIfEEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISV_EEEEE4typeEE4typeEOS14_EEEE4typeEOST_DpOSV_"(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(65) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  br label %20

20:                                               ; preds = %12, %18
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %22 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  br i1 %22, label %12, label %._crit_edge

23:                                               ; preds = %1, %._crit_edge
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Raz13ShaderProgram3useEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5visitIZNK3Raz13ShaderProgram14sendAttributesEvE3$_0JRKSt7variantIJijfNS0_6VectorIiLm2EEENS4_IiLm3EEENS4_IiLm4EEENS4_IjLm2EEENS4_IjLm3EEENS4_IjLm4EEENS4_IfLm2EEENS4_IfLm3EEENS4_IfLm4EEENS0_6MatrixIfLm2ELm2EEENSE_IfLm3ELm3EEENSE_IfLm4ELm4EEESt6vectorIiSaIiEESI_IjSaIjEESI_IfSaIfEEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISV_EEEEE4typeEE4typeEOS14_EEEE4typeEOST_DpOSV_"(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(65)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3Raz13ShaderProgram9AttributeEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3Raz13ShaderProgram9AttributeE", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt7variantIJijfN3Raz6VectorIiLm2EEENS1_IiLm3EEENS1_IiLm4EEENS1_IjLm2EEENS1_IjLm3EEENS1_IjLm4EEENS1_IfLm2EEENS1_IfLm3EEENS1_IfLm4EEENS0_6MatrixIfLm2ELm2EEENSB_IfLm3ELm3EEENSB_IfLm4ELm4EEESt6vectorIiSaIiEESF_IjSaIjEESF_IfSaIfEEEE", !11, i64 0}
!11 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !12, i64 0}
!12 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !13, i64 0}
!13 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJijfN3Raz6VectorIiLm2EEENS3_IiLm3EEENS3_IiLm4EEENS3_IjLm2EEENS3_IjLm3EEENS3_IjLm4EEENS3_IfLm2EEENS3_IfLm3EEENS3_IfLm4EEENS2_6MatrixIfLm2ELm2EEENSD_IfLm3ELm3EEENSD_IfLm4ELm4EEESt6vectorIiSaIiEESH_IjSaIjEESH_IfSaIfEEEEE", !8, i64 0, !8, i64 64}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSZNK3Raz13ShaderProgram14sendAttributesEvE3$_0", !19, i64 0, !7, i64 8}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!18, !7, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass