; LLVM IR from goldest-star/seawave-animation :: src/vcl/shape/mesh/mesh_primitive (mesh_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.vcl::mesh" = type { %"struct.vcl::buffer", %"struct.vcl::buffer", %"struct.vcl::buffer.5", %"struct.vcl::buffer.11", %"struct.vcl::buffer.17" }
%"struct.vcl::buffer" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.5" = type { %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.11" = type { %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.17" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer_stack" = type { float, float, float }

; Function Attrs: 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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

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

declare void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl23mesh_primitive_bar_gridEiiiRKNS_12buffer_stackIfLm3EEES3_S3_S3_(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mesh") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %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, ptr noundef nonnull align 4 dereferenceable(12) %7) #5 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.vcl::buffer_stack", align 4
  %18 = alloca %"struct.vcl::buffer_stack", align 4
  %19 = alloca %"struct.vcl::buffer_stack", align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca { <2 x float>, float }, align 8
  %23 = alloca i1, align 1
  %24 = alloca %"struct.vcl::mesh", align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.vcl::mesh", align 8
  %28 = alloca %"struct.vcl::mesh", align 8
  %29 = alloca %"struct.vcl::buffer_stack", align 4
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca %"struct.vcl::buffer_stack", align 4
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca %"struct.vcl::mesh", align 8
  %34 = alloca %"struct.vcl::buffer_stack", align 4
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %"struct.vcl::buffer_stack", align 4
  %37 = alloca { <2 x float>, float }, align 8
  %38 = alloca %"struct.vcl::mesh", align 8
  %39 = alloca %"struct.vcl::buffer_stack", align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca %"struct.vcl::buffer_stack", align 4
  %42 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %9, align 8
  store i32 %1, ptr %10, align 4, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  %43 = load ptr, ptr %13, align 8, !tbaa !9
  %44 = load ptr, ptr %14, align 8, !tbaa !9
  %45 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %44)
  store { <2 x float>, float } %45, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  %46 = load ptr, ptr %15, align 8, !tbaa !9
  %47 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %46)
  store { <2 x float>, float } %47, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %21, i64 12, i1 false)
  %48 = load ptr, ptr %16, align 8, !tbaa !9
  %49 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %48)
  store { <2 x float>, float } %49, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  store i1 false, ptr %23, align 1
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = load ptr, ptr %13, align 8, !tbaa !9
  %55 = load ptr, ptr %15, align 8, !tbaa !9
  %56 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %0, i64 noundef %51, i64 noundef %53, ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %56)
  call void @llvm.lifetime.start.p0(i64 120, ptr %24) #6
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !9
  %63 = load ptr, ptr %16, align 8, !tbaa !9
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %24, i64 noundef %58, i64 noundef %60, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %63)
          to label %64 unwind label %112

64:                                               ; preds = %8
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %24)
          to label %65 unwind label %116

65:                                               ; preds = %64
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %27) #6
  %66 = load i32, ptr %12, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = load ptr, ptr %13, align 8, !tbaa !9
  %71 = load ptr, ptr %16, align 8, !tbaa !9
  %72 = load ptr, ptr %15, align 8, !tbaa !9
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %27, i64 noundef %67, i64 noundef %69, ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %71, ptr noundef nonnull align 4 dereferenceable(12) %72)
          to label %73 unwind label %121

73:                                               ; preds = %65
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %27)
          to label %74 unwind label %125

74:                                               ; preds = %73
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %27) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %28) #6
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #6
  %79 = load ptr, ptr %14, align 8, !tbaa !9
  %80 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %79)
          to label %81 unwind label %130

81:                                               ; preds = %74
  store { <2 x float>, float } %80, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %30, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #6
  %82 = load ptr, ptr %15, align 8, !tbaa !9
  %83 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %82)
          to label %84 unwind label %134

84:                                               ; preds = %81
  store { <2 x float>, float } %83, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %32, i64 12, i1 false)
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %28, i64 noundef %76, i64 noundef %78, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %85 unwind label %134

85:                                               ; preds = %84
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %28)
          to label %86 unwind label %138

86:                                               ; preds = %85
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %28) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %33) #6
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #6
  %91 = load ptr, ptr %16, align 8, !tbaa !9
  %92 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %91)
          to label %93 unwind label %144

93:                                               ; preds = %86
  store { <2 x float>, float } %92, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #6
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %94)
          to label %96 unwind label %148

