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

; 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::TPpContext::tMacroInput" = type <{ %"class.glslang::TPpContext::tInput", ptr, %"class.glslang::TVector.171", %"class.glslang::TVector.171", i8, i8, [6 x i8] }>
%"class.glslang::TPpContext::tInput" = type { ptr, i8, ptr }
%"class.glslang::TVector.171" = type { %"class.std::vector.172" }
%"class.std::vector.172" = type { %"struct.std::_Vector_base.173" }
%"struct.std::_Vector_base.173" = type { %"struct.std::_Vector_base<glslang::TPpContext::TokenStream *, glslang::pool_allocator<glslang::TPpContext::TokenStream *>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TPpContext::TokenStream *, glslang::pool_allocator<glslang::TPpContext::TokenStream *>>::_Vector_impl" = type { %"class.glslang::pool_allocator.174", %"struct.std::_Vector_base<glslang::TPpContext::TokenStream *, glslang::pool_allocator<glslang::TPpContext::TokenStream *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.174" = type { ptr }
%"struct.std::_Vector_base<glslang::TPpContext::TokenStream *, glslang::pool_allocator<glslang::TPpContext::TokenStream *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glslang::TPpContext::MacroSymbol" = type <{ %"class.glslang::TVector", %"class.glslang::TPpContext::TokenStream", i8, [7 x i8] }>
%"class.glslang::TVector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, glslang::pool_allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, glslang::pool_allocator<int>>::_Vector_impl" = type { %"class.glslang::pool_allocator", %"struct.std::_Vector_base<int, glslang::pool_allocator<int>>::_Vector_impl_data" }
%"class.glslang::pool_allocator" = type { ptr }
%"struct.std::_Vector_base<int, glslang::pool_allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glslang::TPpContext::TokenStream" = type { %"class.glslang::TVector.0", i64 }
%"class.glslang::TVector.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<glslang::TPpContext::TokenStream::Token, glslang::pool_allocator<glslang::TPpContext::TokenStream::Token>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TPpContext::TokenStream::Token, glslang::pool_allocator<glslang::TPpContext::TokenStream::Token>>::_Vector_impl" = type { %"class.glslang::pool_allocator.3", %"struct.std::_Vector_base<glslang::TPpContext::TokenStream::Token, glslang::pool_allocator<glslang::TPpContext::TokenStream::Token>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.3" = type { ptr }
%"struct.std::_Vector_base<glslang::TPpContext::TokenStream::Token, glslang::pool_allocator<glslang::TPpContext::TokenStream::Token>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glslang::TPpContext" = type <{ ptr, %"class.glslang::TMap", %"class.glslang::TStringAtomMap", ptr, i32, [4 x i8], ptr, ptr, i32, i32, i32, [4 x i8], ptr, i32, [65 x i8], [3 x i8], i32, [4 x i8], %"class.std::vector.13", i8, i8, [6 x i8], ptr, i8, [7 x i8], %"class.std::__cxx11::basic_string.15", %"class.std::stack", %"class.std::__cxx11::basic_string.15", %"class.std::__cxx11::basic_istringstream", i8, [7 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<int, std::pair<const int, glslang::TPpContext::MacroSymbol>, std::_Select1st<std::pair<const int, glslang::TPpContext::MacroSymbol>>, std::less<int>, glslang::pool_allocator<std::pair<const int, glslang::TPpContext::MacroSymbol>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, glslang::TPpContext::MacroSymbol>, std::_Select1st<std::pair<const int, glslang::TPpContext::MacroSymbol>>, std::less<int>, glslang::pool_allocator<std::pair<const int, glslang::TPpContext::MacroSymbol>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.4", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.4" = 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::TStringAtomMap" = type { %"class.glslang::TUnorderedMap", %"class.glslang::TVector.8", i32, %"class.std::__cxx11::basic_string" }
%"class.glslang::TUnorderedMap" = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { %"struct.std::__detail::_Hashtable_alloc", ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hashtable_alloc" = type { %"struct.std::__detail::_Hashtable_ebo_helper.6" }
%"struct.std::__detail::_Hashtable_ebo_helper.6" = type { %"class.glslang::pool_allocator.7" }
%"class.glslang::pool_allocator.7" = type { ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.glslang::TVector.8" = type { %"class.std::vector.9" }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *, glslang::pool_allocator<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *>>::_Vector_impl" }
%"struct.std::_Vector_base<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *, glslang::pool_allocator<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *>>::_Vector_impl" = type { %"class.glslang::pool_allocator.11", %"struct.std::_Vector_base<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *, glslang::pool_allocator<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.11" = type { ptr }
%"struct.std::_Vector_base<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *, glslang::pool_allocator<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>> *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.12", ptr }
%"class.glslang::pool_allocator.12" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<glslang::TPpContext::tInput *, std::allocator<glslang::TPpContext::tInput *>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TPpContext::tInput *, std::allocator<glslang::TPpContext::tInput *>>::_Vector_impl" = type { %"struct.std::_Vector_base<glslang::TPpContext::tInput *, std::allocator<glslang::TPpContext::tInput *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glslang::TPpContext::tInput *, std::allocator<glslang::TPpContext::tInput *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<glslang::TShader::Includer::IncludeResult *, std::allocator<glslang::TShader::Includer::IncludeResult *>>::_Deque_impl" }
%"struct.std::_Deque_base<glslang::TShader::Includer::IncludeResult *, std::allocator<glslang::TShader::Includer::IncludeResult *>>::_Deque_impl" = type { %"struct.std::_Deque_base<glslang::TShader::Includer::IncludeResult *, std::allocator<glslang::TShader::Includer::IncludeResult *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<glslang::TShader::Includer::IncludeResult *, std::allocator<glslang::TShader::Includer::IncludeResult *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string.15" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.19 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.19 = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_istringstream" = type { %"class.std::basic_istream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string.15" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.glslang::TPpToken" = type <{ %"struct.glslang::TSourceLoc", i8, [7 x i8], %union.anon.63, [1025 x i8], [7 x i8] }>
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%union.anon.63 = type { double }

@.str.70 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [117 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE = external hidden unnamed_addr constant [63 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: mustprogress uwtable
declare dso_local noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921), ptr noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) #2 align 2

declare noundef i32 @_ZN7glslang10TPpContext11TokenStream8getTokenERNS_17TParseContextBaseEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(1176), ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

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

declare void @_ZN7glslang10TPpContext20pushTokenStreamInputERNS0_11TokenStreamEb(ptr noundef nonnull align 8 dereferenceable(921), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(98) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  br label %12

12:                                               ; preds = %22, %2
  %13 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %"struct.glslang::TPpContext::MacroSymbol", ptr %14, i32 0, i32 1
  %16 = getelementptr inbounds %"class.glslang::TPpContext::tInput", ptr %11, i32 0, i32 2
  %17 = load ptr, ptr %16, align 8, !tbaa !19
  %18 = getelementptr inbounds %"class.glslang::TPpContext", ptr %17, i32 0, i32 12
  %19 = load ptr, ptr %18, align 8, !tbaa !20
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call noundef i32 @_ZN7glslang10TPpContext11TokenStream8getTokenERNS_17TParseContextBaseEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(1176) %19, ptr noundef %20)
  store i32 %21, ptr %6, align 4, !tbaa !71
  br label %22

22:                                               ; preds = %12
  %23 = load i32, ptr %6, align 4, !tbaa !71
  %24 = icmp eq i32 %23, 32
  br i1 %24, label %12, label %25, !llvm.loop !72

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 0, ptr %7, align 1, !tbaa !74
  %26 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 5
  %27 = load i8, ptr %26, align 1, !tbaa !75, !range !76, !noundef !77
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %31

29:                                               ; preds = %25
  store i8 1, ptr %7, align 1, !tbaa !74
  %30 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 5
  store i8 0, ptr %30, align 1, !tbaa !75
  br label %31

31:                                               ; preds = %29, %25
  %32 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 4
  %33 = load i8, ptr %32, align 8, !tbaa !78, !range !76, !noundef !77
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %44

35:                                               ; preds = %31
  %36 = load i32, ptr %6, align 4, !tbaa !71
  %37 = icmp eq i32 %36, 151
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  br label %41

39:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.70, ptr noundef @.str.71, i32 noundef 1118, ptr noundef @__PRETTY_FUNCTION__._ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE) #7
  unreachable

40:                                               ; No predecessors!
  br label %41

41:                                               ; preds = %40, %38
  %42 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 4
  store i8 0, ptr %42, align 8, !tbaa !78
  %43 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 5
  store i8 1, ptr %43, align 1, !tbaa !75
  br label %44

44:                                               ; preds = %41, %31
  %45 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds %"struct.glslang::TPpContext::MacroSymbol", ptr %46, i32 0, i32 1
  %48 = call noundef zeroext i1 @_ZN7glslang10TPpContext11TokenStream22peekUntokenizedPastingEv(ptr noundef nonnull align 8 dereferenceable(40) %47)
  br i1 %48, label %49, label %51

49:                                               ; preds = %44
  %50 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 4
  store i8 1, ptr %50, align 8, !tbaa !78
  store i8 1, ptr %7, align 1, !tbaa !74
  br label %51

51:                                               ; preds = %49, %44
  %52 = load i8, ptr %7, align 1, !tbaa !74, !range !76, !noundef !77
  %53 = trunc i8 %52 to i1
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.glslang::TPpContext::tInput", ptr %11, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !19
  %57 = getelementptr inbounds %"class.glslang::TPpContext", ptr %56, i32 0, i32 12
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = call noundef zeroext i1 @_ZNK7glslang14TParseVersions13isReadingHLSLEv(ptr noundef nonnull align 8 dereferenceable(192) %58)
  br i1 %59, label %60, label %61

60:                                               ; preds = %54
  store i8 0, ptr %7, align 1, !tbaa !74
  br label %61

61:                                               ; preds = %60, %54, %51
  %62 = load i32, ptr %6, align 4, !tbaa !71
  %63 = icmp eq i32 %62, 162
  br i1 %63, label %64, label %131

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %65 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds %"struct.glslang::TPpContext::MacroSymbol", ptr %66, i32 0, i32 0
  %68 = call noundef i64 @_ZNKSt6vectorIiN7glslang14pool_allocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  %69 = trunc i64 %68 to i32
  %70 = sub nsw i32 %69, 1
  store i32 %70, ptr %8, align 4, !tbaa !71
  br label %71

71:                                               ; preds = %93, %64
  %72 = load i32, ptr %8, align 4, !tbaa !71
  %73 = icmp sge i32 %72, 0
  br i1 %73, label %74, label %96

74:                                               ; preds = %71
  %75 = getelementptr inbounds %"class.glslang::TPpContext::tInput", ptr %11, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds %"class.glslang::TPpContext", ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds %"struct.glslang::TPpContext::MacroSymbol", ptr %79, i32 0, i32 0
  %81 = load i32, ptr %8, align 4, !tbaa !71
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiN7glslang14pool_allocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %80, i64 noundef %82) #6
  %84 = load i32, ptr %83, align 4, !tbaa !71
  %85 = call noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144) %77, i32 noundef %84)
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.glslang::TPpToken", ptr %86, i32 0, i32 4
  %88 = getelementptr inbounds [1025 x i8], ptr %87, i64 0, i64 0
  %89 = call i32 @strcmp(ptr noundef %85, ptr noundef %88) #8
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %74
  br label %96

92:                                               ; preds = %74
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %8, align 4, !tbaa !71
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %8, align 4, !tbaa !71
  br label %71, !llvm.loop !79

96:                                               ; preds = %91, %71
  %97 = load i32, ptr %8, align 4, !tbaa !71
  %98 = icmp sge i32 %97, 0
  br i1 %98, label %99, label %127

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %100 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 3
  %101 = load i32, ptr %8, align 4, !tbaa !71
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %100, i64 noundef %102) #6
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  store ptr %104, ptr %9, align 8, !tbaa !5
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = icmp eq ptr %105, null
  br i1 %106, label %110, label %107

107:                                              ; preds = %99
  %108 = load i8, ptr %7, align 1, !tbaa !74, !range !76, !noundef !77
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %116

110:                                              ; preds = %107, %99
  %111 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 2
  %112 = load i32, ptr %8, align 4, !tbaa !71
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %111, i64 noundef %113) #6
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  store ptr %115, ptr %9, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %110, %107
  %117 = getelementptr inbounds %"class.glslang::TPpContext::tInput", ptr %11, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !19
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 4
  %121 = load i8, ptr %120, align 8, !tbaa !78, !range !76, !noundef !77
  %122 = trunc i8 %121 to i1
  call void @_ZN7glslang10TPpContext20pushTokenStreamInputERNS0_11TokenStreamEb(ptr noundef nonnull align 8 dereferenceable(921) %118, ptr noundef nonnull align 8 dereferenceable(40) %119, i1 noundef zeroext %122)
  %123 = getelementptr inbounds %"class.glslang::TPpContext::tInput", ptr %11, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !19
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %124, ptr noundef %125)
  store i32 %126, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %128

127:                                              ; preds = %96
  store i32 0, ptr %10, align 4
  br label %128

128:                                              ; preds = %127, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %129 = load i32, ptr %10, align 4
  switch i32 %129, label %143 [
    i32 0, label %130
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130, %61
  %132 = load i32, ptr %6, align 4, !tbaa !71
  %133 = icmp eq i32 %132, -1
  br i1 %133, label %134, label %141

134:                                              ; preds = %131
  %135 = getelementptr inbounds %"class.glslang::TPpContext::tMacroInput", ptr %11, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  %137 = getelementptr inbounds %"struct.glslang::TPpContext::MacroSymbol", ptr %136, i32 0, i32 2
  %138 = load i8, ptr %137, align 8
  %139 = and i8 %138, -3
  %140 = or i8 %139, 0
  store i8 %140, ptr %137, align 8
  br label %141

141:                                              ; preds = %134, %131
  %142 = load i32, ptr %6, align 4, !tbaa !71
  store i32 %142, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %143

143:                                              ; preds = %141, %128
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %144 = load i32, ptr %3, align 4
  ret i32 %144
}

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

declare noundef zeroext i1 @_ZN7glslang10TPpContext11TokenStream22peekUntokenizedPastingEv(ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #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 = { "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 willreturn memory(read) "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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !6, i64 24}
!10 = !{!"_ZTSN7glslang10TPpContext11tMacroInputE", !11, i64 0, !6, i64 24, !13, i64 32, !13, i64 64, !12, i64 96, !12, i64 97}
!11 = !{!"_ZTSN7glslang10TPpContext6tInputE", !12, i64 8, !6, i64 16}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN7glslang7TVectorIPNS_10TPpContext11TokenStreamEEE", !14, i64 0}
!14 = !{!"_ZTSSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE12_Vector_implE", !17, i64 0, !18, i64 8}
!17 = !{!"_ZTSN7glslang14pool_allocatorIPNS_10TPpContext11TokenStreamEEE", !6, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!11, !6, i64 16}
!20 = !{!21, !6, i64 256}
!21 = !{!"_ZTSN7glslang10TPpContextE", !22, i64 8, !33, i64 64, !6, i64 208, !49, i64 216, !6, i64 224, !6, i64 232, !49, i64 240, !49, i64 244, !49, i64 248, !6, i64 256, !49, i64 264, !7, i64 268, !49, i64 336, !53, i64 344, !12, i64 368, !12, i64 369, !6, i64 376, !12, i64 384, !57, i64 392, !59, i64 424, !57, i64 504, !65, i64 536, !12, i64 920}
!22 = !{!"_ZTSN7glslang4TMapIiNS_10TPpContext11MacroSymbolESt4lessIiEEE", !23, i64 0}
!23 = !{!"_ZTSSt3mapIiN7glslang10TPpContext11MacroSymbolESt4lessIiENS0_14pool_allocatorISt4pairIKiS2_EEEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE13_Rb_tree_implIS9_Lb1EEE", !26, i64 0, !27, i64 8, !29, i64 16}
!26 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKiNS_10TPpContext11MacroSymbolEEEEE", !6, i64 0}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessIiE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !32, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSN7glslang14TStringAtomMapE", !34, i64 0, !43, i64 64, !49, i64 96, !50, i64 104}
!34 = !{!"_ZTSN7glslang13TUnorderedMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_EEE", !35, i64 0}
!35 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_ENS5_ISt4pairIKS7_iEEEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_iENS5_ISA_EENSt8__detail10_Select1stESt8equal_toIS7_ESt4hashIS7_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !37, i64 0, !6, i64 8, !32, i64 16, !40, i64 24, !32, i64 32, !41, i64 40, !6, i64 56}
!37 = !{!"_ZTSNSt8__detail16_Hashtable_allocIN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEEEE", !38, i64 0}
!38 = !{!"_ZTSNSt8__detail21_Hashtable_ebo_helperILi0EN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEELb0EEE", !39, i64 0}
!39 = !{!"_ZTSN7glslang14pool_allocatorINSt8__detail10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEiELb1EEEEE", !6, i64 0}
!40 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!41 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !42, i64 0, !32, i64 8}
!42 = !{!"float", !7, i64 0}
!43 = !{!"_ZTSN7glslang7TVectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEEE", !44, i64 0}
!44 = !{!"_ZTSSt6vectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE12_Vector_implE", !47, i64 0, !48, i64 8}
!47 = !{!"_ZTSN7glslang14pool_allocatorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEEE", !6, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"int", !7, i64 0}
!50 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEE", !51, i64 0, !32, i64 16, !7, i64 24}
!51 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE12_Alloc_hiderE", !52, i64 0, !6, i64 8}
!52 = !{!"_ZTSN7glslang14pool_allocatorIcEE", !6, i64 0}
!53 = !{!"_ZTSSt6vectorIPN7glslang10TPpContext6tInputESaIS3_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !58, i64 0, !32, i64 8, !7, i64 16}
!58 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!59 = !{!"_ZTSSt5stackIPN7glslang7TShader8Includer13IncludeResultESt5dequeIS4_SaIS4_EEE", !60, i64 0}
!60 = !{!"_ZTSSt5dequeIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !61, i64 0}
!61 = !{!"_ZTSSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !62, i64 0}
!62 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE11_Deque_implE", !63, i64 0}
!63 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE16_Deque_impl_dataE", !6, i64 0, !32, i64 8, !64, i64 16, !64, i64 48}
!64 = !{!"_ZTSSt15_Deque_iteratorIPN7glslang7TShader8Includer13IncludeResultERS4_PS4_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!65 = !{!"_ZTSNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE", !66, i64 0, !67, i64 16}
!66 = !{!"_ZTSSi", !32, i64 8}
!67 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !68, i64 0, !70, i64 64, !57, i64 72}
!68 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !69, i64 56}
!69 = !{!"_ZTSSt6locale", !6, i64 0}
!70 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!71 = !{!49, !49, i64 0}
!72 = distinct !{!72, !73}
!73 = !{!"llvm.loop.mustprogress"}
!74 = !{!12, !12, i64 0}
!75 = !{!10, !12, i64 97}
!76 = !{i8 0, i8 2}
!77 = !{}
!78 = !{!10, !12, i64 96}
!79 = distinct !{!79, !73}


; 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.70 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [117 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE = external hidden unnamed_addr constant [63 x i8], align 1

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

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

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

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

declare noundef i32 @_ZN7glslang10TPpContext11TokenStream8getTokenERNS_17TParseContextBaseEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(1176), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

declare void @_ZN7glslang10TPpContext20pushTokenStreamInputERNS0_11TokenStreamEb(ptr noundef nonnull align 8 dereferenceable(921), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(98) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  br label %5

5:                                                ; preds = %5, %2
  %6 = load ptr, ptr %3, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 32
  %8 = load ptr, ptr %4, align 8, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %8, i64 256
  %10 = load ptr, ptr %9, align 8, !tbaa !19
  %11 = tail call noundef i32 @_ZN7glslang10TPpContext11TokenStream8getTokenERNS_17TParseContextBaseEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(1176) %10, ptr noundef %1)
  %12 = icmp eq i32 %11, 32
  br i1 %12, label %5, label %13, !llvm.loop !70

13:                                               ; preds = %5
  %14 = getelementptr inbounds i8, ptr %0, i64 97
  %15 = load i8, ptr %14, align 1, !tbaa !72, !range !73, !noundef !74
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %13
  store i8 0, ptr %14, align 1, !tbaa !72
  br label %18

18:                                               ; preds = %17, %13
  %.022 = phi i8 [ 1, %17 ], [ 0, %13 ]
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = load i8, ptr %19, align 8, !tbaa !75, !range !73, !noundef !74
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %22, label %26

22:                                               ; preds = %18
  %23 = icmp eq i32 %11, 151
  br i1 %23, label %25, label %24

24:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.71, i32 noundef 1118, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE) #5
  unreachable

25:                                               ; preds = %22
  store i8 0, ptr %19, align 8, !tbaa !75
  store i8 1, ptr %14, align 1, !tbaa !72
  br label %26

26:                                               ; preds = %25, %18
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 32
  %29 = tail call noundef zeroext i1 @_ZN7glslang10TPpContext11TokenStream22peekUntokenizedPastingEv(ptr noundef nonnull align 8 dereferenceable(40) %28)
  br i1 %29, label %.thread, label %30

.thread:                                          ; preds = %26
  store i8 1, ptr %19, align 8, !tbaa !75
  br label %32

30:                                               ; preds = %26
  %31 = trunc nuw i8 %.022 to i1
  br i1 %31, label %32, label %37

32:                                               ; preds = %.thread, %30
  %.128 = phi i8 [ 1, %.thread ], [ %.022, %30 ]
  %33 = load ptr, ptr %4, align 8, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %33, i64 256
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = tail call noundef zeroext i1 @_ZNK7glslang14TParseVersions13isReadingHLSLEv(ptr noundef nonnull align 8 dereferenceable(192) %35)
  %spec.select = select i1 %36, i8 0, i8 %.128
  br label %37

37:                                               ; preds = %32, %30
  %.2 = phi i8 [ %.022, %30 ], [ %spec.select, %32 ]
  switch i32 %11, label %.loopexit [
    i32 162, label %38
    i32 -1, label %72
  ]

38:                                               ; preds = %37
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = tail call noundef i64 @_ZNKSt6vectorIiN7glslang14pool_allocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  %41 = getelementptr inbounds i8, ptr %1, i64 40
  %42 = and i64 %40, 4294967295
  br label %43

43:                                               ; preds = %46, %38
  %indvars.iv = phi i64 [ %47, %46 ], [ %42, %38 ]
  %44 = trunc nuw i64 %indvars.iv to i32
  %45 = icmp slt i32 %44, 1
  br i1 %45, label %.loopexit, label %46

46:                                               ; preds = %43
  %47 = add nsw i64 %indvars.iv, -1
  %48 = load ptr, ptr %4, align 8, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %48, i64 64
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiN7glslang14pool_allocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef %47) #6
  %52 = load i32, ptr %51, align 4, !tbaa !76
  %53 = tail call noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144) %49, i32 noundef %52)
  %54 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) %41) #7
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %43, !llvm.loop !77

56:                                               ; preds = %46
  %57 = getelementptr inbounds i8, ptr %0, i64 64
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %57, i64 noundef %47) #6
  %59 = load ptr, ptr %58, align 8, !tbaa !78
  %60 = icmp eq ptr %59, null
  br i1 %60, label %63, label %61

61:                                               ; preds = %56
  %62 = trunc nuw i8 %.2 to i1
  br i1 %62, label %63, label %.critedge

63:                                               ; preds = %61, %56
  %64 = getelementptr inbounds i8, ptr %0, i64 32
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %64, i64 noundef %47) #6
  %66 = load ptr, ptr %65, align 8, !tbaa !78
  br label %.critedge

.critedge:                                        ; preds = %61, %63
  %.020 = phi ptr [ %66, %63 ], [ %59, %61 ]
  %67 = load ptr, ptr %4, align 8, !tbaa !18
  %68 = load i8, ptr %19, align 8, !tbaa !75, !range !73, !noundef !74
  %69 = trunc nuw i8 %68 to i1
  tail call void @_ZN7glslang10TPpContext20pushTokenStreamInputERNS0_11TokenStreamEb(ptr noundef nonnull align 8 dereferenceable(921) %67, ptr noundef nonnull align 8 dereferenceable(40) %.020, i1 noundef zeroext %69)
  %70 = load ptr, ptr %4, align 8, !tbaa !18
  %71 = tail call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %70, ptr noundef %1)
  br label %.loopexit

72:                                               ; preds = %37
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 72
  %75 = load i8, ptr %74, align 8
  %76 = and i8 %75, -3
  store i8 %76, ptr %74, align 8
  br label %.loopexit

.loopexit:                                        ; preds = %43, %.critedge, %72, %37
  %.124 = phi i32 [ %71, %.critedge ], [ %11, %37 ], [ -1, %72 ], [ 162, %43 ]
  ret i32 %.124
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) 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" }
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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { noreturn nounwind }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !11, i64 24}
!6 = !{!"_ZTSN7glslang10TPpContext11tMacroInputE", !7, i64 0, !11, i64 24, !12, i64 32, !12, i64 64, !8, i64 96, !8, i64 97}
!7 = !{!"_ZTSN7glslang10TPpContext6tInputE", !8, i64 8, !11, i64 16}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSN7glslang7TVectorIPNS_10TPpContext11TokenStreamEEE", !13, i64 0}
!13 = !{!"_ZTSSt6vectorIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE12_Vector_implE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN7glslang14pool_allocatorIPNS_10TPpContext11TokenStreamEEE", !11, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext11TokenStreamENS0_14pool_allocatorIS3_EEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!7, !11, i64 16}
!19 = !{!20, !11, i64 256}
!20 = !{!"_ZTSN7glslang10TPpContextE", !21, i64 8, !32, i64 64, !11, i64 208, !48, i64 216, !11, i64 224, !11, i64 232, !48, i64 240, !48, i64 244, !48, i64 248, !11, i64 256, !48, i64 264, !9, i64 268, !48, i64 336, !52, i64 344, !8, i64 368, !8, i64 369, !11, i64 376, !8, i64 384, !56, i64 392, !58, i64 424, !56, i64 504, !64, i64 536, !8, i64 920}
!21 = !{!"_ZTSN7glslang4TMapIiNS_10TPpContext11MacroSymbolESt4lessIiEEE", !22, i64 0}
!22 = !{!"_ZTSSt3mapIiN7glslang10TPpContext11MacroSymbolESt4lessIiENS0_14pool_allocatorISt4pairIKiS2_EEEE", !23, i64 0}
!23 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE", !24, i64 0}
!24 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE13_Rb_tree_implIS9_Lb1EEE", !25, i64 0, !26, i64 8, !28, i64 16}
!25 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKiNS_10TPpContext11MacroSymbolEEEEE", !11, i64 0}
!26 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !27, i64 0}
!27 = !{!"_ZTSSt4lessIiE"}
!28 = !{!"_ZTSSt15_Rb_tree_header", !29, i64 0, !31, i64 32}
!29 = !{!"_ZTSSt18_Rb_tree_node_base", !30, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!30 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!31 = !{!"long", !9, i64 0}
!32 = !{!"_ZTSN7glslang14TStringAtomMapE", !33, i64 0, !42, i64 64, !48, i64 96, !49, i64 104}
!33 = !{!"_ZTSN7glslang13TUnorderedMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_EEE", !34, i64 0}
!34 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_ENS5_ISt4pairIKS7_iEEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_iENS5_ISA_EENSt8__detail10_Select1stESt8equal_toIS7_ESt4hashIS7_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !36, i64 0, !11, i64 8, !31, i64 16, !39, i64 24, !31, i64 32, !40, i64 40, !11, i64 56}
!36 = !{!"_ZTSNSt8__detail16_Hashtable_allocIN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEEEE", !37, i64 0}
!37 = !{!"_ZTSNSt8__detail21_Hashtable_ebo_helperILi0EN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEELb0EEE", !38, i64 0}
!38 = !{!"_ZTSN7glslang14pool_allocatorINSt8__detail10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEiELb1EEEEE", !11, i64 0}
!39 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!40 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !41, i64 0, !31, i64 8}
!41 = !{!"float", !9, i64 0}
!42 = !{!"_ZTSN7glslang7TVectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEEE", !43, i64 0}
!43 = !{!"_ZTSSt6vectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE12_Vector_implE", !46, i64 0, !47, i64 8}
!46 = !{!"_ZTSN7glslang14pool_allocatorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEEE", !11, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!48 = !{!"int", !9, i64 0}
!49 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEE", !50, i64 0, !31, i64 16, !9, i64 24}
!50 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE12_Alloc_hiderE", !51, i64 0, !11, i64 8}
!51 = !{!"_ZTSN7glslang14pool_allocatorIcEE", !11, i64 0}
!52 = !{!"_ZTSSt6vectorIPN7glslang10TPpContext6tInputESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!56 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !57, i64 0, !31, i64 8, !9, i64 16}
!57 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!58 = !{!"_ZTSSt5stackIPN7glslang7TShader8Includer13IncludeResultESt5dequeIS4_SaIS4_EEE", !59, i64 0}
!59 = !{!"_ZTSSt5dequeIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !60, i64 0}
!60 = !{!"_ZTSSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !61, i64 0}
!61 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE11_Deque_implE", !62, i64 0}
!62 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE16_Deque_impl_dataE", !11, i64 0, !31, i64 8, !63, i64 16, !63, i64 48}
!63 = !{!"_ZTSSt15_Deque_iteratorIPN7glslang7TShader8Includer13IncludeResultERS4_PS4_E", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!64 = !{!"_ZTSNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE", !65, i64 0, !66, i64 16}
!65 = !{!"_ZTSSi", !31, i64 8}
!66 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !67, i64 0, !69, i64 64, !56, i64 72}
!67 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !68, i64 56}
!68 = !{!"_ZTSSt6locale", !11, i64 0}
!69 = !{!"_ZTSSt13_Ios_Openmode", !9, i64 0}
!70 = distinct !{!70, !71}
!71 = !{!"llvm.loop.mustprogress"}
!72 = !{!6, !8, i64 97}
!73 = !{i8 0, i8 2}
!74 = !{}
!75 = !{!6, !8, i64 96}
!76 = !{!48, !48, i64 0}
!77 = distinct !{!77, !71}
!78 = !{!11, !11, i64 0}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass