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

; 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::TPpToken" = type <{ %"struct.glslang::TSourceLoc", i8, [7 x i8], %union.anon, [1025 x i8], [7 x i8] }>
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%union.anon = type { double }
%"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.6", i8, i8, [6 x i8], ptr, i8, [7 x i8], %"class.std::__cxx11::basic_string.8", %"class.std::stack", %"class.std::__cxx11::basic_string.8", %"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", [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::TStringAtomMap" = type { %"class.glslang::TUnorderedMap", %"class.glslang::TVector", 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.1" }
%"struct.std::__detail::_Hashtable_ebo_helper.1" = type { %"class.glslang::pool_allocator.2" }
%"class.glslang::pool_allocator.2" = type { ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.glslang::TVector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.3", %"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.3" = 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.5 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider" = type { %"class.glslang::pool_allocator.4", ptr }
%"class.glslang::pool_allocator.4" = type { ptr }
%union.anon.5 = type { i64, [8 x i8] }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = 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.8" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.12 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.12 = 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.8" }
%"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 }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [124 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE = external hidden unnamed_addr constant [53 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [26 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 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(1065) %2) #1 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.glslang::TPpToken", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = icmp eq i32 %13, 151
  br i1 %14, label %15, label %25

15:                                               ; preds = %3
  %16 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 12
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.glslang::TPpToken", ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %17, align 8, !tbaa !62
  %21 = getelementptr inbounds ptr, ptr %20, i64 44
  %22 = load ptr, ptr %21, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %22(ptr noundef nonnull align 8 dereferenceable(1176) %17, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef @.str.45, ptr noundef @.str.46, ptr noundef @.str.1)
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %12, ptr noundef %23)
  store i32 %24, ptr %4, align 4
  br label %153

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %26 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %26, ptr %8, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %149, %25
  %28 = call noundef zeroext i1 @_ZN7glslang10TPpContext11peekPastingEv(ptr noundef nonnull align 8 dereferenceable(921) %12)
  br i1 %28, label %29, label %150

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1072, ptr %9) #6
  call void @_ZN7glslang8TPpTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(1065) %9)
  %30 = call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %12, ptr noundef %9)
  store i32 %30, ptr %6, align 4, !tbaa !9
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 151
  br i1 %32, label %33, label %34

33:                                               ; preds = %29
  br label %36

34:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.48, i32 noundef 1234, ptr noundef @__PRETTY_FUNCTION__._ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE) #7
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  %37 = call noundef zeroext i1 @_ZN7glslang10TPpContext20endOfReplacementListEv(ptr noundef nonnull align 8 dereferenceable(921) %12)
  br i1 %37, label %38, label %46

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 12
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.glslang::TPpToken", ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %40, align 8, !tbaa !62
  %44 = getelementptr inbounds ptr, ptr %43, i64 44
  %45 = load ptr, ptr %44, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %45(ptr noundef nonnull align 8 dereferenceable(1176) %40, ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef @.str.49, ptr noundef @.str.46, ptr noundef @.str.1)
  store i32 3, ptr %10, align 4
  br label %147

46:                                               ; preds = %36
  br label %47

47:                                               ; preds = %143, %46
  %48 = call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %12, ptr noundef %9)
  store i32 %48, ptr %6, align 4, !tbaa !9
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = icmp eq i32 %49, -3
  br i1 %50, label %51, label %60

51:                                               ; preds = %47
  %52 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 12
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.glslang::TPpToken", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %53, align 8, !tbaa !62
  %57 = getelementptr inbounds ptr, ptr %56, i64 44
  %58 = load ptr, ptr %57, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %58(ptr noundef nonnull align 8 dereferenceable(1176) %53, ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef @.str.50, ptr noundef @.str.46, ptr noundef @.str.1)
  %59 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %59, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %147

60:                                               ; preds = %47
  %61 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %61, label %76 [
    i32 162, label %85
    i32 61, label %62
    i32 33, label %62
    i32 45, label %62
    i32 126, label %62
    i32 43, label %62
    i32 42, label %62
    i32 47, label %62
    i32 37, label %62
    i32 60, label %62
    i32 62, label %62
    i32 124, label %62
    i32 94, label %62
    i32 38, label %62
    i32 134, label %62
    i32 135, label %62
    i32 141, label %62
    i32 142, label %62
    i32 143, label %62
  ]

