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

%"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::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" }
%"struct.vcl::buffer_stack" = type { float, float, float }
%"struct.vcl::buffer_stack.18" = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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) #1

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

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

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

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

declare void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #6

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

; 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)) #0

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

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

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

declare { <2 x float>, float } @_ZN3vcl5crossERKNS_12buffer_stackIfLm3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mesh") align 8 %0, i64 noundef %1, i64 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) #4 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i1, align 1
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %"struct.vcl::buffer_stack", align 4
  %20 = alloca %"struct.vcl::buffer_stack", align 4
  %21 = alloca %"struct.vcl::buffer_stack", align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca %"struct.vcl::buffer_stack", align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca { <2 x float>, float }, align 8
  %29 = alloca %"struct.vcl::buffer_stack", align 4
  %30 = alloca %"struct.vcl::buffer_stack", align 4
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca %"struct.vcl::buffer_stack.18", align 4
  %34 = alloca %"struct.vcl::buffer.17", align 8
  %35 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %7, align 8
  store i64 %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !9
  store i1 false, ptr %13, align 1
  call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %116, %6
  %37 = load i64, ptr %14, align 8, !tbaa !5
  %38 = load i64, ptr %9, align 8, !tbaa !5
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %119

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %89, %41
  %43 = load i64, ptr %16, align 8, !tbaa !5
  %44 = load i64, ptr %8, align 8, !tbaa !5
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %115

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %48 = load i64, ptr %16, align 8, !tbaa !5
  %49 = uitofp i64 %48 to float
  %50 = load i64, ptr %8, align 8, !tbaa !5
  %51 = sub i64 %50, 1
  %52 = uitofp i64 %51 to float
  %53 = fdiv float %49, %52
  store float %53, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %54 = load i64, ptr %14, align 8, !tbaa !5
  %55 = uitofp i64 %54 to float
  %56 = load i64, ptr %9, align 8, !tbaa !5
  %57 = sub i64 %56, 1
  %58 = uitofp i64 %57 to float
  %59 = fdiv float %55, %58
  store float %59, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  %60 = load float, ptr %17, align 4, !tbaa !11
  %61 = load ptr, ptr %11, align 8, !tbaa !9
  %62 = invoke { <2 x float>, float } @_ZN3vclmlIfLm3EEENS_12buffer_stackIT_XT0_EEEfRKS3_(float noundef %60, ptr noundef nonnull align 4 dereferenceable(12) %61)
          to label %63 unwind label %92

63:                                               ; preds = %47
  store { <2 x float>, float } %62, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #8
  %64 = load float, ptr %18, align 4, !tbaa !11
  %65 = load ptr, ptr %12, align 8, !tbaa !9
  %66 = invoke { <2 x float>, float } @_ZN3vclmlIfLm3EEENS_12buffer_stackIT_XT0_EEEfRKS3_(float noundef %64, ptr noundef nonnull align 4 dereferenceable(12) %65)
          to label %67 unwind label %96

67:                                               ; preds = %63
  store { <2 x float>, float } %66, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %26, i64 12, i1 false)
  %68 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %69 unwind label %96

69:                                               ; preds = %67
  store { <2 x float>, float } %68, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %27, i64 12, i1 false)
  %70 = load ptr, ptr %10, align 8, !tbaa !9
  %71 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %70)
          to label %72 unwind label %96

72:                                               ; preds = %69
  store { <2 x float>, float } %71, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %28, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #8
  %73 = load ptr, ptr %11, align 8, !tbaa !9
  %74 = load ptr, ptr %12, align 8, !tbaa !9
  %75 = invoke { <2 x float>, float } @_ZN3vcl5crossERKNS_12buffer_stackIfLm3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %73, ptr noundef nonnull align 4 dereferenceable(12) %74)
          to label %76 unwind label %101

76:                                               ; preds = %72
  store { <2 x float>, float } %75, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %31, i64 12, i1 false)
  %77 = invoke { <2 x float>, float } @_ZN3vcl9normalizeILm3EEENS_12buffer_stackIfXT_EEERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %30)
          to label %78 unwind label %101

78:                                               ; preds = %76
  store { <2 x float>, float } %77, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  %79 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 0
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %80 unwind label %105

80:                                               ; preds = %78
  %81 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 1
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(12) %29)
          to label %82 unwind label %105

82:                                               ; preds = %80
  %83 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %84 = load float, ptr %17, align 4, !tbaa !11
  %85 = load float, ptr %18, align 4, !tbaa !11
  %86 = fsub float 1.000000e+00, %85
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %33, float noundef %84, float noundef %86)
          to label %87 unwind label %109

87:                                               ; preds = %82
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 4 dereferenceable(8) %33)
          to label %88 unwind label %109

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %89

89:                                               ; preds = %88
  %90 = load i64, ptr %16, align 8, !tbaa !5
  %91 = add i64 %90, 1
  store i64 %91, ptr %16, align 8, !tbaa !5
  br label %42, !llvm.loop !13

92:                                               ; preds = %47
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %22, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %23, align 4
  br label %100

96:                                               ; preds = %69, %67, %63
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %22, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #8
  br label %100

100:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  br label %114

101:                                              ; preds = %76, %72
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %22, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  br label %113

105:                                              ; preds = %80, %78
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %22, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %23, align 4
  br label %113

109:                                              ; preds = %87, %82
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %22, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %113

113:                                              ; preds = %109, %105, %101
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  br label %114

114:                                              ; preds = %113, %100
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %138

115:                                              ; preds = %46
  br label %116

116:                                              ; preds = %115
  %117 = load i64, ptr %14, align 8, !tbaa !5
  %118 = add i64 %117, 1
  store i64 %118, ptr %14, align 8, !tbaa !5
  br label %36, !llvm.loop !15

119:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  %120 = load i64, ptr %9, align 8, !tbaa !5
  %121 = load i64, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %35, i64 noundef %120, i64 noundef %121, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %122 unwind label %127

122:                                              ; preds = %119
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %123 unwind label %131

123:                                              ; preds = %122
  %124 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 4
  %125 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  call void @_ZN3vcl6bufferISt5arrayIjLm3EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  store i1 true, ptr %13, align 1
  store i32 1, ptr %15, align 4
  %126 = load i1, ptr %13, align 1
  br i1 %126, label %137, label %136

127:                                              ; preds = %119
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %22, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %23, align 4
  br label %135

131:                                              ; preds = %122
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %22, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %23, align 4
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  br label %135

135:                                              ; preds = %131, %127
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  br label %138

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

137:                                              ; preds = %136, %123
  ret void

138:                                              ; preds = %135, %114
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #8
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %22, align 8
  %141 = load i32, ptr %23, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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::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" }
%"struct.vcl::buffer_stack" = type { float, float, float }
%"struct.vcl::buffer_stack.18" = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

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

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

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

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

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

declare void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #5

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

; 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 #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl19mesh_primitive_gridEmmRKNS_12buffer_stackIfLm3EEES3_S3_(ptr dead_on_unwind noalias nonnull writable sret(%"struct.vcl::mesh") align 8 %0, i64 noundef %1, i64 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) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"struct.vcl::buffer_stack", align 8
  %8 = alloca %"struct.vcl::buffer_stack", align 8
  %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::buffer_stack", align 8
  %13 = alloca %"struct.vcl::buffer_stack.18", align 4
  %14 = alloca %"struct.vcl::buffer.17", align 8
  %15 = alloca %"class.std::vector", align 8
  tail call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %._crit_edge62, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %6
  %.not75 = icmp eq i64 %1, 0
  %16 = add i64 %1, -1
  %17 = uitofp i64 %16 to float
  %18 = add i64 %2, -1
  %19 = uitofp i64 %18 to float
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %.not75, label %._crit_edge62, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.061.us = phi i64 [ %45, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %22 = uitofp i64 %.061.us to float
  %23 = fdiv float %22, %19
  %24 = fsub float 1.000000e+00, %23
  br label %25

25:                                               ; preds = %.preheader.us, %43
  %.04360.us = phi i64 [ 0, %.preheader.us ], [ %44, %43 ]
  %26 = uitofp i64 %.04360.us to float
  %27 = fdiv float %26, %17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %28 = invoke { <2 x float>, float } @_ZN3vclmlIfLm3EEENS_12buffer_stackIT_XT0_EEEfRKS3_(float noundef %27, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %29 unwind label %.split.us

29:                                               ; preds = %25
  %.fca.0.extract17.us = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract18.us = extractvalue { <2 x float>, float } %28, 1
  store <2 x float> %.fca.0.extract17.us, ptr %9, align 8
  store float %.fca.1.extract18.us, ptr %.sroa.220.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  %30 = invoke { <2 x float>, float } @_ZN3vclmlIfLm3EEENS_12buffer_stackIT_XT0_EEEfRKS3_(float noundef %23, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %31 unwind label %.split64.us

31:                                               ; preds = %29
  %.fca.0.extract13.us = extractvalue { <2 x float>, float } %30, 0
  %.fca.1.extract14.us = extractvalue { <2 x float>, float } %30, 1
  store <2 x float> %.fca.0.extract13.us, ptr %10, align 8
  store float %.fca.1.extract14.us, ptr %.sroa.216.0..sroa_idx, align 8
  %32 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %33 unwind label %.split64.us

33:                                               ; preds = %31
  %.fca.0.extract9.us = extractvalue { <2 x float>, float } %32, 0
  %.fca.1.extract10.us = extractvalue { <2 x float>, float } %32, 1
  store <2 x float> %.fca.0.extract9.us, ptr %8, align 8
  store float %.fca.1.extract10.us, ptr %.sroa.212.0..sroa_idx, align 8
  %34 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %3)
          to label %35 unwind label %.split64.us

35:                                               ; preds = %33
  %.fca.0.extract5.us = extractvalue { <2 x float>, float } %34, 0
  %.fca.1.extract6.us = extractvalue { <2 x float>, float } %34, 1
  store <2 x float> %.fca.0.extract5.us, ptr %7, align 8
  store float %.fca.1.extract6.us, ptr %.sroa.28.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %36 = invoke { <2 x float>, float } @_ZN3vcl5crossERKNS_12buffer_stackIfLm3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %37 unwind label %.split67.us

37:                                               ; preds = %35
  %.fca.0.extract1.us = extractvalue { <2 x float>, float } %36, 0
  %.fca.1.extract2.us = extractvalue { <2 x float>, float } %36, 1
  store <2 x float> %.fca.0.extract1.us, ptr %12, align 8
  store float %.fca.1.extract2.us, ptr %.sroa.24.0..sroa_idx, align 8
  %38 = invoke { <2 x float>, float } @_ZN3vcl9normalizeILm3EEENS_12buffer_stackIfXT_EEERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %39 unwind label %.split67.us

39:                                               ; preds = %37
  %.fca.0.extract.us = extractvalue { <2 x float>, float } %38, 0
  %.fca.1.extract.us = extractvalue { <2 x float>, float } %38, 1
  store <2 x float> %.fca.0.extract.us, ptr %11, align 8
  store float %.fca.1.extract.us, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %40 unwind label %.split70.us

40:                                               ; preds = %39
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %41 unwind label %.split70.us

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %27, float noundef %24)
          to label %42 unwind label %.split73.us

42:                                               ; preds = %41
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %43 unwind label %.split73.us

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  %44 = add nuw i64 %.04360.us, 1
  %exitcond.not = icmp eq i64 %44, %1
  br i1 %exitcond.not, label %._crit_edge.us, label %25, !llvm.loop !5

._crit_edge.us:                                   ; preds = %43
  %45 = add nuw i64 %.061.us, 1
  %exitcond77.not = icmp eq i64 %45, %2
  br i1 %exitcond77.not, label %._crit_edge62, label %.preheader.us, !llvm.loop !7

.split.us:                                        ; preds = %25
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %51

.split64.us:                                      ; preds = %33, %31, %29
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  br label %51

.split67.us:                                      ; preds = %37, %35
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  br label %52

.split70.us:                                      ; preds = %40, %39
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

.split73.us:                                      ; preds = %42, %41
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %52

._crit_edge62:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  invoke void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %15, i64 noundef %2, i64 noundef %1, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %54 unwind label %58

51:                                               ; preds = %.split64.us, %.split.us
  %.pn54 = phi { ptr, i32 } [ %47, %.split64.us ], [ %46, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br label %53

52:                                               ; preds = %.split73.us, %.split70.us, %.split67.us
  %.pn56 = phi { ptr, i32 } [ %50, %.split73.us ], [ %49, %.split70.us ], [ %48, %.split67.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  br label %53

53:                                               ; preds = %52, %51
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %52 ], [ %.pn54, %51 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %63

54:                                               ; preds = %._crit_edge62
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %55 unwind label %60

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %0, i64 96
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @_ZN3vcl6bufferISt5arrayIjLm3EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  ret void

58:                                               ; preds = %._crit_edge62
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

60:                                               ; preds = %54
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %62

62:                                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %63

63:                                               ; preds = %62, %53
  %.pn56.pn.pn = phi { ptr, i32 } [ %.pn56.pn, %53 ], [ %.pn, %62 ]
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  resume { ptr, i32 } %.pn56.pn.pn
}

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass