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

%"struct.glslang::TArraySize" = type { i32, ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.441 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.442 = external hidden unnamed_addr constant [27 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 nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang20TIntermConstantUnion13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(193)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang15TIntermOperator5getOpEv(ptr noundef nonnull align 8 dereferenceable(184)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext14arraySizeCheckERKNS_10TSourceLocEPNS_12TIntermTypedERNS_10TArraySizeEPKc(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %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 i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  store i8 0, ptr %11, align 1, !tbaa !9
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.glslang::TArraySize", ptr %17, i32 0, i32 1
  store ptr null, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 1, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds ptr, ptr %20, i64 5
  %22 = load ptr, ptr %21, align 8
  %23 = call noundef ptr %22(ptr noundef nonnull align 8 dereferenceable(32) %19)
  store ptr %23, ptr %13, align 8, !tbaa !5
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %31

26:                                               ; preds = %5
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang20TIntermConstantUnion13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(193) %27)
  %29 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7glslang16TConstUnionArrayixEm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef 0)
  %30 = call noundef i32 @_ZNK7glslang11TConstUnion9getIConstEv(ptr noundef nonnull align 8 dereferenceable(12) %29)
  store i32 %30, ptr %12, align 4, !tbaa !14
  store i8 1, ptr %11, align 1, !tbaa !9
  br label %100

31:                                               ; preds = %5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = getelementptr inbounds ptr, ptr %33, i64 33
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef nonnull align 8 dereferenceable(72) ptr %35(ptr noundef nonnull align 8 dereferenceable(176) %32)
  %37 = call noundef zeroext i1 @_ZNK7glslang10TQualifier14isSpecConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %36)
  br i1 %37, label %38, label %60

38:                                               ; preds = %31
  store i8 1, ptr %11, align 1, !tbaa !9
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.glslang::TArraySize", ptr %40, i32 0, i32 1
  store ptr %39, ptr %41, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds ptr, ptr %43, i64 12
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(32) %42)
  store ptr %46, ptr %14, align 8, !tbaa !5
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %59

49:                                               ; preds = %38
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang13TIntermSymbol13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(256) %50)
  %52 = call noundef i32 @_ZNK7glslang16TConstUnionArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %54, label %59

54:                                               ; preds = %49
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang13TIntermSymbol13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(256) %55)
  %57 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7glslang16TConstUnionArrayixEm(ptr noundef nonnull align 8 dereferenceable(16) %56, i64 noundef 0)
  %58 = call noundef i32 @_ZNK7glslang11TConstUnion9getIConstEv(ptr noundef nonnull align 8 dereferenceable(12) %57)
  store i32 %58, ptr %12, align 4, !tbaa !14
  br label %59

59:                                               ; preds = %54, %49, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %99

60:                                               ; preds = %31
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = getelementptr inbounds ptr, ptr %62, i64 7
  %64 = load ptr, ptr %63, align 8
  %65 = call noundef ptr %64(ptr noundef nonnull align 8 dereferenceable(32) %61)
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %98

67:                                               ; preds = %60
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds ptr, ptr %69, i64 7
  %71 = load ptr, ptr %70, align 8
  %72 = call noundef ptr %71(ptr noundef nonnull align 8 dereferenceable(32) %68)
  %73 = call noundef i32 @_ZNK7glslang15TIntermOperator5getOpEv(ptr noundef nonnull align 8 dereferenceable(184) %72)
  %74 = icmp eq i32 %73, 590
  br i1 %74, label %75, label %98

75:                                               ; preds = %67
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = getelementptr inbounds ptr, ptr %77, i64 7
  %79 = load ptr, ptr %78, align 8
  %80 = call noundef ptr %79(ptr noundef nonnull align 8 dereferenceable(32) %76)
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = getelementptr inbounds ptr, ptr %81, i64 49
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef ptr %83(ptr noundef nonnull align 8 dereferenceable(240) %80)
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  %86 = getelementptr inbounds ptr, ptr %85, i64 30
  %87 = load ptr, ptr %86, align 8
  %88 = call noundef nonnull align 8 dereferenceable(144) ptr %87(ptr noundef nonnull align 8 dereferenceable(176) %84)
  %89 = call noundef zeroext i1 @_ZNK7glslang5TType9isCoopMatEv(ptr noundef nonnull align 8 dereferenceable(144) %88)
  br i1 %89, label %90, label %98

90:                                               ; preds = %75
  store i8 1, ptr %11, align 1, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !14
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = getelementptr inbounds ptr, ptr %92, i64 7
  %94 = load ptr, ptr %93, align 8
  %95 = call noundef ptr %94(ptr noundef nonnull align 8 dereferenceable(32) %91)
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.glslang::TArraySize", ptr %96, i32 0, i32 1
  store ptr %95, ptr %97, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %90, %75, %67, %60
  br label %99

99:                                               ; preds = %98, %59
  br label %100

100:                                              ; preds = %99, %26
  %101 = load i32, ptr %12, align 4, !tbaa !14
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.glslang::TArraySize", ptr %102, i32 0, i32 0
  store i32 %101, ptr %103, align 8, !tbaa !17
  %104 = load i8, ptr %11, align 1, !tbaa !9, !range !18, !noundef !19
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %120

106:                                              ; preds = %100
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = getelementptr inbounds ptr, ptr %108, i64 32
  %110 = load ptr, ptr %109, align 8
  %111 = call noundef i32 %110(ptr noundef nonnull align 8 dereferenceable(176) %107)
  %112 = icmp ne i32 %111, 8
  br i1 %112, label %113, label %126

113:                                              ; preds = %106
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = getelementptr inbounds ptr, ptr %115, i64 32
  %117 = load ptr, ptr %116, align 8
  %118 = call noundef i32 %117(ptr noundef nonnull align 8 dereferenceable(176) %114)
  %119 = icmp ne i32 %118, 9
  br i1 %119, label %120, label %126

120:                                              ; preds = %113, %100
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load ptr, ptr %16, align 8, !tbaa !15
  %124 = getelementptr inbounds ptr, ptr %123, i64 42
  %125 = load ptr, ptr %124, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %125(ptr noundef nonnull align 8 dereferenceable(1176) %16, ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef %122, ptr noundef @.str.2, ptr noundef @.str.441)
  store i32 1, ptr %15, align 4
  br label %136

126:                                              ; preds = %113, %106
  %127 = load i32, ptr %12, align 4, !tbaa !14
  %128 = icmp sle i32 %127, 0
  br i1 %128, label %129, label %135

129:                                              ; preds = %126
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %16, align 8, !tbaa !15
  %133 = getelementptr inbounds ptr, ptr %132, i64 42
  %134 = load ptr, ptr %133, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %134(ptr noundef nonnull align 8 dereferenceable(1176) %16, ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef %131, ptr noundef @.str.2, ptr noundef @.str.442)
  store i32 1, ptr %15, align 4
  br label %136

135:                                              ; preds = %126
  store i32 0, ptr %15, align 4
  br label %136

136:                                              ; preds = %135, %129, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  %137 = load i32, ptr %15, align 4
  switch i32 %137, label %139 [
    i32 0, label %138
    i32 1, label %138
  ]

138:                                              ; preds = %136, %136
  ret void

139:                                              ; preds = %136
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang13TIntermSymbol13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(256)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang16TConstUnionArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN7glslang10TArraySizeE", !13, i64 0, !6, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!12, !13, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}


; 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.441 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.442 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext14arraySizeCheckERKNS_10TSourceLocEPNS_12TIntermTypedERNS_10TArraySizeEPKc(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(16) %3, ptr noundef %4) local_unnamed_addr #1 align 2 {
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr null, ptr %6, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %7, i64 40
  %9 = load ptr, ptr %8, align 8
  %10 = tail call noundef ptr %9(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %15, label %11

11:                                               ; preds = %5
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang20TIntermConstantUnion13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(193) %10)
  %13 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7glslang16TConstUnionArrayixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef 0)
  %14 = tail call noundef i32 @_ZNK7glslang11TConstUnion9getIConstEv(ptr noundef nonnull align 8 dereferenceable(12) %13)
  br label %66

15:                                               ; preds = %5
  %16 = load ptr, ptr %2, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %16, i64 264
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef nonnull align 8 dereferenceable(72) ptr %18(ptr noundef nonnull align 8 dereferenceable(176) %2)
  %20 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier14isSpecConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %19)
  br i1 %20, label %21, label %34

21:                                               ; preds = %15
  store ptr %2, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %2, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %22, i64 96
  %24 = load ptr, ptr %23, align 8
  %25 = tail call noundef ptr %24(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %.not30 = icmp eq ptr %25, null
  br i1 %.not30, label %66, label %26

26:                                               ; preds = %21
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang13TIntermSymbol13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(256) %25)
  %28 = tail call noundef i32 @_ZNK7glslang16TConstUnionArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %30, label %66

30:                                               ; preds = %26
  %31 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang13TIntermSymbol13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(256) %25)
  %32 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7glslang16TConstUnionArrayixEm(ptr noundef nonnull align 8 dereferenceable(16) %31, i64 noundef 0)
  %33 = tail call noundef i32 @_ZNK7glslang11TConstUnion9getIConstEv(ptr noundef nonnull align 8 dereferenceable(12) %32)
  br label %66

34:                                               ; preds = %15
  %35 = load ptr, ptr %2, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %35, i64 56
  %37 = load ptr, ptr %36, align 8
  %38 = tail call noundef ptr %37(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %.not29 = icmp eq ptr %38, null
  br i1 %.not29, label %65, label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr %2, align 8, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %40, i64 56
  %42 = load ptr, ptr %41, align 8
  %43 = tail call noundef ptr %42(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %44 = tail call noundef i32 @_ZNK7glslang15TIntermOperator5getOpEv(ptr noundef nonnull align 8 dereferenceable(184) %43)
  %45 = icmp eq i32 %44, 590
  br i1 %45, label %46, label %65

46:                                               ; preds = %39
  %47 = load ptr, ptr %2, align 8, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %47, i64 56
  %49 = load ptr, ptr %48, align 8
  %50 = tail call noundef ptr %49(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %51, i64 392
  %53 = load ptr, ptr %52, align 8
  %54 = tail call noundef ptr %53(ptr noundef nonnull align 8 dereferenceable(240) %50)
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = getelementptr inbounds i8, ptr %55, i64 240
  %57 = load ptr, ptr %56, align 8
  %58 = tail call noundef nonnull align 8 dereferenceable(144) ptr %57(ptr noundef nonnull align 8 dereferenceable(176) %54)
  %59 = tail call noundef zeroext i1 @_ZNK7glslang5TType9isCoopMatEv(ptr noundef nonnull align 8 dereferenceable(144) %58)
  br i1 %59, label %60, label %65

60:                                               ; preds = %46
  %61 = load ptr, ptr %2, align 8, !tbaa !11
  %62 = getelementptr inbounds i8, ptr %61, i64 56
  %63 = load ptr, ptr %62, align 8
  %64 = tail call noundef ptr %63(ptr noundef nonnull align 8 dereferenceable(32) %2)
  store ptr %64, ptr %6, align 8, !tbaa !5
  br label %66

65:                                               ; preds = %46, %39, %34
  store i32 1, ptr %3, align 8, !tbaa !13
  br label %.sink.split

66:                                               ; preds = %11, %60, %30, %26, %21
  %.1.ph = phi i32 [ 1, %21 ], [ 1, %26 ], [ %33, %30 ], [ 1, %60 ], [ %14, %11 ]
  store i32 %.1.ph, ptr %3, align 8, !tbaa !13
  %67 = load ptr, ptr %2, align 8, !tbaa !11
  %68 = getelementptr inbounds i8, ptr %67, i64 256
  %69 = load ptr, ptr %68, align 8
  %70 = tail call noundef i32 %69(ptr noundef nonnull align 8 dereferenceable(176) %2)
  %.not31 = icmp eq i32 %70, 8
  br i1 %.not31, label %76, label %71

71:                                               ; preds = %66
  %72 = load ptr, ptr %2, align 8, !tbaa !11
  %73 = getelementptr inbounds i8, ptr %72, i64 256
  %74 = load ptr, ptr %73, align 8
  %75 = tail call noundef i32 %74(ptr noundef nonnull align 8 dereferenceable(176) %2)
  %.not32 = icmp eq i32 %75, 9
  br i1 %.not32, label %76, label %.sink.split

76:                                               ; preds = %71, %66
  %77 = icmp slt i32 %.1.ph, 1
  br i1 %77, label %.sink.split, label %81

.sink.split:                                      ; preds = %76, %71, %65
  %.str.442.sink = phi ptr [ @.str.441, %65 ], [ @.str.441, %71 ], [ @.str.442, %76 ]
  %78 = load ptr, ptr %0, align 8, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %78, i64 336
  %80 = load ptr, ptr %79, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %80(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %4, ptr noundef nonnull @.str.2, ptr noundef nonnull %.str.442.sink)
  br label %81

81:                                               ; preds = %.sink.split, %76
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang16TConstUnionArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 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" }

!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, !10, i64 8}
!6 = !{!"_ZTSN7glslang10TArraySizeE", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !9, i64 0}
!13 = !{!6, !7, i64 0}


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