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

; 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::TReflection" = type <{ ptr, i32, i32, i32, [4 x i8], %"class.glslang::TObjectReflection", %"class.std::map", %"class.std::map", %"class.std::map", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.17", [3 x i32], [4 x i8] }>
%"class.glslang::TObjectReflection" = type { %"class.std::__cxx11::basic_string.2", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%"class.std::__cxx11::basic_string.2" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.6 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.6 = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<glslang::TObjectReflection, std::allocator<glslang::TObjectReflection>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TObjectReflection, std::allocator<glslang::TObjectReflection>>::_Vector_impl" = type { %"struct.std::_Vector_base<glslang::TObjectReflection, std::allocator<glslang::TObjectReflection>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glslang::TObjectReflection, std::allocator<glslang::TObjectReflection>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@_ZZN7glslang11TReflection4dumpEvE4axis = external hidden global [3 x ptr], align 16
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

declare i32 @printf(ptr noundef, ...) #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang11TReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(428) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %22, %1
  %13 = load i64, ptr %3, align 8, !tbaa !9
  %14 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 9
  %15 = call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  %16 = icmp ult i64 %13, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %25

18:                                               ; preds = %12
  %19 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 9
  %20 = load i64, ptr %3, align 8, !tbaa !9
  %21 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %20) #4
  call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %21)
  br label %22

22:                                               ; preds = %18
  %23 = load i64, ptr %3, align 8, !tbaa !9
  %24 = add i64 %23, 1
  store i64 %24, ptr %3, align 8, !tbaa !9
  br label %12, !llvm.loop !11

25:                                               ; preds = %17
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %38, %25
  %29 = load i64, ptr %4, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 10
  %31 = call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  %32 = icmp ult i64 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %41

34:                                               ; preds = %28
  %35 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 10
  %36 = load i64, ptr %4, align 8, !tbaa !9
  %37 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %36) #4
  call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
  br label %38

38:                                               ; preds = %34
  %39 = load i64, ptr %4, align 8, !tbaa !9
  %40 = add i64 %39, 1
  store i64 %40, ptr %4, align 8, !tbaa !9
  br label %28, !llvm.loop !13

41:                                               ; preds = %33
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %54, %41
  %45 = load i64, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 11
  %47 = call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #4
  %48 = icmp ult i64 %45, %47
  br i1 %48, label %50, label %49

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

50:                                               ; preds = %44
  %51 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 11
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %52) #4
  call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %53)
  br label %54

54:                                               ; preds = %50
  %55 = load i64, ptr %5, align 8, !tbaa !9
  %56 = add i64 %55, 1
  store i64 %56, ptr %5, align 8, !tbaa !9
  br label %44, !llvm.loop !14

57:                                               ; preds = %49
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %70, %57
  %61 = load i64, ptr %6, align 8, !tbaa !9
  %62 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 12
  %63 = call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #4
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %73

66:                                               ; preds = %60
  %67 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 12
  %68 = load i64, ptr %6, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #4
  call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %69)
  br label %70

70:                                               ; preds = %66
  %71 = load i64, ptr %6, align 8, !tbaa !9
  %72 = add i64 %71, 1
  store i64 %72, ptr %6, align 8, !tbaa !9
  br label %60, !llvm.loop !15

73:                                               ; preds = %65
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %86, %73
  %77 = load i64, ptr %7, align 8, !tbaa !9
  %78 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 13
  %79 = call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #4
  %80 = icmp ult i64 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %89

82:                                               ; preds = %76
  %83 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 13
  %84 = load i64, ptr %7, align 8, !tbaa !9
  %85 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84) #4
  call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %85)
  br label %86

86:                                               ; preds = %82
  %87 = load i64, ptr %7, align 8, !tbaa !9
  %88 = add i64 %87, 1
  store i64 %88, ptr %7, align 8, !tbaa !9
  br label %76, !llvm.loop !16

89:                                               ; preds = %81
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %102, %89
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 14
  %95 = call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #4
  %96 = icmp ult i64 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %105

98:                                               ; preds = %92
  %99 = getelementptr inbounds %"class.glslang::TReflection", ptr %10, i32 0, i32 14
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #4
  call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %101)
  br label %102

102:                                              ; preds = %98
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = add i64 %103, 1
  store i64 %104, ptr %8, align 8, !tbaa !9
  br label %92, !llvm.loop !17

105:                                              ; preds = %97
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %107 = call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %10, i32 noundef 0)
  %108 = icmp ugt i32 %107, 1
  br i1 %108, label %109, label %132

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

110:                                              ; preds = %127, %109
  %111 = load i32, ptr %9, align 4, !tbaa !18
  %112 = icmp slt i32 %111, 3
  br i1 %112, label %114, label %113

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %130

114:                                              ; preds = %110
  %115 = load i32, ptr %9, align 4, !tbaa !18
  %116 = call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %10, i32 noundef %115)
  %117 = icmp ugt i32 %116, 1
  br i1 %117, label %118, label %126

118:                                              ; preds = %114
  %119 = load i32, ptr %9, align 4, !tbaa !18
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [3 x ptr], ptr @_ZZN7glslang11TReflection4dumpEvE4axis, i64 0, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = load i32, ptr %9, align 4, !tbaa !18
  %124 = call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %10, i32 noundef %123)
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %122, i32 noundef %124)
  br label %126

126:                                              ; preds = %118, %114
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %9, align 4, !tbaa !18
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %9, align 4, !tbaa !18
  br label %110, !llvm.loop !20

130:                                              ; preds = %113
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %132

132:                                              ; preds = %130, %105
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428), i32 noundef) #3 align 2

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


; 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.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@_ZZN7glslang11TReflection4dumpEvE4axis = external hidden local_unnamed_addr global [3 x ptr], align 16
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang11TReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(428) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %3 = getelementptr inbounds i8, ptr %0, i64 248
  %4 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %7 = getelementptr inbounds i8, ptr %0, i64 272
  %8 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  %.not51 = icmp eq i64 %8, 0
  br i1 %.not51, label %._crit_edge33, label %.lr.ph32

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.02829 = phi i64 [ %10, %.lr.ph ], [ 0, %1 ]
  %9 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.02829) #3
  tail call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %10 = add nuw i64 %.02829, 1
  %11 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %12 = icmp ult i64 %10, %11
  br i1 %12, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge33:                                    ; preds = %.lr.ph32, %._crit_edge
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %15 = getelementptr inbounds i8, ptr %0, i64 296
  %16 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  %.not52 = icmp eq i64 %16, 0
  br i1 %.not52, label %._crit_edge37, label %.lr.ph36

.lr.ph32:                                         ; preds = %._crit_edge, %.lr.ph32
  %.02730 = phi i64 [ %18, %.lr.ph32 ], [ 0, %._crit_edge ]
  %17 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.02730) #3
  tail call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %17)
  %18 = add nuw i64 %.02730, 1
  %19 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  %20 = icmp ult i64 %18, %19
  br i1 %20, label %.lr.ph32, label %._crit_edge33, !llvm.loop !7

._crit_edge37:                                    ; preds = %.lr.ph36, %._crit_edge33
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %23 = getelementptr inbounds i8, ptr %0, i64 320
  %24 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #3
  %.not53 = icmp eq i64 %24, 0
  br i1 %.not53, label %._crit_edge41, label %.lr.ph40

.lr.ph36:                                         ; preds = %._crit_edge33, %.lr.ph36
  %.02634 = phi i64 [ %26, %.lr.ph36 ], [ 0, %._crit_edge33 ]
  %25 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.02634) #3
  tail call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %25)
  %26 = add nuw i64 %.02634, 1
  %27 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %.lr.ph36, label %._crit_edge37, !llvm.loop !8

._crit_edge41:                                    ; preds = %.lr.ph40, %._crit_edge37
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %31 = getelementptr inbounds i8, ptr %0, i64 344
  %32 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #3
  %.not54 = icmp eq i64 %32, 0
  br i1 %.not54, label %._crit_edge45, label %.lr.ph44

.lr.ph40:                                         ; preds = %._crit_edge37, %.lr.ph40
  %.02538 = phi i64 [ %34, %.lr.ph40 ], [ 0, %._crit_edge37 ]
  %33 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %.02538) #3
  tail call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %33)
  %34 = add nuw i64 %.02538, 1
  %35 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #3
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %.lr.ph40, label %._crit_edge41, !llvm.loop !9

._crit_edge45:                                    ; preds = %.lr.ph44, %._crit_edge41
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %39 = getelementptr inbounds i8, ptr %0, i64 368
  %40 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %.not55 = icmp eq i64 %40, 0
  br i1 %.not55, label %._crit_edge49, label %.lr.ph48

.lr.ph44:                                         ; preds = %._crit_edge41, %.lr.ph44
  %.02442 = phi i64 [ %42, %.lr.ph44 ], [ 0, %._crit_edge41 ]
  %41 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.02442) #3
  tail call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %41)
  %42 = add nuw i64 %.02442, 1
  %43 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #3
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %.lr.ph44, label %._crit_edge45, !llvm.loop !10

._crit_edge49:                                    ; preds = %.lr.ph48, %._crit_edge45
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %46 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 0)
  %47 = icmp ugt i32 %46, 1
  br i1 %47, label %.preheader.preheader, label %72

.preheader.preheader:                             ; preds = %._crit_edge49
  %48 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 0)
  %49 = icmp ugt i32 %48, 1
  br i1 %49, label %54, label %.preheader.1

.lr.ph48:                                         ; preds = %._crit_edge45, %.lr.ph48
  %.02346 = phi i64 [ %51, %.lr.ph48 ], [ 0, %._crit_edge45 ]
  %50 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN7glslang17TObjectReflectionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %.02346) #3
  tail call void @_ZNK7glslang17TObjectReflection4dumpEv(ptr noundef nonnull align 8 dereferenceable(80) %50)
  %51 = add nuw i64 %.02346, 1
  %52 = tail call noundef i64 @_ZNKSt6vectorIN7glslang17TObjectReflectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %.lr.ph48, label %._crit_edge49, !llvm.loop !11

54:                                               ; preds = %.preheader.preheader
  %55 = load ptr, ptr @_ZZN7glslang11TReflection4dumpEvE4axis, align 16, !tbaa !12
  %56 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 0)
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %55, i32 noundef %56)
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader, %54
  %58 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 1)
  %59 = icmp ugt i32 %58, 1
  br i1 %59, label %60, label %.preheader.2

60:                                               ; preds = %.preheader.1
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN7glslang11TReflection4dumpEvE4axis, i64 8), align 8, !tbaa !12
  %62 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 1)
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %61, i32 noundef %62)
  br label %.preheader.2

.preheader.2:                                     ; preds = %60, %.preheader.1
  %64 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 2)
  %65 = icmp ugt i32 %64, 1
  br i1 %65, label %66, label %70

66:                                               ; preds = %.preheader.2
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN7glslang11TReflection4dumpEvE4axis, i64 16), align 16, !tbaa !12
  %68 = tail call noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428) %0, i32 noundef 2)
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %67, i32 noundef %68)
  br label %70

70:                                               ; preds = %66, %.preheader.2
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %72

72:                                               ; preds = %70, %._crit_edge49
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang11TReflection12getLocalSizeEi(ptr noundef nonnull align 8 dereferenceable(428), i32 noundef) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }

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

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


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