; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Renderer/GeometryRenderer.ll (ZN3imp16GeometryRenderer15enableDepthTestEb)

; 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::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::GeometryRenderer" = type <{ %"class.imp::Object", %"class.std::map", %"class.std::map.0", %"struct.imp::UniformMap", %"class.std::shared_ptr.16", %"class.std::shared_ptr.19", %"class.imp::Rasterizer", %"class.imp::Matrix4", %"class.imp::Matrix4", %"class.imp::Matrix4", %"class.imp::Vec4", i32, [4 x i8], %"class.std::shared_ptr.25", i8, [7 x i8] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::shared_ptr<imp::Image>>, std::_Select1st<std::pair<const int, std::shared_ptr<imp::Image>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::shared_ptr<imp::Image>>, std::_Select1st<std::pair<const int, std::shared_ptr<imp::Image>>>, std::less<int>>::_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::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<int, std::pair<const int, imp::Vec4>, std::_Select1st<std::pair<const int, imp::Vec4>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, imp::Vec4>, std::_Select1st<std::pair<const int, imp::Vec4>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.imp::UniformMap" = type { %"class.std::map.5", %"class.imp::Matrix3", %"class.imp::Matrix4", %"class.imp::Vec3", %"class.imp::Vec4", %"class.std::shared_ptr.13" }
%"class.std::map.5" = type { %"class.std::_Rb_tree.6" }
%"class.std::_Rb_tree.6" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<imp::Uniform>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<imp::Uniform>>>, 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>, std::shared_ptr<imp::Uniform>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<imp::Uniform>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.imp::Matrix3" = type { %"class.imp::Matrix.base", [4 x i8] }
%"class.imp::Matrix.base" = type <{ %"class.imp::Object", [9 x float] }>
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.std::shared_ptr.13" = type { %"class.std::__shared_ptr.14" }
%"class.std::__shared_ptr.14" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.16" = type { %"class.std::__shared_ptr.17" }
%"class.std::__shared_ptr.17" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Rasterizer" = type { %"class.imp::Object", %"class.std::map", %"class.std::vector", %"class.std::vector", %"struct.imp::UniformMap", %"class.imp::Vec4", %"class.std::shared_ptr.19" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<imp::Varyings, std::allocator<imp::Varyings>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Varyings, std::allocator<imp::Varyings>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Varyings, std::allocator<imp::Varyings>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Varyings, std::allocator<imp::Varyings>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.imp::Matrix4" = type { %"class.imp::Matrix.11" }
%"class.imp::Matrix.11" = type { %"class.imp::Object", [16 x float] }
%"class.imp::Vec4" = type { %"class.imp::Vec.12" }
%"class.imp::Vec.12" = type { %"class.imp::Object", [4 x float] }

@_ZTIN3imp12FragCallbackE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN3imp21DepthTestFragCallbackE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZN3imp16GeometryRenderer15enableDepthTestEb(ptr noundef nonnull align 8 dereferenceable(1249) %0, i1 noundef zeroext %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::shared_ptr.25", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = zext i1 %1 to i8
  store i8 %9, ptr %4, align 1, !tbaa !9
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %11 = getelementptr inbounds %"class.imp::GeometryRenderer", ptr %10, i32 0, i32 5
  %12 = call noundef ptr @_ZNKSt12__shared_ptrIN3imp12FragCallbackELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  %13 = icmp eq ptr %12, null
  br i1 %13, label %16, label %14

14:                                               ; preds = %2
  %15 = call ptr @__dynamic_cast(ptr %12, ptr @_ZTIN3imp12FragCallbackE, ptr @_ZTIN3imp21DepthTestFragCallbackE, i64 0) #4
  br label %17

16:                                               ; preds = %2
  br label %17

17:                                               ; preds = %16, %14
  %18 = phi ptr [ %15, %14 ], [ null, %16 ]
  store ptr %18, ptr %5, align 8, !tbaa !5
  %19 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %20 = trunc i8 %19 to i1
  %21 = getelementptr inbounds %"class.imp::GeometryRenderer", ptr %10, i32 0, i32 14
  %22 = zext i1 %20 to i8
  store i8 %22, ptr %21, align 8, !tbaa !13
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.imp::GeometryRenderer", ptr %10, i32 0, i32 14
  %25 = load i8, ptr %24, align 8, !tbaa !13, !range !11, !noundef !12
  %26 = trunc i8 %25 to i1
  call void @_ZN3imp21DepthTestFragCallback15enableDepthTestEb(ptr noundef nonnull align 8 dereferenceable(68) %23, i1 noundef zeroext %26)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.imp::GeometryRenderer", ptr %10, i32 0, i32 13
  call void @_ZNSt10shared_ptrIN3imp10FloatImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  invoke void @_ZN3imp21DepthTestFragCallback14setDepthBufferESt10shared_ptrINS_10FloatImageEE(ptr noundef nonnull align 8 dereferenceable(68) %27, ptr noundef %6)
          to label %29 unwind label %30

29:                                               ; preds = %17
  call void @_ZNSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

30:                                               ; preds = %17
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  call void @_ZNSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %34

34:                                               ; preds = %30
  %35 = load ptr, ptr %7, align 8
  %36 = load i32, ptr %8, align 4
  %37 = insertvalue { ptr, i32 } poison, ptr %35, 0
  %38 = insertvalue { ptr, i32 } %37, i32 %36, 1
  resume { ptr, i32 } %38
}

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp21DepthTestFragCallback15enableDepthTestEb(ptr noundef nonnull align 8 dereferenceable(68), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp21DepthTestFragCallback14setDepthBufferESt10shared_ptrINS_10FloatImageEE(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 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 = { 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 willreturn memory(read) }
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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 1248}
!14 = !{!"_ZTSN3imp16GeometryRendererE", !15, i64 0, !19, i64 24, !28, i64 72, !31, i64 120, !47, i64 416, !49, i64 432, !51, i64 448, !39, i64 920, !39, i64 1008, !39, i64 1096, !43, i64 1184, !56, i64 1224, !57, i64 1232, !10, i64 1248}
!15 = !{!"_ZTSN3imp6ObjectE", !16, i64 8}
!16 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!19 = !{!"_ZTSSt3mapIiSt10shared_ptrIN3imp5ImageEESt4lessIiESaISt4pairIKiS3_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiSt10shared_ptrIN3imp5ImageEEESt10_Select1stIS6_ESt4lessIiESaIS6_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiSt10shared_ptrIN3imp5ImageEEESt10_Select1stIS6_ESt4lessIiESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessIiE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !27, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSSt3mapIiN3imp4Vec4ESt4lessIiESaISt4pairIKiS1_EEE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiN3imp4Vec4EESt10_Select1stIS4_ESt4lessIiESaIS4_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiN3imp4Vec4EESt10_Select1stIS4_ESt4lessIiESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !22, i64 0, !24, i64 8}
!31 = !{!"_ZTSN3imp10UniformMapE", !32, i64 0, !37, i64 48, !39, i64 112, !41, i64 200, !43, i64 240, !45, i64 280}
!32 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN3imp7UniformEESt4lessIS5_ESaISt4pairIKS5_S9_EEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrIN3imp7UniformEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrIN3imp7UniformEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !35, i64 0, !24, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!37 = !{!"_ZTSN3imp7Matrix3E", !38, i64 0}
!38 = !{!"_ZTSN3imp6MatrixILi3ELi3EfEE", !15, i64 0, !7, i64 24}
!39 = !{!"_ZTSN3imp7Matrix4E", !40, i64 0}
!40 = !{!"_ZTSN3imp6MatrixILi4ELi4EfEE", !15, i64 0, !7, i64 24}
!41 = !{!"_ZTSN3imp4Vec3E", !42, i64 0}
!42 = !{!"_ZTSN3imp3VecILi3EfEE", !15, i64 0, !7, i64 24}
!43 = !{!"_ZTSN3imp4Vec4E", !44, i64 0}
!44 = !{!"_ZTSN3imp3VecILi4EfEE", !15, i64 0, !7, i64 24}
!45 = !{!"_ZTSSt10shared_ptrIN3imp12ImageSamplerEE", !46, i64 0}
!46 = !{!"_ZTSSt12__shared_ptrIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!47 = !{!"_ZTSSt10shared_ptrIN3imp16GeometryRenderer12VertCallbackEE", !48, i64 0}
!48 = !{!"_ZTSSt12__shared_ptrIN3imp16GeometryRenderer12VertCallbackELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!49 = !{!"_ZTSSt10shared_ptrIN3imp12FragCallbackEE", !50, i64 0}
!50 = !{!"_ZTSSt12__shared_ptrIN3imp12FragCallbackELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!51 = !{!"_ZTSN3imp10RasterizerE", !15, i64 0, !19, i64 24, !52, i64 72, !52, i64 96, !31, i64 120, !43, i64 416, !49, i64 456}
!52 = !{!"_ZTSSt6vectorIN3imp8VaryingsESaIS1_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIN3imp8VaryingsESaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIN3imp8VaryingsESaIS1_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIN3imp8VaryingsESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!56 = !{!"_ZTSN3imp16GeometryRenderer4CullE", !7, i64 0}
!57 = !{!"_ZTSSt10shared_ptrIN3imp10FloatImageEE", !58, i64 0}
!58 = !{!"_ZTSSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, 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"

%"class.std::shared_ptr.25" = type { %"class.std::__shared_ptr.26" }
%"class.std::__shared_ptr.26" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@_ZTIN3imp12FragCallbackE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN3imp21DepthTestFragCallbackE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3imp16GeometryRenderer15enableDepthTestEb(ptr noundef nonnull align 8 dereferenceable(1249) %0, i1 noundef zeroext %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_ptr.25", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 432
  %5 = tail call noundef ptr @_ZNKSt12__shared_ptrIN3imp12FragCallbackELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #3
  %6 = icmp ne ptr %5, null
  tail call void @llvm.assume(i1 %6)
  %7 = tail call ptr @__dynamic_cast(ptr nonnull %5, ptr nonnull @_ZTIN3imp12FragCallbackE, ptr nonnull @_ZTIN3imp21DepthTestFragCallbackE, i64 0) #3
  %8 = zext i1 %1 to i8
  %9 = getelementptr inbounds i8, ptr %0, i64 1248
  store i8 %8, ptr %9, align 8, !tbaa !5
  tail call void @_ZN3imp21DepthTestFragCallback15enableDepthTestEb(ptr noundef nonnull align 8 dereferenceable(68) %7, i1 noundef zeroext %1)
  %10 = getelementptr inbounds i8, ptr %0, i64 1232
  call void @_ZNSt10shared_ptrIN3imp10FloatImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %10) #3
  call void @_ZN3imp21DepthTestFragCallback14setDepthBufferESt10shared_ptrINS_10FloatImageEE(ptr noundef nonnull align 8 dereferenceable(68) %7, ptr noundef nonnull %3)
  call void @_ZNSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt12__shared_ptrIN3imp12FragCallbackELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp21DepthTestFragCallback15enableDepthTestEb(ptr noundef nonnull align 8 dereferenceable(68), i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp21DepthTestFragCallback14setDepthBufferESt10shared_ptrINS_10FloatImageEE(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #2

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !54, i64 1248}
!6 = !{!"_ZTSN3imp16GeometryRendererE", !7, i64 0, !14, i64 24, !23, i64 72, !26, i64 120, !42, i64 416, !44, i64 432, !46, i64 448, !34, i64 920, !34, i64 1008, !34, i64 1096, !38, i64 1184, !51, i64 1224, !52, i64 1232, !54, i64 1248}
!7 = !{!"_ZTSN3imp6ObjectE", !8, i64 8}
!8 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !9, i64 0}
!9 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!14 = !{!"_ZTSSt3mapIiSt10shared_ptrIN3imp5ImageEESt4lessIiESaISt4pairIKiS3_EEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiSt10shared_ptrIN3imp5ImageEEESt10_Select1stIS6_ESt4lessIiESaIS6_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiSt10shared_ptrIN3imp5ImageEEESt10_Select1stIS6_ESt4lessIiESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessIiE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !22, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!22 = !{!"long", !11, i64 0}
!23 = !{!"_ZTSSt3mapIiN3imp4Vec4ESt4lessIiESaISt4pairIKiS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiN3imp4Vec4EESt10_Select1stIS4_ESt4lessIiESaIS4_EE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiN3imp4Vec4EESt10_Select1stIS4_ESt4lessIiESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !17, i64 0, !19, i64 8}
!26 = !{!"_ZTSN3imp10UniformMapE", !27, i64 0, !32, i64 48, !34, i64 112, !36, i64 200, !38, i64 240, !40, i64 280}
!27 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN3imp7UniformEESt4lessIS5_ESaISt4pairIKS5_S9_EEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrIN3imp7UniformEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrIN3imp7UniformEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !30, i64 0, !19, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!32 = !{!"_ZTSN3imp7Matrix3E", !33, i64 0}
!33 = !{!"_ZTSN3imp6MatrixILi3ELi3EfEE", !7, i64 0, !11, i64 24}
!34 = !{!"_ZTSN3imp7Matrix4E", !35, i64 0}
!35 = !{!"_ZTSN3imp6MatrixILi4ELi4EfEE", !7, i64 0, !11, i64 24}
!36 = !{!"_ZTSN3imp4Vec3E", !37, i64 0}
!37 = !{!"_ZTSN3imp3VecILi3EfEE", !7, i64 0, !11, i64 24}
!38 = !{!"_ZTSN3imp4Vec4E", !39, i64 0}
!39 = !{!"_ZTSN3imp3VecILi4EfEE", !7, i64 0, !11, i64 24}
!40 = !{!"_ZTSSt10shared_ptrIN3imp12ImageSamplerEE", !41, i64 0}
!41 = !{!"_ZTSSt12__shared_ptrIN3imp12ImageSamplerELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!42 = !{!"_ZTSSt10shared_ptrIN3imp16GeometryRenderer12VertCallbackEE", !43, i64 0}
!43 = !{!"_ZTSSt12__shared_ptrIN3imp16GeometryRenderer12VertCallbackELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!44 = !{!"_ZTSSt10shared_ptrIN3imp12FragCallbackEE", !45, i64 0}
!45 = !{!"_ZTSSt12__shared_ptrIN3imp12FragCallbackELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!46 = !{!"_ZTSN3imp10RasterizerE", !7, i64 0, !14, i64 24, !47, i64 72, !47, i64 96, !26, i64 120, !38, i64 416, !44, i64 456}
!47 = !{!"_ZTSSt6vectorIN3imp8VaryingsESaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIN3imp8VaryingsESaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIN3imp8VaryingsESaIS1_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN3imp8VaryingsESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!51 = !{!"_ZTSN3imp16GeometryRenderer4CullE", !11, i64 0}
!52 = !{!"_ZTSSt10shared_ptrIN3imp10FloatImageEE", !53, i64 0}
!53 = !{!"_ZTSSt12__shared_ptrIN3imp10FloatImageELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!54 = !{!"bool", !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass