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

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

%"class.glslang::TPublicType" = type { i32, %"struct.glslang::TSampler", %"class.glslang::TQualifier", %"struct.glslang::TShaderQualifiers", i16, ptr, ptr, %"struct.glslang::TSourceLoc", ptr, ptr }
%"struct.glslang::TSampler" = type { i32 }
%"class.glslang::TQualifier" = type <{ ptr, i64, i8, [3 x i8], i32, i32, i64, i64, i8, i8, i8, i8, i8, [3 x i8], i32, i8, [3 x i8], i32, ptr }>
%"struct.glslang::TShaderQualifiers" = type { i32, i8, i8, i32, i32, i32, i32, i8, [3 x i32], [3 x i8], [3 x i32], i8, i8, i32, i8, i32, i32, i8, i8, i8, i32, i8 }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"struct.glslang::TTypeLoc" = type { ptr, %"struct.glslang::TSourceLoc" }

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.538 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.539 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.540 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.541 = external hidden unnamed_addr constant [52 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 ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

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

; 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 @_ZNK7glslang10TQualifier8isMemoryEv(ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext15structTypeCheckERKNS_10TSourceLocERNS_11TPublicTypeE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(232) %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  %13 = getelementptr inbounds %"class.glslang::TPublicType", ptr %12, i32 0, i32 6
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %14)
  store ptr %15, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !30
  br label %16

16:                                               ; preds = %137, %3
  %17 = load i32, ptr %8, align 4, !tbaa !30
  %18 = zext i32 %17 to i64
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #3
  %21 = icmp ult i64 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %140

23:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !30
  %26 = zext i32 %25 to i64
  %27 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %24, i64 noundef %26) #3
  %28 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !31
  %30 = load ptr, ptr %29, align 8, !tbaa !33
  %31 = getelementptr inbounds ptr, ptr %30, i64 10
  %32 = load ptr, ptr %31, align 8
  %33 = call noundef nonnull align 8 dereferenceable(72) ptr %32(ptr noundef nonnull align 8 dereferenceable(144) %29)
  store ptr %33, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load i32, ptr %8, align 4, !tbaa !30
  %36 = zext i32 %35 to i64
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %34, i64 noundef %36) #3
  %38 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %37, i32 0, i32 1
  store ptr %38, ptr %10, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZNK7glslang10TQualifier11isAuxiliaryEv(ptr noundef nonnull align 8 dereferenceable(72) %39)
  br i1 %40, label %58, label %41

41:                                               ; preds = %23
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZNK7glslang10TQualifier15isInterpolationEv(ptr noundef nonnull align 8 dereferenceable(72) %42)
  br i1 %43, label %58, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.glslang::TQualifier", ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8
  %48 = and i64 %47, 63
  %49 = trunc i64 %48 to i32
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %74

51:                                               ; preds = %44
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.glslang::TQualifier", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8
  %55 = and i64 %54, 63
  %56 = trunc i64 %55 to i32
  %57 = icmp ne i32 %56, 1
  br i1 %57, label %58, label %74

58:                                               ; preds = %51, %41, %23
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i32, ptr %8, align 4, !tbaa !30
  %62 = zext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %60, i64 noundef %62) #3
  %64 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !31
  %66 = load ptr, ptr %65, align 8, !tbaa !33
  %67 = getelementptr inbounds ptr, ptr %66, i64 6
  %68 = load ptr, ptr %67, align 8
  %69 = call noundef nonnull align 8 dereferenceable(40) ptr %68(ptr noundef nonnull align 8 dereferenceable(144) %65)
  %70 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %69) #3
  %71 = load ptr, ptr %11, align 8, !tbaa !33
  %72 = getelementptr inbounds ptr, ptr %71, i64 42
  %73 = load ptr, ptr %72, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %73(ptr noundef nonnull align 8 dereferenceable(1176) %11, ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef @.str.538, ptr noundef %70, ptr noundef @.str.2)
  br label %74

74:                                               ; preds = %58, %51, %44
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZNK7glslang10TQualifier8isMemoryEv(ptr noundef nonnull align 8 dereferenceable(72) %75)
  br i1 %76, label %77, label %93

77:                                               ; preds = %74
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !30
  %81 = zext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %79, i64 noundef %81) #3
  %83 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !31
  %85 = load ptr, ptr %84, align 8, !tbaa !33
  %86 = getelementptr inbounds ptr, ptr %85, i64 6
  %87 = load ptr, ptr %86, align 8
  %88 = call noundef nonnull align 8 dereferenceable(40) ptr %87(ptr noundef nonnull align 8 dereferenceable(144) %84)
  %89 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %88) #3
  %90 = load ptr, ptr %11, align 8, !tbaa !33
  %91 = getelementptr inbounds ptr, ptr %90, i64 42
  %92 = load ptr, ptr %91, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %92(ptr noundef nonnull align 8 dereferenceable(1176) %11, ptr noundef nonnull align 8 dereferenceable(24) %78, ptr noundef @.str.539, ptr noundef %89, ptr noundef @.str.2)
  br label %93

93:                                               ; preds = %77, %74
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZNK7glslang10TQualifier9hasLayoutEv(ptr noundef nonnull align 8 dereferenceable(72) %94)
  br i1 %95, label %96, label %113

96:                                               ; preds = %93
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load i32, ptr %8, align 4, !tbaa !30
  %100 = zext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %98, i64 noundef %100) #3
  %102 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !31
  %104 = load ptr, ptr %103, align 8, !tbaa !33
  %105 = getelementptr inbounds ptr, ptr %104, i64 6
  %106 = load ptr, ptr %105, align 8
  %107 = call noundef nonnull align 8 dereferenceable(40) ptr %106(ptr noundef nonnull align 8 dereferenceable(144) %103)
  %108 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %107) #3
  %109 = load ptr, ptr %11, align 8, !tbaa !33
  %110 = getelementptr inbounds ptr, ptr %109, i64 42
  %111 = load ptr, ptr %110, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %111(ptr noundef nonnull align 8 dereferenceable(1176) %11, ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef @.str.540, ptr noundef %108, ptr noundef @.str.2)
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7glslang10TQualifier11clearLayoutEv(ptr noundef nonnull align 8 dereferenceable(72) %112)
  br label %113

113:                                              ; preds = %96, %93
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.glslang::TQualifier", ptr %114, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = lshr i64 %116, 27
  %118 = and i64 %117, 1
  %119 = trunc i64 %118 to i1
  br i1 %119, label %120, label %136

120:                                              ; preds = %113
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load i32, ptr %8, align 4, !tbaa !30
  %124 = zext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %122, i64 noundef %124) #3
  %126 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !31
  %128 = load ptr, ptr %127, align 8, !tbaa !33
  %129 = getelementptr inbounds ptr, ptr %128, i64 6
  %130 = load ptr, ptr %129, align 8
  %131 = call noundef nonnull align 8 dereferenceable(40) ptr %130(ptr noundef nonnull align 8 dereferenceable(144) %127)
  %132 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %131) #3
  %133 = load ptr, ptr %11, align 8, !tbaa !33
  %134 = getelementptr inbounds ptr, ptr %133, i64 42
  %135 = load ptr, ptr %134, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %135(ptr noundef nonnull align 8 dereferenceable(1176) %11, ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef @.str.541, ptr noundef %132, ptr noundef @.str.2)
  br label %136

136:                                              ; preds = %120, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %8, align 4, !tbaa !30
  %139 = add i32 %138, 1
  store i32 %139, ptr %8, align 4, !tbaa !30
  br label %16, !llvm.loop !35

140:                                              ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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

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 = { 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, !6, i64 184}
!10 = !{!"_ZTSN7glslang11TPublicTypeE", !11, i64 0, !12, i64 4, !16, i64 8, !23, i64 80, !15, i64 168, !15, i64 168, !15, i64 169, !14, i64 169, !6, i64 176, !6, i64 184, !29, i64 192, !6, i64 216, !6, i64 224}
!11 = !{!"_ZTSN7glslang10TBasicTypeE", !7, i64 0}
!12 = !{!"_ZTSN7glslang8TSamplerE", !11, i64 0, !13, i64 1, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !15, i64 2, !15, i64 3, !14, i64 3, !14, i64 3}
!13 = !{!"_ZTSN7glslang11TSamplerDimE", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN7glslang10TQualifierE", !6, i64 0, !17, i64 8, !18, i64 8, !18, i64 9, !19, i64 11, !14, i64 11, !14, i64 11, !14, i64 11, !14, i64 11, !14, i64 11, !14, i64 12, !14, i64 12, !14, i64 12, !14, i64 12, !14, i64 12, !14, i64 12, !14, i64 12, !14, i64 12, !14, i64 13, !14, i64 13, !14, i64 13, !14, i64 13, !14, i64 13, !14, i64 13, !14, i64 13, !14, i64 13, !14, i64 14, !14, i64 14, !14, i64 14, !14, i64 14, !14, i64 14, !14, i64 14, !14, i64 14, !14, i64 14, !14, i64 15, !14, i64 15, !14, i64 15, !20, i64 15, !21, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 29, !15, i64 29, !15, i64 32, !15, i64 34, !15, i64 35, !15, i64 36, !15, i64 36, !15, i64 38, !15, i64 40, !15, i64 41, !15, i64 42, !22, i64 44, !14, i64 45, !14, i64 46, !14, i64 47, !14, i64 48, !15, i64 52, !14, i64 56, !15, i64 60, !6, i64 64}
!17 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!18 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!19 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!20 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!21 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!22 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!23 = !{!"_ZTSN7glslang17TShaderQualifiersE", !24, i64 0, !14, i64 4, !14, i64 5, !15, i64 8, !15, i64 12, !25, i64 16, !26, i64 20, !14, i64 24, !7, i64 28, !7, i64 40, !7, i64 44, !14, i64 56, !14, i64 57, !27, i64 60, !14, i64 64, !15, i64 68, !28, i64 72, !14, i64 76, !14, i64 77, !14, i64 78, !15, i64 80, !14, i64 84}
!24 = !{!"_ZTSN7glslang15TLayoutGeometryE", !7, i64 0}
!25 = !{!"_ZTSN7glslang14TVertexSpacingE", !7, i64 0}
!26 = !{!"_ZTSN7glslang12TVertexOrderE", !7, i64 0}
!27 = !{!"_ZTSN7glslang12TLayoutDepthE", !7, i64 0}
!28 = !{!"_ZTSN7glslang18TInterlockOrderingE", !7, i64 0}
!29 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !15, i64 8, !15, i64 12, !15, i64 16}
!30 = !{!15, !15, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTSN7glslang8TTypeLocE", !6, i64 0, !29, i64 8}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"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.538 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.539 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.540 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.541 = external hidden unnamed_addr constant [52 x i8], align 1

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

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

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

; 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 @_ZNK7glslang10TQualifier8isMemoryEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext15structTypeCheckERKNS_10TSourceLocERNS_11TPublicTypeE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(232) %2) local_unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %2, i64 184
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
  %7 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #2
  %.not = icmp eq i64 %7, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %76, %3
  ret void

.lr.ph:                                           ; preds = %3, %76
  %8 = phi i64 [ %78, %76 ], [ 0, %3 ]
  %.032 = phi i32 [ %77, %76 ], [ 0, %3 ]
  %9 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %8) #2
  %10 = load ptr, ptr %9, align 8, !tbaa !29
  %11 = load ptr, ptr %10, align 8, !tbaa !31
  %12 = getelementptr inbounds i8, ptr %11, i64 80
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef nonnull align 8 dereferenceable(72) ptr %13(ptr noundef nonnull align 8 dereferenceable(144) %10)
  %15 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %8) #2
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier11isAuxiliaryEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
  br i1 %17, label %24, label %18

18:                                               ; preds = %.lr.ph
  %19 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier15isInterpolationEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
  br i1 %19, label %24, label %20

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %14, i64 8
  %22 = load i64, ptr %21, align 8
  %23 = and i64 %22, 62
  %switch = icmp eq i64 %23, 0
  br i1 %switch, label %35, label %24

24:                                               ; preds = %20, %18, %.lr.ph
  %25 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %8) #2
  %26 = load ptr, ptr %25, align 8, !tbaa !29
  %27 = load ptr, ptr %26, align 8, !tbaa !31
  %28 = getelementptr inbounds i8, ptr %27, i64 48
  %29 = load ptr, ptr %28, align 8
  %30 = tail call noundef nonnull align 8 dereferenceable(40) ptr %29(ptr noundef nonnull align 8 dereferenceable(144) %26)
  %31 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %30) #2
  %32 = load ptr, ptr %0, align 8, !tbaa !31
  %33 = getelementptr inbounds i8, ptr %32, i64 336
  %34 = load ptr, ptr %33, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %34(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull @.str.538, ptr noundef %31, ptr noundef nonnull @.str.2)
  br label %35

35:                                               ; preds = %20, %24
  %36 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier8isMemoryEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
  br i1 %36, label %37, label %48

37:                                               ; preds = %35
  %38 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %8) #2
  %39 = load ptr, ptr %38, align 8, !tbaa !29
  %40 = load ptr, ptr %39, align 8, !tbaa !31
  %41 = getelementptr inbounds i8, ptr %40, i64 48
  %42 = load ptr, ptr %41, align 8
  %43 = tail call noundef nonnull align 8 dereferenceable(40) ptr %42(ptr noundef nonnull align 8 dereferenceable(144) %39)
  %44 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %43) #2
  %45 = load ptr, ptr %0, align 8, !tbaa !31
  %46 = getelementptr inbounds i8, ptr %45, i64 336
  %47 = load ptr, ptr %46, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %47(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull @.str.539, ptr noundef %44, ptr noundef nonnull @.str.2)
  br label %48

48:                                               ; preds = %37, %35
  %49 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier9hasLayoutEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
  br i1 %49, label %50, label %61

50:                                               ; preds = %48
  %51 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %8) #2
  %52 = load ptr, ptr %51, align 8, !tbaa !29
  %53 = load ptr, ptr %52, align 8, !tbaa !31
  %54 = getelementptr inbounds i8, ptr %53, i64 48
  %55 = load ptr, ptr %54, align 8
  %56 = tail call noundef nonnull align 8 dereferenceable(40) ptr %55(ptr noundef nonnull align 8 dereferenceable(144) %52)
  %57 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %56) #2
  %58 = load ptr, ptr %0, align 8, !tbaa !31
  %59 = getelementptr inbounds i8, ptr %58, i64 336
  %60 = load ptr, ptr %59, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %60(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull @.str.540, ptr noundef %57, ptr noundef nonnull @.str.2)
  tail call void @_ZN7glslang10TQualifier11clearLayoutEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
  br label %61

61:                                               ; preds = %50, %48
  %62 = getelementptr inbounds i8, ptr %14, i64 8
  %63 = load i64, ptr %62, align 8
  %64 = and i64 %63, 134217728
  %.not31 = icmp eq i64 %64, 0
  br i1 %.not31, label %76, label %65

65:                                               ; preds = %61
  %66 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %8) #2
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  %68 = load ptr, ptr %67, align 8, !tbaa !31
  %69 = getelementptr inbounds i8, ptr %68, i64 48
  %70 = load ptr, ptr %69, align 8
  %71 = tail call noundef nonnull align 8 dereferenceable(40) ptr %70(ptr noundef nonnull align 8 dereferenceable(144) %67)
  %72 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %71) #2
  %73 = load ptr, ptr %0, align 8, !tbaa !31
  %74 = getelementptr inbounds i8, ptr %73, i64 336
  %75 = load ptr, ptr %74, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %75(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull @.str.541, ptr noundef %72, ptr noundef nonnull @.str.2)
  br label %76

76:                                               ; preds = %65, %61
  %77 = add i32 %.032, 1
  %78 = zext i32 %77 to i64
  %79 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #2
  %80 = icmp ugt i64 %79, %78
  br i1 %80, label %.lr.ph, label %._crit_edge, !llvm.loop !33
}

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


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