; LLVM IR from drohmer/cgp :: library/cgp/11_mesh/primitive (primitive)

; 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::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.0", %"struct.cgp::numarray.6" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.6" = type { %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray_stack" = type { float, float, float }
%"struct.cgp::frame" = type { %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack" }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack.15" }
%"struct.cgp::numarray_stack.15" = type { float, float, float, float }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8, float noundef, ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp20mesh_primitive_frameERKNS_5frameEfRKNS_14numarray_stackIfLi3EEES6_S6_S6_f(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, ptr noundef nonnull align 4 dereferenceable(28) %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %7) #5 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.cgp::numarray_stack", align 4
  %19 = alloca %"struct.cgp::numarray_stack", align 4
  %20 = alloca %"struct.cgp::numarray_stack", align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca { <2 x float>, float }, align 8
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %"struct.cgp::numarray_stack", align 4
  %25 = alloca %"struct.cgp::numarray_stack", align 4
  %26 = alloca %"struct.cgp::numarray_stack", align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca { <2 x float>, float }, align 8
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca %"struct.cgp::numarray_stack", align 4
  %31 = alloca %"struct.cgp::numarray_stack", align 4
  %32 = alloca %"struct.cgp::numarray_stack", align 4
  %33 = alloca { <2 x float>, float }, align 8
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %"struct.cgp::mesh", align 8
  %37 = alloca %"struct.cgp::mesh", align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca %"struct.cgp::mesh", align 8
  %41 = alloca %"struct.cgp::mesh", align 8
  %42 = alloca i1, align 1
  store ptr %0, ptr %9, align 8
  store ptr %1, ptr %10, align 8, !tbaa !5
  store float %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store float %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.cgp::frame", ptr %43, i32 0, i32 1
  store ptr %44, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  %46 = load float, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = call { <2 x float>, float } @_ZNK3cgp5frame2uxEv(ptr noundef nonnull align 4 dereferenceable(28) %47)
  store { <2 x float>, float } %48, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %21, i64 12, i1 false)
  %49 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %46, ptr noundef nonnull align 4 dereferenceable(12) %20)
  store { <2 x float>, float } %49, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %22, i64 12, i1 false)
  %50 = call { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(12) %19)
  store { <2 x float>, float } %50, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  %51 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  %52 = load float, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #7
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = call { <2 x float>, float } @_ZNK3cgp5frame2uyEv(ptr noundef nonnull align 4 dereferenceable(28) %53)
  store { <2 x float>, float } %54, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %27, i64 12, i1 false)
  %55 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %52, ptr noundef nonnull align 4 dereferenceable(12) %26)
  store { <2 x float>, float } %55, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %28, i64 12, i1 false)
  %56 = call { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(12) %25)
  store { <2 x float>, float } %56, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %29, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #7
  %57 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  %58 = load float, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #7
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call { <2 x float>, float } @_ZNK3cgp5frame2uzEv(ptr noundef nonnull align 4 dereferenceable(28) %59)
  store { <2 x float>, float } %60, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %33, i64 12, i1 false)
  %61 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %58, ptr noundef nonnull align 4 dereferenceable(12) %32)
  store { <2 x float>, float } %61, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %34, i64 12, i1 false)
  %62 = call { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %31)
  store { <2 x float>, float } %62, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 120, ptr %36) #7
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = load float, ptr %16, align 4, !tbaa !9
  %65 = load float, ptr %11, align 4, !tbaa !9
  %66 = fmul float %64, %65
  call void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind writable sret(%"struct.cgp::mesh") align 8 %36, ptr noundef nonnull align 4 dereferenceable(12) %63, ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %66, float noundef 4.000000e+00, float noundef 2.500000e+00, i32 noundef 18)
  call void @llvm.lifetime.start.p0(i64 120, ptr %37) #7
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = load float, ptr %16, align 4, !tbaa !9
  %69 = load float, ptr %11, align 4, !tbaa !9
  %70 = fmul float %68, %69
  invoke void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind writable sret(%"struct.cgp::mesh") align 8 %37, ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %24, float noundef %70, float noundef 4.000000e+00, float noundef 2.500000e+00, i32 noundef 18)
          to label %71 unwind label %112

71:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 120, ptr %40) #7
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = load float, ptr %16, align 4, !tbaa !9
  %74 = load float, ptr %11, align 4, !tbaa !9
  %75 = fmul float %73, %74
  invoke void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind writable sret(%"struct.cgp::mesh") align 8 %40, ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(12) %30, float noundef %75, float noundef 4.000000e+00, float noundef 2.500000e+00, i32 noundef 18)
          to label %76 unwind label %116

76:                                               ; preds = %71
  %77 = getelementptr inbounds %"struct.cgp::mesh", ptr %36, i32 0, i32 2
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(12) %78)
          to label %80 unwind label %120

80:                                               ; preds = %76
  %81 = getelementptr inbounds %"struct.cgp::mesh", ptr %37, i32 0, i32 2
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(12) %82)
          to label %84 unwind label %120

84:                                               ; preds = %80
  %85 = getelementptr inbounds %"struct.cgp::mesh", ptr %40, i32 0, i32 2
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(12) %86)
          to label %88 unwind label %120

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 120, ptr %41) #7
  %89 = load float, ptr %16, align 4, !tbaa !9
  %90 = fpext float %89 to double
  %91 = fmul double 2.500000e+00, %90
  %92 = load float, ptr %11, align 4, !tbaa !9
  %93 = fpext float %92 to double
  %94 = fmul double %91, %93
  %95 = fptrunc double %94 to float
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii(ptr dead_on_unwind writable sret(%"struct.cgp::mesh") align 8 %41, float noundef %95, ptr noundef nonnull align 4 dereferenceable(12) %96, i32 noundef 40, i32 noundef 20)
          to label %97 unwind label %124

97:                                               ; preds = %88
  %98 = getelementptr inbounds %"struct.cgp::mesh", ptr %41, i32 0, i32 2
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 4 dereferenceable(12) %99)
          to label %101 unwind label %128

101:                                              ; preds = %97
  store i1 false, ptr %42, align 1
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %102 unwind label %128

102:                                              ; preds = %101
  %103 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %36)
          to label %104 unwind label %132

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %103, ptr noundef nonnull align 8 dereferenceable(120) %37)
          to label %106 unwind label %132

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %105, ptr noundef nonnull align 8 dereferenceable(120) %40)
          to label %108 unwind label %132

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %107, ptr noundef nonnull align 8 dereferenceable(120) %41)
          to label %110 unwind label %132

110:                                              ; preds = %108
  store i1 true, ptr %42, align 1
  %111 = load i1, ptr %42, align 1
  br i1 %111, label %137, label %136

112:                                              ; preds = %8
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %38, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %39, align 4
  br label %142

116:                                              ; preds = %71
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %38, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %39, align 4
  br label %141

120:                                              ; preds = %84, %80, %76
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %38, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %39, align 4
  br label %140

124:                                              ; preds = %88
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %38, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %39, align 4
  br label %139

128:                                              ; preds = %101, %97
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %38, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %39, align 4
  br label %138

132:                                              ; preds = %108, %106, %104, %102
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %38, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %39, align 4
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  br label %138

136:                                              ; preds = %110
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  br label %137

137:                                              ; preds = %136, %110
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %41) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %41) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %40) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %40) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %37) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %36) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  ret void

138:                                              ; preds = %132, %128
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %41) #7
  br label %139

139:                                              ; preds = %138, %124
  call void @llvm.lifetime.end.p0(i64 120, ptr %41) #7
  br label %140

140:                                              ; preds = %139, %120
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %40) #7
  br label %141

141:                                              ; preds = %140, %116
  call void @llvm.lifetime.end.p0(i64 120, ptr %40) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %37) #7
  br label %142

142:                                              ; preds = %141, %112
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %36) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %38, align 8
  %145 = load i32, ptr %39, align 4
  %146 = insertvalue { ptr, i32 } poison, ptr %144, 0
  %147 = insertvalue { ptr, i32 } %146, i32 %145, 1
  resume { ptr, i32 } %147
}

declare { <2 x float>, float } @_ZNK3cgp5frame2uxEv(ptr noundef nonnull align 4 dereferenceable(28)) #3

declare { <2 x float>, float } @_ZNK3cgp5frame2uyEv(ptr noundef nonnull align 4 dereferenceable(28)) #3

declare { <2 x float>, float } @_ZNK3cgp5frame2uzEv(ptr noundef nonnull align 4 dereferenceable(28)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

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


; 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::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.0", %"struct.cgp::numarray.6" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.6" = type { %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray_stack" = type { float, float, float }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8, float noundef, ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp20mesh_primitive_frameERKNS_5frameEfRKNS_14numarray_stackIfLi3EEES6_S6_S6_f(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, ptr noundef nonnull align 4 dereferenceable(28) %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %7) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"struct.cgp::numarray_stack", align 8
  %10 = alloca %"struct.cgp::numarray_stack", align 8
  %11 = alloca %"struct.cgp::numarray_stack", align 8
  %12 = alloca %"struct.cgp::numarray_stack", align 8
  %13 = alloca %"struct.cgp::numarray_stack", align 8
  %14 = alloca %"struct.cgp::numarray_stack", align 8
  %15 = alloca %"struct.cgp::numarray_stack", align 8
  %16 = alloca %"struct.cgp::numarray_stack", align 8
  %17 = alloca %"struct.cgp::numarray_stack", align 8
  %18 = alloca %"struct.cgp::mesh", align 8
  %19 = alloca %"struct.cgp::mesh", align 8
  %20 = alloca %"struct.cgp::mesh", align 8
  %21 = alloca %"struct.cgp::mesh", align 8
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #6
  %23 = tail call { <2 x float>, float } @_ZNK3cgp5frame2uxEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %.fca.0.extract30 = extractvalue { <2 x float>, float } %23, 0
  %.fca.1.extract31 = extractvalue { <2 x float>, float } %23, 1
  store <2 x float> %.fca.0.extract30, ptr %11, align 8
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store float %.fca.1.extract31, ptr %.sroa.233.0..sroa_idx, align 8
  %24 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %24, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %24, 1
  store <2 x float> %.fca.0.extract26, ptr %10, align 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store float %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  %25 = call { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %25, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %25, 1
  store <2 x float> %.fca.0.extract22, ptr %9, align 8
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract23, ptr %.sroa.225.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  %26 = call { <2 x float>, float } @_ZNK3cgp5frame2uyEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %.fca.0.extract18 = extractvalue { <2 x float>, float } %26, 0
  %.fca.1.extract19 = extractvalue { <2 x float>, float } %26, 1
  store <2 x float> %.fca.0.extract18, ptr %14, align 8
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store float %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  %27 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %27, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %27, 1
  store <2 x float> %.fca.0.extract14, ptr %13, align 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store float %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  %28 = call { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %28, 1
  store <2 x float> %.fca.0.extract10, ptr %12, align 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  store float %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #6
  %29 = call { <2 x float>, float } @_ZNK3cgp5frame2uzEv(ptr noundef nonnull align 4 dereferenceable(28) %1)
  %.fca.0.extract6 = extractvalue { <2 x float>, float } %29, 0
  %.fca.1.extract7 = extractvalue { <2 x float>, float } %29, 1
  store <2 x float> %.fca.0.extract6, ptr %17, align 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  store float %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  %30 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %30, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %30, 1
  store <2 x float> %.fca.0.extract2, ptr %16, align 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store float %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  %31 = call { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %.fca.0.extract = extractvalue { <2 x float>, float } %31, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %31, 1
  store <2 x float> %.fca.0.extract, ptr %15, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %18) #6
  %32 = fmul float %2, %7
  call void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::mesh") align 8 %18, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %32, float noundef 4.000000e+00, float noundef 2.500000e+00, i32 noundef 18)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #6
  invoke void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::mesh") align 8 %19, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %32, float noundef 4.000000e+00, float noundef 2.500000e+00, i32 noundef 18)
          to label %33 unwind label %61

33:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %20) #6
  invoke void @_ZN3cgp20mesh_primitive_arrowERKNS_14numarray_stackIfLi3EEES3_fffi(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::mesh") align 8 %20, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %32, float noundef 4.000000e+00, float noundef 2.500000e+00, i32 noundef 18)
          to label %34 unwind label %63

34:                                               ; preds = %33
  %35 = getelementptr inbounds i8, ptr %18, i64 48
  %36 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(12) %3)
          to label %37 unwind label %65

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %19, i64 48
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %40 unwind label %65

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %20, i64 48
  %42 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %43 unwind label %65

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %21) #6
  %44 = fpext float %7 to double
  %45 = fmul double %44, 2.500000e+00
  %46 = fpext float %2 to double
  %47 = fmul double %45, %46
  %48 = fptrunc double %47 to float
  invoke void @_ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::mesh") align 8 %21, float noundef %48, ptr noundef nonnull align 4 dereferenceable(12) %22, i32 noundef 40, i32 noundef 20)
          to label %49 unwind label %67

49:                                               ; preds = %43
  %50 = getelementptr inbounds i8, ptr %21, i64 48
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %52 unwind label %69

52:                                               ; preds = %49
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %53 unwind label %69

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %18)
          to label %55 unwind label %71

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %54, ptr noundef nonnull align 8 dereferenceable(120) %19)
          to label %57 unwind label %71

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %56, ptr noundef nonnull align 8 dereferenceable(120) %20)
          to label %59 unwind label %71

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %58, ptr noundef nonnull align 8 dereferenceable(120) %21)
          to label %73 unwind label %71

61:                                               ; preds = %8
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %78

63:                                               ; preds = %33
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %77

65:                                               ; preds = %40, %37, %34
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %76

67:                                               ; preds = %43
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %75

69:                                               ; preds = %52, %49
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %74

71:                                               ; preds = %59, %57, %55, %53
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #6
  br label %74

73:                                               ; preds = %59
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #6
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #6
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #6
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %18) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  ret void

74:                                               ; preds = %71, %69
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #6
  br label %75

75:                                               ; preds = %74, %67
  %.pn.pn = phi { ptr, i32 } [ %.pn, %74 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #6
  br label %76

76:                                               ; preds = %75, %65
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %75 ], [ %66, %65 ]
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #6
  br label %77

77:                                               ; preds = %76, %63
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %76 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #6
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #6
  br label %78

78:                                               ; preds = %77, %61
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %77 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #6
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %18) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

declare { <2 x float>, float } @_ZNK3cgp5frame2uxEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #2

declare { <2 x float>, float } @_ZNK3cgp5frame2uyEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #2

declare { <2 x float>, float } @_ZNK3cgp5frame2uzEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE4fillERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

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


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