; 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] }
%"struct.glslang::SpvVersion" = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"class.glslang::TBuiltInParseables" = type { ptr, %"class.std::__cxx11::basic_string", [14 x %"class.std::__cxx11::basic_string"] }

@__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes = external hidden unnamed_addr constant [4 x i32], align 16
@.str.344 = external hidden unnamed_addr constant [41 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

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 #1 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) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(17) %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [4 x i32], align 16
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %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 i64, align 8
  %19 = alloca %"struct.glslang::TSampler", align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"struct.glslang::TSampler", align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.glslang::TSampler", align 4
  %25 = alloca %"struct.glslang::TSampler", align 4
  %26 = alloca %"struct.glslang::TSampler", align 4
  %27 = alloca %"struct.glslang::TSampler", align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"struct.glslang::TSampler", align 4
  %30 = alloca %"struct.glslang::TSampler", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !11
  store ptr %3, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %32 = load i32, ptr %7, align 4, !tbaa !11
  %33 = icmp eq i32 %32, 8
  br i1 %33, label %34, label %37

34:                                               ; preds = %4
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp slt i32 %35, 310
  br i1 %36, label %45, label %37

37:                                               ; preds = %34, %4
  %38 = load i32, ptr %7, align 4, !tbaa !11
  %39 = icmp ne i32 %38, 8
  br i1 %39, label %40, label %43

40:                                               ; preds = %37
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 140
  br label %43

43:                                               ; preds = %40, %37
  %44 = phi i1 [ false, %37 ], [ %42, %40 ]
  br label %45

45:                                               ; preds = %43, %34
  %46 = phi i1 [ true, %34 ], [ %44, %43 ]
  %47 = zext i1 %46 to i8
  store i8 %47, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %48 = load i32, ptr %7, align 4, !tbaa !11
  %49 = icmp eq i32 %48, 8
  br i1 %49, label %50, label %53

50:                                               ; preds = %45
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = icmp slt i32 %51, 310
  br i1 %52, label %61, label %53

53:                                               ; preds = %50, %45
  %54 = load i32, ptr %7, align 4, !tbaa !11
  %55 = icmp ne i32 %54, 8
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp slt i32 %57, 130
  br label %59

59:                                               ; preds = %56, %53
  %60 = phi i1 [ false, %53 ], [ %58, %56 ]
  br label %61

61:                                               ; preds = %59, %50
  %62 = phi i1 [ true, %50 ], [ %60, %59 ]
  %63 = zext i1 %62 to i8
  store i8 %63, ptr %11, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %467, %61
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = icmp sle i32 %65, 1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %470

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %463, %68
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = icmp sle i32 %70, 1
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %466

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

74:                                               ; preds = %459, %73
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = icmp sle i32 %75, 1
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %462

78:                                               ; preds = %74
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %84, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %88

84:                                               ; preds = %81, %78
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  br label %459

88:                                               ; preds = %84, %81
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %98

91:                                               ; preds = %88
  %92 = load i32, ptr %7, align 4, !tbaa !11
  %93 = icmp ne i32 %92, 8
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = icmp slt i32 %95, 150
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  br label %459

98:                                               ; preds = %94, %91, %88
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %108

101:                                              ; preds = %98
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %108

104:                                              ; preds = %101
  %105 = load i32, ptr %7, align 4, !tbaa !11
  %106 = icmp eq i32 %105, 8
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  br label %459

108:                                              ; preds = %104, %101, %98
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %118

111:                                              ; preds = %108
  %112 = load i32, ptr %7, align 4, !tbaa !11
  %113 = icmp eq i32 %112, 8
  br i1 %113, label %114, label %118

114:                                              ; preds = %111
  %115 = load i32, ptr %6, align 4, !tbaa !9
  %116 = icmp slt i32 %115, 310
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  br label %459

118:                                              ; preds = %114, %111, %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %455, %118
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = icmp sle i32 %120, 1
  br i1 %121, label %123, label %122

122:                                              ; preds = %119
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %458

123:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %451, %123
  %125 = load i32, ptr %17, align 4, !tbaa !9
  %126 = icmp slt i32 %125, 8
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %454

128:                                              ; preds = %124
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = icmp eq i32 %129, 7
  br i1 %130, label %131, label %137

131:                                              ; preds = %128
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.glslang::SpvVersion", ptr %132, i32 0, i32 2
  %134 = load i32, ptr %133, align 4, !tbaa !15
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %131
  br label %451

137:                                              ; preds = %131, %128
  %138 = load i32, ptr %17, align 4, !tbaa !9
  %139 = icmp eq i32 %138, 7
  br i1 %139, label %140, label %150

140:                                              ; preds = %137
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %149, label %143

143:                                              ; preds = %140
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %149, label %146

146:                                              ; preds = %143
  %147 = load i32, ptr %16, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %146, %143, %140
  br label %451

150:                                              ; preds = %146, %137
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %156, label %153

153:                                              ; preds = %150
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = icmp eq i32 %154, 5
  br i1 %155, label %156, label %160

156:                                              ; preds = %153, %150
  %157 = load i32, ptr %7, align 4, !tbaa !11
  %158 = icmp eq i32 %157, 8
  br i1 %158, label %159, label %160

159:                                              ; preds = %156
  br label %451

160:                                              ; preds = %156, %153
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = icmp eq i32 %161, 7
  br i1 %162, label %163, label %169

163:                                              ; preds = %160
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.glslang::SpvVersion", ptr %164, i32 0, i32 2
  %166 = load i32, ptr %165, align 4, !tbaa !15
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %163
  br label %451

169:                                              ; preds = %163, %160
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 7
  br i1 %171, label %172, label %182

172:                                              ; preds = %169
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %181, label %175

175:                                              ; preds = %172
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %181, label %178

178:                                              ; preds = %175
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %178, %175, %172
  br label %451

182:                                              ; preds = %178, %169
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = icmp eq i32 %183, 1
  br i1 %184, label %188, label %185

185:                                              ; preds = %182
  %186 = load i32, ptr %17, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 5
  br i1 %187, label %188, label %192

188:                                              ; preds = %185, %182
  %189 = load i32, ptr %7, align 4, !tbaa !11
  %190 = icmp eq i32 %189, 8
  br i1 %190, label %191, label %192

191:                                              ; preds = %188
  br label %451

192:                                              ; preds = %188, %185
  %193 = load i32, ptr %17, align 4, !tbaa !9
  %194 = icmp ne i32 %193, 2
  br i1 %194, label %195, label %202

195:                                              ; preds = %192
  %196 = load i32, ptr %17, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 7
  br i1 %197, label %198, label %202

198:                                              ; preds = %195
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %198
  br label %451

202:                                              ; preds = %198, %195, %192
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = icmp eq i32 %203, 6
  br i1 %204, label %205, label %209

205:                                              ; preds = %202
  %206 = load i8, ptr %10, align 1, !tbaa !13, !range !17, !noundef !18
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %209

208:                                              ; preds = %205
  br label %451

209:                                              ; preds = %205, %202
  %210 = load i32, ptr %17, align 4, !tbaa !9
  %211 = icmp eq i32 %210, 6
  br i1 %211, label %212, label %222

212:                                              ; preds = %209
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %221, label %215

215:                                              ; preds = %212
  %216 = load i32, ptr %16, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %221, label %218

218:                                              ; preds = %215
  %219 = load i32, ptr %15, align 4, !tbaa !9
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %222

221:                                              ; preds = %218, %215, %212
  br label %451

222:                                              ; preds = %218, %209
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %235

225:                                              ; preds = %222
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %235

228:                                              ; preds = %225
  %229 = load i32, ptr %7, align 4, !tbaa !11
  %230 = icmp eq i32 %229, 8
  br i1 %230, label %231, label %235

231:                                              ; preds = %228
  %232 = load i32, ptr %6, align 4, !tbaa !9
  %233 = icmp slt i32 %232, 310
  br i1 %233, label %234, label %235

234:                                              ; preds = %231
  br label %451

235:                                              ; preds = %231, %228, %225, %222
  %236 = load i32, ptr %17, align 4, !tbaa !9
  %237 = icmp eq i32 %236, 3
  br i1 %237, label %238, label %242

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

241:                                              ; preds = %238
  br label %451

242:                                              ; preds = %238, %235
  %243 = load i32, ptr %17, align 4, !tbaa !9
  %244 = icmp eq i32 %243, 4
  br i1 %244, label %245, label %252

245:                                              ; preds = %242
  %246 = load i32, ptr %16, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %252

248:                                              ; preds = %245
  %249 = load i8, ptr %11, align 1, !tbaa !13, !range !17, !noundef !18
  %250 = trunc i8 %249 to i1
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  br label %451

252:                                              ; preds = %248, %245, %242
  %253 = load i32, ptr %17, align 4, !tbaa !9
  %254 = icmp eq i32 %253, 3
  br i1 %254, label %258, label %255

255:                                              ; preds = %252
  %256 = load i32, ptr %17, align 4, !tbaa !9
  %257 = icmp eq i32 %256, 5
  br i1 %257, label %258, label %262

258:                                              ; preds = %255, %252
  %259 = load i32, ptr %16, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %258
  br label %451

262:                                              ; preds = %258, %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store i64 0, ptr %18, align 8, !tbaa !19
  br label %263

263:                                              ; preds = %446, %262
  %264 = load i64, ptr %18, align 8, !tbaa !19
  %265 = icmp ult i64 %264, 4
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %450

267:                                              ; preds = %263
  %268 = load i64, ptr %18, align 8, !tbaa !19
  %269 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !21
  %271 = icmp eq i32 %270, 3
  br i1 %271, label %272, label %279

272:                                              ; preds = %267
  %273 = load i32, ptr %7, align 4, !tbaa !11
  %274 = icmp eq i32 %273, 8
  br i1 %274, label %278, label %275

275:                                              ; preds = %272
  %276 = load i32, ptr %6, align 4, !tbaa !9
  %277 = icmp slt i32 %276, 450
  br i1 %277, label %278, label %279

278:                                              ; preds = %275, %272
  br label %446

279:                                              ; preds = %275, %267
  %280 = load i32, ptr %17, align 4, !tbaa !9
  %281 = icmp eq i32 %280, 5
  br i1 %281, label %282, label %289

282:                                              ; preds = %279
  %283 = load i32, ptr %6, align 4, !tbaa !9
  %284 = icmp slt i32 %283, 140
  br i1 %284, label %285, label %289

285:                                              ; preds = %282
  %286 = load i64, ptr %18, align 8, !tbaa !19
  %287 = icmp ugt i64 %286, 0
  br i1 %287, label %288, label %289

288:                                              ; preds = %285
  br label %446

289:                                              ; preds = %285, %282, %279
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %292, label %303

292:                                              ; preds = %289
  %293 = load i64, ptr %18, align 8, !tbaa !19
  %294 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %293
  %295 = load i32, ptr %294, align 4, !tbaa !21
  %296 = icmp eq i32 %295, 8
  br i1 %296, label %302, label %297

297:                                              ; preds = %292
  %298 = load i64, ptr %18, align 8, !tbaa !19
  %299 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %298
  %300 = load i32, ptr %299, align 4, !tbaa !21
  %301 = icmp eq i32 %300, 9
  br i1 %301, label %302, label %303

302:                                              ; preds = %297, %292
  br label %446

303:                                              ; preds = %297, %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %304 = load i32, ptr %17, align 4, !tbaa !9
  %305 = icmp eq i32 %304, 7
  br i1 %305, label %306, label %314

306:                                              ; preds = %303
  %307 = load i64, ptr %18, align 8, !tbaa !19
  %308 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !21
  %310 = load i32, ptr %15, align 4, !tbaa !9
  %311 = icmp ne i32 %310, 0
  %312 = zext i1 %311 to i64
  %313 = select i1 %311, i1 true, i1 false
  call void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %309, i1 noundef zeroext %313)
  br label %352

314:                                              ; preds = %303
  %315 = load i32, ptr %12, align 4, !tbaa !9
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %334

317:                                              ; preds = %314
  %318 = load i64, ptr %18, align 8, !tbaa !19
  %319 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %318
  %320 = load i32, ptr %319, align 4, !tbaa !21
  %321 = load i32, ptr %17, align 4, !tbaa !9
  %322 = load i32, ptr %16, align 4, !tbaa !9
  %323 = icmp ne i32 %322, 0
  %324 = zext i1 %323 to i64
  %325 = select i1 %323, i1 true, i1 false
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = icmp ne i32 %326, 0
  %328 = zext i1 %327 to i64
  %329 = select i1 %327, i1 true, i1 false
  %330 = load i32, ptr %15, align 4, !tbaa !9
  %331 = icmp ne i32 %330, 0
  %332 = zext i1 %331 to i64
  %333 = select i1 %331, i1 true, i1 false
  call void @_ZN7glslang8TSampler8setImageENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %320, i32 noundef %321, i1 noundef zeroext %325, i1 noundef zeroext %329, i1 noundef zeroext %333)
  br label %351

334:                                              ; preds = %314
  %335 = load i64, ptr %18, align 8, !tbaa !19
  %336 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %335
  %337 = load i32, ptr %336, align 4, !tbaa !21
  %338 = load i32, ptr %17, align 4, !tbaa !9
  %339 = load i32, ptr %16, align 4, !tbaa !9
  %340 = icmp ne i32 %339, 0
  %341 = zext i1 %340 to i64
  %342 = select i1 %340, i1 true, i1 false
  %343 = load i32, ptr %14, align 4, !tbaa !9
  %344 = icmp ne i32 %343, 0
  %345 = zext i1 %344 to i64
  %346 = select i1 %344, i1 true, i1 false
  %347 = load i32, ptr %15, align 4, !tbaa !9
  %348 = icmp ne i32 %347, 0
  %349 = zext i1 %348 to i64
  %350 = select i1 %348, i1 true, i1 false
  call void @_ZN7glslang8TSampler3setENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %337, i32 noundef %338, i1 noundef zeroext %342, i1 noundef zeroext %346, i1 noundef zeroext %350)
  br label %351

351:                                              ; preds = %334, %317
  br label %352

352:                                              ; preds = %351, %306
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #4
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %353 = load i32, ptr %17, align 4, !tbaa !9
  %354 = icmp eq i32 %353, 7
  br i1 %354, label %355, label %365

355:                                              ; preds = %352
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %356 = load i32, ptr %6, align 4, !tbaa !9
  %357 = load i32, ptr %7, align 4, !tbaa !11
  %358 = getelementptr inbounds %"struct.glslang::TSampler", ptr %21, i32 0, i32 0
  %359 = load i32, ptr %358, align 4
  invoke void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %359, ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %356, i32 noundef %357)
          to label %360 unwind label %361

360:                                              ; preds = %355
  store i32 19, ptr %13, align 4
  br label %443

361:                                              ; preds = %402, %394, %384, %379, %373, %365, %355
  %362 = landingpad { ptr, i32 }
          cleanup
  %363 = extractvalue { ptr, i32 } %362, 0
  store ptr %363, ptr %22, align 8
  %364 = extractvalue { ptr, i32 } %362, 1
  store i32 %364, ptr %23, align 4
  br label %449

365:                                              ; preds = %352
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %366 = load i32, ptr %6, align 4, !tbaa !9
  %367 = load i32, ptr %7, align 4, !tbaa !11
  %368 = getelementptr inbounds %"struct.glslang::TSampler", ptr %24, i32 0, i32 0
  %369 = load i32, ptr %368, align 4
  invoke void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %369, ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %366, i32 noundef %367)
          to label %370 unwind label %361

370:                                              ; preds = %365
  %371 = load i32, ptr %12, align 4, !tbaa !9
  %372 = icmp ne i32 %371, 0
  br i1 %372, label %373, label %379

373:                                              ; preds = %370
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %374 = load i32, ptr %6, align 4, !tbaa !9
  %375 = load i32, ptr %7, align 4, !tbaa !11
  %376 = getelementptr inbounds %"struct.glslang::TSampler", ptr %25, i32 0, i32 0
  %377 = load i32, ptr %376, align 4
  invoke void @_ZN7glslang9TBuiltIns17addImageFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %377, ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %374, i32 noundef %375)
          to label %378 unwind label %361

378:                                              ; preds = %373
  br label %442

379:                                              ; preds = %370
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %380 = load i32, ptr %6, align 4, !tbaa !9
  %381 = load i32, ptr %7, align 4, !tbaa !11
  %382 = getelementptr inbounds %"struct.glslang::TSampler", ptr %26, i32 0, i32 0
  %383 = load i32, ptr %382, align 4
  invoke void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %383, ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %380, i32 noundef %381)
          to label %384 unwind label %361

384:                                              ; preds = %379
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %385 = load i32, ptr %6, align 4, !tbaa !9
  %386 = load i32, ptr %7, align 4, !tbaa !11
  %387 = getelementptr inbounds %"struct.glslang::TSampler", ptr %27, i32 0, i32 0
  %388 = load i32, ptr %387, align 4
  invoke void @_ZN7glslang9TBuiltIns18addGatherFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %388, ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %385, i32 noundef %386)
          to label %389 unwind label %361

389:                                              ; preds = %384
  %390 = load ptr, ptr %8, align 8, !tbaa !5
  %391 = getelementptr inbounds %"struct.glslang::SpvVersion", ptr %390, i32 0, i32 2
  %392 = load i32, ptr %391, align 4, !tbaa !15
  %393 = icmp sgt i32 %392, 0
  br i1 %393, label %394, label %441

394:                                              ; preds = %389
  %395 = invoke noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %396 unwind label %361

396:                                              ; preds = %394
  br i1 %395, label %397, label %441

397:                                              ; preds = %396
  %398 = load i32, ptr %19, align 4
  %399 = lshr i32 %398, 17
  %400 = and i32 %399, 1
  %401 = trunc i32 %400 to i1
  br i1 %401, label %441, label %402

402:                                              ; preds = %397
  %403 = load i32, ptr %19, align 4
  %404 = and i32 %403, 255
  %405 = load i32, ptr %19, align 4
  %406 = lshr i32 %405, 8
  %407 = and i32 %406, 255
  %408 = load i32, ptr %19, align 4
  %409 = lshr i32 %408, 16
  %410 = and i32 %409, 1
  %411 = trunc i32 %410 to i1
  %412 = load i32, ptr %19, align 4
  %413 = lshr i32 %412, 17
  %414 = and i32 %413, 1
  %415 = trunc i32 %414 to i1
  %416 = load i32, ptr %19, align 4
  %417 = lshr i32 %416, 18
  %418 = and i32 %417, 1
  %419 = trunc i32 %418 to i1
  invoke void @_ZN7glslang8TSampler10setTextureENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %404, i32 noundef %407, i1 noundef zeroext %411, i1 noundef zeroext %415, i1 noundef zeroext %419)
          to label %420 unwind label %361

420:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #4
  invoke void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %421 unwind label %432

421:                                              ; preds = %420
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %422 = load i32, ptr %6, align 4, !tbaa !9
  %423 = load i32, ptr %7, align 4, !tbaa !11
  %424 = getelementptr inbounds %"struct.glslang::TSampler", ptr %29, i32 0, i32 0
  %425 = load i32, ptr %424, align 4
  invoke void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %425, ptr noundef nonnull align 8 dereferenceable(40) %28, i32 noundef %422, i32 noundef %423)
          to label %426 unwind label %436

426:                                              ; preds = %421
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !23
  %427 = load i32, ptr %6, align 4, !tbaa !9
  %428 = load i32, ptr %7, align 4, !tbaa !11
  %429 = getelementptr inbounds %"struct.glslang::TSampler", ptr %30, i32 0, i32 0
  %430 = load i32, ptr %429, align 4
  invoke void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %31, i32 %430, ptr noundef nonnull align 8 dereferenceable(40) %28, i32 noundef %427, i32 noundef %428)
          to label %431 unwind label %436

431:                                              ; preds = %426
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #4
  br label %441

432:                                              ; preds = %420
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %22, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %23, align 4
  br label %440

436:                                              ; preds = %426, %421
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %22, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %23, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %28) #4
  br label %440

440:                                              ; preds = %436, %432
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #4
  br label %449

441:                                              ; preds = %431, %397, %396, %389
  br label %442

442:                                              ; preds = %441, %378
  store i32 0, ptr %13, align 4
  br label %443

443:                                              ; preds = %442, %360
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %444 = load i32, ptr %13, align 4
  switch i32 %444, label %485 [
    i32 0, label %445
    i32 19, label %446
  ]

445:                                              ; preds = %443
  br label %446

446:                                              ; preds = %445, %443, %302, %288, %278
  %447 = load i64, ptr %18, align 8, !tbaa !19
  %448 = add i64 %447, 1
  store i64 %448, ptr %18, align 8, !tbaa !19
  br label %263, !llvm.loop !25

449:                                              ; preds = %440, %361
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  br label %480

450:                                              ; preds = %266
  br label %451

451:                                              ; preds = %450, %261, %251, %241, %234, %221, %208, %201, %191, %181, %168, %159, %149, %136
  %452 = load i32, ptr %17, align 4, !tbaa !9
  %453 = add nsw i32 %452, 1
  store i32 %453, ptr %17, align 4, !tbaa !9
  br label %124, !llvm.loop !27

454:                                              ; preds = %127
  br label %455

455:                                              ; preds = %454
  %456 = load i32, ptr %16, align 4, !tbaa !9
  %457 = add nsw i32 %456, 1
  store i32 %457, ptr %16, align 4, !tbaa !9
  br label %119, !llvm.loop !28

458:                                              ; preds = %122
  br label %459

459:                                              ; preds = %458, %117, %107, %97, %87
  %460 = load i32, ptr %15, align 4, !tbaa !9
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %15, align 4, !tbaa !9
  br label %74, !llvm.loop !29

462:                                              ; preds = %77
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %14, align 4, !tbaa !9
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %14, align 4, !tbaa !9
  br label %69, !llvm.loop !30

466:                                              ; preds = %72
  br label %467

467:                                              ; preds = %466
  %468 = load i32, ptr %12, align 4, !tbaa !9
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %12, align 4, !tbaa !9
  br label %64, !llvm.loop !31

470:                                              ; preds = %67
  %471 = load i32, ptr %7, align 4, !tbaa !11
  %472 = icmp ne i32 %471, 8
  br i1 %472, label %473, label %479

473:                                              ; preds = %470
  %474 = load i32, ptr %6, align 4, !tbaa !9
  %475 = icmp sge i32 %474, 450
  br i1 %475, label %476, label %479

476:                                              ; preds = %473
  %477 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %31, i32 0, i32 1
  %478 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %477, ptr noundef @.str.344)
  br label %479

479:                                              ; preds = %476, %473, %470
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  ret void

480:                                              ; preds = %449
  %481 = load ptr, ptr %22, align 8
  %482 = load i32, ptr %23, align 4
  %483 = insertvalue { ptr, i32 } poison, ptr %481, 0
  %484 = insertvalue { ptr, i32 } %483, i32 %482, 1
  resume { ptr, i32 } %484

485:                                              ; preds = %443
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns17addImageFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang8TSampler3setENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns18addGatherFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang8TSampler10setTextureENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1 align 2

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


; 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] }

@__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes = external hidden unnamed_addr constant [4 x i32], align 16
@.str.344 = external hidden unnamed_addr constant [41 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

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 #1 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(17) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.glslang::TSampler", align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = icmp eq i32 %2, 8
  %9 = icmp slt i32 %1, 310
  %or.cond = and i1 %9, %8
  br i1 %or.cond, label %.thread, label %10

10:                                               ; preds = %4
  %11 = icmp ne i32 %2, 8
  %12 = icmp slt i32 %1, 140
  %13 = and i1 %12, %11
  %14 = icmp slt i32 %1, 130
  %15 = and i1 %14, %11
  br label %.thread

.thread:                                          ; preds = %4, %10
  %16 = phi i1 [ %13, %10 ], [ true, %4 ]
  %17 = phi i1 [ %15, %10 ], [ true, %4 ]
  %18 = icmp ne i32 %2, 8
  %19 = icmp slt i32 %1, 150
  %20 = and i1 %19, %18
  %21 = getelementptr inbounds i8, ptr %3, i64 8
  %22 = icmp slt i32 %1, 450
  %or.cond59 = or i1 %22, %8
  %23 = icmp slt i32 %1, 140
  %24 = load i32, ptr @__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes, align 16
  %25 = icmp eq i32 %24, 3
  %or.cond211.peel = and i1 %or.cond59, %25
  %26 = and i32 %24, -2
  %switch.peel = icmp eq i32 %26, 8
  %27 = icmp eq i32 %24, 3
  %or.cond211.us = and i1 %or.cond59, %27
  %28 = and i32 %24, -2
  %switch.us = icmp eq i32 %28, 8
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes, i64 4), align 4
  %30 = icmp eq i32 %29, 3
  %or.cond211.us.1 = and i1 %or.cond59, %30
  %31 = and i32 %29, -2
  %switch.us.1 = icmp eq i32 %31, 8
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes, i64 8), align 8
  %33 = icmp eq i32 %32, 3
  %or.cond211.us.2 = and i1 %or.cond59, %33
  %34 = and i32 %32, -2
  %switch.us.2 = icmp eq i32 %34, 8
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes, i64 12), align 4
  %36 = icmp eq i32 %35, 3
  %or.cond211.us.3 = and i1 %or.cond59, %36
  %37 = and i32 %35, -2
  %switch.us.3 = icmp eq i32 %37, 8
  br label %.preheader226

.preheader226:                                    ; preds = %.thread, %45
  %38 = phi i1 [ false, %.thread ], [ true, %45 ]
  %39 = phi i1 [ true, %.thread ], [ false, %45 ]
  %.0235 = phi i32 [ 0, %.thread ], [ 1, %45 ]
  br label %.preheader225

40:                                               ; preds = %45
  %41 = icmp sgt i32 %1, 449
  %or.cond65 = and i1 %41, %18
  br i1 %or.cond65, label %148, label %151

.preheader225:                                    ; preds = %.preheader226, %46
  %42 = phi i1 [ false, %.preheader226 ], [ true, %46 ]
  %43 = phi i1 [ true, %.preheader226 ], [ false, %46 ]
  %.0186234 = phi i32 [ 0, %.preheader226 ], [ 1, %46 ]
  %44 = or i32 %.0186234, %.0235
  %or.cond218.peel = and i1 %42, %switch.peel
  %or.cond218.us = and i1 %42, %switch.us
  %or.cond218.us.1 = and i1 %42, %switch.us.1
  %or.cond218.us.2 = and i1 %42, %switch.us.2
  %or.cond218.us.3 = and i1 %42, %switch.us.3
  %brmerge = select i1 %or.cond211.peel, i1 true, i1 %or.cond218.peel
  %brmerge266 = select i1 %or.cond211.us, i1 true, i1 %or.cond218.us
  br label %47

45:                                               ; preds = %46
  br i1 %39, label %.preheader226, label %40, !llvm.loop !5

46:                                               ; preds = %.loopexit224
  br i1 %43, label %.preheader225, label %45, !llvm.loop !7

47:                                               ; preds = %.preheader225, %.loopexit224
  %.0187233 = phi i32 [ 0, %.preheader225 ], [ %147, %.loopexit224 ]
  %48 = icmp ne i32 %.0187233, 0
  %49 = or i32 %.0187233, %.0235
  %or.cond5 = icmp ne i32 %49, 0
  %or.cond7 = and i1 %42, %or.cond5
  br i1 %or.cond7, label %.loopexit224, label %50

50:                                               ; preds = %47
  %or.cond11 = and i1 %20, %48
  %or.cond13 = and i1 %38, %48
  %or.cond15 = and i1 %8, %or.cond13
  %or.cond198 = or i1 %or.cond11, %or.cond15
  %or.cond17 = and i1 %8, %48
  %or.cond19 = and i1 %9, %or.cond17
  %or.cond199 = or i1 %or.cond19, %or.cond198
  br i1 %or.cond199, label %.loopexit224, label %.preheader223

.preheader223:                                    ; preds = %50
  %51 = or i32 %.0187233, %.0186234
  br label %.preheader222

.preheader222:                                    ; preds = %.preheader223, %.split231.us
  %52 = phi i1 [ false, %.preheader223 ], [ true, %.split231.us ]
  %53 = phi i1 [ true, %.preheader223 ], [ false, %.split231.us ]
  %.0188232 = phi i32 [ 0, %.preheader223 ], [ 1, %.split231.us ]
  %54 = or i32 %44, %.0188232
  %or.cond221 = icmp eq i32 %54, 0
  %or.cond45 = and i1 %48, %52
  %or.cond47 = and i1 %8, %or.cond45
  %or.cond49 = and i1 %9, %or.cond47
  br i1 %or.cond49, label %.split231.us, label %.preheader222.split.preheader

.preheader222.split.preheader:                    ; preds = %.preheader222
  %55 = or i32 %51, %.0188232
  %or.cond43.not = icmp ne i32 %55, 0
  %brmerge.not242 = or i1 %or.cond43.not, %16
  br label %.preheader222.split

.split231.us:                                     ; preds = %60, %.preheader222.split, %.loopexit, %.preheader.split.us.3, %.preheader222, %107
  br i1 %53, label %.preheader222, label %.loopexit224, !llvm.loop !8

.preheader222.split:                              ; preds = %.preheader222.split.preheader, %.loopexit
  %.0189228 = phi i32 [ %146, %.loopexit ], [ 1, %.preheader222.split.preheader ]
  %56 = icmp eq i32 %.0189228, 7
  %57 = load i32, ptr %21, align 4
  %58 = icmp eq i32 %57, 0
  %or.cond202 = select i1 %56, i1 %58, i1 false
  br i1 %or.cond202, label %.split231.us, label %59

59:                                               ; preds = %.preheader222.split
  br i1 %56, label %60, label %.thread212

60:                                               ; preds = %59
  br i1 %or.cond221, label %.thread215, label %.split231.us

.thread212:                                       ; preds = %59
  %61 = icmp eq i32 %.0189228, 1
  %62 = icmp eq i32 %.0189228, 5
  %or.cond25213 = or i1 %61, %62
  %or.cond27214 = and i1 %8, %or.cond25213
  br i1 %or.cond27214, label %.loopexit, label %.thread215

.thread215:                                       ; preds = %60, %.thread212
  %63 = phi i1 [ %62, %.thread212 ], [ false, %60 ]
  br i1 %48, label %switch.early.test, label %64

switch.early.test:                                ; preds = %.thread215
  switch i32 %.0189228, label %.loopexit [
    i32 7, label %64
    i32 2, label %64
  ]

64:                                               ; preds = %switch.early.test, %switch.early.test, %.thread215
  %65 = icmp eq i32 %.0189228, 6
  %or.cond241.not = and i1 %65, %brmerge.not242
  br i1 %or.cond241.not, label %.loopexit, label %66

66:                                               ; preds = %64
  %67 = icmp eq i32 %.0189228, 3
  %or.cond51 = and i1 %42, %67
  br i1 %or.cond51, label %.loopexit, label %68

68:                                               ; preds = %66
  %69 = icmp eq i32 %.0189228, 4
  %70 = and i1 %17, %69
  %71 = or i1 %70, %63
  %brmerge209.demorgan220 = or i1 %67, %71
  %or.cond210 = and i1 %52, %brmerge209.demorgan220
  br i1 %or.cond210, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %68
  br i1 %56, label %.preheader.split.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  br i1 %brmerge, label %.preheader.split.peel.next, label %72

72:                                               ; preds = %.preheader.split.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  br i1 %38, label %74, label %73

73:                                               ; preds = %72
  call void @_ZN7glslang8TSampler3setENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %24, i32 noundef %.0189228, i1 noundef zeroext %52, i1 noundef zeroext %42, i1 noundef zeroext %48)
  br label %75

74:                                               ; preds = %72
  call void @_ZN7glslang8TSampler8setImageENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %24, i32 noundef %.0189228, i1 noundef zeroext %52, i1 noundef zeroext %42, i1 noundef zeroext %48)
  br label %75

75:                                               ; preds = %74, %73
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.070.0.copyload.peel = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.070.0.copyload.peel, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %76 unwind label %.split.loopexit.split-lp

76:                                               ; preds = %75
  %.sroa.069.0.copyload.peel = load i32, ptr %5, align 4, !tbaa !9
  br i1 %38, label %98, label %77

77:                                               ; preds = %76
  invoke void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.069.0.copyload.peel, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %78 unwind label %.split.loopexit.split-lp

78:                                               ; preds = %77
  %.sroa.067.0.copyload.peel = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns18addGatherFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.067.0.copyload.peel, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %79 unwind label %.split.loopexit.split-lp

79:                                               ; preds = %78
  %80 = load i32, ptr %21, align 4, !tbaa !12
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %82, label %99

82:                                               ; preds = %79
  %83 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %83, label %84, label %99

84:                                               ; preds = %82
  %85 = load i32, ptr %5, align 4
  %86 = and i32 %85, 131072
  %.not.peel = icmp eq i32 %86, 0
  br i1 %.not.peel, label %87, label %99

87:                                               ; preds = %84
  %88 = and i32 %85, 255
  %89 = lshr i32 %85, 8
  %90 = and i32 %89, 255
  %91 = and i32 %85, 65536
  %92 = icmp ne i32 %91, 0
  %93 = and i32 %85, 262144
  %94 = icmp ne i32 %93, 0
  call void @_ZN7glslang8TSampler10setTextureENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %88, i32 noundef %90, i1 noundef zeroext %92, i1 noundef zeroext false, i1 noundef zeroext %94)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #3
  invoke void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %95 unwind label %.loopexit.split-lp

95:                                               ; preds = %87
  %.sroa.066.0.copyload.peel = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.066.0.copyload.peel, ptr noundef nonnull align 8 dereferenceable(40) %7, i32 noundef %1, i32 noundef %2)
          to label %96 unwind label %.loopexit.split-lp252

96:                                               ; preds = %95
  %.sroa.0.0.copyload.peel = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.0.0.copyload.peel, ptr noundef nonnull align 8 dereferenceable(40) %7, i32 noundef %1, i32 noundef %2)
          to label %97 unwind label %.loopexit.split-lp252

97:                                               ; preds = %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #3
  br label %99

98:                                               ; preds = %76
  invoke void @_ZN7glslang9TBuiltIns17addImageFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.069.0.copyload.peel, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %99 unwind label %.split.loopexit.split-lp

99:                                               ; preds = %98, %97, %84, %82, %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %.preheader.split.peel.next

.preheader.split.peel.next:                       ; preds = %.preheader.split.preheader, %99
  %or.cond63 = and i1 %63, %23
  br label %.preheader.split

.preheader.split.us.preheader:                    ; preds = %.preheader
  br i1 %brmerge266, label %.preheader.split.us.1, label %100

100:                                              ; preds = %.preheader.split.us.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %24, i1 noundef zeroext %48)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.071.0.copyload.us = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.071.0.copyload.us, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %101 unwind label %.split.us

101:                                              ; preds = %100
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %.preheader.split.us.1

.preheader.split.us.1:                            ; preds = %.preheader.split.us.preheader, %101
  %or.cond63.us.1 = and i1 %63, %23
  %or.cond267 = or i1 %or.cond211.us.1, %or.cond63.us.1
  %brmerge268 = select i1 %or.cond267, i1 true, i1 %or.cond218.us.1
  br i1 %brmerge268, label %.preheader.split.us.2, label %102

102:                                              ; preds = %.preheader.split.us.1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %29, i1 noundef zeroext %48)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.071.0.copyload.us.1 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.071.0.copyload.us.1, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %103 unwind label %.split.us

103:                                              ; preds = %102
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %.preheader.split.us.2

.preheader.split.us.2:                            ; preds = %.preheader.split.us.1, %103
  %or.cond63.us.2 = and i1 %63, %23
  %or.cond269 = or i1 %or.cond211.us.2, %or.cond63.us.2
  %brmerge270 = select i1 %or.cond269, i1 true, i1 %or.cond218.us.2
  br i1 %brmerge270, label %.preheader.split.us.3, label %104

104:                                              ; preds = %.preheader.split.us.2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %32, i1 noundef zeroext %48)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.071.0.copyload.us.2 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.071.0.copyload.us.2, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %105 unwind label %.split.us

105:                                              ; preds = %104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %.preheader.split.us.3

.preheader.split.us.3:                            ; preds = %.preheader.split.us.2, %105
  %or.cond63.us.3 = and i1 %63, %23
  %or.cond271 = or i1 %or.cond211.us.3, %or.cond63.us.3
  %brmerge272 = select i1 %or.cond271, i1 true, i1 %or.cond218.us.3
  br i1 %brmerge272, label %.split231.us, label %106

106:                                              ; preds = %.preheader.split.us.3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %35, i1 noundef zeroext %48)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.071.0.copyload.us.3 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.071.0.copyload.us.3, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %107 unwind label %.split.us

107:                                              ; preds = %106
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %.split231.us

.split.us:                                        ; preds = %106, %104, %102, %100
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.preheader.split:                                 ; preds = %.preheader.split.peel.next, %144
  %.0193227 = phi i64 [ %145, %144 ], [ 1, %.preheader.split.peel.next ]
  %109 = getelementptr inbounds [4 x i32], ptr @__const._ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE.bTypes, i64 0, i64 %.0193227
  %110 = load i32, ptr %109, align 4, !tbaa !16
  %111 = icmp eq i32 %110, 3
  %or.cond211 = and i1 %or.cond59, %111
  %brmerge273 = or i1 %or.cond211, %or.cond63
  br i1 %brmerge273, label %144, label %112

112:                                              ; preds = %.preheader.split
  %113 = and i32 %110, -2
  %switch = icmp eq i32 %113, 8
  %or.cond218 = and i1 %42, %switch
  br i1 %or.cond218, label %144, label %114

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  br i1 %38, label %115, label %116

115:                                              ; preds = %114
  call void @_ZN7glslang8TSampler8setImageENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %110, i32 noundef %.0189228, i1 noundef zeroext %52, i1 noundef zeroext %42, i1 noundef zeroext %48)
  br label %117

116:                                              ; preds = %114
  call void @_ZN7glslang8TSampler3setENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %110, i32 noundef %.0189228, i1 noundef zeroext %52, i1 noundef zeroext %42, i1 noundef zeroext %48)
  br label %117

.split.loopexit:                                  ; preds = %117, %119, %120, %121
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split.loopexit.split-lp:                         ; preds = %75, %77, %78, %98
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.split

117:                                              ; preds = %115, %116
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %.sroa.070.0.copyload = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.070.0.copyload, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %118 unwind label %.split.loopexit

118:                                              ; preds = %117
  %.sroa.069.0.copyload = load i32, ptr %5, align 4, !tbaa !9
  br i1 %38, label %119, label %120

119:                                              ; preds = %118
  invoke void @_ZN7glslang9TBuiltIns17addImageFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.069.0.copyload, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %143 unwind label %.split.loopexit

120:                                              ; preds = %118
  invoke void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.069.0.copyload, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %121 unwind label %.split.loopexit

121:                                              ; preds = %120
  %.sroa.067.0.copyload = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns18addGatherFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.067.0.copyload, ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1, i32 noundef %2)
          to label %122 unwind label %.split.loopexit

122:                                              ; preds = %121
  %123 = load i32, ptr %21, align 4, !tbaa !12
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %125, label %143

125:                                              ; preds = %122
  %126 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %126, label %127, label %143

127:                                              ; preds = %125
  %128 = load i32, ptr %5, align 4
  %129 = and i32 %128, 131072
  %.not = icmp eq i32 %129, 0
  br i1 %.not, label %130, label %143

130:                                              ; preds = %127
  %131 = and i32 %128, 255
  %132 = lshr i32 %128, 8
  %133 = and i32 %132, 255
  %134 = and i32 %128, 65536
  %135 = icmp ne i32 %134, 0
  %136 = and i32 %128, 262144
  %137 = icmp ne i32 %136, 0
  call void @_ZN7glslang8TSampler10setTextureENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %131, i32 noundef %133, i1 noundef zeroext %135, i1 noundef zeroext false, i1 noundef zeroext %137)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #3
  invoke void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %138 unwind label %.loopexit247

138:                                              ; preds = %130
  %.sroa.066.0.copyload = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.066.0.copyload, ptr noundef nonnull align 8 dereferenceable(40) %7, i32 noundef %1, i32 noundef %2)
          to label %139 unwind label %.loopexit251

139:                                              ; preds = %138
  %.sroa.0.0.copyload = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856) %0, i32 %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(40) %7, i32 noundef %1, i32 noundef %2)
          to label %140 unwind label %.loopexit251

140:                                              ; preds = %139
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #3
  br label %143

.loopexit247:                                     ; preds = %130
  %lpad.loopexit248 = landingpad { ptr, i32 }
          cleanup
  br label %142

.loopexit.split-lp:                               ; preds = %87
  %lpad.loopexit.split-lp249 = landingpad { ptr, i32 }
          cleanup
  br label %142

.loopexit251:                                     ; preds = %138, %139
  %lpad.loopexit253 = landingpad { ptr, i32 }
          cleanup
  br label %141

.loopexit.split-lp252:                            ; preds = %95, %96
  %lpad.loopexit.split-lp254 = landingpad { ptr, i32 }
          cleanup
  br label %141

141:                                              ; preds = %.loopexit.split-lp252, %.loopexit251
  %lpad.phi255 = phi { ptr, i32 } [ %lpad.loopexit253, %.loopexit251 ], [ %lpad.loopexit.split-lp254, %.loopexit.split-lp252 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  br label %142

142:                                              ; preds = %.loopexit247, %.loopexit.split-lp, %141
  %.pn = phi { ptr, i32 } [ %lpad.phi255, %141 ], [ %lpad.loopexit248, %.loopexit247 ], [ %lpad.loopexit.split-lp249, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #3
  br label %.split

143:                                              ; preds = %119, %140, %127, %125, %122
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %144

144:                                              ; preds = %.preheader.split, %112, %143
  %145 = add nuw nsw i64 %.0193227, 1
  %exitcond.not = icmp eq i64 %145, 4
  br i1 %exitcond.not, label %.loopexit, label %.preheader.split, !llvm.loop !18

.split:                                           ; preds = %.split.loopexit, %.split.loopexit.split-lp, %.split.us, %142
  %.pn196 = phi { ptr, i32 } [ %.pn, %142 ], [ %108, %.split.us ], [ %lpad.loopexit, %.split.loopexit ], [ %lpad.loopexit.split-lp, %.split.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  resume { ptr, i32 } %.pn196

.loopexit:                                        ; preds = %144, %.thread212, %68, %64, %switch.early.test, %66
  %146 = add nuw nsw i32 %.0189228, 1
  %exitcond257.not = icmp eq i32 %146, 8
  br i1 %exitcond257.not, label %.split231.us, label %.preheader222.split, !llvm.loop !20

.loopexit224:                                     ; preds = %.split231.us, %50, %47
  %147 = add i32 %.0187233, 1
  %exitcond258.not = icmp eq i32 %147, 2
  br i1 %exitcond258.not, label %46, label %47, !llvm.loop !21

148:                                              ; preds = %40
  %149 = getelementptr inbounds i8, ptr %0, i64 8
  %150 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %149, ptr noundef nonnull @.str.344)
  br label %151

151:                                              ; preds = %148, %40
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7glslang8TSampler9getStringB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns17addImageFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang8TSampler10setSubpassENS_10TBasicTypeEb(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang8TSampler3setENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang9TBuiltIns18addGatherFunctionsENS_8TSamplerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEi8EProfile(ptr noundef nonnull align 8 dereferenceable(856), i32, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang8TSampler10setTextureENS_10TBasicTypeENS_11TSamplerDimEbbb(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = !{!10, !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!13, !14, i64 8}
!13 = !{!"_ZTSN7glslang10SpvVersionE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !15, i64 16}
!14 = !{!"int", !10, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTSN7glslang10TBasicTypeE", !10, i64 0}
!18 = distinct !{!18, !6, !19}
!19 = !{!"llvm.loop.peeled.count", i32 1}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass