; 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::mat" = type { float, float, float, float, float, float, 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: 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: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3vcl9normalizeILm3EEENS_12buffer_stackIfXT_EEERKS2_(ptr noundef nonnull align 4 dereferenceable(12)) #6

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

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)) #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)) #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
define dso_local void @_ZN3vcl23mesh_primitive_cylinderEfRKNS_12buffer_stackIfLm3EEES3_mmb(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, i1 noundef zeroext %6) #6 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca %"struct.vcl::buffer_stack", align 4
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca float, align 4
  %18 = alloca %"struct.vcl::buffer_stack", align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"struct.vcl::mat", align 4
  %21 = alloca %"struct.vcl::buffer_stack", align 4
  %22 = alloca i1, align 1
  %23 = alloca float, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca %"struct.vcl::buffer_stack", align 4
  %36 = alloca %"struct.vcl::buffer_stack", align 4
  %37 = alloca %"struct.vcl::buffer_stack", align 4
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca { <2 x float>, float }, align 8
  %40 = alloca %"struct.vcl::buffer_stack", align 4
  %41 = alloca %"struct.vcl::buffer_stack", align 4
  %42 = alloca %"struct.vcl::buffer_stack", align 4
  %43 = alloca { <2 x float>, float }, align 8
  %44 = alloca { <2 x float>, float }, align 8
  %45 = alloca %"struct.vcl::buffer_stack.18", align 4
  %46 = alloca %"struct.vcl::buffer.17", align 8
  %47 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %8, align 8
  store float %1, ptr %9, align 4, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !11
  store i64 %5, ptr %13, align 8, !tbaa !11
  %48 = zext i1 %6 to i8
  store i8 %48, ptr %14, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !9
  %51 = call { <2 x float>, float } @_ZN3vclmiIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %50)
  store { <2 x float>, float } %51, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %52 = call noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12) %15)
  store float %52, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  %53 = load float, ptr %17, align 4, !tbaa !5
  %54 = call { <2 x float>, float } @_ZN3vcldvIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_f(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %53)
  store { <2 x float>, float } %54, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  call void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, 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 %20, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  store i1 false, ptr %22, align 1
  call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %55 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %60

57:                                               ; preds = %7
  %58 = load i64, ptr %12, align 8, !tbaa !11
  %59 = uitofp i64 %58 to float
  br label %64

60:                                               ; preds = %7
  %61 = load i64, ptr %12, align 8, !tbaa !11
  %62 = sub i64 %61, 1
  %63 = uitofp i64 %62 to float
  br label %64

64:                                               ; preds = %60, %57
  %65 = phi float [ %59, %57 ], [ %63, %60 ]
  store float %65, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %161, %64
  %67 = load i64, ptr %24, align 8, !tbaa !11
  %68 = load i64, ptr %12, align 8, !tbaa !11
  %69 = icmp ult i64 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %164

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store i64 0, ptr %26, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %128, %71
  %73 = load i64, ptr %26, align 8, !tbaa !11
  %74 = load i64, ptr %13, align 8, !tbaa !11
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %160

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %78 = load i64, ptr %24, align 8, !tbaa !11
  %79 = uitofp i64 %78 to float
  %80 = load float, ptr %23, align 4, !tbaa !5
  %81 = fdiv float %79, %80
  store float %81, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %82 = load i64, ptr %26, align 8, !tbaa !11
  %83 = uitofp i64 %82 to float
  %84 = load i64, ptr %13, align 8, !tbaa !11
  %85 = sub i64 %84, 1
  %86 = uitofp i64 %85 to float
  %87 = fdiv float %83, %86
  store float %87, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %88 = load float, ptr %27, align 4, !tbaa !5
  %89 = fmul float 0x401921FA00000000, %88
  store float %89, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %90 = load float, ptr %9, align 4, !tbaa !5
  %91 = load float, ptr %29, align 4, !tbaa !5
  %92 = invoke noundef float @_ZSt3sinf(float noundef %91)
          to label %93 unwind label %131

93:                                               ; preds = %77
  %94 = fmul float %90, %92
  store float %94, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %95 = load float, ptr %9, align 4, !tbaa !5
  %96 = load float, ptr %29, align 4, !tbaa !5
  %97 = invoke noundef float @_ZSt3cosf(float noundef %96)
          to label %98 unwind label %135

98:                                               ; preds = %93
  %99 = fmul float %95, %97
  store float %99, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %100 = load float, ptr %17, align 4, !tbaa !5
  %101 = load float, ptr %28, align 4, !tbaa !5
  %102 = fmul float %100, %101
  store float %102, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #8
  %103 = load float, ptr %30, align 4, !tbaa !5
  %104 = load float, ptr %33, align 4, !tbaa !5
  %105 = load float, ptr %34, align 4, !tbaa !5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %35, float noundef %103, float noundef %104, float noundef %105)
          to label %106 unwind label %139

106:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #8
  %107 = invoke { <2 x float>, float } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %20, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %108 unwind label %143

108:                                              ; preds = %106
  store { <2 x float>, float } %107, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %38, i64 12, i1 false)
  %109 = load ptr, ptr %10, align 8, !tbaa !9
  %110 = invoke { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %109)
          to label %111 unwind label %143

111:                                              ; preds = %108
  store { <2 x float>, float } %110, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %39, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #8
  %112 = load float, ptr %30, align 4, !tbaa !5
  %113 = load float, ptr %33, align 4, !tbaa !5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %42, float noundef %112, float noundef %113, float noundef 0.000000e+00)
          to label %114 unwind label %147

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

116:                                              ; preds = %114
  store { <2 x float>, float } %115, ptr %43, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %43, i64 12, i1 false)
  %117 = invoke { <2 x float>, float } @_ZN3vcl9normalizeILm3EEENS_12buffer_stackIfXT_EEERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %41)
          to label %118 unwind label %147

118:                                              ; preds = %116
  store { <2 x float>, float } %117, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %44, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %119 = load float, ptr %27, align 4, !tbaa !5
  %120 = load float, ptr %28, align 4, !tbaa !5
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %45, float noundef %119, float noundef %120)
          to label %121 unwind label %151

121:                                              ; preds = %118
  %122 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 0
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %123 unwind label %151

123:                                              ; preds = %121
  %124 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 1
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 4 dereferenceable(12) %40)
          to label %125 unwind label %151

125:                                              ; preds = %123
  %126 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 3
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %127 unwind label %151

127:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %128

128:                                              ; preds = %127
  %129 = load i64, ptr %26, align 8, !tbaa !11
  %130 = add i64 %129, 1
  store i64 %130, ptr %26, align 8, !tbaa !11
  br label %72, !llvm.loop !17

131:                                              ; preds = %77
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %31, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %32, align 4
  br label %159

135:                                              ; preds = %93
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %31, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %32, align 4
  br label %158

139:                                              ; preds = %98
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %31, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %32, align 4
  br label %157

143:                                              ; preds = %108, %106
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %31, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  br label %156

147:                                              ; preds = %116, %114, %111
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %31, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #8
  br label %155

151:                                              ; preds = %125, %123, %121, %118
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %31, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #8
  br label %156

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

157:                                              ; preds = %156, %139
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %158

158:                                              ; preds = %157, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %159

159:                                              ; preds = %158, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #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 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %183

160:                                              ; preds = %76
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %24, align 8, !tbaa !11
  %163 = add i64 %162, 1
  store i64 %163, ptr %24, align 8, !tbaa !11
  br label %66, !llvm.loop !19

164:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #8
  %165 = load i64, ptr %12, align 8, !tbaa !11
  %166 = load i64, ptr %13, align 8, !tbaa !11
  %167 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
  %168 = trunc i8 %167 to i1
  invoke void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %47, i64 noundef %165, i64 noundef %166, i1 noundef zeroext %168, i1 noundef zeroext false)
          to label %169 unwind label %174

169:                                              ; preds = %164
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 8 dereferenceable(24) %47)
          to label %170 unwind label %178

170:                                              ; preds = %169
  %171 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 4
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  call void @_ZN3vcl6bufferISt5arrayIjLm3EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #8
  store i1 true, ptr %22, align 1
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  %173 = load i1, ptr %22, align 1
  br i1 %173, label %185, label %184

174:                                              ; preds = %164
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %31, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %32, align 4
  br label %182

178:                                              ; preds = %169
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %31, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %32, align 4
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #8
  br label %183

183:                                              ; preds = %182, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  br label %186

184:                                              ; preds = %170
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #8
  br label %185

185:                                              ; preds = %184, %170
  call void @llvm.lifetime.end.p0(i64 36, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  ret void

186:                                              ; preds = %183
  %187 = load ptr, ptr %31, align 8
  %188 = load i32, ptr %32, align 4
  %189 = insertvalue { ptr, i32 } poison, ptr %187, 0
  %190 = insertvalue { ptr, i32 } %189, i32 %188, 1
  resume { ptr, i32 } %190
}

; 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

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 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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::mat" = type { float, float, float, float, float, float, 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: 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 uwtable
declare dso_local { <2 x float>, float } @_ZN3vcl9normalizeILm3EEENS_12buffer_stackIfXT_EEERKS2_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

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 #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
define dso_local void @_ZN3vcl23mesh_primitive_cylinderEfRKNS_12buffer_stackIfLm3EEES3_mmb(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, i1 noundef zeroext %6) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"struct.vcl::buffer_stack", align 8
  %9 = alloca %"struct.vcl::buffer_stack", align 8
  %10 = alloca %"struct.vcl::mat", align 4
  %11 = alloca %"struct.vcl::buffer_stack", align 4
  %12 = alloca %"struct.vcl::buffer_stack", align 4
  %13 = alloca %"struct.vcl::buffer_stack", align 8
  %14 = alloca %"struct.vcl::buffer_stack", align 8
  %15 = alloca %"struct.vcl::buffer_stack", align 8
  %16 = alloca %"struct.vcl::buffer_stack", align 8
  %17 = alloca %"struct.vcl::buffer_stack", align 4
  %18 = alloca %"struct.vcl::buffer_stack.18", align 4
  %19 = alloca %"struct.vcl::buffer.17", align 8
  %20 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  %21 = 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.extract38 = extractvalue { <2 x float>, float } %21, 0
  %.fca.1.extract39 = extractvalue { <2 x float>, float } %21, 1
  store <2 x float> %.fca.0.extract38, ptr %8, align 8
  %.sroa.241.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract39, ptr %.sroa.241.0..sroa_idx, align 8
  %22 = call noundef float @_ZN3vcl4normILm3EEEfRKNS_12buffer_stackIfXT_EEE(ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %23 = call { <2 x float>, float } @_ZN3vcldvIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_f(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %22)
  %.fca.0.extract32 = extractvalue { <2 x float>, float } %23, 0
  %.fca.1.extract33 = extractvalue { <2 x float>, float } %23, 1
  store <2 x float> %.fca.0.extract32, ptr %9, align 8
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract33, ptr %.sroa.235.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, 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 %10, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %not. = xor i1 %6, true
  %24 = sext i1 %not. to i64
  %.in = add i64 %24, %4
  %25 = uitofp i64 %.in to float
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge73, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %7
  %.not83 = icmp eq i64 %5, 0
  %26 = add i64 %5, -1
  %27 = uitofp i64 %26 to float
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %.not83, label %._crit_edge73, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.072.us = phi i64 [ %56, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %30 = uitofp i64 %.072.us to float
  %31 = fdiv float %30, %25
  %32 = fmul float %31, 0x401921FA00000000
  br label %33

33:                                               ; preds = %.preheader.us, %54
  %.05671.us = phi i64 [ 0, %.preheader.us ], [ %55, %54 ]
  %34 = uitofp i64 %.05671.us to float
  %35 = fdiv float %34, %27
  %36 = call noundef float @_ZSt3sinf(float noundef %32)
  %37 = fmul float %36, %1
  %38 = call noundef float @_ZSt3cosf(float noundef %32)
  %39 = fmul float %38, %1
  %40 = fmul float %22, %35
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %37, float noundef %39, float noundef %40)
          to label %41 unwind label %.split.us

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

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

45:                                               ; preds = %43
  %.fca.0.extract5.us = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract6.us = extractvalue { <2 x float>, float } %44, 1
  store <2 x float> %.fca.0.extract5.us, ptr %13, 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 %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %37, float noundef %39, float noundef 0.000000e+00)
          to label %46 unwind label %.split78.us

46:                                               ; preds = %45
  %47 = invoke { <2 x float>, float } @_ZN3vclmlILm3ELm3EEENS_12buffer_stackIfXT_EEERKNS_3matIXT_EXT0_EEERKNS1_IfXT0_EEE(ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %48 unwind label %.split78.us

48:                                               ; preds = %46
  %.fca.0.extract1.us = extractvalue { <2 x float>, float } %47, 0
  %.fca.1.extract2.us = extractvalue { <2 x float>, float } %47, 1
  store <2 x float> %.fca.0.extract1.us, ptr %16, align 8
  store float %.fca.1.extract2.us, ptr %.sroa.24.0..sroa_idx, align 8
  %49 = invoke { <2 x float>, float } @_ZN3vcl9normalizeILm3EEENS_12buffer_stackIfXT_EEERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %50 unwind label %.split78.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 %15, 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 %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %31, float noundef %35)
          to label %51 unwind label %.split81.us

51:                                               ; preds = %50
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %52 unwind label %.split81.us

52:                                               ; preds = %51
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %53 unwind label %.split81.us

53:                                               ; preds = %52
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %54 unwind label %.split81.us

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  %55 = add nuw i64 %.05671.us, 1
  %exitcond.not = icmp eq i64 %55, %5
  br i1 %exitcond.not, label %._crit_edge.us, label %33, !llvm.loop !5

._crit_edge.us:                                   ; preds = %54
  %56 = add nuw i64 %.072.us, 1
  %exitcond85.not = icmp eq i64 %56, %4
  br i1 %exitcond85.not, label %._crit_edge73, label %.preheader.us, !llvm.loop !7

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

.split75.us:                                      ; preds = %43, %41
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  br label %62

.split78.us:                                      ; preds = %48, %46, %45
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  br label %61

.split81.us:                                      ; preds = %53, %52, %51, %50
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %61

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

61:                                               ; preds = %.split81.us, %.split78.us
  %.pn66 = phi { ptr, i32 } [ %60, %.split81.us ], [ %59, %.split78.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  br label %62

62:                                               ; preds = %61, %.split75.us
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %61 ], [ %58, %.split75.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  br label %63

63:                                               ; preds = %62, %.split.us
  %.pn66.pn.pn = phi { ptr, i32 } [ %.pn66.pn, %62 ], [ %57, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  br label %73

64:                                               ; preds = %._crit_edge73
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %65 unwind label %70

65:                                               ; preds = %64
  %66 = getelementptr inbounds i8, ptr %0, i64 96
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @_ZN3vcl6bufferISt5arrayIjLm3EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 36, 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
  ret void

68:                                               ; preds = %._crit_edge73
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

70:                                               ; preds = %64
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %72

72:                                               ; preds = %70, %68
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %73

73:                                               ; preds = %72, %63
  %.pn66.pn.pn.pn = phi { ptr, i32 } [ %.pn66.pn.pn, %63 ], [ %.pn, %72 ]
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  call void @llvm.lifetime.end.p0(i64 36, 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
  resume { ptr, i32 } %.pn66.pn.pn.pn
}

; 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

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 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 #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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass