; LLVM IR from Xayah-Hina/branchfrac :: Demos/Visualization/Shader.ll (ZN3PBD6Shader20createAndLinkProgramEv)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.PBD::Shader" = type <{ i8, [3 x i8], i32, %"class.std::map", %"class.std::map", [3 x i32], [4 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned 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>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned 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 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@__glewCreateProgram = external global ptr, align 8
@__glewAttachShader = external global ptr, align 8
@__glewLinkProgram = external global ptr, align 8
@__glewGetProgramiv = external global ptr, align 8
@__glewGetProgramInfoLog = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@__glewDeleteShader = external global ptr, align 8

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3PBD6Shader20createAndLinkProgramEv(ptr noundef nonnull align 8 dereferenceable(116) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  %9 = load ptr, ptr @__glewCreateProgram, align 8, !tbaa !5
  %10 = call i32 %9()
  %11 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 2
  store i32 %10, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #5
  store i8 0, ptr %3, align 1, !tbaa !22
  br label %12

12:                                               ; preds = %34, %1
  %13 = load i8, ptr %3, align 1, !tbaa !22
  %14 = zext i8 %13 to i32
  %15 = icmp slt i32 %14, 3
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
  br label %37

17:                                               ; preds = %12
  %18 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 5
  %19 = load i8, ptr %3, align 1, !tbaa !22
  %20 = zext i8 %19 to i64
  %21 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !23
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %33

24:                                               ; preds = %17
  %25 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 5
  %29 = load i8, ptr %3, align 1, !tbaa !22
  %30 = zext i8 %29 to i64
  %31 = getelementptr inbounds [3 x i32], ptr %28, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !23
  call void %25(i32 noundef %27, i32 noundef %32)
  br label %33

33:                                               ; preds = %24, %17
  br label %34

34:                                               ; preds = %33
  %35 = load i8, ptr %3, align 1, !tbaa !22
  %36 = add i8 %35, 1
  store i8 %36, ptr %3, align 1, !tbaa !22
  br label %12, !llvm.loop !24

37:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %38 = load ptr, ptr @__glewLinkProgram, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !9
  call void %38(i32 noundef %40)
  %41 = load ptr, ptr @__glewGetProgramiv, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !9
  call void %41(i32 noundef %43, i32 noundef 35714, ptr noundef %4)
  %44 = load i32, ptr %4, align 4, !tbaa !23
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %48

46:                                               ; preds = %37
  %47 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 0
  store i8 1, ptr %47, align 8, !tbaa !26
  br label %68

48:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %49 = load ptr, ptr @__glewGetProgramiv, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !9
  call void %49(i32 noundef %51, i32 noundef 35716, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %52 = load i32, ptr %5, align 4, !tbaa !23
  %53 = sext i32 %52 to i64
  %54 = call noalias noundef nonnull ptr @_Znam(i64 noundef %53) #6
  store ptr %54, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr @__glewGetProgramInfoLog, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = load i32, ptr %5, align 4, !tbaa !23
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  call void %55(i32 noundef %57, i32 noundef %58, ptr noundef null, ptr noundef %59)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef %61)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %67, label %66

66:                                               ; preds = %48
  call void @_ZdaPv(ptr noundef %64) #7
  br label %67

67:                                               ; preds = %66, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %68

68:                                               ; preds = %67, %46
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !22
  br label %69

69:                                               ; preds = %81, %68
  %70 = load i8, ptr %7, align 1, !tbaa !22
  %71 = zext i8 %70 to i32
  %72 = icmp slt i32 %71, 3
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %84

74:                                               ; preds = %69
  %75 = load ptr, ptr @__glewDeleteShader, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.PBD::Shader", ptr %8, i32 0, i32 5
  %77 = load i8, ptr %7, align 1, !tbaa !22
  %78 = zext i8 %77 to i64
  %79 = getelementptr inbounds [3 x i32], ptr %76, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !23
  call void %75(i32 noundef %80)
  br label %81

81:                                               ; preds = %74
  %82 = load i8, ptr %7, align 1, !tbaa !22
  %83 = add i8 %82, 1
  store i8 %83, ptr %7, align 1, !tbaa !22
  br label %69, !llvm.loop !27

84:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { nobuiltin 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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, !12, i64 4}
!10 = !{!"_ZTSN3PBD6ShaderE", !11, i64 0, !12, i64 4, !13, i64 8, !13, i64 56, !7, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE", !14, i64 0}
!14 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !15, i64 0}
!15 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !16, i64 0, !18, i64 8}
!16 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !17, i64 0}
!17 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!18 = !{!"_ZTSSt15_Rb_tree_header", !19, i64 0, !21, i64 32}
!19 = !{!"_ZTSSt18_Rb_tree_node_base", !20, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!12, !12, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!10, !11, i64 0}
!27 = distinct !{!27, !25}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@__glewCreateProgram = external local_unnamed_addr global ptr, align 8
@__glewAttachShader = external local_unnamed_addr global ptr, align 8
@__glewLinkProgram = external local_unnamed_addr global ptr, align 8
@__glewGetProgramiv = external local_unnamed_addr global ptr, align 8
@__glewGetProgramInfoLog = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@__glewDeleteShader = external local_unnamed_addr global ptr, align 8

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3PBD6Shader20createAndLinkProgramEv(ptr nocapture noundef nonnull align 8 dereferenceable(116) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = load ptr, ptr @__glewCreateProgram, align 8, !tbaa !5
  %5 = tail call i32 %4()
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %5, ptr %6, align 4, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  %8 = load i32, ptr %7, align 8, !tbaa !22
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %11, label %9

9:                                                ; preds = %1
  %10 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !5
  tail call void %10(i32 noundef %5, i32 noundef %8)
  %.pre16.pre17.pre = load i32, ptr %6, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %1, %9
  %.pre16.pre17 = phi i32 [ %5, %1 ], [ %.pre16.pre17.pre, %9 ]
  %12 = getelementptr inbounds i8, ptr %0, i64 108
  %13 = load i32, ptr %12, align 4, !tbaa !22
  %.not.1 = icmp eq i32 %13, 0
  br i1 %.not.1, label %16, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !5
  tail call void %15(i32 noundef %.pre16.pre17, i32 noundef %13)
  %.pre16.pre = load i32, ptr %6, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %14, %11
  %.pre16 = phi i32 [ %.pre16.pre, %14 ], [ %.pre16.pre17, %11 ]
  %17 = getelementptr inbounds i8, ptr %0, i64 112
  %18 = load i32, ptr %17, align 8, !tbaa !22
  %.not.2 = icmp eq i32 %18, 0
  br i1 %.not.2, label %21, label %19

19:                                               ; preds = %16
  %20 = load ptr, ptr @__glewAttachShader, align 8, !tbaa !5
  tail call void %20(i32 noundef %.pre16, i32 noundef %18)
  %.pre = load i32, ptr %6, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %19, %16
  %22 = phi i32 [ %.pre, %19 ], [ %.pre16, %16 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %23 = load ptr, ptr @__glewLinkProgram, align 8, !tbaa !5
  tail call void %23(i32 noundef %22)
  %24 = load ptr, ptr @__glewGetProgramiv, align 8, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !9
  call void %24(i32 noundef %25, i32 noundef 35714, ptr noundef nonnull %2)
  %26 = load i32, ptr %2, align 4, !tbaa !22
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  store i8 1, ptr %0, align 8, !tbaa !23
  br label %40

29:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %30 = load ptr, ptr @__glewGetProgramiv, align 8, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !9
  call void %30(i32 noundef %31, i32 noundef 35716, ptr noundef nonnull %3)
  %32 = load i32, ptr %3, align 4, !tbaa !22
  %33 = sext i32 %32 to i64
  %34 = call noalias noundef nonnull ptr @_Znam(i64 noundef %33) #6
  %35 = load ptr, ptr @__glewGetProgramInfoLog, align 8, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !9
  call void %35(i32 noundef %36, i32 noundef %32, ptr noundef null, ptr noundef nonnull %34)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.1)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull %34)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @_ZdaPv(ptr noundef nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %40

40:                                               ; preds = %29, %28
  %41 = load ptr, ptr @__glewDeleteShader, align 8, !tbaa !5
  %42 = load i32, ptr %7, align 8, !tbaa !22
  call void %41(i32 noundef %42)
  %43 = load ptr, ptr @__glewDeleteShader, align 8, !tbaa !5
  %44 = load i32, ptr %12, align 4, !tbaa !22
  call void %43(i32 noundef %44)
  %45 = load ptr, ptr @__glewDeleteShader, align 8, !tbaa !5
  %46 = load i32, ptr %17, align 8, !tbaa !22
  call void %45(i32 noundef %46)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { nobuiltin 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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, !12, i64 4}
!10 = !{!"_ZTSN3PBD6ShaderE", !11, i64 0, !12, i64 4, !13, i64 8, !13, i64 56, !7, i64 104}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE", !14, i64 0}
!14 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !15, i64 0}
!15 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !16, i64 0, !18, i64 8}
!16 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !17, i64 0}
!17 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!18 = !{!"_ZTSSt15_Rb_tree_header", !19, i64 0, !21, i64 32}
!19 = !{!"_ZTSSt18_Rb_tree_node_base", !20, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!12, !12, i64 0}
!23 = !{!10, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass