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

; 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::TPoolAllocator" = type { i64, i64, i64, i64, i64, ptr, ptr, %"class.std::vector", i32, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glslang::TPoolAllocator::tAllocState, std::allocator<glslang::TPoolAllocator::tAllocState>>::_Vector_impl" }
%"struct.std::_Vector_base<glslang::TPoolAllocator::tAllocState, std::allocator<glslang::TPoolAllocator::tAllocState>>::_Vector_impl" = type { %"struct.std::_Vector_base<glslang::TPoolAllocator::tAllocState, std::allocator<glslang::TPoolAllocator::tAllocState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glslang::TPoolAllocator::tAllocState, std::allocator<glslang::TPoolAllocator::tAllocState>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glslang::TPoolAllocator::tHeader" = type { ptr, i64 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7glslang14TPoolAllocator8allocateEm(ptr noundef nonnull align 8 dereferenceable(96) %0, i64 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = call noundef i64 @_ZN7glslang11TAllocation14allocationSizeEm(i64 noundef %14)
  store i64 %15, ptr %6, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 8
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %16, align 8, !tbaa !11
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 9
  %21 = load i64, ptr %20, align 8, !tbaa !18
  %22 = add i64 %21, %19
  store i64 %22, ptr %20, align 8, !tbaa !18
  %23 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  %24 = load i64, ptr %23, align 8, !tbaa !19
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = add i64 %24, %25
  %27 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !20
  %29 = icmp ule i64 %26, %28
  br i1 %29, label %30, label %55

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %31 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  %32 = load ptr, ptr %31, align 8, !tbaa !21
  %33 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  %34 = load i64, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %32, i64 %34
  store ptr %35, ptr %7, align 8, !tbaa !5
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  %38 = load i64, ptr %37, align 8, !tbaa !19
  %39 = add i64 %38, %36
  store i64 %39, ptr %37, align 8, !tbaa !19
  %40 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  %41 = load i64, ptr %40, align 8, !tbaa !19
  %42 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !22
  %44 = add i64 %41, %43
  %45 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 2
  %46 = load i64, ptr %45, align 8, !tbaa !22
  %47 = xor i64 %46, -1
  %48 = and i64 %44, %47
  %49 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  store i64 %48, ptr %49, align 8, !tbaa !19
  %50 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i64, ptr %5, align 8, !tbaa !9
  %54 = call noundef ptr @_ZN7glslang14TPoolAllocator20initializeAllocationEPNS0_7tHeaderEPhm(ptr noundef nonnull align 8 dereferenceable(96) %13, ptr noundef %51, ptr noundef %52, i64 noundef %53)
  store ptr %54, ptr %3, align 8
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %146

55:                                               ; preds = %2
  %56 = load i64, ptr %6, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 3
  %58 = load i64, ptr %57, align 8, !tbaa !23
  %59 = add i64 %56, %58
  %60 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !20
  %62 = icmp ugt i64 %59, %61
  br i1 %62, label %63, label %97

63:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %64 = load i64, ptr %6, align 8, !tbaa !9
  %65 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 3
  %66 = load i64, ptr %65, align 8, !tbaa !23
  %67 = add i64 %64, %66
  store i64 %67, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = call noalias noundef nonnull ptr @_Znam(i64 noundef %68) #6
  store ptr %69, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %63
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %96

73:                                               ; preds = %63
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = load i64, ptr %9, align 8, !tbaa !9
  %78 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 0
  %79 = load i64, ptr %78, align 8, !tbaa !20
  %80 = add i64 %77, %79
  %81 = sub i64 %80, 1
  %82 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 0
  %83 = load i64, ptr %82, align 8, !tbaa !20
  %84 = udiv i64 %81, %83
  call void @_ZN7glslang14TPoolAllocator7tHeaderC2EPS1_m(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef %76, i64 noundef %84)
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  store ptr %85, ptr %86, align 8, !tbaa !21
  %87 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !20
  %89 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  store i64 %88, ptr %89, align 8, !tbaa !19
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = ptrtoint ptr %90 to i64
  %92 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 3
  %93 = load i64, ptr %92, align 8, !tbaa !23
  %94 = add i64 %91, %93
  %95 = inttoptr i64 %94 to ptr
  store ptr %95, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %96

96:                                               ; preds = %73, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %146

97:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %98 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 5
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %109

101:                                              ; preds = %97
  %102 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !24
  store ptr %103, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = getelementptr inbounds %"struct.glslang::TPoolAllocator::tHeader", ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !25
  %108 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 5
  store ptr %107, ptr %108, align 8, !tbaa !24
  br label %117

109:                                              ; preds = %97
  %110 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !20
  %112 = call noalias noundef nonnull ptr @_Znam(i64 noundef %111) #6
  store ptr %112, ptr %11, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %145

116:                                              ; preds = %109
  br label %117

117:                                              ; preds = %116, %101
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  call void @_ZN7glslang14TPoolAllocator7tHeaderC2EPS1_m(ptr noundef nonnull align 8 dereferenceable(16) %118, ptr noundef %120, i64 noundef 1)
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  store ptr %121, ptr %122, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %123 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !21
  %125 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 3
  %126 = load i64, ptr %125, align 8, !tbaa !23
  %127 = getelementptr inbounds i8, ptr %124, i64 %126
  store ptr %127, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 3
  %129 = load i64, ptr %128, align 8, !tbaa !23
  %130 = load i64, ptr %6, align 8, !tbaa !9
  %131 = add i64 %129, %130
  %132 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 2
  %133 = load i64, ptr %132, align 8, !tbaa !22
  %134 = add i64 %131, %133
  %135 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !22
  %137 = xor i64 %136, -1
  %138 = and i64 %134, %137
  %139 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 4
  store i64 %138, ptr %139, align 8, !tbaa !19
  %140 = getelementptr inbounds %"class.glslang::TPoolAllocator", ptr %13, i32 0, i32 6
  %141 = load ptr, ptr %140, align 8, !tbaa !21
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load i64, ptr %5, align 8, !tbaa !9
  %144 = call noundef ptr @_ZN7glslang14TPoolAllocator20initializeAllocationEPNS0_7tHeaderEPhm(ptr noundef nonnull align 8 dereferenceable(96) %13, ptr noundef %141, ptr noundef %142, i64 noundef %143)
  store ptr %144, ptr %3, align 8
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %145

145:                                              ; preds = %117, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %146

146:                                              ; preds = %145, %96, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %147 = load ptr, ptr %3, align 8
  ret ptr %147
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7glslang11TAllocation14allocationSizeEm(i64 noundef) #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang14TPoolAllocator7tHeaderC2EPS1_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #4 align 2

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

!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 = !{!12, !17, i64 80}
!12 = !{!"_ZTSN7glslang14TPoolAllocatorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !17, i64 80, !10, i64 88}
!13 = !{!"_ZTSSt6vectorIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"int", !7, i64 0}
!18 = !{!12, !10, i64 88}
!19 = !{!12, !10, i64 32}
!20 = !{!12, !10, i64 0}
!21 = !{!12, !6, i64 48}
!22 = !{!12, !10, i64 16}
!23 = !{!12, !10, i64 24}
!24 = !{!12, !6, i64 40}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTSN7glslang14TPoolAllocator7tHeaderE", !6, i64 0, !10, i64 8}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7glslang14TPoolAllocator8allocateEm(ptr noundef nonnull align 8 dereferenceable(96) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef i64 @_ZN7glslang11TAllocation14allocationSizeEm(i64 noundef %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  %8 = load i64, ptr %7, align 8, !tbaa !16
  %9 = add i64 %8, %1
  store i64 %9, ptr %7, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load i64, ptr %10, align 8, !tbaa !17
  %12 = add i64 %11, %3
  %13 = load i64, ptr %0, align 8, !tbaa !18
  %.not = icmp ugt i64 %12, %13
  br i1 %.not, label %24, label %14

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = load ptr, ptr %15, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %16, i64 %11
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load i64, ptr %18, align 8, !tbaa !20
  %20 = add i64 %19, %12
  %21 = xor i64 %19, -1
  %22 = and i64 %20, %21
  store i64 %22, ptr %10, align 8, !tbaa !17
  %23 = tail call noundef ptr @_ZN7glslang14TPoolAllocator20initializeAllocationEPNS0_7tHeaderEPhm(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %16, ptr noundef %17, i64 noundef %1)
  br label %60

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load i64, ptr %25, align 8, !tbaa !21
  %27 = add i64 %26, %3
  %28 = icmp ugt i64 %27, %13
  br i1 %28, label %29, label %41

29:                                               ; preds = %24
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #4
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = add i64 %13, -1
  %34 = add i64 %33, %27
  %35 = udiv i64 %34, %13
  tail call void @_ZN7glslang14TPoolAllocator7tHeaderC2EPS1_m(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %32, i64 noundef %35)
  store ptr %30, ptr %31, align 8, !tbaa !19
  %36 = load i64, ptr %0, align 8, !tbaa !18
  store i64 %36, ptr %10, align 8, !tbaa !17
  %37 = load i64, ptr %25, align 8, !tbaa !21
  %38 = ptrtoint ptr %30 to i64
  %39 = add i64 %37, %38
  %40 = inttoptr i64 %39 to ptr
  br label %60

41:                                               ; preds = %24
  %42 = getelementptr inbounds i8, ptr %0, i64 40
  %43 = load ptr, ptr %42, align 8, !tbaa !22
  %.not26 = icmp eq ptr %43, null
  br i1 %.not26, label %46, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %43, align 8, !tbaa !23
  store ptr %45, ptr %42, align 8, !tbaa !22
  br label %48

46:                                               ; preds = %41
  %47 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %13) #4
  br label %48

48:                                               ; preds = %46, %44
  %.021 = phi ptr [ %43, %44 ], [ %47, %46 ]
  %49 = getelementptr inbounds i8, ptr %0, i64 48
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  tail call void @_ZN7glslang14TPoolAllocator7tHeaderC2EPS1_m(ptr noundef nonnull align 8 dereferenceable(16) %.021, ptr noundef %50, i64 noundef 1)
  store ptr %.021, ptr %49, align 8, !tbaa !19
  %51 = load i64, ptr %25, align 8, !tbaa !21
  %52 = getelementptr inbounds i8, ptr %.021, i64 %51
  %53 = add i64 %51, %3
  %54 = getelementptr inbounds i8, ptr %0, i64 16
  %55 = load i64, ptr %54, align 8, !tbaa !20
  %56 = add i64 %53, %55
  %57 = xor i64 %55, -1
  %58 = and i64 %56, %57
  store i64 %58, ptr %10, align 8, !tbaa !17
  %59 = tail call noundef ptr @_ZN7glslang14TPoolAllocator20initializeAllocationEPNS0_7tHeaderEPhm(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull %.021, ptr noundef nonnull %52, i64 noundef %1)
  br label %60

60:                                               ; preds = %48, %29, %14
  %.2 = phi ptr [ %23, %14 ], [ %40, %29 ], [ %59, %48 ]
  ret ptr %.2
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7glslang11TAllocation14allocationSizeEm(i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7glslang14TPoolAllocator20initializeAllocationEPNS0_7tHeaderEPhm(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang14TPoolAllocator7tHeaderC2EPS1_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(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 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 = { builtin allocsize(0) }

!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, !15, i64 80}
!6 = !{!"_ZTSN7glslang14TPoolAllocatorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !15, i64 80, !7, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7glslang14TPoolAllocator11tAllocStateESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"int", !8, i64 0}
!16 = !{!6, !7, i64 88}
!17 = !{!6, !7, i64 32}
!18 = !{!6, !7, i64 0}
!19 = !{!6, !10, i64 48}
!20 = !{!6, !7, i64 16}
!21 = !{!6, !7, i64 24}
!22 = !{!6, !10, i64 40}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN7glslang14TPoolAllocator7tHeaderE", !10, i64 0, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass