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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.glslang::TQualifier" = type <{ ptr, i64, i8, [3 x i8], i32, i32, i64, i64, i8, i8, i8, i8, i8, [3 x i8], i32, i8, [3 x i8], i32, ptr }>
%"struct.glslang::TTypeLoc" = type { ptr, %"struct.glslang::TSourceLoc" }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"class.glslang::TParseVersions" = type { ptr, i8, i32, ptr, i32, i32, %"struct.glslang::SpvVersion", ptr, %"class.glslang::TMap", %"class.glslang::TMap.0", i32, i32, ptr }
%"struct.glslang::SpvVersion" = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"class.glslang::TMap" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator" = type { ptr }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.glslang::TMap.0" = type { %"class.std::map.1" }
%"class.std::map.1" = type { %"class.std::_Rb_tree.2" }
%"class.std::_Rb_tree.2" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.3", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.3" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.618 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.621 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.630 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.655 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.875 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.876 = external hidden unnamed_addr constant [24 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext17fixBlockLocationsERKNS_10TSourceLocERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEEbb(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(72) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i1 noundef zeroext %4, i1 noundef zeroext %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  %17 = zext i1 %4 to i8
  store i8 %17, ptr %11, align 1, !tbaa !9
  %18 = zext i1 %5 to i8
  store i8 %18, ptr %12, align 1, !tbaa !9
  %19 = load ptr, ptr %7, align 8
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %20)
  br i1 %21, label %33, label %22

22:                                               ; preds = %6
  %23 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %24 = trunc i8 %23 to i1
  br i1 %24, label %25, label %33

25:                                               ; preds = %22
  %26 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %33

28:                                               ; preds = %25
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %19, align 8, !tbaa !13
  %31 = getelementptr inbounds ptr, ptr %30, i64 42
  %32 = load ptr, ptr %31, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %32(ptr noundef nonnull align 8 dereferenceable(1176) %19, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef @.str.875, ptr noundef @.str.618, ptr noundef @.str.2)
  br label %137

33:                                               ; preds = %25, %22, %6
  %34 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %136

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !15
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZNK7glslang10TQualifier14hasAnyLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %37)
  br i1 %38, label %39, label %66

39:                                               ; preds = %36
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.glslang::TQualifier", ptr %40, i32 0, i32 6
  %42 = load i64, ptr %41, align 4
  %43 = and i64 %42, 4095
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %13, align 4, !tbaa !15
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.glslang::TQualifier", ptr %45, i32 0, i32 6
  %47 = load i64, ptr %46, align 4
  %48 = and i64 %47, -4096
  %49 = or i64 %48, 4095
  store i64 %49, ptr %46, align 4
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZNK7glslang10TQualifier12hasComponentEv(ptr noundef nonnull align 8 dereferenceable(72) %50)
  br i1 %51, label %52, label %57

52:                                               ; preds = %39
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %19, align 8, !tbaa !13
  %55 = getelementptr inbounds ptr, ptr %54, i64 42
  %56 = load ptr, ptr %55, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %56(ptr noundef nonnull align 8 dereferenceable(1176) %19, ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef @.str.876, ptr noundef @.str.630, ptr noundef @.str.2)
  br label %57

57:                                               ; preds = %52, %39
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZNK7glslang10TQualifier8hasIndexEv(ptr noundef nonnull align 8 dereferenceable(72) %58)
  br i1 %59, label %60, label %65

60:                                               ; preds = %57
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load ptr, ptr %19, align 8, !tbaa !13
  %63 = getelementptr inbounds ptr, ptr %62, i64 42
  %64 = load ptr, ptr %63, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %64(ptr noundef nonnull align 8 dereferenceable(1176) %19, ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef @.str.876, ptr noundef @.str.655, ptr noundef @.str.2)
  br label %65

65:                                               ; preds = %60, %57
  br label %66

66:                                               ; preds = %65, %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %67

67:                                               ; preds = %132, %66
  %68 = load i32, ptr %14, align 4, !tbaa !15
  %69 = zext i32 %68 to i64
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %70) #4
  %72 = icmp ult i64 %69, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %135

74:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !15
  %77 = zext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %75, i64 noundef %77) #4
  %79 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds ptr, ptr %81, i64 10
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef nonnull align 8 dereferenceable(72) ptr %83(ptr noundef nonnull align 8 dereferenceable(144) %80)
  store ptr %84, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load i32, ptr %14, align 4, !tbaa !15
  %87 = zext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %85, i64 noundef %87) #4
  %89 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %88, i32 0, i32 1
  store ptr %89, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %90)
  br i1 %91, label %114, label %92

92:                                               ; preds = %74
  %93 = load i32, ptr %13, align 4, !tbaa !15
  %94 = icmp sge i32 %93, 4095
  br i1 %94, label %95, label %100

95:                                               ; preds = %92
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = load ptr, ptr %19, align 8, !tbaa !13
  %98 = getelementptr inbounds ptr, ptr %97, i64 42
  %99 = load ptr, ptr %98, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %99(ptr noundef nonnull align 8 dereferenceable(1176) %19, ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef @.str.621, ptr noundef @.str.618, ptr noundef @.str.2)
  br label %100

100:                                              ; preds = %95, %92
  %101 = load i32, ptr %13, align 4, !tbaa !15
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.glslang::TQualifier", ptr %102, i32 0, i32 6
  %104 = zext i32 %101 to i64
  %105 = load i64, ptr %103, align 4
  %106 = and i64 %104, 4095
  %107 = and i64 %105, -4096
  %108 = or i64 %107, %106
  store i64 %108, ptr %103, align 4
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.glslang::TQualifier", ptr %109, i32 0, i32 6
  %111 = load i64, ptr %110, align 4
  %112 = and i64 %111, -28673
  %113 = or i64 %112, 16384
  store i64 %113, ptr %110, align 4
  br label %114

114:                                              ; preds = %100, %74
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.glslang::TQualifier", ptr %115, i32 0, i32 6
  %117 = load i64, ptr %116, align 4
  %118 = and i64 %117, 4095
  %119 = trunc i64 %118 to i32
  %120 = getelementptr inbounds %"class.glslang::TParseVersions", ptr %19, i32 0, i32 7
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i32, ptr %14, align 4, !tbaa !15
  %124 = zext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %122, i64 noundef %124) #4
  %126 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = getelementptr inbounds %"class.glslang::TParseVersions", ptr %19, i32 0, i32 5
  %129 = load i32, ptr %128, align 4, !tbaa !42
  %130 = call noundef i32 @_ZN7glslang13TIntermediate23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(144) %127, i32 noundef %129)
  %131 = add nsw i32 %119, %130
  store i32 %131, ptr %13, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %132

132:                                              ; preds = %114
  %133 = load i32, ptr %14, align 4, !tbaa !15
  %134 = add i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !15
  br label %67, !llvm.loop !43

135:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %136

136:                                              ; preds = %135, %33
  br label %137

137:                                              ; preds = %136, %28
  ret void
}

declare noundef i32 @_ZN7glslang13TIntermediate23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 }

!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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN7glslang8TTypeLocE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !16, i64 8, !16, i64 12, !16, i64 16}
!20 = !{!21, !6, i64 56}
!21 = !{!"_ZTSN7glslang14TParseVersionsE", !10, i64 8, !22, i64 12, !6, i64 16, !16, i64 24, !23, i64 28, !24, i64 32, !6, i64 56, !25, i64 64, !36, i64 120, !41, i64 176, !16, i64 180, !6, i64 184}
!22 = !{!"_ZTS8EProfile", !7, i64 0}
!23 = !{!"_ZTS11EShLanguage", !7, i64 0}
!24 = !{!"_ZTSN7glslang10SpvVersionE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !10, i64 16}
!25 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEENS_18TExtensionBehaviorESt4lessIS7_EEE", !26, i64 0}
!26 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS4_18TExtensionBehaviorESt4lessIS7_ENS5_ISt4pairIKS7_S8_EEEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE13_Rb_tree_implISF_Lb1EEE", !29, i64 0, !30, i64 8, !32, i64 16}
!29 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEENS_18TExtensionBehaviorEEEEE", !6, i64 0}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEE"}
!32 = !{!"_ZTSSt15_Rb_tree_header", !33, i64 0, !35, i64 32}
!33 = !{!"_ZTSSt18_Rb_tree_node_base", !34, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!34 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!35 = !{!"long", !7, i64 0}
!36 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEjSt4lessIS7_EEE", !37, i64 0}
!37 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEjSt4lessIS7_ENS5_ISt4pairIKS7_jEEEE", !38, i64 0}
!38 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE", !39, i64 0}
!39 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE13_Rb_tree_implISE_Lb1EEE", !40, i64 0, !30, i64 8, !32, i64 16}
!40 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEjEEEE", !6, i64 0}
!41 = !{!"_ZTS11EShMessages", !7, i64 0}
!42 = !{!21, !23, i64 28}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


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

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.618 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.621 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.630 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.655 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.875 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.876 = external hidden unnamed_addr constant [24 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang10TQualifier12hasComponentEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang10TQualifier8hasIndexEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang10TQualifier14hasAnyLocationEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext17fixBlockLocationsERKNS_10TSourceLocERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEEbb(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(72) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i1 noundef zeroext %4, i1 noundef zeroext %5) local_unnamed_addr #1 align 2 {
  %7 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %8 = and i1 %4, %5
  %9 = xor i1 %8, true
  %brmerge31 = or i1 %7, %9
  br i1 %brmerge31, label %14, label %10

10:                                               ; preds = %6
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 336
  %13 = load ptr, ptr %12, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %13(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull @.str.875, ptr noundef nonnull @.str.618, ptr noundef nonnull @.str.2)
  br label %.loopexit

14:                                               ; preds = %6
  br i1 %4, label %15, label %.loopexit

15:                                               ; preds = %14
  %16 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier14hasAnyLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  br i1 %16, label %17, label %34

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %2, i64 28
  %19 = load i64, ptr %18, align 4
  %20 = trunc i64 %19 to i32
  %21 = and i32 %20, 4095
  %22 = or i64 %19, 4095
  store i64 %22, ptr %18, align 4
  %23 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier12hasComponentEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  br i1 %23, label %24, label %28

24:                                               ; preds = %17
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 336
  %27 = load ptr, ptr %26, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %27(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull @.str.876, ptr noundef nonnull @.str.630, ptr noundef nonnull @.str.2)
  br label %28

28:                                               ; preds = %24, %17
  %29 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier8hasIndexEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  br i1 %29, label %30, label %34

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

34:                                               ; preds = %28, %30, %15
  %.0 = phi i32 [ %21, %30 ], [ %21, %28 ], [ 0, %15 ]
  %35 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #3
  %.not = icmp eq i64 %35, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %34
  %36 = getelementptr inbounds i8, ptr %0, i64 28
  br label %37

37:                                               ; preds = %.lr.ph, %62
  %38 = phi i64 [ 0, %.lr.ph ], [ %72, %62 ]
  %.133 = phi i32 [ %.0, %.lr.ph ], [ %70, %62 ]
  %.02832 = phi i32 [ 0, %.lr.ph ], [ %71, %62 ]
  %39 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %38) #3
  %40 = load ptr, ptr %39, align 8, !tbaa !8
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 80
  %43 = load ptr, ptr %42, align 8
  %44 = tail call noundef nonnull align 8 dereferenceable(72) ptr %43(ptr noundef nonnull align 8 dereferenceable(144) %40)
  %45 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %38) #3
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %44)
  br i1 %47, label %._crit_edge, label %48

._crit_edge:                                      ; preds = %37
  %.phi.trans.insert = getelementptr inbounds i8, ptr %44, i64 28
  %.pre = load i64, ptr %.phi.trans.insert, align 4
  br label %62

48:                                               ; preds = %37
  %49 = icmp sgt i32 %.133, 4094
  br i1 %49, label %50, label %54

50:                                               ; preds = %48
  %51 = load ptr, ptr %0, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 336
  %53 = load ptr, ptr %52, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %53(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull @.str.621, ptr noundef nonnull @.str.618, ptr noundef nonnull @.str.2)
  br label %54

54:                                               ; preds = %50, %48
  %55 = getelementptr inbounds i8, ptr %44, i64 28
  %56 = load i64, ptr %55, align 4
  %57 = and i32 %.133, 4095
  %58 = and i64 %56, -32768
  %59 = or disjoint i32 %57, 16384
  %60 = zext nneg i32 %59 to i64
  %61 = or disjoint i64 %58, %60
  store i64 %61, ptr %55, align 4
  br label %62

62:                                               ; preds = %._crit_edge, %54
  %63 = phi i64 [ %.pre, %._crit_edge ], [ %61, %54 ]
  %64 = trunc i64 %63 to i32
  %65 = and i32 %64, 4095
  %66 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %38) #3
  %67 = load ptr, ptr %66, align 8, !tbaa !8
  %68 = load i32, ptr %36, align 4, !tbaa !14
  %69 = tail call noundef i32 @_ZN7glslang13TIntermediate23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(144) %67, i32 noundef %68)
  %70 = add nsw i32 %69, %65
  %71 = add i32 %.02832, 1
  %72 = zext i32 %71 to i64
  %73 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #3
  %74 = icmp ugt i64 %73, %72
  br i1 %74, label %37, label %.loopexit, !llvm.loop !37

.loopexit:                                        ; preds = %62, %34, %14, %10
  ret void
}

declare noundef i32 @_ZN7glslang13TIntermediate23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) local_unnamed_addr #2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN7glslang8TTypeLocE", !10, i64 0, !12, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"_ZTSN7glslang10TSourceLocE", !10, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!13 = !{!"int", !11, i64 0}
!14 = !{!15, !18, i64 28}
!15 = !{!"_ZTSN7glslang14TParseVersionsE", !16, i64 8, !17, i64 12, !10, i64 16, !13, i64 24, !18, i64 28, !19, i64 32, !10, i64 56, !20, i64 64, !31, i64 120, !36, i64 176, !13, i64 180, !10, i64 184}
!16 = !{!"bool", !11, i64 0}
!17 = !{!"_ZTS8EProfile", !11, i64 0}
!18 = !{!"_ZTS11EShLanguage", !11, i64 0}
!19 = !{!"_ZTSN7glslang10SpvVersionE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !16, i64 16}
!20 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEENS_18TExtensionBehaviorESt4lessIS7_EEE", !21, i64 0}
!21 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS4_18TExtensionBehaviorESt4lessIS7_ENS5_ISt4pairIKS7_S8_EEEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE13_Rb_tree_implISF_Lb1EEE", !24, i64 0, !25, i64 8, !27, i64 16}
!24 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEENS_18TExtensionBehaviorEEEEE", !10, i64 0}
!25 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEEE", !26, i64 0}
!26 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEE"}
!27 = !{!"_ZTSSt15_Rb_tree_header", !28, i64 0, !30, i64 32}
!28 = !{!"_ZTSSt18_Rb_tree_node_base", !29, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!29 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!30 = !{!"long", !11, i64 0}
!31 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEjSt4lessIS7_EEE", !32, i64 0}
!32 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEjSt4lessIS7_ENS5_ISt4pairIKS7_jEEEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE13_Rb_tree_implISE_Lb1EEE", !35, i64 0, !25, i64 8, !27, i64 16}
!35 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEjEEEE", !10, i64 0}
!36 = !{!"_ZTS11EShMessages", !11, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}


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