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

; 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::TConstUnionArray" = type { ptr, ptr }
%"class.glslang::TVariable" = type <{ %"class.glslang::TSymbol.base", [7 x i8], %"class.glslang::TType", i8, [7 x i8], %"class.glslang::TConstUnionArray", ptr, ptr, i32, [4 x i8] }>
%"class.glslang::TSymbol.base" = type <{ ptr, ptr, i64, ptr, i8 }>
%"class.glslang::TType" = type { ptr, i32, [4 x i8], %"class.glslang::TQualifier", ptr, %union.anon, ptr, ptr, %"struct.glslang::TSampler", ptr, ptr }
%"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 }>
%union.anon = type { ptr }
%"struct.glslang::TSampler" = type { i32 }
%"class.glslang::TSymbol" = type <{ ptr, ptr, i64, ptr, i8, [7 x i8] }>

@_ZTVN7glslang9TVariableE = external dso_local unnamed_addr constant { [36 x ptr] }, align 8
@.str.49 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [113 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang9TVariableC2ERKS0_ = external hidden unnamed_addr constant [49 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang7TSymbolC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TVariableC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(228) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.glslang::TConstUnionArray", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN7glslang7TSymbolC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(33) %9, ptr noundef nonnull align 8 dereferenceable(33) %10)
  store ptr getelementptr inbounds inrange(-16, 272) ({ [36 x ptr] }, ptr @_ZTVN7glslang9TVariableE, i32 0, i32 0, i32 2), ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 2
  invoke void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144) %11, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0, i32 noundef 0, i1 noundef zeroext false)
          to label %12 unwind label %52

12:                                               ; preds = %2
  %13 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 5
  invoke void @_ZN7glslang16TConstUnionArrayC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %14 unwind label %56

14:                                               ; preds = %12
  %15 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.glslang::TVariable", ptr %16, i32 0, i32 2
  invoke void @_ZN7glslang5TType8deepCopyERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %15, ptr noundef nonnull align 8 dereferenceable(144) %17)
          to label %18 unwind label %60

18:                                               ; preds = %14
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.glslang::TVariable", ptr %19, i32 0, i32 3
  %21 = load i8, ptr %20, align 8, !tbaa !11, !range !29, !noundef !30
  %22 = trunc i8 %21 to i1
  %23 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 3
  %24 = zext i1 %22 to i8
  store i8 %24, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 6
  store ptr null, ptr %25, align 8, !tbaa !31
  %26 = getelementptr inbounds %"class.glslang::TSymbol", ptr %9, i32 0, i32 3
  store ptr null, ptr %26, align 8, !tbaa !32
  %27 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 7
  store ptr null, ptr %27, align 8, !tbaa !33
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 17
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(33) %28)
          to label %33 unwind label %60

33:                                               ; preds = %18
  %34 = icmp sgt i32 %32, 0
  br i1 %34, label %35, label %64

35:                                               ; preds = %33
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 17
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef i32 %39(ptr noundef nonnull align 8 dereferenceable(33) %36)
          to label %41 unwind label %60

41:                                               ; preds = %35
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 18
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(33) %42)
          to label %47 unwind label %60

47:                                               ; preds = %41
  %48 = load ptr, ptr %9, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 16
  %50 = load ptr, ptr %49, align 8
  invoke void %50(ptr noundef nonnull align 8 dereferenceable(33) %9, i32 noundef %40, ptr noundef %46)
          to label %51 unwind label %60

51:                                               ; preds = %47
  br label %64

52:                                               ; preds = %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %5, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %6, align 4
  br label %151

56:                                               ; preds = %12
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %5, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %6, align 4
  br label %150

60:                                               ; preds = %125, %120, %64, %47, %41, %35, %18, %14
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %149

64:                                               ; preds = %51, %33
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 31
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef zeroext i1 %68(ptr noundef nonnull align 8 dereferenceable(228) %65)
          to label %70 unwind label %60

70:                                               ; preds = %64
  br i1 %69, label %71, label %120

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !34
  br label %72

72:                                               ; preds = %116, %71
  %73 = load i32, ptr %7, align 4, !tbaa !34
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.glslang::TVariable", ptr %74, i32 0, i32 2
  %76 = invoke noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %75)
          to label %77 unwind label %82

77:                                               ; preds = %72
  %78 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %76) #5
  %79 = trunc i64 %78 to i32
  %80 = icmp slt i32 %73, %79
  br i1 %80, label %86, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %119

82:                                               ; preds = %110, %103, %95, %86, %72
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %5, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %149

86:                                               ; preds = %77
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !34
  %89 = load ptr, ptr %87, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 32
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef i32 %91(ptr noundef nonnull align 8 dereferenceable(228) %87, i32 noundef %88)
          to label %93 unwind label %82

93:                                               ; preds = %86
  %94 = icmp sgt i32 %92, 0
  br i1 %94, label %95, label %115

95:                                               ; preds = %93
  %96 = load i32, ptr %7, align 4, !tbaa !34
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load i32, ptr %7, align 4, !tbaa !34
  %99 = load ptr, ptr %97, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 32
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef i32 %101(ptr noundef nonnull align 8 dereferenceable(228) %97, i32 noundef %98)
          to label %103 unwind label %82

103:                                              ; preds = %95
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load i32, ptr %7, align 4, !tbaa !34
  %106 = load ptr, ptr %104, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i64 33
  %108 = load ptr, ptr %107, align 8
  %109 = invoke noundef ptr %108(ptr noundef nonnull align 8 dereferenceable(228) %104, i32 noundef %105)
          to label %110 unwind label %82

110:                                              ; preds = %103
  %111 = load ptr, ptr %9, align 8, !tbaa !9
  %112 = getelementptr inbounds ptr, ptr %111, i64 30
  %113 = load ptr, ptr %112, align 8
  invoke void %113(ptr noundef nonnull align 8 dereferenceable(228) %9, i32 noundef %96, i32 noundef %102, ptr noundef %109)
          to label %114 unwind label %82

114:                                              ; preds = %110
  br label %115

115:                                              ; preds = %114, %93
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %7, align 4, !tbaa !34
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !34
  br label %72, !llvm.loop !35

119:                                              ; preds = %81
  br label %120

120:                                              ; preds = %119, %70
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.glslang::TVariable", ptr %121, i32 0, i32 5
  %123 = invoke noundef zeroext i1 @_ZNK7glslang16TConstUnionArray5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %122)
          to label %124 unwind label %60

124:                                              ; preds = %120
  br i1 %123, label %148, label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.glslang::TVariable", ptr %126, i32 0, i32 2
  %128 = invoke noundef zeroext i1 @_ZNK7glslang5TType8isStructEv(ptr noundef nonnull align 8 dereferenceable(144) %127)
          to label %129 unwind label %60

129:                                              ; preds = %125
  %130 = xor i1 %128, true
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  br label %134

132:                                              ; preds = %129
  call void @__assert_fail(ptr noundef @.str.49, ptr noundef @.str.50, i32 noundef 368, ptr noundef @__PRETTY_FUNCTION__._ZN7glslang9TVariableC2ERKS0_) #6
  unreachable

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.glslang::TVariable", ptr %135, i32 0, i32 5
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.glslang::TVariable", ptr %137, i32 0, i32 5
  %139 = invoke noundef i32 @_ZNK7glslang16TConstUnionArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %138)
          to label %140 unwind label %144

140:                                              ; preds = %134
  invoke void @_ZN7glslang16TConstUnionArrayC2ERKS0_ii(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %136, i32 noundef 0, i32 noundef %139)
          to label %141 unwind label %144

141:                                              ; preds = %140
  %142 = getelementptr inbounds %"class.glslang::TVariable", ptr %9, i32 0, i32 5
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7glslang16TConstUnionArrayaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %142, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @_ZN7glslang16TConstUnionArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %148

144:                                              ; preds = %140, %134
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %5, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %149

148:                                              ; preds = %141, %124
  ret void

149:                                              ; preds = %144, %82, %60
  call void @_ZN7glslang16TConstUnionArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %150

150:                                              ; preds = %149, %56
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #5
  br label %151

151:                                              ; preds = %150, %52
  call void @_ZN7glslang7TSymbolD2Ev(ptr noundef nonnull align 8 dereferenceable(33) %9) #5
  br label %152

152:                                              ; preds = %151
  %153 = load ptr, ptr %5, align 8
  %154 = load i32, ptr %6, align 4
  %155 = insertvalue { ptr, i32 } poison, ptr %153, 0
  %156 = insertvalue { ptr, i32 } %155, i32 %154, 1
  resume { ptr, i32 } %156
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang5TType8deepCopyERKS0_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(144)) #2 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 zeroext i1 @_ZNK7glslang16TConstUnionArray5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang16TConstUnionArrayC2ERKS0_ii(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN7glslang16TConstUnionArrayaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang7TSymbolD2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #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 = { 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 #4 = { inlinehint 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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !15, i64 184}
!12 = !{!"_ZTSN7glslang9TVariableE", !13, i64 0, !16, i64 40, !15, i64 184, !28, i64 192, !6, i64 208, !6, i64 216, !18, i64 224}
!13 = !{!"_ZTSN7glslang7TSymbolE", !6, i64 8, !14, i64 16, !6, i64 24, !15, i64 32}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN7glslang5TTypeE", !17, i64 8, !18, i64 9, !18, i64 9, !18, i64 10, !15, i64 10, !15, i64 10, !19, i64 16, !6, i64 88, !7, i64 96, !6, i64 104, !6, i64 112, !26, i64 120, !6, i64 128, !6, i64 136}
!17 = !{!"_ZTSN7glslang10TBasicTypeE", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN7glslang10TQualifierE", !6, i64 0, !20, i64 8, !21, i64 8, !21, i64 9, !22, i64 11, !15, i64 11, !15, i64 11, !15, i64 11, !15, i64 11, !15, i64 11, !15, i64 12, !15, i64 12, !15, i64 12, !15, i64 12, !15, i64 12, !15, i64 12, !15, i64 12, !15, i64 12, !15, i64 13, !15, i64 13, !15, i64 13, !15, i64 13, !15, i64 13, !15, i64 13, !15, i64 13, !15, i64 13, !15, i64 14, !15, i64 14, !15, i64 14, !15, i64 14, !15, i64 14, !15, i64 14, !15, i64 14, !15, i64 14, !15, i64 15, !15, i64 15, !15, i64 15, !23, i64 15, !24, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 29, !18, i64 29, !18, i64 32, !18, i64 34, !18, i64 35, !18, i64 36, !18, i64 36, !18, i64 38, !18, i64 40, !18, i64 41, !18, i64 42, !25, i64 44, !15, i64 45, !15, i64 46, !15, i64 47, !15, i64 48, !18, i64 52, !15, i64 56, !18, i64 60, !6, i64 64}
!20 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!21 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!22 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!23 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!24 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!25 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!26 = !{!"_ZTSN7glslang8TSamplerE", !17, i64 0, !27, i64 1, !15, i64 2, !15, i64 2, !15, i64 2, !15, i64 2, !15, i64 2, !15, i64 2, !18, i64 2, !18, i64 3, !15, i64 3, !15, i64 3}
!27 = !{!"_ZTSN7glslang11TSamplerDimE", !7, i64 0}
!28 = !{!"_ZTSN7glslang16TConstUnionArrayE", !6, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!12, !6, i64 208}
!32 = !{!13, !6, i64 24}
!33 = !{!12, !6, i64 216}
!34 = !{!18, !18, 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"

%"class.glslang::TConstUnionArray" = type { ptr, ptr }

@_ZTVN7glslang9TVariableE = external dso_local unnamed_addr constant { [36 x ptr] }, align 8
@.str.49 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [113 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang9TVariableC2ERKS0_ = external hidden unnamed_addr constant [49 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang7TSymbolC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TVariableC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(228) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.glslang::TConstUnionArray", align 8
  tail call void @_ZN7glslang7TSymbolC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(33) %0, ptr noundef nonnull align 8 dereferenceable(33) %1)
  store ptr getelementptr inbounds inrange(-16, 272) (i8, ptr @_ZTVN7glslang9TVariableE, i64 16), ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144) %4, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0, i32 noundef 0, i1 noundef zeroext false)
          to label %5 unwind label %34

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN7glslang16TConstUnionArrayC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %7 = getelementptr inbounds i8, ptr %1, i64 40
  invoke void @_ZN7glslang5TType8deepCopyERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %4, ptr noundef nonnull align 8 dereferenceable(144) %7)
          to label %8 unwind label %36

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %1, i64 184
  %10 = load i8, ptr %9, align 8, !tbaa !8, !range !28, !noundef !29
  %11 = getelementptr inbounds i8, ptr %0, i64 184
  store i8 %10, ptr %11, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 208
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr null, ptr %13, align 8, !tbaa !30
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 136
  %16 = load ptr, ptr %15, align 8
  %17 = invoke noundef i32 %16(ptr noundef nonnull align 8 dereferenceable(33) %1)
          to label %18 unwind label %36

18:                                               ; preds = %8
  %19 = icmp sgt i32 %17, 0
  br i1 %19, label %20, label %38

20:                                               ; preds = %18
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 136
  %23 = load ptr, ptr %22, align 8
  %24 = invoke noundef i32 %23(ptr noundef nonnull align 8 dereferenceable(33) %1)
          to label %25 unwind label %36

25:                                               ; preds = %20
  %26 = load ptr, ptr %1, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 144
  %28 = load ptr, ptr %27, align 8
  %29 = invoke noundef ptr %28(ptr noundef nonnull align 8 dereferenceable(33) %1)
          to label %30 unwind label %36

30:                                               ; preds = %25
  %31 = load ptr, ptr %0, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 128
  %33 = load ptr, ptr %32, align 8
  invoke void %33(ptr noundef nonnull align 8 dereferenceable(33) %0, i32 noundef %24, ptr noundef %29)
          to label %38 unwind label %36

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %87

36:                                               ; preds = %38, %30, %25, %20, %8, %5
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %86

38:                                               ; preds = %30, %18
  %39 = load ptr, ptr %1, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 248
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(228) %1)
          to label %43 unwind label %36

43:                                               ; preds = %38
  br i1 %42, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %43, %72
  %.0 = phi i32 [ %73, %72 ], [ 0, %43 ]
  %44 = invoke noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
          to label %45 unwind label %49

45:                                               ; preds = %.preheader
  %46 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %44) #6
  %47 = trunc i64 %46 to i32
  %48 = icmp slt i32 %.0, %47
  br i1 %48, label %51, label %.loopexit

49:                                               ; preds = %68, %63, %58, %51, %.preheader
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %86

51:                                               ; preds = %45
  %52 = load ptr, ptr %1, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 256
  %54 = load ptr, ptr %53, align 8
  %55 = invoke noundef i32 %54(ptr noundef nonnull align 8 dereferenceable(228) %1, i32 noundef %.0)
          to label %56 unwind label %49

56:                                               ; preds = %51
  %57 = icmp sgt i32 %55, 0
  br i1 %57, label %58, label %72

58:                                               ; preds = %56
  %59 = load ptr, ptr %1, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 256
  %61 = load ptr, ptr %60, align 8
  %62 = invoke noundef i32 %61(ptr noundef nonnull align 8 dereferenceable(228) %1, i32 noundef %.0)
          to label %63 unwind label %49

63:                                               ; preds = %58
  %64 = load ptr, ptr %1, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 264
  %66 = load ptr, ptr %65, align 8
  %67 = invoke noundef ptr %66(ptr noundef nonnull align 8 dereferenceable(228) %1, i32 noundef %.0)
          to label %68 unwind label %49

68:                                               ; preds = %63
  %69 = load ptr, ptr %0, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 240
  %71 = load ptr, ptr %70, align 8
  invoke void %71(ptr noundef nonnull align 8 dereferenceable(228) %0, i32 noundef %.0, i32 noundef %62, ptr noundef %67)
          to label %72 unwind label %49

72:                                               ; preds = %56, %68
  %73 = add nuw nsw i32 %.0, 1
  br label %.preheader, !llvm.loop !31

.loopexit:                                        ; preds = %45, %43
  %74 = getelementptr inbounds i8, ptr %1, i64 192
  %75 = tail call noundef zeroext i1 @_ZNK7glslang16TConstUnionArray5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %74)
  br i1 %75, label %85, label %76

76:                                               ; preds = %.loopexit
  %77 = tail call noundef zeroext i1 @_ZNK7glslang5TType8isStructEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  tail call void @__assert_fail(ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.50, i32 noundef 368, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7glslang9TVariableC2ERKS0_) #7
  unreachable

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %80 = tail call noundef i32 @_ZNK7glslang16TConstUnionArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %74)
  invoke void @_ZN7glslang16TConstUnionArrayC2ERKS0_ii(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %74, i32 noundef 0, i32 noundef %80)
          to label %81 unwind label %83

81:                                               ; preds = %79
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7glslang16TConstUnionArrayaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @_ZN7glslang16TConstUnionArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %85

83:                                               ; preds = %79
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %86

85:                                               ; preds = %81, %.loopexit
  ret void

86:                                               ; preds = %83, %49, %36
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %84, %83 ], [ %37, %36 ]
  call void @_ZN7glslang16TConstUnionArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #6
  br label %87

87:                                               ; preds = %86, %34
  %.pn.pn = phi { ptr, i32 } [ %.pn, %86 ], [ %35, %34 ]
  call void @_ZN7glslang7TSymbolD2Ev(ptr noundef nonnull align 8 dereferenceable(33) %0) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang16TConstUnionArrayC2ERKS0_ii(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN7glslang16TConstUnionArrayaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { mustprogress 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 = { 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 #4 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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, !14, i64 184}
!9 = !{!"_ZTSN7glslang9TVariableE", !10, i64 0, !15, i64 40, !14, i64 184, !27, i64 192, !11, i64 208, !11, i64 216, !17, i64 224}
!10 = !{!"_ZTSN7glslang7TSymbolE", !11, i64 8, !13, i64 16, !11, i64 24, !14, i64 32}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"long long", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"_ZTSN7glslang5TTypeE", !16, i64 8, !17, i64 9, !17, i64 9, !17, i64 10, !14, i64 10, !14, i64 10, !18, i64 16, !11, i64 88, !12, i64 96, !11, i64 104, !11, i64 112, !25, i64 120, !11, i64 128, !11, i64 136}
!16 = !{!"_ZTSN7glslang10TBasicTypeE", !12, i64 0}
!17 = !{!"int", !12, i64 0}
!18 = !{!"_ZTSN7glslang10TQualifierE", !11, i64 0, !19, i64 8, !20, i64 8, !20, i64 9, !21, 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, !22, i64 15, !23, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 29, !17, i64 29, !17, i64 32, !17, i64 34, !17, i64 35, !17, i64 36, !17, i64 36, !17, i64 38, !17, i64 40, !17, i64 41, !17, i64 42, !24, i64 44, !14, i64 45, !14, i64 46, !14, i64 47, !14, i64 48, !17, i64 52, !14, i64 56, !17, i64 60, !11, i64 64}
!19 = !{!"_ZTSN7glslang17TStorageQualifierE", !12, i64 0}
!20 = !{!"_ZTSN7glslang16TBuiltInVariableE", !12, i64 0}
!21 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !12, i64 0}
!22 = !{!"_ZTSN7glslang13TLayoutMatrixE", !12, i64 0}
!23 = !{!"_ZTSN7glslang14TLayoutPackingE", !12, i64 0}
!24 = !{!"_ZTSN7glslang13TLayoutFormatE", !12, i64 0}
!25 = !{!"_ZTSN7glslang8TSamplerE", !16, i64 0, !26, i64 1, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !14, i64 2, !17, i64 2, !17, i64 3, !14, i64 3, !14, i64 3}
!26 = !{!"_ZTSN7glslang11TSamplerDimE", !12, i64 0}
!27 = !{!"_ZTSN7glslang16TConstUnionArrayE", !11, i64 8}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!10, !11, i64 24}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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