96:                                               ; preds = %93
  store { <2 x float>, float } %95, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %37, i64 12, i1 false)
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %33, i64 noundef %88, i64 noundef %90, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %97 unwind label %148

97:                                               ; preds = %96
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %33)
          to label %98 unwind label %152

98:                                               ; preds = %97
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %38) #6
  %99 = load i32, ptr %11, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #6
  %103 = load ptr, ptr %15, align 8, !tbaa !9
  %104 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %103)
          to label %105 unwind label %158

105:                                              ; preds = %98
  store { <2 x float>, float } %104, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %40, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #6
  %106 = load ptr, ptr %16, align 8, !tbaa !9
  %107 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %106)
          to label %108 unwind label %162

108:                                              ; preds = %105
  store { <2 x float>, float } %107, ptr %42, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %42, i64 12, i1 false)
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %38, i64 noundef %100, i64 noundef %102, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %41)
          to label %109 unwind label %162

109:                                              ; preds = %108
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %38)
          to label %110 unwind label %166

110:                                              ; preds = %109
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %38) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %38) #6
  store i1 true, ptr %23, align 1
  %111 = load i1, ptr %23, align 1
  br i1 %111, label %173, label %172

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

116:                                              ; preds = %64
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %25, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %26, align 4
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #6
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #6
  br label %174

121:                                              ; preds = %65
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %25, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %26, align 4
  br label %129

125:                                              ; preds = %73
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %25, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %26, align 4
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %27) #6
  br label %129

129:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 120, ptr %27) #6
  br label %174

130:                                              ; preds = %74
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %25, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %26, align 4
  br label %143

134:                                              ; preds = %84, %81
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %25, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %26, align 4
  br label %142

138:                                              ; preds = %85
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %25, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %26, align 4
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %28) #6
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  br label %143

143:                                              ; preds = %142, %130
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #6
  br label %174

144:                                              ; preds = %86
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %25, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %26, align 4
  br label %157

148:                                              ; preds = %96, %93
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %25, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %26, align 4
  br label %156

152:                                              ; preds = %97
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %25, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %26, align 4
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %33) #6
  br label %156

156:                                              ; preds = %152, %148
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #6
  br label %157

157:                                              ; preds = %156, %144
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %33) #6
  br label %174

158:                                              ; preds = %98
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %25, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %26, align 4
  br label %171

162:                                              ; preds = %108, %105
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %25, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %26, align 4
  br label %170

166:                                              ; preds = %109
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %25, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %26, align 4
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %38) #6
  br label %170

170:                                              ; preds = %166, %162
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #6
  br label %171

171:                                              ; preds = %170, %158
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %38) #6
  br label %174

172:                                              ; preds = %110
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #6
  br label %173

173:                                              ; preds = %172, %110
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #6
  ret void

174:                                              ; preds = %171, %157, %143, %129, %120
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #6
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %25, align 8
  %177 = load i32, ptr %26, align 4
  %178 = insertvalue { ptr, i32 } poison, ptr %176, 0
  %179 = insertvalue { ptr, i32 } %178, i32 %177, 1
  resume { ptr, i32 } %179
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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.vcl::mesh" = type { %"struct.vcl::buffer", %"struct.vcl::buffer", %"struct.vcl::buffer.5", %"struct.vcl::buffer.11", %"struct.vcl::buffer.17" }
%"struct.vcl::buffer" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.5" = type { %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.11" = type { %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.17" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer_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: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

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

declare void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl23mesh_primitive_bar_gridEiiiRKNS_12buffer_stackIfLm3EEES3_S3_S3_(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mesh") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %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, ptr noundef nonnull align 4 dereferenceable(12) %7) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"struct.vcl::buffer_stack", align 8
  %10 = alloca %"struct.vcl::buffer_stack", align 8
  %11 = alloca %"struct.vcl::buffer_stack", align 8
  %12 = alloca %"struct.vcl::mesh", align 8
  %13 = alloca %"struct.vcl::mesh", align 8
  %14 = alloca %"struct.vcl::mesh", align 8
  %15 = alloca %"struct.vcl::buffer_stack", align 8
  %16 = alloca %"struct.vcl::buffer_stack", align 8
  %17 = alloca %"struct.vcl::mesh", align 8
  %18 = alloca %"struct.vcl::buffer_stack", align 8
  %19 = alloca %"struct.vcl::buffer_stack", align 8
  %20 = alloca %"struct.vcl::mesh", align 8
  %21 = alloca %"struct.vcl::buffer_stack", align 8
  %22 = alloca %"struct.vcl::buffer_stack", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  %23 = tail call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.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 } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %.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 } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %.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) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  %26 = sext i32 %2 to i64
  %27 = sext i32 %1 to i64
  call void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind writable sret(%"struct.vcl::mesh") align 8 %0, i64 noundef %26, i64 noundef %27, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %12) #5
  %28 = sext i32 %3 to i64
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mesh") align 8 %12, i64 noundef %27, i64 noundef %28, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %29 unwind label %51

29:                                               ; preds = %8
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %12)
          to label %30 unwind label %53

30:                                               ; preds = %29
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #5
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mesh") align 8 %13, i64 noundef %28, i64 noundef %26, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %31 unwind label %56

31:                                               ; preds = %30
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %32 unwind label %58

32:                                               ; preds = %31
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #5
  %33 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %34 unwind label %61

34:                                               ; preds = %32
  %.fca.0.extract17 = extractvalue { <2 x float>, float } %33, 0
  %.fca.1.extract18 = extractvalue { <2 x float>, float } %33, 1
  store <2 x float> %.fca.0.extract17, ptr %15, align 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store float %.fca.1.extract18, ptr %.sroa.220.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #5
  %35 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %36 unwind label %63

36:                                               ; preds = %34
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %35, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %35, 1
  store <2 x float> %.fca.0.extract13, ptr %16, align 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mesh") align 8 %14, i64 noundef %27, i64 noundef %26, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %37 unwind label %63

37:                                               ; preds = %36
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %14)
          to label %38 unwind label %65

38:                                               ; preds = %37
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  %39 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %40 unwind label %69

40:                                               ; preds = %38
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %39, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %39, 1
  store <2 x float> %.fca.0.extract9, ptr %18, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #5
  %41 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %42 unwind label %71

42:                                               ; preds = %40
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %41, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %41, 1
  store <2 x float> %.fca.0.extract5, ptr %19, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mesh") align 8 %17, i64 noundef %28, i64 noundef %27, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %43 unwind label %71

43:                                               ; preds = %42
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %17)
          to label %44 unwind label %73

44:                                               ; preds = %43
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #5
  %45 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %46 unwind label %77

46:                                               ; preds = %44
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %45, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %45, 1
  store <2 x float> %.fca.0.extract1, ptr %21, align 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #5
  %47 = invoke { <2 x float>, float } @_ZN3vclngIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %48 unwind label %79

48:                                               ; preds = %46
  %.fca.0.extract = extractvalue { <2 x float>, float } %47, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %47, 1
  store <2 x float> %.fca.0.extract, ptr %22, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mesh") align 8 %20, i64 noundef %26, i64 noundef %28, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %49 unwind label %79

49:                                               ; preds = %48
  invoke void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %20)
          to label %50 unwind label %81

50:                                               ; preds = %49
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  ret void

51:                                               ; preds = %8
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %29
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #5
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %12) #5
  br label %85

56:                                               ; preds = %30
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %31
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #5
  br label %60

60:                                               ; preds = %58, %56
  %.pn75 = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #5
  br label %85

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

63:                                               ; preds = %36, %34
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %37
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #5
  br label %67

67:                                               ; preds = %65, %63
  %.pn77 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #5
  br label %68

68:                                               ; preds = %67, %61
  %.pn77.pn = phi { ptr, i32 } [ %.pn77, %67 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #5
  br label %85

69:                                               ; preds = %38
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %42, %40
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %43
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #5
  br label %75

75:                                               ; preds = %73, %71
  %.pn80 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #5
  br label %76

76:                                               ; preds = %75, %69
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #5
  br label %85

77:                                               ; preds = %44
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %48, %46
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %49
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #5
  br label %83

83:                                               ; preds = %81, %79
  %.pn83 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #5
  br label %84

84:                                               ; preds = %83, %77
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %83 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #5
  br label %85

85:                                               ; preds = %84, %76, %68, %60, %55
  %.pn83.pn.pn = phi { ptr, i32 } [ %.pn83.pn, %84 ], [ %.pn80.pn, %76 ], [ %.pn77.pn, %68 ], [ %.pn75, %60 ], [ %.pn, %55 ]
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  resume { ptr, i32 } %.pn83.pn.pn
}

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