; 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::TPublicType" = type { i32, %"struct.glslang::TSampler", %"class.glslang::TQualifier", %"struct.glslang::TShaderQualifiers", i16, ptr, ptr, %"struct.glslang::TSourceLoc", ptr, ptr }
%"struct.glslang::TSampler" = type { i32 }
%"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::TShaderQualifiers" = type { i32, i8, i8, i32, i32, i32, i32, i8, [3 x i32], [3 x i8], [3 x i32], i8, i8, i32, i8, i32, i32, i8, i8, i8, i32, i8 }
%"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.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.431 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.432 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.433 = external hidden unnamed_addr constant [84 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: mustprogress uwtable
declare dso_local noundef i32 @_ZN7glslang13TParseContext23computeSamplerTypeIndexERNS_8TSamplerE(ptr noundef nonnull align 8 dereferenceable(24912), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext19setDefaultPrecisionERKNS_10TSourceLocERNS_11TPublicTypeENS_19TPrecisionQualifierE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(232) %2, i32 noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  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 i32 %3, ptr %8, align 4, !tbaa !9
  %11 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = getelementptr inbounds %"class.glslang::TPublicType", ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !11
  store i32 %14, ptr %9, align 4, !tbaa !31
  %15 = load i32, ptr %9, align 4, !tbaa !31
  %16 = icmp eq i32 %15, 14
  br i1 %16, label %17, label %25

17:                                               ; preds = %4
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.glslang::TParseContext", ptr %11, i32 0, i32 7
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.glslang::TPublicType", ptr %20, i32 0, i32 1
  %22 = call noundef i32 @_ZN7glslang13TParseContext23computeSamplerTypeIndexERNS_8TSamplerE(ptr noundef nonnull align 8 dereferenceable(24912) %11, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [5632 x i32], ptr %19, i64 0, i64 %23
  store i32 %18, ptr %24, align 4, !tbaa !9
  store i32 1, ptr %10, align 4
  br label %70

25:                                               ; preds = %4
  %26 = load i32, ptr %9, align 4, !tbaa !31
  %27 = icmp eq i32 %26, 8
  br i1 %27, label %31, label %28

28:                                               ; preds = %25
  %29 = load i32, ptr %9, align 4, !tbaa !31
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %51

31:                                               ; preds = %28, %25
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNK7glslang11TPublicType8isScalarEv(ptr noundef nonnull align 8 dereferenceable(232) %32)
  br i1 %33, label %34, label %50

34:                                               ; preds = %31
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = getelementptr inbounds %"class.glslang::TParseContext", ptr %11, i32 0, i32 4
  %37 = load i32, ptr %9, align 4, !tbaa !31
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [22 x i32], ptr %36, i64 0, i64 %38
  store i32 %35, ptr %39, align 4, !tbaa !9
  %40 = load i32, ptr %9, align 4, !tbaa !31
  %41 = icmp eq i32 %40, 8
  br i1 %41, label %42, label %47

42:                                               ; preds = %34
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = getelementptr inbounds %"class.glslang::TParseContext", ptr %11, i32 0, i32 4
  %45 = getelementptr inbounds [22 x i32], ptr %44, i64 0, i64 9
  store i32 %43, ptr %45, align 4, !tbaa !9
  %46 = getelementptr inbounds %"class.glslang::TParseContext", ptr %11, i32 0, i32 8
  call void @_ZN7glslang17TPrecisionManager22explicitIntDefaultSeenEv(ptr noundef nonnull align 8 dereferenceable(12) %46)
  br label %49

47:                                               ; preds = %34
  %48 = getelementptr inbounds %"class.glslang::TParseContext", ptr %11, i32 0, i32 8
  call void @_ZN7glslang17TPrecisionManager24explicitFloatDefaultSeenEv(ptr noundef nonnull align 8 dereferenceable(12) %48)
  br label %49

49:                                               ; preds = %47, %42
  store i32 1, ptr %10, align 4
  br label %70

50:                                               ; preds = %31
  br label %51

51:                                               ; preds = %50, %28
  %52 = load i32, ptr %9, align 4, !tbaa !31
  %53 = icmp eq i32 %52, 13
  br i1 %53, label %54, label %63

54:                                               ; preds = %51
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 3
  br i1 %56, label %57, label %62

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !32
  %60 = getelementptr inbounds ptr, ptr %59, i64 42
  %61 = load ptr, ptr %60, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %61(ptr noundef nonnull align 8 dereferenceable(1176) %11, ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef @.str.431, ptr noundef @.str.432, ptr noundef @.str.2)
  br label %62

62:                                               ; preds = %57, %54
  store i32 1, ptr %10, align 4
  br label %70

63:                                               ; preds = %51
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !31
  %66 = call noundef ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef %65)
  %67 = load ptr, ptr %11, align 8, !tbaa !32
  %68 = getelementptr inbounds ptr, ptr %67, i64 42
  %69 = load ptr, ptr %68, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %69(ptr noundef nonnull align 8 dereferenceable(1176) %11, ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef @.str.433, ptr noundef %66, ptr noundef @.str.2)
  store i32 0, ptr %10, align 4
  br label %70

70:                                               ; preds = %63, %62, %49, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %71 = load i32, ptr %10, align 4
  switch i32 %71, label %73 [
    i32 0, label %72
    i32 1, label %72
  ]

72:                                               ; preds = %70, %70
  ret void

73:                                               ; preds = %70
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang17TPrecisionManager24explicitFloatDefaultSeenEv(ptr noundef nonnull align 8 dereferenceable(12)) #2 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 = { 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 = { 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 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN7glslang11TPublicTypeE", !13, i64 0, !14, i64 4, !18, i64 8, !24, i64 80, !17, i64 168, !17, i64 168, !17, i64 169, !16, i64 169, !6, i64 176, !6, i64 184, !30, i64 192, !6, i64 216, !6, i64 224}
!13 = !{!"_ZTSN7glslang10TBasicTypeE", !7, i64 0}
!14 = !{!"_ZTSN7glslang8TSamplerE", !13, i64 0, !15, i64 1, !16, i64 2, !16, i64 2, !16, i64 2, !16, i64 2, !16, i64 2, !16, i64 2, !17, i64 2, !17, i64 3, !16, i64 3, !16, i64 3}
!15 = !{!"_ZTSN7glslang11TSamplerDimE", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN7glslang10TQualifierE", !6, i64 0, !19, i64 8, !20, i64 8, !20, i64 9, !10, i64 11, !16, i64 11, !16, i64 11, !16, i64 11, !16, i64 11, !16, i64 11, !16, i64 12, !16, i64 12, !16, i64 12, !16, i64 12, !16, i64 12, !16, i64 12, !16, i64 12, !16, i64 12, !16, i64 13, !16, i64 13, !16, i64 13, !16, i64 13, !16, i64 13, !16, i64 13, !16, i64 13, !16, i64 13, !16, i64 14, !16, i64 14, !16, i64 14, !16, i64 14, !16, i64 14, !16, i64 14, !16, i64 14, !16, i64 14, !16, i64 15, !16, i64 15, !16, i64 15, !21, i64 15, !22, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 29, !17, i64 29, !17, i64 32, !17, i64 34, !17, i64 35, !17, i64 36, !17, i64 36, !17, i64 38, !17, i64 40, !17, i64 41, !17, i64 42, !23, i64 44, !16, i64 45, !16, i64 46, !16, i64 47, !16, i64 48, !17, i64 52, !16, i64 56, !17, i64 60, !6, i64 64}
!19 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!20 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!21 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!22 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!23 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!24 = !{!"_ZTSN7glslang17TShaderQualifiersE", !25, i64 0, !16, i64 4, !16, i64 5, !17, i64 8, !17, i64 12, !26, i64 16, !27, i64 20, !16, i64 24, !7, i64 28, !7, i64 40, !7, i64 44, !16, i64 56, !16, i64 57, !28, i64 60, !16, i64 64, !17, i64 68, !29, i64 72, !16, i64 76, !16, i64 77, !16, i64 78, !17, i64 80, !16, i64 84}
!25 = !{!"_ZTSN7glslang15TLayoutGeometryE", !7, i64 0}
!26 = !{!"_ZTSN7glslang14TVertexSpacingE", !7, i64 0}
!27 = !{!"_ZTSN7glslang12TVertexOrderE", !7, i64 0}
!28 = !{!"_ZTSN7glslang12TLayoutDepthE", !7, i64 0}
!29 = !{!"_ZTSN7glslang18TInterlockOrderingE", !7, i64 0}
!30 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !17, i64 8, !17, i64 12, !17, i64 16}
!31 = !{!13, !13, i64 0}
!32 = !{!33, !33, i64 0}
!33 = !{!"vtable pointer", !8, 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"

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.431 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.432 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.433 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7glslang13TParseContext23computeSamplerTypeIndexERNS_8TSamplerE(ptr noundef nonnull align 8 dereferenceable(24912), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext19setDefaultPrecisionERKNS_10TSourceLocERNS_11TPublicTypeENS_19TPrecisionQualifierE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(232) %2, i32 noundef %3) local_unnamed_addr #0 align 2 {
  %5 = load i32, ptr %2, align 8, !tbaa !5
  %6 = icmp eq i32 %5, 14
  br i1 %6, label %7, label %13

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 1744
  %9 = getelementptr inbounds i8, ptr %2, i64 4
  %10 = tail call noundef i32 @_ZN7glslang13TParseContext23computeSamplerTypeIndexERNS_8TSamplerE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [5632 x i32], ptr %8, i64 0, i64 %11
  store i32 %3, ptr %12, align 4, !tbaa !29
  br label %36

13:                                               ; preds = %4
  %14 = icmp eq i32 %5, 8
  switch i32 %5, label %31 [
    i32 8, label %15
    i32 1, label %15
    i32 13, label %26
  ]

15:                                               ; preds = %13, %13
  %16 = tail call noundef zeroext i1 @_ZNK7glslang11TPublicType8isScalarEv(ptr noundef nonnull align 8 dereferenceable(232) %2)
  br i1 %16, label %17, label %31

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 1264
  %19 = zext nneg i32 %5 to i64
  %20 = getelementptr inbounds [22 x i32], ptr %18, i64 0, i64 %19
  store i32 %3, ptr %20, align 4, !tbaa !29
  br i1 %14, label %21, label %24

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 1300
  store i32 %3, ptr %22, align 4, !tbaa !29
  %23 = getelementptr inbounds i8, ptr %0, i64 24272
  tail call void @_ZN7glslang17TPrecisionManager22explicitIntDefaultSeenEv(ptr noundef nonnull align 8 dereferenceable(12) %23)
  br label %36

24:                                               ; preds = %17
  %25 = getelementptr inbounds i8, ptr %0, i64 24272
  tail call void @_ZN7glslang17TPrecisionManager24explicitFloatDefaultSeenEv(ptr noundef nonnull align 8 dereferenceable(12) %25)
  br label %36

26:                                               ; preds = %13
  %.not = icmp eq i32 %3, 3
  br i1 %.not, label %36, label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %0, align 8, !tbaa !30
  %29 = getelementptr inbounds i8, ptr %28, i64 336
  %30 = load ptr, ptr %29, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %30(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull @.str.431, ptr noundef nonnull @.str.432, ptr noundef nonnull @.str.2)
  br label %36

31:                                               ; preds = %15, %13
  %32 = tail call noundef ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef %5)
  %33 = load ptr, ptr %0, align 8, !tbaa !30
  %34 = getelementptr inbounds i8, ptr %33, i64 336
  %35 = load ptr, ptr %34, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %35(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull @.str.433, ptr noundef %32, ptr noundef nonnull @.str.2)
  br label %36

36:                                               ; preds = %26, %27, %21, %24, %31, %7
  ret void
}

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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" }

!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 = !{!"_ZTSN7glslang11TPublicTypeE", !7, i64 0, !10, i64 4, !14, i64 8, !22, i64 80, !13, i64 168, !13, i64 168, !13, i64 169, !12, i64 169, !15, i64 176, !15, i64 184, !28, i64 192, !15, i64 216, !15, i64 224}
!7 = !{!"_ZTSN7glslang10TBasicTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7glslang8TSamplerE", !7, i64 0, !11, i64 1, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !13, i64 2, !13, i64 3, !12, i64 3, !12, i64 3}
!11 = !{!"_ZTSN7glslang11TSamplerDimE", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN7glslang10TQualifierE", !15, i64 0, !16, i64 8, !17, i64 8, !17, i64 9, !18, i64 11, !12, i64 11, !12, i64 11, !12, i64 11, !12, i64 11, !12, i64 11, !12, i64 12, !12, i64 12, !12, i64 12, !12, i64 12, !12, i64 12, !12, i64 12, !12, i64 12, !12, i64 12, !12, i64 13, !12, i64 13, !12, i64 13, !12, i64 13, !12, i64 13, !12, i64 13, !12, i64 13, !12, i64 13, !12, i64 14, !12, i64 14, !12, i64 14, !12, i64 14, !12, i64 14, !12, i64 14, !12, i64 14, !12, i64 14, !12, i64 15, !12, i64 15, !12, i64 15, !19, i64 15, !20, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 29, !13, i64 29, !13, i64 32, !13, i64 34, !13, i64 35, !13, i64 36, !13, i64 36, !13, i64 38, !13, i64 40, !13, i64 41, !13, i64 42, !21, i64 44, !12, i64 45, !12, i64 46, !12, i64 47, !12, i64 48, !13, i64 52, !12, i64 56, !13, i64 60, !15, i64 64}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSN7glslang17TStorageQualifierE", !8, i64 0}
!17 = !{!"_ZTSN7glslang16TBuiltInVariableE", !8, i64 0}
!18 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !8, i64 0}
!19 = !{!"_ZTSN7glslang13TLayoutMatrixE", !8, i64 0}
!20 = !{!"_ZTSN7glslang14TLayoutPackingE", !8, i64 0}
!21 = !{!"_ZTSN7glslang13TLayoutFormatE", !8, i64 0}
!22 = !{!"_ZTSN7glslang17TShaderQualifiersE", !23, i64 0, !12, i64 4, !12, i64 5, !13, i64 8, !13, i64 12, !24, i64 16, !25, i64 20, !12, i64 24, !8, i64 28, !8, i64 40, !8, i64 44, !12, i64 56, !12, i64 57, !26, i64 60, !12, i64 64, !13, i64 68, !27, i64 72, !12, i64 76, !12, i64 77, !12, i64 78, !13, i64 80, !12, i64 84}
!23 = !{!"_ZTSN7glslang15TLayoutGeometryE", !8, i64 0}
!24 = !{!"_ZTSN7glslang14TVertexSpacingE", !8, i64 0}
!25 = !{!"_ZTSN7glslang12TVertexOrderE", !8, i64 0}
!26 = !{!"_ZTSN7glslang12TLayoutDepthE", !8, i64 0}
!27 = !{!"_ZTSN7glslang18TInterlockOrderingE", !8, i64 0}
!28 = !{!"_ZTSN7glslang10TSourceLocE", !15, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!29 = !{!18, !18, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass