; LLVM IR from drohmer/cgp :: library/cgp/16_drawable/mesh_drawable/mesh_drawable.ll (ZN3cgp13mesh_drawable5clearEv)

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

%"struct.cgp::opengl_shader_structure" = type { i32 }
%"struct.cgp::affine" = type { %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack.6", float, %"struct.cgp::numarray_stack.6" }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"struct.cgp::numarray_stack.6" = type { float, float, float }
%"struct.cgp::material_mesh_drawable_phong" = type <{ %"struct.cgp::numarray_stack.6", float, %"struct.cgp::phong_parameters", %"struct.cgp::texture_settings_parameters", i8 }>
%"struct.cgp::phong_parameters" = type { float, float, float, float }
%"struct.cgp::texture_settings_parameters" = type { i8, i8, i8 }
%"struct.cgp::opengl_texture_image_structure" = type { i32, i32, i32, i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.cgp::mesh_drawable" = type <{ %"struct.cgp::opengl_shader_structure", %"struct.cgp::opengl_texture_image_structure", %"class.std::map", %"struct.cgp::opengl_vbo_structure", %"struct.cgp::opengl_vbo_structure", %"struct.cgp::opengl_vbo_structure", %"struct.cgp::opengl_vbo_structure", %"class.std::vector", %"struct.cgp::opengl_ebo_structure", i32, %"struct.cgp::affine", %"struct.cgp::affine_rts", %"struct.cgp::matrix_stack", %"struct.cgp::material_mesh_drawable_phong", [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>, cgp::opengl_texture_image_structure>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, cgp::opengl_texture_image_structure>>, 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>, cgp::opengl_texture_image_structure>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, cgp::opengl_texture_image_structure>>, 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 }
%"struct.cgp::opengl_vbo_structure" = type { %"struct.cgp::opengl_gpu_buffer", i32 }
%"struct.cgp::opengl_gpu_buffer" = type { i32, i32, i32, %"struct.cgp::opengl_gpu_buffer_details" }
%"struct.cgp::opengl_gpu_buffer_details" = type { i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::opengl_vbo_structure, std::allocator<cgp::opengl_vbo_structure>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::opengl_vbo_structure, std::allocator<cgp::opengl_vbo_structure>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::opengl_vbo_structure, std::allocator<cgp::opengl_vbo_structure>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::opengl_vbo_structure, std::allocator<cgp::opengl_vbo_structure>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::opengl_ebo_structure" = type { %"struct.cgp::opengl_gpu_buffer" }
%"struct.cgp::affine_rts" = type { %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack.6", float }
%"struct.cgp::matrix_stack" = type { %"struct.cgp::numarray_stack.7" }
%"struct.cgp::numarray_stack.7" = type { %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack" }

@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@glad_glDeleteVertexArrays = external global ptr, align 8
@__func__._ZN3cgp13mesh_drawable5clearEv = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare void @_ZN3cgp18check_opengl_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp30opengl_texture_image_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @_ZN3cgp6affineC1Ev(ptr noundef nonnull align 4 dereferenceable(44)) unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp28material_mesh_drawable_phongC2Ev(ptr noundef nonnull align 4 dereferenceable(35)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp13mesh_drawable5clearEv(ptr noundef nonnull align 8 dereferenceable(412) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.cgp::opengl_shader_structure", align 4
  %5 = alloca %"struct.cgp::affine", align 4
  %6 = alloca %"struct.cgp::material_mesh_drawable_phong", align 4
  %7 = alloca %"struct.cgp::opengl_texture_image_structure", align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  %15 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 3
  call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %15)
  %16 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 4
  call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %16)
  %17 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 5
  call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  %18 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 6
  call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %31, %1
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 7
  %23 = call noundef i64 @_ZNKSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %24 = icmp ult i64 %21, %23
  br i1 %24, label %26, label %25

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

26:                                               ; preds = %19
  %27 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 7
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #8
  call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %30)
  br label %31

31:                                               ; preds = %26
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %3, align 4, !tbaa !9
  br label %19, !llvm.loop !11

34:                                               ; preds = %25
  %35 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 8
  call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %35)
  %36 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 9
  %37 = load i32, ptr %36, align 8, !tbaa !13
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %42

39:                                               ; preds = %34
  %40 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 9
  call void %40(i32 noundef 1, ptr noundef %41)
  br label %42

42:                                               ; preds = %39, %34
  %43 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 9
  store i32 0, ptr %43, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 4, i1 false)
  call void @_ZN3cgp23opengl_shader_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %4) #8
  %44 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 44, ptr %5) #8
  call void @_ZN3cgp6affineC1Ev(ptr noundef nonnull align 4 dereferenceable(44) %5)
  %45 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %5, i64 44, i1 false)
  call void @llvm.lifetime.end.p0(i64 44, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %6) #8
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 36, i1 false)
  call void @_ZN3cgp28material_mesh_drawable_phongC2Ev(ptr noundef nonnull align 4 dereferenceable(35) %6)
  %46 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 4 %6, i64 35, i1 false), !tbaa.struct !48
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 20, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 20, i1 false)
  call void @_ZN3cgp30opengl_texture_image_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %7) #8
  %47 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %7, i64 20, i1 false), !tbaa.struct !51
  call void @llvm.lifetime.end.p0(i64 20, ptr %7) #8
  %48 = getelementptr inbounds %"struct.cgp::mesh_drawable", ptr %14, i32 0, i32 2
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3cgp30opengl_texture_image_structureESt4lessIS5_ESaISt4pairIKS5_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %48) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %49 unwind label %52

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @__func__._ZN3cgp13mesh_drawable5clearEv, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %50 unwind label %56

50:                                               ; preds = %49
  invoke void @_ZN3cgp18check_opengl_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 134)
          to label %51 unwind label %60

51:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  ret void

52:                                               ; preds = %42
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  br label %65

56:                                               ; preds = %49
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %10, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %11, align 4
  br label %64

60:                                               ; preds = %50
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %10, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %64

64:                                               ; preds = %60, %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %65

65:                                               ; preds = %64, %52
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %10, align 8
  %68 = load i32, ptr %11, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

declare void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp23opengl_shader_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3cgp30opengl_texture_image_structureESt4lessIS5_ESaISt4pairIKS5_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 232}
!14 = !{!"_ZTSN3cgp13mesh_drawableE", !15, i64 0, !16, i64 4, !17, i64 24, !26, i64 72, !26, i64 100, !26, i64 128, !26, i64 156, !29, i64 184, !33, i64 208, !10, i64 232, !34, i64 236, !40, i64 280, !41, i64 312, !43, i64 376}
!15 = !{!"_ZTSN3cgp23opengl_shader_structureE", !10, i64 0}
!16 = !{!"_ZTSN3cgp30opengl_texture_image_structureE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!17 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3cgp30opengl_texture_image_structureESt4lessIS5_ESaISt4pairIKS5_S7_EEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N3cgp30opengl_texture_image_structureEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N3cgp30opengl_texture_image_structureEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !25, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN3cgp20opengl_vbo_structureE", !27, i64 0, !10, i64 24}
!27 = !{!"_ZTSN3cgp17opengl_gpu_bufferE", !10, i64 0, !10, i64 4, !10, i64 8, !28, i64 12}
!28 = !{!"_ZTSN3cgp25opengl_gpu_buffer_detailsE", !10, i64 0, !10, i64 4, !10, i64 8}
!29 = !{!"_ZTSSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN3cgp20opengl_vbo_structureESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN3cgp20opengl_vbo_structureESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN3cgp20opengl_vbo_structureESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSN3cgp20opengl_ebo_structureE", !27, i64 0}
!34 = !{!"_ZTSN3cgp6affineE", !35, i64 0, !39, i64 16, !38, i64 28, !39, i64 32}
!35 = !{!"_ZTSN3cgp18rotation_transformE", !36, i64 0}
!36 = !{!"_ZTSN3cgp10quaternionE", !37, i64 0}
!37 = !{!"_ZTSN3cgp14numarray_stackIfLi4EEE", !38, i64 0, !38, i64 4, !38, i64 8, !38, i64 12}
!38 = !{!"float", !7, i64 0}
!39 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !38, i64 0, !38, i64 4, !38, i64 8}
!40 = !{!"_ZTSN3cgp10affine_rtsE", !35, i64 0, !39, i64 16, !38, i64 28}
!41 = !{!"_ZTSN3cgp12matrix_stackIfLi4ELi4EEE", !42, i64 0}
!42 = !{!"_ZTSN3cgp14numarray_stackINS0_IfLi4EEELi4EEE", !37, i64 0, !37, i64 16, !37, i64 32, !37, i64 48}
!43 = !{!"_ZTSN3cgp28material_mesh_drawable_phongE", !39, i64 0, !38, i64 12, !44, i64 16, !45, i64 32}
!44 = !{!"_ZTSN3cgp16phong_parametersE", !38, i64 0, !38, i64 4, !38, i64 8, !38, i64 12}
!45 = !{!"_ZTSN3cgp27texture_settings_parametersE", !46, i64 0, !46, i64 1, !46, i64 2}
!46 = !{!"bool", !7, i64 0}
!47 = !{i64 0, i64 4, !9}
!48 = !{i64 0, i64 4, !49, i64 4, i64 4, !49, i64 8, i64 4, !49, i64 12, i64 4, !49, i64 16, i64 4, !49, i64 20, i64 4, !49, i64 24, i64 4, !49, i64 28, i64 4, !49, i64 32, i64 1, !50, i64 33, i64 1, !50, i64 34, i64 1, !50}
!49 = !{!38, !38, i64 0}
!50 = !{!46, !46, i64 0}
!51 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9}


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

%"struct.cgp::opengl_shader_structure" = type { i32 }
%"struct.cgp::affine" = type { %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack.6", float, %"struct.cgp::numarray_stack.6" }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"struct.cgp::numarray_stack.6" = type { float, float, float }
%"struct.cgp::material_mesh_drawable_phong" = type <{ %"struct.cgp::numarray_stack.6", float, %"struct.cgp::phong_parameters", %"struct.cgp::texture_settings_parameters", i8 }>
%"struct.cgp::phong_parameters" = type { float, float, float, float }
%"struct.cgp::texture_settings_parameters" = type { i8, i8, i8 }
%"struct.cgp::opengl_texture_image_structure" = type { i32, i32, i32, i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@glad_glDeleteVertexArrays = external local_unnamed_addr global ptr, align 8
@__func__._ZN3cgp13mesh_drawable5clearEv = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

declare void @_ZN3cgp18check_opengl_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp30opengl_texture_image_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @_ZN3cgp6affineC1Ev(ptr noundef nonnull align 4 dereferenceable(44)) unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp28material_mesh_drawable_phongC2Ev(ptr noundef nonnull align 4 dereferenceable(35)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp13mesh_drawable5clearEv(ptr noundef nonnull align 8 dereferenceable(412) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.cgp::opengl_shader_structure", align 4
  %3 = alloca %"struct.cgp::affine", align 4
  %4 = alloca %"struct.cgp::material_mesh_drawable_phong", align 4
  %5 = alloca %"struct.cgp::opengl_texture_image_structure", align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 100
  tail call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 156
  tail call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 184
  %15 = tail call noundef i64 @_ZNKSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %.not12 = icmp eq i64 %15, 0
  br i1 %.not12, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  %16 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 232
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %24, label %22

.lr.ph:                                           ; preds = %1, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %1 ]
  %19 = tail call noundef nonnull align 4 dereferenceable(28) ptr @_ZNSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv) #8
  tail call void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %19)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = tail call noundef i64 @_ZNKSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %21 = icmp ugt i64 %20, %indvars.iv.next
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !43

22:                                               ; preds = %._crit_edge
  %23 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !45
  tail call void %23(i32 noundef 1, ptr noundef nonnull %17)
  br label %24

24:                                               ; preds = %22, %._crit_edge
  store i32 0, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 0, ptr %2, align 4
  call void @_ZN3cgp23opengl_shader_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #8
  %25 = load i32, ptr %2, align 4, !tbaa !46
  store i32 %25, ptr %0, align 8, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %3) #8
  call void @_ZN3cgp6affineC1Ev(ptr noundef nonnull align 4 dereferenceable(44) %3)
  %26 = getelementptr inbounds i8, ptr %0, i64 236
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(44) %26, ptr noundef nonnull align 4 dereferenceable(44) %3, i64 44, i1 false)
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %4, i8 0, i64 36, i1 false)
  call void @_ZN3cgp28material_mesh_drawable_phongC2Ev(ptr noundef nonnull align 4 dereferenceable(35) %4)
  %27 = getelementptr inbounds i8, ptr %0, i64 376
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(35) %27, ptr noundef nonnull align 4 dereferenceable(35) %4, i64 35, i1 false), !tbaa.struct !47
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %5, i8 0, i64 20, i1 false)
  call void @_ZN3cgp30opengl_texture_image_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %5) #8
  %28 = getelementptr inbounds i8, ptr %0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %28, ptr noundef nonnull align 4 dereferenceable(20) %5, i64 20, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #8
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3cgp30opengl_texture_image_structureESt4lessIS5_ESaISt4pairIKS5_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %30 unwind label %33

30:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @__func__._ZN3cgp13mesh_drawable5clearEv, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %31 unwind label %35

31:                                               ; preds = %30
  invoke void @_ZN3cgp18check_opengl_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_i(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 134)
          to label %32 unwind label %37

32:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  ret void

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %40

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %31
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %40

40:                                               ; preds = %39, %33
  %.pn.pn = phi { ptr, i32 } [ %.pn, %39 ], [ %34, %33 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN3cgp17opengl_gpu_buffer5clearEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp23opengl_shader_structureC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3cgp30opengl_texture_image_structureESt4lessIS5_ESaISt4pairIKS5_S7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { 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, !8, i64 232}
!6 = !{!"_ZTSN3cgp13mesh_drawableE", !7, i64 0, !11, i64 4, !12, i64 24, !22, i64 72, !22, i64 100, !22, i64 128, !22, i64 156, !25, i64 184, !29, i64 208, !8, i64 232, !30, i64 236, !36, i64 280, !37, i64 312, !39, i64 376}
!7 = !{!"_ZTSN3cgp23opengl_shader_structureE", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN3cgp30opengl_texture_image_structureE", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!12 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3cgp30opengl_texture_image_structureESt4lessIS5_ESaISt4pairIKS5_S7_EEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N3cgp30opengl_texture_image_structureEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N3cgp30opengl_texture_image_structureEESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !21, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!20 = !{!"any pointer", !9, i64 0}
!21 = !{!"long", !9, i64 0}
!22 = !{!"_ZTSN3cgp20opengl_vbo_structureE", !23, i64 0, !8, i64 24}
!23 = !{!"_ZTSN3cgp17opengl_gpu_bufferE", !8, i64 0, !8, i64 4, !8, i64 8, !24, i64 12}
!24 = !{!"_ZTSN3cgp25opengl_gpu_buffer_detailsE", !8, i64 0, !8, i64 4, !8, i64 8}
!25 = !{!"_ZTSSt6vectorIN3cgp20opengl_vbo_structureESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN3cgp20opengl_vbo_structureESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3cgp20opengl_vbo_structureESaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN3cgp20opengl_vbo_structureESaIS1_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!29 = !{!"_ZTSN3cgp20opengl_ebo_structureE", !23, i64 0}
!30 = !{!"_ZTSN3cgp6affineE", !31, i64 0, !35, i64 16, !34, i64 28, !35, i64 32}
!31 = !{!"_ZTSN3cgp18rotation_transformE", !32, i64 0}
!32 = !{!"_ZTSN3cgp10quaternionE", !33, i64 0}
!33 = !{!"_ZTSN3cgp14numarray_stackIfLi4EEE", !34, i64 0, !34, i64 4, !34, i64 8, !34, i64 12}
!34 = !{!"float", !9, i64 0}
!35 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !34, i64 0, !34, i64 4, !34, i64 8}
!36 = !{!"_ZTSN3cgp10affine_rtsE", !31, i64 0, !35, i64 16, !34, i64 28}
!37 = !{!"_ZTSN3cgp12matrix_stackIfLi4ELi4EEE", !38, i64 0}
!38 = !{!"_ZTSN3cgp14numarray_stackINS0_IfLi4EEELi4EEE", !33, i64 0, !33, i64 16, !33, i64 32, !33, i64 48}
!39 = !{!"_ZTSN3cgp28material_mesh_drawable_phongE", !35, i64 0, !34, i64 12, !40, i64 16, !41, i64 32}
!40 = !{!"_ZTSN3cgp16phong_parametersE", !34, i64 0, !34, i64 4, !34, i64 8, !34, i64 12}
!41 = !{!"_ZTSN3cgp27texture_settings_parametersE", !42, i64 0, !42, i64 1, !42, i64 2}
!42 = !{!"bool", !9, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!20, !20, i64 0}
!46 = !{!8, !8, i64 0}
!47 = !{i64 0, i64 4, !48, i64 4, i64 4, !48, i64 8, i64 4, !48, i64 12, i64 4, !48, i64 16, i64 4, !48, i64 20, i64 4, !48, i64 24, i64 4, !48, i64 28, i64 4, !48, i64 32, i64 1, !49, i64 33, i64 1, !49, i64 34, i64 1, !49}
!48 = !{!34, !34, i64 0}
!49 = !{!42, !42, i64 0}
!50 = !{i64 0, i64 4, !46, i64 4, i64 4, !46, i64 8, i64 4, !46, i64 12, i64 4, !46, i64 16, i64 4, !46}


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