62:                                               ; preds = %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.glslang::TPpToken", ptr %63, i32 0, i32 4
  %65 = getelementptr inbounds [1025 x i8], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 2
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = call noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144) %66, i32 noundef %67)
  %69 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %65, i64 noundef 1025, ptr noundef @.str.44, ptr noundef %68) #6
  %70 = getelementptr inbounds %"class.glslang::TPpToken", ptr %9, i32 0, i32 4
  %71 = getelementptr inbounds [1025 x i8], ptr %70, i64 0, i64 0
  %72 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 2
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = call noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144) %72, i32 noundef %73)
  %75 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %71, i64 noundef 1025, ptr noundef @.str.44, ptr noundef %74) #6
  br label %85

76:                                               ; preds = %60
  %77 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 12
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.glslang::TPpToken", ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %78, align 8, !tbaa !62
  %82 = getelementptr inbounds ptr, ptr %81, i64 44
  %83 = load ptr, ptr %82, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %83(ptr noundef nonnull align 8 dereferenceable(1176) %78, ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef @.str.51, ptr noundef @.str.46, ptr noundef @.str.1)
  %84 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %84, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %147

85:                                               ; preds = %62, %60
  %86 = load ptr, ptr %7, 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 i64 @strlen(ptr noundef %88) #8
  %90 = getelementptr inbounds %"class.glslang::TPpToken", ptr %9, i32 0, i32 4
  %91 = getelementptr inbounds [1025 x i8], ptr %90, i64 0, i64 0
  %92 = call i64 @strlen(ptr noundef %91) #8
  %93 = add i64 %89, %92
  %94 = icmp ugt i64 %93, 1024
  br i1 %94, label %95, label %104

95:                                               ; preds = %85
  %96 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 12
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.glslang::TPpToken", ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %97, align 8, !tbaa !62
  %101 = getelementptr inbounds ptr, ptr %100, i64 44
  %102 = load ptr, ptr %101, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %102(ptr noundef nonnull align 8 dereferenceable(1176) %97, ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef @.str.52, ptr noundef @.str.46, ptr noundef @.str.1)
  %103 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %103, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %147

104:                                              ; preds = %85
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.glslang::TPpToken", ptr %105, i32 0, i32 4
  %107 = getelementptr inbounds [1025 x i8], ptr %106, i64 0, i64 0
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.glslang::TPpToken", ptr %108, i32 0, i32 4
  %110 = getelementptr inbounds [1025 x i8], ptr %109, i64 0, i64 0
  %111 = call i64 @strlen(ptr noundef %110) #8
  %112 = getelementptr inbounds i8, ptr %107, i64 %111
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.glslang::TPpToken", ptr %113, i32 0, i32 4
  %115 = getelementptr inbounds [1025 x i8], ptr %114, i64 0, i64 0
  %116 = call i64 @strlen(ptr noundef %115) #8
  %117 = sub i64 1025, %116
  %118 = getelementptr inbounds %"class.glslang::TPpToken", ptr %9, i32 0, i32 4
  %119 = getelementptr inbounds [1025 x i8], ptr %118, i64 0, i64 0
  %120 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %112, i64 noundef %117, ptr noundef @.str.44, ptr noundef %119) #6
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 162
  br i1 %122, label %123, label %142

123:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %124 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 2
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.glslang::TPpToken", ptr %125, i32 0, i32 4
  %127 = getelementptr inbounds [1025 x i8], ptr %126, i64 0, i64 0
  %128 = call noundef i32 @_ZNK7glslang14TStringAtomMap7getAtomEPKc(ptr noundef nonnull align 8 dereferenceable(144) %124, ptr noundef %127)
  store i32 %128, ptr %11, align 4, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %123
  %132 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %132, ptr %8, align 4, !tbaa !9
  br label %141

133:                                              ; preds = %123
  %134 = getelementptr inbounds %"class.glslang::TPpContext", ptr %12, i32 0, i32 12
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %"class.glslang::TPpToken", ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %135, align 8, !tbaa !62
  %139 = getelementptr inbounds ptr, ptr %138, i64 44
  %140 = load ptr, ptr %139, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %140(ptr noundef nonnull align 8 dereferenceable(1176) %135, ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef @.str.53, ptr noundef @.str.46, ptr noundef @.str.1)
  br label %141

141:                                              ; preds = %133, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %142

142:                                              ; preds = %141, %104
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %8, align 4, !tbaa !9
  %145 = call noundef zeroext i1 @_ZN7glslang10TPpContext20peekContinuedPastingEi(ptr noundef nonnull align 8 dereferenceable(921) %12, i32 noundef %144)
  br i1 %145, label %47, label %146, !llvm.loop !64

146:                                              ; preds = %143
  store i32 0, ptr %10, align 4
  br label %147

147:                                              ; preds = %146, %95, %76, %51, %38
  call void @llvm.lifetime.end.p0(i64 1072, ptr %9) #6
  %148 = load i32, ptr %10, align 4
  switch i32 %148, label %152 [
    i32 0, label %149
    i32 3, label %150
  ]

149:                                              ; preds = %147
  br label %27, !llvm.loop !66

150:                                              ; preds = %147, %27
  %151 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %151, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %152

152:                                              ; preds = %150, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %153

153:                                              ; preds = %152, %15
  %154 = load i32, ptr %4, align 4
  ret i32 %154
}

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang8TPpTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(1065)) unnamed_addr #1 align 2

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang10TPpContext20peekContinuedPastingEi(ptr noundef nonnull align 8 dereferenceable(921), i32 noundef) #1 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 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 256}
!12 = !{!"_ZTSN7glslang10TPpContextE", !13, i64 8, !24, i64 64, !6, i64 208, !10, i64 216, !6, i64 224, !6, i64 232, !10, i64 240, !10, i64 244, !10, i64 248, !6, i64 256, !10, i64 264, !7, i64 268, !10, i64 336, !43, i64 344, !47, i64 368, !47, i64 369, !6, i64 376, !47, i64 384, !48, i64 392, !50, i64 424, !48, i64 504, !56, i64 536, !47, i64 920}
!13 = !{!"_ZTSN7glslang4TMapIiNS_10TPpContext11MacroSymbolESt4lessIiEEE", !14, i64 0}
!14 = !{!"_ZTSSt3mapIiN7glslang10TPpContext11MacroSymbolESt4lessIiENS0_14pool_allocatorISt4pairIKiS2_EEEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE13_Rb_tree_implIS9_Lb1EEE", !17, i64 0, !18, i64 8, !20, i64 16}
!17 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKiNS_10TPpContext11MacroSymbolEEEEE", !6, i64 0}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !19, i64 0}
!19 = !{!"_ZTSSt4lessIiE"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !23, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN7glslang14TStringAtomMapE", !25, i64 0, !34, i64 64, !10, i64 96, !40, i64 104}
!25 = !{!"_ZTSN7glslang13TUnorderedMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_EEE", !26, i64 0}
!26 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_ENS5_ISt4pairIKS7_iEEEE", !27, i64 0}
!27 = !{!"_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", !28, i64 0, !6, i64 8, !23, i64 16, !31, i64 24, !23, i64 32, !32, i64 40, !6, i64 56}
!28 = !{!"_ZTSNSt8__detail16_Hashtable_allocIN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEEEE", !29, i64 0}
!29 = !{!"_ZTSNSt8__detail21_Hashtable_ebo_helperILi0EN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEELb0EEE", !30, i64 0}
!30 = !{!"_ZTSN7glslang14pool_allocatorINSt8__detail10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEiELb1EEEEE", !6, i64 0}
!31 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!32 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !33, i64 0, !23, i64 8}
!33 = !{!"float", !7, i64 0}
!34 = !{!"_ZTSN7glslang7TVectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEEE", !35, i64 0}
!35 = !{!"_ZTSSt6vectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE12_Vector_implE", !38, i64 0, !39, i64 8}
!38 = !{!"_ZTSN7glslang14pool_allocatorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEEE", !6, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEE", !41, i64 0, !23, i64 16, !7, i64 24}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE12_Alloc_hiderE", !42, i64 0, !6, i64 8}
!42 = !{!"_ZTSN7glslang14pool_allocatorIcEE", !6, i64 0}
!43 = !{!"_ZTSSt6vectorIPN7glslang10TPpContext6tInputESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"bool", !7, i64 0}
!48 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !49, i64 0, !23, i64 8, !7, i64 16}
!49 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!50 = !{!"_ZTSSt5stackIPN7glslang7TShader8Includer13IncludeResultESt5dequeIS4_SaIS4_EEE", !51, i64 0}
!51 = !{!"_ZTSSt5dequeIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !52, i64 0}
!52 = !{!"_ZTSSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !53, i64 0}
!53 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE11_Deque_implE", !54, i64 0}
!54 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE16_Deque_impl_dataE", !6, i64 0, !23, i64 8, !55, i64 16, !55, i64 48}
!55 = !{!"_ZTSSt15_Deque_iteratorIPN7glslang7TShader8Includer13IncludeResultERS4_PS4_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!56 = !{!"_ZTSNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE", !57, i64 0, !58, i64 16}
!57 = !{!"_ZTSSi", !23, i64 8}
!58 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !59, i64 0, !61, i64 64, !48, i64 72}
!59 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !60, i64 56}
!60 = !{!"_ZTSSt6locale", !6, i64 0}
!61 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!62 = !{!63, !63, i64 0}
!63 = !{!"vtable pointer", !8, i64 0}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}
!66 = distinct !{!66, !65}


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

%"class.glslang::TPpToken" = type <{ %"struct.glslang::TSourceLoc", i8, [7 x i8], %union.anon, [1025 x i8], [7 x i8] }>
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%union.anon = type { double }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [124 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE = external hidden unnamed_addr constant [53 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(1065) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.glslang::TPpToken", align 8
  %5 = icmp eq i32 %1, 151
  br i1 %5, label %11, label %.preheader46

.preheader46:                                     ; preds = %3
  %6 = tail call noundef zeroext i1 @_ZN7glslang10TPpContext11peekPastingEv(ptr noundef nonnull align 8 dereferenceable(921) %0)
  br i1 %6, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader46
  %7 = getelementptr inbounds i8, ptr %2, i64 40
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = getelementptr inbounds i8, ptr %4, i64 40
  %10 = getelementptr inbounds i8, ptr %0, i64 256
  br label %18

11:                                               ; preds = %3
  %12 = getelementptr inbounds i8, ptr %0, i64 256
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = load ptr, ptr %13, align 8, !tbaa !60
  %15 = getelementptr inbounds i8, ptr %14, i64 352
  %16 = load ptr, ptr %15, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %16(ptr noundef nonnull align 8 dereferenceable(1176) %13, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.1)
  %17 = tail call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %0, ptr noundef nonnull %2)
  br label %.loopexit

18:                                               ; preds = %.lr.ph, %55
  %.03156 = phi i32 [ %1, %.lr.ph ], [ %.334, %55 ]
  call void @llvm.lifetime.start.p0(i64 1072, ptr nonnull %4) #6
  call void @_ZN7glslang8TPpTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(1065) %4)
  %19 = call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %0, ptr noundef nonnull %4)
  %20 = icmp eq i32 %19, 151
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.48, i32 noundef 1234, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE) #7
  unreachable

22:                                               ; preds = %18
  %23 = call noundef zeroext i1 @_ZN7glslang10TPpContext20endOfReplacementListEv(ptr noundef nonnull align 8 dereferenceable(921) %0)
  br i1 %23, label %57, label %.preheader

.preheader:                                       ; preds = %22, %49
  %.132 = phi i32 [ %.334, %49 ], [ %.03156, %22 ]
  %24 = call noundef i32 @_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE(ptr noundef nonnull align 8 dereferenceable(921) %0, ptr noundef nonnull %4)
  %25 = icmp eq i32 %24, -3
  br i1 %25, label %.thread, label %26

26:                                               ; preds = %.preheader
  switch i32 %.132, label %.thread [
    i32 162, label %32
    i32 61, label %27
    i32 33, label %27
    i32 45, label %27
    i32 126, label %27
    i32 43, label %27
    i32 42, label %27
    i32 47, label %27
    i32 37, label %27
    i32 60, label %27
    i32 62, label %27
    i32 124, label %27
    i32 94, label %27
    i32 38, label %27
    i32 134, label %27
    i32 135, label %27
    i32 141, label %27
    i32 142, label %27
    i32 143, label %27
  ]

27:                                               ; preds = %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26
  %28 = call noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144) %8, i32 noundef %.132)
  %29 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 1025, ptr noundef nonnull @.str.44, ptr noundef %28) #6
  %30 = call noundef ptr @_ZNK7glslang14TStringAtomMap9getStringEi(ptr noundef nonnull align 8 dereferenceable(144) %8, i32 noundef %24)
  %31 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %9, i64 noundef 1025, ptr noundef nonnull @.str.44, ptr noundef %30) #6
  br label %32

32:                                               ; preds = %27, %26
  %33 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #8
  %34 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %9) #8
  %35 = add i64 %34, %33
  %36 = icmp ugt i64 %35, 1024
  br i1 %36, label %.thread, label %37

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %7, i64 %33
  %39 = sub i64 1025, %33
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %38, i64 noundef %39, ptr noundef nonnull @.str.44, ptr noundef nonnull %9) #6
  %.not = icmp eq i32 %.132, 162
  br i1 %.not, label %49, label %41

41:                                               ; preds = %37
  %42 = call noundef i32 @_ZNK7glslang14TStringAtomMap7getAtomEPKc(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef nonnull %7)
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %49, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load ptr, ptr %45, align 8, !tbaa !60
  %47 = getelementptr inbounds i8, ptr %46, i64 352
  %48 = load ptr, ptr %47, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %48(ptr noundef nonnull align 8 dereferenceable(1176) %45, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.1)
  br label %49

49:                                               ; preds = %44, %41, %37
  %.334 = phi i32 [ 162, %37 ], [ %.132, %44 ], [ %42, %41 ]
  %50 = call noundef zeroext i1 @_ZN7glslang10TPpContext20peekContinuedPastingEi(ptr noundef nonnull align 8 dereferenceable(921) %0, i32 noundef %.334)
  br i1 %50, label %.preheader, label %55, !llvm.loop !62

.thread:                                          ; preds = %32, %26, %.preheader
  %.str.50.sink = phi ptr [ @.str.50, %.preheader ], [ @.str.51, %26 ], [ @.str.52, %32 ]
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %51, align 8, !tbaa !60
  %53 = getelementptr inbounds i8, ptr %52, i64 352
  %54 = load ptr, ptr %53, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %54(ptr noundef nonnull align 8 dereferenceable(1176) %51, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull %.str.50.sink, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.end.p0(i64 1072, ptr nonnull %4) #6
  br label %.loopexit

55:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 1072, ptr nonnull %4) #6
  %56 = call noundef zeroext i1 @_ZN7glslang10TPpContext11peekPastingEv(ptr noundef nonnull align 8 dereferenceable(921) %0)
  br i1 %56, label %18, label %.loopexit

57:                                               ; preds = %22
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !60
  %60 = getelementptr inbounds i8, ptr %59, i64 352
  %61 = load ptr, ptr %60, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %61(ptr noundef nonnull align 8 dereferenceable(1176) %58, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.end.p0(i64 1072, ptr nonnull %4) #6
  br label %.loopexit

.loopexit:                                        ; preds = %55, %.preheader46, %.thread, %57, %11
  %.3 = phi i32 [ %17, %11 ], [ %.03156, %57 ], [ %.132, %.thread ], [ %1, %.preheader46 ], [ %.334, %55 ]
  ret i32 %.3
}

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang8TPpTokenC2Ev(ptr noundef nonnull align 8 dereferenceable(1065)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang10TPpContext20peekContinuedPastingEi(ptr noundef nonnull align 8 dereferenceable(921), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #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, !12, i64 256}
!6 = !{!"_ZTSN7glslang10TPpContextE", !7, i64 8, !21, i64 64, !12, i64 208, !37, i64 216, !12, i64 224, !12, i64 232, !37, i64 240, !37, i64 244, !37, i64 248, !12, i64 256, !37, i64 264, !13, i64 268, !37, i64 336, !41, i64 344, !45, i64 368, !45, i64 369, !12, i64 376, !45, i64 384, !46, i64 392, !48, i64 424, !46, i64 504, !54, i64 536, !45, i64 920}
!7 = !{!"_ZTSN7glslang4TMapIiNS_10TPpContext11MacroSymbolESt4lessIiEEE", !8, i64 0}
!8 = !{!"_ZTSSt3mapIiN7glslang10TPpContext11MacroSymbolESt4lessIiENS0_14pool_allocatorISt4pairIKiS2_EEEE", !9, i64 0}
!9 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE", !10, i64 0}
!10 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiN7glslang10TPpContext11MacroSymbolEESt10_Select1stIS5_ESt4lessIiENS2_14pool_allocatorIS5_EEE13_Rb_tree_implIS9_Lb1EEE", !11, i64 0, !15, i64 8, !17, i64 16}
!11 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKiNS_10TPpContext11MacroSymbolEEEEE", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIiE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !20, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !13, i64 0}
!20 = !{!"long", !13, i64 0}
!21 = !{!"_ZTSN7glslang14TStringAtomMapE", !22, i64 0, !31, i64 64, !37, i64 96, !38, i64 104}
!22 = !{!"_ZTSN7glslang13TUnorderedMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_EEE", !23, i64 0}
!23 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4hashIS7_ESt8equal_toIS7_ENS5_ISt4pairIKS7_iEEEE", !24, i64 0}
!24 = !{!"_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", !25, i64 0, !12, i64 8, !20, i64 16, !28, i64 24, !20, i64 32, !29, i64 40, !12, i64 56}
!25 = !{!"_ZTSNSt8__detail16_Hashtable_allocIN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEEEE", !26, i64 0}
!26 = !{!"_ZTSNSt8__detail21_Hashtable_ebo_helperILi0EN7glslang14pool_allocatorINS_10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS2_IcEEEEiELb1EEEEELb0EEE", !27, i64 0}
!27 = !{!"_ZTSN7glslang14pool_allocatorINSt8__detail10_Hash_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEiELb1EEEEE", !12, i64 0}
!28 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!29 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !30, i64 0, !20, i64 8}
!30 = !{!"float", !13, i64 0}
!31 = !{!"_ZTSN7glslang7TVectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEEE", !32, i64 0}
!32 = !{!"_ZTSSt6vectorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE12_Vector_implE", !35, i64 0, !36, i64 8}
!35 = !{!"_ZTSN7glslang14pool_allocatorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEEE", !12, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS5_IS9_EEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!37 = !{!"int", !13, i64 0}
!38 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEE", !39, i64 0, !20, i64 16, !13, i64 24}
!39 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE12_Alloc_hiderE", !40, i64 0, !12, i64 8}
!40 = !{!"_ZTSN7glslang14pool_allocatorIcEE", !12, i64 0}
!41 = !{!"_ZTSSt6vectorIPN7glslang10TPpContext6tInputESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN7glslang10TPpContext6tInputESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!45 = !{!"bool", !13, i64 0}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !47, i64 0, !20, i64 8, !13, i64 16}
!47 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!48 = !{!"_ZTSSt5stackIPN7glslang7TShader8Includer13IncludeResultESt5dequeIS4_SaIS4_EEE", !49, i64 0}
!49 = !{!"_ZTSSt5dequeIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !50, i64 0}
!50 = !{!"_ZTSSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE", !51, i64 0}
!51 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE11_Deque_implE", !52, i64 0}
!52 = !{!"_ZTSNSt11_Deque_baseIPN7glslang7TShader8Includer13IncludeResultESaIS4_EE16_Deque_impl_dataE", !12, i64 0, !20, i64 8, !53, i64 16, !53, i64 48}
!53 = !{!"_ZTSSt15_Deque_iteratorIPN7glslang7TShader8Includer13IncludeResultERS4_PS4_E", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!54 = !{!"_ZTSNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE", !55, i64 0, !56, i64 16}
!55 = !{!"_ZTSSi", !20, i64 8}
!56 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !57, i64 0, !59, i64 64, !46, i64 72}
!57 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !58, i64 56}
!58 = !{!"_ZTSSt6locale", !12, i64 0}
!59 = !{!"_ZTSSt13_Ios_Openmode", !13, i64 0}
!60 = !{!61, !61, i64 0}
!61 = !{!"vtable pointer", !14, i64 0}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}


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