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

; 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::TSampler" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider" = type { %"class.glslang::pool_allocator", ptr }
%"class.glslang::pool_allocator" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.glslang::TBuiltIns" = type { %"class.glslang::TBuiltInParseables", [5 x ptr], [22 x ptr], [8 x i32] }
%"class.glslang::TBuiltInParseables" = type { ptr, %"class.std::__cxx11::basic_string", [14 x %"class.std::__cxx11::basic_string"] }

@.str.121 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.397 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [112 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile = external hidden unnamed_addr constant [88 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.402 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.411 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.412 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.413 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.414 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.415 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.416 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.417 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.418 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.419 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.420 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.421 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.422 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.423 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.424 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.425 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.426 = external hidden unnamed_addr constant [6 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 uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %1, ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3, i32 noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.glslang::TSampler", align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = getelementptr inbounds %"struct.glslang::TSampler", ptr %6, i32 0, i32 0
  store i32 %1, ptr %28, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  %29 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %858, %5
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = icmp sle i32 %31, 1
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %861

34:                                               ; preds = %30
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %54

37:                                               ; preds = %34
  %38 = load i32, ptr %6, align 4
  %39 = lshr i32 %38, 8
  %40 = and i32 %39, 255
  %41 = icmp eq i32 %40, 4
  br i1 %41, label %53, label %42

42:                                               ; preds = %37
  %43 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %43, label %53, label %44

44:                                               ; preds = %42
  %45 = load i32, ptr %6, align 4
  %46 = lshr i32 %45, 16
  %47 = and i32 %46, 1
  %48 = trunc i32 %47 to i1
  br i1 %48, label %53, label %49

49:                                               ; preds = %44
  %50 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %50, label %53, label %51

51:                                               ; preds = %49
  %52 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %52, label %54, label %53

53:                                               ; preds = %51, %49, %44, %42, %37
  br label %858

54:                                               ; preds = %51, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %854, %54
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = icmp sle i32 %56, 1
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %857

59:                                               ; preds = %55
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %71

62:                                               ; preds = %59
  %63 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %63, label %70, label %64

64:                                               ; preds = %62
  %65 = call noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %65, label %70, label %66

66:                                               ; preds = %64
  %67 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %67, label %70, label %68

68:                                               ; preds = %66
  %69 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %69, label %71, label %70

70:                                               ; preds = %68, %66, %64, %62
  br label %854

71:                                               ; preds = %68, %59
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %90

74:                                               ; preds = %71
  %75 = load i32, ptr %6, align 4
  %76 = lshr i32 %75, 8
  %77 = and i32 %76, 255
  %78 = icmp eq i32 %77, 2
  br i1 %78, label %79, label %90

79:                                               ; preds = %74
  %80 = load i32, ptr %6, align 4
  %81 = lshr i32 %80, 16
  %82 = and i32 %81, 1
  %83 = trunc i32 %82 to i1
  br i1 %83, label %84, label %90

84:                                               ; preds = %79
  %85 = load i32, ptr %6, align 4
  %86 = lshr i32 %85, 17
  %87 = and i32 %86, 1
  %88 = trunc i32 %87 to i1
  br i1 %88, label %89, label %90

89:                                               ; preds = %84
  br label %854

90:                                               ; preds = %84, %79, %74, %71
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %104

93:                                               ; preds = %90
  %94 = load i32, ptr %6, align 4
  %95 = lshr i32 %94, 8
  %96 = and i32 %95, 255
  %97 = icmp eq i32 %96, 4
  br i1 %97, label %98, label %104

98:                                               ; preds = %93
  %99 = load i32, ptr %6, align 4
  %100 = lshr i32 %99, 17
  %101 = and i32 %100, 1
  %102 = trunc i32 %101 to i1
  br i1 %102, label %103, label %104

103:                                              ; preds = %98
  br label %854

104:                                              ; preds = %98, %93, %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %850, %104
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp sle i32 %106, 1
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %853

109:                                              ; preds = %105
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %120

112:                                              ; preds = %109
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %119, label %115

115:                                              ; preds = %112
  %116 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %116, label %119, label %117

117:                                              ; preds = %115
  %118 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %118, label %120, label %119

119:                                              ; preds = %117, %115, %112
  br label %850

120:                                              ; preds = %117, %109
  %121 = load i32, ptr %14, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %144

123:                                              ; preds = %120
  %124 = load i32, ptr %6, align 4
  %125 = lshr i32 %124, 8
  %126 = and i32 %125, 255
  %127 = icmp eq i32 %126, 2
  br i1 %127, label %133, label %128

128:                                              ; preds = %123
  %129 = load i32, ptr %6, align 4
  %130 = lshr i32 %129, 8
  %131 = and i32 %130, 255
  %132 = icmp eq i32 %131, 4
  br i1 %132, label %133, label %144

133:                                              ; preds = %128, %123
  %134 = load i32, ptr %6, align 4
  %135 = lshr i32 %134, 17
  %136 = and i32 %135, 1
  %137 = trunc i32 %136 to i1
  br i1 %137, label %138, label %144

138:                                              ; preds = %133
  %139 = load i32, ptr %6, align 4
  %140 = lshr i32 %139, 16
  %141 = and i32 %140, 1
  %142 = trunc i32 %141 to i1
  br i1 %142, label %143, label %144

143:                                              ; preds = %138
  br label %850

144:                                              ; preds = %138, %133, %128, %120
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %152

147:                                              ; preds = %144
  %148 = call noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %148, label %151, label %149

149:                                              ; preds = %147
  %150 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %150, label %151, label %152

151:                                              ; preds = %149, %147
  br label %850

152:                                              ; preds = %149, %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %846, %152
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = icmp sle i32 %154, 1
  br i1 %155, label %157, label %156

156:                                              ; preds = %153
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %849

157:                                              ; preds = %153
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = add nsw i32 %158, %159
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = add nsw i32 %160, %161
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = add nsw i32 %162, %163
  %165 = icmp sgt i32 %164, 3
  br i1 %165, label %166, label %167

166:                                              ; preds = %157
  br label %846

167:                                              ; preds = %157
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %180

170:                                              ; preds = %167
  %171 = load i32, ptr %6, align 4
  %172 = lshr i32 %171, 8
  %173 = and i32 %172, 255
  %174 = icmp eq i32 %173, 4
  br i1 %174, label %179, label %175

175:                                              ; preds = %170
  %176 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %176, label %179, label %177

177:                                              ; preds = %175
  %178 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %178, label %179, label %180

179:                                              ; preds = %177, %175, %170
  br label %846

180:                                              ; preds = %177, %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %842, %180
  %182 = load i32, ptr %16, align 4, !tbaa !9
  %183 = icmp sle i32 %182, 1
  br i1 %183, label %185, label %184

184:                                              ; preds = %181
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %845

185:                                              ; preds = %181
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = add nsw i32 %186, %187
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = add nsw i32 %188, %189
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = add nsw i32 %190, %191
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = add nsw i32 %192, %193
  %195 = icmp sgt i32 %194, 3
  br i1 %195, label %196, label %197

196:                                              ; preds = %185
  br label %842

197:                                              ; preds = %185
  %198 = load i32, ptr %16, align 4, !tbaa !9
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %207

200:                                              ; preds = %197
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %206, label %203

203:                                              ; preds = %200
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %207

206:                                              ; preds = %203, %200
  br label %842

207:                                              ; preds = %203, %197
  %208 = load i32, ptr %16, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %221

210:                                              ; preds = %207
  %211 = load i32, ptr %6, align 4
  %212 = lshr i32 %211, 17
  %213 = and i32 %212, 1
  %214 = trunc i32 %213 to i1
  br i1 %214, label %220, label %215

215:                                              ; preds = %210
  %216 = load i32, ptr %6, align 4
  %217 = lshr i32 %216, 8
  %218 = and i32 %217, 255
  %219 = icmp eq i32 %218, 4
  br i1 %219, label %220, label %221

220:                                              ; preds = %215, %210
  br label %842

221:                                              ; preds = %215, %207
  %222 = load i32, ptr %16, align 4, !tbaa !9
  %223 = icmp eq i32 %222, 0
  br i1 %223, label %224, label %231

224:                                              ; preds = %221
  %225 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %225, label %230, label %226

226:                                              ; preds = %224
  %227 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %227, label %230, label %228

228:                                              ; preds = %226
  %229 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %229, label %231, label %230

230:                                              ; preds = %228, %226, %224
  br label %842

231:                                              ; preds = %228, %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %838, %231
  %233 = load i32, ptr %17, align 4, !tbaa !9
  %234 = icmp sle i32 %233, 1
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %841

236:                                              ; preds = %232
  %237 = load i32, ptr %17, align 4, !tbaa !9
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %250

239:                                              ; preds = %236
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %249, label %242

242:                                              ; preds = %239
  %243 = load i32, ptr %14, align 4, !tbaa !9
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %249, label %245

245:                                              ; preds = %242
  %246 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %246, label %249, label %247

247:                                              ; preds = %245
  %248 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %248, label %250, label %249

249:                                              ; preds = %247, %245, %242, %239
  br label %838

250:                                              ; preds = %247, %236
  %251 = load i32, ptr %17, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %256

253:                                              ; preds = %250
  %254 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %254, label %255, label %256

255:                                              ; preds = %253
  br label %838

256:                                              ; preds = %253, %250
  %257 = load i32, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %15, align 4, !tbaa !9
  %259 = add nsw i32 %257, %258
  %260 = load i32, ptr %16, align 4, !tbaa !9
  %261 = add nsw i32 %259, %260
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = add nsw i32 %261, %262
  %264 = load i32, ptr %14, align 4, !tbaa !9
  %265 = add nsw i32 %263, %264
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = add nsw i32 %265, %266
  %268 = icmp sgt i32 %267, 3
  br i1 %268, label %269, label %270

269:                                              ; preds = %256
  br label %838

270:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %834, %270
  %272 = load i32, ptr %18, align 4, !tbaa !9
  %273 = icmp sle i32 %272, 1
  br i1 %273, label %275, label %274

274:                                              ; preds = %271
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %837

275:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  store i8 0, ptr %19, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %276 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 3
  %277 = load i32, ptr %6, align 4
  %278 = lshr i32 %277, 8
  %279 = and i32 %278, 255
  %280 = zext i32 %279 to i64
  %281 = getelementptr inbounds [8 x i32], ptr %276, i64 0, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !9
  %283 = load i32, ptr %6, align 4
  %284 = lshr i32 %283, 16
  %285 = and i32 %284, 1
  %286 = trunc i32 %285 to i1
  %287 = zext i1 %286 to i64
  %288 = select i1 %286, i32 1, i32 0
  %289 = add nsw i32 %282, %288
  store i32 %289, ptr %20, align 4, !tbaa !9
  %290 = load i32, ptr %6, align 4
  %291 = lshr i32 %290, 17
  %292 = and i32 %291, 1
  %293 = trunc i32 %292 to i1
  br i1 %293, label %294, label %298

294:                                              ; preds = %275
  %295 = load i32, ptr %20, align 4, !tbaa !9
  %296 = icmp slt i32 %295, 2
  br i1 %296, label %297, label %298

297:                                              ; preds = %294
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %297, %294, %275
  %299 = load i32, ptr %6, align 4
  %300 = lshr i32 %299, 17
  %301 = and i32 %300, 1
  %302 = trunc i32 %301 to i1
  %303 = zext i1 %302 to i64
  %304 = select i1 %302, i32 1, i32 0
  %305 = load i32, ptr %11, align 4, !tbaa !9
  %306 = add nsw i32 %304, %305
  %307 = load i32, ptr %20, align 4, !tbaa !9
  %308 = add nsw i32 %307, %306
  store i32 %308, ptr %20, align 4, !tbaa !9
  %309 = load i32, ptr %20, align 4, !tbaa !9
  %310 = icmp sgt i32 %309, 4
  br i1 %310, label %311, label %317

311:                                              ; preds = %298
  %312 = load i32, ptr %6, align 4
  %313 = lshr i32 %312, 17
  %314 = and i32 %313, 1
  %315 = trunc i32 %314 to i1
  br i1 %315, label %316, label %317

316:                                              ; preds = %311
  store i8 1, ptr %19, align 1, !tbaa !13
  store i32 4, ptr %20, align 4, !tbaa !9
  br label %317

317:                                              ; preds = %316, %311, %298
  %318 = load i32, ptr %20, align 4, !tbaa !9
  %319 = icmp sle i32 %318, 4
  br i1 %319, label %320, label %321

320:                                              ; preds = %317
  br label %323

321:                                              ; preds = %317
  call void @__assert_fail(ptr noundef @.str.398, ptr noundef @.str.399, i32 noundef 6611, ptr noundef @__PRETTY_FUNCTION__._ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile) #5
  unreachable

322:                                              ; No predecessors!
  br label %323

323:                                              ; preds = %322, %320
  %324 = load i32, ptr %18, align 4, !tbaa !9
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %326, label %330

326:                                              ; preds = %323
  %327 = load i32, ptr %11, align 4, !tbaa !9
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %330, label %329

329:                                              ; preds = %326
  store i32 22, ptr %12, align 4
  br label %831

330:                                              ; preds = %326, %323
  %331 = load i32, ptr %18, align 4, !tbaa !9
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %346

333:                                              ; preds = %330
  %334 = load i32, ptr %6, align 4
  %335 = lshr i32 %334, 8
  %336 = and i32 %335, 255
  %337 = icmp eq i32 %336, 3
  br i1 %337, label %345, label %338

338:                                              ; preds = %333
  %339 = load i32, ptr %6, align 4
  %340 = lshr i32 %339, 17
  %341 = and i32 %340, 1
  %342 = trunc i32 %341 to i1
  br i1 %342, label %345, label %343

343:                                              ; preds = %338
  %344 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %344, label %346, label %345

345:                                              ; preds = %343, %338, %333
  store i32 22, ptr %12, align 4
  br label %831

346:                                              ; preds = %343, %330
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %347

347:                                              ; preds = %827, %346
  %348 = load i32, ptr %21, align 4, !tbaa !9
  %349 = icmp sle i32 %348, 1
  br i1 %349, label %351, label %350

350:                                              ; preds = %347
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %830

351:                                              ; preds = %347
  %352 = load i32, ptr %21, align 4, !tbaa !9
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %359

354:                                              ; preds = %351
  %355 = load i32, ptr %6, align 4
  %356 = and i32 %355, 255
  %357 = icmp ne i32 %356, 3
  br i1 %357, label %358, label %359

358:                                              ; preds = %354
  br label %827

359:                                              ; preds = %354, %351
  %360 = load i32, ptr %21, align 4, !tbaa !9
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %373

362:                                              ; preds = %359
  %363 = load i32, ptr %6, align 4
  %364 = lshr i32 %363, 17
  %365 = and i32 %364, 1
  %366 = trunc i32 %365 to i1
  br i1 %366, label %367, label %373

367:                                              ; preds = %362
  %368 = load i8, ptr %19, align 1, !tbaa !13, !range !15, !noundef !16
  %369 = trunc i8 %368 to i1
  br i1 %369, label %373, label %370

370:                                              ; preds = %367
  store i8 1, ptr %19, align 1, !tbaa !13
  %371 = load i32, ptr %20, align 4, !tbaa !9
  %372 = add nsw i32 %371, -1
  store i32 %372, ptr %20, align 4, !tbaa !9
  br label %373

373:                                              ; preds = %370, %367, %362, %359
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %823, %373
  %375 = load i32, ptr %22, align 4, !tbaa !9
  %376 = icmp sle i32 %375, 1
  br i1 %376, label %378, label %377

377:                                              ; preds = %374
  store i32 26, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %826

378:                                              ; preds = %374
  %379 = load i32, ptr %22, align 4, !tbaa !9
  %380 = icmp ne i32 %379, 0
  br i1 %380, label %381, label %388

381:                                              ; preds = %378
  %382 = load i32, ptr %10, align 4, !tbaa !11
  %383 = icmp eq i32 %382, 8
  br i1 %383, label %387, label %384

384:                                              ; preds = %381
  %385 = load i32, ptr %9, align 4, !tbaa !9
  %386 = icmp slt i32 %385, 450
  br i1 %386, label %387, label %388

387:                                              ; preds = %384, %381
  br label %823

388:                                              ; preds = %384, %378
  %389 = load i32, ptr %22, align 4, !tbaa !9
  %390 = icmp ne i32 %389, 0
  br i1 %390, label %391, label %401

391:                                              ; preds = %388
  %392 = load i32, ptr %11, align 4, !tbaa !9
  %393 = icmp ne i32 %392, 0
  br i1 %393, label %400, label %394

394:                                              ; preds = %391
  %395 = load i32, ptr %13, align 4, !tbaa !9
  %396 = icmp ne i32 %395, 0
  br i1 %396, label %400, label %397

397:                                              ; preds = %394
  %398 = load i32, ptr %16, align 4, !tbaa !9
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %401

400:                                              ; preds = %397, %394, %391
  br label %823

401:                                              ; preds = %397, %388
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %402

402:                                              ; preds = %818, %401
  %403 = load i32, ptr %23, align 4, !tbaa !9
  %404 = icmp sle i32 %403, 1
  br i1 %404, label %406, label %405

405:                                              ; preds = %402
  store i32 29, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %822

406:                                              ; preds = %402
  %407 = load i32, ptr %23, align 4, !tbaa !9
  %408 = icmp ne i32 %407, 0
  br i1 %408, label %409, label %416

409:                                              ; preds = %406
  %410 = load i32, ptr %10, align 4, !tbaa !11
  %411 = icmp eq i32 %410, 8
  br i1 %411, label %415, label %412

412:                                              ; preds = %409
  %413 = load i32, ptr %9, align 4, !tbaa !9
  %414 = icmp slt i32 %413, 450
  br i1 %414, label %415, label %416

415:                                              ; preds = %412, %409
  br label %818

416:                                              ; preds = %412, %406
  %417 = load i32, ptr %23, align 4, !tbaa !9
  %418 = icmp ne i32 %417, 0
  br i1 %418, label %419, label %427

419:                                              ; preds = %416
  %420 = call noundef zeroext i1 @_ZNK7glslang8TSampler4is1DEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %420, label %426, label %421

421:                                              ; preds = %419
  %422 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %422, label %426, label %423

423:                                              ; preds = %421
  %424 = load i32, ptr %11, align 4, !tbaa !9
  %425 = icmp ne i32 %424, 0
  br i1 %425, label %426, label %427

426:                                              ; preds = %423, %421, %419
  br label %818

427:                                              ; preds = %423, %416
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24)
  %428 = load i32, ptr %23, align 4, !tbaa !9
  %429 = icmp ne i32 %428, 0
  br i1 %429, label %430, label %437

430:                                              ; preds = %427
  %431 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.351)
          to label %432 unwind label %433

432:                                              ; preds = %430
  br label %465

433:                                              ; preds = %813, %808, %804, %793, %789, %786, %776, %768, %764, %761, %750, %743, %740, %719, %717, %714, %687, %684, %681, %665, %662, %659, %652, %649, %630, %627, %618, %612, %609, %606, %603, %597, %551, %547, %544, %535, %533, %530, %521, %515, %509, %503, %497, %491, %484, %481, %474, %471, %461, %453, %449, %446, %430
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %25, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %26, align 4
  br label %821

437:                                              ; preds = %427
  %438 = load i32, ptr %6, align 4
  %439 = lshr i32 %438, 17
  %440 = and i32 %439, 1
  %441 = trunc i32 %440 to i1
  br i1 %441, label %442, label %453

442:                                              ; preds = %437
  %443 = load i32, ptr %6, align 4
  %444 = and i32 %443, 255
  %445 = icmp eq i32 %444, 3
  br i1 %445, label %446, label %449

446:                                              ; preds = %442
  %447 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.400)
          to label %448 unwind label %433

448:                                              ; preds = %446
  br label %452

449:                                              ; preds = %442
  %450 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.401)
          to label %451 unwind label %433

451:                                              ; preds = %449
  br label %452

452:                                              ; preds = %451, %448
  br label %464

453:                                              ; preds = %437
  %454 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 2
  %455 = load i32, ptr %6, align 4
  %456 = and i32 %455, 255
  %457 = zext i32 %456 to i64
  %458 = getelementptr inbounds [22 x ptr], ptr %454, i64 0, i64 %457
  %459 = load ptr, ptr %458, align 8, !tbaa !5
  %460 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %459)
          to label %461 unwind label %433

461:                                              ; preds = %453
  %462 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.402)
          to label %463 unwind label %433

463:                                              ; preds = %461
  br label %464

464:                                              ; preds = %463, %452
  br label %465

465:                                              ; preds = %464, %432
  %466 = load i32, ptr %23, align 4, !tbaa !9
  %467 = icmp ne i32 %466, 0
  br i1 %467, label %468, label %478

468:                                              ; preds = %465
  %469 = load i32, ptr %16, align 4, !tbaa !9
  %470 = icmp ne i32 %469, 0
  br i1 %470, label %471, label %474

471:                                              ; preds = %468
  %472 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.403)
          to label %473 unwind label %433

473:                                              ; preds = %471
  br label %477

474:                                              ; preds = %468
  %475 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.404)
          to label %476 unwind label %433

476:                                              ; preds = %474
  br label %477

477:                                              ; preds = %476, %473
  br label %488

478:                                              ; preds = %465
  %479 = load i32, ptr %16, align 4, !tbaa !9
  %480 = icmp ne i32 %479, 0
  br i1 %480, label %481, label %484

481:                                              ; preds = %478
  %482 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.405)
          to label %483 unwind label %433

483:                                              ; preds = %481
  br label %487

484:                                              ; preds = %478
  %485 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.406)
          to label %486 unwind label %433

486:                                              ; preds = %484
  br label %487

487:                                              ; preds = %486, %483
  br label %488

488:                                              ; preds = %487, %477
  %489 = load i32, ptr %11, align 4, !tbaa !9
  %490 = icmp ne i32 %489, 0
  br i1 %490, label %491, label %494

491:                                              ; preds = %488
  %492 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.407)
          to label %493 unwind label %433

493:                                              ; preds = %491
  br label %494

494:                                              ; preds = %493, %488
  %495 = load i32, ptr %13, align 4, !tbaa !9
  %496 = icmp ne i32 %495, 0
  br i1 %496, label %497, label %500

497:                                              ; preds = %494
  %498 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.408)
          to label %499 unwind label %433

499:                                              ; preds = %497
  br label %500

500:                                              ; preds = %499, %494
  %501 = load i32, ptr %17, align 4, !tbaa !9
  %502 = icmp ne i32 %501, 0
  br i1 %502, label %503, label %506

503:                                              ; preds = %500
  %504 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.409)
          to label %505 unwind label %433

505:                                              ; preds = %503
  br label %506

506:                                              ; preds = %505, %500
  %507 = load i32, ptr %16, align 4, !tbaa !9
  %508 = icmp ne i32 %507, 0
  br i1 %508, label %509, label %512

509:                                              ; preds = %506
  %510 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.410)
          to label %511 unwind label %433

511:                                              ; preds = %509
  br label %512

512:                                              ; preds = %511, %506
  %513 = load i32, ptr %15, align 4, !tbaa !9
  %514 = icmp ne i32 %513, 0
  br i1 %514, label %515, label %518

515:                                              ; preds = %512
  %516 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.411)
          to label %517 unwind label %433

517:                                              ; preds = %515
  br label %518

518:                                              ; preds = %517, %512
  %519 = load i32, ptr %22, align 4, !tbaa !9
  %520 = icmp ne i32 %519, 0
  br i1 %520, label %521, label %524

521:                                              ; preds = %518
  %522 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.412)
          to label %523 unwind label %433

523:                                              ; preds = %521
  br label %524

524:                                              ; preds = %523, %518
  %525 = load i32, ptr %22, align 4, !tbaa !9
  %526 = icmp ne i32 %525, 0
  br i1 %526, label %530, label %527

527:                                              ; preds = %524
  %528 = load i32, ptr %23, align 4, !tbaa !9
  %529 = icmp ne i32 %528, 0
  br i1 %529, label %530, label %533

530:                                              ; preds = %527, %524
  %531 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.413)
          to label %532 unwind label %433

532:                                              ; preds = %530
  br label %533

533:                                              ; preds = %532, %527
  %534 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.397)
          to label %535 unwind label %433

535:                                              ; preds = %533
  %536 = load ptr, ptr %8, align 8, !tbaa !5
  %537 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 8 dereferenceable(40) %536)
          to label %538 unwind label %433

538:                                              ; preds = %535
  %539 = load i32, ptr %18, align 4, !tbaa !9
  %540 = icmp ne i32 %539, 0
  br i1 %540, label %541, label %551

541:                                              ; preds = %538
  %542 = load i32, ptr %21, align 4, !tbaa !9
  %543 = icmp ne i32 %542, 0
  br i1 %543, label %544, label %547

544:                                              ; preds = %541
  %545 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.414)
          to label %546 unwind label %433

546:                                              ; preds = %544
  br label %550

547:                                              ; preds = %541
  %548 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.415)
          to label %549 unwind label %433

549:                                              ; preds = %547
  br label %550

550:                                              ; preds = %549, %546
  br label %594

551:                                              ; preds = %538
  %552 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.416)
          to label %553 unwind label %433

553:                                              ; preds = %551
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %554 = load i32, ptr %16, align 4, !tbaa !9
  %555 = icmp ne i32 %554, 0
  br i1 %555, label %556, label %557

556:                                              ; preds = %553
  br label %562

557:                                              ; preds = %553
  %558 = load i32, ptr %21, align 4, !tbaa !9
  %559 = icmp ne i32 %558, 0
  %560 = zext i1 %559 to i64
  %561 = select i1 %559, i32 3, i32 1
  br label %562

562:                                              ; preds = %557, %556
  %563 = phi i32 [ 8, %556 ], [ %561, %557 ]
  store i32 %563, ptr %27, align 4, !tbaa !17
  %564 = load i32, ptr %20, align 4, !tbaa !9
  %565 = icmp eq i32 %564, 1
  br i1 %565, label %566, label %576

566:                                              ; preds = %562
  %567 = load i32, ptr %27, align 4, !tbaa !17
  %568 = invoke noundef ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef %567)
          to label %569 unwind label %572

569:                                              ; preds = %566
  %570 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %568)
          to label %571 unwind label %572

571:                                              ; preds = %569
  br label %593

572:                                              ; preds = %585, %583, %576, %569, %566
  %573 = landingpad { ptr, i32 }
          cleanup
  %574 = extractvalue { ptr, i32 } %573, 0
  store ptr %574, ptr %25, align 8
  %575 = extractvalue { ptr, i32 } %573, 1
  store i32 %575, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %821

576:                                              ; preds = %562
  %577 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 2
  %578 = load i32, ptr %27, align 4, !tbaa !17
  %579 = zext i32 %578 to i64
  %580 = getelementptr inbounds [22 x ptr], ptr %577, i64 0, i64 %579
  %581 = load ptr, ptr %580, align 8, !tbaa !5
  %582 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %581)
          to label %583 unwind label %572

583:                                              ; preds = %576
  %584 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.417)
          to label %585 unwind label %572

585:                                              ; preds = %583
  %586 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 1
  %587 = load i32, ptr %20, align 4, !tbaa !9
  %588 = sext i32 %587 to i64
  %589 = getelementptr inbounds [5 x ptr], ptr %586, i64 0, i64 %588
  %590 = load ptr, ptr %589, align 8, !tbaa !5
  %591 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %590)
          to label %592 unwind label %572

592:                                              ; preds = %585
  br label %593

593:                                              ; preds = %592, %571
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %594

594:                                              ; preds = %593, %550
  %595 = load i8, ptr %19, align 1, !tbaa !13, !range !15, !noundef !16
  %596 = trunc i8 %595 to i1
  br i1 %596, label %597, label %600

597:                                              ; preds = %594
  %598 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.418)
          to label %599 unwind label %433

599:                                              ; preds = %597
  br label %600

600:                                              ; preds = %599, %594
  %601 = load i32, ptr %16, align 4, !tbaa !9
  %602 = icmp ne i32 %601, 0
  br i1 %602, label %603, label %612

603:                                              ; preds = %600
  %604 = invoke noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %605 unwind label %433

605:                                              ; preds = %603
  br i1 %604, label %612, label %606

606:                                              ; preds = %605
  %607 = invoke noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %608 unwind label %433

608:                                              ; preds = %606
  br i1 %607, label %612, label %609

609:                                              ; preds = %608
  %610 = invoke noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %611 unwind label %433

611:                                              ; preds = %609
  br i1 %610, label %612, label %618

612:                                              ; preds = %611, %608, %605, %600
  %613 = invoke noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %614 unwind label %433

614:                                              ; preds = %612
  br i1 %613, label %615, label %621

615:                                              ; preds = %614
  %616 = load i32, ptr %16, align 4, !tbaa !9
  %617 = icmp ne i32 %616, 0
  br i1 %617, label %618, label %621

618:                                              ; preds = %615, %611
  %619 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.419)
          to label %620 unwind label %433

620:                                              ; preds = %618
  br label %621

621:                                              ; preds = %620, %615, %614
  %622 = load i32, ptr %13, align 4, !tbaa !9
  %623 = icmp ne i32 %622, 0
  br i1 %623, label %624, label %634

624:                                              ; preds = %621
  %625 = load i32, ptr %21, align 4, !tbaa !9
  %626 = icmp ne i32 %625, 0
  br i1 %626, label %627, label %630

627:                                              ; preds = %624
  %628 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.420)
          to label %629 unwind label %433

629:                                              ; preds = %627
  br label %633

630:                                              ; preds = %624
  %631 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.418)
          to label %632 unwind label %433

632:                                              ; preds = %630
  br label %633

633:                                              ; preds = %632, %629
  br label %634

634:                                              ; preds = %633, %621
  %635 = load i32, ptr %17, align 4, !tbaa !9
  %636 = icmp ne i32 %635, 0
  br i1 %636, label %637, label %702

637:                                              ; preds = %634
  %638 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 3
  %639 = load i32, ptr %6, align 4
  %640 = lshr i32 %639, 8
  %641 = and i32 %640, 255
  %642 = zext i32 %641 to i64
  %643 = getelementptr inbounds [8 x i32], ptr %638, i64 0, i64 %642
  %644 = load i32, ptr %643, align 4, !tbaa !9
  %645 = icmp eq i32 %644, 1
  br i1 %645, label %646, label %656

646:                                              ; preds = %637
  %647 = load i32, ptr %21, align 4, !tbaa !9
  %648 = icmp ne i32 %647, 0
  br i1 %648, label %649, label %652

649:                                              ; preds = %646
  %650 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.421)
          to label %651 unwind label %433

651:                                              ; preds = %649
  br label %655

652:                                              ; preds = %646
  %653 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.422)
          to label %654 unwind label %433

654:                                              ; preds = %652
  br label %655

655:                                              ; preds = %654, %651
  br label %701

656:                                              ; preds = %637
  %657 = load i32, ptr %21, align 4, !tbaa !9
  %658 = icmp ne i32 %657, 0
  br i1 %658, label %659, label %662

659:                                              ; preds = %656
  %660 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.423)
          to label %661 unwind label %433

661:                                              ; preds = %659
  br label %665

662:                                              ; preds = %656
  %663 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.424)
          to label %664 unwind label %433

664:                                              ; preds = %662
  br label %665

665:                                              ; preds = %664, %661
  %666 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 1
  %667 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 3
  %668 = load i32, ptr %6, align 4
  %669 = lshr i32 %668, 8
  %670 = and i32 %669, 255
  %671 = zext i32 %670 to i64
  %672 = getelementptr inbounds [8 x i32], ptr %667, i64 0, i64 %671
  %673 = load i32, ptr %672, align 4, !tbaa !9
  %674 = sext i32 %673 to i64
  %675 = getelementptr inbounds [5 x ptr], ptr %666, i64 0, i64 %674
  %676 = load ptr, ptr %675, align 8, !tbaa !5
  %677 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %676)
          to label %678 unwind label %433

678:                                              ; preds = %665
  %679 = load i32, ptr %21, align 4, !tbaa !9
  %680 = icmp ne i32 %679, 0
  br i1 %680, label %681, label %684

681:                                              ; preds = %678
  %682 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.423)
          to label %683 unwind label %433

683:                                              ; preds = %681
  br label %687

684:                                              ; preds = %678
  %685 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.424)
          to label %686 unwind label %433

686:                                              ; preds = %684
  br label %687

687:                                              ; preds = %686, %683
  %688 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 1
  %689 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 3
  %690 = load i32, ptr %6, align 4
  %691 = lshr i32 %690, 8
  %692 = and i32 %691, 255
  %693 = zext i32 %692 to i64
  %694 = getelementptr inbounds [8 x i32], ptr %689, i64 0, i64 %693
  %695 = load i32, ptr %694, align 4, !tbaa !9
  %696 = sext i32 %695 to i64
  %697 = getelementptr inbounds [5 x ptr], ptr %688, i64 0, i64 %696
  %698 = load ptr, ptr %697, align 8, !tbaa !5
  %699 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %698)
          to label %700 unwind label %433

700:                                              ; preds = %687
  br label %701

701:                                              ; preds = %700, %655
  br label %702

702:                                              ; preds = %701, %634
  %703 = load i32, ptr %15, align 4, !tbaa !9
  %704 = icmp ne i32 %703, 0
  br i1 %704, label %705, label %734

705:                                              ; preds = %702
  %706 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 3
  %707 = load i32, ptr %6, align 4
  %708 = lshr i32 %707, 8
  %709 = and i32 %708, 255
  %710 = zext i32 %709 to i64
  %711 = getelementptr inbounds [8 x i32], ptr %706, i64 0, i64 %710
  %712 = load i32, ptr %711, align 4, !tbaa !9
  %713 = icmp eq i32 %712, 1
  br i1 %713, label %714, label %717

714:                                              ; preds = %705
  %715 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.419)
          to label %716 unwind label %433

716:                                              ; preds = %714
  br label %733

717:                                              ; preds = %705
  %718 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.425)
          to label %719 unwind label %433

719:                                              ; preds = %717
  %720 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 1
  %721 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 3
  %722 = load i32, ptr %6, align 4
  %723 = lshr i32 %722, 8
  %724 = and i32 %723, 255
  %725 = zext i32 %724 to i64
  %726 = getelementptr inbounds [8 x i32], ptr %721, i64 0, i64 %725
  %727 = load i32, ptr %726, align 4, !tbaa !9
  %728 = sext i32 %727 to i64
  %729 = getelementptr inbounds [5 x ptr], ptr %720, i64 0, i64 %728
  %730 = load ptr, ptr %729, align 8, !tbaa !5
  %731 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %730)
          to label %732 unwind label %433

732:                                              ; preds = %719
  br label %733

733:                                              ; preds = %732, %716
  br label %734

734:                                              ; preds = %733, %702
  %735 = load i32, ptr %22, align 4, !tbaa !9
  %736 = icmp ne i32 %735, 0
  br i1 %736, label %737, label %747

737:                                              ; preds = %734
  %738 = load i32, ptr %21, align 4, !tbaa !9
  %739 = icmp ne i32 %738, 0
  br i1 %739, label %740, label %743

740:                                              ; preds = %737
  %741 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.420)
          to label %742 unwind label %433

742:                                              ; preds = %740
  br label %746

743:                                              ; preds = %737
  %744 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.418)
          to label %745 unwind label %433

745:                                              ; preds = %743
  br label %746

746:                                              ; preds = %745, %742
  br label %747

747:                                              ; preds = %746, %734
  %748 = load i32, ptr %23, align 4, !tbaa !9
  %749 = icmp ne i32 %748, 0
  br i1 %749, label %750, label %780

750:                                              ; preds = %747
  %751 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.426)
          to label %752 unwind label %433

752:                                              ; preds = %750
  %753 = load i32, ptr %6, align 4
  %754 = lshr i32 %753, 17
  %755 = and i32 %754, 1
  %756 = trunc i32 %755 to i1
  br i1 %756, label %757, label %768

757:                                              ; preds = %752
  %758 = load i32, ptr %6, align 4
  %759 = and i32 %758, 255
  %760 = icmp eq i32 %759, 3
  br i1 %760, label %761, label %764

761:                                              ; preds = %757
  %762 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.125)
          to label %763 unwind label %433

763:                                              ; preds = %761
  br label %767

764:                                              ; preds = %757
  %765 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.121)
          to label %766 unwind label %433

766:                                              ; preds = %764
  br label %767

767:                                              ; preds = %766, %763
  br label %779

768:                                              ; preds = %752
  %769 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %29, i32 0, i32 2
  %770 = load i32, ptr %6, align 4
  %771 = and i32 %770, 255
  %772 = zext i32 %771 to i64
  %773 = getelementptr inbounds [22 x ptr], ptr %769, i64 0, i64 %772
  %774 = load ptr, ptr %773, align 8, !tbaa !5
  %775 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %774)
          to label %776 unwind label %433

776:                                              ; preds = %768
  %777 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.124)
          to label %778 unwind label %433

778:                                              ; preds = %776
  br label %779

779:                                              ; preds = %778, %767
  br label %780

780:                                              ; preds = %779, %747
  %781 = load i32, ptr %14, align 4, !tbaa !9
  %782 = icmp ne i32 %781, 0
  br i1 %782, label %783, label %793

783:                                              ; preds = %780
  %784 = load i32, ptr %21, align 4, !tbaa !9
  %785 = icmp ne i32 %784, 0
  br i1 %785, label %786, label %789

786:                                              ; preds = %783
  %787 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.420)
          to label %788 unwind label %433

788:                                              ; preds = %786
  br label %792

789:                                              ; preds = %783
  %790 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.418)
          to label %791 unwind label %433

791:                                              ; preds = %789
  br label %792

792:                                              ; preds = %791, %788
  br label %793

793:                                              ; preds = %792, %780
  %794 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef @.str.350)
          to label %795 unwind label %433

795:                                              ; preds = %793
  %796 = load i32, ptr %17, align 4, !tbaa !9
  %797 = icmp ne i32 %796, 0
  br i1 %797, label %813, label %798

798:                                              ; preds = %795
  %799 = load i32, ptr %14, align 4, !tbaa !9
  %800 = icmp ne i32 %799, 0
  br i1 %800, label %804, label %801

801:                                              ; preds = %798
  %802 = load i32, ptr %22, align 4, !tbaa !9
  %803 = icmp ne i32 %802, 0
  br i1 %803, label %804, label %813

804:                                              ; preds = %801, %798
  %805 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %29, i32 0, i32 2
  %806 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %805, i64 0, i64 4
  %807 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %806, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %808 unwind label %433

808:                                              ; preds = %804
  %809 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %29, i32 0, i32 2
  %810 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %809, i64 0, i64 5
  %811 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %810, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %812 unwind label %433

812:                                              ; preds = %808
  br label %817

813:                                              ; preds = %801, %795
  %814 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %29, i32 0, i32 1
  %815 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %814, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %816 unwind label %433

816:                                              ; preds = %813
  br label %817

817:                                              ; preds = %816, %812
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  br label %818

818:                                              ; preds = %817, %426, %415
  %819 = load i32, ptr %23, align 4, !tbaa !9
  %820 = add nsw i32 %819, 1
  store i32 %820, ptr %23, align 4, !tbaa !9
  br label %402, !llvm.loop !19

821:                                              ; preds = %572, %433
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %862

822:                                              ; preds = %405
  br label %823

823:                                              ; preds = %822, %400, %387
  %824 = load i32, ptr %22, align 4, !tbaa !9
  %825 = add nsw i32 %824, 1
  store i32 %825, ptr %22, align 4, !tbaa !9
  br label %374, !llvm.loop !21

826:                                              ; preds = %377
  br label %827

827:                                              ; preds = %826, %358
  %828 = load i32, ptr %21, align 4, !tbaa !9
  %829 = add nsw i32 %828, 1
  store i32 %829, ptr %21, align 4, !tbaa !9
  br label %347, !llvm.loop !22

830:                                              ; preds = %350
  store i32 0, ptr %12, align 4
  br label %831

831:                                              ; preds = %830, %345, %329
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  %832 = load i32, ptr %12, align 4
  switch i32 %832, label %867 [
    i32 0, label %833
    i32 22, label %834
  ]

833:                                              ; preds = %831
  br label %834

834:                                              ; preds = %833, %831
  %835 = load i32, ptr %18, align 4, !tbaa !9
  %836 = add nsw i32 %835, 1
  store i32 %836, ptr %18, align 4, !tbaa !9
  br label %271, !llvm.loop !23

837:                                              ; preds = %274
  br label %838

838:                                              ; preds = %837, %269, %255, %249
  %839 = load i32, ptr %17, align 4, !tbaa !9
  %840 = add nsw i32 %839, 1
  store i32 %840, ptr %17, align 4, !tbaa !9
  br label %232, !llvm.loop !24

841:                                              ; preds = %235
  br label %842

842:                                              ; preds = %841, %230, %220, %206, %196
  %843 = load i32, ptr %16, align 4, !tbaa !9
  %844 = add nsw i32 %843, 1
  store i32 %844, ptr %16, align 4, !tbaa !9
  br label %181, !llvm.loop !25

845:                                              ; preds = %184
  br label %846

846:                                              ; preds = %845, %179, %166
  %847 = load i32, ptr %15, align 4, !tbaa !9
  %848 = add nsw i32 %847, 1
  store i32 %848, ptr %15, align 4, !tbaa !9
  br label %153, !llvm.loop !26

849:                                              ; preds = %156
  br label %850

850:                                              ; preds = %849, %151, %143, %119
  %851 = load i32, ptr %14, align 4, !tbaa !9
  %852 = add nsw i32 %851, 1
  store i32 %852, ptr %14, align 4, !tbaa !9
  br label %105, !llvm.loop !27

853:                                              ; preds = %108
  br label %854

854:                                              ; preds = %853, %103, %89, %70
  %855 = load i32, ptr %13, align 4, !tbaa !9
  %856 = add nsw i32 %855, 1
  store i32 %856, ptr %13, align 4, !tbaa !9
  br label %55, !llvm.loop !28

857:                                              ; preds = %58
  br label %858

858:                                              ; preds = %857, %53
  %859 = load i32, ptr %11, align 4, !tbaa !9
  %860 = add nsw i32 %859, 1
  store i32 %860, ptr %11, align 4, !tbaa !9
  br label %30, !llvm.loop !29

861:                                              ; preds = %33
  ret void

862:                                              ; preds = %821
  %863 = load ptr, ptr %25, align 8
  %864 = load i32, ptr %26, align 4
  %865 = insertvalue { ptr, i32 } poison, ptr %863, 0
  %866 = insertvalue { ptr, i32 } %865, i32 %864, 1
  resume { ptr, i32 } %866

867:                                              ; preds = %831
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler4is1DEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 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 ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { nounwind }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8EProfile", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTSN7glslang10TBasicTypeE", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}


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

%"struct.glslang::TSampler" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider" = type { %"class.glslang::pool_allocator", ptr }
%"class.glslang::pool_allocator" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.121 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.350 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.397 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [112 x i8], align 1
@__PRETTY_FUNCTION__._ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile = external hidden unnamed_addr constant [88 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.402 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.411 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.412 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.413 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.414 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.415 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.416 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.417 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.418 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.419 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.420 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.421 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.422 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.423 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.424 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.425 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.426 = external hidden unnamed_addr constant [6 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %1, ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.glslang::TSampler", align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 %1, ptr %6, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 824
  %9 = icmp eq i32 %4, 8
  %10 = icmp slt i32 %3, 450
  %or.cond9 = or i1 %10, %9
  %11 = getelementptr inbounds i8, ptr %0, i64 648
  %12 = getelementptr inbounds i8, ptr %0, i64 608
  %13 = getelementptr inbounds i8, ptr %0, i64 208
  %14 = getelementptr inbounds i8, ptr %0, i64 248
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  br label %16

.loopexit222.thread:                              ; preds = %30, %28, %25, %23, %19, %.loopexit222
  ret void

16:                                               ; preds = %5, %.loopexit222
  %17 = phi i1 [ false, %5 ], [ true, %.loopexit222 ]
  %18 = phi i1 [ true, %5 ], [ false, %.loopexit222 ]
  %.0234 = phi i32 [ 0, %5 ], [ 1, %.loopexit222 ]
  br i1 %17, label %19, label %.preheader259

19:                                               ; preds = %16
  %20 = load i32, ptr %6, align 4
  %21 = and i32 %20, 65280
  %22 = icmp eq i32 %21, 1024
  br i1 %22, label %.loopexit222.thread, label %23

23:                                               ; preds = %19
  %24 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %24, label %.loopexit222.thread, label %25

25:                                               ; preds = %23
  %26 = load i32, ptr %6, align 4
  %27 = and i32 %26, 65536
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %28, label %.loopexit222.thread

28:                                               ; preds = %25
  %29 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %29, label %.loopexit222.thread, label %30

30:                                               ; preds = %28
  %31 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %31, label %.preheader259, label %.loopexit222.thread

.preheader259:                                    ; preds = %30, %16
  br label %32

32:                                               ; preds = %.preheader259, %.loopexit221
  %.not176 = phi i1 [ false, %.loopexit221 ], [ true, %.preheader259 ]
  %.0156233 = phi i32 [ 1, %.loopexit221 ], [ 0, %.preheader259 ]
  br i1 %.not176, label %.critedge184, label %33

33:                                               ; preds = %32
  %34 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %34, label %.loopexit222, label %35

35:                                               ; preds = %33
  %36 = call noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %36, label %.loopexit222, label %37

37:                                               ; preds = %35
  %38 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %38, label %.loopexit222, label %39

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %40, label %41, label %.loopexit222

41:                                               ; preds = %39
  %42 = load i32, ptr %6, align 4
  %43 = and i32 %42, 261888
  %or.cond183 = icmp ne i32 %43, 197120
  %44 = and i32 %42, 196352
  %or.cond185 = icmp ne i32 %44, 132096
  %or.cond214 = and i1 %or.cond183, %or.cond185
  br i1 %or.cond214, label %.critedge184, label %.loopexit222

.critedge184:                                     ; preds = %41, %32
  %45 = or i32 %.0156233, %.0234
  br label %46

46:                                               ; preds = %.critedge184, %.loopexit220
  %.not180 = phi i1 [ true, %.critedge184 ], [ false, %.loopexit220 ]
  %.0155232 = phi i32 [ 0, %.critedge184 ], [ 1, %.loopexit220 ]
  br i1 %.not180, label %.critedge189, label %47

47:                                               ; preds = %46
  br i1 %.not176, label %48, label %.loopexit222

48:                                               ; preds = %47
  %49 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %49, label %.loopexit221, label %50

50:                                               ; preds = %48
  %51 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %51, label %52, label %.loopexit221

52:                                               ; preds = %50
  %53 = load i32, ptr %6, align 4
  %54 = lshr i32 %53, 8
  %trunc = trunc i32 %54 to i8
  switch i8 %trunc, label %.critedge187 [
    i8 2, label %55
    i8 4, label %55
  ]

55:                                               ; preds = %52, %52
  %56 = and i32 %53, 196608
  %or.cond188.not = icmp eq i32 %56, 196608
  br i1 %or.cond188.not, label %.loopexit221, label %.critedge187

.critedge187:                                     ; preds = %55, %52
  %57 = call noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %57, label %.loopexit221, label %58

58:                                               ; preds = %.critedge187
  %59 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %59, label %.loopexit221, label %.critedge189

.critedge189:                                     ; preds = %46, %58
  %60 = add nuw nsw i32 %.0155232, %.0156233
  %61 = or i32 %.0155232, %.0156233
  %or.cond.not = icmp ne i32 %61, 0
  br label %62

62:                                               ; preds = %.critedge189, %.loopexit219
  %.not165 = phi i1 [ true, %.critedge189 ], [ false, %.loopexit219 ]
  %.0154231 = phi i32 [ 0, %.critedge189 ], [ 1, %.loopexit219 ]
  %63 = add nuw nsw i32 %.0154231, %.0234
  %64 = add nuw nsw i32 %60, %63
  %65 = icmp ugt i32 %64, 3
  br i1 %65, label %.loopexit219, label %66

66:                                               ; preds = %62
  br i1 %.not165, label %.preheader258, label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %6, align 4
  %69 = and i32 %68, 65280
  %70 = icmp eq i32 %69, 1024
  br i1 %70, label %.loopexit220, label %71

71:                                               ; preds = %67
  %72 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %72, label %.loopexit220, label %73

73:                                               ; preds = %71
  %74 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %74, label %.loopexit220, label %.preheader258

.preheader258:                                    ; preds = %73, %66
  br label %75

75:                                               ; preds = %.preheader258, %.loopexit218
  %76 = phi i1 [ true, %.loopexit218 ], [ false, %.preheader258 ]
  %77 = phi i1 [ false, %.loopexit218 ], [ true, %.preheader258 ]
  %.0153230 = phi i32 [ 1, %.loopexit218 ], [ 0, %.preheader258 ]
  %78 = add nuw nsw i32 %.0153230, %63
  %79 = add nuw nsw i32 %60, %78
  %80 = icmp ugt i32 %79, 3
  br i1 %80, label %.loopexit218, label %81

81:                                               ; preds = %75
  %or.cond191.not = and i1 %or.cond.not, %76
  br i1 %or.cond191.not, label %.loopexit219, label %82

82:                                               ; preds = %81
  br i1 %76, label %83, label %88

83:                                               ; preds = %82
  %84 = load i32, ptr %6, align 4
  %85 = and i32 %84, 131072
  %.not166 = icmp ne i32 %85, 0
  %86 = and i32 %84, 65280
  %87 = icmp eq i32 %86, 1024
  %or.cond193 = or i1 %.not166, %87
  br i1 %or.cond193, label %.loopexit219, label %94

88:                                               ; preds = %82
  %89 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %89, label %.loopexit218, label %90

90:                                               ; preds = %88
  %91 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %91, label %.loopexit218, label %92

92:                                               ; preds = %90
  %93 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %93, label %94, label %.loopexit218

94:                                               ; preds = %83, %92
  %95 = or i32 %45, %.0153230
  %or.cond13.not = icmp ne i32 %95, 0
  %brmerge = or i1 %or.cond9, %or.cond13.not
  %.str.403..str.404 = select i1 %76, ptr @.str.403, ptr @.str.404
  %.str.405..str.406 = select i1 %76, ptr @.str.405, ptr @.str.406
  br label %96

96:                                               ; preds = %94, %.loopexit217
  %.not167 = phi i1 [ false, %94 ], [ true, %.loopexit217 ]
  %97 = phi i1 [ true, %94 ], [ false, %.loopexit217 ]
  %.0152229 = phi i32 [ 0, %94 ], [ 1, %.loopexit217 ]
  br i1 %.not167, label %98, label %.preheader.preheader

98:                                               ; preds = %96
  br i1 %or.cond.not, label %.loopexit218, label %99

99:                                               ; preds = %98
  %100 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %100, label %.loopexit218, label %101

101:                                              ; preds = %99
  %102 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %102, label %103, label %.loopexit218

103:                                              ; preds = %101
  %104 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %105 = add nuw nsw i32 %79, %.0152229
  %106 = icmp ugt i32 %105, 3
  %or.cond = select i1 %104, i1 true, i1 %106
  br i1 %or.cond, label %.loopexit218, label %.preheader.preheader

.preheader.preheader:                             ; preds = %96, %103
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit216
  %107 = phi i1 [ false, %.loopexit216 ], [ true, %.preheader.preheader ]
  %108 = load i32, ptr %6, align 4
  %109 = lshr i32 %108, 8
  %110 = and i32 %109, 255
  %111 = zext nneg i32 %110 to i64
  %112 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = lshr i32 %108, 16
  %.lobit = and i32 %114, 1
  %115 = add nsw i32 %.lobit, %113
  %116 = and i32 %108, 131072
  %.not169.not = icmp eq i32 %116, 0
  %117 = call i32 @llvm.smax.i32(i32 %115, i32 2)
  %spec.store.select = select i1 %.not169.not, i32 %115, i32 %117
  %.lobit170 = lshr exact i32 %116, 17
  %118 = add nuw nsw i32 %.lobit170, %.0234
  %119 = add nsw i32 %118, %spec.store.select
  %120 = icmp sgt i32 %119, 4
  %not..not169.not = xor i1 %.not169.not, true
  %spec.select196 = select i1 %.not169.not, i32 %119, i32 4
  %narrow = and i1 %120, %not..not169.not
  %.0147 = zext i1 %narrow to i8
  %.0146 = select i1 %120, i32 %spec.select196, i32 %119
  %121 = icmp slt i32 %.0146, 5
  br i1 %121, label %123, label %122

122:                                              ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.398, ptr noundef nonnull @.str.399, i32 noundef 6611, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile) #5
  unreachable

123:                                              ; preds = %.preheader
  %or.cond7 = or i1 %17, %107
  br i1 %or.cond7, label %124, label %.loopexit217

124:                                              ; preds = %123
  br i1 %107, label %.preheader257, label %125

125:                                              ; preds = %124
  %126 = and i32 %108, 65280
  %127 = icmp ne i32 %126, 768
  %or.cond197 = and i1 %127, %.not169.not
  br i1 %or.cond197, label %128, label %.loopexit217

128:                                              ; preds = %125
  %129 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %129, label %.preheader257, label %.loopexit217

.preheader257:                                    ; preds = %128, %124
  br label %130

130:                                              ; preds = %.preheader257, %.loopexit215
  %.not173 = phi i1 [ false, %.loopexit215 ], [ true, %.preheader257 ]
  %.1226 = phi i32 [ %.2, %.loopexit215 ], [ %.0146, %.preheader257 ]
  %.1148225 = phi i8 [ %.2149, %.loopexit215 ], [ %.0147, %.preheader257 ]
  br i1 %.not173, label %.critedge199, label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %6, align 4
  %133 = and i32 %132, 255
  %.not174 = icmp eq i32 %133, 3
  br i1 %.not174, label %134, label %.loopexit216

134:                                              ; preds = %131
  %135 = and i32 %132, 131072
  %.not175 = icmp eq i32 %135, 0
  br i1 %.not175, label %.critedge199, label %136

136:                                              ; preds = %134
  %137 = trunc nuw i8 %.1148225 to i1
  %spec.select200 = select i1 %137, i8 %.1148225, i8 1
  %not. = xor i1 %137, true
  %138 = sext i1 %not. to i32
  %spec.select201 = add nsw i32 %.1226, %138
  br label %.critedge199

.critedge199:                                     ; preds = %136, %130, %134
  %139 = phi i32 [ 3, %134 ], [ 3, %136 ], [ 1, %130 ]
  %.2149 = phi i8 [ %.1148225, %134 ], [ %spec.select200, %136 ], [ %.1148225, %130 ]
  %.2 = phi i32 [ %.1226, %134 ], [ %spec.select201, %136 ], [ %.1226, %130 ]
  %spec.select207 = select i1 %76, i32 8, i32 %139
  %140 = icmp eq i32 %.2, 1
  %141 = zext nneg i32 %spec.select207 to i64
  %142 = getelementptr inbounds [22 x ptr], ptr %11, i64 0, i64 %141
  %143 = sext i32 %.2 to i64
  %144 = getelementptr inbounds [5 x ptr], ptr %12, i64 0, i64 %143
  %145 = trunc nuw i8 %.2149 to i1
  %.str.415..str.414 = select i1 %.not173, ptr @.str.415, ptr @.str.414
  %.str.418..str.420 = select i1 %.not173, ptr @.str.418, ptr @.str.420
  %.str.424..str.423 = select i1 %.not173, ptr @.str.424, ptr @.str.423
  %.str.424..str.423253 = select i1 %.not173, ptr @.str.424, ptr @.str.423
  %.str.422..str.421 = select i1 %.not173, ptr @.str.422, ptr @.str.421
  %.str.418..str.420254 = select i1 %.not173, ptr @.str.418, ptr @.str.420
  %.str.418..str.420255 = select i1 %.not173, ptr @.str.418, ptr @.str.420
  br label %146

146:                                              ; preds = %.critedge199, %.loopexit
  %.not181 = phi i1 [ false, %.critedge199 ], [ true, %.loopexit ]
  %147 = phi i1 [ true, %.critedge199 ], [ false, %.loopexit ]
  %.0144224 = phi i32 [ 0, %.critedge199 ], [ 1, %.loopexit ]
  %or.cond236 = and i1 %.not181, %brmerge
  br i1 %or.cond236, label %.loopexit215, label %.critedge203

.critedge203:                                     ; preds = %146
  %148 = or i32 %.0144224, %.0155232
  %or.cond23.not = icmp eq i32 %148, 0
  %or.cond208 = or i1 %.not167, %or.cond23.not
  br label %149

149:                                              ; preds = %.critedge203, %318
  %.not178 = phi i1 [ true, %.critedge203 ], [ false, %318 ]
  %.0143223 = phi i32 [ 0, %.critedge203 ], [ 1, %318 ]
  br i1 %.not178, label %159, label %150

150:                                              ; preds = %149
  br i1 %or.cond9, label %.loopexit, label %151

151:                                              ; preds = %150
  %152 = call noundef zeroext i1 @_ZNK7glslang8TSampler4is1DEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %152, label %.loopexit, label %153

153:                                              ; preds = %151
  %154 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %or.cond17 = or i1 %17, %154
  br i1 %or.cond17, label %.loopexit, label %155

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  %156 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.351)
          to label %.invoke249 unwind label %157

157:                                              ; preds = %.invoke251, %.invoke250, %.invoke249, %.invoke248, %.invoke247, %.invoke246, %.invoke245, %.invoke244, %.invoke243, %.invoke242, %.invoke241, %.invoke, %314, %311, %302, %294, %280, %278, %276, %256, %244, %229, %217, %200, %196, %194, %192, %188, %185, %182, %179, %176, %165, %155
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %319

159:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  %160 = load i32, ptr %6, align 4
  %161 = and i32 %160, 131072
  %.not177 = icmp eq i32 %161, 0
  %162 = and i32 %160, 255
  br i1 %.not177, label %165, label %163

163:                                              ; preds = %159
  %164 = icmp eq i32 %162, 3
  %.str.400..str.401 = select i1 %164, ptr @.str.400, ptr @.str.401
  br label %.invoke251

165:                                              ; preds = %159
  %166 = zext nneg i32 %162 to i64
  %167 = getelementptr inbounds [22 x ptr], ptr %11, i64 0, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %168)
          to label %.invoke251 unwind label %157

.invoke251:                                       ; preds = %165, %163
  %170 = phi ptr [ %.str.400..str.401, %163 ], [ @.str.402, %165 ]
  %171 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %170)
          to label %.invoke250 unwind label %157

.invoke250:                                       ; preds = %.invoke251
  %172 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.405..str.406)
          to label %173 unwind label %157

173:                                              ; preds = %.invoke250
  br i1 %17, label %.invoke249, label %.thread211

.invoke249:                                       ; preds = %155, %173
  %174 = phi ptr [ @.str.407, %173 ], [ %.str.403..str.404, %155 ]
  %175 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %174)
          to label %.thread211 unwind label %157

.thread211:                                       ; preds = %.invoke249, %173
  br i1 %.not176, label %178, label %176

176:                                              ; preds = %.thread211
  %177 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.408)
          to label %178 unwind label %157

178:                                              ; preds = %176, %.thread211
  br i1 %.not167, label %179, label %181

179:                                              ; preds = %178
  %180 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.409)
          to label %181 unwind label %157

181:                                              ; preds = %179, %178
  br i1 %76, label %182, label %184

182:                                              ; preds = %181
  %183 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.410)
          to label %184 unwind label %157

184:                                              ; preds = %182, %181
  br i1 %.not165, label %187, label %185

185:                                              ; preds = %184
  %186 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.411)
          to label %187 unwind label %157

187:                                              ; preds = %185, %184
  br i1 %.not181, label %188, label %190

188:                                              ; preds = %187
  %189 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.412)
          to label %190 unwind label %157

190:                                              ; preds = %188, %187
  %191 = or i32 %.0143223, %.0144224
  %or.cond19.not = icmp eq i32 %191, 0
  br i1 %or.cond19.not, label %194, label %192

192:                                              ; preds = %190
  %193 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.413)
          to label %194 unwind label %157

194:                                              ; preds = %192, %190
  %195 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.397)
          to label %196 unwind label %157

196:                                              ; preds = %194
  %197 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %198 unwind label %157

198:                                              ; preds = %196
  br i1 %107, label %200, label %.invoke248

.invoke248:                                       ; preds = %198
  %199 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.415..str.414)
          to label %216 unwind label %157

200:                                              ; preds = %198
  %201 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.416)
          to label %202 unwind label %157

202:                                              ; preds = %200
  br i1 %140, label %203, label %207

203:                                              ; preds = %202
  %204 = call noundef ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef %spec.select207)
  br label %.invoke252

205:                                              ; preds = %.invoke252, %210, %207
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %319

207:                                              ; preds = %202
  %208 = load ptr, ptr %142, align 8, !tbaa !9
  %209 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %208)
          to label %210 unwind label %205

210:                                              ; preds = %207
  %211 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.417)
          to label %212 unwind label %205

212:                                              ; preds = %210
  %213 = load ptr, ptr %144, align 8, !tbaa !9
  br label %.invoke252

.invoke252:                                       ; preds = %203, %212
  %214 = phi ptr [ %213, %212 ], [ %204, %203 ]
  %215 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %214)
          to label %216 unwind label %205

216:                                              ; preds = %.invoke252, %.invoke248
  br i1 %145, label %217, label %219

217:                                              ; preds = %216
  %218 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.418)
          to label %219 unwind label %157

219:                                              ; preds = %217, %216
  br i1 %76, label %221, label %.thread212

.thread212:                                       ; preds = %219
  %220 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %231

221:                                              ; preds = %219
  %222 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %222, label %227, label %223

223:                                              ; preds = %221
  %224 = call noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %224, label %227, label %225

225:                                              ; preds = %223
  %226 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %226, label %227, label %229

227:                                              ; preds = %225, %223, %221
  %228 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %228, label %229, label %231

229:                                              ; preds = %227, %225
  %230 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.419)
          to label %231 unwind label %157

231:                                              ; preds = %.thread212, %229, %227
  br i1 %.not176, label %233, label %.invoke247

.invoke247:                                       ; preds = %231
  %232 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.418..str.420)
          to label %233 unwind label %157

233:                                              ; preds = %.invoke247, %231
  br i1 %.not167, label %234, label %267

234:                                              ; preds = %233
  %235 = load i32, ptr %6, align 4
  %236 = lshr i32 %235, 8
  %237 = and i32 %236, 255
  %238 = zext nneg i32 %237 to i64
  %239 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = icmp eq i32 %240, 1
  br i1 %241, label %.invoke246, label %.invoke245

.invoke246:                                       ; preds = %234
  %242 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.422..str.421)
          to label %267 unwind label %157

.invoke245:                                       ; preds = %234
  %243 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.424..str.423)
          to label %244 unwind label %157

244:                                              ; preds = %.invoke245
  %245 = load i32, ptr %6, align 4
  %246 = lshr i32 %245, 8
  %247 = and i32 %246, 255
  %248 = zext nneg i32 %247 to i64
  %249 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [5 x ptr], ptr %12, i64 0, i64 %251
  %253 = load ptr, ptr %252, align 8, !tbaa !9
  %254 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %253)
          to label %.invoke244 unwind label %157

.invoke244:                                       ; preds = %244
  %255 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.424..str.423253)
          to label %256 unwind label %157

256:                                              ; preds = %.invoke244
  %257 = load i32, ptr %6, align 4
  %258 = lshr i32 %257, 8
  %259 = and i32 %258, 255
  %260 = zext nneg i32 %259 to i64
  %261 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [5 x ptr], ptr %12, i64 0, i64 %263
  %265 = load ptr, ptr %264, align 8, !tbaa !9
  %266 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %265)
          to label %267 unwind label %157

267:                                              ; preds = %.invoke246, %256, %233
  br i1 %.not165, label %291, label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %6, align 4
  %270 = lshr i32 %269, 8
  %271 = and i32 %270, 255
  %272 = zext nneg i32 %271 to i64
  %273 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !5
  %275 = icmp eq i32 %274, 1
  br i1 %275, label %276, label %278

276:                                              ; preds = %268
  %277 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.419)
          to label %291 unwind label %157

278:                                              ; preds = %268
  %279 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.425)
          to label %280 unwind label %157

280:                                              ; preds = %278
  %281 = load i32, ptr %6, align 4
  %282 = lshr i32 %281, 8
  %283 = and i32 %282, 255
  %284 = zext nneg i32 %283 to i64
  %285 = getelementptr inbounds [8 x i32], ptr %8, i64 0, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [5 x ptr], ptr %12, i64 0, i64 %287
  %289 = load ptr, ptr %288, align 8, !tbaa !9
  %290 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %289)
          to label %291 unwind label %157

291:                                              ; preds = %276, %280, %267
  br i1 %.not181, label %.invoke243, label %293

.invoke243:                                       ; preds = %291
  %292 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.418..str.420254)
          to label %293 unwind label %157

293:                                              ; preds = %.invoke243, %291
  br i1 %.not178, label %309, label %294

294:                                              ; preds = %293
  %295 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.426)
          to label %296 unwind label %157

296:                                              ; preds = %294
  %297 = load i32, ptr %6, align 4
  %298 = and i32 %297, 131072
  %.not179 = icmp eq i32 %298, 0
  %299 = and i32 %297, 255
  br i1 %.not179, label %302, label %300

300:                                              ; preds = %296
  %301 = icmp eq i32 %299, 3
  %.str.125..str.121 = select i1 %301, ptr @.str.125, ptr @.str.121
  br label %.invoke242

302:                                              ; preds = %296
  %303 = zext nneg i32 %299 to i64
  %304 = getelementptr inbounds [22 x ptr], ptr %11, i64 0, i64 %303
  %305 = load ptr, ptr %304, align 8, !tbaa !9
  %306 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %305)
          to label %.invoke242 unwind label %157

.invoke242:                                       ; preds = %302, %300
  %307 = phi ptr [ %.str.125..str.121, %300 ], [ @.str.124, %302 ]
  %308 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %307)
          to label %309 unwind label %157

309:                                              ; preds = %.invoke242, %293
  br i1 %.not180, label %311, label %.invoke241

.invoke241:                                       ; preds = %309
  %310 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %.str.418..str.420255)
          to label %311 unwind label %157

311:                                              ; preds = %.invoke241, %309
  %312 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.350)
          to label %313 unwind label %157

313:                                              ; preds = %311
  br i1 %or.cond208, label %.invoke, label %314

314:                                              ; preds = %313
  %315 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %.invoke unwind label %157

.invoke:                                          ; preds = %313, %314
  %316 = phi ptr [ %14, %314 ], [ %15, %313 ]
  %317 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %316, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %318 unwind label %157

318:                                              ; preds = %.invoke
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  br i1 %.not178, label %149, label %.loopexit, !llvm.loop !11

319:                                              ; preds = %205, %157
  %.pn = phi { ptr, i32 } [ %158, %157 ], [ %206, %205 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn

.loopexit:                                        ; preds = %150, %153, %151, %318
  br i1 %147, label %146, label %.loopexit215, !llvm.loop !13

.loopexit215:                                     ; preds = %146, %.loopexit
  br i1 %.not173, label %130, label %.loopexit216, !llvm.loop !14

.loopexit216:                                     ; preds = %131, %.loopexit215
  br i1 %107, label %.preheader, label %.loopexit217, !llvm.loop !15

.loopexit217:                                     ; preds = %123, %128, %125, %.loopexit216
  br i1 %97, label %96, label %.loopexit218, !llvm.loop !16

.loopexit218:                                     ; preds = %101, %99, %98, %103, %.loopexit217, %88, %90, %92, %75
  br i1 %77, label %75, label %.loopexit219, !llvm.loop !17

.loopexit219:                                     ; preds = %83, %81, %.loopexit218, %62
  br i1 %.not165, label %62, label %.loopexit220, !llvm.loop !18

.loopexit220:                                     ; preds = %73, %71, %67, %.loopexit219
  br i1 %.not180, label %46, label %.loopexit221, !llvm.loop !19

.loopexit221:                                     ; preds = %50, %48, %58, %.critedge187, %55, %.loopexit220
  br i1 %.not176, label %32, label %.loopexit222, !llvm.loop !20

.loopexit222:                                     ; preds = %39, %37, %35, %33, %41, %.loopexit221, %47
  br i1 %18, label %16, label %.loopexit222.thread, !llvm.loop !21
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler4is1DEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 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 ptr @_ZN7glslang5TType14getBasicStringENS_10TBasicTypeE(i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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


; Effective O3 passes: ADCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass