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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.glslang::TQualifier" = type <{ ptr, i64, i8, [3 x i8], i32, i32, i64, i64, i8, i8, i8, i8, i8, [3 x i8], i32, i8, [3 x i8], i32, ptr }>
%"struct.glslang::TTypeLoc" = type { ptr, %"struct.glslang::TSourceLoc" }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"class.glslang::TParseVersions" = type { ptr, i8, i32, ptr, i32, i32, %"struct.glslang::SpvVersion", ptr, %"class.glslang::TMap", %"class.glslang::TMap.0", i32, i32, ptr }
%"struct.glslang::SpvVersion" = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"class.glslang::TMap" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, glslang::TExtensionBehavior>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator" = type { ptr }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.glslang::TMap.0" = type { %"class.std::map.1" }
%"class.std::map.1" = type { %"class.std::_Rb_tree.2" }
%"class.std::_Rb_tree.2" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>, glslang::pool_allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, unsigned int>>>::_Rb_tree_impl" = type { %"class.glslang::pool_allocator.3", [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.glslang::pool_allocator.3" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.877 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.878 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN7glslangL27storageCanHaveLayoutInBlockENS_17TStorageQualifierE(i32 noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext22fixBlockUniformOffsetsERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.glslang::TQualifier", ptr %16, i32 0, i32 1
  %18 = load i64, ptr %17, align 8
  %19 = and i64 %18, 63
  %20 = trunc i64 %19 to i32
  %21 = call noundef zeroext i1 @_ZN7glslangL27storageCanHaveLayoutInBlockENS_17TStorageQualifierE(i32 noundef %20)
  br i1 %21, label %26, label %22

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef zeroext i1 @_ZNK7glslang10TQualifier12isTaskMemoryEv(ptr noundef nonnull align 8 dereferenceable(72) %23)
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  br label %184

26:                                               ; preds = %22, %3
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.glslang::TQualifier", ptr %27, i32 0, i32 2
  %29 = load i8, ptr %28, align 8
  %30 = and i8 %29, 15
  %31 = zext i8 %30 to i32
  %32 = icmp ne i32 %31, 2
  br i1 %32, label %33, label %48

33:                                               ; preds = %26
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.glslang::TQualifier", ptr %34, i32 0, i32 2
  %36 = load i8, ptr %35, align 8
  %37 = and i8 %36, 15
  %38 = zext i8 %37 to i32
  %39 = icmp ne i32 %38, 3
  br i1 %39, label %40, label %48

40:                                               ; preds = %33
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.glslang::TQualifier", ptr %41, i32 0, i32 2
  %43 = load i8, ptr %42, align 8
  %44 = and i8 %43, 15
  %45 = zext i8 %44 to i32
  %46 = icmp ne i32 %45, 5
  br i1 %46, label %47, label %48

47:                                               ; preds = %40
  br label %184

48:                                               ; preds = %40, %33, %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %180, %48
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %52) #5
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %183

56:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %57, i64 noundef %59) #5
  %61 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  %64 = getelementptr inbounds ptr, ptr %63, i64 10
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef nonnull align 8 dereferenceable(72) ptr %65(ptr noundef nonnull align 8 dereferenceable(144) %62)
  store ptr %66, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %69) #5
  %71 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %70, i32 0, i32 1
  store ptr %71, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %72, i64 noundef %74) #5
  %76 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  %79 = getelementptr inbounds ptr, ptr %78, i64 10
  %80 = load ptr, ptr %79, align 8
  %81 = call noundef nonnull align 8 dereferenceable(72) ptr %80(ptr noundef nonnull align 8 dereferenceable(144) %77)
  %82 = getelementptr inbounds %"class.glslang::TQualifier", ptr %81, i32 0, i32 1
  %83 = load i64, ptr %82, align 8
  %84 = lshr i64 %83, 59
  %85 = and i64 %84, 7
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %87 = getelementptr inbounds %"class.glslang::TParseVersions", ptr %15, i32 0, i32 7
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %89, i64 noundef %91) #5
  %93 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"class.glslang::TQualifier", ptr %95, i32 0, i32 2
  %97 = load i8, ptr %96, align 8
  %98 = and i8 %97, 15
  %99 = zext i8 %98 to i32
  %100 = load i32, ptr %12, align 4, !tbaa !16
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %105

102:                                              ; preds = %56
  %103 = load i32, ptr %12, align 4, !tbaa !16
  %104 = icmp eq i32 %103, 1
  br label %113

105:                                              ; preds = %56
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.glslang::TQualifier", ptr %106, i32 0, i32 1
  %108 = load i64, ptr %107, align 8
  %109 = lshr i64 %108, 59
  %110 = and i64 %109, 7
  %111 = trunc i64 %110 to i32
  %112 = icmp eq i32 %111, 1
  br label %113

113:                                              ; preds = %105, %102
  %114 = phi i1 [ %104, %102 ], [ %112, %105 ]
  %115 = call noundef i32 @_ZN7glslang13TIntermediate18getMemberAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %94, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef %99, i1 noundef zeroext %114)
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = call noundef zeroext i1 @_ZNK7glslang10TQualifier9hasOffsetEv(ptr noundef nonnull align 8 dereferenceable(72) %116)
  br i1 %117, label %118, label %155

118:                                              ; preds = %113
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.glslang::TQualifier", ptr %119, i32 0, i32 4
  %121 = load i32, ptr %120, align 4, !tbaa !41
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = call noundef zeroext i1 @_ZN7glslang16IsMultipleOfPow2IiEEbT_i(i32 noundef %121, i32 noundef %122)
  br i1 %123, label %129, label %124

124:                                              ; preds = %118
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = load ptr, ptr %15, align 8, !tbaa !14
  %127 = getelementptr inbounds ptr, ptr %126, i64 42
  %128 = load ptr, ptr %127, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %128(ptr noundef nonnull align 8 dereferenceable(1176) %15, ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef @.str.877, ptr noundef @.str.207, ptr noundef @.str.2)
  br label %129

129:                                              ; preds = %124, %118
  %130 = getelementptr inbounds %"class.glslang::TParseVersions", ptr %15, i32 0, i32 6
  %131 = getelementptr inbounds %"struct.glslang::SpvVersion", ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !48
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %150

134:                                              ; preds = %129
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.glslang::TQualifier", ptr %135, i32 0, i32 4
  %137 = load i32, ptr %136, align 4, !tbaa !41
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %140, label %145

140:                                              ; preds = %134
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load ptr, ptr %15, align 8, !tbaa !14
  %143 = getelementptr inbounds ptr, ptr %142, i64 42
  %144 = load ptr, ptr %143, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %144(ptr noundef nonnull align 8 dereferenceable(1176) %15, ptr noundef nonnull align 8 dereferenceable(24) %141, ptr noundef @.str.878, ptr noundef @.str.207, ptr noundef @.str.2)
  br label %145

145:                                              ; preds = %140, %134
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = getelementptr inbounds %"class.glslang::TQualifier", ptr %146, i32 0, i32 4
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %147)
  %149 = load i32, ptr %148, align 4, !tbaa !9
  store i32 %149, ptr %7, align 4, !tbaa !9
  br label %154

150:                                              ; preds = %129
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.glslang::TQualifier", ptr %151, i32 0, i32 4
  %153 = load i32, ptr %152, align 4, !tbaa !41
  store i32 %153, ptr %7, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %150, %145
  br label %155

155:                                              ; preds = %154, %113
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = call noundef zeroext i1 @_ZNK7glslang10TQualifier8hasAlignEv(ptr noundef nonnull align 8 dereferenceable(72) %156)
  br i1 %157, label %158, label %163

158:                                              ; preds = %155
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.glslang::TQualifier", ptr %159, i32 0, i32 5
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %160)
  %162 = load i32, ptr %161, align 4, !tbaa !9
  store i32 %162, ptr %14, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %158, %155
  %164 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %164)
  %165 = load i32, ptr %7, align 4, !tbaa !9
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %166, i64 noundef %168) #5
  %170 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !11
  %172 = load ptr, ptr %171, align 8, !tbaa !14
  %173 = getelementptr inbounds ptr, ptr %172, i64 10
  %174 = load ptr, ptr %173, align 8
  %175 = call noundef nonnull align 8 dereferenceable(72) ptr %174(ptr noundef nonnull align 8 dereferenceable(144) %171)
  %176 = getelementptr inbounds %"class.glslang::TQualifier", ptr %175, i32 0, i32 4
  store i32 %165, ptr %176, align 4, !tbaa !41
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = load i32, ptr %7, align 4, !tbaa !9
  %179 = add nsw i32 %178, %177
  store i32 %179, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %180

180:                                              ; preds = %163
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = add i32 %181, 1
  store i32 %182, ptr %9, align 4, !tbaa !9
  br label %49, !llvm.loop !49

183:                                              ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %184

184:                                              ; preds = %183, %47, %25
  ret void
}

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

declare noundef i32 @_ZN7glslang13TIntermediate18getMemberAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i1 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang16IsMultipleOfPow2IiEEbT_i(i32 noundef, i32 noundef) #2

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

!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, !6, i64 0}
!12 = !{!"_ZTSN7glslang8TTypeLocE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!18 = !{!19, !6, i64 56}
!19 = !{!"_ZTSN7glslang14TParseVersionsE", !20, i64 8, !21, i64 12, !6, i64 16, !10, i64 24, !22, i64 28, !23, i64 32, !6, i64 56, !24, i64 64, !35, i64 120, !40, i64 176, !10, i64 180, !6, i64 184}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTS8EProfile", !7, i64 0}
!22 = !{!"_ZTS11EShLanguage", !7, i64 0}
!23 = !{!"_ZTSN7glslang10SpvVersionE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !20, i64 16}
!24 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEENS_18TExtensionBehaviorESt4lessIS7_EEE", !25, i64 0}
!25 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS4_18TExtensionBehaviorESt4lessIS7_ENS5_ISt4pairIKS7_S8_EEEE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE13_Rb_tree_implISF_Lb1EEE", !28, i64 0, !29, i64 8, !31, i64 16}
!28 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEENS_18TExtensionBehaviorEEEEE", !6, i64 0}
!29 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEEE", !30, i64 0}
!30 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEE"}
!31 = !{!"_ZTSSt15_Rb_tree_header", !32, i64 0, !34, i64 32}
!32 = !{!"_ZTSSt18_Rb_tree_node_base", !33, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!33 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEjSt4lessIS7_EEE", !36, i64 0}
!36 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEjSt4lessIS7_ENS5_ISt4pairIKS7_jEEEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE13_Rb_tree_implISE_Lb1EEE", !39, i64 0, !29, i64 8, !31, i64 16}
!39 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEjEEEE", !6, i64 0}
!40 = !{!"_ZTS11EShMessages", !7, i64 0}
!41 = !{!42, !10, i64 20}
!42 = !{!"_ZTSN7glslang10TQualifierE", !6, i64 0, !43, i64 8, !44, i64 8, !44, i64 9, !45, i64 11, !20, i64 11, !20, i64 11, !20, i64 11, !20, i64 11, !20, i64 11, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 15, !20, i64 15, !20, i64 15, !17, i64 15, !46, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 29, !10, i64 29, !10, i64 32, !10, i64 34, !10, i64 35, !10, i64 36, !10, i64 36, !10, i64 38, !10, i64 40, !10, i64 41, !10, i64 42, !47, i64 44, !20, i64 45, !20, i64 46, !20, i64 47, !20, i64 48, !10, i64 52, !20, i64 56, !10, i64 60, !6, i64 64}
!43 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!44 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!45 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!46 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!47 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!48 = !{!19, !10, i64 32}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.877 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.878 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN7glslangL27storageCanHaveLayoutInBlockENS_17TStorageQualifierE(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext22fixBlockUniformOffsetsERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEE(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #3 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load i64, ptr %8, align 8
  %10 = trunc i64 %9 to i32
  %11 = and i32 %10, 63
  %12 = tail call noundef zeroext i1 @_ZN7glslangL27storageCanHaveLayoutInBlockENS_17TStorageQualifierE(i32 noundef %11)
  br i1 %12, label %15, label %13

13:                                               ; preds = %3
  %14 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier12isTaskMemoryEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  br i1 %14, label %15, label %102

15:                                               ; preds = %13, %3
  %16 = getelementptr inbounds i8, ptr %1, i64 16
  %17 = load i8, ptr %16, align 8
  %18 = and i8 %17, 15
  switch i8 %18, label %102 [
    i8 2, label %19
    i8 3, label %19
    i8 5, label %19
  ]

19:                                               ; preds = %15, %15, %15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %20 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  br label %22

._crit_edge:                                      ; preds = %85, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %102

22:                                               ; preds = %.lr.ph, %85
  %23 = phi i64 [ 0, %.lr.ph ], [ %99, %85 ]
  %.037 = phi i32 [ 0, %.lr.ph ], [ %98, %85 ]
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %23) #5
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %26, i64 80
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef nonnull align 8 dereferenceable(72) ptr %28(ptr noundef nonnull align 8 dereferenceable(144) %25)
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %23) #5
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %23) #5
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %34, i64 80
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef nonnull align 8 dereferenceable(72) ptr %36(ptr noundef nonnull align 8 dereferenceable(144) %33)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i64, ptr %38, align 8
  %40 = lshr i64 %39, 59
  %41 = trunc nuw nsw i64 %40 to i32
  %42 = and i32 %41, 7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %23) #5
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = load i8, ptr %16, align 8
  %46 = and i8 %45, 15
  %47 = zext nneg i8 %46 to i32
  %.not36 = icmp eq i32 %42, 0
  %48 = icmp eq i32 %42, 1
  %49 = load i64, ptr %8, align 8
  %50 = and i64 %49, 4035225266123964416
  %51 = icmp eq i64 %50, 576460752303423488
  %52 = select i1 %.not36, i1 %51, i1 %48
  %53 = call noundef i32 @_ZN7glslang13TIntermediate18getMemberAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144) %44, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %47, i1 noundef zeroext %52)
  store i32 %53, ptr %7, align 4, !tbaa !5
  %54 = call noundef zeroext i1 @_ZNK7glslang10TQualifier9hasOffsetEv(ptr noundef nonnull align 8 dereferenceable(72) %29)
  br i1 %54, label %55, label %79

55:                                               ; preds = %22
  %56 = getelementptr inbounds i8, ptr %29, i64 20
  %57 = load i32, ptr %56, align 4, !tbaa !15
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN7glslang16IsMultipleOfPow2IiEEbT_i(i32 noundef %57, i32 noundef %58)
  br i1 %59, label %64, label %60

60:                                               ; preds = %55
  %61 = load ptr, ptr %0, align 8, !tbaa !13
  %62 = getelementptr inbounds i8, ptr %61, i64 336
  %63 = load ptr, ptr %62, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %63(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull @.str.877, ptr noundef nonnull @.str.207, ptr noundef nonnull @.str.2)
  br label %64

64:                                               ; preds = %60, %55
  %65 = load i32, ptr %21, align 8, !tbaa !24
  %66 = icmp eq i32 %65, 0
  %67 = load i32, ptr %56, align 4, !tbaa !15
  br i1 %66, label %68, label %78

68:                                               ; preds = %64
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = icmp slt i32 %67, %69
  br i1 %70, label %71, label %75

71:                                               ; preds = %68
  %72 = load ptr, ptr %0, align 8, !tbaa !13
  %73 = getelementptr inbounds i8, ptr %72, i64 336
  %74 = load ptr, ptr %73, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %74(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull @.str.878, ptr noundef nonnull @.str.207, ptr noundef nonnull @.str.2)
  br label %75

75:                                               ; preds = %71, %68
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %56)
  %77 = load i32, ptr %76, align 4, !tbaa !5
  store i32 %77, ptr %4, align 4, !tbaa !5
  br label %79

78:                                               ; preds = %64
  store i32 %67, ptr %4, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %75, %78, %22
  %80 = call noundef zeroext i1 @_ZNK7glslang10TQualifier8hasAlignEv(ptr noundef nonnull align 8 dereferenceable(72) %29)
  br i1 %80, label %81, label %._crit_edge38

._crit_edge38:                                    ; preds = %79
  %.pre = load i32, ptr %7, align 4, !tbaa !5
  br label %85

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %29, i64 24
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %82)
  %84 = load i32, ptr %83, align 4, !tbaa !5
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %._crit_edge38, %81
  %86 = phi i32 [ %.pre, %._crit_edge38 ], [ %84, %81 ]
  call void @_ZN7glslang11RoundToPow2IiEEvRT_i(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %86)
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %23) #5
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %90, i64 80
  %92 = load ptr, ptr %91, align 8
  %93 = call noundef nonnull align 8 dereferenceable(72) ptr %92(ptr noundef nonnull align 8 dereferenceable(144) %89)
  %94 = getelementptr inbounds i8, ptr %93, i64 20
  store i32 %87, ptr %94, align 4, !tbaa !15
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = add nsw i32 %96, %95
  store i32 %97, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %98 = add i32 %.037, 1
  %99 = zext i32 %98 to i64
  %100 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %101 = icmp ugt i64 %100, %99
  br i1 %101, label %22, label %._crit_edge, !llvm.loop !46

102:                                              ; preds = %15, %13, %._crit_edge
  ret void
}

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

declare noundef i32 @_ZN7glslang13TIntermediate18getMemberAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang16IsMultipleOfPow2IiEEbT_i(i32 noundef, i32 noundef) local_unnamed_addr #2

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

!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, !11, i64 0}
!10 = !{!"_ZTSN7glslang8TTypeLocE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSN7glslang10TSourceLocE", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 20}
!16 = !{!"_ZTSN7glslang10TQualifierE", !11, i64 0, !17, i64 8, !18, i64 8, !18, i64 9, !19, i64 11, !20, i64 11, !20, i64 11, !20, i64 11, !20, i64 11, !20, i64 11, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 12, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 13, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 14, !20, i64 15, !20, i64 15, !20, i64 15, !21, i64 15, !22, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 29, !6, i64 29, !6, i64 32, !6, i64 34, !6, i64 35, !6, i64 36, !6, i64 36, !6, i64 38, !6, i64 40, !6, i64 41, !6, i64 42, !23, i64 44, !20, i64 45, !20, i64 46, !20, i64 47, !20, i64 48, !6, i64 52, !20, i64 56, !6, i64 60, !11, i64 64}
!17 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!18 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!19 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!22 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!23 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!24 = !{!25, !6, i64 32}
!25 = !{!"_ZTSN7glslang14TParseVersionsE", !20, i64 8, !26, i64 12, !11, i64 16, !6, i64 24, !27, i64 28, !28, i64 32, !11, i64 56, !29, i64 64, !40, i64 120, !45, i64 176, !6, i64 180, !11, i64 184}
!26 = !{!"_ZTS8EProfile", !7, i64 0}
!27 = !{!"_ZTS11EShLanguage", !7, i64 0}
!28 = !{!"_ZTSN7glslang10SpvVersionE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !20, i64 16}
!29 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEENS_18TExtensionBehaviorESt4lessIS7_EEE", !30, i64 0}
!30 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEENS4_18TExtensionBehaviorESt4lessIS7_ENS5_ISt4pairIKS7_S8_EEEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_NS4_18TExtensionBehaviorEESt10_Select1stISB_ESt4lessIS7_ENS5_ISB_EEE13_Rb_tree_implISF_Lb1EEE", !33, i64 0, !34, i64 8, !36, i64 16}
!33 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEENS_18TExtensionBehaviorEEEEE", !11, i64 0}
!34 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEEE", !35, i64 0}
!35 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEE"}
!36 = !{!"_ZTSSt15_Rb_tree_header", !37, i64 0, !39, i64 32}
!37 = !{!"_ZTSSt18_Rb_tree_node_base", !38, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!39 = !{!"long", !7, i64 0}
!40 = !{!"_ZTSN7glslang4TMapINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEjSt4lessIS7_EEE", !41, i64 0}
!41 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEjSt4lessIS7_ENS5_ISt4pairIKS7_jEEEE", !42, i64 0}
!42 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE", !43, i64 0}
!43 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEESt4pairIKS7_jESt10_Select1stISA_ESt4lessIS7_ENS5_ISA_EEE13_Rb_tree_implISE_Lb1EEE", !44, i64 0, !34, i64 8, !36, i64 16}
!44 = !{!"_ZTSN7glslang14pool_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_IcEEEEjEEEE", !11, i64 0}
!45 = !{!"_ZTS11EShMessages", !7, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


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