; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/glslang/MachineIndependent (ParseHelper)

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

%"class.glslang::TQualifier" = type <{ ptr, i64, i8, [3 x i8], i32, i32, i64, i64, i8, i8, i8, i8, i8, [3 x i8], i32, i8, [3 x i8], i32, ptr }>
%"struct.glslang::TTypeLoc" = type { ptr, %"struct.glslang::TSourceLoc" }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"class.glslang::TParseContext" = type { %"class.glslang::TParseContextBase", i8, ptr, %"class.glslang::TQualifier", [22 x i32], %struct.TBuiltInResource, ptr, [5632 x i32], %"class.glslang::TPrecisionManager", %"class.glslang::TQualifier", %"class.glslang::TQualifier", %"class.glslang::TQualifier", %"class.glslang::TQualifier", %"class.glslang::TQualifier", %"class.std::__cxx11::basic_string", ptr, i8, %"class.std::set", %"class.glslang::TVector.35", %"class.std::map.39", %"class.std::map.39", %"class.glslang::TVector" }
%"class.glslang::TParseContextBase" = type { %"class.glslang::TParseVersions", ptr, ptr, i32, i32, i32, i32, i32, ptr, i8, i8, %"class.glslang::TList", %"class.glslang::TList.5", %"struct.glslang::TPragma", i32, i32, i8, %"class.glslang::TVector", ptr, ptr, %struct.TBuiltInResource, ptr, %"class.std::__cxx11::basic_string", %"class.std::function", %"class.std::function.15", %"class.std::function.17", %"class.std::function.19", %"class.std::function.21", ptr, i32, i32, i32, %"class.glslang::TMap.24", i32, %"class.glslang::TMap.29" }
%"class.glslang::TParseVersions" = type { ptr, i8, i32, ptr, i32, i32, %"struct.glslang::SpvVersion", ptr, %"class.glslang::TMap", %"class.glslang::TMap.0", i32, i32, ptr }
%"struct.glslang::SpvVersion" = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"class.glslang::TMap" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator" = type { ptr }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.glslang::TMap.0" = type { %"class.std::map.1" }
%"class.std::map.1" = type { %"class.std::_Rb_tree.2" }
%"class.std::_Rb_tree.2" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.3", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.3" = type { ptr }
%"class.glslang::TList" = type { %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<glslang::TVector<TIntermNode *> *, glslang::pool_allocator<glslang::TVector<TIntermNode *> *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<glslang::TVector<TIntermNode *> *, glslang::pool_allocator<glslang::TVector<TIntermNode *> *>>::_List_impl" = type { %"class.glslang::pool_allocator.4", %"struct.std::__detail::_List_node_header" }
%"class.glslang::pool_allocator.4" = type { ptr }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.glslang::TList.5" = type { %"class.std::__cxx11::list.6" }
%"class.std::__cxx11::list.6" = type { %"class.std::__cxx11::_List_base.7" }
%"class.std::__cxx11::_List_base.7" = type { %"struct.std::__cxx11::_List_base<int, glslang::pool_allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, glslang::pool_allocator<int>>::_List_impl" = type { %"class.glslang::pool_allocator.8", %"struct.std::__detail::_List_node_header" }
%"class.glslang::pool_allocator.8" = type { ptr }
%"struct.glslang::TPragma" = type { i8, i8, %"class.glslang::TPragmaTable" }
%"class.glslang::TPragmaTable" = type { %"class.glslang::TMap.9" }
%"class.glslang::TMap.9" = type { %"class.std::map.10" }
%"class.std::map.10" = type { %"class.std::_Rb_tree.11" }
%"class.std::_Rb_tree.11" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.12", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.12" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.15" = type { %"class.std::_Function_base", ptr }
%"class.std::function.17" = type { %"class.std::_Function_base", ptr }
%"class.std::function.19" = type { %"class.std::_Function_base", ptr }
%"class.std::function.21" = type { %"class.std::_Function_base", ptr }
%"class.glslang::TMap.24" = type { %"class.std::map.25" }
%"class.std::map.25" = type { %"class.std::_Rb_tree.26" }
%"class.std::_Rb_tree.26" = type { %"struct.std::_Rb_tree<int, std::pair<const int, glslang::TVariable *>, std::_Select1st<std::pair<const int, glslang::TVariable *>>, std::less<int>, glslang::pool_allocator<std::pair<const int, glslang::TVariable *>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, glslang::TVariable *>, std::_Select1st<std::pair<const int, glslang::TVariable *>>, std::less<int>, glslang::pool_allocator<std::pair<const int, glslang::TVariable *>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.27", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.27" = type { ptr }
%"class.glslang::TMap.29" = type { %"class.std::map.30" }
%"class.std::map.30" = type { %"class.std::_Rb_tree.31" }
%"class.std::_Rb_tree.31" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>, glslang::pool_allocator<std::pair<const int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>, glslang::pool_allocator<std::pair<const int, int>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.32", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.32" = type { ptr }
%struct.TBuiltInResource = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.TLimits }
%struct.TLimits = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"class.glslang::TPrecisionManager" = type <{ ptr, i8, i8, i8, i8, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider" = type { %"class.glslang::pool_allocator.14", ptr }
%"class.glslang::pool_allocator.14" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::set" = type { %"class.std::_Rb_tree.33" }
%"class.std::_Rb_tree.33" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::TVector.35" = type { %"class.std::vector.36" }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<glslang::TIntermTyped *, glslang::pool_allocator<glslang::TIntermTyped *>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TIntermTyped *, glslang::pool_allocator<glslang::TIntermTyped *>>::_Vector_impl" = type { %"class.glslang::pool_allocator.38", %"struct.std::_Vector_base<glslang::TIntermTyped *, glslang::pool_allocator<glslang::TIntermTyped *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.38" = type { ptr }
%"struct.std::_Vector_base<glslang::TIntermTyped *, glslang::pool_allocator<glslang::TIntermTyped *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.39" = type { %"class.std::_Rb_tree.40" }
%"class.std::_Rb_tree.40" = type { %"struct.std::_Rb_tree<const glslang::TVector<glslang::TTypeLoc> *, std::pair<const glslang::TVector<glslang::TTypeLoc> *const, std::map<unsigned long, const glslang::TVector<glslang::TTypeLoc> *>>, std::_Select1st<std::pair<const glslang::TVector<glslang::TTypeLoc> *const, std::map<unsigned long, const glslang::TVector<glslang::TTypeLoc> *>>>, std::less<const glslang::TVector<glslang::TTypeLoc> *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const glslang::TVector<glslang::TTypeLoc> *, std::pair<const glslang::TVector<glslang::TTypeLoc> *const, std::map<unsigned long, const glslang::TVector<glslang::TTypeLoc> *>>, std::_Select1st<std::pair<const glslang::TVector<glslang::TTypeLoc> *const, std::map<unsigned long, const glslang::TVector<glslang::TTypeLoc> *>>>, std::less<const glslang::TVector<glslang::TTypeLoc> *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::TVector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glslang::TSymbol *, glslang::pool_allocator<glslang::TSymbol *>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TSymbol *, glslang::pool_allocator<glslang::TSymbol *>>::_Vector_impl" = type { %"class.glslang::pool_allocator.13", %"struct.std::_Vector_base<glslang::TSymbol *, glslang::pool_allocator<glslang::TSymbol *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.13" = type { ptr }
%"struct.std::_Vector_base<glslang::TSymbol *, glslang::pool_allocator<glslang::TSymbol *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.68 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.879 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_ = external hidden unnamed_addr constant [97 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7glslang5TType17getWritableStructEv(ptr noundef nonnull align 8 dereferenceable(144)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef %2, ptr noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %22, label %16

16:                                               ; preds = %4
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  %21 = icmp eq i64 %18, %20
  br label %22

22:                                               ; preds = %16, %4
  %23 = phi i1 [ true, %4 ], [ %21, %16 ]
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  br label %27

25:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.879, ptr noundef @.str.68, i32 noundef 8751, ptr noundef @__PRETTY_FUNCTION__._ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_) #5
  unreachable

26:                                               ; No predecessors!
  br label %27

27:                                               ; preds = %26, %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %280, %27
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %31) #4
  %33 = icmp ult i64 %30, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %283

35:                                               ; preds = %28
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.glslang::TQualifier", ptr %36, i32 0, i32 2
  %38 = load i8, ptr %37, align 8
  %39 = and i8 %38, 15
  %40 = zext i8 %39 to i32
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %176

42:                                               ; preds = %35
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %110

45:                                               ; preds = %42
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %46, i64 noundef %48) #4
  %50 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds ptr, ptr %52, i64 28
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef zeroext i1 %54(ptr noundef nonnull align 8 dereferenceable(144) %51)
  br i1 %55, label %68, label %56

56:                                               ; preds = %45
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %57, i64 noundef %59) #4
  %61 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  %64 = getelementptr inbounds ptr, ptr %63, i64 7
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef i32 %65(ptr noundef nonnull align 8 dereferenceable(144) %62)
  %67 = icmp eq i32 %66, 15
  br i1 %67, label %68, label %109

68:                                               ; preds = %56, %45
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %69, i64 noundef %71) #4
  %73 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  %76 = getelementptr inbounds ptr, ptr %75, i64 10
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef nonnull align 8 dereferenceable(72) ptr %77(ptr noundef nonnull align 8 dereferenceable(144) %74)
  %79 = getelementptr inbounds %"class.glslang::TQualifier", ptr %78, i32 0, i32 1
  %80 = load i64, ptr %79, align 8
  %81 = lshr i64 %80, 59
  %82 = and i64 %81, 7
  %83 = trunc i64 %82 to i32
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %109

85:                                               ; preds = %68
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.glslang::TQualifier", ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 8
  %89 = lshr i64 %88, 59
  %90 = and i64 %89, 7
  %91 = trunc i64 %90 to i32
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %92, i64 noundef %94) #4
  %96 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = getelementptr inbounds ptr, ptr %98, i64 10
  %100 = load ptr, ptr %99, align 8
  %101 = call noundef nonnull align 8 dereferenceable(72) ptr %100(ptr noundef nonnull align 8 dereferenceable(144) %97)
  %102 = getelementptr inbounds %"class.glslang::TQualifier", ptr %101, i32 0, i32 1
  %103 = zext i32 %91 to i64
  %104 = load i64, ptr %102, align 8
  %105 = and i64 %103, 7
  %106 = shl i64 %105, 59
  %107 = and i64 %104, -4035225266123964417
  %108 = or i64 %107, %106
  store i64 %108, ptr %102, align 8
  br label %109

109:                                              ; preds = %85, %68, %56
  br label %175

110:                                              ; preds = %42
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %111, i64 noundef %113) #4
  %115 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = load ptr, ptr %116, align 8, !tbaa !14
  %118 = getelementptr inbounds ptr, ptr %117, i64 28
  %119 = load ptr, ptr %118, align 8
  %120 = call noundef zeroext i1 %119(ptr noundef nonnull align 8 dereferenceable(144) %116)
  br i1 %120, label %133, label %121

121:                                              ; preds = %110
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %122, i64 noundef %124) #4
  %126 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = load ptr, ptr %127, align 8, !tbaa !14
  %129 = getelementptr inbounds ptr, ptr %128, i64 7
  %130 = load ptr, ptr %129, align 8
  %131 = call noundef i32 %130(ptr noundef nonnull align 8 dereferenceable(144) %127)
  %132 = icmp eq i32 %131, 15
  br i1 %132, label %133, label %174

133:                                              ; preds = %121, %110
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %134, i64 noundef %136) #4
  %138 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = load ptr, ptr %139, align 8, !tbaa !14
  %141 = getelementptr inbounds ptr, ptr %140, i64 10
  %142 = load ptr, ptr %141, align 8
  %143 = call noundef nonnull align 8 dereferenceable(72) ptr %142(ptr noundef nonnull align 8 dereferenceable(144) %139)
  %144 = getelementptr inbounds %"class.glslang::TQualifier", ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8
  %146 = lshr i64 %145, 59
  %147 = and i64 %146, 7
  %148 = trunc i64 %147 to i32
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %174

150:                                              ; preds = %133
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.glslang::TQualifier", ptr %151, i32 0, i32 1
  %153 = load i64, ptr %152, align 8
  %154 = lshr i64 %153, 59
  %155 = and i64 %154, 7
  %156 = trunc i64 %155 to i32
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %157, i64 noundef %159) #4
  %161 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %160, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !11
  %163 = load ptr, ptr %162, align 8, !tbaa !14
  %164 = getelementptr inbounds ptr, ptr %163, i64 10
  %165 = load ptr, ptr %164, align 8
  %166 = call noundef nonnull align 8 dereferenceable(72) ptr %165(ptr noundef nonnull align 8 dereferenceable(144) %162)
  %167 = getelementptr inbounds %"class.glslang::TQualifier", ptr %166, i32 0, i32 1
  %168 = zext i32 %156 to i64
  %169 = load i64, ptr %167, align 8
  %170 = and i64 %168, 7
  %171 = shl i64 %170, 59
  %172 = and i64 %169, -4035225266123964417
  %173 = or i64 %172, %171
  store i64 %173, ptr %167, align 8
  br label %174

174:                                              ; preds = %150, %133, %121
  br label %175

175:                                              ; preds = %174, %109
  br label %176

176:                                              ; preds = %175, %35
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load i32, ptr %9, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %177, i64 noundef %179) #4
  %181 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !11
  %183 = load ptr, ptr %182, align 8, !tbaa !14
  %184 = getelementptr inbounds ptr, ptr %183, i64 7
  %185 = load ptr, ptr %184, align 8
  %186 = call noundef i32 %185(ptr noundef nonnull align 8 dereferenceable(144) %182)
  %187 = icmp eq i32 %186, 15
  br i1 %187, label %188, label %279

188:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !5
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = load i32, ptr %9, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %189, i64 noundef %191) #4
  %193 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !11
  %195 = load ptr, ptr %194, align 8, !tbaa !14
  %196 = getelementptr inbounds ptr, ptr %195, i64 10
  %197 = load ptr, ptr %196, align 8
  %198 = call noundef nonnull align 8 dereferenceable(72) ptr %197(ptr noundef nonnull align 8 dereferenceable(144) %194)
  %199 = getelementptr inbounds %"class.glslang::TQualifier", ptr %198, i32 0, i32 1
  %200 = load i64, ptr %199, align 8
  %201 = lshr i64 %200, 59
  %202 = and i64 %201, 7
  %203 = trunc i64 %202 to i32
  %204 = icmp eq i32 %203, 0
  br i1 %204, label %205, label %207

205:                                              ; preds = %188
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %206, ptr %10, align 8, !tbaa !5
  br label %218

207:                                              ; preds = %188
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = load i32, ptr %9, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %208, i64 noundef %210) #4
  %212 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !11
  %214 = load ptr, ptr %213, align 8, !tbaa !14
  %215 = getelementptr inbounds ptr, ptr %214, i64 10
  %216 = load ptr, ptr %215, align 8
  %217 = call noundef nonnull align 8 dereferenceable(72) ptr %216(ptr noundef nonnull align 8 dereferenceable(144) %213)
  store ptr %217, ptr %10, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %207, %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = icmp eq ptr %219, null
  br i1 %220, label %221, label %229

221:                                              ; preds = %218
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %222, i64 noundef %224) #4
  %226 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %225, i32 0, i32 0
  %227 = load ptr, ptr %226, align 8, !tbaa !11
  %228 = call noundef ptr @_ZNK7glslang5TType5cloneEv(ptr noundef nonnull align 8 dereferenceable(144) %227)
  br label %236

229:                                              ; preds = %218
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = load i32, ptr %9, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %230, i64 noundef %232) #4
  %234 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %233, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  br label %236

236:                                              ; preds = %229, %221
  %237 = phi ptr [ %228, %221 ], [ %235, %229 ]
  store ptr %237, ptr %11, align 8, !tbaa !5
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load i32, ptr %9, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %239, i64 noundef %241) #4
  %243 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = call noundef ptr @_ZNK7glslang5TType17getWritableStructEv(ptr noundef nonnull align 8 dereferenceable(144) %244)
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  %247 = call noundef ptr @_ZNK7glslang5TType17getWritableStructEv(ptr noundef nonnull align 8 dereferenceable(144) %246)
  call void @_ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_(ptr noundef nonnull align 8 dereferenceable(24912) %13, ptr noundef nonnull align 8 dereferenceable(72) %238, ptr noundef %245, ptr noundef %247)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %248 = getelementptr inbounds %"class.glslang::TParseContext", ptr %13, i32 0, i32 19
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load i32, ptr %9, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %249, i64 noundef %251) #4
  %253 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %252, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = call noundef ptr @_ZN7glslang13TParseContext16recordStructCopyERSt3mapIPKNS_7TVectorINS_8TTypeLocEEES1_ImS6_St4lessImESaISt4pairIKmS6_EEES7_IS6_ESaIS9_IKS6_SD_EEEPKNS_5TTypeESM_(ptr noundef nonnull align 8 dereferenceable(24912) %13, ptr noundef nonnull align 8 dereferenceable(48) %248, ptr noundef %254, ptr noundef %255)
  store ptr %256, ptr %12, align 8, !tbaa !5
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = icmp eq ptr %257, null
  br i1 %258, label %259, label %267

259:                                              ; preds = %236
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %260, i64 noundef %262) #4
  %264 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !11
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN7glslang5TType9setStructEPNS_7TVectorINS_8TTypeLocEEE(ptr noundef nonnull align 8 dereferenceable(144) %265, ptr noundef %266)
  br label %267

267:                                              ; preds = %259, %236
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = icmp ne ptr %268, null
  br i1 %269, label %270, label %278

270:                                              ; preds = %267
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = load i32, ptr %9, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %271, i64 noundef %273) #4
  %275 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %274, i32 0, i32 0
  %276 = load ptr, ptr %275, align 8, !tbaa !11
  %277 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN7glslang5TType9setStructEPNS_7TVectorINS_8TTypeLocEEE(ptr noundef nonnull align 8 dereferenceable(144) %276, ptr noundef %277)
  br label %278

278:                                              ; preds = %270, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %279

279:                                              ; preds = %278, %176
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %9, align 4, !tbaa !9
  %282 = add i32 %281, 1
  store i32 %282, ptr %9, align 4, !tbaa !9
  br label %28, !llvm.loop !16

283:                                              ; preds = %34
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7glslang5TType5cloneEv(ptr noundef nonnull align 8 dereferenceable(144)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7glslang13TParseContext16recordStructCopyERSt3mapIPKNS_7TVectorINS_8TTypeLocEEES1_ImS6_St4lessImESaISt4pairIKmS6_EEES7_IS6_ESaIS9_IKS6_SD_EEEPKNS_5TTypeESM_(ptr noundef nonnull align 8 dereferenceable(24912), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang5TType9setStructEPNS_7TVectorINS_8TTypeLocEEE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef) #3 align 2

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


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

@.str.68 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.879 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_ = external hidden unnamed_addr constant [97 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(72) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 align 2 {
  %5 = icmp eq ptr %3, null
  br i1 %5, label %.critedge, label %6

6:                                                ; preds = %4
  %7 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #3
  %8 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #3
  %9 = icmp eq i64 %7, %8
  br i1 %9, label %.critedge, label %10

10:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.879, ptr noundef nonnull @.str.68, i32 noundef 8751, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_) #4
  unreachable

.critedge:                                        ; preds = %4, %6
  %11 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #3
  %.not58 = icmp eq i64 %11, 0
  br i1 %.not58, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.critedge
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = getelementptr inbounds i8, ptr %0, i64 24784
  br label %15

._crit_edge:                                      ; preds = %128, %.critedge
  ret void

15:                                               ; preds = %.lr.ph, %128
  %16 = phi i64 [ 0, %.lr.ph ], [ %130, %128 ]
  %.057 = phi i32 [ 0, %.lr.ph ], [ %129, %128 ]
  %17 = load i8, ptr %12, align 8
  %18 = and i8 %17, 15
  %.not = icmp eq i8 %18, 0
  br i1 %.not, label %84, label %19

19:                                               ; preds = %15
  br i1 %5, label %20, label %46

20:                                               ; preds = %19
  %21 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %23, i64 224
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef zeroext i1 %25(ptr noundef nonnull align 8 dereferenceable(144) %22)
  br i1 %26, label %35, label %27

27:                                               ; preds = %20
  %28 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %30, i64 56
  %32 = load ptr, ptr %31, align 8
  %33 = tail call noundef i32 %32(ptr noundef nonnull align 8 dereferenceable(144) %29)
  %34 = icmp eq i32 %33, 15
  br i1 %34, label %35, label %84

35:                                               ; preds = %27, %20
  %36 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %38, i64 80
  %40 = load ptr, ptr %39, align 8
  %41 = tail call noundef nonnull align 8 dereferenceable(72) ptr %40(ptr noundef nonnull align 8 dereferenceable(144) %37)
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load i64, ptr %42, align 8
  %44 = and i64 %43, 4035225266123964416
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %.sink.split, label %84

46:                                               ; preds = %19
  %47 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %16) #3
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  %50 = getelementptr inbounds i8, ptr %49, i64 224
  %51 = load ptr, ptr %50, align 8
  %52 = tail call noundef zeroext i1 %51(ptr noundef nonnull align 8 dereferenceable(144) %48)
  br i1 %52, label %61, label %53

53:                                               ; preds = %46
  %54 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %16) #3
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !12
  %57 = getelementptr inbounds i8, ptr %56, i64 56
  %58 = load ptr, ptr %57, align 8
  %59 = tail call noundef i32 %58(ptr noundef nonnull align 8 dereferenceable(144) %55)
  %60 = icmp eq i32 %59, 15
  br i1 %60, label %61, label %84

61:                                               ; preds = %53, %46
  %62 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %16) #3
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !12
  %65 = getelementptr inbounds i8, ptr %64, i64 80
  %66 = load ptr, ptr %65, align 8
  %67 = tail call noundef nonnull align 8 dereferenceable(72) ptr %66(ptr noundef nonnull align 8 dereferenceable(144) %63)
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = load i64, ptr %68, align 8
  %70 = and i64 %69, 4035225266123964416
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %.sink.split, label %84

.sink.split:                                      ; preds = %61, %35
  %.sink = phi ptr [ %2, %35 ], [ %3, %61 ]
  %72 = load i64, ptr %13, align 8
  %73 = and i64 %72, 4035225266123964416
  %74 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.sink, i64 noundef %16) #3
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !12
  %77 = getelementptr inbounds i8, ptr %76, i64 80
  %78 = load ptr, ptr %77, align 8
  %79 = tail call noundef nonnull align 8 dereferenceable(72) ptr %78(ptr noundef nonnull align 8 dereferenceable(144) %75)
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load i64, ptr %80, align 8
  %82 = and i64 %81, -4035225266123964417
  %83 = or disjoint i64 %82, %73
  store i64 %83, ptr %80, align 8
  br label %84

84:                                               ; preds = %.sink.split, %35, %27, %61, %53, %15
  %85 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %86, align 8, !tbaa !12
  %88 = getelementptr inbounds i8, ptr %87, i64 56
  %89 = load ptr, ptr %88, align 8
  %90 = tail call noundef i32 %89(ptr noundef nonnull align 8 dereferenceable(144) %86)
  %91 = icmp eq i32 %90, 15
  br i1 %91, label %92, label %128

92:                                               ; preds = %84
  %93 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load ptr, ptr %94, align 8, !tbaa !12
  %96 = getelementptr inbounds i8, ptr %95, i64 80
  %97 = load ptr, ptr %96, align 8
  %98 = tail call noundef nonnull align 8 dereferenceable(72) ptr %97(ptr noundef nonnull align 8 dereferenceable(144) %94)
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  %100 = load i64, ptr %99, align 8
  %101 = and i64 %100, 4035225266123964416
  %102 = icmp eq i64 %101, 0
  br i1 %102, label %110, label %103

103:                                              ; preds = %92
  %104 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = load ptr, ptr %105, align 8, !tbaa !12
  %107 = getelementptr inbounds i8, ptr %106, i64 80
  %108 = load ptr, ptr %107, align 8
  %109 = tail call noundef nonnull align 8 dereferenceable(72) ptr %108(ptr noundef nonnull align 8 dereferenceable(144) %105)
  br label %110

110:                                              ; preds = %92, %103
  %.053 = phi ptr [ %109, %103 ], [ %1, %92 ]
  br i1 %5, label %111, label %115

111:                                              ; preds = %110
  %112 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = tail call noundef ptr @_ZNK7glslang5TType5cloneEv(ptr noundef nonnull align 8 dereferenceable(144) %113)
  br label %.sink.split68

115:                                              ; preds = %110
  %116 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %16) #3
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  br label %.sink.split68

.sink.split68:                                    ; preds = %115, %111
  %. = phi ptr [ %2, %111 ], [ %3, %115 ]
  %118 = phi ptr [ %114, %111 ], [ %117, %115 ]
  %119 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = tail call noundef ptr @_ZNK7glslang5TType17getWritableStructEv(ptr noundef nonnull align 8 dereferenceable(144) %120)
  %122 = tail call noundef ptr @_ZNK7glslang5TType17getWritableStructEv(ptr noundef nonnull align 8 dereferenceable(144) %118)
  tail call void @_ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(72) %.053, ptr noundef %121, ptr noundef %122)
  %123 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %16) #3
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = tail call noundef ptr @_ZN7glslang13TParseContext16recordStructCopyERSt3mapIPKNS_7TVectorINS_8TTypeLocEEES1_ImS6_St4lessImESaISt4pairIKmS6_EEES7_IS6_ESaIS9_IKS6_SD_EEEPKNS_5TTypeESM_(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef %124, ptr noundef nonnull %118)
  %126 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %., i64 noundef %16) #3
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  tail call void @_ZN7glslang5TType9setStructEPNS_7TVectorINS_8TTypeLocEEE(ptr noundef nonnull align 8 dereferenceable(144) %127, ptr noundef %125)
  br label %128

128:                                              ; preds = %.sink.split68, %84
  %129 = add i32 %.057, 1
  %130 = zext i32 %129 to i64
  %131 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #3
  %132 = icmp ugt i64 %131, %130
  br i1 %132, label %15, label %._crit_edge, !llvm.loop !14
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7glslang13TParseContext16recordStructCopyERSt3mapIPKNS_7TVectorINS_8TTypeLocEEES1_ImS6_St4lessImESaISt4pairIKmS6_EEES7_IS6_ESaIS9_IKS6_SD_EEEPKNS_5TTypeESM_(ptr noundef nonnull align 8 dereferenceable(24912), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 }
attributes #4 = { noreturn 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 = !{!"_ZTSN7glslang8TTypeLocE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7glslang10TSourceLocE", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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