; 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::mat" = type { float, float, float, float, float, float, float, float, float }
%"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 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #4

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

; 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) #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 @_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)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3vclmiIfLm3EEENS_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 noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12)) #0

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

declare void @_ZN3vcl28rotation_between_vector_mat3ERKNS_12buffer_stackIfLm3EEES3_(ptr dead_on_unwind writable sret(%"struct.vcl::mat") align 4, 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 } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl19mesh_primitive_coneEfRKNS_12buffer_stackIfLm3EEES3_mm(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mesh") align 8 %0, float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 noundef %4, i64 noundef %5) #7 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.vcl::buffer_stack", align 4
  %14 = alloca { <2 x float>, float }, align 8
  %15 = alloca float, align 4
  %16 = alloca %"struct.vcl::buffer_stack", align 4
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %"struct.vcl::mat", align 4
  %19 = alloca %"struct.vcl::buffer_stack", align 4
  %20 = alloca i1, align 1
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca %"struct.vcl::buffer_stack", align 4
  %34 = alloca %"struct.vcl::buffer_stack", align 4
  %35 = alloca %"struct.vcl::buffer_stack", align 4
  %36 = alloca { <2 x float>, float }, align 8
  %37 = alloca { <2 x float>, float }, align 8
  %38 = alloca %"struct.vcl::buffer_stack", align 4
  %39 = alloca %"struct.vcl::buffer_stack", align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca float, align 4
  %42 = alloca %"struct.vcl::buffer_stack", align 4
  %43 = alloca %"struct.vcl::buffer_stack", align 4
  %44 = alloca %"struct.vcl::buffer.17", align 8
  %45 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %7, align 8
  store float %1, ptr %8, align 4, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store i64 %4, ptr %11, align 8, !tbaa !11
  store i64 %5, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  %46 = load ptr, ptr %10, align 8, !tbaa !9
  %47 = load ptr, ptr %9, align 8, !tbaa !9
  %48 = call { <2 x float>, float } @_ZN3vclmiIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %47)
  store { <2 x float>, float } %48, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %14, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %49 = call noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12) %13)
  store float %49, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #8
  %50 = load float, ptr %15, align 4, !tbaa !5
  %51 = call { <2 x float>, float } @_ZN3vcldvIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_f(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %50)
  store { <2 x float>, float } %51, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  call void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @_ZN3vcl28rotation_between_vector_mat3ERKNS_12buffer_stackIfLm3EEES3_(ptr dead_on_unwind writable sret(%"struct.vcl::mat") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  store i1 false, ptr %20, align 1
  call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %52

52:                                               ; preds = %175, %6
  %53 = load i64, ptr %21, align 8, !tbaa !11
  %54 = load i64, ptr %11, align 8, !tbaa !11
  %55 = icmp ult i64 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %178

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %164, %57
  %59 = load i64, ptr %23, align 8, !tbaa !11
  %60 = load i64, ptr %12, align 8, !tbaa !11
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %174

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %64 = load i64, ptr %21, align 8, !tbaa !11
  %65 = uitofp i64 %64 to float
  %66 = load i64, ptr %11, align 8, !tbaa !11
  %67 = uitofp i64 %66 to float
  %68 = fdiv float %65, %67
  store float %68, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %69 = load i64, ptr %23, align 8, !tbaa !11
  %70 = uitofp i64 %69 to float
  %71 = load i64, ptr %12, align 8, !tbaa !11
  %72 = sub i64 %71, 1
  %73 = uitofp i64 %72 to float
  %74 = fdiv float %70, %73
  store float %74, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %75 = load float, ptr %24, align 4, !tbaa !5
  %76 = fmul float 0x401921FA00000000, %75
  store float %76, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %77 = load float, ptr %25, align 4, !tbaa !5
  %78 = fsub float 1.000000e+00, %77
  store float %78, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %79 = load float, ptr %27, align 4, !tbaa !5
  %80 = load float, ptr %8, align 4, !tbaa !5
  %81 = fmul float %79, %80
  %82 = load float, ptr %26, align 4, !tbaa !5
  %83 = invoke noundef float @_ZSt3sinf(float noundef %82)
          to label %84 unwind label %125

84:                                               ; preds = %63
  %85 = fmul float %81, %83
  store float %85, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %86 = load float, ptr %27, align 4, !tbaa !5
  %87 = load float, ptr %8, align 4, !tbaa !5
  %88 = fmul float %86, %87
  %89 = load float, ptr %26, align 4, !tbaa !5
  %90 = invoke noundef float @_ZSt3cosf(float noundef %89)
          to label %91 unwind label %129

91:                                               ; preds = %84
  %92 = fmul float %88, %90
  store float %92, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %93 = load float, ptr %15, align 4, !tbaa !5
  %94 = load float, ptr %25, align 4, !tbaa !5
  %95 = fmul float %93, %94
  store float %95, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #8
  %96 = load float, ptr %28, align 4, !tbaa !5
  %97 = load float, ptr %31, align 4, !tbaa !5
  %98 = load float, ptr %32, align 4, !tbaa !5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %33, float noundef %96, float noundef %97, float noundef %98)
          to label %99 unwind label %133

99:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #8
  %100 = invoke { <2 x float>, float } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %101 unwind label %137

101:                                              ; preds = %99
  store { <2 x float>, float } %100, ptr %36, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %36, i64 12, i1 false)
  %102 = load ptr, ptr %9, align 8, !tbaa !9
  %103 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %102)
          to label %104 unwind label %137

104:                                              ; preds = %101
  store { <2 x float>, float } %103, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %37, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  %105 = load float, ptr %26, align 4, !tbaa !5
  %106 = invoke noundef float @_ZSt3sinf(float noundef %105)
          to label %107 unwind label %141

107:                                              ; preds = %104
  %108 = load float, ptr %26, align 4, !tbaa !5
  %109 = invoke noundef float @_ZSt3cosf(float noundef %108)
          to label %110 unwind label %141

110:                                              ; preds = %107
  %111 = load float, ptr %8, align 4, !tbaa !5
  %112 = load float, ptr %15, align 4, !tbaa !5
  %113 = fdiv float %111, %112
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %39, float noundef %106, float noundef %109, float noundef %113)
          to label %114 unwind label %141

114:                                              ; preds = %110
  %115 = invoke { <2 x float>, float } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(12) %39)
          to label %116 unwind label %141

116:                                              ; preds = %114
  store { <2 x float>, float } %115, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %40, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %117 = invoke noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12) %38)
          to label %118 unwind label %145

118:                                              ; preds = %116
  store float %117, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !13
  %119 = load float, ptr %41, align 4, !tbaa !5
  %120 = fcmp ogt float %119, 0x3EB0C6F7A0000000
  br i1 %120, label %121, label %153

121:                                              ; preds = %118
  %122 = load float, ptr %41, align 4, !tbaa !5
  %123 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcldVIfLm3EEERNS_12buffer_stackIT_XT0_EEES4_f(ptr noundef nonnull align 4 dereferenceable(12) %42, float noundef %122)
          to label %124 unwind label %149

124:                                              ; preds = %121
  br label %159

125:                                              ; preds = %63
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %29, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %30, align 4
  br label %173

129:                                              ; preds = %84
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %29, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %30, align 4
  br label %172

133:                                              ; preds = %91
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %29, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %30, align 4
  br label %171

137:                                              ; preds = %101, %99
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %29, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  br label %170

141:                                              ; preds = %114, %110, %107, %104
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %29, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  br label %169

145:                                              ; preds = %116
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %29, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %30, align 4
  br label %168

149:                                              ; preds = %161, %159, %121
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %29, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %30, align 4
  br label %167

153:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 12, ptr %43) #8
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %43, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %154 unwind label %155

154:                                              ; preds = %153
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %43, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #8
  br label %159

155:                                              ; preds = %153
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %29, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #8
  br label %167

159:                                              ; preds = %154, %124
  %160 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 0
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %160, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %161 unwind label %149

161:                                              ; preds = %159
  %162 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 1
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 4 dereferenceable(12) %42)
          to label %163 unwind label %149

163:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %164

164:                                              ; preds = %163
  %165 = load i64, ptr %23, align 8, !tbaa !11
  %166 = add i64 %165, 1
  store i64 %166, ptr %23, align 8, !tbaa !11
  br label %58, !llvm.loop !14

167:                                              ; preds = %155, %149
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  br label %168

168:                                              ; preds = %167, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %169

169:                                              ; preds = %168, %141
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  br label %170

170:                                              ; preds = %169, %137
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  br label %171

171:                                              ; preds = %170, %133
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %172

172:                                              ; preds = %171, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %173

173:                                              ; preds = %172, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %197

174:                                              ; preds = %62
  br label %175

175:                                              ; preds = %174
  %176 = load i64, ptr %21, align 8, !tbaa !11
  %177 = add i64 %176, 1
  store i64 %177, ptr %21, align 8, !tbaa !11
  br label %52, !llvm.loop !16

178:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #8
  %179 = load i64, ptr %11, align 8, !tbaa !11
  %180 = load i64, ptr %12, align 8, !tbaa !11
  invoke void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %45, i64 noundef %179, i64 noundef %180, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %181 unwind label %186

181:                                              ; preds = %178
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %182 unwind label %190

182:                                              ; preds = %181
  %183 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 4
  %184 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %183, ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  call void @_ZN3vcl6bufferISt5arrayIjLm3EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #8
  store i1 true, ptr %20, align 1
  store i32 1, ptr %22, align 4
  %185 = load i1, ptr %20, align 1
  br i1 %185, label %196, label %195

186:                                              ; preds = %178
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %29, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %30, align 4
  br label %194

190:                                              ; preds = %181
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %29, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %30, align 4
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  br label %194

194:                                              ; preds = %190, %186
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #8
  br label %197

195:                                              ; preds = %182
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #8
  br label %196

196:                                              ; preds = %195, %182
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  ret void

197:                                              ; preds = %194, %173
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %29, align 8
  %200 = load i32, ptr %30, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcldVIfLm3EEERNS_12buffer_stackIT_XT0_EEES4_f(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = !{!"float", !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 = !{!"long", !7, i64 0}
!13 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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::mat" = type { float, float, float, float, float, float, float, float, float }
%"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 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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)) 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 @_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 #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3vclmiIfLm3EEENS_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 noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

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

declare void @_ZN3vcl28rotation_between_vector_mat3ERKNS_12buffer_stackIfLm3EEES3_(ptr dead_on_unwind writable sret(%"struct.vcl::mat") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl19mesh_primitive_coneEfRKNS_12buffer_stackIfLm3EEES3_mm(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mesh") align 8 %0, float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 noundef %4, i64 noundef %5) local_unnamed_addr #7 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::mat", align 4
  %10 = alloca %"struct.vcl::buffer_stack", align 4
  %11 = alloca %"struct.vcl::buffer_stack", align 4
  %12 = alloca %"struct.vcl::buffer_stack", align 8
  %13 = alloca %"struct.vcl::buffer_stack", align 8
  %14 = alloca %"struct.vcl::buffer_stack", align 8
  %15 = alloca %"struct.vcl::buffer_stack", align 4
  %16 = alloca %"struct.vcl::buffer_stack", align 4
  %17 = alloca %"struct.vcl::buffer_stack", align 4
  %18 = alloca %"struct.vcl::buffer.17", align 8
  %19 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  %20 = tail call { <2 x float>, float } @_ZN3vclmiIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %.fca.0.extract37 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract38 = extractvalue { <2 x float>, float } %20, 1
  store <2 x float> %.fca.0.extract37, ptr %7, align 8
  %.sroa.240.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract38, ptr %.sroa.240.0..sroa_idx, align 8
  %21 = call noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  %22 = call { <2 x float>, float } @_ZN3vcldvIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_f(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %21)
  %.fca.0.extract30 = extractvalue { <2 x float>, float } %22, 0
  %.fca.1.extract31 = extractvalue { <2 x float>, float } %22, 1
  store <2 x float> %.fca.0.extract30, ptr %8, align 8
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract31, ptr %.sroa.233.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  call void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @_ZN3vcl28rotation_between_vector_mat3ERKNS_12buffer_stackIfLm3EEES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mat") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge76, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %6
  %.not92 = icmp eq i64 %5, 0
  %23 = uitofp i64 %4 to float
  %24 = add i64 %5, -1
  %25 = uitofp i64 %24 to float
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %26 = fdiv float %1, %21
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  br i1 %.not92, label %._crit_edge76, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.075.us = phi i64 [ %62, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %28 = uitofp i64 %.075.us to float
  %29 = fdiv float %28, %23
  %30 = fmul float %29, 0x401921FA00000000
  br label %31

31:                                               ; preds = %.preheader.us, %60
  %.05374.us = phi i64 [ 0, %.preheader.us ], [ %61, %60 ]
  %32 = uitofp i64 %.05374.us to float
  %33 = fdiv float %32, %25
  %34 = fsub float 1.000000e+00, %33
  %35 = fmul float %34, %1
  %36 = call noundef float @_ZSt3sinf(float noundef %30)
  %37 = fmul float %35, %36
  %38 = call noundef float @_ZSt3cosf(float noundef %30)
  %39 = fmul float %35, %38
  %40 = fmul float %21, %33
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %37, float noundef %39, float noundef %40)
          to label %41 unwind label %.split.us

41:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #8
  %42 = invoke { <2 x float>, float } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %9, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %43 unwind label %.split78.us

43:                                               ; preds = %41
  %.fca.0.extract6.us = extractvalue { <2 x float>, float } %42, 0
  %.fca.1.extract7.us = extractvalue { <2 x float>, float } %42, 1
  store <2 x float> %.fca.0.extract6.us, ptr %13, align 8
  store float %.fca.1.extract7.us, ptr %.sroa.29.0..sroa_idx, align 8
  %44 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %2)
          to label %45 unwind label %.split78.us

45:                                               ; preds = %43
  %.fca.0.extract2.us = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract3.us = extractvalue { <2 x float>, float } %44, 1
  store <2 x float> %.fca.0.extract2.us, ptr %12, align 8
  store float %.fca.1.extract3.us, ptr %.sroa.25.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #8
  %46 = call noundef float @_ZSt3sinf(float noundef %30)
  %47 = call noundef float @_ZSt3cosf(float noundef %30)
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %46, float noundef %47, float noundef %26)
          to label %48 unwind label %.split81.us

48:                                               ; preds = %45
  %49 = invoke { <2 x float>, float } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %9, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %50 unwind label %.split81.us

50:                                               ; preds = %48
  %.fca.0.extract.us = extractvalue { <2 x float>, float } %49, 0
  %.fca.1.extract.us = extractvalue { <2 x float>, float } %49, 1
  store <2 x float> %.fca.0.extract.us, ptr %14, 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 %15) #8
  %51 = invoke noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %52 unwind label %.split84.us

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !5
  %53 = fcmp ogt float %51, 0x3EB0C6F7A0000000
  br i1 %53, label %56, label %54

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %55 unwind label %.split87.us

55:                                               ; preds = %54
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  br label %58

56:                                               ; preds = %52
  %57 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcldVIfLm3EEERNS_12buffer_stackIT_XT0_EEES4_f(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %51)
          to label %58 unwind label %.split90.us

58:                                               ; preds = %56, %55
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %59 unwind label %.split90.us

59:                                               ; preds = %58
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %60 unwind label %.split90.us

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  %61 = add nuw i64 %.05374.us, 1
  %exitcond.not = icmp eq i64 %61, %5
  br i1 %exitcond.not, label %._crit_edge.us, label %31, !llvm.loop !10

._crit_edge.us:                                   ; preds = %60
  %62 = add nuw i64 %.075.us, 1
  %exitcond94.not = icmp eq i64 %62, %4
  br i1 %exitcond94.not, label %._crit_edge76, label %.preheader.us, !llvm.loop !12

.split.us:                                        ; preds = %31
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %72

.split78.us:                                      ; preds = %43, %41
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  br label %71

.split81.us:                                      ; preds = %48, %45
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  br label %70

.split84.us:                                      ; preds = %50
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %70

.split87.us:                                      ; preds = %54
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  br label %69

.split90.us:                                      ; preds = %59, %58, %56
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %69

._crit_edge76:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  invoke void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %19, i64 noundef %4, i64 noundef %5, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %73 unwind label %77

69:                                               ; preds = %.split87.us, %.split90.us
  %.pn67 = phi { ptr, i32 } [ %68, %.split90.us ], [ %67, %.split87.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  br label %70

70:                                               ; preds = %.split84.us, %69, %.split81.us
  %.pn67.pn.pn = phi { ptr, i32 } [ %65, %.split81.us ], [ %.pn67, %69 ], [ %66, %.split84.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  br label %71

71:                                               ; preds = %70, %.split78.us
  %.pn67.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn, %70 ], [ %64, %.split78.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  br label %72

72:                                               ; preds = %71, %.split.us
  %.pn67.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn.pn, %71 ], [ %63, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  br label %82

73:                                               ; preds = %._crit_edge76
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %74 unwind label %79

74:                                               ; preds = %73
  %75 = getelementptr inbounds i8, ptr %0, i64 96
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZN3vcl6bufferISt5arrayIjLm3EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  ret void

77:                                               ; preds = %._crit_edge76
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %81

81:                                               ; preds = %79, %77
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  br label %82

82:                                               ; preds = %81, %72
  %.pn67.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn.pn.pn, %72 ], [ %.pn, %81 ]
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn67.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcldVIfLm3EEERNS_12buffer_stackIT_XT0_EEES4_f(ptr noundef nonnull align 4 dereferenceable(12), float noundef) 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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