; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/mesh/arrayMesh.ll (ZN3P3D8Graphics9ArrayMeshC2EPKfjjj)

; 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.P3D::Graphics::BufferDataType::Info" = type <{ %"class.std::__cxx11::basic_string", i32, i32, i32, i8, [3 x i8] }>
%"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] }
%"struct.P3D::Graphics::BufferLayout" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.P3D::Graphics::BufferElement" = type <{ %"class.std::__cxx11::basic_string", %"struct.P3D::Graphics::BufferDataType::Info", i8, i8, [6 x i8] }>
%"class.std::allocator.0" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.P3D::Graphics::ArrayMesh" = type <{ %"class.P3D::Graphics::AbstractMesh.base", [4 x i8], %"struct.P3D::Graphics::BufferLayout", %"struct.P3D::Graphics::BufferLayout", ptr, ptr, i32, [4 x i8] }>
%"class.P3D::Graphics::AbstractMesh.base" = type <{ ptr, ptr, i32 }>
%"class.P3D::Graphics::AbstractMesh" = type <{ ptr, ptr, i32, [4 x i8] }>

@_ZTVN3P3D8Graphics9ArrayMeshE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZN3P3D8Graphics14BufferDataType6FLOAT2E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@_ZN3P3D8Graphics14BufferDataType6FLOAT3E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics9ArrayMeshC2EPKfjjj(ptr noundef nonnull align 8 dereferenceable(108) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.0", align 1
  %20 = alloca i1, align 1
  %21 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %22 = load ptr, ptr %6, align 8
  %23 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN3P3D8Graphics12AbstractMeshC2Ej(ptr noundef nonnull align 8 dereferenceable(20) %22, i32 noundef %23)
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN3P3D8Graphics9ArrayMeshE, i32 0, i32 0, i32 2), ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 2
  call void @_ZN3P3D8Graphics12BufferLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24)
  %25 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 3
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25)
          to label %26 unwind label %72

26:                                               ; preds = %5
  %27 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 4
  store ptr null, ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 5
  store ptr null, ptr %28, align 8, !tbaa !21
  %29 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 6
  %30 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %30, ptr %29, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 88, ptr %16) #7
  store i1 true, ptr %20, align 1
  store ptr %16, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %31 unwind label %76

31:                                               ; preds = %26
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 2
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  br label %36

35:                                               ; preds = %31
  br label %36

36:                                               ; preds = %35, %34
  %37 = phi ptr [ @_ZN3P3D8Graphics14BufferDataType6FLOAT2E, %34 ], [ @_ZN3P3D8Graphics14BufferDataType6FLOAT3E, %35 ]
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %16, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(45) %37, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %38 unwind label %80

38:                                               ; preds = %36
  store i1 false, ptr %20, align 1
  %39 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 0
  store ptr %16, ptr %39, align 8, !tbaa !23
  %40 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 1
  store i64 1, ptr %40, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  %41 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %44 = load i64, ptr %43, align 8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr %42, i64 %44, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %45 unwind label %84

45:                                               ; preds = %38
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %46 unwind label %88

46:                                               ; preds = %45
  %47 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 2
  %48 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN3P3D8Graphics12BufferLayoutaSEOS1_(ptr noundef nonnull align 8 dereferenceable(28) %47, ptr noundef nonnull align 8 dereferenceable(28) %13) #7
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13) #7
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  %49 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %16, i32 0, i32 0
  %50 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %49, i64 1
  br label %51

51:                                               ; preds = %51, %46
  %52 = phi ptr [ %50, %46 ], [ %53, %51 ]
  %53 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %52, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %53) #7
  %54 = icmp eq ptr %53, %49
  br i1 %54, label %55, label %51

55:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  %56 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
          to label %57 unwind label %112

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 2
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = mul i32 %60, %61
  %63 = zext i32 %62 to i64
  %64 = mul i64 %63, 4
  invoke void @_ZN3P3D8Graphics12VertexBufferC1ERKNS0_12BufferLayoutEPKvm(ptr noundef nonnull align 8 dereferenceable(64) %56, ptr noundef nonnull align 8 dereferenceable(28) %58, ptr noundef %59, i64 noundef %64)
          to label %65 unwind label %116

65:                                               ; preds = %57
  %66 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 4
  store ptr %56, ptr %66, align 8, !tbaa !13
  %67 = getelementptr inbounds %"class.P3D::Graphics::AbstractMesh", ptr %22, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !27
  %69 = getelementptr inbounds %"class.P3D::Graphics::ArrayMesh", ptr %22, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef %70)
          to label %71 unwind label %112

71:                                               ; preds = %65
  ret void

72:                                               ; preds = %5
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  br label %121

76:                                               ; preds = %26
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  br label %101

80:                                               ; preds = %36
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %11, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %12, align 4
  br label %100

84:                                               ; preds = %38
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %11, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %12, align 4
  br label %92

88:                                               ; preds = %45
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %92

92:                                               ; preds = %88, %84
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  %93 = getelementptr inbounds [1 x %"struct.P3D::Graphics::BufferElement"], ptr %16, i32 0, i32 0
  %94 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %93, i64 1
  br label %95

95:                                               ; preds = %95, %92
  %96 = phi ptr [ %94, %92 ], [ %97, %95 ]
  %97 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %96, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %97) #7
  %98 = icmp eq ptr %97, %93
  br i1 %98, label %99, label %95

99:                                               ; preds = %95
  br label %100

100:                                              ; preds = %99, %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %101

101:                                              ; preds = %100, %76
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  %102 = load i1, ptr %20, align 1
  br i1 %102, label %103, label %111

103:                                              ; preds = %101
  %104 = load ptr, ptr %17, align 8
  %105 = icmp eq ptr %16, %104
  br i1 %105, label %110, label %106

106:                                              ; preds = %106, %103
  %107 = phi ptr [ %104, %103 ], [ %108, %106 ]
  %108 = getelementptr inbounds %"struct.P3D::Graphics::BufferElement", ptr %107, i64 -1
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %108) #7
  %109 = icmp eq ptr %108, %16
  br i1 %109, label %110, label %106

110:                                              ; preds = %106, %103
  br label %111

111:                                              ; preds = %110, %101
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %120

112:                                              ; preds = %65, %55
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %11, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %12, align 4
  br label %120

116:                                              ; preds = %57
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %56, i64 noundef 64) #9
  br label %120

120:                                              ; preds = %116, %112, %111
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #7
  br label %121

121:                                              ; preds = %120, %72
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24) #7
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %11, align 8
  %124 = load i32, ptr %12, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126
}

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

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) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(45), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZN3P3D8Graphics12BufferLayoutaSEOS1_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82)) unnamed_addr #3 align 2

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

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

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

declare void @_ZN3P3D8Graphics12VertexBufferC1ERKNS0_12BufferLayoutEPKvm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i64 noundef) unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

declare void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #5

declare void @_ZN3P3D8Graphics12AbstractMeshC2Ej(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) unnamed_addr #5

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { "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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 88}
!14 = !{!"_ZTSN3P3D8Graphics9ArrayMeshE", !15, i64 0, !16, i64 24, !16, i64 56, !6, i64 88, !6, i64 96, !10, i64 104}
!15 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !6, i64 8, !10, i64 16}
!16 = !{!"_ZTSN3P3D8Graphics12BufferLayoutE", !17, i64 0, !10, i64 24}
!17 = !{!"_ZTSSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN3P3D8Graphics13BufferElementESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics13BufferElementESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics13BufferElementESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!14, !6, i64 96}
!22 = !{!14, !10, i64 104}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTSSt16initializer_listIN3P3D8Graphics13BufferElementEE", !6, i64 0, !25, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!24, !25, i64 8}
!27 = !{!15, !6, 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"

%"struct.P3D::Graphics::BufferDataType::Info" = type <{ %"class.std::__cxx11::basic_string", i32, i32, i32, i8, [3 x i8] }>
%"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] }
%"struct.P3D::Graphics::BufferLayout" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P3D::Graphics::BufferElement, std::allocator<P3D::Graphics::BufferElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.P3D::Graphics::BufferElement" = type <{ %"class.std::__cxx11::basic_string", %"struct.P3D::Graphics::BufferDataType::Info", i8, i8, [6 x i8] }>
%"class.std::allocator.0" = type { i8 }
%"class.std::allocator" = type { i8 }

@_ZTVN3P3D8Graphics9ArrayMeshE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZN3P3D8Graphics14BufferDataType6FLOAT2E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8
@_ZN3P3D8Graphics14BufferDataType6FLOAT3E = external global %"struct.P3D::Graphics::BufferDataType::Info", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics9ArrayMeshC2EPKfjjj(ptr noundef nonnull align 8 dereferenceable(108) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.P3D::Graphics::BufferLayout", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca [1 x %"struct.P3D::Graphics::BufferElement"], align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca %"class.std::allocator", align 1
  tail call void @_ZN3P3D8Graphics12AbstractMeshC2Ej(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %4)
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN3P3D8Graphics9ArrayMeshE, i64 16), ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN3P3D8Graphics12BufferLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13)
          to label %14 unwind label %32

14:                                               ; preds = %5
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  store i32 %2, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %17 unwind label %34

17:                                               ; preds = %14
  %18 = icmp eq i32 %3, 2
  %_ZN3P3D8Graphics14BufferDataType6FLOAT2E._ZN3P3D8Graphics14BufferDataType6FLOAT3E = select i1 %18, ptr @_ZN3P3D8Graphics14BufferDataType6FLOAT2E, ptr @_ZN3P3D8Graphics14BufferDataType6FLOAT3E
  invoke void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82) %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(45) %_ZN3P3D8Graphics14BufferDataType6FLOAT2E._ZN3P3D8Graphics14BufferDataType6FLOAT3E, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %19 unwind label %36

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaIN3P3D8Graphics13BufferElementEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %8, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %20 unwind label %38

20:                                               ; preds = %19
  invoke void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %21 unwind label %40

21:                                               ; preds = %20
  %22 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN3P3D8Graphics12BufferLayoutaSEOS1_(ptr noundef nonnull align 8 dereferenceable(28) %12, ptr noundef nonnull align 8 dereferenceable(28) %6) #8
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #8
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %23 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #9
          to label %24 unwind label %43

24:                                               ; preds = %21
  %25 = mul i32 %3, %2
  %26 = zext i32 %25 to i64
  %27 = shl nuw nsw i64 %26, 2
  invoke void @_ZN3P3D8Graphics12VertexBufferC1ERKNS0_12BufferLayoutEPKvm(ptr noundef nonnull align 8 dereferenceable(64) %23, ptr noundef nonnull align 8 dereferenceable(28) %12, ptr noundef %1, i64 noundef %27)
          to label %28 unwind label %45

28:                                               ; preds = %24
  store ptr %23, ptr %15, align 8, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  invoke void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull %23)
          to label %31 unwind label %43

31:                                               ; preds = %28
  ret void

32:                                               ; preds = %5
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %48

34:                                               ; preds = %14
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %42

36:                                               ; preds = %17
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

38:                                               ; preds = %19
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

40:                                               ; preds = %20
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %40, %38
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @_ZNSt15__new_allocatorIN3P3D8Graphics13BufferElementEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  call void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82) %8) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %36
  %.pn.pn = phi { ptr, i32 } [ %37, %36 ], [ %.pn, %.loopexit.loopexit ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %42

42:                                               ; preds = %.loopexit, %34
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %35, %34 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %47

43:                                               ; preds = %28, %21
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %24
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 64) #10
  br label %47

47:                                               ; preds = %45, %43, %42
  %.pn22 = phi { ptr, i32 } [ %44, %43 ], [ %46, %45 ], [ %.pn.pn.pn, %42 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13) #8
  br label %48

48:                                               ; preds = %47, %32
  %.pn22.pn = phi { ptr, i32 } [ %.pn22, %47 ], [ %33, %32 ]
  call void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #8
  resume { ptr, i32 } %.pn22.pn
}

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics13BufferElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_14BufferDataType4InfoEbb(ptr noundef nonnull align 8 dereferenceable(82), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(45), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics12BufferLayoutC2ERKSt6vectorINS0_13BufferElementESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZN3P3D8Graphics12BufferLayoutaSEOS1_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics12BufferLayoutD2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics13BufferElementD2Ev(ptr noundef nonnull align 8 dereferenceable(82)) unnamed_addr #3 align 2

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

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

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

declare void @_ZN3P3D8Graphics12VertexBufferC1ERKNS0_12BufferLayoutEPKvm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i64 noundef) unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

declare void @_ZN3P3D8Graphics11VertexArray9addBufferEPNS0_12VertexBufferE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #5

declare void @_ZN3P3D8Graphics12AbstractMeshC2Ej(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) unnamed_addr #5

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { "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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 104}
!9 = !{!"_ZTSN3P3D8Graphics9ArrayMeshE", !10, i64 0, !14, i64 24, !14, i64 56, !11, i64 88, !11, i64 96, !13, i64 104}
!10 = !{!"_ZTSN3P3D8Graphics12AbstractMeshE", !11, i64 8, !13, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"int", !12, i64 0}
!14 = !{!"_ZTSN3P3D8Graphics12BufferLayoutE", !15, i64 0, !13, i64 24}
!15 = !{!"_ZTSSt6vectorIN3P3D8Graphics13BufferElementESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3P3D8Graphics13BufferElementESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics13BufferElementESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3P3D8Graphics13BufferElementESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!19 = !{!9, !11, i64 88}
!20 = !{!10, !11, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass