; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/legacy (shaderParser)

; 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.P3D::Graphics::TokenStack" = type { i8, %"class.std::vector", %"class.__gnu_cxx::__normal_iterator" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.P3D::Graphics::Token" = type { %"struct.P3D::Graphics::TokenType", %"class.std::__cxx11::basic_string" }
%"struct.P3D::Graphics::TokenType" = type <{ i8, [7 x i8], %"class.std::__cxx11::basic_regex", i8, i8, [6 x i8] }>
%"class.std::__cxx11::basic_regex" = type { i32, %"class.std::locale", %"class.std::shared_ptr" }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.P3D::Graphics::ShaderLocal" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"struct.P3D::Graphics::ShaderStruct" = type { %"class.std::__cxx11::basic_string", %"class.std::vector.14" }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::Graphics::ShaderGlobal" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"struct.P3D::Graphics::ShaderLayoutItem" = type { %"class.std::vector.35", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::Graphics::ShaderInfo" = type { %"struct.P3D::Graphics::ShaderVersion", %"class.std::vector.40", %"class.std::vector.14", %"class.std::vector.45", %"class.std::vector.14", %"class.std::unordered_map", %"class.std::unordered_map.21" }
%"struct.P3D::Graphics::ShaderVersion" = type { i32, i8 }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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::unordered_map.21" = type { %"class.std::_Hashtable.22" }
%"class.std::_Hashtable.22" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Node_iterator.50" = type { %"struct.std::__detail::_Node_iterator_base.20" }
%"struct.std::__detail::_Node_iterator_base.20" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics9nextScopeERNS0_10TokenStackERKNS0_9TokenType4TypeES6_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::TokenStack") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #1

declare noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

declare void @_ZNK3P3D8Graphics10TokenStack4peekEm(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Token") align 8, ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2

declare void @_ZN3P3D8Graphics10TokenStack7discardEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZNK3P3D8Graphics9TokenTypecvNS1_4TypeEEv(ptr noundef nonnull align 8 dereferenceable(42)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics10parseLocalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics11parseStructERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12ShaderStructESt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_SA_EEERKS3_IS9_fSC_SE_SaISF_ISG_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderStruct") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics12parseUniformERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics11parseGlobalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderGlobal") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics15parseLayoutItemERNS0_10TokenStackE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderLayoutItem") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #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) #5

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN3P3D8Graphics12parseVersionERNS0_10TokenStackE(ptr noundef nonnull align 8 dereferenceable(40)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics17parsePreprocessorERNS0_10TokenStackERSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics12ShaderParser11parseTokensERNS0_10TokenStackE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderInfo") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.P3D::Graphics::ShaderVersion", align 4
  %6 = alloca %"class.std::vector.40", align 8
  %7 = alloca %"class.std::vector.14", align 8
  %8 = alloca %"class.std::vector.45", align 8
  %9 = alloca %"class.std::vector.14", align 8
  %10 = alloca %"class.std::unordered_map", align 8
  %11 = alloca %"class.std::unordered_map.21", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.P3D::Graphics::Token", align 8
  %16 = alloca %"struct.P3D::Graphics::ShaderLocal", align 8
  %17 = alloca %"struct.P3D::Graphics::ShaderGlobal", align 8
  %18 = alloca %"struct.P3D::Graphics::TokenStack", align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca %"struct.P3D::Graphics::ShaderLocal", align 8
  %23 = alloca %"struct.P3D::Graphics::ShaderLayoutItem", align 8
  %24 = alloca %"struct.P3D::Graphics::ShaderVersion", align 4
  %25 = alloca %"struct.P3D::Graphics::ShaderStruct", align 8
  %26 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %28 = alloca %"struct.P3D::Graphics::ShaderLocal", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  call void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #7
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #7
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #7
  br label %29

29:                                               ; preds = %179, %177, %2
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = invoke noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40) %30, i64 noundef 0)
          to label %32 unwind label %41

32:                                               ; preds = %29
  br i1 %31, label %33, label %182

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #7
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3P3D8Graphics10TokenStack4peekEm(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Token") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %34, i64 noundef 0)
          to label %35 unwind label %45

35:                                               ; preds = %33
  store ptr %15, ptr %14, align 8, !tbaa !5
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.P3D::Graphics::Token", ptr %36, i32 0, i32 0
  %38 = invoke noundef signext i8 @_ZNK3P3D8Graphics9TokenTypecvNS1_4TypeEEv(ptr noundef nonnull align 8 dereferenceable(42) %37)
          to label %39 unwind label %49

39:                                               ; preds = %35
  %40 = sext i8 %38 to i32
  switch i32 %40, label %173 [
    i32 24, label %53
    i32 19, label %66
    i32 25, label %79
    i32 21, label %103
    i32 7, label %116
    i32 8, label %124
    i32 20, label %127
    i32 1, label %144
  ]

41:                                               ; preds = %182, %29
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %12, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %13, align 4
  br label %184

45:                                               ; preds = %33
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %12, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %13, align 4
  br label %181

49:                                               ; preds = %173, %124, %79, %35
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %12, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %13, align 4
  br label %180

53:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #7
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics12parseUniformERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %54, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %55 unwind label %57

55:                                               ; preds = %53
  invoke void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(72) %16)
          to label %56 unwind label %61

56:                                               ; preds = %55
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #7
  br label %176

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %12, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %13, align 4
  br label %65

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %12, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %13, align 4
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #7
  br label %65

65:                                               ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #7
  br label %180

66:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 104, ptr %17) #7
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics11parseGlobalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::ShaderGlobal") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %67, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %68 unwind label %70

68:                                               ; preds = %66
  invoke void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(104) %17)
          to label %69 unwind label %74

69:                                               ; preds = %68
  call void @_ZN3P3D8Graphics12ShaderGlobalD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %17) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %17) #7
  br label %176

70:                                               ; preds = %66
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  br label %78

74:                                               ; preds = %68
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %13, align 4
  call void @_ZN3P3D8Graphics12ShaderGlobalD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %17) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 104, ptr %17) #7
  br label %180

79:                                               ; preds = %39
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = invoke noundef zeroext i1 @_ZN3P3D8Graphics12testFunctionERNS0_10TokenStackE(ptr noundef nonnull align 8 dereferenceable(40) %80)
          to label %82 unwind label %49

82:                                               ; preds = %79
  br i1 %81, label %83, label %90

83:                                               ; preds = %82
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 16, ptr %19, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 17, ptr %20, align 1, !tbaa !9
  invoke void @_ZN3P3D8Graphics9nextScopeERNS0_10TokenStackERKNS0_9TokenType4TypeES6_(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::TokenStack") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %84, ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %85 unwind label %86

85:                                               ; preds = %83
  call void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  store i32 2, ptr %21, align 4
  br label %177, !llvm.loop !11

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %12, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %180

90:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #7
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics10parseLocalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %91, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %92 unwind label %94

92:                                               ; preds = %90
  invoke void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(72) %22)
          to label %93 unwind label %98

93:                                               ; preds = %92
  store i32 4, ptr %21, align 4
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %22) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #7
  br label %176

94:                                               ; preds = %90
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %12, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %13, align 4
  br label %102

98:                                               ; preds = %92
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %22) #7
  br label %102

102:                                              ; preds = %98, %94
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #7
  br label %180

103:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 120, ptr %23) #7
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics15parseLayoutItemERNS0_10TokenStackE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::ShaderLayoutItem") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %104)
          to label %105 unwind label %107

105:                                              ; preds = %103
  invoke void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(120) %23)
          to label %106 unwind label %111

106:                                              ; preds = %105
  store i32 4, ptr %21, align 4
  call void @_ZN3P3D8Graphics16ShaderLayoutItemD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %23) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %23) #7
  br label %176

107:                                              ; preds = %103
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  br label %115

111:                                              ; preds = %105
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  call void @_ZN3P3D8Graphics16ShaderLayoutItemD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %23) #7
  br label %115

115:                                              ; preds = %111, %107
  call void @llvm.lifetime.end.p0(i64 120, ptr %23) #7
  br label %180

116:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = invoke i64 @_ZN3P3D8Graphics12parseVersionERNS0_10TokenStackE(ptr noundef nonnull align 8 dereferenceable(40) %117)
          to label %119 unwind label %120

119:                                              ; preds = %116
  store i64 %118, ptr %24, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %176

120:                                              ; preds = %116
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %12, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %180

124:                                              ; preds = %39
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics17parsePreprocessorERNS0_10TokenStackERSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr noundef nonnull align 8 dereferenceable(40) %125, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %126 unwind label %49

126:                                              ; preds = %124
  br label %176

127:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #7
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics11parseStructERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12ShaderStructESt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_SA_EEERKS3_IS9_fSC_SE_SaISF_ISG_fEEE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::ShaderStruct") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %128, ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %129 unwind label %135

129:                                              ; preds = %127
  %130 = getelementptr inbounds %"struct.P3D::Graphics::ShaderStruct", ptr %25, i32 0, i32 0
  %131 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEixERSE_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(32) %130)
          to label %132 unwind label %139

132:                                              ; preds = %129
  %133 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN3P3D8Graphics12ShaderStructaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %131, ptr noundef nonnull align 8 dereferenceable(56) %25)
          to label %134 unwind label %139

134:                                              ; preds = %132
  store i32 4, ptr %21, align 4
  call void @_ZN3P3D8Graphics12ShaderStructD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #7
  br label %176

135:                                              ; preds = %127
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %12, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %13, align 4
  br label %143

139:                                              ; preds = %132, %129
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %12, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %13, align 4
  call void @_ZN3P3D8Graphics12ShaderStructD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #7
  br label %143

143:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #7
  br label %180

144:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.P3D::Graphics::Token", ptr %145, i32 0, i32 1
  %147 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE4findERSE_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(32) %146)
          to label %148 unwind label %159

148:                                              ; preds = %144
  %149 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.50", ptr %26, i32 0, i32 0
  %150 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.20", ptr %149, i32 0, i32 0
  store ptr %147, ptr %150, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %151 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %11) #7
  %152 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.50", ptr %27, i32 0, i32 0
  %153 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.20", ptr %152, i32 0, i32 0
  store ptr %151, ptr %153, align 8
  %154 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br i1 %154, label %155, label %172

155:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 72, ptr %28) #7
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics10parseLocalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8 %28, ptr noundef nonnull align 8 dereferenceable(40) %156, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %157 unwind label %163

157:                                              ; preds = %155
  invoke void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(72) %28)
          to label %158 unwind label %167

158:                                              ; preds = %157
  store i32 2, ptr %21, align 4
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %28) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #7
  br label %177

159:                                              ; preds = %144
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %12, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %180

163:                                              ; preds = %155
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %12, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %13, align 4
  br label %171

167:                                              ; preds = %157
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %12, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %13, align 4
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %28) #7
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #7
  br label %180

172:                                              ; preds = %148
  br label %173

173:                                              ; preds = %172, %39
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3P3D8Graphics10TokenStack7discardEv(ptr noundef nonnull align 8 dereferenceable(40) %174)
          to label %175 unwind label %49

175:                                              ; preds = %173
  br label %176

176:                                              ; preds = %175, %134, %126, %119, %106, %93, %69, %56
  store i32 0, ptr %21, align 4
  br label %177

177:                                              ; preds = %176, %158, %85
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %178 = load i32, ptr %21, align 4
  switch i32 %178, label %190 [
    i32 0, label %179
    i32 2, label %29
  ]

179:                                              ; preds = %177
  br label %29, !llvm.loop !11

180:                                              ; preds = %171, %159, %143, %120, %115, %102, %86, %78, %65, %49
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #7
  br label %181

181:                                              ; preds = %180, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %184

182:                                              ; preds = %32
  invoke void @_ZN3P3D8Graphics10ShaderInfoC2ERKNS0_13ShaderVersionERKSt6vectorINS0_16ShaderLayoutItemESaIS6_EERKS5_INS0_11ShaderLocalESaISB_EERKS5_INS0_12ShaderGlobalESaISG_EESF_RKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashISR_ESt8equal_toISR_ESaISt4pairIKSR_fEEERKSL_ISR_NS0_12ShaderStructEST_SV_SaISW_ISX_S13_EEE(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %183 unwind label %41

183:                                              ; preds = %182
  store i32 1, ptr %21, align 4
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #7
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #7
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

184:                                              ; preds = %181, %41
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #7
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #7
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %12, align 8
  %187 = load i32, ptr %13, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189

190:                                              ; preds = %177
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(104)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics12ShaderGlobalD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics16ShaderLayoutItemD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3P3D8Graphics12ShaderStructaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics12ShaderStructD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics10ShaderInfoC2ERKNS0_13ShaderVersionERKSt6vectorINS0_16ShaderLayoutItemESaIS6_EERKS5_INS0_11ShaderLocalESaISB_EERKS5_INS0_12ShaderGlobalESaISG_EESF_RKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashISR_ESt8equal_toISR_ESaISt4pairIKSR_fEEERKSL_ISR_NS0_12ShaderStructEST_SV_SaISW_ISX_S13_EEE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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


; 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.P3D::Graphics::TokenStack" = type { i8, %"class.std::vector", %"class.__gnu_cxx::__normal_iterator" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::Token, std::allocator<P3D::Graphics::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.P3D::Graphics::Token" = type { %"struct.P3D::Graphics::TokenType", %"class.std::__cxx11::basic_string" }
%"struct.P3D::Graphics::TokenType" = type <{ i8, [7 x i8], %"class.std::__cxx11::basic_regex", i8, i8, [6 x i8] }>
%"class.std::__cxx11::basic_regex" = type { i32, %"class.std::locale", %"class.std::shared_ptr" }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.P3D::Graphics::ShaderLocal" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"struct.P3D::Graphics::ShaderStruct" = type { %"class.std::__cxx11::basic_string", %"class.std::vector.14" }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLocal, std::allocator<P3D::Graphics::ShaderLocal>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::Graphics::ShaderGlobal" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"struct.P3D::Graphics::ShaderLayoutItem" = type { %"class.std::vector.35", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutAttribute, std::allocator<P3D::Graphics::ShaderLayoutAttribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::Graphics::ShaderInfo" = type { %"struct.P3D::Graphics::ShaderVersion", %"class.std::vector.40", %"class.std::vector.14", %"class.std::vector.45", %"class.std::vector.14", %"class.std::unordered_map", %"class.std::unordered_map.21" }
%"struct.P3D::Graphics::ShaderVersion" = type { i32, i8 }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderLayoutItem, std::allocator<P3D::Graphics::ShaderLayoutItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::ShaderGlobal, std::allocator<P3D::Graphics::ShaderGlobal>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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::unordered_map.21" = type { %"class.std::_Hashtable.22" }
%"class.std::_Hashtable.22" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Node_iterator.50" = type { %"struct.std::__detail::_Node_iterator_base.20" }
%"struct.std::__detail::_Node_iterator_base.20" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics9nextScopeERNS0_10TokenStackERKNS0_9TokenType4TypeES6_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::TokenStack") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

declare void @_ZNK3P3D8Graphics10TokenStack4peekEm(ptr dead_on_unwind writable sret(%"struct.P3D::Graphics::Token") align 8, ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2

declare void @_ZN3P3D8Graphics10TokenStack7discardEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZNK3P3D8Graphics9TokenTypecvNS1_4TypeEEv(ptr noundef nonnull align 8 dereferenceable(42)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics10parseLocalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics11parseStructERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12ShaderStructESt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_SA_EEERKS3_IS9_fSC_SE_SaISF_ISG_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderStruct") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics12parseUniformERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics11parseGlobalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderGlobal") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics15parseLayoutItemERNS0_10TokenStackE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderLayoutItem") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN3P3D8Graphics12parseVersionERNS0_10TokenStackE(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics17parsePreprocessorERNS0_10TokenStackERSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics12ShaderParser11parseTokensERNS0_10TokenStackE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ShaderInfo") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.P3D::Graphics::ShaderVersion", align 8
  %4 = alloca %"class.std::vector.40", align 8
  %5 = alloca %"class.std::vector.14", align 8
  %6 = alloca %"class.std::vector.45", align 8
  %7 = alloca %"class.std::vector.14", align 8
  %8 = alloca %"class.std::unordered_map", align 8
  %9 = alloca %"class.std::unordered_map.21", align 8
  %10 = alloca %"struct.P3D::Graphics::Token", align 8
  %11 = alloca %"struct.P3D::Graphics::ShaderLocal", align 8
  %12 = alloca %"struct.P3D::Graphics::ShaderGlobal", align 8
  %13 = alloca %"struct.P3D::Graphics::TokenStack", align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca %"struct.P3D::Graphics::ShaderLocal", align 8
  %17 = alloca %"struct.P3D::Graphics::ShaderLayoutItem", align 8
  %18 = alloca %"struct.P3D::Graphics::ShaderStruct", align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %21 = alloca %"struct.P3D::Graphics::ShaderLocal", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #6
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #6
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  %22 = getelementptr inbounds i8, ptr %10, i64 48
  br label %23

23:                                               ; preds = %105, %2
  %24 = invoke noundef zeroext i1 @_ZNK3P3D8Graphics10TokenStack9availableEm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 0)
          to label %25 unwind label %.loopexit

25:                                               ; preds = %23
  br i1 %24, label %26, label %107

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #6
  invoke void @_ZNK3P3D8Graphics10TokenStack4peekEm(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::Token") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef 0)
          to label %27 unwind label %29

27:                                               ; preds = %26
  %28 = call noundef signext i8 @_ZNK3P3D8Graphics9TokenTypecvNS1_4TypeEEv(ptr noundef nonnull align 8 dereferenceable(42) %10)
  switch i8 %28, label %104 [
    i8 24, label %33
    i8 19, label %41
    i8 25, label %49
    i8 21, label %64
    i8 7, label %72
    i8 8, label %77
    i8 20, label %78
    i8 1, label %89
  ]

.loopexit:                                        ; preds = %23
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %109

.loopexit.split-lp:                               ; preds = %107
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %109

29:                                               ; preds = %26
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %109

31:                                               ; preds = %104, %77, %49
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %106

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #6
  invoke void @_ZN3P3D8Graphics12parseUniformERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %34 unwind label %36

34:                                               ; preds = %33
  invoke void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %35 unwind label %38

35:                                               ; preds = %34
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #6
  br label %105

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %40

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #6
  br label %40

40:                                               ; preds = %38, %36
  %.pn34 = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #6
  br label %106

41:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %12) #6
  invoke void @_ZN3P3D8Graphics11parseGlobalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::ShaderGlobal") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %42 unwind label %44

42:                                               ; preds = %41
  invoke void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(104) %12)
          to label %43 unwind label %46

43:                                               ; preds = %42
  call void @_ZN3P3D8Graphics12ShaderGlobalD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %12) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %12) #6
  br label %105

44:                                               ; preds = %41
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %42
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics12ShaderGlobalD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %12) #6
  br label %48

48:                                               ; preds = %46, %44
  %.pn32 = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %12) #6
  br label %106

49:                                               ; preds = %27
  %50 = invoke noundef zeroext i1 @_ZN3P3D8Graphics12testFunctionERNS0_10TokenStackE(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %51 unwind label %31

51:                                               ; preds = %49
  br i1 %50, label %52, label %56

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  store i8 16, ptr %14, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  store i8 17, ptr %15, align 1, !tbaa !5
  invoke void @_ZN3P3D8Graphics9nextScopeERNS0_10TokenStackERKNS0_9TokenType4TypeES6_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::TokenStack") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %53 unwind label %54

53:                                               ; preds = %52
  call void @_ZN3P3D8Graphics10TokenStackD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  br label %105, !llvm.loop !9

54:                                               ; preds = %52
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  br label %106

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %16) #6
  invoke void @_ZN3P3D8Graphics10parseLocalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %57 unwind label %59

57:                                               ; preds = %56
  invoke void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(72) %16)
          to label %58 unwind label %61

58:                                               ; preds = %57
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %16) #6
  br label %105

59:                                               ; preds = %56
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %57
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  br label %63

63:                                               ; preds = %61, %59
  %.pn30 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %16) #6
  br label %106

64:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %17) #6
  invoke void @_ZN3P3D8Graphics15parseLayoutItemERNS0_10TokenStackE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::ShaderLayoutItem") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %65 unwind label %67

65:                                               ; preds = %64
  invoke void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(120) %17)
          to label %66 unwind label %69

66:                                               ; preds = %65
  call void @_ZN3P3D8Graphics16ShaderLayoutItemD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #6
  br label %105

67:                                               ; preds = %64
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %65
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics16ShaderLayoutItemD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #6
  br label %71

71:                                               ; preds = %69, %67
  %.pn28 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #6
  br label %106

72:                                               ; preds = %27
  %73 = invoke i64 @_ZN3P3D8Graphics12parseVersionERNS0_10TokenStackE(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %74 unwind label %75

74:                                               ; preds = %72
  store i64 %73, ptr %3, align 8
  br label %105

75:                                               ; preds = %72
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %106

77:                                               ; preds = %27
  invoke void @_ZN3P3D8Graphics17parsePreprocessorERNS0_10TokenStackERSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %105 unwind label %31

78:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #6
  invoke void @_ZN3P3D8Graphics11parseStructERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_12ShaderStructESt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_SA_EEERKS3_IS9_fSC_SE_SaISF_ISG_fEEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::ShaderStruct") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %79 unwind label %84

79:                                               ; preds = %78
  %80 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEEixERSE_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %81 unwind label %86

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN3P3D8Graphics12ShaderStructaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %80, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %83 unwind label %86

83:                                               ; preds = %81
  call void @_ZN3P3D8Graphics12ShaderStructD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #6
  br label %105

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %81, %79
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics12ShaderStructD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  br label %88

88:                                               ; preds = %86, %84
  %.pn26 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #6
  br label %106

89:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %90 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE4findERSE_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %91 unwind label %97

91:                                               ; preds = %89
  store ptr %90, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %92 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  store ptr %92, ptr %20, align 8
  %93 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructEELb1EEESF_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br i1 %93, label %94, label %104

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %21) #6
  invoke void @_ZN3P3D8Graphics10parseLocalERNS0_10TokenStackERKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_fEEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Graphics::ShaderLocal") align 8 %21, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %95 unwind label %99

95:                                               ; preds = %94
  invoke void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(72) %21)
          to label %96 unwind label %101

96:                                               ; preds = %95
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %21) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %21) #6
  br label %105

97:                                               ; preds = %89
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %106

99:                                               ; preds = %94
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %95
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3P3D8Graphics11ShaderLocalD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %21) #6
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %21) #6
  br label %106

104:                                              ; preds = %91, %27
  invoke void @_ZN3P3D8Graphics10TokenStack7discardEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %105 unwind label %31

105:                                              ; preds = %35, %43, %58, %66, %74, %83, %77, %104, %96, %53
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #6
  br label %23

106:                                              ; preds = %103, %97, %88, %75, %71, %63, %54, %48, %40, %31
  %.pn36 = phi { ptr, i32 } [ %32, %31 ], [ %.pn, %103 ], [ %98, %97 ], [ %.pn26, %88 ], [ %76, %75 ], [ %.pn28, %71 ], [ %55, %54 ], [ %.pn30, %63 ], [ %.pn32, %48 ], [ %.pn34, %40 ]
  call void @_ZN3P3D8Graphics5TokenD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #6
  br label %109

107:                                              ; preds = %25
  invoke void @_ZN3P3D8Graphics10ShaderInfoC2ERKNS0_13ShaderVersionERKSt6vectorINS0_16ShaderLayoutItemESaIS6_EERKS5_INS0_11ShaderLocalESaISB_EERKS5_INS0_12ShaderGlobalESaISG_EESF_RKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashISR_ESt8equal_toISR_ESaISt4pairIKSR_fEEERKSL_ISR_NS0_12ShaderStructEST_SV_SaISW_ISX_S13_EEE(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %108 unwind label %.loopexit.split-lp

108:                                              ; preds = %107
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #6
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret void

109:                                              ; preds = %.loopexit, %.loopexit.split-lp, %29, %106
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36, %106 ], [ %30, %29 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3P3D8Graphics12ShaderStructESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #6
  call void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN3P3D8Graphics11ShaderLocalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn36.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics12ShaderGlobalD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics16ShaderLayoutItemD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3P3D8Graphics12ShaderStructaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics12ShaderStructD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics10ShaderInfoC2ERKNS0_13ShaderVersionERKSt6vectorINS0_16ShaderLayoutItemESaIS6_EERKS5_INS0_11ShaderLocalESaISB_EERKS5_INS0_12ShaderGlobalESaISG_EESF_RKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashISR_ESt8equal_toISR_ESaISt4pairIKSR_fEEERKSL_ISR_NS0_12ShaderStructEST_SV_SaISW_ISX_S13_EEE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEfSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_fEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics12ShaderGlobalESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics16ShaderLayoutItemESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass