; 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.141 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.347 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.348 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [8 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.352 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [24 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 void @_ZN7glslang14pool_allocatorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) 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) #2 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)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_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) #2 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 [2 x %"class.std::__cxx11::basic_string"], align 16
  %14 = alloca ptr, align 8
  %15 = alloca %"class.glslang::pool_allocator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.glslang::pool_allocator", align 8
  %19 = alloca i1, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = getelementptr inbounds %"struct.glslang::TSampler", ptr %6, i32 0, i32 0
  store i32 %1, ptr %22, 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
  %23 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %24 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 3
  %25 = load i32, ptr %6, align 4
  %26 = lshr i32 %25, 8
  %27 = and i32 %26, 255
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [8 x i32], ptr %24, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = load i32, ptr %6, align 4
  %32 = lshr i32 %31, 16
  %33 = and i32 %32, 1
  %34 = trunc i32 %33 to i1
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, i32 1, i32 0
  %37 = add nsw i32 %30, %36
  %38 = load i32, ptr %6, align 4
  %39 = lshr i32 %38, 8
  %40 = and i32 %39, 255
  %41 = icmp eq i32 %40, 4
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, i32 1, i32 0
  %44 = sub nsw i32 %37, %43
  store i32 %44, ptr %11, align 4, !tbaa !9
  %45 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %45, label %46, label %59

46:                                               ; preds = %5
  %47 = load i32, ptr %10, align 4, !tbaa !11
  %48 = icmp eq i32 %47, 8
  br i1 %48, label %49, label %52

49:                                               ; preds = %46
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = icmp slt i32 %50, 310
  br i1 %51, label %58, label %52

52:                                               ; preds = %49, %46
  %53 = load i32, ptr %10, align 4, !tbaa !11
  %54 = icmp ne i32 %53, 8
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 420
  br i1 %57, label %58, label %59

58:                                               ; preds = %55, %49
  store i32 1, ptr %12, align 4
  br label %366

59:                                               ; preds = %55, %52, %5
  %60 = load i32, ptr %10, align 4, !tbaa !11
  %61 = icmp eq i32 %60, 8
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %63, ptr noundef @.str.345)
  br label %65

65:                                               ; preds = %62, %59
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %71

68:                                               ; preds = %65
  %69 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %70 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %69, ptr noundef @.str.141)
  br label %81

71:                                               ; preds = %65
  %72 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %73 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %72, ptr noundef @.str.346)
  %74 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %75 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 1
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [5 x ptr], ptr %75, i64 0, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %74, ptr noundef %79)
  br label %81

81:                                               ; preds = %71, %68
  %82 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %82, label %83, label %86

83:                                               ; preds = %81
  %84 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %85 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %84, ptr noundef @.str.347)
  br label %89

86:                                               ; preds = %81
  %87 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %88 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %87, ptr noundef @.str.348)
  br label %89

89:                                               ; preds = %86, %83
  %90 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %90, ptr noundef nonnull align 8 dereferenceable(40) %91)
  %93 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %93, label %103, label %94

94:                                               ; preds = %89
  %95 = call noundef zeroext i1 @_ZNK7glslang8TSampler6isRectEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %95, label %103, label %96

96:                                               ; preds = %94
  %97 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %97, label %103, label %98

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

100:                                              ; preds = %98
  %101 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %102 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %101, ptr noundef @.str.349)
  br label %106

103:                                              ; preds = %98, %96, %94, %89
  %104 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %105 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %104, ptr noundef @.str.350)
  br label %106

106:                                              ; preds = %103, %100
  %107 = load i32, ptr %10, align 4, !tbaa !11
  %108 = icmp ne i32 %107, 8
  br i1 %108, label %109, label %130

109:                                              ; preds = %106
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = icmp sge i32 %110, 430
  br i1 %111, label %112, label %130

112:                                              ; preds = %109
  %113 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %113, label %114, label %130

114:                                              ; preds = %112
  %115 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %116 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %115, ptr noundef @.str.351)
  %117 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %117, label %118, label %121

118:                                              ; preds = %114
  %119 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %120 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %119, ptr noundef @.str.352)
  br label %124

121:                                              ; preds = %114
  %122 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %123 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %122, ptr noundef @.str.353)
  br label %124

124:                                              ; preds = %121, %118
  %125 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %125, ptr noundef nonnull align 8 dereferenceable(40) %126)
  %128 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %129 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %128, ptr noundef @.str.350)
  br label %130

130:                                              ; preds = %124, %112, %109, %106
  %131 = load i32, ptr %10, align 4, !tbaa !11
  %132 = icmp ne i32 %131, 8
  br i1 %132, label %133, label %340

133:                                              ; preds = %130
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = icmp sge i32 %134, 150
  br i1 %135, label %136, label %340

136:                                              ; preds = %133
  %137 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %137, label %138, label %340

138:                                              ; preds = %136
  %139 = load i32, ptr %6, align 4
  %140 = lshr i32 %139, 8
  %141 = and i32 %140, 255
  %142 = icmp ne i32 %141, 5
  br i1 %142, label %143, label %340

143:                                              ; preds = %138
  %144 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %144, label %340, label %145

145:                                              ; preds = %143
  %146 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %146, label %340, label %147

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #3
  store i1 true, ptr %19, align 1
  store ptr %13, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  invoke void @_ZN7glslang14pool_allocatorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %148 unwind label %157

148:                                              ; preds = %147
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef @.str.354, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %149 unwind label %157

149:                                              ; preds = %148
  %150 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %13, i64 1
  store ptr %150, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  invoke void @_ZN7glslang14pool_allocatorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %151 unwind label %161

151:                                              ; preds = %149
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %150, ptr noundef @.str.355, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %152 unwind label %161

152:                                              ; preds = %151
  store i1 false, ptr %19, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %320, %152
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = icmp slt i32 %154, 2
  br i1 %155, label %176, label %156

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

157:                                              ; preds = %148, %147
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %16, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %17, align 4
  br label %165

161:                                              ; preds = %151, %149
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %16, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %165

165:                                              ; preds = %161, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %166 = load i1, ptr %19, align 1
  br i1 %166, label %167, label %175

167:                                              ; preds = %165
  %168 = load ptr, ptr %14, align 8
  %169 = icmp eq ptr %13, %168
  br i1 %169, label %174, label %170

170:                                              ; preds = %170, %167
  %171 = phi ptr [ %168, %167 ], [ %172, %170 ]
  %172 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %171, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %172) #3
  %173 = icmp eq ptr %172, %13
  br i1 %173, label %174, label %170

174:                                              ; preds = %170, %167
  br label %175

175:                                              ; preds = %174, %165
  br label %339

176:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %262, %176
  %178 = load i32, ptr %21, align 4, !tbaa !9
  %179 = icmp slt i32 %178, 2
  br i1 %179, label %181, label %180

180:                                              ; preds = %177
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %265

181:                                              ; preds = %177
  %182 = load i32, ptr %21, align 4, !tbaa !9
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %189

184:                                              ; preds = %181
  %185 = load i32, ptr %6, align 4
  %186 = and i32 %185, 255
  %187 = icmp ne i32 %186, 3
  br i1 %187, label %188, label %189

188:                                              ; preds = %184
  br label %262

189:                                              ; preds = %184, %181
  %190 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %191 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %190, i64 0, i64 4
  %192 = load i32, ptr %20, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %193
  %195 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %191, ptr noundef nonnull align 8 dereferenceable(40) %194)
          to label %196 unwind label %218

196:                                              ; preds = %189
  %197 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %198 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %197, i64 0, i64 4
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %198, ptr noundef nonnull align 8 dereferenceable(40) %199)
          to label %201 unwind label %218

201:                                              ; preds = %196
  %202 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 3
  %203 = load i32, ptr %6, align 4
  %204 = lshr i32 %203, 8
  %205 = and i32 %204, 255
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds [8 x i32], ptr %202, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = icmp eq i32 %208, 1
  br i1 %209, label %210, label %228

210:                                              ; preds = %201
  %211 = load i32, ptr %21, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %222

213:                                              ; preds = %210
  %214 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %215 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %214, i64 0, i64 4
  %216 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %215, ptr noundef @.str.356)
          to label %217 unwind label %218

217:                                              ; preds = %213
  br label %227

218:                                              ; preds = %257, %241, %236, %231, %222, %213, %196, %189
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %16, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %323

222:                                              ; preds = %210
  %223 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %224 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %223, i64 0, i64 4
  %225 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %224, ptr noundef @.str.357)
          to label %226 unwind label %218

226:                                              ; preds = %222
  br label %227

227:                                              ; preds = %226, %217
  br label %257

228:                                              ; preds = %201
  %229 = load i32, ptr %21, align 4, !tbaa !9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %236

231:                                              ; preds = %228
  %232 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %233 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %232, i64 0, i64 4
  %234 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %233, ptr noundef @.str.358)
          to label %235 unwind label %218

235:                                              ; preds = %231
  br label %241

236:                                              ; preds = %228
  %237 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %238 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %237, i64 0, i64 4
  %239 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %238, ptr noundef @.str.359)
          to label %240 unwind label %218

240:                                              ; preds = %236
  br label %241

241:                                              ; preds = %240, %235
  %242 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %243 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %242, i64 0, i64 4
  %244 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 1
  %245 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 3
  %246 = load i32, ptr %6, align 4
  %247 = lshr i32 %246, 8
  %248 = and i32 %247, 255
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds [8 x i32], ptr %245, i64 0, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [5 x ptr], ptr %244, i64 0, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  %255 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %243, ptr noundef %254)
          to label %256 unwind label %218

256:                                              ; preds = %241
  br label %257

257:                                              ; preds = %256, %227
  %258 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %259 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %258, i64 0, i64 4
  %260 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %259, ptr noundef @.str.350)
          to label %261 unwind label %218

261:                                              ; preds = %257
  br label %262

262:                                              ; preds = %261, %188
  %263 = load i32, ptr %21, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %21, align 4, !tbaa !9
  br label %177, !llvm.loop !13

265:                                              ; preds = %180
  %266 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %267 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %266, i64 0, i64 5
  %268 = load i32, ptr %20, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %269
  %271 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %267, ptr noundef nonnull align 8 dereferenceable(40) %270)
          to label %272 unwind label %291

272:                                              ; preds = %265
  %273 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %274 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %273, i64 0, i64 5
  %275 = load ptr, ptr %8, align 8, !tbaa !5
  %276 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %274, ptr noundef nonnull align 8 dereferenceable(40) %275)
          to label %277 unwind label %291

277:                                              ; preds = %272
  %278 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 3
  %279 = load i32, ptr %6, align 4
  %280 = lshr i32 %279, 8
  %281 = and i32 %280, 255
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds [8 x i32], ptr %278, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !9
  %285 = icmp eq i32 %284, 1
  br i1 %285, label %286, label %295

286:                                              ; preds = %277
  %287 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %288 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %287, i64 0, i64 5
  %289 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %288, ptr noundef @.str.357)
          to label %290 unwind label %291

290:                                              ; preds = %286
  br label %315

291:                                              ; preds = %315, %299, %295, %286, %272, %265
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %16, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %17, align 4
  br label %323

295:                                              ; preds = %277
  %296 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %297 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %296, i64 0, i64 5
  %298 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %297, ptr noundef @.str.359)
          to label %299 unwind label %291

299:                                              ; preds = %295
  %300 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %301 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %300, i64 0, i64 5
  %302 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 1
  %303 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %23, i32 0, i32 3
  %304 = load i32, ptr %6, align 4
  %305 = lshr i32 %304, 8
  %306 = and i32 %305, 255
  %307 = zext i32 %306 to i64
  %308 = getelementptr inbounds [8 x i32], ptr %303, i64 0, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [5 x ptr], ptr %302, i64 0, i64 %310
  %312 = load ptr, ptr %311, align 8, !tbaa !5
  %313 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %301, ptr noundef %312)
          to label %314 unwind label %291

314:                                              ; preds = %299
  br label %315

315:                                              ; preds = %314, %290
  %316 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 2
  %317 = getelementptr inbounds [14 x %"class.std::__cxx11::basic_string"], ptr %316, i64 0, i64 5
  %318 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %317, ptr noundef @.str.350)
          to label %319 unwind label %291

319:                                              ; preds = %315
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %20, align 4, !tbaa !9
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %20, align 4, !tbaa !9
  br label %153, !llvm.loop !15

323:                                              ; preds = %291, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  %324 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %13, i32 0, i32 0
  %325 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %324, i64 2
  br label %334

326:                                              ; preds = %156
  %327 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %13, i32 0, i32 0
  %328 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %327, i64 2
  br label %329

329:                                              ; preds = %329, %326
  %330 = phi ptr [ %328, %326 ], [ %331, %329 ]
  %331 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %330, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %331) #3
  %332 = icmp eq ptr %331, %327
  br i1 %332, label %333, label %329

333:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #3
  br label %340

334:                                              ; preds = %334, %323
  %335 = phi ptr [ %325, %323 ], [ %336, %334 ]
  %336 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %335, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %336) #3
  %337 = icmp eq ptr %336, %324
  br i1 %337, label %338, label %334

338:                                              ; preds = %334
  br label %339

339:                                              ; preds = %338, %175
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %369

340:                                              ; preds = %333, %145, %143, %138, %136, %133, %130
  %341 = load i32, ptr %10, align 4, !tbaa !11
  %342 = icmp ne i32 %341, 8
  br i1 %342, label %343, label %365

343:                                              ; preds = %340
  %344 = load i32, ptr %9, align 4, !tbaa !9
  %345 = icmp sge i32 %344, 430
  br i1 %345, label %346, label %365

346:                                              ; preds = %343
  %347 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %347, label %365, label %348

348:                                              ; preds = %346
  %349 = load i32, ptr %6, align 4
  %350 = lshr i32 %349, 8
  %351 = and i32 %350, 255
  %352 = icmp ne i32 %351, 5
  br i1 %352, label %353, label %365

353:                                              ; preds = %348
  %354 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %354, label %365, label %355

355:                                              ; preds = %353
  %356 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %356, label %365, label %357

357:                                              ; preds = %355
  %358 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %359 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %358, ptr noundef @.str.360)
  %360 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %361 = load ptr, ptr %8, align 8, !tbaa !5
  %362 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %360, ptr noundef nonnull align 8 dereferenceable(40) %361)
  %363 = getelementptr inbounds %"class.glslang::TBuiltInParseables", ptr %23, i32 0, i32 1
  %364 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %363, ptr noundef @.str.350)
  br label %365

365:                                              ; preds = %357, %355, %353, %348, %346, %343, %340
  store i32 0, ptr %12, align 4
  br label %366

366:                                              ; preds = %365, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %367 = load i32, ptr %12, align 4
  switch i32 %367, label %374 [
    i32 0, label %368
    i32 1, label %368
  ]

368:                                              ; preds = %366, %366
  ret void

369:                                              ; preds = %339
  %370 = load ptr, ptr %16, align 8
  %371 = load i32, ptr %17, align 4
  %372 = insertvalue { ptr, i32 } poison, ptr %370, 0
  %373 = insertvalue { ptr, i32 } %372, i32 %371, 1
  resume { ptr, i32 } %373

374:                                              ; preds = %366
  unreachable
}

; 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 noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8EProfile", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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.141 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.347 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.348 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.349 = external hidden unnamed_addr constant [8 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.352 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [24 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 void @_ZN7glslang14pool_allocatorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) 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 #2 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltIns17addQueryFunctionsENS_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 #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.glslang::TSampler", align 4
  %7 = alloca [2 x %"class.std::__cxx11::basic_string"], align 16
  %8 = alloca %"class.glslang::pool_allocator", align 8
  %9 = alloca %"class.glslang::pool_allocator", align 8
  store i32 %1, ptr %6, align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 824
  %11 = lshr i32 %1, 8
  %12 = and i32 %11, 255
  %13 = zext nneg i32 %12 to i64
  %14 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = lshr i32 %1, 16
  %.lobit = and i32 %16, 1
  %17 = icmp eq i32 %12, 4
  %.neg = sext i1 %17 to i32
  %18 = add nsw i32 %.lobit, %.neg
  %19 = add i32 %18, %15
  %20 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %20, label %21, label %27

21:                                               ; preds = %5
  %22 = icmp eq i32 %4, 8
  %23 = icmp slt i32 %3, 310
  %or.cond = and i1 %23, %22
  br i1 %or.cond, label %280, label %24

24:                                               ; preds = %21
  %25 = icmp ne i32 %4, 8
  %26 = icmp slt i32 %3, 420
  %or.cond3 = and i1 %26, %25
  br i1 %or.cond3, label %280, label %27

27:                                               ; preds = %24, %5
  %28 = icmp eq i32 %4, 8
  br i1 %28, label %29, label %32

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  %31 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull @.str.345)
  br label %32

32:                                               ; preds = %29, %27
  %33 = icmp eq i32 %19, 1
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  br i1 %33, label %35, label %37

35:                                               ; preds = %32
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef nonnull @.str.141)
  br label %44

37:                                               ; preds = %32
  %38 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef nonnull @.str.346)
  %39 = getelementptr inbounds i8, ptr %0, i64 608
  %40 = sext i32 %19 to i64
  %41 = getelementptr inbounds [5 x ptr], ptr %39, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef %42)
  br label %44

44:                                               ; preds = %37, %35
  %45 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %.str.347..str.348 = select i1 %45, ptr @.str.347, ptr @.str.348
  %47 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %46, ptr noundef nonnull %.str.347..str.348)
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  %49 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(40) %2)
  %50 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %50, label %57, label %51

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

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

55:                                               ; preds = %53
  %56 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %56, label %57, label %58

57:                                               ; preds = %55, %53, %51, %44
  br label %58

58:                                               ; preds = %55, %57
  %.str.350.sink = phi ptr [ @.str.350, %57 ], [ @.str.349, %55 ]
  %59 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull %.str.350.sink)
  %60 = icmp ne i32 %4, 8
  %61 = icmp sgt i32 %3, 429
  %or.cond5 = and i1 %61, %60
  br i1 %or.cond5, label %62, label %70

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

64:                                               ; preds = %62
  %65 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull @.str.351)
  %66 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %.str.352..str.353 = select i1 %66, ptr @.str.352, ptr @.str.353
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull %.str.352..str.353)
  %68 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(40) %2)
  %69 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull @.str.350)
  br label %70

70:                                               ; preds = %64, %62, %58
  %71 = icmp sgt i32 %3, 149
  %or.cond7 = and i1 %71, %60
  br i1 %or.cond7, label %72, label %266

72:                                               ; preds = %70
  %73 = call noundef zeroext i1 @_ZNK7glslang8TSampler10isCombinedEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %73, label %74, label %266

74:                                               ; preds = %72
  %75 = load i32, ptr %6, align 4
  %76 = and i32 %75, 65280
  %.not = icmp eq i32 %76, 1280
  br i1 %.not, label %266, label %77

77:                                               ; preds = %74
  %78 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %78, label %266, label %79

79:                                               ; preds = %77
  %80 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %80, label %266, label %81

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @_ZN7glslang14pool_allocatorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull @.str.354, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %82 = getelementptr inbounds i8, ptr %7, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  invoke void @_ZN7glslang14pool_allocatorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %83 unwind label %.loopexit.loopexit62

83:                                               ; preds = %81
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(40) %82, ptr noundef nonnull @.str.355, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %85 unwind label %.loopexit.loopexit62

.loopexit.loopexit62:                             ; preds = %81, %83
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  br label %.loopexit

85:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  %86 = getelementptr inbounds i8, ptr %0, i64 208
  %87 = getelementptr inbounds i8, ptr %0, i64 608
  %88 = getelementptr inbounds i8, ptr %0, i64 248
  %89 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %90 unwind label %100

90:                                               ; preds = %85
  %91 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %92 unwind label %100

92:                                               ; preds = %90
  %93 = load i32, ptr %6, align 4
  %94 = lshr i32 %93, 8
  %95 = and i32 %94, 255
  %96 = zext nneg i32 %95 to i64
  %97 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = icmp eq i32 %98, 1
  br i1 %99, label %102, label %104

100:                                              ; preds = %232, %230, %._crit_edge82, %219, %209, %207, %202, %200, %._crit_edge77, %189, %179, %.preheader.1, %145, %143, %._crit_edge71, %132, %122, %120, %115, %._crit_edge67, %104, %102, %90, %85
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

102:                                              ; preds = %92
  %103 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.357)
          to label %115 unwind label %100

104:                                              ; preds = %92
  %105 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.359)
          to label %._crit_edge67 unwind label %100

._crit_edge67:                                    ; preds = %104
  %.pre = load i32, ptr %6, align 4
  %106 = lshr i32 %.pre, 8
  %107 = and i32 %106, 255
  %108 = zext nneg i32 %107 to i64
  %109 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [5 x ptr], ptr %87, i64 0, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef %113)
          to label %115 unwind label %100

115:                                              ; preds = %._crit_edge67, %102
  %116 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.350)
          to label %117 unwind label %100

117:                                              ; preds = %115
  %118 = load i32, ptr %6, align 4
  %119 = and i32 %118, 255
  %.not52.1 = icmp eq i32 %119, 3
  br i1 %.not52.1, label %120, label %147

120:                                              ; preds = %117
  %121 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %122 unwind label %100

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %124 unwind label %100

124:                                              ; preds = %122
  %125 = load i32, ptr %6, align 4
  %126 = lshr i32 %125, 8
  %127 = and i32 %126, 255
  %128 = zext nneg i32 %127 to i64
  %129 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %143, label %132

132:                                              ; preds = %124
  %133 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.358)
          to label %._crit_edge71 unwind label %100

._crit_edge71:                                    ; preds = %132
  %.pre72 = load i32, ptr %6, align 4
  %134 = lshr i32 %.pre72, 8
  %135 = and i32 %134, 255
  %136 = zext nneg i32 %135 to i64
  %137 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [5 x ptr], ptr %87, i64 0, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef %141)
          to label %145 unwind label %100

143:                                              ; preds = %124
  %144 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.356)
          to label %145 unwind label %100

145:                                              ; preds = %143, %._crit_edge71
  %146 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.350)
          to label %147 unwind label %100

147:                                              ; preds = %145, %117
  %148 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %149 unwind label %161

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %151 unwind label %161

151:                                              ; preds = %149
  %152 = load i32, ptr %6, align 4
  %153 = lshr i32 %152, 8
  %154 = and i32 %153, 255
  %155 = zext nneg i32 %154 to i64
  %156 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %163

159:                                              ; preds = %151
  %160 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull @.str.357)
          to label %176 unwind label %161

161:                                              ; preds = %261, %259, %248, %246, %236, %234, %176, %165, %163, %159, %149, %147
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

163:                                              ; preds = %151
  %164 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull @.str.359)
          to label %165 unwind label %161

165:                                              ; preds = %163
  %166 = load i32, ptr %6, align 4
  %167 = lshr i32 %166, 8
  %168 = and i32 %167, 255
  %169 = zext nneg i32 %168 to i64
  %170 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [5 x ptr], ptr %87, i64 0, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !9
  %175 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef %174)
          to label %176 unwind label %161

176:                                              ; preds = %165, %159
  %177 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull @.str.350)
          to label %.preheader.1 unwind label %161

.preheader.1:                                     ; preds = %176
  %178 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %82)
          to label %179 unwind label %100

179:                                              ; preds = %.preheader.1
  %180 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %181 unwind label %100

181:                                              ; preds = %179
  %182 = load i32, ptr %6, align 4
  %183 = lshr i32 %182, 8
  %184 = and i32 %183, 255
  %185 = zext nneg i32 %184 to i64
  %186 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %200, label %189

189:                                              ; preds = %181
  %190 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.359)
          to label %._crit_edge77 unwind label %100

._crit_edge77:                                    ; preds = %189
  %.pre78 = load i32, ptr %6, align 4
  %191 = lshr i32 %.pre78, 8
  %192 = and i32 %191, 255
  %193 = zext nneg i32 %192 to i64
  %194 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [5 x ptr], ptr %87, i64 0, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  %199 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef %198)
          to label %202 unwind label %100

200:                                              ; preds = %181
  %201 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.357)
          to label %202 unwind label %100

202:                                              ; preds = %200, %._crit_edge77
  %203 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.350)
          to label %204 unwind label %100

204:                                              ; preds = %202
  %205 = load i32, ptr %6, align 4
  %206 = and i32 %205, 255
  %.not52.1.1 = icmp eq i32 %206, 3
  br i1 %.not52.1.1, label %207, label %234

207:                                              ; preds = %204
  %208 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %82)
          to label %209 unwind label %100

209:                                              ; preds = %207
  %210 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %211 unwind label %100

211:                                              ; preds = %209
  %212 = load i32, ptr %6, align 4
  %213 = lshr i32 %212, 8
  %214 = and i32 %213, 255
  %215 = zext nneg i32 %214 to i64
  %216 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = icmp eq i32 %217, 1
  br i1 %218, label %230, label %219

219:                                              ; preds = %211
  %220 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.358)
          to label %._crit_edge82 unwind label %100

._crit_edge82:                                    ; preds = %219
  %.pre83 = load i32, ptr %6, align 4
  %221 = lshr i32 %.pre83, 8
  %222 = and i32 %221, 255
  %223 = zext nneg i32 %222 to i64
  %224 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [5 x ptr], ptr %87, i64 0, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !9
  %229 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef %228)
          to label %232 unwind label %100

230:                                              ; preds = %211
  %231 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.356)
          to label %232 unwind label %100

232:                                              ; preds = %230, %._crit_edge82
  %233 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %86, ptr noundef nonnull @.str.350)
          to label %234 unwind label %100

234:                                              ; preds = %232, %204
  %235 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull align 8 dereferenceable(40) %82)
          to label %236 unwind label %161

236:                                              ; preds = %234
  %237 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %238 unwind label %161

238:                                              ; preds = %236
  %239 = load i32, ptr %6, align 4
  %240 = lshr i32 %239, 8
  %241 = and i32 %240, 255
  %242 = zext nneg i32 %241 to i64
  %243 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %245 = icmp eq i32 %244, 1
  br i1 %245, label %259, label %246

246:                                              ; preds = %238
  %247 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull @.str.359)
          to label %248 unwind label %161

248:                                              ; preds = %246
  %249 = load i32, ptr %6, align 4
  %250 = lshr i32 %249, 8
  %251 = and i32 %250, 255
  %252 = zext nneg i32 %251 to i64
  %253 = getelementptr inbounds [8 x i32], ptr %10, i64 0, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [5 x ptr], ptr %87, i64 0, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !9
  %258 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef %257)
          to label %261 unwind label %161

259:                                              ; preds = %238
  %260 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull @.str.357)
          to label %261 unwind label %161

261:                                              ; preds = %259, %248
  %262 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %88, ptr noundef nonnull @.str.350)
          to label %263 unwind label %161

263:                                              ; preds = %261
  %264 = getelementptr inbounds i8, ptr %7, i64 40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %264) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #3
  br label %266

.loopexit.loopexit:                               ; preds = %161, %100
  %.pn53 = phi { ptr, i32 } [ %101, %100 ], [ %162, %161 ]
  %265 = getelementptr inbounds i8, ptr %7, i64 40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %265) #3
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit62, %.loopexit.loopexit
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %.loopexit.loopexit ], [ %84, %.loopexit.loopexit62 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #3
  resume { ptr, i32 } %.pn53.pn

266:                                              ; preds = %263, %79, %77, %74, %72, %70
  br i1 %or.cond5, label %267, label %280

267:                                              ; preds = %266
  %268 = call noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %268, label %280, label %269

269:                                              ; preds = %267
  %270 = load i32, ptr %6, align 4
  %271 = and i32 %270, 65280
  %.not56 = icmp eq i32 %271, 1280
  br i1 %.not56, label %280, label %272

272:                                              ; preds = %269
  %273 = call noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %273, label %280, label %274

274:                                              ; preds = %272
  %275 = call noundef zeroext i1 @_ZNK7glslang8TSampler8isBufferEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %275, label %280, label %276

276:                                              ; preds = %274
  %277 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull @.str.360)
  %278 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendERKS6_(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(40) %2)
  %279 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE6appendEPKc(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull @.str.350)
  br label %280

280:                                              ; preds = %266, %267, %269, %272, %274, %276, %21, %24
  ret void
}

; 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 noundef zeroext i1 @_ZNK7glslang8TSampler7isImageEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang8TSampler13isMultiSampleEv(ptr noundef nonnull align 4 dereferenceable(4)) 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 = !{!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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass