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

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

@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [114 x i8], align 1
@_ZN7glslangL23baseAlignmentVec4Std140E = external hidden constant i32, align 4
@__PRETTY_FUNCTION__._ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb = external hidden unnamed_addr constant [103 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144)) #4 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) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %3, i1 noundef zeroext %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca %"class.glslang::TType", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.glslang::TType", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  %28 = zext i1 %4 to i8
  store i8 %28, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 2
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %13, align 1, !tbaa !11
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %32, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds ptr, ptr %34, i64 29
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef zeroext i1 %36(ptr noundef nonnull align 8 dereferenceable(144) %33)
  br i1 %37, label %38, label %98

38:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 144, ptr %15) #5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7glslang5TTypeC2ERKS0_ib(ptr noundef nonnull align 8 dereferenceable(144) %15, ptr noundef nonnull align 8 dereferenceable(144) %39, i32 noundef 0, i1 noundef zeroext false)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = load i8, ptr %11, align 1, !tbaa !11, !range !17, !noundef !18
  %43 = trunc i8 %42 to i1
  %44 = invoke noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %15, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %41, i1 noundef zeroext %43)
          to label %45 unwind label %52

45:                                               ; preds = %38
  store i32 %44, ptr %12, align 4, !tbaa !13
  %46 = load i8, ptr %13, align 1, !tbaa !11, !range !17, !noundef !18
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %56

48:                                               ; preds = %45
  %49 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7glslangL23baseAlignmentVec4Std140E, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %50 unwind label %52

50:                                               ; preds = %48
  %51 = load i32, ptr %49, align 4, !tbaa !13
  store i32 %51, ptr %12, align 4, !tbaa !13
  br label %56

52:                                               ; preds = %56, %48, %38
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %16, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %17, align 4
  br label %97

56:                                               ; preds = %50, %45
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i32, ptr %12, align 4, !tbaa !13
  invoke void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %57, i32 noundef %58)
          to label %59 unwind label %52

59:                                               ; preds = %56
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %61, ptr %62, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = getelementptr inbounds ptr, ptr %64, i64 31
  %66 = load ptr, ptr %65, align 8
  %67 = invoke noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(144) %63)
          to label %68 unwind label %93

68:                                               ; preds = %59
  br i1 %67, label %69, label %78

69:                                               ; preds = %68
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %72 = getelementptr inbounds ptr, ptr %71, i64 15
  %73 = load ptr, ptr %72, align 8
  %74 = invoke noundef i32 %73(ptr noundef nonnull align 8 dereferenceable(144) %70)
          to label %75 unwind label %93

75:                                               ; preds = %69
  %76 = icmp eq i32 %74, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  br label %85

78:                                               ; preds = %75, %68
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = getelementptr inbounds ptr, ptr %80, i64 15
  %82 = load ptr, ptr %81, align 8
  %83 = invoke noundef i32 %82(ptr noundef nonnull align 8 dereferenceable(144) %79)
          to label %84 unwind label %93

84:                                               ; preds = %78
  br label %85

85:                                               ; preds = %84, %77
  %86 = phi i32 [ 1, %77 ], [ %83, %84 ]
  store i32 %86, ptr %18, align 4, !tbaa !13
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = load i32, ptr %18, align 4, !tbaa !13
  %90 = mul nsw i32 %88, %89
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %90, ptr %91, align 4, !tbaa !13
  %92 = load i32, ptr %12, align 4, !tbaa !13
  store i32 %92, ptr %6, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %15) #5
  br label %278

93:                                               ; preds = %78, %69, %59
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %16, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %97

97:                                               ; preds = %93, %52
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %15) #5
  br label %280

98:                                               ; preds = %5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds ptr, ptr %100, i64 7
  %102 = load ptr, ptr %101, align 8
  %103 = call noundef i32 %102(ptr noundef nonnull align 8 dereferenceable(144) %99)
  %104 = icmp eq i32 %103, 15
  br i1 %104, label %112, label %105

105:                                              ; preds = %98
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = getelementptr inbounds ptr, ptr %107, i64 7
  %109 = load ptr, ptr %108, align 8
  %110 = call noundef i32 %109(ptr noundef nonnull align 8 dereferenceable(144) %106)
  %111 = icmp eq i32 %110, 16
  br i1 %111, label %112, label %173

112:                                              ; preds = %105, %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %113)
  store ptr %114, ptr %20, align 8, !tbaa !5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %115, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %116 = load i8, ptr %13, align 1, !tbaa !11, !range !17, !noundef !18
  %117 = trunc i8 %116 to i1
  %118 = zext i1 %117 to i64
  %119 = select i1 %117, i32 16, i32 0
  store i32 %119, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !19
  br label %120

120:                                              ; preds = %166, %112
  %121 = load i64, ptr %22, align 8, !tbaa !19
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %122) #5
  %124 = icmp ult i64 %121, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %169

126:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  %128 = load i64, ptr %22, align 8, !tbaa !19
  %129 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %127, i64 noundef %128) #5
  %130 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = getelementptr inbounds ptr, ptr %132, i64 10
  %134 = load ptr, ptr %133, align 8
  %135 = call noundef nonnull align 8 dereferenceable(72) ptr %134(ptr noundef nonnull align 8 dereferenceable(144) %131)
  %136 = getelementptr inbounds %"class.glslang::TQualifier", ptr %135, i32 0, i32 1
  %137 = load i64, ptr %136, align 8
  %138 = lshr i64 %137, 59
  %139 = and i64 %138, 7
  %140 = trunc i64 %139 to i32
  store i32 %140, ptr %24, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %141 = load ptr, ptr %20, align 8, !tbaa !5
  %142 = load i64, ptr %22, align 8, !tbaa !19
  %143 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %141, i64 noundef %142) #5
  %144 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  %146 = load i32, ptr %10, align 4, !tbaa !9
  %147 = load i32, ptr %24, align 4, !tbaa !24
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %152

149:                                              ; preds = %126
  %150 = load i32, ptr %24, align 4, !tbaa !24
  %151 = icmp eq i32 %150, 1
  br label %155

152:                                              ; preds = %126
  %153 = load i8, ptr %11, align 1, !tbaa !11, !range !17, !noundef !18
  %154 = trunc i8 %153 to i1
  br label %155

155:                                              ; preds = %152, %149
  %156 = phi i1 [ %151, %149 ], [ %154, %152 ]
  %157 = call noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %145, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %146, i1 noundef zeroext %156)
  store i32 %157, ptr %25, align 4, !tbaa !13
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %159 = load i32, ptr %158, align 4, !tbaa !13
  store i32 %159, ptr %21, align 4, !tbaa !13
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %160, i32 noundef %161)
  %162 = load i32, ptr %23, align 4, !tbaa !13
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !13
  %165 = add nsw i32 %164, %162
  store i32 %165, ptr %163, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %166

166:                                              ; preds = %155
  %167 = load i64, ptr %22, align 8, !tbaa !19
  %168 = add i64 %167, 1
  store i64 %168, ptr %22, align 8, !tbaa !19
  br label %120, !llvm.loop !26

169:                                              ; preds = %125
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = load i32, ptr %21, align 4, !tbaa !13
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %170, i32 noundef %171)
  %172 = load i32, ptr %21, align 4, !tbaa !13
  store i32 %172, ptr %6, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %278

173:                                              ; preds = %105
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = load ptr, ptr %174, align 8, !tbaa !15
  %176 = getelementptr inbounds ptr, ptr %175, i64 24
  %177 = load ptr, ptr %176, align 8
  %178 = call noundef zeroext i1 %177(ptr noundef nonnull align 8 dereferenceable(144) %174)
  br i1 %178, label %179, label %183

179:                                              ; preds = %173
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = call noundef i32 @_ZN7glslang13TIntermediate22getBaseAlignmentScalarERKNS_5TTypeERi(ptr noundef nonnull align 8 dereferenceable(144) %180, ptr noundef nonnull align 4 dereferenceable(4) %181)
  store i32 %182, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %278

183:                                              ; preds = %173
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !15
  %186 = getelementptr inbounds ptr, ptr %185, i64 27
  %187 = load ptr, ptr %186, align 8
  %188 = call noundef zeroext i1 %187(ptr noundef nonnull align 8 dereferenceable(144) %184)
  br i1 %188, label %189, label %218

189:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = call noundef i32 @_ZN7glslang13TIntermediate22getBaseAlignmentScalarERKNS_5TTypeERi(ptr noundef nonnull align 8 dereferenceable(144) %190, ptr noundef nonnull align 4 dereferenceable(4) %191)
  store i32 %192, ptr %26, align 4, !tbaa !13
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = load ptr, ptr %193, align 8, !tbaa !15
  %195 = getelementptr inbounds ptr, ptr %194, i64 12
  %196 = load ptr, ptr %195, align 8
  %197 = call noundef i32 %196(ptr noundef nonnull align 8 dereferenceable(144) %193)
  switch i32 %197, label %206 [
    i32 1, label %198
    i32 2, label %200
  ]

198:                                              ; preds = %189
  %199 = load i32, ptr %26, align 4, !tbaa !13
  store i32 %199, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %217

200:                                              ; preds = %189
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !13
  %203 = mul nsw i32 %202, 2
  store i32 %203, ptr %201, align 4, !tbaa !13
  %204 = load i32, ptr %26, align 4, !tbaa !13
  %205 = mul nsw i32 2, %204
  store i32 %205, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %217

206:                                              ; preds = %189
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load ptr, ptr %207, align 8, !tbaa !15
  %209 = getelementptr inbounds ptr, ptr %208, i64 12
  %210 = load ptr, ptr %209, align 8
  %211 = call noundef i32 %210(ptr noundef nonnull align 8 dereferenceable(144) %207)
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = load i32, ptr %212, align 4, !tbaa !13
  %214 = mul nsw i32 %213, %211
  store i32 %214, ptr %212, align 4, !tbaa !13
  %215 = load i32, ptr %26, align 4, !tbaa !13
  %216 = mul nsw i32 4, %215
  store i32 %216, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %217

217:                                              ; preds = %206, %200, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %278

218:                                              ; preds = %183
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = load ptr, ptr %219, align 8, !tbaa !15
  %221 = getelementptr inbounds ptr, ptr %220, i64 28
  %222 = load ptr, ptr %221, align 8
  %223 = call noundef zeroext i1 %222(ptr noundef nonnull align 8 dereferenceable(144) %219)
  br i1 %223, label %224, label %277

224:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 144, ptr %27) #5
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = load i8, ptr %11, align 1, !tbaa !11, !range !17, !noundef !18
  %227 = trunc i8 %226 to i1
  call void @_ZN7glslang5TTypeC2ERKS0_ib(ptr noundef nonnull align 8 dereferenceable(144) %27, ptr noundef nonnull align 8 dereferenceable(144) %225, i32 noundef 0, i1 noundef zeroext %227)
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = load i32, ptr %10, align 4, !tbaa !9
  %230 = load i8, ptr %11, align 1, !tbaa !11, !range !17, !noundef !18
  %231 = trunc i8 %230 to i1
  %232 = invoke noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %27, ptr noundef nonnull align 4 dereferenceable(4) %228, ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %229, i1 noundef zeroext %231)
          to label %233 unwind label %240

233:                                              ; preds = %224
  store i32 %232, ptr %12, align 4, !tbaa !13
  %234 = load i8, ptr %13, align 1, !tbaa !11, !range !17, !noundef !18
  %235 = trunc i8 %234 to i1
  br i1 %235, label %236, label %244

236:                                              ; preds = %233
  %237 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7glslangL23baseAlignmentVec4Std140E, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %238 unwind label %240

238:                                              ; preds = %236
  %239 = load i32, ptr %237, align 4, !tbaa !13
  store i32 %239, ptr %12, align 4, !tbaa !13
  br label %244

240:                                              ; preds = %264, %253, %244, %236, %224
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %16, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %17, align 4
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %27) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %27) #5
  br label %280

244:                                              ; preds = %238, %233
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = load i32, ptr %12, align 4, !tbaa !13
  invoke void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %245, i32 noundef %246)
          to label %247 unwind label %240

247:                                              ; preds = %244
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = load i32, ptr %248, align 4, !tbaa !13
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %249, ptr %250, align 4, !tbaa !13
  %251 = load i8, ptr %11, align 1, !tbaa !11, !range !17, !noundef !18
  %252 = trunc i8 %251 to i1
  br i1 %252, label %253, label %264

253:                                              ; preds = %247
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = load i32, ptr %254, align 4, !tbaa !13
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = load ptr, ptr %256, align 8, !tbaa !15
  %258 = getelementptr inbounds ptr, ptr %257, i64 14
  %259 = load ptr, ptr %258, align 8
  %260 = invoke noundef i32 %259(ptr noundef nonnull align 8 dereferenceable(144) %256)
          to label %261 unwind label %240

261:                                              ; preds = %253
  %262 = mul nsw i32 %255, %260
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %262, ptr %263, align 4, !tbaa !13
  br label %275

264:                                              ; preds = %247
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = load i32, ptr %265, align 4, !tbaa !13
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = load ptr, ptr %267, align 8, !tbaa !15
  %269 = getelementptr inbounds ptr, ptr %268, i64 13
  %270 = load ptr, ptr %269, align 8
  %271 = invoke noundef i32 %270(ptr noundef nonnull align 8 dereferenceable(144) %267)
          to label %272 unwind label %240

272:                                              ; preds = %264
  %273 = mul nsw i32 %266, %271
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %273, ptr %274, align 4, !tbaa !13
  br label %275

275:                                              ; preds = %272, %261
  %276 = load i32, ptr %12, align 4, !tbaa !13
  store i32 %276, ptr %6, align 4
  store i32 1, ptr %19, align 4
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %27) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %27) #5
  br label %278

277:                                              ; preds = %218
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 2172, ptr noundef @__PRETTY_FUNCTION__._ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb) #6
  unreachable

278:                                              ; preds = %275, %217, %179, %169, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %279 = load i32, ptr %6, align 4
  ret i32 %279

280:                                              ; preds = %240, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %281

281:                                              ; preds = %280
  %282 = load ptr, ptr %16, align 8
  %283 = load i32, ptr %17, align 4
  %284 = insertvalue { ptr, i32 } poison, ptr %282, 0
  %285 = insertvalue { ptr, i32 } %284, i32 %283, 1
  resume { ptr, i32 } %285
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSN7glslang8TTypeLocE", !6, i64 0, !23, i64 8}
!23 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !14, i64 8, !14, i64 12, !14, i64 16}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"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::TType" = type { ptr, i32, [4 x i8], %"class.glslang::TQualifier", ptr, %union.anon.84, 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.84 = type { ptr }
%"struct.glslang::TSampler" = type { i32 }

@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [114 x i8], align 1
@_ZN7glslangL23baseAlignmentVec4Std140E = external hidden constant i32, align 4
@__PRETTY_FUNCTION__._ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb = external hidden unnamed_addr constant [103 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #4 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 #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr nocapture noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.glslang::TType", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.glslang::TType", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %13 = icmp eq i32 %3, 2
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %14 = load ptr, ptr %0, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %14, i64 232
  %16 = load ptr, ptr %15, align 8
  %17 = tail call noundef zeroext i1 %16(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br i1 %17, label %18, label %54

18:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %8) #5
  call void @_ZN7glslang5TTypeC2ERKS0_ib(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef 0, i1 noundef zeroext false)
  %19 = invoke noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %8, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %3, i1 noundef zeroext %4)
          to label %20 unwind label %24

20:                                               ; preds = %18
  store i32 %19, ptr %6, align 4, !tbaa !5
  br i1 %13, label %21, label %26

21:                                               ; preds = %20
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7glslangL23baseAlignmentVec4Std140E, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %23 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %23, ptr %6, align 4, !tbaa !5
  br label %26

24:                                               ; preds = %18
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %53

26:                                               ; preds = %21, %20
  %27 = phi i32 [ %23, %21 ], [ %19, %20 ]
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %27)
  %28 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %28, ptr %2, align 4, !tbaa !5
  %29 = load ptr, ptr %0, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %29, i64 248
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef zeroext i1 %31(ptr noundef nonnull align 8 dereferenceable(144) %0)
          to label %33 unwind label %51

33:                                               ; preds = %26
  br i1 %32, label %34, label %41

34:                                               ; preds = %33
  %35 = load ptr, ptr %0, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %35, i64 120
  %37 = load ptr, ptr %36, align 8
  %38 = invoke noundef i32 %37(ptr noundef nonnull align 8 dereferenceable(144) %0)
          to label %39 unwind label %51

39:                                               ; preds = %34
  %40 = icmp eq i32 %38, 0
  br i1 %40, label %46, label %41

41:                                               ; preds = %39, %33
  %42 = load ptr, ptr %0, align 8, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %42, i64 120
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef i32 %44(ptr noundef nonnull align 8 dereferenceable(144) %0)
          to label %46 unwind label %51

46:                                               ; preds = %41, %39
  %47 = phi i32 [ 1, %39 ], [ %45, %41 ]
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = mul nsw i32 %48, %47
  store i32 %49, ptr %1, align 4, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %8) #5
  br label %149

51:                                               ; preds = %41, %34, %26
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %53

53:                                               ; preds = %51, %24
  %.pn73 = phi { ptr, i32 } [ %52, %51 ], [ %25, %24 ]
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %8) #5
  br label %150

54:                                               ; preds = %5
  %55 = load ptr, ptr %0, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %55, i64 56
  %57 = load ptr, ptr %56, align 8
  %58 = tail call noundef i32 %57(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %59 = icmp eq i32 %58, 15
  br i1 %59, label %66, label %60

60:                                               ; preds = %54
  %61 = load ptr, ptr %0, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %61, i64 56
  %63 = load ptr, ptr %62, align 8
  %64 = tail call noundef i32 %63(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %65 = icmp eq i32 %64, 16
  br i1 %65, label %66, label %97

66:                                               ; preds = %60, %54
  %67 = tail call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %68 = select i1 %13, i32 16, i32 0
  store i32 %68, ptr %9, align 4, !tbaa !5
  %69 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #5
  %.not77 = icmp eq i64 %69, 0
  br i1 %.not77, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %66
  %70 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %68, %66 ]
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %70)
  %71 = load i32, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %149

.lr.ph:                                           ; preds = %66, %.lr.ph
  %.07076 = phi i64 [ %94, %.lr.ph ], [ 0, %66 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %72 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %.07076) #5
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 80
  %76 = load ptr, ptr %75, align 8
  %77 = call noundef nonnull align 8 dereferenceable(72) ptr %76(ptr noundef nonnull align 8 dereferenceable(144) %73)
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load i64, ptr %78, align 8
  %80 = lshr i64 %79, 59
  %81 = trunc nuw nsw i64 %80 to i32
  %82 = and i32 %81, 7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %83 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %.07076) #5
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %.not = icmp eq i32 %82, 0
  %85 = icmp eq i32 %82, 1
  %86 = select i1 %.not, i1 %4, i1 %85
  %87 = call noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %84, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %3, i1 noundef zeroext %86)
  store i32 %87, ptr %11, align 4, !tbaa !5
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %89 = load i32, ptr %88, align 4, !tbaa !5
  store i32 %89, ptr %9, align 4, !tbaa !5
  %90 = load i32, ptr %11, align 4, !tbaa !5
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %90)
  %91 = load i32, ptr %10, align 4, !tbaa !5
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = add nsw i32 %92, %91
  store i32 %93, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  %94 = add nuw i64 %.07076, 1
  %95 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #5
  %96 = icmp ult i64 %94, %95
  br i1 %96, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !15

97:                                               ; preds = %60
  %98 = load ptr, ptr %0, align 8, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %98, i64 192
  %100 = load ptr, ptr %99, align 8
  %101 = tail call noundef zeroext i1 %100(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br i1 %101, label %102, label %104

102:                                              ; preds = %97
  %103 = tail call noundef i32 @_ZN7glslang13TIntermediate22getBaseAlignmentScalarERKNS_5TTypeERi(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 4 dereferenceable(4) %1)
  br label %149

104:                                              ; preds = %97
  %105 = load ptr, ptr %0, align 8, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %105, i64 216
  %107 = load ptr, ptr %106, align 8
  %108 = tail call noundef zeroext i1 %107(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br i1 %108, label %109, label %127

109:                                              ; preds = %104
  %110 = tail call noundef i32 @_ZN7glslang13TIntermediate22getBaseAlignmentScalarERKNS_5TTypeERi(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %111 = load ptr, ptr %0, align 8, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %111, i64 96
  %113 = load ptr, ptr %112, align 8
  %114 = tail call noundef i32 %113(ptr noundef nonnull align 8 dereferenceable(144) %0)
  switch i32 %114, label %119 [
    i32 1, label %149
    i32 2, label %115
  ]

115:                                              ; preds = %109
  %116 = load i32, ptr %1, align 4, !tbaa !5
  %117 = shl nsw i32 %116, 1
  store i32 %117, ptr %1, align 4, !tbaa !5
  %118 = shl nsw i32 %110, 1
  br label %149

119:                                              ; preds = %109
  %120 = load ptr, ptr %0, align 8, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %120, i64 96
  %122 = load ptr, ptr %121, align 8
  %123 = tail call noundef i32 %122(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %124 = load i32, ptr %1, align 4, !tbaa !5
  %125 = mul nsw i32 %124, %123
  store i32 %125, ptr %1, align 4, !tbaa !5
  %126 = shl nsw i32 %110, 2
  br label %149

127:                                              ; preds = %104
  %128 = load ptr, ptr %0, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %128, i64 224
  %130 = load ptr, ptr %129, align 8
  %131 = tail call noundef zeroext i1 %130(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br i1 %131, label %132, label %148

132:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %12) #5
  call void @_ZN7glslang5TTypeC2ERKS0_ib(ptr noundef nonnull align 8 dereferenceable(144) %12, ptr noundef nonnull align 8 dereferenceable(144) %0, i32 noundef 0, i1 noundef zeroext %4)
  %133 = invoke noundef i32 @_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %12, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %3, i1 noundef zeroext %4)
          to label %134 unwind label %138

134:                                              ; preds = %132
  store i32 %133, ptr %6, align 4, !tbaa !5
  br i1 %13, label %135, label %.invoke

135:                                              ; preds = %134
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7glslangL23baseAlignmentVec4Std140E, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %137 = load i32, ptr %136, align 4, !tbaa !5
  store i32 %137, ptr %6, align 4, !tbaa !5
  br label %.invoke

138:                                              ; preds = %.invoke, %132
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #5
  br label %150

.invoke:                                          ; preds = %135, %134
  %140 = phi i32 [ %137, %135 ], [ %133, %134 ]
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %140)
  %141 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %141, ptr %2, align 4, !tbaa !5
  %142 = load ptr, ptr %0, align 8, !tbaa !9
  %. = select i1 %4, i64 112, i64 104
  %143 = getelementptr inbounds i8, ptr %142, i64 %.
  %144 = load ptr, ptr %143, align 8
  %145 = invoke noundef i32 %144(ptr noundef nonnull align 8 dereferenceable(144) %0)
          to label %146 unwind label %138

146:                                              ; preds = %.invoke
  %storemerge = mul nsw i32 %145, %141
  store i32 %storemerge, ptr %1, align 4, !tbaa !5
  %147 = load i32, ptr %6, align 4, !tbaa !5
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #5
  br label %149

148:                                              ; preds = %127
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef 2172, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb) #6
  unreachable

149:                                              ; preds = %115, %119, %109, %146, %102, %._crit_edge, %46
  %.1 = phi i32 [ %50, %46 ], [ %71, %._crit_edge ], [ %103, %102 ], [ %147, %146 ], [ %126, %119 ], [ %118, %115 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  ret i32 %.1

150:                                              ; preds = %138, %53
  %.pn73.pn = phi { ptr, i32 } [ %.pn73, %53 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn73.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"int", !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, !13, i64 0}
!12 = !{!"_ZTSN7glslang8TTypeLocE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN7glslang10TSourceLocE", !13, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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